lto-symtab.c (lto_varpool_replace_node): Remove code handling extra name aliases.
[gcc.git] / gcc / ChangeLog
1 2011-06-18 Jan Hubicka <jh@suse.cz>
2
3 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4 extra name aliases.
5 (lto_symtab_resolve_can_prevail_p): Likewise.
6 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7 * cgraphbuild.c (record_reference): Remove extra body alias code.
8 (mark_load): Likewise.
9 (mark_store): Likewise.
10 * cgraph.h (varpool_node): Remove extra_name filed;
11 add alias_of and extraname_alias.
12 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13 (varpool_alias_aliased_node): New inline function.
14 (varpool_variable_node): New function.
15 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
16 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
17 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
18 (input_varpool_node): Likewise.
19 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
20 (varpool_externally_visible_p): Remove extra body alias code.
21 (function_and_variable_visibility): Likewise.
22 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
23 (ipa_pta_execute): Use it.
24 * varpool.c (varpool_remove_node): Remove extra name alias code.
25 (varpool_mark_needed_node): Likewise.
26 (varpool_analyze_pending_decls): Analyze aliases.
27 (assemble_aliases): New functoin.
28 (varpool_assemble_decl): Use it.
29 (varpool_create_variable_alias): New function.
30 (varpool_extra_name_alias): Rewrite.
31 (varpool_for_node_and_aliases): New function.
32
33 2011-06-18 Jakub Jelinek <jakub@redhat.com>
34
35 PR target/49411
36 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
37 last_arg_constant and last argument doesn't match its predicate,
38 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
39 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
40 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
41 spelling of error message.
42 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
43 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
44 const_0_to_255_operand instead of const_int_operand.
45
46 Revert:
47 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
48
49 * config/i386/sse.md (blendbits): Remove mode attribute.
50 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
51 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
52 Check integer value of operand 3 in insn constraint.
53
54 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
55
56 PR rtl-optimization/48542
57 * reload.c (find_equiv_reg): Stop looking when finding a
58 setjmp-type call.
59 * reload1.c (reload_as_needed): Invalidate all reload
60 registers when crossing a setjmp-type call.
61
62 2011-06-16 Jeff Law <law@redhat.com>
63
64 * tree-ssa-threadupdate.c (struct redirection_data): New field
65 intermediate_edge.
66 (THREAD_TARGET2): Define.
67 (redirection_data_eq): Also check that the intermediate edge is
68 equal.
69 (lookup_redirection_data): Drop useless argument. Extract the
70 outgoing_edge and intermediate edge from E. Callers updated.
71 (copy_phi_args, update_destination_phis): New functions.
72 (fix_duplicate_block_edges): Likewise.
73 (create_edge_and_update_destination_phis): Duplicate all the edges
74 hung off e->aux. Use copy_phi_args.
75 (create_duplicates): Use fix_duplicate_block_edges.
76 (fixup_template_block): Likewise.
77 (redirect_edges): If necessary, redirect the joiner block's incoming
78 edge to the duplicate of the joiner block.
79 (thread_block): Don't muck up loops when threading through a joiner
80 block.
81 (thread_through_loop_header): Handle threading through a joiner
82 block.
83 (mark_threaded_blocks, register_jump_thread): Likewise.
84 * tree-flow.h (register_jump_thread): Add new argument. Callers
85 updated.
86 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
87 (thread_across_edge): Handle threading through a joiner block.
88
89 2011-06-16 Martin Jambor <mjambor@suse.cz>
90
91 PR tree-optimization/49343
92 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
93 calculate offset, provide 2nd operand for the new COMPONENT_REF.
94
95 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
96
97 * config/darwin-protos.h (machopic_select_rtx_section): Move to
98 inside RTX_CODE ifdef.
99
100 2011-06-16 Tom de Vries <tom@codesourcery.com>
101
102 PR target/45098
103 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
104 NULL pointer for pointer arithmetic.
105
106 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
107
108 PR target/49398
109 Revert.
110 2011-06-10 Wei Guozhi <carrot@google.com>
111
112 PR target/45335
113 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
114 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
115 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
116 related peephole2.
117 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
118 related peephole2.
119 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
120 (arm_legitimate_ldrd_p): New prototype.
121 (arm_output_ldrd): New prototype.
122 * config/arm/arm.c (arm_check_ldrd_operands): New function.
123 (arm_legitimate_ldrd_p): New function.
124 (arm_output_ldrd): New function.
125
126 2010-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
127
128 PR middle-end/46500
129 * doc/tm.texi.in: Update Copyright date.
130 * doc/tm.texi: Regenerate.
131 * targhooks.c (default_setup_incoming_varargs): Replace
132 CUMULATIVE_ARGS* argument type with cumulative_args_t.
133 (default_pretend_outgoing_varargs_named): Likewise.
134 (hook_pass_by_reference_must_pass_in_stack): Likewise.
135 (hook_callee_copies_named): Likewise.
136 (default_function_arg_advance): Likewise.
137 (default_function_arg): Likewise.
138 (default_function_incoming_arg): Likewise.
139 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
140 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
141 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
142 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
143 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
144 * targhooks.h (default_setup_incoming_varargs): Likewise.
145 (default_pretend_outgoing_varargs_named): Likewise.
146 (hook_pass_by_reference_must_pass_in_stack): Likewise.
147 (hook_callee_copies_named): Likewise.
148 (default_function_arg_advance): Likewise.
149 (default_function_arg): Likewise.
150 (default_function_incoming_arg): Likewise.
151 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
152 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
153 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
154 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
155 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
156 * target.def (pass_by_reference): Likewise.
157 (setup_incoming_varargs, strict_argument_naming): Likewise.
158 (pretend_outgoing_varargs_named, callee_copies): Likewise.
159 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
160 (function_incoming_arg): Likewise.
161 * target.h: Don't include "tm.h" .
162 (cumulative_args_t): New typedef.
163 [GCC_TM_H] (get_cumulative_args): New static inline function.
164 [GCC_TM_H] (pack_cumulative_args): Likewise.
165 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
166 argument type with cumulative_args_t.
167 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
168 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
169 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
170 (frv_arg_partial_bytes, frv_function_arg): Likewise.
171 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
172 (frv_function_arg_1): Likewise.
173 * config/s390/s390.c (s390_pass_by_reference): Likewise.
174 (s390_function_arg_advance, s390_function_arg): Likewise.
175 * config/m32c/m32c.c (m32c_function_arg): Likewise.
176 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
177 (m32c_strict_argument_naming): Likewise.
178 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
179 (spu_function_arg_advance): Likewise.
180 (spu_setup_incoming_varargs): Likewise. Make static.
181 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
182 Remove prototype.
183 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
184 CUMULATIVE_ARGS* argument type with cumulative_args_t.
185 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
186 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
187 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
188 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
189 (mep_pass_by_reference, mep_function_arg): Likewise.
190 (mep_function_arg_advance): Likewise.
191 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
192 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
193 (m32r_function_arg, m32r_function_arg_advance): Likewise.
194 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
195 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
196 (ix86_function_arg, ix86_pass_by_reference): Likewise.
197 (ix86_setup_incoming_varargs): Likewise.
198 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
199 (sh_strict_argument_naming): Likewise.
200 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
201 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
202 (sh_function_arg_advance, sh_function_arg): Likewise.
203 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
204 (pdp11_function_arg_advance): Likewise.
205 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
206 Likewise.
207 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
208 * config/avr/avr.c (avr_function_arg): Likewise.
209 (avr_function_arg_advance): Likewise.
210 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
211 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
212 (xtensa_function_arg_1): Likewise.
213 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
214 (xstormy16_function_arg): Likewise.
215 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
216 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
217 (fr30_function_arg_advance): Likewise.
218 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
219 (lm32_function_arg, lm32_function_arg_advance): Likewise.
220 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
221 (moxie_function_arg, moxie_function_arg_advance): Likewise.
222 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
223 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
224 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
225 (cris_function_arg, cris_function_incoming_arg): Likewise.
226 (cris_function_arg_advance, cris_function_arg_1): Likewise.
227 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
228 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
229 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
230 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
231 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
232 (mn10300_arg_partial_bytes): Likewise.
233 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
234 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
235 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
236 (ia64_function_arg_1): Likewise.
237 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
238 (m68k_function_arg): Likewise.
239 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
240 (rs6000_function_arg, setup_incoming_varargs): Likewise.
241 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
242 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
243 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
244 (picochip_arg_advance): Likewise.
245 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
246 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
247 (mcore_function_arg_advance): Likewise.
248 * config/score/score.c (score_pass_by_reference): Likewise.
249 (score_function_arg_advance): Likewise.
250 (score_arg_partial_bytes): Likewise. Make static.
251 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
252 * config/arm/arm.c (arm_arg_partial_bytes): Replace
253 CUMULATIVE_ARGS* argument type with cumulative_args_t.
254 (arm_function_arg, arm_function_arg_advance): Likewise.
255 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
256 * config/pa/pa.c (pa_pass_by_reference): Likewise.
257 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
258 (pa_function_arg): Likewise.
259 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
260 (mips_function_arg, mips_function_arg_advance): Likewise.
261 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
262 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
263 * config/vax/vax.c (vax_function_arg): Likewise.
264 (vax_function_arg_advance): Likewise.
265 * config/h8300/h8300.c (h8300_function_arg): Likewise.
266 (h8300_function_arg_advance): Likewise.
267 * config/v850/v850.c (v850_pass_by_reference): Likewise.
268 (v850_strict_argument_naming, v850_function_arg): Likewise.
269 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
270 (v850_setup_incoming_varargs): Likewise.
271 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
272 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
273 (mmix_function_arg, mmix_pass_by_reference): Likewise.
274 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
275 with const void *.
276 * config/bfin/bfin.c (setup_incoming_varargs): Replace
277 CUMULATIVE_ARGS* argument type with cumulative_args_t.
278 (bfin_function_arg_advance, bfin_function_arg): Likewise.
279 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
280 * calls.c (emit_call_1): Change type of args_so_far to
281 cumulative_args_t. Changed all callers.
282 (initialize_argument_information): Likewise.
283 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
284 * dse.c (get_call_args): Likewise.
285 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
286 * function.c (pass_by_reference, reference_callee_copied): Likewise.
287 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
288 New member args_so_far_v. Changed all users.
289 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
290 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
291 * config/mips/mips.c (mips_output_args_xfer): Likewise.
292 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
293 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
294 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
295 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
296 m32r_pass_by_reference.
297
298 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
299
300 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
301 argument to be a VEC of statements.
302 * tree-vect-loop.c (vect_determine_vectorization_factor):
303 Remove the assert that pattern statements have to have their
304 vector type set.
305 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
306 Change the first argument to be a VEC of statements. Update
307 documentation.
308 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
309 (vect_handle_widen_mult_by_const): New function.
310 (vect_recog_widen_mult_pattern): Change the first argument to
311 be a VEC of statements. Update documentation. Check that the
312 constant is INTEGER_CST. Support multiplication by a constant
313 that fits an intermediate type - call
314 vect_handle_widen_mult_by_const.
315 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
316 call. Handle additional pattern statements if necessary.
317
318 2011-06-16 Nick Clifton <nickc@redhat.com>
319
320 PR target/49427
321 * config.gcc: Set cpu_type to v850 for any V850 architecture.
322 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
323 md_file, extra_modes, out_file and extra_options are these are all
324 deduced from cpu_type.
325
326 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
327
328 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
329 truncation mask to 63.
330
331 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
332
333 PR target/49313
334 PR target/29524
335 * longlong.h: Add AVR support:
336 (count_leading_zeros): New macro.
337 (count_trailing_zeros): New macro.
338 (COUNT_LEADING_ZEROS_0): New macro.
339 * config/avr/t-avr (LIB1ASMFUNCS): Add
340 _ffssi2, _ffshi2, _loop_ffsqi2,
341 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
342 _paritydi2, _paritysi2, _parityhi2,
343 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
344 _bswapsi2, _bswapdi2,
345 _ashldi3, _ashrdi3, _lshrdi3
346 (LIB2FUNCS_EXCLUDE): Add _clz.
347 * config/avr/libgcc.S (XCALL): Move up in file.
348 (XJMP): New C Macro.
349 (DEFUN): New asm macro.
350 (ENDF): New asm macro.
351 (__ffssi2): New function.
352 (__ffshi2): New function.
353 (__loop_ffsqi2): New function.
354 (__ctzsi2): New function.
355 (__ctzhi2): New function.
356 (__clzdi2): New function.
357 (__clzsi2): New function.
358 (__clzhi2): New function.
359 (__paritydi2): New function.
360 (__paritysi2): New function.
361 (__parityhi2): New function.
362 (__parityqi2): New function.
363 (__popcounthi2): New function.
364 (__popcountsi2): New function.
365 (__popcountdi2): New function.
366 (__popcountqi2): New function.
367 (__bswapsi2): New function.
368 (__bswapdi2): New function.
369 (__ashldi3): New function.
370 (__ashrdi3): New function.
371 (__lshrdi3): New function.
372 Fix suspicous lines.
373
374 2011-06-16 Richard Guenther <rguenther@suse.de>
375
376 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
377 the same as x != 0.
378 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
379 (bool) X & 1.
380 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
381 equality compares against zero for the lower bit.
382
383 2011-06-16 Jakub Jelinek <jakub@redhat.com>
384
385 PR tree-optimization/49419
386 * tree-vrp.c (execute_vrp): Call init_range_assertions
387 before estimate_numbers_of_iterations, call
388 free_number_of_iterations_estimates before calling
389 remove_range_assertions.
390
391 2011-06-16 Revital Eres <revital.eres@linaro.org>
392
393 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
394 (struct partial_schedule): Add rows_length field.
395 (verify_partial_schedule): Check rows_length.
396 (ps_insert_empty_row): Handle rows_length.
397 (create_partial_schedule): Likewise.
398 (free_partial_schedule): Likewise.
399 (reset_partial_schedule): Likewise.
400 (create_ps_insn): Remove rest_count argument.
401 (remove_node_from_ps): Update rows_length.
402 (add_node_to_ps): Update rows_length and call create_ps_insn
403 without passing row_rest_count.
404 (rotate_partial_schedule): Update rows_length.
405
406 2011-06-16 Revital Eres <revital.eres@linaro.org>
407
408 * ddg.c (add_intra_loop_mem_dep): New function.
409 (build_intra_loop_deps): Call it.
410
411 2011-06-13 Jeff Law <law@redhat.com>
412
413 * df-problems.c (df_lr_local_compute): Manually CSE
414 PIC_OFFSET_TABLE_REGNUM.
415 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
416 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
417
418 2011-06-13 Jan Hubicka <jh@suse.cz>
419
420 * cgraphunit.c (handle_alias_pairs): New function.
421 (cgraph_finalize_compilation_unit): Use it.
422 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
423 as externally visible.
424
425 2011-06-15 Richard Guenther <rguenther@suse.de>
426
427 * expr.c (expand_expr_real_2): Reduce all integral types to
428 bitfield precision.
429 (expand_expr_real_1): Likewise.
430
431 2011-06-15 Martin Jambor <mjambor@suse.cz>
432
433 PR tree-optimization/48613
434 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
435 ipa_node_params_vector is NULL.
436
437 2011-06-15 Jakub Jelinek <jakub@redhat.com>
438
439 PR debug/49382
440 * dwarf2out.c (dw_loc_list_node): Add force field.
441 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
442 the incoming location in the list, even if it is modified
443 before first real insn.
444 (output_loc_list): Emit empty ranges with force flag set.
445 (dw_loc_list): If first range of a PARM_DECL is empty,
446 set force flag.
447
448 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
449
450 PR target/49349
451 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
452 (fence_to_rewind). Use it to notice when bookkeeping will be placed
453 above a fence. Update comments.
454 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
455 placed just above it. Do not allow NULL place_to_insert.
456
457 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
458
459 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
460 (slpeel_tree_peel_loop_to_edge): Don't call
461 remove_dead_stmts_from_loop.
462 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
463 remove irrelevant pattern statements. For irrelevant statements
464 check if it is the last statement of a detected pattern, use
465 corresponding pattern statement instead.
466 (destroy_loop_vec_info): No need to remove pattern statements,
467 only free stmt_vec_info.
468 (vect_transform_loop): For irrelevant statements check if it is
469 the last statement of a detected pattern, use corresponding
470 pattern statement instead.
471 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
472 pattern statements. Set basic block for the new statement.
473 (vect_pattern_recog): Update documentation.
474 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
475 operands of pattern statements.
476 (vectorizable_call): Fix printing. In case of a pattern statement
477 use the lhs of the original statement when creating a dummy
478 statement to replace the original call.
479 (vect_analyze_stmt): For irrelevant statements check if it is
480 the last statement of a detected pattern, use corresponding
481 pattern statement instead.
482 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
483 statements use gsi of the original statement.
484
485 2011-06-14 Joseph Myers <joseph@codesourcery.com>
486
487 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
488 common/common-target-def.h.
489 * target.def (default_target_flags, handle_option,
490 supports_split_stack, optimization_table, init_struct,
491 except_unwind_info, unwind_tables_default, have_named_sections):
492 Move to common/common-target.def.
493 * target.h (enum opt_levels, struct default_options): Move to
494 common/common-target.h.
495 * targhooks.c (default_except_unwind_info,
496 dwarf2_except_unwind_info, sjlj_except_unwind_info,
497 default_target_handle_option, empty_optimization_table): Move to
498 common/common-targhooks.c.
499 * targhooks.h (default_except_unwind_info,
500 dwarf2_except_unwind_info, sjlj_except_unwind_info,
501 default_target_handle_option, empty_optimization_table): Move to
502 common/common-targhooks.h.
503 * common/common-target-def.h: Include common/common-targhooks.h.
504 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
505 defined.
506 * common/common-target.def (handle_option, option_init_struct,
507 option_optimization_table, default_target_flags,
508 except_unwind_info, supports_split_stack, unwind_tables_default,
509 have_named_sections): Move from target.def.
510 (HOOK_PREFIX): Undefine at end of file.
511 * common/common-target.h: Include input.h.
512 (enum opt_levels, struct default_options): Move from target.h.
513 * common/common-targhooks.c, common/common-targhooks.h: New.
514 * config.gcc (target_has_targetm_common): Default to yes.
515 (moxie*): Set target_has_targetm_common=no.
516 (hppa*-*-*): Don't set target_has_targetm_common=yes.
517 * doc/tm.texi: Regenerate.
518 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
519 (C_TARGET_DEF_H): Add common/common-targhooks.h.
520 (GCC_OBJS): Remove vec.o.
521 (OBJS): Remove hooks.o and vec.o.
522 (OBJS-libcommon-target): Add vec.o, hooks.o and
523 common/common-targhooks.o.
524 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
525 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
526 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
527 cfglayout.o, $(out_object_file), $(common_out_object_file)):
528 Update dependencies.
529 (common/common-targhooks.o): New.
530 * common/config/default-common.c: Include tm.h. Add FIXME
531 comment.
532 * common/config/pa/pa-common.c: Include more headers. Take
533 copyright dates from pa.c.
534 (pa_option_optimization_table, pa_handle_option,
535 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
536 TARGET_HANDLE_OPTION): Move from pa.c.
537 * common/config/alpha/alpha-common.c,
538 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
539 common/config/bfin/bfin-common.c,
540 common/config/cris/cris-common.c,
541 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
542 common/config/h8300/h8300-common.c,
543 common/config/i386/i386-common.c,
544 common/config/ia64/ia64-common.c,
545 common/config/iq2000/iq2000-common.c,
546 common/config/lm32/lm32-common.c,
547 common/config/m32c/m32c-common.c,
548 common/config/m32r/m32r-common.c,
549 common/config/m68k/m68k-common.c,
550 common/config/mcore/mcore-common.c,
551 common/config/mep/mep-common.c,
552 common/config/microblaze/microblaze-common.c,
553 common/config/mips/mips-common.c,
554 common/config/mmix/mmix-common.c,
555 common/config/mn10300/mn10300-common.c,
556 common/config/pdp11/pdp11-common.c,
557 common/config/picochip/picochip-common.c,
558 common/config/rs6000/rs6000-common.c,
559 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
560 common/config/score/score-common.c, common/config/sh/sh-common.c,
561 common/config/sparc/sparc-common.c,
562 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
563 common/config/vax/vax-common.c,
564 common/config/xstormy16/xstormy16-common.c,
565 common/config/xtensa/xtensa-common.c: New.
566 * config/alpha/alpha.c: Include common/common-target.h.
567 (alpha_option_optimization_table, alpha_handle_option,
568 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
569 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
570 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
571 * config/arm/arm.c (arm_option_optimization_table,
572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
573 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
574 arm-common.c.
575 * config/avr/avr.c (avr_option_optimization_table,
576 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
577 to avr-common.c.
578 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
579 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
580 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
581 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
582 * config/cris/cris.c (cris_option_optimization_table,
583 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
584 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
585 cris-common.c.
586 * config/fr30/fr30.c (fr30_option_optimization_table,
587 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
588 to fr30-common.c.
589 * config/frv/frv.c (frv_option_optimization_table,
590 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
591 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
592 * config/h8300/h8300.c (h8300_option_optimization_table,
593 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
594 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
595 * config/i386/i386-protos.h (ix86_handle_option): Declare.
596 * config/i386/i386.c: Include common/common-target.h.
597 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
598 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
599 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
600 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
601 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
602 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
603 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
604 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
605 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
606 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
607 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
608 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
609 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
610 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
611 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
612 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
613 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
614 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
615 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
616 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
617 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
618 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
619 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
620 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
621 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
622 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
623 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
624 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
625 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
626 ix86_option_optimization_table, ix86_option_init_struct,
627 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
628 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
629 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
630 i386-common.c.
631 * config/i386/t-i386 (i386.o): Update dependencies.
632 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
633 * config/ia64/ia64.c (ia64_option_optimization_table,
634 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
635 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
636 ia64_handle_option): Move to ia64-common.c.
637 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
638 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
639 * config/lm32/lm32.c (lm32_option_optimization_table,
640 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
641 to lm32-common.c.
642 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
643 m32c-common.c.
644 * config/m32r/m32r.c (m32r_option_optimization_table,
645 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
646 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
647 m32r_handle_option): Move to m32r-common.c.
648 (m32r_memory_move_cost): Remove comment referring to
649 TARGET_HANDLE_OPTION.
650 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
651 Move to m68k-common.c.
652 * config/mcore/mcore.c (mcore_option_optimization_table,
653 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
654 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
655 * config/mep/mep.c (mep_option_optimization_table,
656 mep_handle_option, TARGET_HANDLE_OPTION,
657 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
658 Move to mep-common.c.
659 * config/microblaze/microblaze.c
660 (microblaze_option_optimization_table,
661 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
662 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
663 * config/mips/mips.c (mips_handle_option,
664 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
665 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
666 mips-common.c.
667 * config/mmix/mmix.c (mmix_option_optimization_table,
668 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
669 Move to mmix-common.c.
670 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
671 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
672 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
673 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
674 * config/pa/pa.c: Include common/common-target.h.
675 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
676 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
677 pa_handle_option): Move to pa-common.c.
678 (pa_option_override): Use targetm_common.except_unwind_info.
679 (pa_asm_output_mi_thunk, pa_function_section): Use
680 targetm_common.have_named_sections.
681 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
682 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
683 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
684 pdp11_handle_option, pdp11_option_init_struct): Move to
685 pdp11-common.c.
686 * config/picochip/picochip.c (picochip_option_optimization_table,
687 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
688 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
689 * config/rs6000/rs6000.c: Include common/common-target.h.
690 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
691 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
692 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
693 rs6000_handle_option): Move to rs6000-common.c.
694 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
695 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
696 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
697 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
698 * config/s390/s390.c (processor_flags_table,
699 s390_option_optimization_table, s390_option_init_struct,
700 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
701 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
702 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
703 * config/s390/s390.h (processor_flags_table): Declare.
704 * config/score/score.c (score_option_optimization_table,
705 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
706 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
707 score_handle_option): Move to score-common.c.
708 * config/sh/sh.c (sh_option_optimization_table,
709 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
710 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
711 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
712 * config/sparc/sparc.c: Include common/common-target.h.
713 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
714 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
715 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
716 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
717 spu_option_init_struct): Move to spu-common.c.
718 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
719 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
720 * config/v850/v850.c (small_memory_physical_max,
721 v850_handle_memory_optionn v850_handle_option,
722 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
723 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
724 v850-common.c.
725 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
726 vax-common.c.
727 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
728 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
729 Move to xtensa-common.c.
730 * cfglayout.c: Include common/common-target.h.
731 (fixup_reorder_chain): Use targetm_common.have_named_sections.
732 * cfgrtl.c: Include common/common-target.h.
733 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
734 targetm_common.have_named_sections.
735 * dbxout.c: Include common/common-target.h.
736 (dbxout_function_end): Use targetm_common.have_named_sections.
737 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
738 targetm_common.except_unwind_info.
739 * dwarf2out.c: Include common/common-target.h.
740 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
741 dwarf2out_begin_prologue, dwarf2out_frame_init,
742 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
743 targetm_common.except_unwind_info.
744 * except.c: Include common/common-target.h.
745 (init_eh, finish_eh_generation,
746 output_one_function_exception_table): Use
747 targetm_common.except_unwind_info.
748 (switch_to_exception_section): Use
749 targetm_common.have_named_sections.
750 * explow.c: Include common/common-target.h.
751 * expr.c: Include common/common-target.h.
752 (build_personality_function): Use
753 targetm_common.except_unwind_info.
754 * function.c: Include common/common-target.h.
755 (expand_function_end): Use targetm_common.except_unwind_info.
756 * haifa-sched.c: Include common/common-target.h.
757 (sched_create_recovery_edges): Use
758 targetm_common.have_named_sections.
759 * lto-opts.c: Include common/common-target.h instead of target.h.
760 (lto_reissue_options): Use targetm_common.handle_option.
761 * opts.c: Include common/common-target.h.
762 (target_handle_option): Use targetm_common.handle_option.
763 (init_options_struct): Update comment referring to
764 targetm.target_option.optimization. Use
765 targetm_common.default_target_flags,
766 targetm_common.unwind_tables_default and
767 targetm_common.option_init_struct.
768 (default_options_optimization): Use
769 targetm_common.option_optimization_table.
770 (finish_options): Use targetm_common.except_unwind_info,
771 targetm_common.unwind_tables_default,
772 targetm_common.have_named_sections and
773 targetm_common.supports_split_stack.
774 * toplev.c: Include common/common-target.h.
775 (process_options): Use targetm_common.have_named_sections.
776 * tree-tailcall.c: Include common/common-target.h.
777 (suitable_for_tail_call_opt_p): Use
778 targetm_common.except_unwind_info.
779 * tree.c: Include common/common-target.h.
780 (build_common_builtin_nodes): Use
781 targetm_common.except_unwind_info.
782 * varasm.c: Include common/common-target.h.
783 (resolve_unique_section, hot_function_section,
784 default_function_section): Use targetm_common.have_named_sections.
785
786 2011-06-14 Easwaran Raman <eraman@google.com>
787
788 PR rtl-optimization/44194
789 * dse.c: Include tree-flow.h
790 (insn_info): Add new field non_frame_wild_read.
791 (group_info): Add new fields escaped_n and escaped_p.
792 (kill_on_calls): New variable.
793 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
794 (dse_step0): Initialize kill_on_calls.
795 (can_escape): New function.
796 (set_usage_bits): Add additional parameter; record information
797 about escaped locations.
798 (record_store): Pass EXPR corresponding to MEM to
799 set_usage_bits.
800 (dse_step2_nospill): Set kill_on_calls based on
801 group->escaped_n and group->escaped_n.
802 (add_wild_read): Refactor into...
803 (reset_active_stores): ... New function, and
804 (free_read_records): ... New function.
805 (add_non_frame_wild_read): New function.
806 (scan_insn): Call add_non_frame_wild_read on non-const calls.
807 (scan_reads_nospill): Handle instructions with
808 non_frame_wild_read.
809 (dse_step5_nospill): Call scan_reads_nospill for instructions
810 marked as non_frame_wild_read.
811 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
812 bitmaps.
813
814 2011-06-14 Joseph Myers <joseph@codesourcery.com>
815
816 * common/common-target-def.h, common/common-target.def,
817 common/common-target.h, common/config/default-common.c,
818 common/config/pa/pa-common.c: New files.
819 * Makefile.in (common_out_file, common_out_object_file,
820 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
821 (OBJS-libcommon-target): Include $(common_out_object_file).
822 (prefix.o): Update dependencies.
823 ($(common_out_object_file), common/common-target-hooks-def.h,
824 s-common-target-hooks-def-h): New.
825 (s-tm-texi): Also check timestamp on common-target.def.
826 (build/genhooks.o): Update dependencies.
827 * config.gcc (common_out_file, target_has_targetm_common): Define.
828 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
829 TARGET_ALWAYS_STRIP_DOTDOT.
830 * configure.ac (common_out_object_file): Define.
831 (common_out_file, common_out_object_file): Substitute.
832 (common): Create directory.
833 * configure: Regenerate.
834 * doc/tm.texi.in (targetm_common): Document.
835 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
836 * doc/tm.texi: Regenerate.
837 * genhooks.c (hook_array): Also include common/common-target.def.
838 * prefix.c (tm.h): Don't include.
839 (common/common-target.h): Include.
840 (ALWAYS_STRIP_DOTDOT): Don't define.
841 (update_path): Use targetm_common.always_strip_dotdot instead of
842 ALWAYS_STRIP_DOTDOT.
843 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
844
845 2011-06-14 David Li <davidxl@google.com>
846
847 * passes.c (execute_function_todo): Remove TODO_dump_func.
848 (execute_one_pass): Remove TODO_dump_func.
849 (execute_function_dump): New function.
850 * tree-vrp.c: Remove TODO_dump_func.
851 * regrename.c: Remove TODO_dump_func.
852 * fwprop.c: Remove TODO_dump_func.
853 * tree-into-ssa.c: Remove TODO_dump_func.
854 * tree-complex.c: Remove TODO_dump_func.
855 * tracer.c: Remove TODO_dump_func.
856 * tree-loop-distribution.c: Remove TODO_dump_func.
857 * postreload-gcse.c: Remove TODO_dump_func.
858 * postreload.c: Remove TODO_dump_func.
859 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
860 * tree-tailcall.c: Remove TODO_dump_func.
861 * ipa-cp.c: Remove TODO_dump_func.
862 * final.c: Remove TODO_dump_func.
863 * tree-emutls.c: Remove TODO_dump_func.
864 * omp-low.c: Remove TODO_dump_func.
865 * tree-ssa-dse.c: Remove TODO_dump_func.
866 * tree-ssa-uncprop.c: Remove TODO_dump_func.
867 * auto-inc-dec.c: Remove TODO_dump_func.
868 * reorg.c: Remove TODO_dump_func.
869 * tree-ssa-copyrename.c: Remove TODO_dump_func.
870 * tree-ssa-ccp.c: Remove TODO_dump_func.
871 * compare-elim.c: Remove TODO_dump_func.
872 * mode-switching.c: Remove TODO_dump_func.
873 * modulo-sched.c: Remove TODO_dump_func.
874 * tree-call-cdce.c: Remove TODO_dump_func.
875 * cse.c: Remove TODO_dump_func.
876 * web.c: Remove TODO_dump_func.
877 * tree-stdarg.c: Remove TODO_dump_func.
878 * lto-streamer-out.c: Remove TODO_dump_func.
879 * tree-ssa-math-opts.c: Remove TODO_dump_func.
880 * tree-ssa-dom.c: Remove TODO_dump_func.
881 * tree-nrv.c: Remove TODO_dump_func.
882 * loop-init.c: Remove TODO_dump_func.
883 * gimple-low.c: Remove TODO_dump_func.
884 * ipa-inline.c: Remove TODO_dump_func.
885 * tree-ssa-sink.c: Remove TODO_dump_func.
886 * jump.c: Remove TODO_dump_func.
887 * ifcvt.c: Remove TODO_dump_func.
888 * tree-ssa-loop.c: Remove TODO_dump_func.
889 * recog.c: Remove TODO_dump_func.
890 * dse.c: Remove TODO_dump_func.
891 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
892 * matrix-reorg.c: Remove TODO_dump_func.
893 * tree-eh.c: Remove TODO_dump_func.
894 * regmove.c: Remove TODO_dump_func.
895 * function.c: Remove TODO_dump_func.
896 * tree-vectorizer.c: Remove TODO_dump_func.
897 * ipa-split.c: Remove TODO_dump_func.
898 * gcse.c: Remove TODO_dump_func.
899 * tree-if-conv.c: Remove TODO_dump_func.
900 * init-regs.c: Remove TODO_dump_func.
901 * tree-ssa-phiopt.c: Remove TODO_dump_func.
902 * implicit-zee.c: Remove TODO_dump_func.
903 * lower-subreg.c: Remove TODO_dump_func.
904 * bt-load.c: Remove TODO_dump_func.
905 * tree-dfa.c: Remove TODO_dump_func.
906 * except.c: Remove TODO_dump_func.
907 * emit-rtl.c: Remove TODO_dump_func.
908 * store-motion.c: Remove TODO_dump_func.
909 * cfgexpand.c: Remove TODO_dump_func.
910 * tree-cfgcleanup.c: Remove TODO_dump_func.
911 * cfgcleanup.c: Remove TODO_dump_func.
912 * tree-ssa-pre.c: Remove TODO_dump_func.
913 * tree-sra.c: Remove TODO_dump_func.
914 * tree-mudflap.c: Remove TODO_dump_func.
915 * tree-ssa-copy.c: Remove TODO_dump_func.
916 * cfglayout.c: Remove TODO_dump_func.
917 * tree-ssa-forwprop.c: Remove TODO_dump_func.
918 * tree-ssa-dce.c: Remove TODO_dump_func.
919 * ira.c: Remove TODO_dump_func.
920 * tree-ssa.c: Remove TODO_dump_func.
921 * integrate.c: Remove TODO_dump_func.
922 * tree-optimize.c: Remove TODO_dump_func.
923 * tree-ssa-phiprop.c: Remove TODO_dump_func.
924 * tree-object-size.c: Remove TODO_dump_func.
925 * combine.c: Remove TODO_dump_func.
926 * bb-reorder.c: Remove TODO_dump_func.
927 * cprop.c: Remove TODO_dump_func.
928 * var-tracking.c: Remove TODO_dump_func.
929 * tree-profile.c: Remove TODO_dump_func.
930 * tree-vect-generic.c: Remove TODO_dump_func.
931 * reg-stack.c: Remove TODO_dump_func.
932 * sched-rgn.c: Remove TODO_dump_func.
933 * tree-ssa-structalias.c: Remove TODO_dump_func.
934 * tree-switch-conversion.c: Remove TODO_dump_func.
935 * tree-cfg.c: Remove TODO_dump_func.
936 * tree-ssa-reassoc.c: Remove TODO_dump_func.
937 * combine-stack-adj.c: Remove TODO_dump_func.
938 * dce.c: Remove TODO_dump_func.
939 * tree-ssanames.c: Remove TODO_dump_func.
940 * regcprop.c: Remove TODO_dump_func.
941
942 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
943
944 PR middle-end/47364
945 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
946 and properly handle result not in Pmode.
947
948 2011-06-14 Robert Millan <rmh@gnu.org>
949
950 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
951 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
952 `config/linux.h'.
953
954 * config/i386/kfreebsd-gnu64.h: New file.
955 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
956 with `i386/kfreebsd-gnu64.h'.
957
958 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
959 (GNU_USER_LINK_EMULATION64): New macros.
960 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
961 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
962 of hardcoding `elf_i386' and `elf_x86_64'.
963
964 2011-06-14 Nick Clifton <nickc@redhat.com>
965
966 PR target/49403
967 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
968
969 PR target/49402
970 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
971
972 2011-06-14 Jakub Jelinek <jakub@redhat.com>
973
974 PR fortran/49103
975 * tree.h (DECL_NONSHAREABLE): Define.
976 (struct tree_decl_common): Change decl_common_unused to
977 decl_nonshareable_flag.
978 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
979 Ignore vars with DECL_NONSHAREABLE bit set.
980 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
981 on stores to automatic aggregate vars.
982
983 PR rtl-optimization/49390
984 Revert:
985 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
986
987 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
988 MEM_ALIAS_SET.
989
990 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
991 Tom de Vries <tom@codesourcery.com>
992
993 PR target/45098
994 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
995 Document changed semantics.
996 (max_stmt_executions, max_stmt_executions_int): Declare.
997 * tree-data-ref.c (estimated_loop_iterations)
998 (estimated_loop_iterations_int): Move functions...
999 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1000 (estimated_loop_iterations_int): here.
1001 (record_estimate): Change nb_iterations_upper_bound and
1002 nb_iterations_estimate semantics.
1003 (max_stmt_executions, max_stmt_executions_int): New function.
1004 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1005 (max_stmt_executions_tree): this.
1006 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1007 estimated_loop_iterations_tree.
1008 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1009 max_stmt_executions_int instead of estimated_loop_iterations_int.
1010 * predict.c (predict_loops): Idem.
1011 * tree-parloops.c (parallelize_loops): Idem.
1012 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1013 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1014 (init_omega_for_ddr_1): Idem.
1015 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1016 (loop_prefetch_arrays): Idem
1017 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1018 max_stmt_executions instead of estimated_loop_iterations.
1019 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1020 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1021 instead of nb_iterations_upper_bound.
1022
1023 2011-06-13 Jan Hubicka <jh@suse.cz>
1024
1025 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1026
1027 2011-06-14 Richard Henderson <rth@redhat.com>
1028
1029 PR debug/48459
1030 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1031 (based_loc_descr): Assert it's true.
1032 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1033 aborting immediately.
1034
1035 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1036 Mingfeng Wu <mingfeng@faraday-tech.com>
1037
1038 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1039
1040 2011-06-13 Jan Hubicka <jh@suse.cz>
1041
1042 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1043
1044 2011-06-13 Jan Hubicka <jh@suse.cz>
1045
1046 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1047 similarly to DECL_COMDAT.
1048 * cgraphunit.c (cgraph_analyze_function): Likewise.
1049 * ipa.c (function_and_variable_visibility): Likewise.
1050
1051 2011-06-13 Jan Hubicka <jh@suse.cz>
1052
1053 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1054 BINFO_VIRTUALS when streaming for ltrans unit.
1055
1056 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1057
1058 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1059 (movdi_internal64): Same.
1060
1061 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1062
1063 PR target/44618
1064 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1065 a set of similar patterns, where the MATCH_OPERAND for the function
1066 argument is replaced with individual references to hardware registers.
1067 (save_fpregs_<mode>): Ditto
1068 (restore_gpregs_<mode>): Ditto
1069 (return_and_restore_gpregs_<mode>): Ditto
1070 (return_and_restore_fpregs_<mode>): Ditto
1071 (return_and_restore_fpregs_aix_<mode>): Ditto
1072
1073 2011-06-13 Jan Hubicka <jh@suse.cz>
1074
1075 * ipa-utils.c (postorder_stack): New structure.
1076 (ipa_reverse_postorder): Handle aliases.
1077
1078 2011-06-13 Jan Hubicka <jh@suse.cz>
1079
1080 * ipa-inline.c (reset_edge_caches): Walk aliases.
1081 (update_caller_keys): Do not test inlinability of aliases.
1082 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1083 (do_estimate_growth): Fix typo.
1084
1085 2011-06-13 Jan Hubicka <jh@suse.cz>
1086
1087 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1088 (can_remove_node_now_p): ... here; handle same comdat groups.
1089 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1090 (inline_call): Update use of can_remove_node_now_p.
1091
1092 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1093
1094 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1095 condition to disallow non-identical memory locations.
1096 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1097 preference to bit manipulation instructions.
1098
1099 2011-06-13 Jan Hubicka <jh@suse.cz>
1100
1101 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1102 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1103 (nonremovable_p): New function.
1104 (cgraph_can_remove_if_no_direct_calls_p): New function.
1105 (used_from_object_file_p): New functoin.
1106 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1107 references from aliases.
1108 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1109 * ipa-inline.c (check_caller_edge): New function.
1110 (want_inline_function_called_once_p): Use it; accept aliases called
1111 once, too.
1112 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1113
1114 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1115
1116 PR target/48454
1117 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1118 correctly for the case with Quad vectors.
1119
1120 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1121 Ira Rosen <ira.rosen@linaro.org>
1122
1123 PR tree-optimization/49352
1124 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1125 all, make sure loop_use_stmt after the loop is a def stmt of a used
1126 SSA_NAME that is the only one defined inside of the loop. Don't
1127 check for COND_EXPR and GIMPLE_BINARY_RHS.
1128 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1129 check_reduction is true.
1130
1131 2011-06-11 Jan Hubicka <jh@suse.cz>
1132
1133 PR middle-end/49373
1134 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1135
1136 2011-06-11 Jan Hubicka <jh@suse.cz>
1137
1138 PR middle-end/48836
1139 * ipa-inline-transform.c: Include tree-pass.h
1140 (inline_transform): Set TODO_update_ssa_only_virtuals.
1141 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1142
1143 2011-06-11 Jan Hubicka <jh@suse.cz>
1144
1145 PR middle-end/49378
1146 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1147 aliases and thunks.
1148
1149 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1150
1151 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1152 Take number of iterations to peel into account for equally frequent
1153 misalignment values.
1154
1155 2011-06-11 Jan Hubicka <jh@suse.cz>
1156
1157 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1158 aliases.
1159
1160 2011-06-11 Jan Hubicka <jh@suse.cz>
1161
1162 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1163 args.
1164 (ipa_update_after_lto_read): Likewise.
1165 (ipa_write_node_info): Do not sream call_with_var_arguments.
1166 (ipa_read_node_info): Likewise.
1167
1168 2011-06-11 Jan Hubicka <jh@suse.cz>
1169
1170 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1171
1172 2011-06-11 Jan Hubicka <jh@suse.cz>
1173
1174 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1175 (lto_symtab_resolve_can_prevail_p): Likewise.
1176 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1177 * cgraph.c (same_body_aliases_done): New global var.
1178 (cgraph_same_body_alias_1): Rename to ...
1179 (cgraph_create_function_alias): ... this one; reorg to new
1180 representation.
1181 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1182 record references when asked to.
1183 (cgraph_add_thunk): Fix formating.
1184 (cgraph_get_node): Kill same body alias code.
1185 (cgraph_node_for_asm): Likewise.
1186 (cgraph_remove_same_body_alias): Remove.
1187 (cgraph_remove_node): Kill same body alias code.
1188 (cgraph_mark_address_taken_node): Mark also the aliased function
1189 as having address taken.
1190 (dump_cgraph_node): Dump same body aliases.
1191 (cgraph_for_node_thunks_and_aliases): Update for new alias
1192 representation.
1193 (cgraph_for_node_and_aliases): Likewise.
1194 * cgraph.h (same_body): Kll pointer.
1195 (same_body_alias): Update comment.
1196 (same_body_aliases_done): Declare.
1197 (cgraph_remove_same_body_alias): Remove declaration.
1198 (cgraph_create_function_alias): Declare.
1199 (cgraph_process_same_body_aliases): Declare.
1200 (cgraph_function_with_gimple_body_p): Check for alias.
1201 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1202 (cgraph_alias_aliased_node): New function.
1203 (cgraph_function_node): Update for new aliases.
1204 (cgraph_function_or_thunk_node): Likewise.
1205 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1206 (inline_call): Remove dead aliases.
1207 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1208 name hack for same body aliases.
1209 (clone_of_p): Look through aliases.
1210 (verify_cgraph_node): Verify aliases.
1211 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1212 (cgraph_process_same_body_aliases): New function.
1213 (process_function_and_variable_attributes): Disable weakref warning on
1214 alias.
1215 (cgraph_analyze_functions): Handle aliases.
1216 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1217 (assemble_thunks): Rename to ...
1218 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1219 (cgraph_expand_function): Remove alias output code.
1220 (cgraph_output_in_order): Skip aliases.
1221 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1222 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1223 (ipa_record_reference): Do not assert on alias references.
1224 (ipa_ref_has_aliases_p): New function.
1225 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1226 (ipa_ref_has_aliases_p): Declare.
1227 * lto-cgraph.c (lto_output_node): Handle aliases.
1228 (input_node): Likewise.
1229 * lto-streamer-out.c (lto_output): Skip aliases.
1230 (produce_symtab): Kill same_body_alias code.
1231 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1232 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1233 * ipa-inline.c (update_caller_keys): Walk aliases.
1234 (inline_small_functions): Fix thinko in previous patch.
1235 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1236 (function_and_variable_visibility): Do not walk same body aliases.
1237 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1238 (ipa_pta_execute): Use it.
1239
1240 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1241
1242 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1243 (*vec_dupv2df): Rename from vec_dupv2df.
1244 (vec_dupv2df): New expander.
1245
1246 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1247
1248 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1249
1250 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1251
1252 * config/i386/i386.md: Use default value in "isa" attribute.
1253 * config/i386/sse.md: Ditto.
1254 * config/i386/mmx.md: Ditto.
1255
1256 2011-06-10 Wei Guozhi <carrot@google.com>
1257
1258 PR target/45335
1259 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1260 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1261 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1262 related peephole2.
1263 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1264 related peephole2.
1265 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1266 (arm_legitimate_ldrd_p): New prototype.
1267 (arm_output_ldrd): New prototype.
1268 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1269 (arm_legitimate_ldrd_p): New function.
1270 (arm_output_ldrd): New function.
1271
1272 2011-06-10 David Li <davidxl@google.com>
1273
1274 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1275 * passes.c (passr_eq): New function.
1276 (create_pass_tab): New function.
1277 (pass_traverse): New function.
1278 (dump_one_pass): New function.
1279 (dump_pass_list): New function.
1280 (dump_passes): New function.
1281
1282 2011-06-10 Jan Hubicka <jh@suse.cz>
1283
1284 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1285 setting the nothrow flag.
1286 * ipa-reference.c (propagate): Skip aliases.
1287 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1288 (propagate_nothrow): Skip aliases; do not update cgraph.
1289 (local_pure_const): Do not update cgraph.
1290 * tree-profile.c (tree_profiling): Do fixup_cfg.
1291
1292 2011-06-10 Jan Hubicka <jh@suse.cz>
1293
1294 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1295 (cgraph_local_node_p): ... here; handle aliases.
1296 (has_addr_references_p): Break out from ...;
1297 (cgraph_remove_unreachable_nodes) ... here.
1298
1299 2011-06-10 Jan Hubicka <jh@suse.cz>
1300
1301 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1302 * common.opt (flag_inline_functions_called_once): Do not
1303 initialize to 1.
1304
1305 2011-06-10 Jan Hubicka <jh@suse.cz>
1306
1307 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1308 (ipcp_initialize_node_lattices): Do not deal with aliases;
1309 Do not try to propagate through thunks.
1310 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1311
1312 2011-06-10 Jan Hubicka <jh@suse.cz>
1313
1314 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1315 for indirect calls.
1316 (ipa_read_node_info): Likewise.
1317
1318 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1319
1320 PR lto/49302
1321 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1322 (build_and_insert_call): Likewise.
1323 (build_and_insert_ref): New.
1324 (gimple_expand_builtin_pow): Minor cleanup.
1325 (gimple_expand_builtin_cabs): New.
1326 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1327
1328 2011-06-10 Jan Hubicka <jh@suse.cz>
1329
1330 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1331 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1332 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1333 (ipcp_propagate_stage): Skip aliases when propagating.
1334 (ipcp_need_redirect_p): Skip aliases.
1335 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1336 collect_callers_of_node.
1337 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1338 for aliases.
1339 (ipa_compute_jump_functions): Look through aliases.
1340
1341 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1342
1343 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1344
1345 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1346
1347 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1348 Adjust comments.
1349 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1350
1351 2011-06-10 Jan Hubicka <jh@suse.cz>
1352
1353 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1354 Update call of gimple_get_virt_method_for_binfo.
1355 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1356 refuse_thunks parameter.
1357 (gimple_fold_call): Update.
1358 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1359
1360 2011-06-10 Jan Hubicka <jh@suse.cz>
1361
1362 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1363 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1364 worker for cgraph_for_node_and_aliases.
1365 (convert_callers_for_node): Break out from ...
1366 (convert_callers): ... here.
1367 (modify_function): Use collect_callers_of_node.
1368 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1369
1370 2011-06-10 Richard Guenther <rguenther@suse.de>
1371
1372 PR tree-optimization/49361
1373 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1374 when not already in gimple form.
1375
1376 2011-06-10 Richard Guenther <rguenther@suse.de>
1377
1378 PR bootstrap/49344
1379 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1380 FOR_EACH_PHI_OR_STMT_USE.
1381
1382 2011-06-10 Jan Hubicka <jh@suse.cz>
1383
1384 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1385 (clone_inlined_nodes): ... here.
1386 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1387 to real destination prior inlining.
1388 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1389 can_early_inline_edge_p, want_early_inline_function_p,
1390 want_early_inline_function_p, want_inline_small_function_p,
1391 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1392 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1393 add_new_edges_to_heap, inline_small_functions, flatten_function,
1394 inline_always_inline_functions, early_inline_small_functions): Use
1395 cgraph_function_or_thunk_node.
1396 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1397 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1398 (do_estimate_edge_growth_1): Break out from ...
1399 (do_estimate_growth) ... here; walk aliases.
1400 (inline_generate_summary): Skip aliases.
1401
1402 2011-06-10 Richard Guenther <rguenther@suse.de>
1403
1404 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1405 forward when combining, visit inserted stmts when a stmt was changed.
1406
1407 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1408
1409 * tree.h (error_operand_p): Add.
1410 * dbxout.c (dbxout_type_fields): Use the latter.
1411 * c-decl.c (add_stmt): Likewise.
1412 * gimplify.c (omp_add_variable, omp_notice_variable,
1413 gimplify_scan_omp_clauses): Likewise.
1414
1415 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1416
1417 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1418 when a value is actually passed in regs.
1419
1420 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1421 Laurent Rougé <laurent.rouge@menta.fr>
1422
1423 * doc/invoke.texi (SPARC options): Add -mflat.
1424 * config/sparc/sparc.opt: Likewise.
1425 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1426 (sparc_flat_expand_prologue): Declare.
1427 (sparc_flat_expand_epilogue): Likewise.
1428 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1429 (CPP_ENDIAN_SPEC): Replace with...
1430 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1431 (CPP_SPEC): Adjust to above change.
1432 (EXTRA_SPECS): Likewise.
1433 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1434 (INCOMING_REGNO): Likewise.
1435 (OUTGOING_REGNO): Likewise.
1436 (LOCAL_REGNO): Likewise.
1437 (SETUP_FRAME_ADDRESSES): Likewise.
1438 (FIXED_REGISTERS): Set 0 for %fp.
1439 (CALL_USED_REGISTERS): Likewise.
1440 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1441 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1442 (RETURN_ADDR_REGNUM): Define.
1443 (RETURN_ADDR_RTX): Use it.
1444 (INCOMING_RETURN_ADDR_REGNUM): Define.
1445 (INCOMING_RETURN_ADDR_RTX): Use it.
1446 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1447 (EH_RETURN_REGNUM): Define.
1448 (EH_RETURN_STACKADJ_RTX): Use it.
1449 (EH_RETURN_HANDLER_RTX): Delete.
1450 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1451 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1452 Delete.
1453 (struct machine_function): Add frame_size, apparent_frame_size,
1454 frame_base_reg, frame_base_offset, n_global_fp_regs and
1455 save_local_in_regs_p fields.
1456 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1457 sparc_frame_base_offset, sparc_n_global_fp_regs,
1458 sparc_save_local_in_regs_p): New macros.
1459 (sparc_option_override): Error out if -fcall-saved-REG is specified
1460 for Out registers.
1461 (eligible_for_restore_insn): Fix formatting.
1462 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1463 (eligible_for_sibcall_delay): Likewise.
1464 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1465 (sparc_legitimate_address_p): Adjust to above change.
1466 (save_global_or_fp_reg_p): New predicate.
1467 (return_addr_reg_needed_p): Likewise.
1468 (save_local_or_in_reg_p): Likewise.
1469 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1470 (SORR_SAVE, SORR_RESTORE): Delete.
1471 (sorr_pred_t): New typedef.
1472 (sorr_act_t): New enum.
1473 (save_or_restore_regs): Rename to...
1474 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1475 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1476 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1477 mechanism. Add CFI information for double-word saves in 32-bit mode.
1478 (emit_adjust_base_to_offset): New function extracted from...
1479 (emit_save_or_restore_regs): ...this. Rename the rest to...
1480 (emit_save_or_restore_regs_global_fp_regs): ...this.
1481 (emit_save_or_restore_regs_local_in_regs): New function.
1482 (gen_create_flat_frame_[123]): New functions.
1483 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1484 (sparc_flat_expand_prologue): New function.
1485 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1486 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1487 (sparc_flat_expand_epilogue): New function.
1488 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1489 (output_return): Likewise.
1490 (output_sibcall): Likewise.
1491 (sparc_output_mi_thunk): Likewise.
1492 (sparc_frame_pointer_required): Likewise.
1493 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1494 function optimization.
1495 * config/sparc/sparc.md (flat): New attribute.
1496 (prologue): Add TARGET_FLAT handling.
1497 (save_register_window): Disable if TARGET_FLAT.
1498 (create_flat_frame_[123]): New patterns.
1499 (epilogue): Add TARGET_FLAT handling.
1500 (sibcall_epilogue): Likewise.
1501 (eh_return): New expander.
1502 (eh_return_internal): New insn and splitter.
1503 (return_internal): Add TARGET_FLAT handling.
1504 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1505 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1506 (nonlocal_goto): Add TARGET_FLAT handling.
1507 * config/sparc/t-elf: Add -mflat multilib.
1508 * config/sparc/t-leon: Likewise.
1509
1510 2011-06-10 Jan Hubicka <jh@suse.cz>
1511
1512 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1513 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1514 (self_recursive_p): Use cgraph_function_node.
1515 (propagate_pure_const): Likewise.
1516 (propagate_nothrow): Likewise.
1517 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1518 cgraph_function_node.
1519 (propagate_bits): Likewise.
1520 (propagate): Likewise.
1521
1522 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1523 Richard Earnshaw <rearnsha@arm.com>
1524
1525 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1526 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1527 (*thumb2_movdi_vfp): Delete.
1528 (*arm_movdi_vfp_cortexa8): Delete.
1529 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1530 (*movdi_vfp_cortexa8): Likewise.
1531
1532 2011-06-10 Richard Guenther <rguenther@suse.de>
1533
1534 * stor-layout.c (initialize_sizetypes): Give names to all
1535 sizetype kinds.
1536
1537 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1538
1539 PR tree-optimization/49318
1540 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1541 irrelevant pattern statements.
1542
1543 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1544
1545 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1546
1547 PR bootstrap/49354
1548 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1549 to last assignment.
1550
1551 2011-06-09 Jan Hubicka <jh@suse.cz>
1552
1553 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1554 do not recompute reachable flag.
1555 (cgraph_finalize_function, cgraph_analyze_functions): Set
1556 redefined_extern_inline here.
1557
1558 2011-06-09 Jan Hubicka <jh@suse.cz>
1559
1560 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1561 (cgraph_only_called_directly_p): ... this one; bring offline.
1562 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1563 varpool_used_from_object_file_p): Drop names from the declaratoin.
1564 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1565 collect_callers_of_node): New.
1566 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1567 (cgraph_edge_recursive_p): Use cgraph_function_node.
1568 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1569 (cgraph_node_cannot_be_local_p_1): Break out from ...
1570 (cgraph_node_can_be_local_p): ... here; walk aliases.
1571 (cgraph_for_node_thunks_and_aliases): New function.
1572 (cgraph_for_node_and_aliases): New function.
1573 (cgraph_make_node_local_1): Break out from ...
1574 (cgraph_make_node_local) ... here; use
1575 cgraph_for_node_thunks_and_aliases.
1576 (cgraph_set_nothrow_flag_1): Break out from ...
1577 (cgraph_set_nothrow_flag) ... here;
1578 use cgraph_for_node_thunks_and_aliases.
1579 (cgraph_set_const_flag_1): Break out from ...
1580 (cgraph_set_const_flag) ... here;
1581 use cgraph_for_node_thunks_and_aliases.
1582 (cgraph_set_pure_flag_1): Break out from ...
1583 (cgraph_set_pure_flag) ... here;
1584 use cgraph_for_node_thunks_and_aliases.
1585 (cgraph_propagate_frequency_1): Break out from ...
1586 (cgraph_propagate_frequency) ... here; use
1587 cgraph_for_node_thunks_and_aliases.
1588 (cgraph_used_from_object_file_p): Do not care about aliases.
1589 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1590 New functions.
1591 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1592
1593 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1594
1595 PR rtl-optimization/49154
1596 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1597 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1598 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1599 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1600 * config/cris/cris.h (cris_register_move_cost): Remove
1601 !TARGET_V32 code. Tweak comments.
1602
1603 2011-06-09 Jan Hubicka <jh@suse.cz>
1604
1605 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1606 address taken.
1607
1608 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1609
1610 PR rtl-optimization/49154
1611 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1612 is a matching slot in the hashtable, assign it to classes_ptr.
1613
1614 PR rtl-optimization/49154
1615 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1616 register classes.
1617 * doc/tm.texi: Regenerate.
1618
1619 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1620
1621 PR target/49307
1622 * config/sh/sh.md (UNSPEC_CHKADD): New.
1623 (chk_guard_add): New define_insn_and_split.
1624 (symGOT_load): Use chk_guard_add instead of blockage.
1625
1626 2011-06-09 Kai Tietz <ktietz@redhat.com>
1627
1628 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1629
1630 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1631
1632 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1633
1634 2011-06-09 Wei Guozhi <carrot@google.com>
1635
1636 PR target/46975
1637 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1638 (peephole2 for conditional move): Generate 16 bit instructions.
1639
1640 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1641
1642 * config/i386/i386.md (*movdi_internal_rex64): Merge
1643 alternatives 6 and 8.
1644
1645 2011-06-09 David Li <davidxl@google.com>
1646
1647 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1648 * passes.c (passr_eq): New function.
1649 (create_pass_tab): New function.
1650 (pass_traverse): New function.
1651 (dump_one_pass): New function.
1652 (dump_pass_list): New function.
1653 (dump_passes): New function.
1654
1655 2011-06-09 David Li <davidxl@google.com>
1656
1657 * tree-complex.c (tree_lower_complex): Gate cleanup.
1658 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1659 (execute_optimize_stdarg): Ditto.
1660 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1661 (execute_cleanup_eh_1): Ditto.
1662 (execute_cleanup_eh): Ditto.
1663 * gcse.c (gate_rtl_pre): Ditto.
1664 (execute_rtl_pre): Ditto.
1665 * except.c (finish_eh_generation): Ditto.
1666 (convert_to_eh_region_ranges): Ditto.
1667 * cprop.c (one_cprop_pass): Ditto.
1668
1669 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1670
1671 PR target/48673
1672 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1673 in all basic blocks.
1674
1675 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1676
1677 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1678 (HAVE_ENABLE_EXECUTE_STACK): Define.
1679 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1680 (HAVE_ENABLE_EXECUTE_STACK): Define.
1681 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1682 (HAVE_ENABLE_EXECUTE_STACK): Define.
1683 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1684 (ENABLE_EXECUTE_STACK): Remove.
1685 (HAVE_ENABLE_EXECUTE_STACK): Define.
1686 [IN_LIBGCC2]: Don't include <windows.h>.
1687 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1688 (HAVE_ENABLE_EXECUTE_STACK): Define.
1689 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1690 (HAVE_ENABLE_EXECUTE_STACK): Define.
1691 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1692 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1693 (HAVE_ENABLE_EXECUTE_STACK): Define.
1694 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1695 (HAVE_ENABLE_EXECUTE_STACK): Define.
1696 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1697 (HAVE_ENABLE_EXECUTE_STACK): Define.
1698 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1699 (HAVE_ENABLE_EXECUTE_STACK): Define.
1700 * config/alpha/alpha.c (alpha_trampoline_init): Test
1701 HAVE_ENABLE_EXECUTE_STACK.
1702 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1703 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1704 (sparc64_initialize_trampoline): Likewise.
1705 * libgcc2.c [L_enable_execute_stack]: Remove.
1706 * system.h (ENABLE_EXECUTE_STACK): Poison.
1707 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1708 * doc/tm.texi: Regenerate.
1709 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1710
1711 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1712
1713 PR middle-end/49308
1714 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1715 variable. After resetting and rescanning insn continue with previous
1716 statement.
1717
1718 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719
1720 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1721 (gcc_cv_ld_hidden): Likewise.
1722 * configure: Regenerate.
1723 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1724 (ix86_stack_protect_fail): Mark unused.
1725 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1726 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1727 [TARGET_MACHO]: Don't define.
1728 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1729 (TARGET_STACK_PROTECT_FAIL): Likewise.
1730 (rs6000_stack_protect_fail): Mark unused.
1731 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1732 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1733
1734 2011-06-08 Andi Kleen <ak@linux.intel.com>
1735
1736 * varasm.c (get_section): Print location of other conflict
1737 for section conflicts.
1738
1739 2011-06-08 Andi Kleen <ak@linux.intel.com>
1740
1741 * config/i386/driver-i386.c (host_detect_local_cpu):
1742 Add model 0x2d Intel CPU.
1743
1744 2011-06-08 Andi Kleen <ak@linux.intel.com>
1745
1746 * reginfo.c (global_regs_decl): Add.
1747 (globalize_reg): Add decl parameter. Compute location. Pass location
1748 to warnings and add inform. Store decl in global_regs_decl.
1749 * rtl.h (globalize_reg): Update prototype.
1750 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1751
1752 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1753
1754 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1755
1756 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1757
1758 PR target/49305
1759 * config/sh/predicates.md (general_movsrc_operand): Check
1760 mode for memory with indexed address for QI and HImode.
1761 (general_movdst_operand): Likewise.
1762
1763 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1764
1765 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1766
1767 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1768
1769 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1770 (num_ssa_operands): Likewise.
1771 (op_iter_init_phiuse): Forward-declare.
1772 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1773
1774 2011-06-08 Nick Clifton <nickc@redhat.com>
1775
1776 * doc/invoke.texi (ARM Options): Update description of
1777 -mthumb-interwork.
1778
1779 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1782 unknown Intel family 0x6 CPUs.
1783
1784 2011-06-08 Martin Jambor <mjambor@suse.cz>
1785
1786 * tree-sra.c (mark_rw_status): Removed.
1787 (analyze_access_subtree): New parameter parent instead of
1788 mark_read and mark_write, propagate from that.
1789
1790 2011-06-08 Julian Brown <julian@codesourcery.com>
1791
1792 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1793 for double-precision helper functions in hard-float mode if only
1794 single-precision arithmetic is supported in hardware.
1795
1796 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1797
1798 PR rtl-optimization/49303
1799 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1800 code_motion_path_driver returned 0 or 1.
1801 (sel_region_finish): Clear h_d_i_d.
1802
1803 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1804
1805 * config/sh/sh.c (prepare_move_operands): Set pic register
1806 appropriately for global and local dynamic tls models even
1807 if flag_pic is unset.
1808
1809 2011-06-07 Jason Merrill <jason@redhat.com>
1810
1811 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1812
1813 2011-06-07 Xinliang David Li <davidxl@google.com>
1814 * passes.c (enable_disable_pass): Handle assembler name.
1815 (is_pass_explicitly_enabled_or_disabled): Ditto.
1816
1817 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1818
1819 PR tree-optimization/48497
1820 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1821
1822 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1823
1824 PR tree-optimization/46728
1825 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1826 to use gimple_val_nonnegative_real_p.
1827 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1828 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1829
1830 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1831
1832 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1833
1834 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1835
1836 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1837 constant vectors.
1838
1839 2011-06-07 Richard Guenther <rguenther@suse.de>
1840
1841 * stor-layout.c (initialize_sizetypes): Initialize all
1842 sizetypes based on target definitions.
1843 (set_sizetype): Remove.
1844 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1845 * tree.h (set_sizetype): Remove.
1846
1847 2011-06-07 Nick Clifton <nickc@redhat.com>
1848
1849 * config.gcc: Unify V850 architecture options and add support for
1850 newer V850 architectures.
1851 * config/v850/t-v850e: Delete.
1852
1853 2011-06-07 Richard Guenther <rguenther@suse.de>
1854
1855 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1856 Call set_sizetype from here.
1857
1858 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1859
1860 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1861 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1862
1863 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1864 Andrew Stubbs <ams@codesourcery.com>
1865
1866 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1867 multiplies.
1868 * doc/md.texi (Canonicalization of Instructions): Document widening
1869 multiply canonicalization.
1870
1871 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1872
1873 PR gcov-profile/49299
1874 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1875
1876 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1877
1878 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1879 a pointer.
1880 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1881 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1882 vect_recog_pow_pattern): Likewise.
1883 (vect_pattern_recog_1): Remove declaration.
1884 (widened_name_p): Remove declaration. Add new argument to specify
1885 whether to check that both types are either signed or unsigned.
1886 (vect_recog_widen_mult_pattern): Update documentation. Handle
1887 unsigned patterns and multiplication by constants.
1888 (vect_pattern_recog_1): Update vect_recog_func references. Use
1889 statement information from the statement returned from pattern
1890 detection functions.
1891 (vect_pattern_recog): Update vect_recog_func reference.
1892 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1893 multiplication by a constant use the type of the other operand.
1894
1895 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1896
1897 PR rtl-optimization/49145
1898 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1899
1900 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1901
1902 PR debug/49262
1903 * dwarf2out.c (native_encode_initializer): Decrement count in each
1904 iteration.
1905
1906 PR debug/49294
1907 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1908 non-MODE_INT modes.
1909
1910 PR c++/49264
1911 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1912 if stmt folded into nothing.
1913 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1914 a bb folded into nothing, just update cgraph edges and move to next bb.
1915 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1916 to be NULL. Don't compute count and frequency if new_call is NULL.
1917
1918 2011-06-04 Diego Novillo <dnovillo@google.com>
1919
1920 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1921 (cgraph.o): Likewise.
1922 (cgraphunit.o): Likewise.
1923 * cgraphunit.c: Include lto-streamer.h
1924 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1925 if LTO is enabled.
1926 * lto-streamer-in.c (unpack_value_fields): Call
1927 streamer_hooks.unpack_value_fields if set.
1928 (lto_materialize_tree): For unhandled nodes, first try to
1929 call lto_streamer_hooks.alloc_tree, if it exists.
1930 (lto_input_ts_decl_common_tree_pointers): Move reading of
1931 DECL_INITIAL to lto_streamer_read_tree.
1932 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1933 (lto_streamer_read_tree): New.
1934 (lto_reader_init): Rename from lto_init_reader.
1935 Move initialization code to lto/lto.c.
1936 * lto-streamer-out.c (pack_value_fields): Call
1937 streamer_hooks.pack_value_fields if set.
1938 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1939 call streamer_hooks.indexable_with_decls_p before giving up.
1940 (lto_output_ts_decl_common_tree_pointers): Move handling
1941 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1942 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1943 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1944 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1945 (lto_streamer_write_tree): New.
1946 (lto_output): Call lto_streamer_init directly.
1947 (lto_writer_init): Remove.
1948 * lto-streamer.c (streamer_hooks): New.
1949 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1950 instead of lto_preload_common_nodes.
1951 (lto_is_streamable): Move from lto-streamer.h
1952 (lto_streamer_hooks_init): New.
1953 (streamer_hooks): New.
1954 (streamer_hooks_init): New.
1955 * lto-streamer.h (struct output_block): Forward declare.
1956 (struct lto_input_block): Likewise.
1957 (struct data_in): Likewise.
1958 (struct bitpack_d): Likewise.
1959 (struct streamer_hooks): Declare.
1960 (streamer_hooks): Declare.
1961 (lto_streamer_hooks_init): Declare.
1962 (lto_streamer_write_tree): Declare.
1963 (lto_streamer_read_tree): Declare.
1964 (streamer_hooks_init): Declare.
1965 (lto_is_streamable): Move to lto-streamer.c
1966
1967 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1968
1969 * longlong.h (smul_ppmm): The resulting register pair contains the
1970 higher order word first.
1971
1972 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1973
1974 PR tree-optimization/46728
1975 * builtins.c (powi_table): Remove.
1976 (powi_lookup_cost): Remove.
1977 (powi_cost): Remove.
1978 (expand_powi_1): Remove.
1979 (expand_powi): Remove.
1980 (expand_builtin_pow_root): Remove.
1981 (expand_builtin_pow): Remove.
1982 (expand_builtin_powi): Eliminate handling of constant exponent.
1983 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1984
1985 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1986
1987 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1988
1989 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1990
1991 * dce.c (reset_unmarked_insns_debug_uses): New.
1992 (delete_unmarked_insns): Skip debug insns.
1993 (prescan_insns_for_dce): Likewise.
1994 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1995 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1996 active reg can be found.
1997 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1998 (convert_regs_1): Use it.
1999
2000 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2001
2002 * tree-pretty-print.c (dump_function_header): Add flags.
2003 Don't dump decl_uid with nouid.
2004 * tree-pretty-print.h (dump_function_header): Adjust.
2005 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2006 * passes.c (pass_init_dump_file): Pass dump_flags on.
2007 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2008
2009 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2010
2011 PR bootstrap/49270
2012 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2013
2014 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2015
2016 PR tree-optimization/49243
2017 * calls.c (setjmp_call_p): Also check if fndecl has the
2018 returns_twice attribute.
2019
2020 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2021
2022 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2023 -ffast-math etc.
2024
2025 2011-06-06 Richard Henderson <rth@redhat.com>
2026 Georg-Johann Lay <avr@gjlay.de>
2027
2028 PR target/42210
2029 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2030 New predicates.
2031 * config/avr/avr.md ("insv"): New insn expander.
2032 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2033 "*insv.not.io", "*insv.reg"): New insns.
2034
2035 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2036
2037 PR target/49285
2038 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2039 to nonimmediate_operand from memory_operand for the operand that is to
2040 be forced to memory by the expander. Lose the constraints.
2041
2042 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2043
2044 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2045 EH return when delayed branches are disabled.
2046
2047 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2048
2049 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2050 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2051 calculation.
2052 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2053 Simplify MODE_V1DF and MODE_V2SF handling.
2054 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2055 Simplify MODE_SF handling.
2056
2057 2011-06-04 Jan Hubicka <jh@suse.cz>
2058
2059 PR tree-optimization/48893
2060 PR tree-optimization/49091
2061 PR tree-optimization/49179
2062 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2063 Bounds check.
2064
2065 2011-06-04 Jan Hubicka <jh@suse.cz>
2066
2067 PR lto/48954
2068 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2069 bitmaps.
2070
2071 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2072
2073 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2074
2075 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2076
2077 PR target/49281
2078 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2079 to be strictly smaller than 1 << shiftcount.
2080
2081 2011-06-04 Jan Hubicka <jh@suse.cz>
2082
2083 PR tree-optimize/48929
2084 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2085 of empty predicate.
2086
2087 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2088
2089 PR debug/48333
2090 * calls.c (emit_call_1): Prefer the __builtin declaration of
2091 builtin functions.
2092
2093 2011-06-03 Diego Novillo <dnovillo@google.com>
2094
2095 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2096 (lto_input_tree_pointers): Likewise.
2097 * lto-streamer-out.c (pack_value_fields): Likewise.
2098 (lto_output_tree_pointers): Likewise.
2099 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2100 and OPTIMIZATION_NODE.
2101
2102 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2103
2104 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2105 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2106 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2107 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2108 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2109 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2110 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2111 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2112 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2113 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2114 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2115 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2116 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2117 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2118 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2119 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2120 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2121 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2122 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2123 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2124 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2125 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2126 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2127 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2128 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2129 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2130 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2131 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2132 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2133 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2134 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2135 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2136 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2137 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2138 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2139 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2140 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2141 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2142 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2143 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2144 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2145 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2146 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2147 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2148 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2149 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2150 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2151 * system.h (MD_UNWIND_SUPPORT): Poison.
2152 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2153 * doc/tm.texi: Regenerate.
2154 * unwind-dw2.c: Include md-unwind-support.h instead of
2155 MD_UNWIND_SUPPORT.
2156 * config/ia64/unwind-ia64.c: Likewise.
2157 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2158
2159 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2160
2161 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2162
2163 2011-06-03 Richard Henderson <rth@redhat.com>
2164 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2165
2166 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2167 (sigill_hdlr): Correct insn, insn size.
2168 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2169
2170 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2171
2172 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2173 t-slibgcc-dummy.
2174 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2175 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2176 * config/mips/t-iris: Remove.
2177 * config/mips/t-irix6: New file.
2178 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2179
2180 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2181
2182 * Makefile.in (LIB2ADDEHDEP): Remove.
2183 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2184 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2185 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2186 * config/t-darwin (LIB2ADDEHDEP): Remove.
2187 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2188 * config/t-linux (LIB2ADDEHDEP): Remove.
2189
2190 2011-06-03 Diego Novillo <dnovillo@google.com>
2191
2192 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2193 (lto_register_var_decl_in_symtab): Likewise.
2194 (lto_register_function_decl_in_symtab): Likewise.
2195 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2196 logic to uniquify_nodes.
2197
2198 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2199
2200 * config/alpha/t-osf5: Remove.
2201 * config/alpha/t-osf-pthread: Remove.
2202 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2203 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2204
2205 2011-06-03 Julian Brown <julian@codesourcery.com>
2206
2207 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2208 (strongarm1110): Use strongarm tuning.
2209 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2210 * config/arm/arm.c (arm_strongarm_tune): New.
2211 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2212 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2213 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2214 setting, using previous defaults or 1 for Cortex-A5.
2215 (arm_option_override): Set max_insns_skipped from current tuning.
2216
2217 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2218
2219 * doc/install.texi (Options specification): Document --with-specs.
2220
2221 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2222
2223 * config/arm/neon.md (orndi3_neon): Actually split it.
2224
2225 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2226
2227 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2228 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2229
2230 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2231
2232 PR debug/47590
2233 * target.def (delay_sched2, delay_vartrack): New.
2234 * doc/tm.texi.in: Update.
2235 * doc/tm.texi: Rebuild.
2236 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2237 * var-tracking.c (gate_handle_var_tracking): Likewise.
2238 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2239 (bfin_flag_var_tracking): Drop.
2240 (output_file_start): Don't save and override flag_var_tracking.
2241 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2242 (bfin_reorg): Test original variables.
2243 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2244 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2245 (ia64_flag_var_tracking): Drop.
2246 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2247 (ia64_file_start): Don't save and override flag_var_tracking.
2248 (ia64_override_options_after_change): Ditto
2249 flag_schedule_insns_after_reload.
2250 (ia64_reorg): Test original variables.
2251 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2252 (picochip_flag_var_tracking): Drop.
2253 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2254 (picochip_option_override): Don't save and override
2255 flag_schedule_insns_after_reload.
2256 (picochip_asm_file_start): Ditto flag_var_tracking.
2257 (picochip_reorg): Test original variables.
2258 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2259 (TARGET_DELAY_VARTRACK): Define.
2260 (spu_var_tracking): New.
2261 (spu_machine_dependent_reorg): Call it.
2262 (asm_file_start): Don't save and override flag_var_tracking.
2263
2264 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2265
2266 PR target/49163
2267 * config/sh/predicates.md (general_movsrc_operand): Return 0
2268 for memory and memory subreg of which address is an invalid
2269 indexed address for QI and HImode.
2270 (general_movdst_operand): Likewise.
2271
2272 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2273
2274 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2275 edges only, when there is a non-local label in the function.
2276 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2277
2278 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2279
2280 * config/i386/constraints.md (Y3): New register constraint.
2281 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2282 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2283 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2284 *sse2_interleave_lowv2df.
2285
2286 2011-06-02 Julian Brown <julian@codesourcery.com>
2287
2288 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2289 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2290 (arm_cortex_a5_tune): New.
2291
2292 2011-06-02 Julian Brown <julian@codesourcery.com>
2293
2294 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2295 * config/arm/arm.c (arm_default_branch_cost): New.
2296 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2297 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2298 (arm_fa726_tune): Set branch_cost field using
2299 arm_default_branch_cost.
2300 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2301 current_tune structure.
2302 * dojump.c (tm_p.h): Include file.
2303
2304 2011-06-02 Julian Brown <julian@codesourcery.com>
2305
2306 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2307 tuning.
2308 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2309 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2310 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2311 field.
2312 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2313 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2314 (arm_fa726te_tune): Add prefer_constant_pool setting.
2315 (arm_v6t2_tune, arm_cortex_tune): New.
2316 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2317 prefer_constant_pool setting.
2318
2319 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2320
2321 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2322 switch statement.
2323 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2324 (*movdf_internal) <case 6,7,8>: Ditto.
2325
2326 * config/i386/constraints.md (Y4): New register constraint.
2327 * config/i386/sse.md (vec_set<mode>_0): Merge with
2328 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2329 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2330 *vec_extractv2di_1_sse.
2331 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2332 and *vec_concatv2di_rex64_sse.
2333
2334 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2335
2336 PR target/48807
2337 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2338 of cgraph_local_info for null before attempting to use it.
2339
2340 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2341
2342 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2343 (current_function_dynamic_alloc_count): Delete.
2344 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2345 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2346 (expand_builtin_update_setjmp_buf): Remove dead code.
2347 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2348 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2349 support.
2350 * function.c (instantiate_virtual_regs): Likewise.
2351 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2352 for a block with a single abnormal incoming edge.
2353 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2354 (SETJMP_VIA_SAVE_AREA): Delete.
2355 * config/sparc/sparc-protos.h (load_got_register): Declare.
2356 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2357 (load_got_register): Make global.
2358 (sparc_frame_pointer_required): Add 'static'.
2359 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2360 (sparc_builtin_setjmp_frame_value): New function.
2361 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2362 (save_stack_nonlocal): New expander.
2363 (restore_stack_nonlocal): Likewise.
2364 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2365 (nonlocal_goto_internal): New insn.
2366 (goto_handler_and_restore): Delete.
2367 (builtin_setjmp_setup): Likewise.
2368 (do_builtin_setjmp_setup): Likewise.
2369 (setjmp): Likewise.
2370 (builtin_setjmp_receiver): New expander.
2371
2372 2011-06-01 David Li <davidxl@google.com>
2373
2374 PR middle-end/49261
2375 * tree-pretty-print.c (dump_function_header): Format cleanup.
2376
2377 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2378
2379 PR target/49238
2380 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2381 needed when original operands are used for msw_skip comparison.
2382
2383 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2384
2385 PR debug/49250
2386 * var-tracking.c (add_uses, add_stores): Don't call
2387 cselib_subst_to_values on ENTRY_VALUE.
2388
2389 2011-06-01 Diego Novillo <dnovillo@google.com>
2390
2391 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2392 output_record_start with LTO_null instead of output_zero.
2393 (lto_output_ts_binfo_tree_pointers): Likewise.
2394 (lto_output_tree): Likewise.
2395 (output_eh_try_list): Likewise.
2396 (output_eh_region): Likewise.
2397 (output_eh_lp): Likewise.
2398 (output_eh_regions): Likewise.
2399 (output_bb): Likewise.
2400 (output_function): Likewise.
2401 (output_unreferenced_globals): Likewise.
2402 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2403 instead of NUM_TREE_CODES.
2404 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2405 (lto_output_int_in_range): Change << to >> when shifting VAL.
2406
2407 2011-06-01 Diego Novillo <dnovillo@google.com>
2408
2409 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2410 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2411
2412 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2413
2414 PR target/45074
2415 * optabs.h (valid_multiword_target_p): Declare.
2416 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2417 doing multi-word operations.
2418 * optabs.c (expand_binop): Likewise.
2419 (expand_doubleword_bswap): Likewise.
2420 (expand_absneg_bit): Likewise.
2421 (expand_unop): Likewise.
2422 (expand_copysign_bit): Likewise.
2423 (multiword_target_p): New function.
2424
2425 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2426
2427 PR rtl-optimization/48830
2428 PR rtl-optimization/48808
2429 PR rtl-optimization/48792
2430 * reload.c (push_reload): Check contains_reg_of_mode.
2431 * reload1.c (strip_paradoxical_subreg): New function.
2432 (gen_reload_chain_without_interm_reg_p): Use it to handle
2433 paradoxical subregs.
2434 (emit_output_reload_insns, gen_reload): Likewise.
2435
2436 2011-06-01 David Li <davidxl@google.com>
2437
2438 * predict.c : Change pass name
2439 * ipa.c: Ditto.
2440 * dce.c: Ditto.
2441 * tree-profile.c: Ditto.
2442 * except.c: Ditto.
2443
2444 2011-06-01 David Li <davidxl@google.com>
2445
2446 * tree-pretty-print.c (dump_function_header): New function.
2447 * final.c (rest_of_clean_state): Use header dumper.
2448 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2449 * passes.c (pass_init_dump_file): Use header dumper.
2450
2451 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2452
2453 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2454 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2455 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2456 New functions.
2457 (mem_loc_descriptor): Use them.
2458
2459 * var-tracking.c (create_entry_value): New function.
2460 (vt_add_function_parameter): Use it.
2461
2462 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2463
2464 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2465 Include <signal.h>, <ucontext.h>.
2466 (sigill_caught): Define.
2467 (sigill_hdlr): New function.
2468 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2469 insns can be executed.
2470 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2471 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2472
2473 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2474
2475 * config/t-slibgcc-darwin: Move to ...
2476 * config/t-slibgcc-dummy: ... this. Clarify comments.
2477 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2478 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2479 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2480 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2481 Remove i386/t-crtstuff from tmake_file.
2482 (i[34567]86-*-solaris2*): Remove t-svr4,
2483 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2484 t-slibgcc-dummy.
2485 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2486 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2487 sparc/t-crtfm from tmake_file.
2488 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2489 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2490 Remove extra_parts.
2491 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2492 * config/i386/t-nwld (SHLIB_LINK): Remove.
2493 * config/i386/t-rtems-i386: Rename to ...
2494 * config/i386/t-rtems: ... this.
2495 ($(T)crti.o, $(T)crtn.o): Remove.
2496 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2497 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2498 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2499 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2500 EXTRA_MULTILIB_PARTS): Remove.
2501 * config/sparc/t-sol2-64: Likewise.
2502 * config/sparc/t-sol2: Remove.
2503 * config/sparc/t-crtin: Remove.
2504 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2505 * config/i386/gmon-sol2.c: Remove.
2506 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2507 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2508 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2509 * config/i386/sol2-gc1.asm: Remove.
2510 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2511 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2512 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2513 * config/t-slibgcc-sld: Remove.
2514
2515 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2516
2517 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2518 base_type_for_mode with op_mode instead of mode.
2519
2520 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2521
2522 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2523 Cortex-A15.
2524 * config/arm/arm-tune.md: Regenerate.
2525 * config/arm/arm-tables.opt: Regenerate.
2526 * config/arm/arm.c (FL_DIV): Rename...
2527 (FL_THUMB_DIV): ... to this.
2528 (FL_ARM_DIV): Define.
2529 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2530 (arm_arch_hwdiv): Remove.
2531 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2532 (arm_issue_rate): Add cortexr5.
2533 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2534 __ARM_ARCH_EXT_IDIV__.
2535 (TARGET_IDIV): Define.
2536 (arm_arch_hwdiv): Remove.
2537 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2538 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2539 (divsi3, udivsi3): New patterns.
2540 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2541 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2542
2543 2011-06-01 Martin Jambor <mjambor@suse.cz>
2544
2545 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2546 * ipa-utils.c (searchc): Set scc_no.
2547
2548 2011-06-01 Martin Jambor <mjambor@suse.cz>
2549
2550 * ipa-utils.c (searchc_env): New field allow_overwritable.
2551 (searchc): do not ignore edges to overwritable nodes if indicated
2552 by env->allow_overwritable.
2553 (ipa_reduced_postorder): Set env.allow_overwritable.
2554
2555 2011-06-01 Richard Guenther <rguenther@suse.de>
2556
2557 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2558 char_type_node.
2559 * lto-streamer.c (lto_record_common_node): Take node pointer,
2560 do not register types.
2561 (lto_preload_common_nodes): Explicitly skip preloading nodes
2562 that differ between frontends.
2563
2564 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2565
2566 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2567 NON_FLOAT_REGS.
2568
2569 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2570
2571 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2572 parameter value for dump. Dump cost on outermost call only.
2573 (rs6000_memory_move_cost): Dump cost on outermost call only.
2574
2575 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2576
2577 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2578 DW_OP_GNU_convert ops.
2579
2580 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2581 cselib_preserve_constants.
2582 (cselib_lookup_1): If cselib_preserve_constants,
2583 a new VALUE is being created for REG and there is a VALUE for the
2584 same register in wider mode, add another loc with lowpart SUBREG of
2585 the wider VALUE.
2586 (cselib_subst_to_values): Handle ENTRY_VALUE.
2587 * var-tracking.c (replace_expr_with_values): Return NULL for
2588 ENTRY_VALUE too.
2589 * dwarf2out.c (convert_descriptor_to_signed): New function.
2590 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2591 instead of two shifts.
2592 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2593 the right mode if needed.
2594 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2595 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2596 convert_descriptor_to_signed.
2597 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2598 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2599
2600 PR target/48688
2601 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2602
2603 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2604
2605 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2606 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2607 (SWI248x): New mode iterator, rename from X87MODEI.
2608 (X87MODEI): Remove mode iterator.
2609 (X87MODEI12): Ditto.
2610 (SSEMODEI24): Ditto.
2611
2612 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2613
2614 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2615 * doc/invoke.texi: Document max-vartrack-expr-depth.
2616 * var-tracking.c (EXPR_DEPTH): New.
2617 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2618
2619 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2620
2621 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2622 * config/i386/sse.md: Add n to negated FMA pattern names.
2623
2624 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2625
2626 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2627
2628 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2629
2630 * gengtype-state.c (read_state_params_structs): Initialize previous.
2631
2632 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2633
2634 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2635 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2636
2637 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2638
2639 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2640 registers. Penalize F*r->o alternative to prevent partial memory
2641 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2642 CONST_DOUBLE immediates when optimizing function for size. Do not move
2643 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2644 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2645 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2646 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2647 alternatives.
2648 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2649
2650 (fp_register_operand splitters): Use fp_register_operand
2651 constraint. Do not use FP_REG_P in insn condition.
2652 (any_fp_register_operand splitters): Use any_fp_register_operand
2653 constraint. Do not use ANY_FP_REG_P in insn condition.
2654
2655 2011-05-31 Jan Hubicka <jh@suse.cz>
2656
2657 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2658 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2659 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2660 (lto_output_edge): Use output_enum and var_len_unsigned.
2661 (lto_output_varpool_node): Likewise.
2662 (input_overwrite_node): Do not take resolution parameter;
2663 extract it from a bitpack.
2664 (input_node): Do not read resolution; use input_enum and
2665 var_len_unsigned.
2666 (input_varpool_node): Likewise.
2667 (input_edge): Likewise.
2668 (input_cgraph_1): Likewise.
2669
2670 2011-05-31 Richard Guenther <rguenther@suse.de>
2671
2672 * gimple.c (gimple_register_canonical_type): Do not register
2673 any types via gimple_register_type.
2674
2675 2011-05-31 Jan Hubicka <jh@suse.cz>
2676
2677 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2678 of thunks.
2679
2680 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR rtl-optimization/49235
2683 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2684 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2685
2686 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2687
2688 PR tree-optimization/49093
2689 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2690 data references.
2691
2692 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2693
2694 PR debug/49047
2695 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2696 for concrete functions containing the code of cloned functions.
2697
2698 2011-05-31 Richard Guenther <rguenther@suse.de>
2699
2700 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2701 to ...
2702 (forward_propagate_into_comparison_1): ... this.
2703 (forward_propagate_comparison): Rename to ...
2704 (forward_propagate_into_comparison): ... this. Split out
2705 real forward propagation code to ...
2706 (forward_propagate_comparison): ... this.
2707 (forward_propagate_into_gimple_cond): Remove looping.
2708 (forward_propagate_into_cond): Likewise.
2709 (simplify_not_neg_expr): Return whether we have done something.
2710 (simplify_gimple_switch): Likewise.
2711 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2712 (ssa_forward_propagate_and_combine): ... this. Re-structure
2713 to do a forward forward-propagation walk on BBs and a backward
2714 stmt combining walk on BBs. Consistently re-scan changed statements.
2715 (pass_forwprop): Adjust.
2716
2717 2011-05-30 Ian Lance Taylor <iant@google.com>
2718
2719 * godump.c (go_format_type): Correct length of name added to
2720 obstack for anonymous field.
2721
2722 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2723
2724 PR target/49186
2725 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2726 part of the second operand is 0.
2727
2728 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2729
2730 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2731 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2732 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2733 (*movdf_internal_rex64): Do not penalize F->r alternative.
2734 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2735 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2736 when optimizing function for size. Do not move CONST_DOUBLEs
2737 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2738 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2739 SUBREGs. Do not check for MEM_P operands in the insn condition,
2740 check for ANY_FP_REGNO_P instead.
2741 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2742 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2743 function for speed.
2744 * config/i386/i386.c (ix86_option_override_internal): Do not
2745 set TARGET_INTEGER_DFMODE_MOVES here.
2746
2747 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2748
2749 PR target/49168
2750 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2751
2752 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2753
2754 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2755 DW_TAG_rvalue_reference_type even for
2756 -gdwarf-4 -fno-debug-types-section.
2757
2758 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2759
2760 PR tree-optimization/46728
2761 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2762 (build_and_insert_binop): New.
2763 (gimple_expand_builtin_pow): Reorder args for
2764 build_and_insert_call; use build_and_insert_binop; add more
2765 optimizations for fractional exponents.
2766
2767 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2768
2769 PR bootstrap/49190
2770
2771 Revert:
2772 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2773
2774 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2775 tree_common.
2776 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2777 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2778 TS_BASE instead of TS_COMMON.
2779 * varasm.c (assemble_name): Remove assert.
2780
2781 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2782
2783 * config.gcc: Keep obselete list sorted.
2784
2785 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2786 Eric Botcazou <ebotcazou@adacore.com>
2787
2788 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2789 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2790 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2791 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2792 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2793
2794 2011-05-30 Richard Guenther <rguenther@suse.de>
2795
2796 * gimple.c (gimple_types_compatible_p_1): Compare record
2797 and union type members properly.
2798
2799 2011-05-30 Richard Guenther <rguenther@suse.de>
2800
2801 PR tree-optimization/49210
2802 * ipa-split.c (split_function): Care for the case where the call
2803 result is not trivially convertible to the result holding variable.
2804
2805 2011-05-30 Richard Guenther <rguenther@suse.de>
2806
2807 PR tree-optimization/49218
2808 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2809 overflow occured.
2810
2811 2011-05-30 Richard Guenther <rguenther@suse.de>
2812
2813 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2814 New function split out from ...
2815 (forward_propagate_into_gimple_cond): ... here. Adjust.
2816 (forward_propagate_into_cond): Likewise.
2817 (forward_propagate_comparison): Also propagate into
2818 comparisons on assignment RHS. Change return value to
2819 behave similar to forward_propagate_into_cond.
2820 (tree_ssa_forward_propagate_single_use_vars): Handle
2821 strict-overflow warnings properly for forward_propagate_comparison.
2822
2823 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2824
2825 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2826 from plugin linker.
2827 * configure: Regenerate.
2828
2829 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2830
2831 PR tree-optimization/49199
2832 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2833 non-reduction operands are either defined in the loop or by induction.
2834
2835 2011-05-29 Xinliang David Li <davidxl@google.com>
2836
2837 * opts-global.c (handle_common_deferred_options): Handle new options.
2838 * passes.c (register_one_dump_file): Call register_pass_name.
2839 (execute_one_pass): Check explicit enable/disable flag.
2840 (passr_hash): New function.
2841 (passr_eq): Ditto.
2842 (register_pass_name): Ditto.
2843 (get_pass_by_name): Ditto.
2844 (pass_hash): Ditto.
2845 (pass_eq): Ditto.
2846 (enable_pass): Ditto.
2847 (disable_pass): Ditto.
2848 (is_pass_explicitly_enabled_or_disabled): Ditto.
2849
2850 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2851
2852 * config/i386/i386.md (*movoi_internal_avx): Use
2853 standard_sse_constant_opcode for alternative 0.
2854 (*movti_internal_sse): Ditto.
2855 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2856 alternative 2.
2857 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2858 sselog1 type moves.
2859 (*movsi_internal): Ditto.
2860 (*movdi_internal): Ditto. Add ssecvt type moves.
2861
2862 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2863
2864 PR target/48830
2865 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2866
2867 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2868
2869 PR rtl-optimization/49095
2870 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2871 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2872
2873 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2874
2875 PR target/43995
2876 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2877 recurse_p argument. Only follow register copies if it is set,
2878 and prevent mips_find_pic_call_symbol from recursing.
2879 (mips_find_pic_call_symbol): Add a recurse_p argument.
2880 Pass it to mips_pic_call_symbol_from_set.
2881 (mips_annotate_pic_calls): Update accordingly.
2882
2883 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2884
2885 * emit-rtl.c (try_split): Use a loop to search for
2886 NOTE_INSN_CALL_ARG_LOCATIONs.
2887
2888 2011-05-29 Richard Guenther <rguenther@suse.de>
2889
2890 PR tree-optimization/49217
2891 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2892
2893 2011-05-28 Jan Hubicka <jh@suse.cz>
2894
2895 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2896 length.
2897 (string_slot_free): Remove
2898 (create_output_block): Initialize obstack.
2899 (destroy_output_block): Free obstack.
2900 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2901 the string unless it needs to be added into the hash.
2902 (lto_output_string_with_length): Add persistent attribute;
2903 handle NULL strings.
2904 (lto_output_string): Add PERSISTENT parameter.
2905 (output_string_cst, output_identifier): Simplify.
2906 (lto_output_location_bitpack): Update.
2907 (lto_output_builtin_tree): Update.
2908 * lto-streamer.h (struct output_block): Add obstack.
2909 (lto_output_string, lto_output_string_with_length): Remove
2910 declarations; functions are static now.
2911
2912 2011-05-28 Jan Hubicka <jh@suse.cz>
2913
2914 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2915 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2916 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2917 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2918 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2919 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2920 unpack_ts_decl_with_vis_value_fields,
2921 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2922 lto_get_builtin_tree): Use enum and variable length i/o.
2923 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2924 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2925 New functions.
2926 (bp_pack_enum, bp_unpack_enum): New macros.
2927
2928 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2929
2930 * genrecog.c: Remove redundant forward declarations.
2931
2932 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2933
2934 * config.gcc: Deprecate mips*-*-openbsd*.
2935
2936 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2937
2938 PR bootstrap/49195
2939 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2940 for match_op_dup.
2941
2942 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2943
2944 PR middle-end/48981
2945 * gengtype.c (vec_prefix_type): New function.
2946 (note_def_vec): Use vec_prefix_type and change the length
2947 attribute to be based on the prefix.
2948 * vec.c: Include coretypes.h before vec.h.
2949 (struct vec_prefix): Remove.
2950 (vec_gc_p_reserve): Change the offsetof to sizeof.
2951 (vec_gc_p_reserve_exact): Likewise.
2952 (vec_heap_p_reserve): Likewise.
2953 (vec_heap_p_reserve_exact): Likewise.
2954 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2955 (vec_stack_p_reserve): Change the offsetof to sizeof.
2956 (vec_stack_p_reserve_exact): Likewise.
2957 * vec.h (struct vec_prefix): New struct definition.
2958 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2959 (VEC_T_GTY(T,B)): Likewise.
2960 (DEF_VEC_FUNC_P(T)): Use prefix field.
2961 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2962 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2963
2964 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2965
2966 PR tree-optimization/46728
2967 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2968 (powi_as_mults): Add gimple_set_location.
2969 (build_and_insert_call): New.
2970 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2971 0.5, 0.25, 0.75, 1./3., or 1./6.
2972
2973 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2974
2975 * doc/contrib.texi: Update copyright years.
2976 (Contributors): Add Zdenek Sojka.
2977
2978 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2979
2980 * c-decl.c (c_push_function_context): Copy the current statement
2981 list stack.
2982 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2983 (finish_struct): Call building_stmt_list_p instead of checking
2984 cur_stmt_list.
2985 * c-parser.c (c_parser_postfix_expression): Likewise.
2986 * c-typeck.c (c_end_compound_stmt): Likewise.
2987 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2988 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2989 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2990 (free_stmt_list): Likewise.
2991 * tree.h (struct tree_statement_list): Include typed_tree instead
2992 of tree_common.
2993 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2994 as TS_TYPED instead of TS_COMMON.
2995
2996 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2997 Uros Bizjak <ubizjak@gmail.com>
2998
2999 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3000 (HAVE_AS_IX86_TLSGDPTL): Define.
3001 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3002 (HAVE_AS_IX86_TLSLDMPLT): Define.
3003 * configure: Regenerate.
3004 * config.in: Regenerate.
3005 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3006 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3007 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3008 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3009 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3010 @tlsldmplt or @plt.
3011 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3012
3013 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3014
3015 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3016 and reverse_cond.
3017 (INSN_COND, INSN_REVERSE_COND): New macros.
3018 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3019 once.
3020 (sched_get_condition_with_rev): Cache the results, and look them up
3021 if possible.
3022 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3023 are clobbered by the current insn.
3024 * target.def (exposed_pipline): New sched data hook.
3025 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3026 * doc/tm.texi: Regenerate.
3027
3028 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3029
3030 PR tree-optimization/49170
3031 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3032 sincos or cexp.
3033
3034 2011-05-27 Richard Guenther <rguenther@suse.de>
3035
3036 PR middle-end/49189
3037 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3038 of comparisons.
3039
3040 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3041
3042 * haifa-sched.c (sched_scan_info): Remove.
3043 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3044 with NULL args.
3045 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3046 Remove functions.
3047 (sched_scan): Remove.
3048 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3049 static. All callers changed.
3050 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3051 static. All callers changed.
3052 (sched_init_luids): Remove all arguments except the first. All
3053 callers changed. Don't use sched_scan.
3054 (haifa_init_h_i_d): Likewise.
3055 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3056 manually rather than using sched_init_luids. Likewise with
3057 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3058 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3059 rather than sched_init_luids with NULL args.
3060 * sel-sched-ir.c (new_insns): Remove variable.
3061 (sched_scan): New static function, previously in haifa-sched.c. Remove
3062 all arguments but the first two; all callers changed.
3063 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3064 rather than sched_init_luids.
3065 (sel_init_bbs): Remove second argument. All callers changed.
3066 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3067 with NULL arguments.
3068 (create_insn_rtx_from_pattern): Likewise.
3069 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3070 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3071 (sched_init_insn_luid, sched_extend_luids): Declare.
3072 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3073 declarations.
3074
3075 2011-05-27 Richard Guenther <rguenther@suse.de>
3076
3077 PR middle-end/49177
3078 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3079 A CMP B ? (T) true : (T) false for non-integral types T again.
3080
3081 2011-05-27 Jan Hubicka <jh@suse.cz>
3082
3083 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3084 so 0 means NULL string.
3085 (lto_output_string_with_length): ... here.
3086 (lto_output_string, output_string_cst, output_identifier): Update
3087 handling of NULL strings.
3088 (lto_output_location_bitpack): New function.
3089 (lto_output_location): Use it.
3090 (lto_output_tree_ref): Use output_record_start.
3091 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3092 len values.
3093 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3094 values by 1.
3095 (input_string_internal): ... here;
3096 (input_string_cst, input_identifier, lto_input_string): Update handling
3097 of NULL strings.
3098 (lto_input_location_bitpack): New function
3099 (lto_input_location): Use it.
3100 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3101 values.
3102 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3103 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3104 (bp_pack_value): Sanity check the value range.
3105 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3106 New functions.
3107 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3108 New functions.
3109
3110 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3111
3112 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3113 call_arg_location instructions down the floor.
3114
3115 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3116
3117 PR rtl-optimization/49154
3118 * ira.c (setup_pressure_classes): Process class without sublcasses
3119 as a candidate for pressure classes.
3120
3121 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3122
3123 PR rtl-optimization/48575
3124 * genrecog.c (position_type): New enum.
3125 (position): New structure.
3126 (decision): Use position structure instead of a string.
3127 (root_pos, peep2_insn_pos_list): New variables.
3128 (next_position, compare_positions): New functions.
3129 (new_decision): Use position structures instead of strings.
3130 (maybe_both_true): Likewise.
3131 (change_state): Likewise.
3132 (write_tree): Likewise.
3133 (make_insn_sequence): Likewise.
3134
3135 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3136
3137 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3138 TS_BASE instead of TS_COMMON.
3139 (find_decls_types_r): Check for TS_TYPED structure before looking at
3140 TREE_TYPE.
3141 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3142 Add chain field.
3143 (BLOCK_CHAIN): Use new chain field.
3144
3145 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3146
3147 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3148 moves expensive on Power7 also.
3149
3150 2011-05-26 Richard Guenther <rguenther@suse.de>
3151
3152 * fold-const.c (fold_unary_loc): Remove bogus code.
3153
3154 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3155
3156 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3157 tree_common.
3158 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3159 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3160 TS_BASE instead of TS_COMMON.
3161 * varasm.c (assemble_name): Remove assert.
3162
3163 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3164
3165 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3166 substituted first.
3167 * libgcc-std.ver: Delete file.
3168
3169 2011-05-26 Richard Guenther <rguenther@suse.de>
3170
3171 PR tree-optimization/48702
3172 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3173 only when we know the base address is within bounds.
3174 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3175 assume the base address of TARGET_MEM_REFs is in bounds.
3176
3177 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3178
3179 PR target/49099
3180 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3181 declaration in TARGET_SOLARIS.
3182
3183 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3184
3185 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3186 The instruction is then expanded explicitly.
3187 (supported_compare): Callable instruction.
3188 (compare): Likewise.
3189
3190 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3191
3192 PR c++/49165
3193 * gimplify.c (shortcut_cond_r): Don't special case
3194 COND_EXPRs if they have void type on one of their arms.
3195
3196 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3197
3198 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3199 to reduce duplication, and to achieve a slightly more logical order
3200 of operations.
3201
3202 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3203
3204 PR tree-optimization/49161
3205 * tree-vrp.c (struct case_info): New type.
3206 (compare_case_labels): Sort case_info structs instead of
3207 trees, and not primarily by CASE_LABEL uids but by
3208 label_for_block indexes.
3209 (find_switch_asserts): Put case labels into struct case_info
3210 array instead of TREE_VEC, adjust sorting, compare label_for_block
3211 values instead of CASE_LABELs.
3212
3213 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3214
3215 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3216 ("orndi3_neon"): Likewise.
3217 ("bic<mode>3_neon"): Likewise.
3218
3219 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3220
3221 PR tree-optimization/49038
3222 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3223 Ensure at least one epilogue iteration if required by data
3224 accesses with gaps.
3225 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3226 to mark loops that require peeling for gaps.
3227 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3228 (vect_get_known_peeling_cost): Take peeling for gaps into
3229 account.
3230 (vect_transform_loop): Generate epilogue if required by data
3231 access with gaps.
3232 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3233 loop as requiring an epilogue if there are gaps in the end of
3234 the strided group.
3235
3236 2011-05-25 Ian Lance Taylor <iant@google.com>
3237
3238 * godump.c (go_format_type): Output the first field with a usable
3239 Go type, if any.
3240
3241 2011-05-25 Ian Lance Taylor <iant@google.com>
3242
3243 * godump.c (go_format_type): Check for invalid type names, pointer
3244 target types, and struct field types.
3245
3246 2011-05-25 Jason Merrill <jason@redhat.com>
3247
3248 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3249
3250 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3251
3252 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3253
3254 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3255
3256 * config/i386/i386.md (*movqi_extv_1)): Put back
3257 "register_operand" check in "type" calculation.
3258 (*movqi_extzv_2): Likewise.
3259
3260 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3261
3262 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3263
3264 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3265
3266 PR bootstrap/49160
3267 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3268 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3269 __divxc3, __divtc3): Wrap definitions in #ifndef.
3270
3271 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3272
3273 PR target/49142
3274 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3275 "register_operand" check and replace q_regs_operand with
3276 QIreg_operand in "type" calculation.
3277 (*movqi_extv_1): Likewise.
3278 (*movqi_extzv_2_rex64): Likewise.
3279 (*movqi_extzv_2): Likewise.
3280
3281 * config/i386/predicates.md (QIreg_operand): New.
3282
3283 2011-05-25 Richard Guenther <rguenther@suse.de>
3284
3285 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3286 type-based offset disambiguation, streamline MEM_REF and
3287 TARGET_MEM_REF handling.
3288
3289 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3290
3291 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3292 (bdesc_special_args): Add pause intrinsic.
3293
3294 * config/i386/i386.md (UNSPEC_PAUSE): New.
3295 (pause): Likewise.
3296 (*pause): Likewise.
3297 * config/i386/ia32intrin.h (__pause): Likewise.
3298
3299 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3300 pause intrinsic.
3301
3302 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3303
3304 PR tree-optimization/46728
3305 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3306 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3307
3308 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3309
3310 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3311 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3312 instead of TS_COMMON.
3313
3314 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3315
3316 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3317 LIBGCC2_GNU_PREFIX is defined.
3318 (__N): New macro.
3319 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3320 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3321 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3322 __clz_tab): Define using __N.
3323 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3324 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3325 * target.def (libfunc_gnu_prefix): New hook.
3326 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3327 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3328 * doc/tm.texi: Regenerate.
3329 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3330 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3331 account.
3332 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3333 (init_optabs): Likewise for the bswap libfuncs.
3334 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3335 and divide.
3336 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3337 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3338 * libgcc-std.ver: Remove.
3339 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3340 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3341 libgcc-std.ver.
3342 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3343 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3344 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3345 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3346 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3347 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3348 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3349 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3350 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3351 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3352
3353 2011-05-25 Jan Hubicka <jh@suse.cz>
3354
3355 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3356 (lto_output_tree): Use output_record_start.
3357 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3358 (lto_get_pickled_tree): Use input_record_start.
3359 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3360 (lto_value_range_error): New function.
3361 * lto-streamer.h (lto_value_range_error): Declare.
3362 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3363 (lto_output_enum, lto_input_enum): New macros.
3364
3365 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3366
3367 * common.opt (flag_stack_usage_info): New variable.
3368 (-Wstack-usage): New option.
3369 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3370 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3371 <OPT_fstack_usage>: Likewise.
3372 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3373 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3374 of flag_stack_usage.
3375 (emit_library_call_value_1): Likewise.
3376 * explow.c (allocate_dynamic_stack_space): Likewise.
3377 * function.c (instantiate_virtual_regs ): Likewise.
3378 (prepare_function_start): Likewise.
3379 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3380 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3381 * config/arm/arm.c (arm_expand_prologue): Likewise.
3382 (thumb1_expand_prologue): Likewise.
3383 * config/avr/avr.c (expand_prologue): Likewise.
3384 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3385 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3386 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3387 * config/mips/mips.c (mips_expand_prologue): Likewise.
3388 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3389 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3390 * config/s390/s390.c (s390_emit_prologue): Likewise.
3391 * config/sh/sh.c (sh_expand_prologue): Likewise.
3392 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3393 * config/spu/spu.c (spu_expand_prologue): Likewise.
3394
3395 2011-05-25 Richard Guenther <rguenther@suse.de>
3396
3397 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3398 (gimple_canonical_types_compatible_p): Likewise.
3399
3400 2011-05-25 Jan Hubicka <jh@suse.cz>
3401
3402 PR middle-end/49062
3403 * ipa.c (function_and_variable_visibility): Only add to same
3404 comdat group list if DECL_ONE_ONLY.
3405
3406 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3407
3408 PR rtl-optimization/49014
3409 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3410
3411 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3412
3413 PR target/49128
3414 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3415
3416 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3417
3418 PR rtl-optimization/48757
3419 * ira-build.c (loop_with_eh_edge_p): Rename to
3420 loop_with_complex_edge_p, check edges on complexity, make function
3421 conditional.
3422 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3423 conditional.
3424
3425 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3426
3427 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3428 force flag_ira_share_save_slots to 0.
3429
3430 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3431
3432 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3433 (vt_initialize): Set PROLOGUE_BB unconditionally.
3434 Add block comment about CFA_BASE_RTX machinery.
3435 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3436 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3437
3438 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3439
3440 PR objc/48187
3441 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3442 parsing of syntax error in ObjC instance variable lists. In
3443 particular, avoid an infinite loop if there is a stray ']'.
3444 Updated error message.
3445
3446 2011-05-24 Ian Lance Taylor <iant@google.com>
3447
3448 * godump.c (go_define): Don't accept a string immediately after
3449 another operand.
3450
3451 2011-05-24 Ian Lance Taylor <iant@google.com>
3452
3453 * godump.c (struct godump_container): Add invalid_hash field.
3454 (go_format_type): Return false if type is found in invalid_hash.
3455 (go_output_typedef): Add invalid type to invalid_hash.
3456 (go_finish): Create and delete invalid_hash.
3457
3458 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3459
3460 PR tree-optimization/46728
3461 * tree-ssa-math-opts.c (powi_table): New.
3462 (powi_lookup_cost): New.
3463 (powi_cost): New.
3464 (powi_as_mults_1): New.
3465 (powi_as_mults): New.
3466 (gimple_expand_builtin_powi): New.
3467 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3468 (gate_cse_sincos): Remove sincos/cexp restriction.
3469
3470 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3471
3472 PR target/3746
3473 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3474 mips-tdump native.
3475 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3476 * mips-tdump.c: Likewise.
3477
3478 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3479
3480 PR target/49128
3481 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3482 add -mno-XXX. Handle FMA.
3483
3484 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3485
3486 PR rtl-optimization/48633
3487 * ira-build.c (loop_with_eh_edge_p): New function.
3488 (mark_loops_for_removal): Use it.
3489
3490 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3491
3492 PR rtl-optimization/48971
3493 * ira.c (setup_pressure_classes): Don't check register move cost
3494 for classes with one registers. Don't add pressure class if there
3495 is a pressure class with the same available hard registers.
3496 Check contains_reg_of_mode. Fix a typo in collecting
3497 temp_hard_regset. Ignore hard registers not belonging to a class.
3498
3499 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3500
3501 PR target/49133
3502 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3503
3504 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3505 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3506
3507 PR gcov-profile/48845
3508 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3509
3510 2011-05-24 Richard Guenther <rguenther@suse.de>
3511
3512 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3513 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3514 (gimple_types_compatible_p_1): Adjust.
3515 (iterative_hash_canonical_type): Do not bother about complete vs.
3516 incomplete types.
3517 (gimple_canonical_types_compatible_p): Likewise.
3518
3519 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3520
3521 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3522
3523 2011-05-24 Richard Guenther <rguenther@suse.de>
3524
3525 PR bootstrap/49078
3526 * gimple.c (gimple_register_canonical_type): Revert
3527 previous change.
3528 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3529 does not for a tree for the case where it matters. Cache
3530 pointer-type alias-sets.
3531
3532 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3533
3534 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3535 (OBJS): Remove options.o, opts-common.o and prefix.o.
3536 (OBJS-libcommon-target): New.
3537 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3538 (BACKEND): Include libcommon-target.a.
3539 (MOSTLYCLEANFILES): Include libcommon-target.a.
3540 (libcommon-target.a): New.
3541 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3542 prefix.o.
3543
3544 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3545
3546 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3547 parts of output shared with the driver.
3548 * optc-gen.awk: Don't generate parts of output not shared with the
3549 driver.
3550 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3551 * doc/options.texi (SourcerInclude): Mention options-save.c.
3552 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3553 (OBJS): Add options-save.o.
3554 (options-save.c, options-save.o): New.
3555 (options.o): Update dependencies.
3556 (gcc-options.o): Remove.
3557 (mostlyclean): Remove options-save.c.
3558
3559 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR debug/49032
3562 * dbxout.c: Include cgraph.h.
3563 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3564 and without value expr, return NULL if no varpool node exists for
3565 it or if it is not needed.
3566 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3567
3568 PR c/49120
3569 * c-decl.c (start_decl): Convert expr to void_type_node.
3570
3571 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 PR rtl-optimization/48826
3574 * emit-rtl.c (try_split): When splitting a call that is followed
3575 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3576
3577 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3578
3579 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3580 parameters passed in memory prefer using DECL_INCOMING_RTL over
3581 the pseudos it will be copied into.
3582
3583 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3584
3585 PR target/47315
3586 * config/i386/i386.c (ix86_option_override_internal): Save the
3587 initial options after checking vzeroupper.
3588
3589 2011-05-23 David Li <davidxl@google.com>
3590
3591 PR tree-optimization/48988
3592 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3593 Initialize has_valid_pred for each pred chain.
3594
3595 2011-05-23 Richard Guenther <rguenther@suse.de>
3596
3597 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3598 (iterative_hash_gimple_type): Always hash type names.
3599
3600 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3601
3602 * c-typeck.c (build_function_call_vec): Tweak call to
3603 check_function_arguments.
3604
3605 2011-05-23 Richard Guenther <rguenther@suse.de>
3606
3607 PR tree-optimization/49115
3608 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3609 is not necessarily carried out, do not claim it kills the ref.
3610 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3611
3612 2011-05-23 Richard Guenther <rguenther@suse.de>
3613
3614 PR middle-end/15419
3615 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3616 what pointer types we accept for folding.
3617
3618 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3619
3620 * gthr-gnat.c: Remove.
3621 * gthr-gnat.h: Remove.
3622 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3623 * config/t-freebsd (LIB2ADDEH): Likewise.
3624 * config/t-linux (LIB2ADDEH): Likewise.
3625 * config/t-sol2 (LIB2ADDEH): Likewise.
3626 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3627 * configure.ac (target_thread_file): Remove gnat handling.
3628 * configure: Regenerate.
3629 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3630
3631 2011-05-23 Tristan Gingold <gingold@adacore.com>
3632 Eric Botcazou <ebotcazou@adacore.com>
3633
3634 * gcov.c (create_file_names): If no object directory is specified,
3635 keep the directory of the file.
3636
3637 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3638
3639 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3640 * configure: Regenerate.
3641
3642 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3643
3644 PR middle-end/48973
3645 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3646 failed and the comparison has a single bit signed type, use
3647 constm1_rtx instead of const1_rtx for true value.
3648 (do_store_flag): If ops->type is single bit signed type, disable
3649 signel bit test optimization and pass -1 instead of 1 as last
3650 parameter to emit_store_flag_force.
3651
3652 2011-05-23 Tom de Vries <tom@codesourcery.com>
3653
3654 PR target/45098
3655 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3656 function.
3657 (infer_loop_bounds_from_undefined): Use new function.
3658
3659 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3660
3661 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3662 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3663 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3664 and -O0 otherwise.
3665 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3666
3667 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3668
3669 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3670 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3671 returns true.
3672
3673 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3674
3675 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3676
3677 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3678
3679 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3680 UNSPEC_MOVE_PIC pattern.
3681
3682 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3683
3684 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3685 (sparc-*-rtems*): Likewise.
3686 (sparc64-*-elf*): Likewise.
3687 (sparc64-*-rtems*): Likewise.
3688 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3689 * config/sparc/t-crtin: New file.
3690 * config/sparc/t-sol2 (crti.o): Delete rule.
3691 (crtn.o): Likewise.
3692 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3693 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3694 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3695 (ENDFILE_SPEC): Add crtn.o.
3696
3697 2011-05-22 Tom de Vries <tom@codesourcery.com>
3698
3699 PR middle-end/48689
3700 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3701 CODE_CONTAINS_STRUCT (TS_COMMON).
3702
3703 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3704
3705 PR middle-end/49029
3706 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3707 only after deciding which mode to use.
3708
3709 2011-05-22 Tom de Vries <tom@codesourcery.com>
3710
3711 PR target/45098
3712 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3713 for call to get_shiftadd_cost.
3714
3715 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3716
3717 PR target/49104
3718 * config/i386/cpuid.h (bit_MMXEXT): New define.
3719
3720 2011-05-22 Nick Clifton <nickc@redhat.com>
3721
3722 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3723 initialisation of non-existant args[2] element. Use args[] array
3724 not arg[] array to pass arguments to build_function_type_list.
3725
3726 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3727
3728 PR tree-optimization/49087
3729 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3730
3731 2011-05-21 Jason Merrill <jason@redhat.com>
3732
3733 PR c++/49092
3734 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3735 static storage duration.
3736
3737 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3738
3739 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3740 frame pointer.
3741
3742 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3743
3744 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3745 false if there are call-saved registers here...
3746 (sparc_can_use_return_insn_p): ...but here instead.
3747 (save_or_restore_regs): Fix thinko.
3748 (sparc_expand_prologue): Use current_function_is_leaf.
3749 (sparc_frame_pointer_required): Likewise.
3750
3751 2011-05-21 Nick Clifton <nickc@redhat.com>
3752
3753 PR target/49098
3754 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3755
3756 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3757
3758 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3759 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3760
3761 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3762
3763 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3764 * optc-gen.awk: Move common code to opt-read.awk.
3765 * opth-gen.awk: Likewise.
3766 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3767
3768 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3769
3770 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3771
3772 2011-05-20 Tom de Vries <tom@codesourcery.com>
3773
3774 PR target/45098
3775 * tree-ssa-loop-ivopts.c: Include expmed.h.
3776 (get_shiftadd_cost): New function.
3777 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3778
3779 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3780
3781 PR bootstrap/49086
3782 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3783 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3784
3785 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3786
3787 * Makefile.in: Update comment referring to $(OBJS-common).
3788
3789 2011-05-20 Ian Lance Taylor <iant@google.com>
3790
3791 * godump.c (go_output_typedef): Put enum constants in the macro
3792 hash table to avoid duplicate Go const definitions.
3793
3794 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3795
3796 * Makefile.in (LIBDEPS): Add libcommon.a.
3797 (LIBS): Likewise.
3798 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3799 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3800 pretty-print.o and version.o.
3801 (OBJS-libcommon): New.
3802 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3803 (BACKEND): Add libcommon.a.
3804 (MOSTLYCLEANFILES): Likewise.
3805 (libcommon.a): New.
3806 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3807 (cpp$(exeext)): Likewise.
3808 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3809 pretty-print.o and input.o.
3810 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3811 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3812 (errors.o): Remove.
3813 (mips-tfile): Don't explicitly use version.o.
3814 (mips-tdump): Likewise.
3815 (gcov.o): Depend on $(DIAGNOSTIC_H).
3816 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3817 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3818 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3819 * gcov-dump.c: Include intl.h and diagnostic.h.
3820 (main): Initialize diagnostics.
3821 * gcov.c: Include diagnostic.h.
3822 (fnotice): Remove.
3823 (main): Initialize diagnostics.
3824 * lto-wrapper.c: Include diagnostic.h.
3825 (main): Initialize diagnostics.
3826
3827 2011-05-20 Michael Matz <matz@suse.de>
3828
3829 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3830
3831 2011-05-20 Michael Matz <matz@suse.de>
3832 Richard Guenther <rguenther@suse.de>
3833
3834 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3835 use lto_streamer_cache_append directly instead of returning a VEC.
3836 (preload_common_node): Remove.
3837 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3838 track seen nodes.
3839 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3840
3841 2011-05-20 Richard Guenther <rguenther@suse.de>
3842
3843 PR tree-optimization/49079
3844 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3845 MEM_REFs correctly for the trailing array access detection.
3846 Special case constants the same way as decls for overall size
3847 constraining.
3848
3849 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3850
3851 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3852 argument expansion.
3853
3854 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3855
3856 PR tree-optimization/49073
3857 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3858 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3859 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3860
3861 2011-05-20 Richard Guenther <rguenther@suse.de>
3862
3863 PR middle-end/48849
3864 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3865 of pointer types the same way the middle-end does.
3866
3867 2011-05-20 Richard Guenther <rguenther@suse.de>
3868
3869 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3870 or pointer-to chains. Delay all fixup to uniquify_nodes.
3871
3872 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3873
3874 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3875 (fma4_fmaddsub): Likewise
3876
3877 2011-05-19 Jan Hubicka <jh@suse.cz>
3878
3879 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3880 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3881 (type_pair_cache): New static var.
3882 (lookup_type_pair): Use fixed sized custom hash; make inline.
3883 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3884 calls of lookup_type_pair.
3885 (print_gimple_types_stats): Remove cache stats.
3886 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3887 and gtc_ob.
3888
3889 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3890
3891 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3892 when TARGET_RDRND is active.
3893 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3894 Generate dummy SImode target register when target is NULL.
3895
3896 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3897
3898 * config/arm/arm-fpus.def: New.
3899 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3900 arm-fpus.def.
3901 * config/arm/arm-tables.opt: Regenerate.
3902 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3903 (arm_option_override): Don't decode FPU name to string here.
3904 * config/arm/arm.opt (mfpu=): Use Enum.
3905 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3906 Update dependencies.
3907
3908 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3909
3910 * collect2.c: Include diagnostic.h.
3911 (fatal_perror, fatal, error, fancy_abort): Remove.
3912 (main): Set progname. Call xmalloc_set_program_name and
3913 diagnostic_initialize.
3914 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3915 scan_libraries, resolve_lib_name): Call fatal_error instead of
3916 fatal and fatal_perror.
3917 * collect2.h (error, fatal, fatal_perror): Don't declare.
3918 * tlink.c: Include diagnostic-core.h.
3919 (recompile_files): Call fatal_error instead of fatal_perror.
3920 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3921 pretty-print.o and input.o.
3922 (collect2.o, tlink.o): Update dependencies.
3923
3924 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3925
3926 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3927
3928 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3929
3930 PR target/40483
3931 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3932 COMDAT group syntax, both SPARC and x86 variants.
3933 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3934 * configure: Regenerate.
3935 * config/sol2.h (TARGET_SOLARIS): Define.
3936 (PUSHSECTION_FORMAT): Remove.
3937 (SECTION_NAME_FORMAT): Define.
3938 * config/sol2.c: Include hashtab.h.
3939 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3940 expansion, using SECTION_NAME_FORMAT.
3941 (solaris_comdat_htab): New variable.
3942 (struct comdat_entry): Define.
3943 (comdat_hash): New function.
3944 (comdat_eq): New function.
3945 (solaris_elf_asm_comdat_section): New function.
3946 (solaris_define_comdat_signature): New function.
3947 (solaris_code_end): New function.
3948 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3949 (solaris_code_end): Declare.
3950 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3951 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3952 solaris_code_end.
3953 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3954 Remove ATTRIBUTE_UNUSED.
3955 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3956 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3957 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3958 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3959 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3960 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3961 (PUSHSECTION_FORMAT): Remove.
3962 (SECTION_NAME_FORMAT): Redefine.
3963
3964 2011-05-19 Kai Tietz <ktietz@redhat.com>
3965
3966 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3967 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3968 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3969
3970 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3971 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3972
3973 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3974
3975 2011-05-19 Richard Guenther <rguenther@suse.de>
3976
3977 PR middle-end/48985
3978 * tree-object-size.c (addr_object_size): If the pointed-to
3979 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3980
3981 2011-05-19 Richard Guenther <rguenther@suse.de>
3982
3983 * gimple.c (gimple_types_compatible_p_1): Compare names of
3984 the types themselves.
3985 (iterative_hash_gimple_type): And hash them that way.
3986 (gimple_register_type_1): If we register a main variant properly
3987 initialize the leader to ourselves.
3988
3989 2011-05-19 Tom de Vries <tom@codesourcery.com>
3990
3991 PR target/45098
3992 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3993 get_loop_invariant_expr_id.
3994 (get_loop_invariant_expr_id): Use get_expr_id.
3995 (parm_decl_cost): New function.
3996 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3997 Improve bound cost estimation. Use different inv_expr_id for elim and
3998 express cases.
3999
4000 2011-05-19 Tom de Vries <tom@codesourcery.com>
4001
4002 PR target/45098
4003 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4004 cost_base.cost == 0.
4005
4006 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4007
4008 PR target/49002
4009 * config/i386/sse.md
4010 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4011 load cast.
4012
4013 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4014
4015 PR tree-optimization/49039
4016 * tree-vrp.c (extract_range_from_binary_expr): For
4017 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4018 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4019
4020 2011-05-18 Tom de Vries <tom@codesourcery.com>
4021
4022 PR target/45098
4023 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4024
4025 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4026
4027 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4028 (*tls_global_dynamic_64): Ditto.
4029 (*tls_local_dynamic_base_32_gnu): Ditto.
4030 (*tls_local_dynamic_base_64): Ditto.
4031 (tls_initial_exec_64_sun): Ditto.
4032
4033 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4034
4035 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4036 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4037 bf592-none.
4038 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4039 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4040 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4041 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4042 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4043 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4044 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4045
4046 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4047
4048 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4049 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4050 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4051 target_thread_pointer, arm_structure_size_boundary, struct
4052 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4053 struct abi_name, arm_all_abis): Remove.
4054 (arm_option_override) Don't process most enumerated option values here.
4055 Don't process target_fpe_name here. Work with integer not string for
4056 structure size boundary; use separate diagnostics for each case.
4057 * config/arm/arm.h (enum float_abi_type, enum
4058 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4059 to arm-opts.h.
4060 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4061 arm_structure_size_boundary): Remove.
4062 * config/arm/arm.opt (mabi=): Use Enum and Init.
4063 (arm_abi_type): New Enum and EnumValue entries.
4064 (mfloat-abi=): Use Enum and Init.
4065 (float_abi_type): New Enum and EnumValue entries.
4066 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4067 (mfp16-format=): Use Enum and Init.
4068 (arm_fp16_format_type): New Enum and EnumValue entries.
4069 (mstructure-size-boundary=): Use UInteger and Init.
4070 (mtp=): Use Enum and Init.
4071 (arm_tp_type): New Enum and EnumValue entries.
4072
4073 2011-05-18 Richard Guenther <rguenther@suse.de>
4074
4075 PR tree-optimization/49018
4076 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4077 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4078 gimple_has_side_effects.
4079
4080 2011-05-18 Richard Guenther <rguenther@suse.de>
4081
4082 * gimple.c (gimple_register_type_1): New function, split out from ...
4083 (gimple_register_type): ... here. Avoid infinite recursion.
4084
4085 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4086
4087 PR tree-optimization/41881
4088 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4089 reduction_chains along with a macro for its access.
4090 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4091 (destroy_loop_vec_info): Free reduction chains.
4092 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4093 (vect_is_slp_reduction): New function.
4094 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4095 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4096 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4097 definition types for reduction chains.
4098 (vect_supported_load_permutation_p): Don't allow permutations for
4099 reduction chains.
4100 (vect_analyze_slp_instance): Support reduction chains.
4101 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4102 (vect_get_constant_vectors): Handle reduction chains.
4103 (vect_schedule_slp_instance): Mark the first statement of the
4104 reduction chain as reduction.
4105
4106 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4107
4108 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4109 names for group elements access.
4110 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4111 reduction chains as well. Remove data reference and interleaving
4112 related words from the fields names.
4113 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4114 elements access.
4115 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4116 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4117 vect_update_interleaving_chain, vect_same_range_drs,
4118 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4119 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4120 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4121 vect_analyze_group_access, vect_analyze_data_ref_access,
4122 vect_create_data_ref_ptr, vect_transform_strided_load,
4123 vect_record_strided_load_vectors): Likewise.
4124 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4125 vect_model_load_cost, vectorizable_store, vectorizable_load,
4126 vect_remove_stores, new_stmt_vec_info): Likewise.
4127 * tree-vect-slp.c (vect_build_slp_tree,
4128 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4129
4130 2011-05-18 Richard Guenther <rguenther@suse.de>
4131
4132 PR middle-end/48989
4133 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4134 operand verification.
4135 (verify_gimple_assign_binary): Likewise.
4136 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4137 to non-1-precision BOOLEAN_TYPEs.
4138
4139 2011-05-18 Tom de Vries <tom@codesourcery.com>
4140
4141 PR target/45098
4142 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4143
4144 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4145
4146 PR tree-optimization/49000
4147 * tree-ssa.c (execute_update_addresses_taken): Call
4148 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4149 be rewritten and decl has been marked for renaming, reset
4150 the debug stmt.
4151
4152 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4153
4154 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4155 enum_opts_set when testing if attributes have set -mfpmath=.
4156
4157 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4158
4159 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4160
4161 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4162
4163 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4164 info->entry with 0
4165 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4166 id.transform_lang_insert_block with NULL.
4167
4168 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4169
4170 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4171 (output_fp_compare): Change args 3 and 4 to bool.
4172 (ix86_expand_call): Change arg 6 to bool.
4173 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4174 (ix86_attr_length_vex_default): Change arg 3 to bool.
4175 * config/i386/i386.md: Update all uses.
4176 * config/i386/i386.c: Ditto.
4177 (ix86_flags_dependent): Change return type to bool.
4178
4179 2011-05-17 Richard Guenther <rguenther@suse.de>
4180
4181 * gimple.c (type_hash_pair_compare): Fix comparison.
4182
4183 2011-05-17 Richard Guenther <rguenther@suse.de>
4184
4185 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4186 case some more, fix final hash value of the non-singleton case.
4187
4188 2011-05-17 Richard Guenther <rguenther@suse.de>
4189
4190 PR bootstrap/49013
4191 Revert
4192 2011-05-16 Richard Guenther <rguenther@suse.de>
4193
4194 * gimple.c (gimple_types_compatible_p_1): Use names of the
4195 type itself, not its main variant.
4196 (iterative_hash_gimple_type): Likewise.
4197
4198 2011-05-17 Richard Guenther <rguenther@suse.de>
4199
4200 * gimple.c (gimple_register_canonical_type): Use the main-variant
4201 leader for computing the canonical type.
4202
4203 2011-05-17 Nick Clifton <nickc@redhat.com>
4204
4205 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4206 moves.
4207
4208 * config/rx/rx.md: Add peephole to remove redundant extensions
4209 after loads.
4210 (bitset_in_memory): Use rx_restricted_mem_operand.
4211 (bitinvert_in_memory): Likewise.
4212 (bitclr_in_memory): Likewise.
4213
4214 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4215 Nick Clifton <nickc@redhat.com>
4216
4217 * config/rx/rx.md: Add peepholes to match a register move followed
4218 by a comparison of the moved register. Replace these with an
4219 addition of zero that does both actions in one instruction.
4220
4221 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4222
4223 PR target/48986
4224 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4225 predicate to allow CONST_INT.
4226 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4227
4228 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4229
4230 * opts-common.c (opt_enum_arg_to_value): New.
4231 * opts.h (opt_enum_arg_to_value): Declare.
4232 * config/i386/i386.opt (fpmath): Remove.
4233 (mfpmath=): Use Enum, Init and Save.
4234 (fpmath_unit): New Enum and EnumValue entries.
4235 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4236 name for function fpmath state.
4237 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4238 * config/i386/i386.c: Include diagnostic.h.
4239 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4240 (ix86_target_string): Take enum fpmath_unit value instead of string.
4241 (ix86_debug_options): Update call to ix86_target_string.
4242 (ix86_option_override_internal): Don't process fpmath strings here.
4243 (x86_function_specific_save, ix86_function_specific_restore):
4244 Don't handle fpmath state specially.
4245 (ix86_function_specific_print): Pass fpmath state to
4246 ix86_target_string instead of printing in this function.
4247 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4248 Handle enum attributes.
4249 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4250 (ix86_valid_target_attribute_tree): Update option_strings
4251 handling. Handle fpmath as enum option.
4252 (ix86_can_inline_p): Update field names for function fpmath state.
4253 (ix86_expand_builtin): Update call to ix86_target_string.
4254 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4255 (ix86_fpmath): Remove.
4256 * config/i386/t-i386 (i386.o): Update dependencies.
4257
4258 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4259
4260 PR preprocessor/48677
4261 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4262 from decoded_options[0], not from itself.
4263
4264 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4265
4266 * config/i386/constraints.md (z): New constraint.
4267 * config/i386/i386.c (c): New mode attribute.
4268 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4269 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4270 constraint for operand 0.
4271 (*call_vzeroupper): Ditto.
4272 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4273 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4274 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4275 Use "lzm" constraint for operand 0.
4276 (*call_pop_vzeroupper): Ditto.
4277 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4278 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4279 constraint for operand 0.
4280 (*sibcall_vzeroupper): Ditto.
4281 (*sibcall_rex64_ms_sysv): Ditto.
4282 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4283 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4284 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4285 (*sibcall_pop_vzeroupper): Ditto.
4286 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4287 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4288 mode iterator. Use "<c>zm" constraint for operand 1.
4289 (*call_value_vzeroupper): Ditto.
4290 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4291 for operand 1.
4292 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4293 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4294 *call_value_pop_1. Use "lzm" constraint for operand 1.
4295 (*call_value_pop_vzeroupper): Ditto.
4296 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4297 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4298 mode iterator. Use "Uz" constraint for operand 1.
4299 (*sibcall_value_vzeroupper): Ditto.
4300 (*sibcall_value_rex64_ms_sysv): Ditto.
4301 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4302 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4303 constraint for operand 1.
4304 (*sibcall_value_pop_vzeroupper): Ditto.
4305 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4306 and "z" constraint for operand 2.
4307 (*tls_global_dynamic_32_gnu): Ditto.
4308 (*tls_local_dynamic_base_32_gnu): Ditto.
4309 (*tls_local_dynamic_base_64): Ditto.
4310 (*tls_local_dynamic_32_once): Ditto.
4311 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4312 Update all callers.
4313 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4314
4315 2011-05-16 Richard Guenther <rguenther@suse.de>
4316
4317 * gimple.c (gimple_types_compatible_p_1): Use names of the
4318 type itself, not its main variant.
4319 (iterative_hash_gimple_type): Likewise.
4320
4321 2011-05-16 Richard Guenther <rguenther@suse.de>
4322
4323 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4324 always visit pointer target and function result and argument types.
4325
4326 2011-05-16 Jason Merrill <jason@redhat.com>
4327
4328 PR c++/48999
4329 * tree-inline.c (copy_statement_list): Put back recursion.
4330
4331 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4332
4333 PR target/27663
4334 PR target/41076
4335 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4336 * config/avr/avr.md ("*ior<mode>qi.byte0",
4337 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4338
4339 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4340
4341 PR target/45099
4342 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4343 register is needed for a function argument.
4344
4345 2011-05-16 Richard Guenther <rguenther@suse.de>
4346
4347 * gimple.c (struct type_hash_pair): New type.
4348 (type_hash_pair_compare): New function.
4349 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4350
4351 2011-05-16 Revital Eres <revital.eres@linaro.org>
4352
4353 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4354
4355 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4356
4357 * config/i386/i386.md (floating point move splitters): Fix
4358 usage of standard_80387_constant_p.
4359 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4360
4361 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4362
4363 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4364
4365 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4366
4367 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4368 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4369 (tree_ssa_lim_finalize): Likewise.
4370
4371 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4372
4373 * config/i386/constraint.md (Yd, Yx): New register constraints.
4374 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4375 Yd conditional register constraint.
4376 (*movtf_internal): Use standard_sse_constant_opcode.
4377 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4378 Yx conditional register constraint.
4379 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4380 Yd conditional register constraint. Use standard_sse_constant_p to
4381 check for valid SSE constants and call standard_sse_constant_opcode to
4382 output SSE insn.
4383 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4384 constants and call standard_sse_constant_opcode to output SSE insn.
4385 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4386 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4387 optimize_size is set.
4388 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4389
4390 2011-05-14 Tobias Burnus <burnus@net-b.de>
4391
4392 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4393
4394 2011-05-13 Martin Jambor <mjambor@suse.cz>
4395
4396 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4397 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4398 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4399 (evaluate_conditions_for_ipcp_clone): Removed.
4400 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4401 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4402 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4403
4404 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4405
4406 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4407 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4408 lieu of MAY_HAVE_DEBUG_STMTS.
4409 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4410 debug statements if !MAY_HAVE_DEBUG_STMTS.
4411
4412 2011-05-13 Martin Thuresson <martint@google.com>
4413
4414 PR gcov-profile/47793
4415 * libgcov.c (gcov_exit): Support relative profile paths.
4416 * doc/invoke.texi (-fprofile-dir): Update for above change.
4417
4418 2011-05-13 Richard Guenther <rguenther@suse.de>
4419
4420 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4421 type-pair caching, do not compare hashes.
4422
4423 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4424
4425 PR middle-end/48965
4426 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4427 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4428
4429 2011-05-13 Kai Tietz <ktietz@redhat.com>
4430
4431 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4432 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4433 compatible type for TRUTH_NOT_EXPR.
4434
4435 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4436
4437 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4438 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4439 can_create_pseudo_p ().
4440
4441 2011-05-13 Richard Guenther <rguenther@suse.de>
4442
4443 PR lto/48978
4444 * gimple.c (iterative_hash_gimple_type): Revert change in
4445 pointer target and function result and argument hashing.
4446
4447 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4448
4449 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4450 (*movxf_internal_nointeger): Ditto.
4451 (*movdf_internal_rex64): Ditto.
4452 (*movdf_internal): Ditto.
4453 (*movdf_internal_nointeger): Ditto.
4454 (*movsf_internal): Ditto.
4455 (sincos splitters): Use can_create_pseudo ().
4456
4457 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4458
4459 * config/i386/i386-opts.h: New.
4460 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4461 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4462 ix86_section_threshold): Remove.
4463 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4464 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4465 OPT_mbranch_cost_.
4466 (ix86_option_override_internal): Don't decode strings for options
4467 other than -march=, -mtune= and -mfpmath=. Don't allow for
4468 __attribute__ uses in remaining diagnostics for options with
4469 string arguments. Don't check for integer arguments being negative.
4470 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4471 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4472 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4473 ix86_branch_cost, ix86_section_threshold): Remove.
4474 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4475 HeaderInclude.
4476 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4477 but not Var.
4478 (masm=): Use Enum and Init.
4479 (asm_dialect): New Enum and EnumValue entries.
4480 (mbranch-cost=): Use UInteger.
4481 (mlarge-data-threshold=): Use UInteger and Init.
4482 (mcmodel=): Use Enum and Init.
4483 (cmodel): New Enum and EnumValue entries.
4484 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4485 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4486 mregparm=): Use UInteger.
4487 (mstringop-strategy=): Use Enum and Init.
4488 (stringop_alg): New Enum and EnumValue entries.
4489 (mtls-dialect=): Use Enum and Init.
4490 (tls_dialect): New Enum and EnumValue entries.
4491 (mabi=): Use Enum and Init.
4492 (calling_abi): New Enum and EnumValue entries.
4493 (mveclibabi=): Use Enum and Init.
4494 (ix86_veclibabi): New Enum and EnumValue entries.
4495
4496 2011-05-13 Nick Clifton <nickc@redhat.com>
4497
4498 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4499 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4500
4501 2011-05-13 Kai Tietz <ktietz@redhat.com>
4502
4503 PR middle-end/48984
4504 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4505 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4506 (gimple_boolify): Check for cast for boolean_type_node instead for
4507 BOOLEAN_TYPE.
4508
4509 2011-05-13 Richard Guenther <rguenther@suse.de>
4510
4511 PR tree-optimization/48172
4512 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4513 multiplying by number of iterations for equal step.
4514 (vect_create_cond_for_alias_checks): Likewise.
4515
4516 2011-05-13 Andreas Schwab <schwab@redhat.com>
4517
4518 * configure.ac: Use AS_HELP_STRING throughout.
4519 * configure: Regenerate.
4520
4521 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4522
4523 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4524 (ix86_emit_restore_regs_using_mov): Likewise.
4525 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4526
4527 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4528
4529 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4530 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4531 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4532 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4533 RTX_OK_FOR_OLO10_P): ...here.
4534 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4535 SYMBOLIC_CONST.
4536
4537 2011-05-12 Kai Tietz <ktietz@redhat.com>
4538
4539 * gimplify.c (gimple_boolify): Re-boolify expression
4540 arguments even if expression type is of kind BOOLEAN_TYPE.
4541 (gimplify_boolean_expr): Removed.
4542 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4543 and XOR. Additional take care that we keep expression's type.
4544 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4545 of TRUTH_AND|OR|XOR_EXPR.
4546
4547 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR tree-optimization/48975
4550 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4551 on all bbs here and free and clear ifc_bbs at the end.
4552
4553 2011-05-12 Richard Guenther <rguenther@suse.de>
4554
4555 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4556 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4557 until after simple checks.
4558 (gimple_types_compatible_p): Likewise.
4559 (iterative_hash_gimple_type): Always hash pointer targets
4560 and function return and argument types.
4561 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4562 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4563 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4564 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4565 completely in the simple compare section.
4566 (gimple_register_canonical_type): Query the cache again after
4567 registering.
4568
4569 2011-05-12 Richard Guenther <rguenther@suse.de>
4570
4571 PR tree-optimization/48172
4572 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4573 the number of iterations from the segment size calculation.
4574 (vect_create_cond_for_alias_checks): Adjust.
4575
4576 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4577
4578 PR debug/48967
4579 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4580 if validate_subreg fails.
4581
4582 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4583
4584 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4585 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4586 early.
4587
4588 2011-05-12 DJ Delorie <dj@redhat.com>
4589
4590 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4591 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4592 created builtin into rx_builtins array.
4593 (rx_builtin_decl): New function.
4594 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4595
4596 2011-05-12 DJ Delorie <dj@redhat.com>
4597 Nick Clifton <nickc@redhat.com>
4598
4599 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4600 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4601 (rx_is_legitimate_address): Add pre-decrement and post-increment
4602 addressing in HImode and QImode. Fix test for out of range
4603 REG+INT addressing.
4604 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4605 (rx_align_for_label): Test label before extracting its usage count.
4606 (rx_adjust_insn_lengths): Fix selection of insn codes.
4607 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4608
4609 2011-05-11 Jason Merrill <jason@redhat.com>
4610
4611 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4612
4613 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4614
4615 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4616 reindent the subsequent block.
4617
4618 2011-05-11 Satoru Takabayashi <satorux@google.com>
4619 Paul Pluzhnikov <ppluzhnikov@google.com>
4620
4621 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4622 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4623 * config.in: Add LINKER_HASH_STYLE.
4624 * configure.ac: Add --with-linker-hash-style.
4625 * configure: Regenerate.
4626
4627 2011-05-11 Richard Guenther <rguenther@suse.de>
4628
4629 PR middle-end/48964
4630 * gimple.c (iterative_hash_canonical_type): Fix typo.
4631
4632 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4633
4634 * config/i386/i386.c (legitimize_tls_address)
4635 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4636 expanders directly for TARGET_GNU2_TLS. Determine pic and
4637 __tls_get_addr symbol reference here. Update call to
4638 gen_tls_global_dynamic_{32,64} for added arguments.
4639 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4640 expanders directly for TARGET_GNU2_TLS. Determine
4641 __tls_get_addr symbol reference here. Update call to
4642 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4643 unique UNSPEC REG_EQUIV to libcall block.
4644 (ix86_tls_get_addr): Declare static.
4645 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4646 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4647 Do not determine pic and __tls_get_addr symbol reference here. Do not
4648 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4649 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4650 (tls_global_dynamic_64): Add operand 2. Do not determine
4651 __tls_get_addr symbol reference here. Do not call
4652 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4653 (tls_local_dynamic_base64): Ditto for operand 1.
4654
4655 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4656
4657 * function.c (expand_function_start): Initialize stack_check_probe_note
4658 only if the generic stack checking mechanism is used.
4659
4660 2011-05-11 Richard Guenther <rguenther@suse.de>
4661
4662 PR tree-optimization/15256
4663 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4664 (A & B) | C, combine (A op CST1) op CST2.
4665 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4666 visit assigns that have uses.
4667
4668 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4669
4670 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4671 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4672 (unpack_ts_type_common_value_fields): ...this. Update comment.
4673 (unpack_value_fields): Adjust for renaming.
4674 (lto_input_ts_type_tree_pointers): Split into...
4675 (lto_input_ts_type_common_tree_pointer): ...this and...
4676 (lto_input_ts_type_non_common_tree_pointers): ...this.
4677 (lto_input_tree_pointers): Adjust for above split.
4678 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4679 (pack_ts_type_common_value_fields): ...this. Update comment.
4680 (lto_output_ts_type_tree_pointers): Split into...
4681 (lto_output_ts_type_common_tree_pointers): ...this and...
4682 (lto_output_ts_type_non_common_tree_pointers): ...this.
4683 (lto_output_tree_pointers): Adjust for above split.
4684 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4685 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4686 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4687 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4688 Define.
4689 (struct tree_type): Split into...
4690 (struct tree_type_common: ...this and...
4691 (struct tree_type_with_lang_specific): ...this and...
4692 (struct tree_type_non_common): ...this. Adjust accessor macros
4693 accordingly.
4694 (TYPE_VALUES_RAW): Define.
4695 (union tree_node): Update for above changes.
4696 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4697 TS_TYPE_NON_COMMON.
4698 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4699 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4700 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4701 * treestructu.def (TS_TYPE): Remove.
4702 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4703 Define.
4704
4705 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4706
4707 PR debug/48159
4708 * tree-ssa.c (reset_debug_uses): New function.
4709 * tree-flow.h (reset_debug_uses): New prototype.
4710 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4711 * tree-loop-distribution.c (generate_loops_for_partition): Call
4712 reset_debug_uses on the stmts that will be removed. Keep around
4713 all debug stmts, don't count them as bits in partition bitmap.
4714 (generate_builtin): Don't count debug stmts or labels as bits in
4715 partition bitmap.
4716
4717 2011-05-11 Richard Guenther <rguenther@suse.de>
4718
4719 * gimple.c (gimple_type_hash_1): Merge with ...
4720 (gimple_type_hash): ... this.
4721 (gtc_visit): Remove mode parameter and simplify accordingly.
4722 (gimple_types_compatible_p_1): Likewise.
4723 (gimple_types_compatible_p): Likewise.
4724 (iterative_hash_gimple_type): Likewise.
4725 (visit): Likewise.
4726 (gimple_type_eq): Adjust.
4727
4728 2011-05-11 Revital Eres <revital.eres@linaro.org>
4729
4730 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4731 enters the branch create an anti edge in the opposite direction
4732 to prevent the creation of reg-moves.
4733 * modulo-sched.c: Adjust comment to reflect the fact we are
4734 scheduling closing branch.
4735 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4736 (stage_count): New field in struct partial_schedule.
4737 (calculate_stage_count): New function.
4738 (normalize_sched_times): Rename to reset_sched_times and handle
4739 incrementing the sched time of the nodes by a constant value
4740 passed as parameter.
4741 (duplicate_insns_of_cycles): Skip closing branch.
4742 (sms_schedule_by_order): Schedule closing branch.
4743 (ps_insn_find_column): Handle closing branch.
4744 (sms_schedule): Call reset_sched_times and adjust the code to
4745 support scheduling of the closing branch.
4746 (ps_insert_empty_row): Update calls to normalize_sched_times
4747 and rotate_partial_schedule functions.
4748
4749 2011-05-11 Richard Guenther <rguenther@suse.de>
4750
4751 PR middle-end/48953
4752 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4753
4754 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4755
4756 * opts.c (finish_options): Move warning settings from process_options.
4757 * toplev.c (process_options): Move warning settings to finish_options.
4758
4759 2011-05-11 Richard Guenther <rguenther@suse.de>
4760
4761 PR tree-optimization/18041
4762 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4763 (simplify_bitwise_binary): ... this. Handle operand conversions
4764 by applying them to the result instead.
4765 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4766
4767 2011-05-11 Richard Guenther <rguenther@suse.de>
4768
4769 * gimple.c (gimple_canonical_types_compatible_p): Split out
4770 from gimple_types_compatible_p and friends. Do not recurse
4771 to pointed-to types.
4772 (gimple_canonical_type_eq): Use it.
4773 (iterative_hash_canonical_type): Split out from
4774 iterative_hash_gimple_type and friends. Do not recurse
4775 to pointed-to types.
4776 (gimple_canonical_type_hash): Use it, allocate the hash here.
4777
4778 2011-05-11 Revital Eres <revital.eres@linaro.org>
4779
4780 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4781 recognizing doloop.
4782
4783 2011-05-11 Revital Eres <revital.eres@linaro.org>
4784
4785 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4786 instead of PREV_INSN.
4787
4788 2011-05-11 Revital Eres <revital.eres@linaro.org>
4789
4790 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4791 * loop-doloop.c (doloop_condition_get): Likewise.
4792 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4793 (doloop_end): New.
4794 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4795
4796 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4797
4798 * tree.def (CASE_LABEL_EXPR): Add an operand.
4799 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4800
4801 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4802
4803 * c-decl.c (c_override_global_bindings_to_false): Remove.
4804 (global_bindings_p): Don't check
4805 c_override_global_bindings_to_false.
4806 * c-tree.h (c_override_global_bindings_to_false): Remove.
4807 * c-typeck.c (composite_type): Don't set
4808 c_override_global_bindings_to_false.
4809
4810 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4811
4812 PR target/48857, 48495
4813 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4814 (VSX_MODE): Ditto.
4815 (VSX_MOVE_MODE): Ditto.
4816 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4817 VSX vector types. Add V2DImode.
4818 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4819 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4820 (MODES_TIEABLE_P): Ditto.
4821
4822 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4823 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4824 VSX_VECTOR_MODE.
4825 (init_cumulative_args): Ditto.
4826 (rs6000_function_arg_boundary): Ditto.
4827 (rs6000_function_arg_advance_1): Ditto.
4828 (rs6000_function_arg): Ditto.
4829 (rs6000_function_ok_for_sibcall): Ditto.
4830 (emit_frame_save): Ditto.
4831 (rs6000_function_value): Ditto.
4832 (rs6000_libcall_value): Ditto.
4833
4834 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4835
4836 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4837 i386/darwin-lib.h to $libgcc_tm_file.
4838 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4839
4840 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4841
4842 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4843
4844 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4845
4846 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4847 * config/rs6000/rs6000-tables.opt: New file (generated).
4848 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4849 rs6000/rs6000-tables.opt to extra_options.
4850 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4851 * config/rs6000/rs6000.c (rs6000_select): Remove.
4852 (processor_target_table): Move contents to rs6000-cpus.def.
4853 (darwin_rs6000_override_options): Check
4854 global_options_set.x_rs6000_cpu_index instead of
4855 rs6000_select[1].string.
4856 (rs6000_option_override_internal): Likewise.
4857 (rs6000_handle_option): Don't assert that global structures are in
4858 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4859 (rs6000_default_cpu): New variable.
4860 (rs6000_file_start): Set it instead of local default_cpu. Check
4861 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4862 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4863 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4864 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4865 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4866 rs6000_select): Remove.
4867 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4868 Remove.
4869 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4870 * config/rs6000/t-rs6000
4871 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4872 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4873 global_options_set.x_rs6000_cpu_index instead of
4874 rs6000_select[1].string.
4875 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4876 global_options_set.x_rs6000_cpu_index instead of
4877 rs6000_select[1].string.
4878
4879 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4880
4881 * config.gcc (libgcc_tm_file): Define instead of including files
4882 from ../../libgcc/config/ in tm_file.
4883 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4884 * configure: Regenerate.
4885 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4886 libgcc_tm.h, cs-libgcc_tm.h): New.
4887 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4888 (clean): Remove libgcc_tm.h.
4889 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4890 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4891 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4892
4893 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4894
4895 PR target/48896
4896 * config/avr/avr.c (avr_ret_register): Return unsigned int
4897 instead of int.
4898 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4899 it to avr_libcall_value.
4900 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4901 expand_expr.
4902 (avr_expand_binop_builtin): Ditto.
4903 (avr_expand_unop_builtin): Ditto.
4904
4905 2011-05-10 DJ Delorie <dj@redhat.com>
4906
4907 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4908 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4909 * config/rx/rx.c (rx_align_for_label): Add label and
4910 uses_threshold parameters. Do not align when the label is not
4911 used enough.
4912 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4913
4914 2011-05-10 Richard Guenther <rguenther@suse.de>
4915
4916 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4917 a series of conversions and apply foldings similar to what
4918 fold-const does.
4919 (tree_ssa_forward_propagate_single_use_vars): Call it.
4920
4921 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR tree-optimization/48611
4924 PR tree-optimization/48794
4925 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4926 referenced from RESX or EH_DISPATCH arguments.
4927
4928 PR debug/48928
4929 * dfp.c (decimal_to_decnumber): Handle conversion from
4930 dconst{1,2,m1,half}.
4931
4932 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4933
4934 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4935 for !flag_prefer_avx128.
4936 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4937
4938 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4939
4940 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4941 (fold_ternary_loc): Use expr_location_or.
4942
4943 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4944
4945 PR debug/48853
4946 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4947 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4948 Pmode and mem_mode is not VOIDmode.
4949
4950 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4951
4952 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4953 TYPE_QUAL_RESTRICT): Convert to enum.
4954
4955 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4956
4957 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4958 (const_pow2_1_to_8_operand): Ditto.
4959 (const_pow2_1_to_128_operand): Ditto.
4960 (const_pow2_1_to_32768_operand): Ditto.
4961 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4962 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4963 in insn constraint to check integer value of operand 3.
4964 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4965
4966 (PINSR_MODE): New mode iterator.
4967 (sse2p4_1): New mode attribute.
4968 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4969 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4970 iterator. Use const_int_operand instead of
4971 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4972 exact_log2 in insn constraint to check integer value of operand 3.
4973
4974 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4975
4976 * config/i386/sse.md (blendbits): Remove mode attribute.
4977 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4978 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4979 Check integer value of operand 3 in insn constraint.
4980
4981 2011-05-09 Richard Guenther <rguenther@suse.de>
4982
4983 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4984 for diagnostics.
4985 (lto_symtab_merge): Likewise. Do not register types here.
4986 (lto_symtab_merge_decls_2): Likewise.
4987 (lto_symtab_merge_decls_1): Likewise.
4988 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4989 * gimple.c (enum gtc_mode): Declare.
4990 (gimple_types_compatible_p): Make static.
4991
4992 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4993
4994 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4995 temporary register to match Pmode.
4996
4997 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4998
4999 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5000 and *vec_concatv4si_1_avx.
5001
5002 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5003
5004 PR rtl-optimization/48927
5005 * ira-conflicts.c (commutative_constraint_p): Use
5006 recog_data.alternative_enabled_p to disable alternatives where
5007 "enabled" attribute is false.
5008 (get_dup_num): Ditto.
5009 * ira-lives.c (single_reg_class): Ditto.
5010 (ira_implicitly_set_insn_hard_regs): Ditto.
5011
5012 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5013
5014 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5015 (dataflow_set_preserve_mem_locs): Likewise.
5016
5017 2011-05-09 Philipp Thomas <pth@suse.de>
5018
5019 * config/mep/mep.c (mep_validate_vliw): Syntax description
5020 should not be translated.
5021
5022 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5023
5024 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5025 * config/mips/mips-tables.opt: New file (generated).
5026 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5027 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5028 MIPS_ARCH_OPTION_NATIVE): Define.
5029 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5030 mips-cpus.def.
5031 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5032 mips_parse_cpu): Remove.
5033 (mips_cpu_info_from_opt, mips_default_arch): New.
5034 (mips_handle_option): Don't assert that global structures are in
5035 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5036 (mips_option_override): Use new variables and functions to set
5037 state of these options. Use strcmp to check for individual CPU names.
5038 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5039 definition.
5040 * config/mips/mips.opt (march=): Use ToLower and Enum.
5041 (mips): Use ToLower, Enum and Var.
5042 (mtune=): Use ToLower and Enum.
5043 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5044
5045 2011-05-08 Jan Hubicka <jh@suse.cz>
5046
5047 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5048 Arrange type pairs to be UID ordered.
5049 (gimple_lookup_type_leader): Make inline.
5050
5051 2011-05-09 Nick Clifton <nickc@redhat.com>
5052
5053 PR target/48899
5054 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5055 PROCESSOR_DEFAULT.
5056
5057 PR target/48897
5058 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5059 variable 's'.
5060
5061 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5062
5063 * combine.c (simplify_comparison): Abstract out parts into...
5064 (simplify_compare_const): ... new function.
5065 (try_combine): Generalize parallel arithmetic/compare combining
5066 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5067
5068 2011-05-08 Jan Hubicka <jh@suse.cz>
5069
5070 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5071 (cgraph_create_virtual_clone): Call hooks once virtual clone
5072 is finished.
5073 * cgraph.h (cgraph_clone_node): Update prototype.
5074 * ipa-cp.c (ipcp_estimate_growth): Use
5075 estimate_ipcp_clone_size_and_time.
5076 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5077 * lto-cgraph.c (input_node): Update.
5078 * ipa-inline.c (recursive_inlining): Update.
5079 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5080 (evaluate_conditions_for_known_args): Break out from ...
5081 (evaluate_conditions_for_edge): ... here.
5082 (evaluate_conditions_for_ipcp_clone): New function.
5083 (inline_node_duplication_hook): Update clone summary based
5084 on parameter map.
5085 (estimate_callee_size_and_time): Rename to ...
5086 (estimate_node_size_and_time): take NODE instead of EDGE;
5087 take POSSIBLE_TRUTHS as argument.
5088 (estimate_callee_size_and_time): Update.
5089 (estimate_ipcp_clone_size_and_time): New function.
5090 (do_estimate_edge_time): Update.
5091
5092 2011-05-08 Richard Guenther <rguenther@suse.de>
5093
5094 PR middle-end/48908
5095 PR middle-end/48905
5096 * expmed.c (expand_shift_1): Compute adjusted constant shift
5097 amount manually.
5098
5099 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5100
5101 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5102
5103 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5104
5105 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5106
5107 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5108
5109 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5110
5111 2011-05-07 Jan Hubicka <jh@suse.cz>
5112
5113 * ipa-inline-transform.c (inline_call): Account when program size
5114 decreases.
5115 * ipa-inline.c (relative_time_benefit): New function.
5116 (edge_badness): Reorganize to be power 2 based; fix thinko when
5117 computing badness for negative growth; update comments to match
5118 reality; better dumps.
5119
5120 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5121
5122 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5123 type to bool and adjust comment.
5124 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5125 (fold_mathfn_compare): Remove calls to global_bindings_p.
5126 (fold_inf_compare): Likewise.
5127 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5128 * c-tree.h (global_bindings_p): Adjust prototype.
5129 * c-decl.c (global_bindings_p): Return bool and simplify.
5130
5131 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5132
5133 PR tree-optimization/48837
5134 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5135 when accumulator transformation is performed.
5136
5137 2011-05-06 Jan Hubicka <jh@suse.cz>
5138
5139 * i386.h (ix86_tune_indices): Add
5140 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5141 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5142 * i386.c (initial_ix86_tune_features): Add
5143 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5144 (software_prefetching_beneficial_p): Remove predicate.
5145 (ix86_option_override_internal): Use new macro.
5146
5147 2011-05-06 Jan Hubicka <jh@suse.cz>
5148
5149 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5150
5151 2011-05-06 Jan Hubicka <jh@suse.cz>
5152
5153 * cgraph.c (cgraph_add_thunk): Create real function node instead
5154 of alias node; finalize it and mark needed/reachale; arrange visibility
5155 to be right and add it into the corresponding same comdat group list.
5156 (dump_cgraph_node): Dump thunks.
5157 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5158 cgraph_function_with_gimple_body_p,
5159 cgraph_first_function_with_gimple_body,
5160 cgraph_next_function_with_gimple_body): New functions.
5161 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5162 New macros.
5163 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5164 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5165 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5166 devirtualization when optimizing.
5167 (verify_cgraph_node): Verify thunks.
5168 (cgraph_analyze_function): Analyze thunks.
5169 (cgraph_mark_functions_to_output): Output thunks only in combination
5170 with function they are assigned to.
5171 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5172 alias into normal node.
5173 (assemble_thunks): New functoin.
5174 (cgraph_expand_function): Use it.
5175 * lto-cgraph.c (lto_output_node): Stream thunks.
5176 (input_overwrite_node): Stream in thunks.
5177 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5178 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5179 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5180 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5181 (inline_analyze_function): Do not care about thunk jump functions.
5182 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5183 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5184 cgraph_function_with_gimple_body_p.
5185 * passes.c (do_per_function_toporder): Use
5186 cgraph_function_with_gimple_body_p.
5187 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5188 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5189 (function_called_by_processed_nodes_p): Likewise.
5190
5191 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5192
5193 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5194 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5195 entries.
5196 (mabi=): Replace with separate entries for mabi=altivec,
5197 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5198 mabi=ieeelongdouble and mabi=ibmlongdouble.
5199 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5200 check for -mabi=spe without SPE ABI support here.
5201 (rs6000_handle_option): Replace OPT_mabi_ handling with
5202 OPT_mabi_altivec and OPT_mabi_spe handling.
5203
5204 2011-05-06 Cary Coutant <ccoutant@google.com>
5205
5206 * dwarf2out.c (contains_subprogram_definition): New function.
5207 (should_move_die_to_comdat): Call it.
5208
5209 2011-05-06 Jeff Law <law@redhat.com>
5210
5211 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5212 remove_ctrl_stmt_and_useless_edges.
5213 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5214 (fixup_template_block, thread_single_edge): Likewise.
5215 (mark_threaded_blocks): Use THREAD_TARGET.
5216
5217 2011-05-06 Alan Modra <amodra@gmail.com>
5218
5219 PR target/48900
5220 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5221 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5222
5223 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5224
5225 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5226 constraint modifier to "r".
5227
5228 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5229
5230 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5231 fall through for OPT_mcmodel_.
5232
5233 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5234
5235 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5236 instruction sizes.
5237 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5238
5239 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5240
5241 PR target/47930
5242 * config/arm/arm.opt (marm): Document it.
5243 (mthumb): Reject negative variant.
5244
5245 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5246
5247 PR target/48898
5248 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5249 Fix typo in "ccvt" variable name.
5250
5251 2011-05-06 Tristan Gingold <gingold@adacore.com>
5252
5253 PR target/48895
5254 * config/vms/vms-ar.c (main): Remove cwd variable.
5255
5256 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5257
5258 PR debug/48902
5259 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5260
5261 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5262
5263 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5264 * gimplify.c (gimplify_switch_expr): Likewise.
5265 * omp-low.c (expand_omp_sections): Likewise.
5266 * tree-eh.c (lower_try_finally_switch): Likewise.
5267 (lower_eh_dispatch): Likewise.
5268 * tree.h (build_case_label): Declare.
5269 * tree.c (build_case_label): Define.
5270
5271 2011-05-05 Jason Merrill <jason@redhat.com>
5272
5273 PR c++/40975
5274 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5275 (copy_statement_list): Don't recurse.
5276 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5277 STATEMENT_LIST.
5278
5279 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5280
5281 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5282 through from -mfpu= handling.
5283 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5284
5285 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5286
5287 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5288 POST_MODIFY.
5289
5290 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5291
5292 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5293 for 11.31.
5294 (hppa[12]*-*-hpux11*): Ditto.
5295 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5296 * config/ia64/hpux-unix2003.h: New.
5297 * config/pa/pa-hpux1131.opt: New.
5298 * config/pa/pa-hpux1131.h: New.
5299 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5300 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5301 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5302
5303 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5304
5305 PR debug/48853
5306 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5307 instead of mode as 3rd argument to recursive call.
5308 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5309 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5310 VOIDmode.
5311 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5312 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5313 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5314 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5315
5316 2011-05-05 Julian Brown <julian@codesourcery.com>
5317
5318 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5319 parenthesis in D-register case.
5320
5321 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5322
5323 * opt-functions.awk (var_type_struct): Handle Enum options.
5324 * optc-gen.awk: Don't check range of variables of character type.
5325 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5326 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5327 rs6000_sdata_name, rs6000_explicit_options): Remove.
5328 (rs6000_option_override_internal): Check for -malign-power here.
5329 Use global_options_set instead of rs6000_explicit_options.
5330 (rs6000_parse_fpu_option): Remove.
5331 (rs6000_handle_option): Access variables via opts and opts_set
5332 pointers. Use error_at and warning_at. Add fall-through
5333 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5334 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5335 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5336 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5337 here. Don't use rs6000_parse_fpu_option.
5338 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5339 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5340 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5341 (mrecip=): Use Var.
5342 (mspe): Use Var and Save.
5343 (mtraceback=): Use Enum and Var.
5344 (rs6000_traceback_type): New Enum and EnumValue entries.
5345 (mfloat-gprs=): Use Enum, Var and Save.
5346 (rs6000_float_gprs): New Enum and EnumValue entries.
5347 (mlong-double-): use Var and Save.
5348 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5349 (malign-): Use Enum and Var.
5350 (rs6000_alignment_flags): New Enum and EnumValue entries.
5351 (mfpu=): Use Enum.
5352 (fpu_type_t): New Enum and EnumValue entries.
5353 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5354 global_options_set instead of rs6000_explicit_options.
5355 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5356 global_options_set instead of rs6000_explicit_options.
5357 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5358 global_options_set instead of rs6000_explicit_options.
5359 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5360 global_options_set instead of rs6000_explicit_options.
5361 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5362 global_options_set instead of rs6000_explicit_options.
5363 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5364 global_options_set instead of rs6000_explicit_options.
5365 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5366 definition.
5367 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5368 global_options_set instead of rs6000_explicit_options.
5369 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5370 (rs6000_cmodel): New Enum and EnumValue entries.
5371 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5372 global_options_set instead of rs6000_explicit_options.
5373 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5374 (mtls-size=): Use Enum and Var.
5375 (rs6000_tls_size): New Enum and EnumValue entries.
5376
5377 2011-05-05 Michael Matz <matz@suse.de>
5378
5379 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5380 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5381 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5382 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5383 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5384 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5385 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5386 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5387 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5388 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5389 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5390 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5391 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5392 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5393 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5394 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5395
5396 2011-05-05 Richard Guenther <rguenther@suse.de>
5397
5398 * expmed.c (expand_variable_shift): Rename to ...
5399 (expand_shift_1): ... this. Take an expanded shift amount.
5400 For rotates recurse directly not building trees for the shift amount.
5401 (expand_variable_shift): Wrap around expand_shift_1.
5402 (expand_shift): Adjust.
5403
5404 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5405
5406 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5407
5408 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5409
5410 * tree.h (get_pending_sizes): Remove prototype.
5411 (put_pending_size): Likewise.
5412 (put_pending_sizes): Likewise.
5413 * stor-layout.c (pending_sizes): Delete.
5414 (get_pending_sizes): Likewise.
5415 (put_pending_size): Likewise.
5416 (put_pending_sizes): Likewise.
5417 (variable_size): Do not call put_pending_size and tidy up.
5418 * function.h (struct function): Remove dont_save_pending_sizes_p.
5419 * lto-streamer-in.c (input_function): Do not stream it.
5420 * lto-streamer-out.c (output_function): Likewise.
5421 * tree-inline.c (initialize_cfun): Do not copy it.
5422 * c-decl.c (store_parm_decls): Do not set it.
5423 * omp-low.c (create_task_copyfn): Likewise.
5424 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5425
5426 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5427
5428 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5429 conditions.
5430 (*movdf_internal): Ditto.
5431 (*movdf_internal_nointeger): Ditto.
5432 (*movsf_internal): Ditto.
5433
5434 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5435
5436 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5437 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5438 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5439 (c_variable_size): Remove.
5440 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5441 call put_pending_sizes.
5442 (get_parm_info): Add parameter expr. Use it to set
5443 arg_info->pending_sizes.
5444 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5445 get_pending_sizes.
5446 * c-parser.c (c_parser_parms_declarator): Update call to
5447 c_parser_parms_list_declarator.
5448 (c_parser_parms_list_declarator): Take parameter expr. Update
5449 call to push_parm_decl. Update recursive call. Don't call
5450 get_pending_sizes. Update calls to get_parm_info.
5451 (c_parser_objc_method_definition): Update calls to
5452 c_parser_objc_method_decl and objc_start_method_definition.
5453 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5454 (c_parser_objc_method_decl): Add parameter expr. Update call to
5455 grokparm.
5456 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5457 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5458 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5459
5460 2011-05-05 Michael Hope <michael.hope@linaro.org>
5461
5462 PR pch/45979
5463 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5464 __ARM_EABI__ hosts.
5465
5466 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5467
5468 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5469 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5470 (spu_output_mi_thunk): New function.
5471
5472 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5473
5474 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5475 targetm.asm_out.print_operand.
5476 * config/sol2.c: Include target.h.
5477
5478 2011-05-04 Jan Hubicka <jh@suse.cz>
5479
5480 * ipa-inline.c (reset_edge_caches): New function.
5481 (update_caller_keys): Add check_inlinablity_for; do not
5482 reset edge caches; remove now unnecesary loop.
5483 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5484 (update_all_callee_keys): Likewise.
5485 (inline_small_functions): Sanity check cache; update code
5486 recomputing it.
5487
5488 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5489
5490 PR rtl-optimization/47612
5491 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5492 as the last insn of the sequence to be moved.
5493
5494 2011-05-04 Tobias Burnus <burnus@net-b.de>
5495
5496 PR fortran/48864
5497 * doc/invoke.texi (Ofast): Document that it
5498 enables Fortran's -fno-protect-parens.
5499
5500 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5501
5502 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5503
5504 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5505
5506 * stor-layout.c (variable_size): Do not issue errors.
5507
5508 2011-05-04 Richard Guenther <rguenther@suse.de>
5509
5510 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5511 for array-ref indices.
5512 (tree_coverage_counter_addr): Likewise.
5513 (build_fn_info_type): Use size_int for index types.
5514 (build_gcov_info): Likewise.
5515
5516 2011-05-04 Richard Guenther <rguenther@suse.de>
5517
5518 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5519 to build_int_cst.
5520 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5521 for constructor indices.
5522 (push_init_level): Likewise.
5523
5524 2011-05-04 Richard Guenther <rguenther@suse.de>
5525
5526 * explow.c (promote_mode): Move variable declarations before code.
5527
5528 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5529
5530 * tree.h (build_function_type_array): Declare.
5531 (build_varargs_function_type_array): Declare.
5532 (build_function_type_vec, build_varargs_function_type_vec): Define.
5533 * tree.c (build_function_type_array_1): New function.
5534 (build_function_type_array): New function.
5535 (build_varargs_function_type_array): New function.
5536
5537 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5538
5539 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5540 before setting STMT_VINFO_TYPE.
5541
5542 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5543
5544 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5545 instead of spu_pass_by_reference.
5546
5547 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5548
5549 * calls.c (emit_library_call_value_1): Invoke
5550 promote_function_mode hook on libcall arguments.
5551 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5552 argument being NULL.
5553 * targhooks.c (default_promote_function_mode): Lisewise.
5554 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5555 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5556
5557 * doc/tm.texi: Document that TYPE argument might be NULL.
5558
5559 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5560
5561 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5562
5563 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5564
5565 From Bernd Schmidt
5566 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5567
5568 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5569
5570 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5571 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5572 Move ...
5573 * mips-tfile.c: ... here.
5574 Don't include coretypes.h, tm.h, filenames.h.
5575 (saber_stop): Remove definition and all calls.
5576 [__SABER__]: Remove.
5577 (__LINE__): Remove default.
5578 (Size_t, Ptrdiff_t): Remove definitions.
5579 Replace by size_t, ptrdiff_t.
5580 [!MIPS_DEBUGGING_INFO]: Remove.
5581 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5582 (progname): Add const.
5583 (STATIC): Remove.
5584 Replace all uses by static.
5585 (ALIGN_SYMTABLE_OFFSET): Remove default.
5586 * mips-tdump.c: Don't include coretypes.h, tm.h.
5587 Remove !MIPS_IS_STAB guard.
5588 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5589 $(TM_H), filenames.h dependencies.
5590 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5591
5592 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5593
5594 From Jie Zhang
5595 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5596 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5597
5598 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5599
5600 From Bernd Schmidt
5601 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5602 account and save/restore RETS.
5603 (PROFILE_BEFORE_PROLOGUE): Define.
5604 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5605 the push insn to use predecrement.
5606
5607 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5608
5609 From Jie Zhang
5610 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5611
5612 2011-05-04 Nick Clifton <nickc@redhat.com>
5613
5614 * config/mn10300/mn10300.c: Include cfgloop.h.
5615 (DUMP): New macro.
5616 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5617 Lcc or a FLcc insn into the instruction stream.
5618 (mn10300_block_contains_call): New function. Returns true if the
5619 given basic block contains a CALL insn.
5620 (mn10300_loop_contains_call_insn): New function. Returns true if
5621 the given loop contains a CALL insn.
5622 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5623 to use the SETLB and Lcc or FLcc insns.
5624 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5625 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5626 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5627 disable the SETLB optimization.
5628 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5629 __SETLB__ or __NO_SETLB__.
5630 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5631 (movsf_internal): Handle MDR register.
5632 (cmpsi): Make visible.
5633 (setlb): New pattern.
5634 (Lcc): New pattern.
5635 (FLcc): New pattern.
5636
5637 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5638
5639 PR target/48860
5640 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5641 for reg<->xmm moves.
5642 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5643 (vec_concatv2di_rex64_sse): Ditto.
5644 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5645 (*vec_extractv2di_1_rex64): Ditto.
5646
5647 Revert:
5648 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5649
5650 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5651 reg<->xmm moves.
5652 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5653
5654 2011-05-04 Richard Guenther <rguenther@suse.de>
5655
5656 * tree.h (int_const_binop): Remove notrunc argument.
5657 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5658 create integer constants that are properly truncated.
5659 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5660 (const_binop): Remove zero notrunc argument to int_const_binop.
5661 (size_binop_loc): Likewise.
5662 (fold_div_compare): Likewise.
5663 (maybe_canonicalize_comparison_1): Likewise.
5664 (fold_comparison): Likewise.
5665 (fold_binary_loc): Likewise.
5666 (multiple_of_p): Likewise.
5667 * expr.c (store_constructor): Likewise.
5668 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5669 (maybe_fold_stmt_addition): Likewise.
5670 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5671 * stor-layout.c (layout_type): Likewise.
5672 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5673 * tree-sra.c (build_ref_for_offset): Likewise.
5674 (build_user_friendly_ref_for_offset): Likewise.
5675 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5676 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5677 * tree-ssa-loop-niter.c (inverse): Likewise.
5678 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5679 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5680 * tree-switch-conversion.c (check_range): Likewise.
5681 (build_constructors): Likewise.
5682 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5683 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5684 (extract_range_from_assert): Likewise.
5685 (vrp_int_const_binop): Likewise.
5686 (extract_range_from_binary_expr): Likewise.
5687 (extract_range_from_unary_expr): Likewise.
5688 (check_array_ref): Likewise.
5689 (find_case_label_range): Likewise.
5690 (simplify_div_or_mod_using_ranges): Likewise.
5691 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5692 comparing case labels for merging.
5693
5694 2011-05-03 Mark Wielaard <mjw@redhat.com>
5695
5696 * dwarf2out.c (debug_str_hash_forced): Removed.
5697 (gen_label_for_indirect_string): Removed.
5698 (get_debug_string_label): Removed.
5699 (AT_string_form): Generate label directly.
5700 (output_indirect_string): Test indirect_string_node for
5701 DW_FORM_strp instead of checking label and refcount.
5702 (prune_indirect_string): Removed.
5703 (prune_unused_types): Don't check debug_str_hash_forced or
5704 call prune_indirect_string.
5705
5706 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5707
5708 PR other/48093
5709 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5710
5711 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5712
5713 PR debug/47994
5714 PR debug/47919
5715 * combine.c (try_combine): Skip debug insns at m_split tests.
5716
5717 2011-04-26 Mark Wielaard <mjw@redhat.com>
5718
5719 PR42288
5720 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5721 when info_section_emitted.
5722
5723 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5724
5725 * config/mips/mips-opts.h: New.
5726 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5727 to mips-opts.h.
5728 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5729 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5730 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5731 via opts pointer.
5732 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5733 mips-opts.h.
5734 (mips_abi, mips_code_readable): Don't declare.
5735 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5736 (mabi=): Use Enum and Var.
5737 (mips_abi): New Enum and EnumValue entries.
5738 (mcode-readable=): Use Enum and Var.
5739 (mips_code_readable_setting): New Enum and EnumValue entries.
5740 (mr10k-cache-barrier=): Use Enum and Var.
5741 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5742
5743 2011-05-03 Jan Hubicka <jh@suse.cz>
5744
5745 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5746 replace hash by pointer map.
5747 (cgraph_node_set_element_def, cgraph_node_set_element,
5748 const_cgraph_node_set_element, varpool_node_set_element_def,
5749 varpool_node_set_element, const_varpool_node_set_element): Remove.
5750 (free_cgraph_node_set, free_varpool_node_set): New function.
5751 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5752 * tree-emutls.c: Free varpool node set.
5753 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5754 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5755 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5756 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5757 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5758 Move here from ipa.c; implement using pointer_map
5759 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5760 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5761 debug_cgraph_node_set, varpool_node_set_new,
5762 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5763 dump_varpool_node_set, debug_varpool_node_set):
5764 Move to ipa-uitls.c.
5765 * passes.c (ipa_write_summaries): Update.
5766
5767 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5768
5769 From Mike Frysinger:
5770 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5771 bf542/bf544/bf547/bf548/bf549.
5772
5773 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5774
5775 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5776
5777 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5778
5779 From Bernd Schmidt:
5780 * config/bfin/bfin.md (MOVCC): New mode_macro.
5781 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5782 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5783 comments from generated assembly.
5784
5785 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5786
5787 From Bernd Schmidt
5788 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5789 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5790 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5791 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5792 * config/bfin/lib1funcs.asm (___muldi3): New function.
5793
5794 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5795
5796 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5797 build_function_type_list instead of build_function_type.
5798 Rearrange initialization of `args' to do so.
5799
5800 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5801
5802 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5803 instead of build_function_type.
5804
5805 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5806
5807 * config/rs6000/rs6000.c (spe_init_builtins): Call
5808 build_function_type_list instead of build_function_type.
5809 (paired_init_builtins, altivec_init_builtins): Likewise.
5810 (builtin_function_type): Likewise.
5811
5812 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5813
5814 * config/sh/sh.c (sh_media_init_builtins): Call
5815 build_function_type_list instead of build_function_type.
5816
5817 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5818
5819 * config/sparc/sparc.c (sparc_file_end): Call
5820 build_function_type_list instead of build_function_type.
5821
5822 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5823
5824 * config/alpha/alpha.c (alpha_init_builtins): Call
5825 build_function_type_list instead of build_function_type.
5826
5827 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5828
5829 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5830 build_function_type_list instead of build_function_type.
5831
5832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5833
5834 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5835 build_function_type_list instead of build_function_type.
5836 Delete `endlink' variable.
5837
5838 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5839
5840 * config/avr/avr.c (avr_init_builtins): Call
5841 build_function_type_list instead of build_function_type.
5842
5843 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5844
5845 * config/picochip/picochip.c (picochip_init_builtins): Call
5846 build_function_type_list instead of build_function_type.
5847 Delete `endlink' variable.
5848
5849 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5850
5851 * config/bfin/bfin.c (bfin_init_builtins): Call
5852 build_function_type_list instead of build_function_type.
5853
5854 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5855
5856 From Bernd Schmidt
5857 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5858 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5859
5860 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5861
5862 From Jie Zhang:
5863 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5864 libbffastfp overrides libgcc when -mfast-fp.
5865
5866 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5867
5868 Originally from Bernd Schmidt
5869 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5870 * config/bfin/bfin.c (override_options): Test it and error if
5871 TARGET_FDPIC.
5872
5873 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5874
5875 Originally From Bernd Schmidt
5876 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5877 FD-PIC.
5878
5879 2011-05-03 Jeff Law <law@redhat.com>
5880
5881 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5882 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5883 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5884 than accessing AUX field directly. Free the AUX field before
5885 clearing it.
5886 (thread_block, thread_through_loop_header): Likewise.
5887 (thread_single_edge, mark_threaded_blocks): Likewise.
5888 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5889 (register_jump_thread): Do not attempt to thread to a NULL edge.
5890
5891 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5892
5893 * function.c (init_function_start): Call decide_function_section.
5894 * varasm.c (decide_function_section): New function.
5895 (assemble_start_function): When not using
5896 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5897 or first_function_block_is_cold.
5898 * rtl.h (decide_function_section): Declare.
5899
5900 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5901 Jakub Jelinek <jakub@redhat.com>
5902
5903 PR target/48774
5904 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5905 only succeed if req_mode is the same as set_mode.
5906
5907 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5908
5909 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5910 * genemit.c (gen_exp): Handle RETURN.
5911 * emit-rtl.c (verify_rtx_sharing): Likewise.
5912 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5913 * rtl.c (copy_rtx): RETURN is shared.
5914 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5915 (ret_rtx): New.
5916 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5917 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5918 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5919 * config/cris/cris.c (cris_expand_return): Likewise.
5920 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5921 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5922 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5923 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5924 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5925 Likewise.
5926 * config/v850/v850.c (expand_epilogue): Likewise.
5927 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5928 * config/arm/arm.md (epilogue): Likewise.
5929 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5930 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5931 variable to ret_reg.
5932
5933 2011-05-03 Richard Guenther <rguenther@suse.de>
5934
5935 PR lto/48846
5936 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5937 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5938 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5939
5940 2011-05-03 Richard Guenther <rguenther@suse.de>
5941
5942 * c-decl.c (grokdeclarator): Instead of looking at
5943 TREE_OVERFLOW check if the constant fits in the index type.
5944
5945 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5946
5947 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5948 (vec_store_lanes<mode><mode>): Likewise.
5949
5950 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5951
5952 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5953 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5954 convert_optab_index values.
5955 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5956 * genopinit.c (optabs): Initialize the new optabs.
5957 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5958 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5959 (expand_STORE_LANES): New functions.
5960 * tree.h (build_array_type_nelts): Declare.
5961 * tree.c (build_array_type_nelts): New function.
5962 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5963 (vect_model_load_cost): Likewise.
5964 (vect_store_lanes_supported, vect_load_lanes_supported)
5965 (vect_record_strided_load_vectors): Declare.
5966 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5967 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5968 (vect_transform_strided_load): Split out statement recording into...
5969 (vect_record_strided_load_vectors): ...this new function.
5970 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5971 (write_vector_array, create_array_ref): New functions.
5972 (vect_model_store_cost): Add store_lanes_p argument.
5973 (vect_model_load_cost): Add load_lanes_p argument.
5974 (vectorizable_store): Try to use store-lanes functions for
5975 interleaved stores.
5976 (vectorizable_load): Likewise load-lanes and loads.
5977 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5978 to vect_model_store_cost.
5979 (vect_build_slp_tree): Likewise vect_model_load_cost.
5980
5981 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5982
5983 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5984 * hooks.c (hook_bool_mode_uhwi_false): New function.
5985 * target.def (array_mode_supported_p): New hook.
5986 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5987 * doc/tm.texi: Regenerate.
5988 * stor-layout.c (mode_for_array): New function.
5989 (layout_type): Use it.
5990 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5991 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5992
5993 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5994
5995 PR target/48723
5996 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5997 for -fstack-check if the size to allocate is negative.
5998
5999 2011-05-02 Lawrence Crowl <crowl@google.com>
6000
6001 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6002 (timevar_cond_start): New for starting a timer only when it is not
6003 already running.
6004 (timevar_cond_stop): New for stopping a timer when it was not already
6005 running.
6006
6007 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6008 (timevar_cond_start): New as above.
6009 (timevar_cond_stop): New as above.
6010
6011 * timevar.def: Add start/stop timers for compiler phases,
6012 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6013 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6014 and TV_PHASE_FINALIZE.
6015 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6016 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6017 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6018 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6019 Make unused TV_OVERLOAD into a start/stop timer.
6020
6021 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6022 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6023 to indicate that they are start/stop timers.
6024
6025 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6026 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6027 Move initialization to do_compile.
6028 (do_compile): Add initialization from above.
6029 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6030
6031 * c-decl.c (c_write_global_declarations): Add start/stop of
6032 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6033
6034 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6035 or TV_PARSE_INLINE, as appropriate.
6036 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6037 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6038
6039 2011-05-02 Jason Merrill <jason@redhat.com>
6040
6041 PR c++/40975
6042 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6043
6044 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6045
6046 PR c/35445
6047 * c-decl.c (finish_decl): Only create a composite if the types are
6048 compatible.
6049
6050 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6051
6052 * config/fr30/fr30-protos.h (Mmode): Don't define.
6053 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6054 definition where used.
6055 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6056 define. Expand definitions where used.
6057 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6058 Expand definitions where used.
6059 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6060 rx_function_arg, rx_function_arg_advance,
6061 rx_function_arg_boundary): Expand definitions of those macros.
6062 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6063 definition where used.
6064
6065 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6066
6067 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6068 reg<->xmm moves.
6069 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6070 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6071 with *movv2sf_internal_rex64_avx.
6072 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6073 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6074 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6075 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6076 "vex" in "prefix" attribute calculation.
6077 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6078
6079 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6080
6081 PR target/47951
6082 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6083 inputs match the output.
6084
6085 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6086
6087 PR target/47955
6088 * config/m68k/m68k.c (m68k_expand_prologue): Set
6089 current_function_static_stack_size.
6090
6091 2011-05-02 Jan Hubicka <jh@suse.cz>
6092
6093 * lto-streamer.c (lto_streamer_cache_insert_1,
6094 lto_streamer_cache_lookup, lto_streamer_cache_create,
6095 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6096 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6097
6098 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6099
6100 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6101 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6102 config/m68k/t-opts: New files.
6103 * config/m68k/m68k-tables.opt: New file (generated).
6104 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6105 extra_options and m68k/t-opts to tmake_file.
6106 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6107 (all_isas): Initialize using m68k-isas.def.
6108 (all_microarchs): Initialize using m68k-microarchs.def.
6109 (m68k_find_selection): Remove.
6110 (m68k_handle_option): Don't assert that global structures are in
6111 use. Use error_at. Access variables via opts pointer. Don't
6112 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6113 directly for -m68020-40 and -m68020-60.
6114 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6115 m68k_tune_entry here.
6116 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6117 to m68k-opts.h.
6118 (m68k_library_id_string): Remove declaration.
6119 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6120 (m68k_library_id_string): New Variable.
6121 (march=, mcpu=, mtune=): Use Enum and Var.
6122
6123 2011-05-02 Richard Guenther <rguenther@suse.de>
6124
6125 * varasm.c (output_constructor_regular_field): Compute zero-based
6126 index with double-ints. Make sure to ICE instead of producing
6127 wrong code.
6128 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6129 in asserts. Properly use a signed type.
6130
6131 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6132
6133 * config/i386/sse.md (V): New mode iterator.
6134 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6135 TARGET_SSE2.
6136 (V_256): Rename from AVX256MODE.
6137 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6138 condition to all users.
6139 (VF1): Ditto.
6140 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6141 condition to all users.
6142 (VF_128): Make V4SF mode unconditional.
6143 (VF_256): Rename from AVX256MODEF2P.
6144 (VI4F_128): Rename from SSEMODE4S.
6145 (VI8F_128): Rename from SSEMODE2D.
6146 (VI4F_256): Rename from AVX256MODE8P.
6147 (VI8F_256): Rename from AVX256MODE4P.
6148 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6149 (ssescalarmodesuffix): Remove SF and DF modes.
6150 (SSEMODE124): Remove.
6151 (SSEMODE1248): Ditto.
6152 (SSEMODEF2P): Ditto.
6153 (AVXMODEF2P): Ditto.
6154 (AVXMODEFDP): Ditto.
6155 (AVXMODEFSP): Ditto.
6156 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6157 unconditional.
6158 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6159 unconditional.
6160 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6161 xop_pcmov_<mode>256. Use V mode iterator.
6162
6163 Adjust RTX patterns globally for renamed mode attributes.
6164
6165 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6166
6167 * haifa-sched.c (sched_emit_insn): Emit insn before first
6168 non-scheduled insn. Inform back-end about new insn. Add
6169 new insn to scheduled_insns list.
6170
6171 2011-05-02 Richard Guenther <rguenther@suse.de>
6172
6173 PR tree-optimization/48822
6174 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6175 (process_scc): Indicate which iteration we start.
6176
6177 2011-05-02 Jan Hubicka <jh@suse.cz>
6178
6179 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6180 (lto_section_overrun): New.
6181 * lto-section-out.c (append_block): Rename to ...
6182 (lto_append_block): ... this one; export.
6183 (lto_output_1_stream): Move lto lto-streamer.h
6184 (lto_output_data_stream): Update.
6185 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6186 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6187 functions.
6188
6189 2011-05-02 Richard Guenther <rguenther@suse.de>
6190
6191 * tree.c (tree_code_counts): New global array.
6192 (record_node_allocation_statistics): Count individual tree codes.
6193 (dump_tree_statistics): Dump individual code stats.
6194
6195 2011-05-01 Jan Hubicka <jh@suse.cz>
6196
6197 * ipa-inline.c (caller_growth_limits): Fix thinko when
6198 looking for largest stack frame.
6199 * ipa-inline.h (dump_inline_summary): Declare.
6200 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6201 on stack usage.
6202 (dump_inline_summary): Export.
6203 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6204
6205 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6206
6207 * reginfo.c (memory_move_cost): Change rclass argument type form
6208 'enum reg_class' to reg_class_t.
6209 * reload.h (memory_move_cost): Update prototype.
6210 * postreload.c reload_cse_simplify_set): Change type dclass var to
6211 reg_class_t.
6212 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6213 Update prototype.
6214 (ira_allocate_and_set_costs): Change aclass argument type form
6215 'enum reg_class' to reg_class_t.
6216 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6217 Change aclass argument type to reg_class_t.
6218 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6219 to reg_class_t.
6220 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6221 memory_move_cost call.
6222
6223 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6224 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6225 Change type tmp var to reg_class_t.
6226
6227 2011-04-30 Jan Hubicka <jh@suse.cz>
6228
6229 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6230 inlining into function with flatten attribute.
6231 (want_inline_small_function_p): Be more realistic about inlining
6232 cold calls where callee size grows.
6233
6234 2011-04-30 Jan Hubicka <jh@suse.cz>
6235
6236 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6237 flags.
6238
6239 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6240
6241 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6242 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6243 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6244 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6245 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6246 (print_operand): Rename to...
6247 (sparc_print_operand): ...this. Make static. Adjust
6248 sparc_print_operand function call.
6249 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6250 functions.
6251
6252 2011-04-30 Jan Hubicka <jh@suse.cz>
6253
6254 PR middle-end/48752
6255 * ipa-inline.c (early_inliner): Disable when doing late
6256 addition of function.
6257
6258 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6259
6260 * dwarf2out.c (get_address_mode): New inline.
6261 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6262 if not dwarf_strict emit
6263 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6264 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6265 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6266 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6267 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6268 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6269 mem_loc_descriptor callers.
6270 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6271 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6272 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6273 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6274 (base_types): New variable.
6275 (get_base_type_offset, calc_base_type_die_sizes,
6276 base_type_for_mode, mark_base_types, base_type_cmp,
6277 move_marked_base_types): New functions.
6278 (calc_die_sizes): Assert that die_offset is 0 or equal to
6279 next_die_offset.
6280 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6281 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6282 callers. If not dwarf_strict, call mem_loc_descriptor even for
6283 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6284 (gen_subprogram_die): Don't give up on call site parameters
6285 with non-integral or large integral modes. Adjust
6286 mem_loc_descriptor callers.
6287 (prune_unused_types): Call prune_unused_types_mark on base_types
6288 vector entries.
6289 (resolve_addr): Call mark_base_types.
6290 (dwarf2out_finish): Call move_marked_base_types.
6291
6292 PR tree-optimization/48809
6293 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6294 type.
6295 (gen_inbound_check): Don't compute index_expr - range_min in utype
6296 again, instead reuse SSA_NAME initialized in build_arrays.
6297 Remove two useless gsi_for_stmt calls.
6298
6299 2011-04-29 Jeff Law <law@redhat.com>
6300
6301 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6302
6303 2011-04-29 Martin Jambor <mjambor@suse.cz>
6304
6305 * cgraph.h (cgraph_postorder): Remove declaration.
6306 * ipa-utils.h (ipa_free_postorder_info): Declare.
6307 (ipa_reverse_postorder): Likewise.
6308 * cgraphunit.c: Include ipa-utils.h.
6309 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6310 * ipa-inline.c: Include ipa-utils.h.
6311 (ipa_inline): Update call to ipa_reverse_postorder.
6312 * ipa-pure-const.c (propagate_pure_const): Update call to
6313 ipa_reduced_postorder and ipa_print_order. Call
6314 ipa_free_postorder_info to clean up.
6315 (propagate_nothrow): Likewise.
6316 * ipa-reference.c (propagate): Removed a useless call to
6317 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6318 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6319 * ipa.c: Include ipa-utils.h.
6320 (ipa_profile): Update call to ipa_reverse_postorder.
6321 (cgraph_postorder): Moved to...
6322 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6323 (ipa_utils_print_order): Renamed to ipa_print_order.
6324 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6325 comments.
6326 (ipa_free_postorder_info): New function.
6327 * passes.c: Include ipa-utils.h.
6328 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6329 (ipa_write_summaries): Likewise.
6330 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6331 (cgraphunit.o): Likewise.
6332 (ipa.o): Likewise.
6333 (ipa-inline.o): Likewise.
6334
6335 2011-04-29 Jan Hubicka <jh@suse.cz>
6336
6337 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6338 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6339 * ipa-inline.h (clause_t): Turn into unsigned int.
6340 * ipa-inline-analysis.c (add_clause): Do more simplification.
6341 (and_predicates): Shortcut more cases.
6342 (predicates_equal_p): Move forward; check that clauses are properly
6343 ordered.
6344 (or_predicates): Shortcut more cases.
6345 (edge_execution_predicate): Rewrite as...
6346 (set_cond_stmt_execution_predicate): ... this function; handle
6347 __builtin_constant_p.
6348 (set_switch_stmt_execution_predicate): New .
6349 (compute_bb_predicates): New.
6350 (will_be_nonconstant_predicate): Update TODO.
6351 (estimate_function_body_sizes): Use compute_bb_predicates
6352 and free them later, always try to estimate if stmt is constant.
6353 (estimate_time_after_inlining, estimate_size_after_inlining):
6354 Gracefully handle optimized out edges.
6355 (read_predicate): Fix off by one error.
6356
6357 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6358
6359 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6360
6361 2011-04-27 Xinliang David Li <davidxl@google.com>
6362
6363 * tree-profile.c (init_ic_make_global_vars): Set
6364 tls attribute on ic vars.
6365 * coverage.c (coverage_end_function): Initialize
6366 function_list with zero.
6367
6368 2011-04-29 Richard Guenther <rguenther@suse.de>
6369
6370 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6371 for the type of the result.
6372 (fold_builtin_isascii): Likewise.
6373 (fold_builtin_toascii): Use integer_type_node where appropriate.
6374 (fold_builtin_logb): Likewise.
6375 (fold_builtin_frexp): Likewise.
6376 (fold_builtin_strstr): Likewise.
6377 (fold_builtin_strpbrk): Likewise.
6378 (fold_builtin_fputs): Likewise.
6379 (fold_builtin_sprintf): Likewise.
6380 (fold_builtin_snprintf): Likewise.
6381 (fold_builtin_printf): Likewise.
6382 (do_mpfr_remquo): Use a proper type for the assigned constant.
6383 (do_mpfr_lgamma_r): Likewise.
6384 * dwarf2out.c (resolve_one_addr): Use size_int.
6385 * except.c (init_eh): Likewise.
6386 (assign_filter_values): Use integer_type_node for filter values.
6387 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6388 indices.
6389 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6390 for EH region numbers.
6391 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6392 for the shift amount.
6393
6394 2011-04-29 Richard Guenther <rguenther@suse.de>
6395
6396 * expr.h (expand_shift): Rename to ...
6397 (expand_variable_shift): ... this.
6398 (expand_shift): Take a constant shift amount.
6399 * expmed.c (expand_shift): Rename to ...
6400 (expand_variable_shift): ... this.
6401 (expand_shift): New wrapper around expand_variable_shift.
6402 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6403 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6404 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6405 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6406 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6407 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6408 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6409 emit_store_flag_1, emit_store_flag): Likewise.
6410 * builtins.c (expand_builtin_signbit): Likewise.
6411 * calls.c (load_register_parameters): Likewise.
6412 * function.c (assign_parm_setup_block): Likewise.
6413 * lower-subreg.c (resolve_shift_zext): Likewise.
6414 * optabs.c (widen_bswap, expand_abs_nojump,
6415 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6416 * spu/spu.c (spu_expand_extv): Likewise.
6417 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6418
6419 2011-04-29 Richard Guenther <rguenther@suse.de>
6420
6421 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6422 for the remapped region number.
6423 * predict.c (build_predict_expr): Use integer_type_node for the
6424 predict kind.
6425 * fold-const.c (fold_binary_loc): Use integer_type_node for
6426 the shift amount. Use a proper type for the PLUS_EXPR operand.
6427
6428 2011-04-29 Michael Matz <matz@suse.de>
6429
6430 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6431 other trees that just builtins.
6432 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6433
6434 2011-04-29 Richard Guenther <rguenther@suse.de>
6435
6436 * tree-nested.c (get_trampoline_type): Use size_int.
6437 (get_nl_goto_field): Likewise.
6438 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6439 for all indexes.
6440 (lower_eh_constructs_2): Likewise.
6441 (lower_resx): Likewise.
6442 (lower_eh_dispatch): Likewise.
6443 * tree-mudflap.c (mf_build_string): Use size_int.
6444 (mudflap_register_call): Use integer_type_node for the flag.
6445 (mudflap_enqueue_constant): Use size_int.
6446 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6447 instead of rebuilding it.
6448
6449 2011-04-29 Richard Guenther <rguenther@suse.de>
6450
6451 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6452 Handle OBJ_TYPE_REF.
6453 (find_func_aliases_for_call): Use it more consistently.
6454
6455 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6456
6457 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6458 (rank_for_schedule): Use it.
6459 (schedule_block): Set it.
6460
6461 2011-04-28 David Li <davidxl@google.com>
6462
6463 * tree.c (crc32_string): Use crc32_byte.
6464 (crc32_byte): New function.
6465 * tree.h (crc32_byte): New function.
6466 * gcov.c (read_graph_file): Handle new cfg_cksum.
6467 (read_count_file): Ditto.
6468 * profile.c (instrument_values): Ditto.
6469 (get_exec_counts): Ditto.
6470 (read_profile_edge_counts): Ditto.
6471 (compute_branch_probabilities): Ditto.
6472 (compute_value_histograms): Ditto.
6473 (branch_prob): Ditto.
6474 (end_branch_prob): Ditto.
6475 * coverage.c (read_counts_file): Ditto.
6476 (get_coverage_counts): Ditto.
6477 (tree_coverage_counter_addr): Ditto.
6478 (coverage_checksum_string): Ditto.
6479 (coverage_begin_output): Ditto.
6480 (coverage_end_function): Ditto.
6481 (build_fn_info_type): Ditto.
6482 (build_fn_info_value): Ditto.
6483 * libgcov.c (gcov_exit): Ditto.
6484 * gcov-dump.c (tag_function): Ditto.
6485 (compute_checksum): Remove.
6486
6487 2011-04-29 Alan Modra <amodra@gmail.com>
6488
6489 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6490 unspec plus offset. Tidy macho code.
6491
6492 2011-04-29 Martin Jambor <mjambor@suse.cz>
6493
6494 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6495 node instead of a decl. Update all callers.
6496 * cgraph.h: Update declaration.
6497
6498 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6499
6500 PR tree-optimization/48765
6501 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6502 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6503 to indicate if loop aware SLP is being used. Scan the statements
6504 and update the vectorization factor according to the type of
6505 vectorization before statement analysis.
6506 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6507 pass it to vect_analyze_loop_operations.
6508 (vectorizable_reduction): Set number of copies to 1 in case of pure
6509 SLP statement.
6510 * tree-vect-stmts.c (vectorizable_conversion,
6511 vectorizable_assignment, vectorizable_shift,
6512 vectorizable_operation, vectorizable_type_demotion,
6513 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6514 Likewise.
6515 (vectorizable_condition): Move the check that it is not SLP
6516 vectorization before the number of copies check.
6517 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6518 to vectorize the loop using SLP.
6519
6520 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6521
6522 PR middle-end/48597
6523 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6524 inline asm.
6525
6526 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6527
6528 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6529 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6530 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6531 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6532 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6533 linux*.h headers.
6534 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6535 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6536 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6537 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6538 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6539 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6540 REG_NAME.
6541 * config/i386/linux.h (REG_NAME): Don't define.
6542 * config/i386/linux64.h (REG_NAME): Don't define.
6543 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6544 Undefine before defining.
6545
6546 2011-04-28 Jan Hubicka <jh@suse.cz>
6547
6548 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6549 nonconstant_names array.
6550 (estimate_function_body_sizes): Build nonconstant_names array; handle
6551 BUILT_IN_CONSTANT_P.
6552
6553 2011-04-28 Richard Guenther <rguenther@suse.de>
6554
6555 PR bootstrap/48804
6556 Revert
6557 2011-04-28 Richard Guenther <rguenther@suse.de>
6558
6559 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6560 as late as possible.
6561
6562 2011-04-28 Richard Guenther <rguenther@suse.de>
6563
6564 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6565 (debug_constraint): Do it here.
6566 (dump_constraints): And here.
6567 (rewrite_constraints): And here.
6568 (dump_constraint_edge): Remove.
6569 (dump_constraint_graph): Rewrite to produce DOT output.
6570 (solve_constraints): Build succ graph as late as possible.
6571 Dump constraint graphs before and after solving.
6572
6573 2011-04-28 Richard Guenther <rguenther@suse.de>
6574
6575 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6576 New function split out from ...
6577 (find_func_aliases): ... here. Call it.
6578 (find_func_aliases_for_call): Likewise.
6579
6580 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6581
6582 * internal-fn.h (internal_fn_name_array): Declare.
6583 (internal_fn_flags_array): Likewise.
6584
6585 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6586
6587 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6588 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6589 Move from sse.md.
6590 (ssemodefsuffix): Remove.
6591 (ssevecmodesuffix): New mode attribute.
6592 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6593 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6594 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6595 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6596 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6597 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6598 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6599 ssemodesuffix mode attribute.
6600 (float splitters): Use ssevecmodesuffix mode attribute.
6601 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6602 (sseinsmode): Rename from avxvecmode.
6603 (avxsizesuffix): Rename from avxmodesuffix.
6604 (sseintvecmode): Rename from avxpermvecmode.
6605 (ssedoublevecmode): Rename from ssedoublesizemode.
6606 (ssehalfvecmode): Rename from avxhalfvecmode.
6607 (ssescalarmode): Rename from avxscalarmode.
6608 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6609 templates for ssemodesuffix mode attribute.
6610 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6611 mode attribute.
6612
6613 Adjust RTX patterns globally for renamed mode attributes.
6614
6615 2011-04-27 Jan Hubcika <jh@suse.cz>
6616
6617 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6618 * ipa-inline-analysis.c: Include alloc-pool.h.
6619 (edge_predicate_pool): New.
6620 (trye_predicate_p): New function
6621 (false_predicate_p): New function.
6622 (add_clause): Sanity check that false clauses are "optimized";
6623 never add clauses to predicate that is already known to be false.
6624 (and_predicate): Use flase_predicate_p.
6625 (evaulate_predicate): Rename to ...
6626 (evaluate_predicate): ... this one; update all callers; assert
6627 that false is not listed among possible truths.
6628 (dump_predicate): Use true_predicate_p.
6629 (account_size_time): Use false_predicate_p.
6630 (evaulate_conditions_for_edge): Rename to ...
6631 (evaluate_conditions_for_edge) ... this one.
6632 (edge_set_predicate): New function.
6633 (inline_edge_duplication_hook): Duplicate edge predicates.
6634 (inline_edge_removal_hook): Free edge predicates.
6635 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6636 (dump_inline_summary): Update.
6637 (estimate_function_body_sizes): Set edge predicates.
6638 (estimate_calls_size_and_time): Handle predicates.
6639 (estimate_callee_size_and_time): Update.
6640 (remap_predicate): Add toplev_predicate; update comment.
6641 (remap_edge_predicates): New function.
6642 (inline_merge_summary): Compute toplev predicate; update.
6643 (read_predicate): New function.
6644 (read_inline_edge_summary): Use it.
6645 (inline_read_section): Likewise.
6646 (write_predicate): New function.
6647 (write_inline_edge_summary): Use it.
6648 (inline_write_summary): Likewise.
6649 (inline_free_summary): Free alloc pool and edge summary vec.
6650
6651 2011-04-27 Richard Guenther <rguenther@suse.de>
6652
6653 * tree-ssa-structalias.c (changed_count): Remove.
6654 (changed): Use a bitmap.
6655 (unify_nodes): Adjust.
6656 (do_sd_constraint): Likewise.
6657 (do_ds_constraint): Likewise.
6658 (do_complex_constraint): Likewise.
6659 (solve_graph): Likewise.
6660
6661 2011-04-27 Jan Hubicka <jh@suse.cz>
6662
6663 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6664
6665 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6666
6667 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6668 (avx_vperm2f128_*_operand): Ditto.
6669 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6670 Use avx_vpermilp_parallel in insn condition.
6671 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6672 Use avx_vperm2f128_parallel in insn condition.
6673
6674 2011-04-27 Richard Guenther <rguenther@suse.de>
6675
6676 * Makefile.in (tree-ssa-structalias.o): Remove
6677 gt-tree-ssa-structalias.h dependency.
6678 (GTFILES): Remove tree-ssa-structalias.c.
6679 * tree.c (allocate_decl_uid): New function.
6680 (make_node_stat): Use it.
6681 (copy_node_stat): Likewise.
6682 * tree.h (allocate_decl_uid): Declare.
6683 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6684 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6685 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6686 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6687 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6688 (struct heapvar_map): Likewise.
6689 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6690 heapvar_insert): Likewise.
6691 (make_heapvar_for): Rename to ...
6692 (make_heapvar): ... this. Simplify.
6693 (fake_var_decl_obstack): New global var.
6694 (build_fake_var_decl): New function.
6695 (make_constraint_from_heapvar): Adjust.
6696 (handle_lhs_call): Likewise.
6697 (create_function_info_for): Likewise.
6698 (intra_create_variable_infos): Likewise.
6699 (init_alias_vars): Allocate fake_var_decl_obstack.
6700 (init_alias_heapvars, delete_alias_heapvars): Remove.
6701 (compute_points_to_sets): Do not call init_alias_heapvars.
6702 (ipa_pta_execute): Likewise.
6703 (delete_points_to_sets): Free fake_var_decl_obstack.
6704
6705 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6706
6707 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6708 (si_from_UTItype, si_to_UTItype): New functions.
6709 (__udivmodti4): Use them to implement type-punning.
6710 * config/spu/multi3.c (union qword_TItype): New data type.
6711 (si_from_TItype, si_to_TItype): New functions.
6712 (__multi3): Use them to implement type-punning.
6713
6714 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6715
6716 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6717
6718 2011-04-27 Jan Hubicka <jh@suse.cz>
6719
6720 * ipa-prop.c (function_insertion_hook_holder): New holder.
6721 (ipa_add_new_function): New function.
6722 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6723 Register/deregister holder.
6724
6725 2011-04-27 Richard Guenther <rguenther@suse.de>
6726
6727 PR tree-optimization/48772
6728 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6729
6730 2011-04-27 Richard Guenther <rguenther@suse.de>
6731
6732 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6733 TARGET_MEM_REF handling.
6734
6735 2011-04-27 Nick Clifton <nickc@redhat.com>
6736
6737 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6738 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6739 (REG_CLASS_NAMES): Likewise.
6740 (REG_CLASS_CONTENTS): Likewise.
6741 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6742 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6743 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6744 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6745 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6746 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6747 duplicate register classes.
6748 (frv_class_likely_spilled_p): Likewise.
6749 (frv_register_move_cost): Likewise.
6750
6751 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6752 end of the regno_reg_class array.
6753
6754 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6755
6756 PR c/48742
6757 * c-typeck.c (build_binary_op): Don't wrap arguments if
6758 int_operands is true.
6759
6760 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6761
6762 PR target/48767
6763 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6764 targetm.calls.must_pass_in_stack for void type.
6765
6766 2011-04-26 Jan Hubicka <jh@suse.cz>
6767
6768 * cgraphbuild.c (build_cgraph_edges): Update call
6769 of cgraph_create_edge and cgraph_create_indirect_edge.
6770 * cgraph.c (cgraph_create_edge_including_clones,
6771 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6772 cgraph_update_edges_for_call_stmt_node): Do not take nest
6773 argument; do not initialize call_stmt_size/time.
6774 (dump_cgraph_node): Do not dump nest.
6775 (cgraph_clone_edge): Do not take loop_nest argument;
6776 do not propagate it; do not clone call_stmt_size/time.
6777 (cgraph_clone_node): Likewise.
6778 (cgraph_create_virtual_clone): Update.
6779 * cgraph.h (struct cgraph_edge): Remove
6780 call_stmt_size/call_stmt_time/loop_nest.
6781 (cgraph_create_edge, cgraph_create_indirect_edge,
6782 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6783 prototype.
6784 * tree-emutls.c (gen_emutls_addr): Update.
6785 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6786 loop_nest; handle indirect calls, too.
6787 (clone_inlined_nodes): Do not care about updating inline summaries.
6788 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6789 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6790 stream call_stmt_size/call_stmt_time/loop_nest.
6791 * ipa-inline.c (edge_badness): Update.
6792 (ipa_inline): dump summaries after inlining.
6793 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6794 New.
6795 (inline_edge_summary): New function.
6796 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6797 (inline_edge_removal_hook): Handle edge summaries.
6798 (inline_edge_duplication_hook): New hook.
6799 (inline_summary_alloc): Alloc hooks.
6800 (initialize_growth_caches): Do not register removal hooks.
6801 (free_growth_caches); Do not free removal hook.
6802 (dump_inline_edge_summary): New function.
6803 (dump_inline_summary): Use it.
6804 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6805 (inline_update_callee_summaries): New function.
6806 (inline_merge_summary): Use it.
6807 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6808 (read_inline_edge_summary): New function.
6809 (inline_read_section): Use it.
6810 (write_inline_edge_summary): New function.
6811 (inline_write_summary): Use it.
6812 (inline_free_summary): Free edge new holders.
6813 * tree-inline.c (copy_bb): Update.
6814
6815 2011-04-26 Jason Merrill <jason@redhat.com>
6816
6817 * tree-eh.c (lower_try_finally_switch): Create the label along with
6818 the CASE_LABEL_EXPR.
6819
6820 2011-04-26 David S. Miller <davem@davemloft.net>
6821 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6822
6823 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6824 * configure: Regenerate.
6825
6826 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6827
6828 PR target/48258
6829 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6830 reduction.
6831 (VEC_reduc): New code iterator and splitters for vector reduction.
6832 (VEC_reduc_name): Ditto.
6833 (VEC_reduc_rtx): Ditto.
6834 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6835 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6836
6837 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6838 support for extracting SF on VSX.
6839
6840 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6841 generating xscvspdp.
6842 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6843 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6844 double add, minimum, maximum vector reduction.
6845 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6846 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6847 optimize double vector reduction.
6848 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6849
6850 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6851
6852 * config/fr30/fr30.h (inhibit_libc): Don't define.
6853 * config/m32r/m32r-protos.h: Correct comment.
6854 * config/v850/v850.h (GHS_default_section_names,
6855 GHS_current_section_names): Use tree, not union tree_node *.
6856
6857 2011-04-26 Xinliang David Li <davidxl@google.com>
6858
6859 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6860 * c-family/c-opts.c (c_common_handle_option): Set
6861 warn_maybe_uninitialized.
6862 * opts.c (common_handle_option): Ditto.
6863 * common.opt: New option.
6864 * tree-ssa.c (warn_uninit): Add one more parameter.
6865 (warn_uninitialized_var): Pass warning code.
6866 * tree-flow.h: Interface change.
6867
6868 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6869
6870 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6871 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6872 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6873
6874 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6875
6876 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6877 * config/mips/mips.opt (mmips-tfile): Remove.
6878
6879 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6880 mips-tdump reference to ...
6881 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6882 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6883 reference by Tru64 UNIX.
6884
6885 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6886
6887 PR debug/48768
6888 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6889 is error_mark_node, set value to NULL.
6890
6891 PR tree-optimization/48734
6892 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6893 if return value from maybe_fold_*_comparsions isn't something
6894 the code is prepared to handle.
6895
6896 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6897
6898 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6899 mode check.
6900 (ext_QIreg_nomode_operands): Remove.
6901 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6902 (*andsi_1): Ditto.
6903 (*andhi_1): Ditto.
6904
6905 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6906
6907 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6908
6909 2011-04-26 Richard Guenther <rguenther@suse.de>
6910
6911 * c-typeck.c (build_unary_op): Do not expand array-refs via
6912 pointer arithmetic. Only adjust qualifiers for function types.
6913
6914 2011-04-26 Richard Guenther <rguenther@suse.de>
6915
6916 PR middle-end/48694
6917 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6918 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6919 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6920 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6921
6922 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6923
6924 * doc/extend.texi: Document __underlying_type.
6925
6926 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6927
6928 * config/rs6000/titan.md (automata_option "progress"): Remove.
6929
6930 2011-04-25 Jeff Law <law@redhat.com>
6931
6932 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6933
6934 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6935
6936 * system.h (ENUM_BITFIELD): Remove.
6937
6938 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6939 Eric Botcazou <ebotcazou@adacore.com>
6940
6941 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6942 for STORE_FLAG_VALUE==-1 case.
6943
6944 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6945
6946 PR target/43804
6947 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6948 LEGITIMATE_PIC_OPERAND_P.
6949
6950 2011-04-24 Jan Hubicka <jh@suse.cz>
6951
6952 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6953 WPA hack.
6954 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6955 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6956 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6957 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6958 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6959 Sanity check predicate length.
6960 (remap_predicate): Likewise; sanity check jump functions.
6961 (inline_read_section, inline_write_summary): Sanity check
6962 predicate length.
6963
6964 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6965
6966 PR other/48748
6967 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6968 __is_literal_type, and __is_trivial; update throughout about
6969 possibly cv-qualified void types.
6970
6971 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6972
6973 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6974 testsuite and make it version agnostic.
6975
6976 2011-04-22 Jan Hubicka <jh@suse.cz>
6977
6978 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6979
6980 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6981
6982 PR c/48685
6983 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6984 to VOID_TYPE even around MODIFY_EXPR.
6985
6986 2011-04-22 Mike Stump <mikestump@comcast.net>
6987
6988 * gensupport.c (read_md_rtx): Fix typo in comment.
6989 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6990 comment.
6991
6992 2011-04-22 Jan Hubicka <jh@suse.cz>
6993
6994 * gengtype.c (open_base_files): Add ipa-inline.h include.
6995 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6996 ipa-prop.c; update all uses.
6997 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6998 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6999 merge summary of inlined function into former caller.
7000 * ipa-inline.c (max_benefit): Remove.
7001 (edge_badness): Compensate for removal of benefits.
7002 (update_caller_keys): Use
7003 reset_node_growth_cache/reset_edge_growth_cache.
7004 (update_callee_keys): Likewise.
7005 (update_all_callee_keys): Likewise.
7006 (inline_small_functions): Do not collect max_benefit; do not reset
7007 estimated_growth; call free_growth_caches and initialize_growth_caches.
7008 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7009 struct size_time_entry): New structures.
7010 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7011 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7012 and estimated_growth.
7013 (edge_growth_cache_entry): New structure.
7014 (node_growth_cache, edge_growth_cache): New global vars.
7015 (estimate_growth): Turn into inline.
7016 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7017 initialize_growth_caches, free_growth_caches): Declare.
7018 (estimate_edge_growth): Rewrite.
7019 (estimate_edge_time): Implement as inline cache lookup.
7020 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7021 functions.
7022 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7023 (NUM_CONDITIONS): New constant.
7024 (predicate_conditions): New enum.
7025 (IS_NOT_CONSTANT): New constant.
7026 (edge_removal_hook_holder): New var.
7027 (node_growth_cache, edge_growth_cache): New global vars.
7028 (true_predicate, single_cond_predicate, false_predicate,
7029 not_inlined_predicate, add_condition, add_clause, and_predicates,
7030 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7031 dump_clause, dump_predicate, account_size_time,
7032 evaulate_conditions_for_edge): New functions.
7033 (inline_summary_alloc): Move to heap.
7034 (inline_node_removal_hook): Clear condition and entry vectors.
7035 (inline_edge_removal_hook): New function.
7036 (initialize_growth_caches, free_growth_caches): New function.
7037 (dump_inline_summary): Update.
7038 (edge_execution_predicate): New function.
7039 (will_be_nonconstant_predicate): New function.
7040 (estimate_function_body_sizes): Compute BB and constantness predicates.
7041 (compute_inline_parameters): Do not clear estimated_growth.
7042 (estimate_edge_size_and_time): New function.
7043 (estimate_calls_size_and_time): New function.
7044 (estimate_callee_size_and_time): New function.
7045 (remap_predicate): New function.
7046 (inline_merge_summary): New function.
7047 (do_estimate_edge_time): New function based on...
7048 (estimate_edge_time): ... this one.
7049 (do_estimate_edge_growth): New function.
7050 (do_estimate_growth): New function based on....
7051 (estimate_growth): ... this one.
7052 (inline_analyze_function): Analyze after deciding on jump functions.
7053 (inline_read_section): New function.
7054 (inline_read_summary): Use it.
7055 (inline_write_summary): Write all the new data.
7056 * ipa-prop.c (ipa_get_param_decl_index): Export.
7057 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7058 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7059 Declare.
7060 (ipa_get_lattice): Move here from ipa-cp.c
7061 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7062 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7063 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7064 cgraph_edge_inlinable_p): Remove.
7065 * cgraphunit.c: Include ipainline.h
7066 (cgraph_process_new_functions): Update call of
7067 compute_inline_parameters.
7068
7069 2011-04-22 Richard Guenther <rguenther@suse.de>
7070
7071 * tree.c (build_int_cst): Properly create canonicalized integer
7072 constants.
7073 (build_int_cst_type): Remove scary comments.
7074
7075 2011-04-22 Xinliang David Li <davidxl@google.com>
7076
7077 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7078 by default when -Wno-error is not specified.
7079 * opts-global.c (decode_options): Remove call to
7080 control_warning_options.
7081
7082 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7083
7084 PR tree-optimization/48717
7085 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7086 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7087
7088 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7089
7090 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7091 definition where used.
7092
7093 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7094
7095 PR c/48716
7096 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7097 TREE_STATIC variables declared inside of some OpenMP construct.
7098
7099 2011-04-22 Martin Jambor <mjambor@suse.cz>
7100
7101 PR middle-end/48585
7102 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7103
7104 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7105
7106 PR c/36750
7107 * c-typeck.c (pop_init_level): Do not warn about initializing
7108 with ` = {0}'.
7109
7110 2011-04-22 Alan Modra <amodra@gmail.com>
7111
7112 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7113 when returning call_cookie.
7114 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7115 pointers, to functions with no more vector args than the current
7116 function, and some non-local calls for ABI_V4.
7117 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7118 sibcall_nonlocal_aix64): Combine to ..
7119 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7120 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7121 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7122 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7123 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7124 operand.
7125 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7126 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7127 sibcall_value_symbolic_64): Delete.
7128
7129 2011-04-21 Xinliang David Li <davidxl@google.com>
7130
7131 * cgraph.h: Remove pid.
7132 * cgraph.c: Remove pid.
7133 * value-prof.c (init_node_map): New function.
7134 (del_node_map): New function.
7135 (find_func_by_funcdef_no): New function.
7136 (gimple_ic_transform): Call new function.
7137 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7138 * function.c (get_last_funcdef_no): New function.
7139 * function.h (get_last_funcdef_no): New function.
7140 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7141 to libgcov function.
7142 (tree-profiling): Call node map init and delete function.
7143
7144 2011-04-21 Ian Lance Taylor <iant@google.com>
7145
7146 * godump.c (go_format_type): Use exported Go name for anonymous
7147 field name.
7148
7149 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7150
7151 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7152 Call builtin_function_type_list instead of builtin_function_type.
7153 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7154
7155 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7156
7157 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7158 build_function_type_list instead of build_function_type.
7159 Delete variable `endlink'.
7160
7161 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7162
7163 * config/s390/s390.c (s390_init_builtins): Call
7164 build_function_type_list instead of build_function_type.
7165
7166 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7167
7168 * config/ia64/ia64.c (ia64_init_builtins): Call
7169 build_function_type_list instead of builtin_function_type.
7170
7171 2011-04-21 Easwaran Raman <eraman@google.com>
7172
7173 * cfgexpand.c (stack_var): Remove OFFSET...
7174 (add_stack_var): ...and its reference here...
7175 (expand_stack_vars): ...and here.
7176 (stack_var_cmp): Sort by descending order of size.
7177 (partition_stack_vars): Change heuristic.
7178 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7179 (dump_stack_var_partition): Add newline after each partition.
7180
7181 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7182 Jeff Law <law@redhat.com>
7183
7184 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7185 * gengtype.c (matching_file_name_substitute): Likewise.
7186
7187 2011-04-21 Richard Guenther <rguenther@suse.de>
7188
7189 PR lto/48703
7190 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7191
7192 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7193
7194 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7195
7196 2011-04-21 Richard Guenther <rguenther@suse.de>
7197
7198 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7199 file name.
7200
7201 2011-04-21 Richard Guenther <rguenther@suse.de>
7202
7203 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7204 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7205 Use DECL_P, not SSA_VAR_P.
7206 (ptr_derefs_may_alias_p): Likewise.
7207 (ptr_deref_may_alias_ref_p_1): Likewise.
7208 (decl_refs_may_alias_p): Likewise.
7209 (refs_may_alias_p_1): Likewise.
7210 (ref_maybe_used_by_call_p_1): Likewise.
7211 (call_may_clobber_ref_p_1): Likewise.
7212 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7213 are either MEM_REF or TARGET_MEM_REF.
7214 (indirect_refs_may_alias_p): Likewise.
7215 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7216 for MEM_EXPR of indirect calls.
7217
7218 2011-04-21 Tristan Gingold <gingold@adacore.com>
7219
7220 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7221 (dst_file_info_struct): Remove flen field.
7222 (lookup_filename): Remove code that set flen field.
7223
7224 2011-04-21 Tristan Gingold <gingold@adacore.com>
7225
7226 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7227
7228 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7229
7230 PR target/48708
7231 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7232 vec_extract and vec_concat for non-SSE4_1 targets.
7233
7234 2011-04-21 Richard Guenther <rguenther@suse.de>
7235
7236 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7237 return statements.
7238
7239 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7240
7241 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7242 undefine.
7243 (FILE): Don't undefine.
7244
7245 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7246
7247 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7248 struct rtx_def *.
7249 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7250 struct rtx_def *.
7251 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7252 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7253 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7254 rtx_def *.
7255 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7256 definitions where used.
7257 * config/microblaze/microblaze.h (struct microblaze_args): Use
7258 rtx, not struct rtx_def *.
7259 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7260 rtx_def *.
7261 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7262 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7263 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7264 not struct rtx_def *.
7265 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7266 struct rtx_def *.
7267 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7268 rtx_def *.
7269 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7270
7271 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7272
7273 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7274 operand_equal_p to compare DR_BASE_ADDRESSes.
7275 (vect_check_interleaving): Likewise.
7276
7277 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7278
7279 PR target/46329
7280 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7281 for all Neon struct constants.
7282
7283 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7284
7285 * target.def (legitimate_constant_p): New hook.
7286 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7287 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7288 * doc/tm.texi: Regenerate.
7289 * hooks.h (hook_bool_mode_rtx_true): Declare.
7290 * hooks.c (hook_bool_mode_rtx_true): Define.
7291 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7292 * calls.c (precompute_register_parameters): Replace uses of
7293 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7294 (emit_library_call_value_1): Likewise.
7295 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7296 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7297 * ira-costs.c (scan_one_insn): Likewise.
7298 * recog.c (general_operand, immediate_operand): Likewise.
7299 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7300 * reload1.c (init_eliminable_invariants): Likewise.
7301
7302 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7303 mode argument.
7304 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7305 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7306 argument.
7307 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7308 * config/alpha/predicates.md (input_operand): Update call to
7309 alpha_legitimate_constant_p.
7310
7311 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7312 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7313 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7314 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7315 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7316 (arm_legitimate_constant_p): New functions.
7317 (arm_cannot_force_const_mem): Make static.
7318
7319 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7320
7321 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7322 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7323 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7324 instead of bfin_legitimate_constant_p.
7325 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7326 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7327
7328 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7329
7330 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7331
7332 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7333 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7334 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7335 (frv_legitimate_constant_p): Make static. Add a mode argument.
7336
7337 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7338 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7339 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7340
7341 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7342 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7343 * config/i386/i386.c (legitimate_constant_p): Rename to...
7344 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7345 argument.
7346 (ix86_cannot_force_const_mem): Update accordingly.
7347 (ix86_legitimate_address_p): Likewise.
7348 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7349 * config/i386/i386.md: Update commentary.
7350
7351 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7352 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7353 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7354 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7355
7356 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7357
7358 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7359 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7360 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7361 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7362
7363 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7364 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7365 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7366
7367 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7368 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7369 (m32r_legitimate_constant_p): New function.
7370
7371 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7372 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7373 LEGITIMATE_CONSTANT_P.
7374 (LEGITIMATE_CONSTANT_P): Delete.
7375 * config/m68k/m68k.c (m68k_expand_prologue): Call
7376 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7377 (m68k_legitimate_constant_p): New function.
7378 * config/m68k/m68k.md: Update comments.
7379
7380 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7381 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7382 (mcore_legitimate_constant_p): New function.
7383
7384 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7385 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7386 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7387 Add a mode argument.
7388 (mep_legitimate_address): Update accordingly.
7389 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7390
7391 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7392 Delete.
7393 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7394 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7395 static. Check OP's mode for VOIDmode.
7396 (microblaze_legitimate_constant_p): New function.
7397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7398
7399 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7400 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7401 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7402 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7403 * config/mips/predicates.md: Update comments.
7404
7405 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7406 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7407 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7408 (mmix_legitimate_constant_p): Make static, return a bool, and take
7409 a mode argument.
7410 (mmix_print_operand_address): Update accordingly.
7411
7412 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7413 Delete.
7414 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7415 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7416 static. Add a mode argument.
7417 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7418
7419 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7420
7421 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7422 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7423 (pa_legitimate_constant_p): New function.
7424
7425 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7426
7427 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7428 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7429 (pdp11_legitimate_constant_p): New function.
7430
7431 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7432 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7433 (rs6000_legitimate_constant_p): New function.
7434
7435 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7436 (rx_legitimate_constant_p): ...this.
7437 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7438 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7439 (rx_legitimate_constant_p): ...this.
7440 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7441 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7442
7443 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7444 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7445 * config/s390/s390.c (legitimate_constant_p): Rename to...
7446 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7447 and add a mode argument.
7448 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7449
7450 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7451
7452 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7453 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7454 (sh_legitimate_constant_p): New function.
7455
7456 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7457 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7458 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7459 (legitimate_constant_p): Rename to...
7460 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7461 argument.
7462 (constant_address_p): Update accordingly.
7463
7464 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7465 argument and return a bool.
7466 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7467 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7468 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7469 (spu_rtx_costs): Update accordingly.
7470 * config/spu/predicates.md (vec_imm_operand): Likewise.
7471
7472 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7473
7474 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7475 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7476 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7477
7478 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7479 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7480 * config/vax/vax.c (legitimate_constant_p): Likewise.
7481
7482 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7483 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7484 (xtensa_legitimate_constant_p): New function.
7485
7486 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7487
7488 * target.def (cannot_force_const_mem): Add a mode argument.
7489 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7490 * doc/tm.texi: Regenerate.
7491 * hooks.h (hook_bool_mode_rtx_false): Declare.
7492 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7493 (hook_bool_mode_const_rtx_true): Likewise.
7494 (hook_bool_mode_rtx_false): New function.
7495 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7496 to be non-VOID. Update call to cannot_force_const_mem.
7497 (find_reloads): Update accordingly.
7498 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7499 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7500 argument.
7501 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7502 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7503 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7504 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7505 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7506 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7507 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7508 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7509 (m68k_cannot_force_const_mem): ...this new function.
7510 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7511 argument.
7512 (mips_const_insns, mips_legitimize_const_move): Update calls.
7513 (mips_secondary_reload_class): Likewise.
7514 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7515 (pa_cannot_force_const_mem): ...this new function.
7516 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7517 (rs6000_cannot_force_const_mem): ...this new function.
7518 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7519 argument.
7520 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7521 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7522 to...
7523 (xtensa_cannot_force_const_mem): ...this new function.
7524
7525 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7526
7527 * config/mips/mips.c (mips16_build_function_stub): Call
7528 build_function_type_list instead of build_function_type.
7529 (mips16_build_call_stub): Likewise.
7530
7531 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7532
7533 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7534 instead of build_function_type.
7535
7536 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7537
7538 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7539 instead of build_function_type.
7540
7541 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7542
7543 PR target/48678
7544 * config/i386/i386.md (insv): Change operand 0 constraint to
7545 "register_operand". Change operand 1 and 2 constraint to
7546 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7547 * config/i386/sse.md (sse4_1_pinsrb): Export.
7548 (sse2_pinsrw): Ditto.
7549 (sse4_1_pinsrd): Ditto.
7550 (sse4_1_pinsrq): Ditto.
7551 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7552 * config/i386/i386.c (ix86_expand_pinsr): New.
7553
7554 2011-04-20 Easwaran Raman <eraman@google.com>
7555
7556 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7557 containing union type only with -fstrict-aliasing.
7558
7559 2011-04-20 Jim Meyering <meyering@redhat.com>
7560
7561 Remove useless if-before-free tests.
7562 * calls.c (expand_call, save_area): Likewise.
7563 * cfgcleanup.c (try_forward_edges): Likewise.
7564 * collect2.c (collect_execute): Likewise.
7565 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7566 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7567 * coverage.c (coverage_checksum_string): Likewise.
7568 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7569 * cselib.c (cselib_init): Likewise.
7570 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7571 (df_set_clean_cfg): Likewise.
7572 * function.c (free_after_compilation): Likewise.
7573 * gcc.c (do_spec_1, main): Likewise.
7574 * gcov.c (create_file_names): Likewise.
7575 * gensupport.c (identify_predicable_attribute): Likewise.
7576 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7577 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7578 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7579 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7580 * ipa-pure-const.c (local_pure_const): Likewise.
7581 * ipa-reference.c (propagate): Likewise.
7582 * ira-costs.c (free_ira_costs): Likewise.
7583 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7584 * matrix-reorg.c (mat_free): Likewise.
7585 * prefix.c (get_key_value): Likewise.
7586 * profile.c (compute_value_histograms): Likewise.
7587 * reload1.c (free_reg_equiv): Likewise.
7588 * sched-deps.c (free_deps): Likewise.
7589 * sel-sched-ir.c (fence_clear): Likewise.
7590 * sese.c (set_rename, if_region_set_false_region): Likewise.
7591 * tree-data-ref.c (free_rdg): Likewise.
7592 * tree-eh.c (lower_try_finally): Likewise.
7593 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7594 * tree-ssa-live.c (delete_var_map): Likewise.
7595 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7596 * tree-ssa-pre.c (phi_trans_add): Likewise.
7597
7598 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7599
7600 PR tree-optimization/48611
7601 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7602 beyond ERT_MUST_NOT_THROW region.
7603
7604 2011-04-20 Catherine Moore <clm@codesourcery.com>
7605
7606 * config/mips/mips.opt (mfix-24k): New.
7607 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7608 * config/mips/mips.md (length): Increase by 4 for stores if
7609 fixing 24K errata.
7610 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7611 all noreorder if fixing 24K errata.
7612 * doc/invoke.texi: Document mfix-24k.
7613
7614 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7615
7616 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7617 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7618
7619 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7620
7621 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7622 (const_ok_for_op): ... to here.
7623
7624 2011-04-20 Kai Tietz <ktietz@redhat.com>
7625
7626 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7627 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7628
7629 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7630
7631 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7632
7633 2011-04-20 Richard Guenther <rguenther@suse.de>
7634
7635 PR tree-optimization/47892
7636 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7637 are if-convertible.
7638
7639 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7640
7641 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7642
7643 2011-04-20 Tristan Gingold <gingold@adacore.com>
7644
7645 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7646
7647 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7648
7649 PR target/18145
7650
7651 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7652 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7653 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7654 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7655 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7656
7657 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7658 New prototype.
7659
7660 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7661 (avr_asm_named_section, avr_asm_output_aligned_common,
7662 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7663 New functions to update...
7664 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7665 (avr_asm_init_sections): Overwrite section callbacks for
7666 data_section, bss_section.
7667 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7668 from here to...
7669 (avr_file_end): ...here.
7670
7671 2011-04-20 Richard Guenther <rguenther@suse.de>
7672
7673 PR middle-end/48695
7674 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7675 objects and types here. Adjust for their offset before comparing.
7676
7677 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7678
7679 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7680 statement per copy.
7681
7682 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7683
7684 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7685 (GIMPLE_H): Include $(INTERNAL_FN_H).
7686 (OBJS-common): Add internal-fn.o.
7687 (internal-fn.o): New rule.
7688 * internal-fn.def: New file.
7689 * internal-fn.h: Likewise.
7690 * internal-fn.c: Likewise.
7691 * gimple.h: Include internal-fn.h.
7692 (GF_CALL_INTERNAL): New gf_mask.
7693 (gimple_statement_call): Put fntype into a union with a new
7694 internal_fn field.
7695 (gimple_build_call_internal): Declare.
7696 (gimple_build_call_internal_vec): Likewise.
7697 (gimple_call_same_target_p): Likewise.
7698 (gimple_call_internal_p): New function.
7699 (gimple_call_internal_fn): Likewise.
7700 (gimple_call_fntype): Return null for internal calls.
7701 (gimple_call_set_fntype): Assert that the function is not internal.
7702 (gimple_call_set_fn): Likewise.
7703 (gimple_call_set_fndecl): Likewise.
7704 (gimple_call_set_internal_fn): New function.
7705 (gimple_call_addr_fndecl): Handle null functions.
7706 (gimple_call_return_type): Likewise null types.
7707 * gimple.c (gimple_build_call_internal_1): New function.
7708 (gimple_build_call_internal): Likewise.
7709 (gimple_build_call_internal_vec): Likewise.
7710 (gimple_call_same_target_p): Likewise.
7711 (gimple_call_flags): Handle calls to internal functions.
7712 (gimple_call_fnspec): New function.
7713 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7714 (gimple_has_side_effects): Handle null functions.
7715 (gimple_rhs_has_side_effects): Likewise.
7716 (gimple_call_copy_skip_args): Handle calls to internal functions.
7717 * cfgexpand.c (expand_call_stmt): Likewise.
7718 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7719 * gimple-fold.c (gimple_fold_call): Handle null functions.
7720 (gimple_fold_stmt_to_constant_1): Don't fold
7721 calls to internal functions.
7722 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7723 functions.
7724 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7725 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7726 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7727 (do_warn_unused_result): Likewise.
7728 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7729 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7730 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7731 the target of a call.
7732 (initialize_hash_element): Update accordingly.
7733 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7734 (iterative_hash_hashable_expr): Handle calls to internal functions.
7735 (print_expr_hash_elt): Likewise.
7736 * tree-ssa-pre.c (can_value_number_call): Likewise.
7737 (eliminate): Handle null functions.
7738 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7739 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7740 (find_func_aliases): Likewise.
7741 * value-prof.c (gimple_ic_transform): Likewise.
7742 (gimple_indirect_call_to_profile): Likewise.
7743 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7744 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7745
7746 2011-04-19 Jan Hubicka <jh@suse.cz>
7747
7748 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7749 * ipa-inline.c (inline_small_functions): Compute summaries first,
7750 populate heap later.
7751
7752 2011-04-19 Jan Hubicka <jh@suse.cz>
7753
7754 * cgraph.h (save_inline_function_body): Remove.
7755 * ipa-inline-transform.c: New file, broke out of...
7756 * ipa-inline.c: ... this one; Update toplevel comment.
7757 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7758 make global.
7759 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7760 (cgraph_mark_inline_edge): Rename to inline_call; move to
7761 ipa-inline-transform.c.
7762 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7763 move to ipa-inline-transform.c
7764 (recursive_inlining, inline_small_functions, flatten_function,
7765 ipa_inline, inline_always_inline_functions,
7766 early_inline_small_functions): Update.
7767 (inline_transform): Move to ipa-inline-transform.c.
7768 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7769 Declare.
7770 * Makefile.in (ipa-inline-transform.o): New file.
7771 * cgraphunit.c (save_inline_function_body): Move to
7772 ipa-inline-transform.c
7773
7774 2011-04-19 DJ Delorie <dj@redhat.com>
7775
7776 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7777 registers if we already know there aren't any.
7778 (m32c_emit_epilogue): Don't emit a barrier here.
7779 (m32c_emit_eh_epilogue): Likewise.
7780 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7781 operands at expand time.
7782 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7783 int" wchar type.
7784 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7785 duplicates. Provide aliases instead.
7786 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7787 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7788 the compiler.
7789
7790 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7791
7792 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7793 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7794 (general_or_i64_p, sparc_register_move_cost): New function.
7795
7796 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7797
7798 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7799 Add lynx, mipssde. Sort table.
7800
7801 2011-04-19 Xinliang David Li <davidxl@google.com>
7802
7803 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7804 not negative.
7805
7806 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7807
7808 PR target/48678
7809 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7810 is a SUBREG with non-MODE_INT mode inside of it.
7811
7812 2011-04-19 Martin Jambor <mjambor@suse.cz>
7813
7814 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7815 also according to actual contants.
7816 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7817 (gimple_fold_call): Use it.
7818 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7819
7820 2011-04-19 Martin Jambor <mjambor@suse.cz>
7821
7822 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7823 non-pointer assignments.
7824
7825 2011-04-19 Martin Jambor <mjambor@suse.cz>
7826
7827 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7828 account anc_offset and otr_type from the indirect edge info.
7829 * ipa-prop.c (get_ancestor_addr_info): New function.
7830 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7831 get_ancestor_addr_info, call it.
7832 (ipa_note_param_call): Do not initialize information about polymorphic
7833 calls, return the indirect call graph edge. Remove the last
7834 parameter, adjust all callers.
7835 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7836 parameters. Initialize polymorphic information in the indirect edge.
7837
7838 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7839
7840 PR lto/48148
7841 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7842 the types if they have different enumeration identifiers.
7843
7844 2011-04-19 Jan Hubicka <jh@suse.cz>
7845
7846 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7847 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7848 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7849 (optimize_function_for_size_p) ... here.
7850
7851 2011-04-19 Richard Guenther <rguenther@suse.de>
7852
7853 PR lto/48207
7854 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7855 langhook.
7856
7857 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7858
7859 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7860 if DECL_NO_INLINE_WARNING_P is set on the function.
7861
7862 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7863
7864 PR fortran/47976
7865 * reload1.c (inc_for_reload): Return void. All callers changed.
7866 (emit_input_reload_insns): Don't try to delete previous output
7867 reloads to a register, or record spill_reg_store for autoincs.
7868
7869 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7870
7871 * gengtype.h: Updated copyright year.
7872 (struct input_file_st): Add inpisplugin field.
7873 (type_fileloc): New function.
7874 * gengtype.c
7875 (write_typed_struct_alloc_def): Add gcc_assert.
7876 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7877 (write_typed_alloc_defns): Don't output for plugin files.
7878 (input_file_by_name): Clear inpisplugin field.
7879 (main): Set inpisplugin field for plugin files.
7880
7881 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7882
7883 * gengtype-state.c (string_eq): New.
7884 (read_state): Use string_eq instead of strcmp when creating the
7885 state_ident_tab.
7886
7887 2011-04-19 Wei Guozhi <carrot@google.com>
7888
7889 PR target/47855
7890 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7891 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7892 linkage.
7893 * config/arm/constraints.md (Uu): New constraint.
7894 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7895
7896 2011-04-19 Tristan Gingold <gingold@adacore.com>
7897
7898 * config.gcc (-*-*-*vms): Added.
7899 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7900 definitions moved.
7901 * config/vms/vms-ld.c: New file.
7902 * config/vms/vms-ar.c: New file.
7903 * config/vms/t-vmsnative: New file.
7904
7905 2011-04-18 Xinliang David Li <davidxl@google.com>
7906
7907 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7908
7909 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7910
7911 PR middle-end/48661
7912 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7913 if TREE_TYPE (v) is non-NULL.
7914
7915 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7916 gimple_get_virt_mehtod_for_binfo.
7917 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7918 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7919 callers.
7920 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7921
7922 2011-04-18 Michael Matz <matz@suse.de>
7923 Steve Ellcey <sje@cup.hp.com>
7924
7925 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7926 use its mode as source mode if it isn't VOIDmode.
7927
7928 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7929
7930 * doc/passes.texi: Fill crossref nodes.
7931
7932 2011-04-18 Jim Meyering <meyering@redhat.com>
7933
7934 Fix doubled-word typos in comments and strings
7935 * config/alpha/vms-unwind.h: s/for for/for/
7936 * config/arm/unwind-arm.h: Likewise.
7937 * config/microblaze/microblaze.c: Likewise.
7938 * config/sh/constraints.md: s/in in/in/
7939 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7940
7941 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7942
7943 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7944 (AVX_FLOAT_MODE_P): Ditto.
7945 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7946 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7947 (AVX_VEC_FLOAT_MODE_P): Ditto.
7948 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7949 (UNSPEC_MASKSTORE): Ditto.
7950 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7951 Merge from <sse>_movmsk<ssemodesuffix> and
7952 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7953 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7954 iterator.
7955 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7956 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7957 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7958
7959 2011-04-18 Jan Hubicka <jh@suse.cz>
7960
7961 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7962
7963 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7964 (want_inline_function_called_once_p): Break out the logic from
7965 ipa_inline.
7966 (edge_badness): Ensure that profile is not misupdated.
7967 (lookup_recursive_calls): Prioritize by call frequencies.
7968 (inline_small_functions): Move program size estimates here;
7969 actually process whole queue even when unit growth has been
7970 met. (to properly compute inline_failed reasons and for the
7971 case unit size decrease.) Revisit comments on recursive inlining.
7972 (ipa_inline): Remove unit summary code; first inline hot calls
7973 of functions called once, cold calls next.
7974 (order, nnodes): Remove unused variables.
7975 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7976 (GTFILES): Remove ipa-inline.c
7977 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7978
7979 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7980
7981 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7982
7983 2011-04-18 Jie Zhang <jie@codesourcery.com>
7984 Richard Earnshaw <rearnsha@arm.com>
7985
7986 * arm.c (neon_builtin_type_bits): Remove.
7987 (typedef enum neon_builtin_mode): New.
7988 (T_MAX): Don't define.
7989 (typedef enum neon_builtin_datum): Remove bits, codes[],
7990 num_vars and base_fcode. Add mode, code and fcode.
7991 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7992 VAR10): Change accordingly.
7993 (neon_builtin_data[]): Change accordingly
7994 (arm_init_neon_builtins): Change accordingly.
7995 (neon_builtin_compare): Remove.
7996 (locate_neon_builtin_icode): Remove.
7997 (arm_expand_neon_builtin): Change accordingly.
7998
7999 * arm.h (enum arm_builtins): Move to ...
8000 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8001
8002 * arm.c (arm_builtin_decl): Declare.
8003 (TARGET_BUILTIN_DECL): Define.
8004 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8005 (arm_builtin_decls[]): New.
8006 (arm_init_neon_builtins): Store builtin declarations in
8007 arm_builtin_decls[].
8008 (arm_init_tls_builtins): Likewise.
8009 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8010 (arm_builtin_decl): New.
8011
8012 2011-04-18 Richard Guenther <rguenther@suse.de>
8013
8014 * tree.c (upper_bound_in_type): Build properly canonicalized
8015 INTEGER_CSTs.
8016 (lower_bound_in_type): Likewise.
8017
8018 2011-04-18 Richard Guenther <rguenther@suse.de>
8019
8020 * gimple.h (gimple_call_addr_fndecl): New function.
8021 (gimple_call_fndecl): Use it.
8022 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8023 for direct calls.
8024 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8025 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8026
8027 2011-04-18 Richard Guenther <rguenther@suse.de>
8028
8029 PR middle-end/48650
8030 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8031
8032 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8033
8034 PR lto/48492
8035 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8036 DECL_IN_CONSTANT_POOL without RTL.
8037
8038 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8039 Ira Rosen <ira.rosen@linaro.org>
8040
8041 PR target/48252
8042 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8043 to match neon_vzip/vuzp/vtrn_internal.
8044 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8045 outputs explicitly dependent on both inputs.
8046 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8047
8048 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8049
8050 PR tree-optimization/48616
8051 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8052 whether the shift is by scalar or vector based on whether all SLP
8053 scalar stmts have the same rhs.
8054
8055 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8056
8057 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8058 memory operands.
8059
8060 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8061
8062 PR target/43700
8063 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8064 registers.
8065
8066 2011-04-17 Jan Hubicka <jh@suse.cz>
8067
8068 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8069 * cgrpahunit.c (cgraph_finalize_function): Do not set
8070 finalized_by_frontend.
8071 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8072 finalized_by_frontend.
8073
8074 2011-04-17 Jan Hubicka <jh@suse.cz>
8075
8076 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8077 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8078 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8079 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8080 method.
8081 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8082 gimple-fold.c
8083 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8084
8085 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8086
8087 PR lto/48538
8088 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8089 is non-null before accessing it.
8090 (input_cgraph): Remove trailing spaces.
8091
8092 2011-04-17 Revital Eres <revital.eres@linaro.org>
8093
8094 * params.def (sms-min-sc): New param flag.
8095 * modulo-sched.c (sms_schedule): Use it.
8096 * doc/invoke.texi (sms-min-sc): Document it.
8097
8098 2011-04-17 Jan Hubicka <jh@suse.cz>
8099
8100 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8101 present, also set gimple_call_set_cannot_inline.
8102 * ipa-inline.c: Update toplevel comment.
8103 (MAX_TIME): Remove.
8104 (cgraph_clone_inlined_nodes): Fix linebreaks.
8105 (cgraph_check_inline_limits): Restructure to ...
8106 (caller_growth_limits): ... this one; be more tolerant
8107 on growth in nested inline chains; add explanatory comment;
8108 fix stack accounting thinko introduced by previous patch.
8109 (cgraph_default_inline_p): Remove.
8110 (report_inline_failed_reason): New function.
8111 (can_inline_edge_p): New function.
8112 (can_early_inline_edge_p): New function.
8113 (leaf_node_p): Move upwards in file.
8114 (want_early_inline_function_p): New function.
8115 (want_inline_small_function_p): New function.
8116 (want_inline_self_recursive_call_p): New function.
8117 (cgraph_edge_badness): Rename to ...
8118 (edge_badness) ... this one; fix linebreaks.
8119 (update_edge_key): Update call of edge_baddness; add
8120 detailed dump about queue updates.
8121 (update_caller_keys): Use can_inline_edge_p and
8122 want_inline_small_function_p.
8123 (cgraph_decide_recursive_inlining): Rename to...
8124 (recursive_inlining): Use can_inline_edge_p and
8125 want_inline_self_recursive_call_p; simplify and remove no longer
8126 valid FIXME.
8127 (cgraph_set_inline_failed): Remove.
8128 (add_new_edges_to_heap): Use can_inline_edge_p and
8129 want_inline_small_function_p.
8130 (cgraph_decide_inlining_of_small_functions): Rename to ...
8131 (inline_small_functions): ... this one; cleanup; use
8132 can/want predicates; cleanup debug ouput; work edges till fibheap
8133 is exhausted and do not stop once unit growth is reached; remove
8134 later loop processing remaining edges.
8135 (cgraph_flatten): Rename to ...
8136 (flatten_function): ... this one; use can_inline_edge_p
8137 and can_early_inline_edge_p predicates.
8138 (cgraph_decide_inlining): Rename to ...
8139 (ipa_inline): ... this one; remove unreachable nodes before
8140 inlining functions called once; simplify the pass.
8141 (cgraph_perform_always_inlining): Rename to ...
8142 (inline_always_inline_functions): ... this one; use
8143 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8144 (cgraph_decide_inlining_incrementally): Rename to ...
8145 (early_inline_small_functions): ... this one; simplify
8146 using new predicates; cleanup; make dumps prettier.
8147 (cgraph_early_inlining): Rename to ...
8148 (early_inliner): newer inline regular functions into always-inlines;
8149 fix updating of call stmt summaries.
8150 (pass_early_inline): Update for new names.
8151 (inline_transform): Fix formating.
8152 (gate_cgraph_decide_inlining): Rename to ...
8153 (pass_ipa_inline): ... this one.
8154 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8155 * ipa-inline-analysis.c (dump_inline_summary): Update.
8156 (compute_inline_parameters): Do not compute disregard_inline_limits;
8157 look for mismatching arguments.
8158 (estimate_growth): Fix handlig of non-trivial self recursion.
8159 (inline_read_summary): Do not read info->disregard_inline_limits.
8160 (inline_write_summary): Do not write info->disregard_inline_limits.
8161 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8162 and move all checks into can_inline_edge_p predicate; re-enable code
8163 comparing optimization levels.
8164 (expand_call_inline): Do not test inline_forbidden_into_p.
8165 * Makefile.in (ipa-inline.o): Update arguments.
8166
8167 2011-04-17 Revital Eres <revital.eres@linaro.org>
8168
8169 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8170
8171 2011-04-17 Revital Eres <revital.eres@linaro.org>
8172
8173 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8174
8175 2011-04-17 Michael Matz <matz@suse.de>
8176
8177 PR tree-optimization/48622
8178 PR lto/48645
8179 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8180 in same order as they're written.
8181
8182 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8183
8184 * config/pa/predicates.md: Reorganize and simplify predicates.
8185 Eliminate duplicate code checks.
8186 (arith_operand): Rename to arith14_operand
8187 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8188 * config/pa/pa.md: Use renamed operands.
8189 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8190 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8191 arith11_operand, adddi3_operand, indexed_memory_operand,
8192 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8193 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8194 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8195 move_dest_operand, move_src_operand, prefetch_cc_operand,
8196 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8197 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8198 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8199 div_operand, int5_operand, movb_comparison_operator,
8200 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8201 arith_double_operand, ireg_operand, lhs_lshift_operand,
8202 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8203 integer_store_memory_operand): Likewise.
8204 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8205 (integer_store_memory_operand, read_only_operand,
8206 function_label_operand, borx_reg_operand,
8207 non_hard_reg_operand): Likewise.
8208 (eq_neq_comparison_operator): Delete unused operator.
8209 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8210 function_label_operand.
8211 (emit_move_sequence): Likewise.
8212
8213 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8214
8215 * config/i386/sse.md (sseunpackmode): New mode attribute.
8216 (ssepackmode): Ditto.
8217 (vec_pack_trunc_<mode>): Macroize expander from
8218 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8219 (vec_unpacks_lo_<mode>): Macroize expander from
8220 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8221 (vec_unpacks_hi_<mode>): Macroize expander from
8222 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8223 (vec_unpacku_lo_<mode>): Macroize expander from
8224 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8225 (vec_unpacku_hi_<mode>): Macroize expander from
8226 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8227 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8228 ix86_expand_sse4_unpack.
8229 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8230
8231 2011-04-16 Jan Hubicka <jh@suse.cz>
8232
8233 * cgraphbuild.c: Include ipa-inline.h.
8234 (reset_inline_failed): Use initialize_inline_failed.
8235 * cgraph.c: Include ipa-inline.h.
8236 (cgraph_create_node_1): Do not initialize estimated_growth.
8237 (initialize_inline_failed): More to ipa-inline-analysis.c
8238 (dump_cgraph_node): Do not dump inline flags.
8239 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8240 and disregard_inline_limits flags.
8241 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8242 time, size, estimated_growth.
8243 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8244 Update.
8245 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8246 DECL_DISREGARD_INLINE_LIMITS.
8247 (cgraph_analyze_function): Do not initialize
8248 node->local.disregard_inline_limits.
8249 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8250 inlinable, versionable and disregard_inline_limits.
8251 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8252 cgraph_check_inline_limits, cgraph_default_inline_p,
8253 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8254 add_new_edges_to_heap): Update.
8255 (cgraph_decide_inlining_of_small_function): Update; set
8256 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8257 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8258 cgraph_decide_inlining_incrementally): Update.
8259 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8260 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8261 time, size and estimated_growth parameters.
8262 (estimate_edge_growth): Update.
8263 (initialize_inline_failed): Declare.
8264 * ipa-split.c: Include ipa-inline.h
8265 (execute_split_functions): Update.
8266 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8267 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8268 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8269 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8270 estimated_growth to INT_MIN.
8271 (inline_node_duplication_hook): Likewise.
8272 (dump_inline_summary): Dump new fields.
8273 (compute_inline_parameters): Update.
8274 (estimate_edge_time, estimate_time_after_inlining,
8275 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8276 inline_write_summary):
8277 (initialize_inline_failed): Move here from cgraph.c.
8278 * tree-sra.c: Include ipa-inline.h.
8279 (ipa_sra_preliminary_function_checks): Update.
8280 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8281 ipa-inline.h.
8282
8283 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8284
8285 * config/i386/sse.md (V16): New mode iterator.
8286 (VI1, VI8): Ditto.
8287 (AVXMODEQI, AVXMODEDI): Remove.
8288 (sse2, sse3): New mode attribute.
8289 (mov<mode>): Use V16 mode iterator.
8290 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8291 (push<mode>1): Use V16 mode iterator.
8292 (movmisalign<mode>): Ditto.
8293 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8294 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8295 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8296 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8297 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8298 avx_movdqu<avxmodesuffix>.
8299 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8300 *avx_movdqu<avxmodesuffix>.
8301 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8302 avx_lddqu<avxmodesuffix>.
8303 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8304 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8305 avx_movnt<AVXMODEDI:mode>.
8306 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8307 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8308
8309 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8310
8311 PR target/48629
8312 * haifa-sched.c (prune_ready_list, schedule_block): Use
8313 sched_pressure_p rather than flag_sched_pressure.
8314
8315 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8316
8317 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8318 cgraph_get_node instead of cgraph_get_create_node.
8319
8320 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8321
8322 * cfgexpand.c (expand_debug_expr): Use
8323 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8324
8325 2011-04-15 Michael Matz <matz@suse.de>
8326
8327 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8328 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8329 * function.c (gimplify_parameters): Ditto.
8330 * gimplify.c (gimplify_vla_decl): Ditto.
8331
8332 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8333 (gimple_call_set_alloca_for_var): New inline function.
8334 (gimple_call_alloca_for_var_p): Ditto.
8335 * gimple.c (gimple_build_call_from_tree): Remember
8336 CALL_ALLOCA_FOR_VAR_P state.
8337 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8338
8339 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8340 calls if they were for VLA objects.
8341
8342 2011-04-15 Martin Jambor <mjambor@suse.cz>
8343
8344 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8345 of ADR_EXPRs.
8346
8347 2011-04-15 Martin Jambor <mjambor@suse.cz>
8348
8349 PR middle-end/48601
8350 * tree-emutls.c (lower_emutls_function_body): Call
8351 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8352 result is non-NULL.
8353
8354 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8355
8356 * c-decl.c (detect_field_duplicates): Call
8357 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8358
8359 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8360
8361 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8362 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8363 * ipa-pure-const.c (check_stmt): Call it.
8364 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8365
8366 2011-04-15 Richard Guenther <rguenther@suse.de>
8367
8368 PR tree-optimization/48290
8369 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8370 Properly decide inhibiting propagation based on the valueized
8371 operand. Do loop-closed SSA form preserving here ...
8372 (init_copy_prop): ... not here.
8373
8374 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8375
8376 PR target/48612
8377 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8378 (*ieee_smax<mode>3): Likewise.
8379
8380 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8381
8382 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8383 Replace match_operand with match_dup for the third operand in
8384 these expanders.
8385
8386 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8387
8388 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8389 to track processing of conditionals. Update all callers.
8390 (try_combine, simplify_if_then_else): Update.
8391
8392 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8393
8394 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8395 -fsched-pressure.
8396
8397 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8398
8399 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8400 instead of match_operand for operand 3.
8401
8402 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8403
8404 * recog.h (insn_operand_data): Add an "allows_mem" field.
8405 * genoutput.c (output_operand_data): Initialize it.
8406 * optabs.c (maybe_legitimize_operand_same_code): New function.
8407 (maybe_legitimize_operand): Use it when matching the original
8408 op->value.
8409
8410 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8411
8412 * gimplify.c: Fix issues in comments throughout.
8413 (voidify_wrapper_expr): Fix long line.
8414 (build_stack_save_restore): Likewise.
8415 (gimplify_loop_expr): Likewise.
8416 (gimplify_compound_lval): Likewise.
8417 (gimplify_init_ctor_eval): Likewise.
8418 (gimplify_modify_expr_rhs): Likewise.
8419 (omp_notice_threadprivate_variable): Likewise.
8420
8421 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8422
8423 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8424 original one if this is not a builtin function.
8425
8426 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8427
8428 PR target/48605
8429 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8430 offset it as needed based on top 2 bits in operands[3], change
8431 MEM mode to SFmode and mask those 2 bits away from operands[3].
8432
8433 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8434
8435 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8436 change from objc_declare_protocols() to objc_declare_protocol().
8437
8438 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8439
8440 * config/i386/sse.md (sse4_1): New mode attribute.
8441 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8442 avx_blend<ssemodesuffix><avxmodesuffix> and
8443 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8444 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8445 avx_blendv<ssemodesuffix><avxmodesuffix> and
8446 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8447 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8448 avx_dp<ssemodesuffix><avxmodesuffix> and
8449 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8450 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8451 (sse4_1_packusdw): Merge with *avx_packusdw.
8452 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8453 (sse4_1_pblendw): Merge with *avx_pblendw.
8454 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8455 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8456 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8457 VF mode iterator.
8458 (sse4_1_round<ssescalarmodesuffix>): Merge with
8459 *avx_round<ssescalarmodesuffix>.
8460 (aesenc): Merge with *avx_aesenc.
8461 (aesenclast): Merge with *avx_aesenclast.
8462 (aesdec): Merge with *avx_aesdec.
8463 (aesdeclast): Merge with *avx_aesdeclast.
8464 (pclmulqdq): Merge with *pclmulqdq.
8465 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8466 New predicate.
8467 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8468
8469 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8470
8471 PR middle-end/48608
8472 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8473 (align_local_variable): This. Update DECL_ALIGN.
8474 (add_stack_var): Updated.
8475 (expand_one_stack_var): Likewise.
8476
8477 2011-04-14 Richard Guenther <rguenther@suse.de>
8478
8479 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8480 Remove.
8481 (dse_initialize_block_local_data, dse_leave_block,
8482 record_voperand_set, get_stmt_uid): Likewise.
8483 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8484 (dse_optimize_stmt): Remove voperand set handling code.
8485 Simplify and improve to handle any kind of killing stmt.
8486 (dse_record_phi): Remove.
8487 (dse_enter_block): Simplify.
8488 (tree_ssa_dse): Likewise.
8489 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8490
8491 2011-04-14 Jan Hubicka <jh@suse.cz>
8492
8493 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8494 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8495 (cgraph_local_info): Remove inline_summary.
8496 * ipa-cp.c: Include ipa-inline.h.
8497 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8498 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8499 accesor.
8500 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8501 (input_overwrite_node): Do not set inline summary.
8502 (input_node): Do not stream inline summary.
8503 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8504 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8505 growth; we do not have inline parameters computed for that anyway.
8506 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8507 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8508 (inline_summary_t): New type and VECtor.
8509 (debug_inline_summary, dump_inline_summaries): Declare.
8510 (inline_summary): Use VOCtor.
8511 (estimate_edge_growth): Kill hack computing call stmt size directly.
8512 * lto-section-in.c (lto_section_name): Add inline section.
8513 * ipa-inline-analysis.c: Include lto-streamer.h
8514 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8515 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8516 (inline_summary_vec): Define.
8517 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8518 dump_inline_summaries): New functions.
8519 (estimate_function_body_sizes): Properly compute size/time of outgoing
8520 calls.
8521 (compute_inline_parameters): Alloc inline_summary; do not compute
8522 size/time of incomming calls.
8523 (estimate_edge_time): Avoid missing time summary hack.
8524 (inline_read_summary): Read inline summary info.
8525 (inline_write_summary): Write inline summary info.
8526 (inline_free_summary): Free all hooks and inline summary vector.
8527 * lto-streamer.h: Add LTO_section_inline_summary section.
8528 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8529 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8530
8531 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8532
8533 * tree-vectorizer.h (vect_strided_store_supported): Add a
8534 HOST_WIDE_INT argument.
8535 (vect_strided_load_supported): Likewise.
8536 (vect_permute_store_chain): Return void.
8537 (vect_transform_strided_load): Likewise.
8538 (vect_permute_load_chain): Delete.
8539 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8540 count argument. Check that the count is a power of two.
8541 (vect_strided_load_supported): Likewise.
8542 (vect_permute_store_chain): Return void. Update after above changes.
8543 Assert that the access is supported.
8544 (vect_permute_load_chain): Likewise.
8545 (vect_transform_strided_load): Return void.
8546 * tree-vect-stmts.c (vectorizable_store): Update calls after
8547 above interface changes.
8548 (vectorizable_load): Likewise.
8549 (vect_analyze_stmt): Don't check for strided powers of two here.
8550
8551 2011-04-14 Richard Guenther <rguenther@suse.de>
8552
8553 PR tree-optimization/48590
8554 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8555 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8556 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8557 BUILT_IN_STACK_SAVE.
8558 * tree-ssa-dce.c (propagate_necessity): Handle
8559 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8560
8561 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8562
8563 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8564 objc_declare_class.
8565
8566 2011-04-14 Richard Guenther <rguenther@suse.de>
8567
8568 * tree.h (get_object_alignment_1): Declare.
8569 * builtins.c (get_object_alignment_1): Split out worker from ...
8570 (get_object_alignment): ... here.
8571 * fold-const.c (get_pointer_modulus_and_residue): Use
8572 get_object_alignment_1.
8573
8574 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8575
8576 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8577 type parameter.
8578 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8579 parameter. Generalise code to handle arrays as well as vectors.
8580 (vect_setup_realignment): Update accordingly.
8581 * tree-vect-stmts.c (vectorizable_store): Likewise.
8582 (vectorizable_load): Likewise.
8583
8584 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8585
8586 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8587 within the per-copy loop.
8588
8589 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8590
8591 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8592 in the dump file.
8593
8594 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8595
8596 * doc/options.texi (Negative): Explicitly mention that the
8597 Negative chain must be circular.
8598
8599 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8600
8601 * function.h (block_chainon): Declare.
8602 * function.c (block_chainon): Define.
8603
8604 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8605 Eric Weddington <eric.weddington@atmel.com>
8606 Georg-Johann Lay <avr@gjlay.de>
8607
8608 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8609 New Includes
8610 (avr_init_builtins, avr_expand_builtin,
8611 avr_expand_delay_cycles, avr_expand_unop_builtin,
8612 avr_expand_binop_builtin ): New functions.
8613 (avr_builtin_id): New enum
8614 (struct avr_builtin_description): New struct
8615 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8616 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8617
8618 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8619 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8620 UNSPECV_DELAY_CYCLES): new enumeration values
8621 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8622 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8623 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8624 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8625 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8626 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8627 "fmulsu"): New insns
8628
8629 * config/avr/avr-c.c: fix line endings
8630 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8631 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8632 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8633 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8634 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8635
8636 * doc/extend.texi (AVR Built-in Functions): New node
8637 (Target Builtins): Add documentation of AVR
8638 built-in functions.
8639
8640 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8641
8642 PR target/44643
8643 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8644 alone. Error if non-const data has attribute progmem.
8645
8646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8647
8648 * tree.h (struct tree_constructor): Include tree_typed instead of
8649 tree_common.
8650 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8651 TS_TYPED instead of TS_COMMON.
8652
8653 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8654
8655 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8656 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8657 (sse2_psadbw): Merge with *avx_psadbw.
8658 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8659 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8660 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8661 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8662 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8663 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8664 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8665 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8666 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8667 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8668 (ssse3_palignrti): Merge with *avx_palignrti.
8669
8670 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8671
8672 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8673 * tree-ssanames.c (fini_ssanames): VEC_free it.
8674 (make_ssa_name_fn): Update for VECness of free_ssanames.
8675 (release_ssa_name, release_dead_ssa_names): Likewise.
8676 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8677 tree_common.
8678 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8679 TS_TYPED instead of TS_COMMON.
8680
8681 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8682
8683 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8684 statistics_counter_event.
8685 * tree-ssa-copyrename.c (stats): Define.
8686 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8687 statistics_counter_event.
8688 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8689 (bswap_stats, widen_mul_stats): Define.
8690 (insert_reciprocals): Increment rdivs_inserted.
8691 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8692 rfuncs_inserted. Add calls to statistics_counter_event.
8693 (execute_cse_sincos_1): Increment inserted.
8694 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8695 statistics_counter_event.
8696 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8697 of bswap_stats. Add calls to statistics_counter_event.
8698 (convert_mult_to_widen): Increment widen_mults_inserted.
8699 (convert_plusminus_to_widen): Increment maccs_inserted.
8700 (convert_mult_to_fma): Increment fmas_inserted.
8701 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8702 calls to statistics_counter_event.
8703
8704 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8705
8706 PR rtl-optimization/48455
8707 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8708 `temp_costs->mem_cost'.
8709
8710 2011-04-13 Jan Hubicka <jh@suse.cz>
8711
8712 * ipa-inline.h: New file.
8713 * ipa-inline-analysis.c: New file. Broken out of ...
8714 * ipa-inline.c: ... this file; update toplevel comment;
8715 include ipa-inline.h
8716 (inline_summary): Move to ipa-inline.h
8717 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8718 ipa-inline-analysis.c.
8719 (cgraph_estimate_time_after_inlining): Rename to
8720 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8721 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8722 to estimate_edge_growth.
8723 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8724 rename to estimate_size_after_inlining.
8725 (cgraph_mark_inline_edge): Update for new naming convention.
8726 (cgraph_check_inline_limits): Likewise.
8727 (cgraph_edge_badness): Likewise.
8728 (cgraph_decide_recursive_inlining): Likewise.
8729 (cgraph_decide_inlining_of_small_functions): Likewise.
8730 (cgraph_decide_inlining_incrementally): Likewise.
8731 (cgraph_estimate_growth): Rename to estimate_growth; move to
8732 ipa-inline-analysis.c.
8733 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8734 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8735 (compute_inline_parameters): Likewise.
8736 (compute_inline_parameters_for_current): Likewise.
8737 (pass_inline_parameters): Likewise.
8738 (inline_indirect_intraprocedural_analysis): Likewise.
8739 (analyze_function): Rename to inline_analyze_function; likewise.
8740 (add_new_function): Move to ipa-inline-analysis.c.
8741 (inline_generate_summary): Likewise.
8742 (inline_read_summary): Likewise.
8743 (inline_write_summary): Likewise.
8744 * Makefile.in (ipa-inline-analysis.c): New file.
8745
8746 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8747
8748 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8749 * configure: Regenerate.
8750
8751 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8752
8753 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8754 instead of tree_common.
8755 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8756 Likewise.
8757 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8758 TS_TYPED rather than TS_COMMON.
8759 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8760
8761 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8762
8763 PR target/45263
8764 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8765 r20 around calls of __tablejump_elpm__
8766
8767 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8768
8769 PR middle-end/48591
8770 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8771 NULL.
8772 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8773
8774 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8775
8776 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8777 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8778 (cfi_vec): New typedef.
8779 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8780 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8781 (cie_cfi_vec): New static variable.
8782 (cie_cfi_head): Delete.
8783 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8784 declaration changed. Use vector rather than list operations.
8785 (new_cfi): Don't initialize the dw_cfi_next field.
8786 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8787 rather than list operations.
8788 (lookup_cfa): Use vector rather than list operations.
8789 (output_cfis): New argument upto. Accept a cfi_vec rather than
8790 a dw_cfi_ref list head as argument. All callers changed.
8791 Iterate over the vector using upto as a maximum index.
8792 (output_all_cfis): New static function.
8793 (output_fde): Use vector rather than list operations. Use the
8794 new upto argument for output_cfis rather than manipulating a
8795 list.
8796 (dwarf2out_begin_prologue): Change initializations to match
8797 new struct members.
8798 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8799 from the vector length rather than searching for the end of a list.
8800 Use output_all_cfis.
8801 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8802
8803 2011-04-13 Nick Clifton <nickc@redhat.com>
8804
8805 * config/rx/rx.md (movmemsi): Do not use this pattern when
8806 volatile pointers are involved.
8807
8808 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8809
8810 * config/i386/sse.md (pinsrbits): Remove.
8811 (sse2_packsswb): Merge with *avx_packsswb.
8812 (sse2_packssdw): Merge with *avx_packssdw.
8813 (sse2_packuswb): Merge with *avx_packuswb.
8814 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8815 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8816 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8817 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8818 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8819 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8820 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8821 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8822 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8823 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8824 (sse2_loadld): Merge with *avx_loadld.
8825 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8826 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8827 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8828 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8829 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8830
8831 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8832
8833 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8834 calling TREE_CHAIN.
8835 * print-tree.c (print_node): Likewise.
8836 * tree-inline.c (copy_tree_r): Likewise.
8837 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8838 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8839 instead of TS_COMMON.
8840 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8841 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8842 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8843 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8844 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8845 ...and these...
8846 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8847 * tree.h: ...here.
8848 (TREE_CHAIN): Check for a TS_COMMON structure.
8849 (TREE_TYPE): Check for a TS_TYPED structure.
8850
8851 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8852
8853 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8854 cgraph_get_create_node instead of cgraph_node.
8855
8856 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8857
8858 * c-parser.c (c_parser_initelt): Updated call to
8859 objc_build_message_expr.
8860 (c_parser_postfix_expression): Likewise.
8861
8862 2011-04-12 Kai Tietz <ktietz@redhat.com>
8863
8864 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8865 MASK_MS_BITFIELD_LAYOUT bit.
8866
8867 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8868
8869 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8870 assert it is always true.
8871 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8872 moves.
8873
8874 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8875
8876 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8877 compiling Objective-C to be more efficient.
8878
8879 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8880
8881 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8882 argv_copied.
8883
8884 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8885
8886 * recog.h, genoutput.c, optabs.c: Revert last patch.
8887
8888 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8889
8890 PR target/48090
8891 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8892
8893 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8894
8895 * recog.h (insn_operand_data): Add an "allows_mem" field.
8896 * genoutput.c (output_operand_data): Initialize it.
8897 * optabs.c (maybe_legitimize_operand_same_code): New function.
8898 (maybe_legitimize_operand): Use it when matching the original
8899 op->value.
8900
8901 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8902
8903 * genpreds.c (process_define_predicate): Move most processing
8904 to gensupport.c. Continue to validate the expression.
8905 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8906 (process_define_predicate): Move processing to gensupport.c.
8907 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8908 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8909 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8910 argument.
8911 (valid_predicate_name_p): New function, split out from old
8912 genpreds.c:process_define_predicate.
8913 (process_define_predicate): New function, combining code from
8914 old genpreds.c and genrecog.c functions.
8915 (process_rtx): Call it for DEFINE_PREDICATE and
8916 DEFINE_SPECIAL_PREDICATE.
8917
8918 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8919
8920 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8921 size of a '%A' memory reference.
8922 (T_DREG, T_QREG): New neon_builtin_type_bits.
8923 (arm_init_neon_builtins): Assert that the load and store operands
8924 are neon_struct_operands.
8925 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8926 (NEON_ARG_MEMORY): New builtin_arg.
8927 (neon_dereference_pointer): New function.
8928 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8929 Handle NEON_ARG_MEMORY.
8930 (arm_expand_neon_builtin): Update after above interface changes.
8931 Use NEON_ARG_MEMORY for loads and stores.
8932 * config/arm/predicates.md (neon_struct_operand): New predicate.
8933 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8934 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8935 (V_four_elem): Tweak formatting.
8936 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8937 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8938 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8939 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8940 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8941 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8942 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8943 Use %A in the output template.
8944 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8945 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8946 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8947 the width of the memory access. Remove post-increment.
8948 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8949
8950 2011-04-12 Nick Clifton <nickc@redhat.com>
8951
8952 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8953 instruction for interrupt handlers if the target is the basic V850
8954 architecture.
8955 (expand_epilogue): Likewise.
8956
8957 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8958
8959 PR rtl-optimization/48549
8960 * combine.c (propagate_for_debug): Also stop after BB_END of
8961 this_basic_block. Process LAST and just stop processing after it.
8962 (combine_instructions): If last_combined_insn has been deleted,
8963 set last_combined_insn to its PREV_INSN.
8964
8965 2011-04-12 Richard Guenther <rguenther@suse.de>
8966
8967 PR tree-optimization/46076
8968 * gimple.h (struct gimple_statement_call): Add fntype field.
8969 (gimple_call_fntype): Adjust.
8970 (gimple_call_set_fntype): New function.
8971 * gimple.c (gimple_build_call_1): Set the call function type.
8972 * gimplify.c (gimplify_call_expr): Preserve the function
8973 type the frontend used for the call.
8974 (gimplify_modify_expr): Likewise.
8975 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8976 function type.
8977 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8978 function type.
8979 * tree-ssa.c (useless_type_conversion_p): Function pointer
8980 conversions are useless.
8981
8982 2011-04-12 Martin Jambor <mjambor@suse.cz>
8983
8984 * cgraph.h (cgraph_node): Remove function declaration.
8985 (cgraph_create_node): Declare.
8986 (cgraph_get_create_node): Likewise.
8987 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8988 Updated all callers.
8989 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8990 the decl does not already exist. Call cgraph_get_create_node instead
8991 of cgraph_node.
8992 (cgraph_get_create_node): New function.
8993 (cgraph_same_body_alias): Update comment.
8994 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8995 assert it does not return NULL.
8996 (cgraph_update_edges_for_call_stmt): Likewise.
8997 (cgraph_clone_edge): Likewise.
8998 (cgraph_create_virtual_clone): Likewise.
8999 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9000 instead of cgraph_node.
9001 (cgraph_add_new_function): Call cgraph_create_node or
9002 cgraph_get_create_node instead of cgraph_node.
9003 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9004 instead of cgraph_node.
9005 (record_eh_tables): Likewise.
9006 (mark_address): Likewise.
9007 (mark_load): Likewise.
9008 (build_cgraph_edges): Call cgraph_get_create_node instead
9009 of cgraph_node.
9010 (rebuild_cgraph_edges): Likewise.
9011 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9012 instead of cgraph_node.
9013 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9014 cgraph_node.
9015 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9016 cgraph_create_node instead of cgraph_node.
9017 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9018 of cgraph_node.
9019 * lto-cgraph.c (input_node): Likewise.
9020 * lto-streamer-in.c (input_function): Likewise.
9021 * varasm.c (mark_decl_referenced): Likewise.
9022 (assemble_alias): Likewise.
9023
9024 2011-04-12 Martin Jambor <mjambor@suse.cz>
9025
9026 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9027 instead of cgraph_node and assert it does not return NULL.
9028 * lto-streamer-in.c (lto_read_body): Likewise.
9029 * omp-low.c (new_omp_context): Likewise.
9030 (create_task_copyfn): Likewise.
9031 * tree-emutls.c (lower_emutls_function_body): Likewise.
9032 * matrix-reorg.c (transform_allocation_sites): Likewise.
9033
9034 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9035
9036 PR c/48552
9037 * c-typeck.c (build_asm_expr): Error out on attempts to use
9038 void type outputs or inputs for constraints that allow reg or
9039 don't allow memory.
9040
9041 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9042 Richard Earnshaw <rearnsha@arm.com>
9043
9044 PR target/48250
9045 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9046 to use sign-magnitude offsets. Reject unsupported unaligned
9047 cases. Add detailed description in comments.
9048 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9049 condition from TARGET_32BIT to TARGET_ARM.
9050
9051 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9052
9053 * tree.h (struct typed_tree): New.
9054 (struct tree_common): Include it instead of tree_base.
9055 (TREE_TYPE): Update for new location of type field.
9056 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9057 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9058 (union tree_node): Add typed field.
9059 * treestruct.def (TS_TYPED): New.
9060 * lto-streamer.c (check_handled_ts_structures): Handle it.
9061 * tree.c (MARK_TS_TYPED): New macro.
9062 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9063
9064 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9065
9066 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9067 (force_nonfallthru): Do not alter the loop nest if no basic block
9068 was created.
9069
9070 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9071
9072 * config/i386/sse.md (VI): New mode iterator.
9073 (SSEMODEI): Remove.
9074 (AVX256MODEI): Ditto.
9075 (AVXMODEF4P): Ditto.
9076 (avxvecpsmode): Ditto.
9077 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9078 (sse2_andnot<mode>3): New expander.
9079 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9080 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9081 (<any_logic:code><mode>3): Use VI mode iterator.
9082 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9083 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9084 (*andnottf3): Handle AVX three-operand constraints.
9085 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9086
9087 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9088 Robert Millan <rmh@gnu.org>
9089
9090 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9091 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9092 GNU_USER_DYNAMIC_LINKER64): Define.
9093 (REG_NAME): Don't undefine.
9094 (MD_UNWIND_SUPPORT): Undefine.
9095 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9096 (REG_NAME): Don't undefine.
9097 (MD_UNWIND_SUPPORT): Undefine.
9098 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9099
9100 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9101
9102 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9103 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9104
9105 2011-04-11 Xinliang David Li <davidxl@google.com>
9106
9107 * value-profile.c (check_ic_target): New function.
9108 (gimple_ic_transform): Sanity check indirect call target.
9109 * gimple-low.c (gimple_check_call_args): Interface change.
9110 (gimple_check_call_matching_types): New function.
9111 * tree-inline.c (tree_can_inline_p): Call new function.
9112
9113 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9114
9115 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9116 tree-pretty-print.h & realmpfr.h.
9117
9118 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9119
9120 PR middle-end/48464
9121 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9122 (setup_allocno_and_important_classes): Ditto.
9123
9124 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9125
9126 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9127 GNU_USER_DYNAMIC_LINKER.
9128 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9129 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9130 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9131 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9132 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9133 GNU_USER_TARGET_OS_CPP_BUILTINS.
9134 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9135 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9136 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9137 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9138 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9139 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9140 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9141 GNU_USER_TARGET_OS_CPP_BUILTINS.
9142 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9143 GNU_USER_DYNAMIC_LINKER.
9144 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9145 GNU_USER_TARGET_OS_CPP_BUILTINS.
9146 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9147 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9148 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9150 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9151 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9152 GNU_USER_DYNAMIC_LINKER64): Remove.
9153 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9155 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9156 GNU_USER_DYNAMIC_LINKER.
9157 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9158 GNU_USER_TARGET_OS_CPP_BUILTINS.
9159 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9160 GNU_USER_TARGET_OS_CPP_BUILTINS.
9161 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9162 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9163 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9164 GNU_USER_TARGET_OS_CPP_BUILTINS.
9165 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9166 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9167 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9168 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9170 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9171 GNU_USER_DYNAMIC_LINKER.
9172 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9173 GNU_USER_TARGET_OS_CPP_BUILTINS.
9174 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9175 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9176 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9177 GNU_USER_DYNAMIC_LINKER.
9178 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9179 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9180 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9181 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9182 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9183 GNU_USER_DYNAMIC_LINKER.
9184 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9185 GNU_USER_DYNAMIC_LINKERN32.
9186 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9187 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9188 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9189 GNU_USER_DYNAMIC_LINKER32.
9190 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9191 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9192 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9193 GNU_USER_DYNAMIC_LINKER.
9194 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9196 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9197 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9198 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9199 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9200 GNU_USER_DYNAMIC_LINKER32.
9201 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9202 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9203 GNU_USER_DYNAMIC_LINKER.
9204 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9205 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9206 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9207 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9208 GNU_USER_DYNAMIC_LINKER64.
9209 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9210 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9211 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9212 GNU_USER_DYNAMIC_LINKER.
9213 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9214 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9215 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9216 GNU_USER_DYNAMIC_LINKER.
9217 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9218 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9219 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9220 GNU_USER_DYNAMIC_LINKER32.
9221 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9222 GNU_USER_DYNAMIC_LINKER64.
9223 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9224 GNU_USER_DYNAMIC_LINKER64.
9225 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9226 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9227 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9228 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9229 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9230
9231 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9232
9233 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9234 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9235 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9236 GNU_USER_DYNAMIC_LINKER.
9237 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9238 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9239 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9240 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9241 GNU_USER_DYNAMIC_LINKER64.
9242 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9243 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9244 GNU_USER_LINK_EMULATION.
9245 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9246 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9247 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9248 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9249 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9250 CPP_SPEC, CC1_SPEC): Remove.
9251 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9252 (GNU_USER_DYNAMIC_LINKER): Define.
9253 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9254 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9255 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9256 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9257 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9258 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9259 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9260 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9261 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9262 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9263 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9264 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9265 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9266 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9267 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9268 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9269 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9270 GNU_USER_DYNAMIC_LINKER.
9271 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9272 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9273 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9274 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9275 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9276 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9277 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9278 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9279 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9280 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9281
9282 2011-04-11 Kai Tietz <ktietz@redhat.com>
9283
9284 PR target/9601
9285 PR target/11772
9286 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9287 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9288 comment.
9289 (ix86_is_msabi_thiscall): Removed.
9290 (ix86_is_type_thiscall): Likewise.
9291 (ix86_get_callcvt): New function.
9292 (ix86_comp_type_attributes): Simplify check.
9293 (ix86_function_regparm): Use ix86_get_callcvt for calling
9294 convention attribute checks.
9295 (ix86_return_pops_args): Likewise.
9296 (ix86_static_chain): Likewise.
9297 (x86_this_parameter): Likewise.
9298 (x86_output_mi_thunk): Likewise.
9299 (ix86_function_type_abi): Optimize check for types without attributes.
9300 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9301 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9302 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9303 by flag-values.
9304 (IX86_BASE_CALLCVT): Helper macro.
9305 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9306 Use ix86_get_callcvt for calling convention attribute checks and avoid
9307 symbol-decoration for stdcall in TARGET_RTD case.
9308 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9309 Likewise.
9310 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9311 for declaration.
9312
9313 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9314
9315 * config/i386/sse.md (VI_128): New mode iterator.
9316 (VI12_128): Rename from SSEMODE12.
9317 (VI14_128): Rename from SSEMODE14.
9318 (VI124_128): New mode iterator.
9319 (VI24_128): Rename from SSEMODE248.
9320 (VI248_128): Rename from SSEMODE248.
9321 (SSEMODE124C8): Remove.
9322 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9323 (*sse2_<plusminus_insn><mode>3): Merge with
9324 *avx_<plusminus_insn><mode>3.
9325 (*mulv8hi3): Merge with *avx_mulv8hi3.
9326 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9327 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9328 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9329 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9330 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9331 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9332 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9333 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9334 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9335 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9336 (*<smaxmin:code>v8hi3): Ditto.
9337 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9338 (*<smaxmin:code>v16qi3): Ditto.
9339 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9340 (*sse2_eq<mode>3): Ditto.
9341 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9342 (*sse2_gt<mode>3): Ditto.
9343 (vcondv2di): Split out of vcond<mode>.
9344 (vconduv2di): Split out of vcondu<mode>.
9345
9346 2011-04-11 Richard Guenther <rguenther@suse.de>
9347
9348 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9349 before calling tree_low_cst.
9350
9351 2011-04-11 Richard Guenther <rguenther@suse.de>
9352
9353 * stor-layout.c (layout_type): Compute all array index size operations
9354 in the original type.
9355 (initialize_sizetypes): Add comment.
9356 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9357
9358 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9359
9360 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9361
9362 2011-04-11 Martin Jambor <mjambor@suse.cz>
9363
9364 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9365 of cgraph_node, handle NULL return value.
9366 (cgraph_global_info): Likewise.
9367 (cgraph_rtl_info): Likewise.
9368 * tree-inline.c (estimate_num_insns): Likewise.
9369 * gimplify.c (unshare_body): Likewise.
9370 (unvisit_body): Likewise.
9371 (gimplify_body): Likewise.
9372 * predict.c (optimize_function_for_size_p): Likewise.
9373 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9374 (call_may_clobber_ref_p_1): Likewise.
9375 * varasm.c (function_section_1): Likewise.
9376 (assemble_start_function): Likewise.
9377
9378 2011-04-11 Martin Jambor <mjambor@suse.cz>
9379
9380 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9381 of cgraph_node.
9382 * final.c (rest_of_clean_state): Likewise.
9383 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9384 * passes.c (pass_init_dump_file): Likewise.
9385 (execute_all_ipa_transforms): Likewise.
9386 (function_called_by_processed_nodes_p): Likewise.
9387 * predict.c (maybe_hot_frequency_p): Likewise.
9388 (probably_never_executed_bb_p): Likewise.
9389 (compute_function_frequency): Likewise.
9390 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9391 (unnest_nesting_tree_1): Likewise.
9392 (lower_nested_functions): Likewise.
9393 * tree-optimize.c (execute_fixup_cfg): Likewise.
9394 (tree_rest_of_compilation): Likewise.
9395 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9396 * tree-sra.c (ipa_early_sra): Likewise.
9397 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9398 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9399 * ipa.c (record_cdtor_fn): Likewise.
9400 * ipa-inline.c (cgraph_early_inlining): Likewise.
9401 (compute_inline_parameters_for_current): Likewise.
9402 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9403 * ipa-pure-const.c (local_pure_const): Likewise.
9404 * ipa-split.c (split_function): Likewise.
9405 (execute_split_functions): Likewise.
9406 * cgraphbuild.c (build_cgraph_edges): Likewise.
9407 (rebuild_cgraph_edges): Likewise.
9408 (cgraph_rebuild_references): Likewise.
9409 (remove_cgraph_callee_edges): Likewise.
9410 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9411 (verify_cgraph_node): Likewise.
9412 (cgraph_analyze_functions): Likewise.
9413 (cgraph_preserve_function_body_p): Likewise.
9414 (save_inline_function_body): Likewise.
9415 (save_inline_function_body): Likewise.
9416 * tree-inline.c (copy_bb): Likewise.
9417 (optimize_inline_calls): Likewise.
9418
9419 2011-04-11 Martin Jambor <mjambor@suse.cz>
9420
9421 PR tree-optimization/48195
9422 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9423 ipa_check_create_edge_args.
9424 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9425 ipa_check_create_edge_args.
9426 * ipa-inline.c (inline_generate_summary): Do not call
9427 ipa_check_create_node_params and ipa_check_create_edge_args.
9428 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9429 ipa_check_create_edge_args.
9430
9431 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9432
9433 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9434 instead of loop.
9435 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9436 * function.c (record_hard_reg_sets): Likewise.
9437 * ira.c (compute_regs_asm_clobbered): Likewise.
9438 * sched-deps.c (sched_analyze_1): Likewise.
9439 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9440
9441 2011-04-09 Xinliang David Li <davidxl@google.com>
9442
9443 PR tree-optimization/PR48484
9444 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9445 has_valid_pred lazily
9446
9447 2011-04-09 Duncan Sands <baldrick@free.fr>
9448
9449 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9450
9451 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9452
9453 * combine.c (combine_validate_cost): Adjust comments. Set registered
9454 cost of I0 to zero at the end, if any.
9455
9456 2011-04-08 Xinliang David Li <davidxl@google.com>
9457
9458 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9459 to insane profile data.
9460
9461 2011-04-08 Xinliang David Li <davidxl@google.com>
9462
9463 * ipa-cp.c (ipcp_update_profiling): Correct
9464 negative scale factor due to insane profile data.
9465
9466 2011-04-08 Xinliang David Li <davidxl@google.com>
9467
9468 * final.c (dump_basic_block_info): New function.
9469 (final): Dump basic block.
9470 (final_scan_insn): Remove old dump.
9471
9472 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9473
9474 PR target/47829
9475 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9476 crtbegin/crtend.
9477
9478 2011-04-08 Michael Matz <matz@suse.de>
9479
9480 PR middle-end/48389
9481 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9482 functions.
9483 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9484 * rtl.h (rebuild_jump_labels_chain): Declare.
9485 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9486 insns inserted on edges.
9487
9488 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9489
9490 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9491 * config/arm/arm-arches.def: New.
9492 * config/arm/arm-opts.h: New.
9493 * config/arm/genopt.sh: New.
9494 * config/arm/arm-tables.opt: New (generated).
9495 * config/arm/arm.c (arm_handle_option, arm_target_help,
9496 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9497 (all_architectures): Get most table contents from arm-arches.def.
9498 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9499 arm_selected_tune here.
9500 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9501 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9502 (march=, mcpu=, mtune=): Use Enum and Var.
9503 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9504 (arm.o): Update dependencies.
9505
9506 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9507
9508 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9509 of header_file.
9510 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9511 (write_typed_alloc_defns): Likewise.
9512 (main): Calls write_typed_alloc_defns with output_header.
9513
9514 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9515
9516 PR inline-asm/48435
9517 * ira-color.c (setup_profitable_hard_regs): Add comments.
9518 Don't take prohibited hard regs into account.
9519 (setup_conflict_profitable_regs): Rename to
9520 get_conflict_profitable_regs.
9521 (check_hard_reg_p): Check prohibited hard regs.
9522
9523 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9524
9525 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9526 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9527 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9528
9529 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9530
9531 PR target/48366
9532 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9533 move from floating point to shift amount register.
9534 (emit_move_sequence): Remove secondary reload support for floating
9535 point to shift amount amount register copies.
9536 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9537 amount register copies.
9538 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9539 register, return false if mode isn't a scalar integer mode.
9540 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9541
9542 2011-04-08 Richard Guenther <rguenther@suse.de>
9543
9544 * gimple.c (gimple_call_flags): Remove kludge.
9545
9546 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9547
9548 * sel-sched.c (sel_region_init): Move call to
9549 sel_setup_region_sched_flags after setup_current_loop_nest.
9550
9551 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9552
9553 PR rtl-optimization/48272
9554 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9555 init_insn_reg_pressure_info. Adjust a caller.
9556 * sched-int.h (init_insn_reg_pressure_info): Declare.
9557 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9558 when sched-pressure is enabled.
9559
9560 2011-04-08 Richard Guenther <rguenther@suse.de>
9561
9562 * gimple.c (gimple_set_modified): Do not queue calls to
9563 MODIFIED_NORETURN_CALLS here ...
9564 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9565
9566 2011-04-08 Richard Guenther <rguenther@suse.de>
9567
9568 PR lto/48467
9569 * toplev.c (lang_dependent_init): Do not open asm_out_file
9570 in WPA mode, nor perform debug machinery initialization.
9571 (finalize): Do not unlink asm_out_file in WPA mode.
9572
9573 2011-04-08 Richard Guenther <rguenther@suse.de>
9574
9575 * gimple.h (gimple_call_fntype): New function.
9576 (gimple_call_return_type): Use it.
9577 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9578 * gimple-low.c (gimple_check_call_args): Likewise.
9579 * gimple.c (gimple_call_flags): Likewise.
9580 (gimple_call_arg_flags): Likewise.
9581 (gimple_call_return_flags): Likewise.
9582 * tree-cfg.c (verify_gimple_call): Likewise.
9583 (do_warn_unused_result): Likewise.
9584 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9585 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9586
9587 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9588
9589 PR rtl-optimization/48235
9590 * sel-sched.c (code_motion_process_successors): Recompute the last
9591 insn in basic block if control flow changed.
9592 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9593 Update condition for ilist_remove.
9594
9595 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9596
9597 PR rtl-optimization/48302
9598 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9599 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9600 it to record added preheader blocks.
9601 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9602 on to sel_add_loop_preheaders.
9603 (sel_region_init): Move call to setup_current_loop_nest after
9604 sel_init_bbs.
9605
9606 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9607
9608 PR target/48273
9609 * cfgloop.h (loop_has_exit_edges): New helper.
9610 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9611 non-clonable.
9612 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9613 that have no exit edges.
9614
9615 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9616
9617 PR rtl-optimization/48442
9618 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9619 all callers. Adjust assert.
9620
9621 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9622
9623 PR tree-optimization/48377
9624 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9625 is_packed to true even for types with smaller TYPE_ALIGN than
9626 TYPE_SIZE.
9627
9628 2011-04-08 Richard Guenther <rguenther@suse.de>
9629
9630 PR bootstrap/48513
9631 * doc/tm.texi: Re-generate.
9632
9633 2011-04-08 Wei Guozhi <carrot@google.com>
9634
9635 PR target/47855
9636 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9637 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9638 * config/arm/arm.md (*push_multi): Change the length computation to
9639 call a C function.
9640
9641 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9642
9643 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9644 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9645 * doc/tm.texi: Regenerate.
9646 * system.h (ASM_OUTPUT_BSS): Poison.
9647 * varasm.c (asm_output_bss): Remove function.
9648 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9649
9650 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9651 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9652 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9653 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9654 Likewise.
9655 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9656 Likewise.
9657 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9658 Likewise.
9659 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9660
9661 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9662
9663 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9664 EnumValue lines.
9665
9666 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9667
9668 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9669 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9670 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9671 OPT_mcpu32.
9672 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9673 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9674 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9675 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9676 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9677 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9678 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9679 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9680 options. Don't map other m68k options manually. Don't handle
9681 old-style options as canonical.
9682 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9683 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9684
9685 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9686
9687 * basic-block.h (force_nonfallthru): Move to...
9688 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9689 (force_nonfallthru): ...here.
9690 * cfghooks.c (force_nonfallthru): New function.
9691 * cfgrtl.c (force_nonfallthru): Rename into...
9692 (rtl_force_nonfallthru): ...this.
9693 (commit_one_edge_insertion): Do not set AUX field.
9694 (commit_edge_insertions): Do not discover new basic blocks.
9695 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9696 (cfg_layout_rtl_cfg_hooks): Likewise.
9697 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9698 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9699 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9700
9701 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9702
9703 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9704 Remove macros.
9705
9706 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9707
9708 * config/i386/sse.md: Update copyright year.
9709 (avxcvtvecmode): Remove.
9710 (sse_movhlps): Merge with *avx_movhlps.
9711 (sse_movlhps): Merge with *avx_movlhps.
9712 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9713 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9714 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9715 (sse_loadhps): Merge with *avx_loadhps.
9716 (sse_storelps): Merge with *avx_storelps.
9717 (sse_loadlps): Merge with *avx_loadlps.
9718 (sse_movss): Merge with *avx_movss.
9719 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9720 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9721 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9722 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9723 (vec_set<mode>_0): Ditto.
9724 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9725 (sse4_1_insertps): Merge with *avx_insertps.
9726 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9727 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9728 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9729 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9730 (sse2_storehpd): Merge with *avx_storehpd.
9731 (sse2_loadhpd): Merge with *avx_loadhpd.
9732 (sse2_loadlpd): Merge with *avx_loadlpd.
9733 (sse2_movsd): Merge with *avx_movsd.
9734 (*vec_concatv2df): Merge with *vec_concatv2df.
9735
9736 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9737
9738 PR debug/48343
9739 * combine.c (combine_instructions): Add last_combined_insn,
9740 update it if insn is after it, pass it to all try_combine calls.
9741 (try_combine): Add last_combined_insn parameter, pass it instead of
9742 i3 to propagate_for_debug.
9743
9744 2011-04-07 Nick Clifton <nickc@redhat.com>
9745
9746 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9747 to handle MDR <-> data register transfers.
9748 (movhi_internal): Likewise.
9749
9750 2011-04-07 Alan Modra <amodra@gmail.com>
9751
9752 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9753 previous stack info.
9754
9755 2011-04-07 Tom de Vries <tom@codesourcery.com>
9756
9757 PR target/43920
9758 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9759 flow_find_cross_jump. Swap variables to implement backward replacement.
9760 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9761
9762 2011-04-07 Tom de Vries <tom@codesourcery.com>
9763
9764 PR target/43920
9765 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9766 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9767 and bb2.
9768 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9769 src1 or src2. Redirect edges to the last basic block. Update
9770 frequency and count on multiple basic blocks in case of fallthru.
9771
9772 2011-04-07 Tom de Vries <tom@codesourcery.com>
9773
9774 PR target/43920
9775 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9776 function.
9777 (old_insns_match_p): Change return type. Replace return false/true
9778 with return dir_none/dir_both. Use can_replace_by.
9779 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9780 direction from dir_p. Register replacement direction in dir, last_dir
9781 and afterlast_dir. Handle new return type of old_insns_match_p using
9782 merge_dir. Return replacement direction in dir_p.
9783 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9784 return type of old_insns_match_p.
9785 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9786 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9787 flow_find_cross_jump.
9788 * basic-block.h (enum replace_direction): New type.
9789 (flow_find_cross_jump): Add parameter to declaration.
9790
9791 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9792
9793 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9794 (AVXMODEDCVTPS2DQ): Ditto.
9795 (VEC_FLOAT_MODE): Ditto.
9796 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9797 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9798 (<any_logic:code><mode>3): Use VF mode iterator.
9799 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9800 Use VF mode iterator.
9801 (copysign<mode>3): Use VF mode iterator.
9802 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9803 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9804 (*<any_logic:code><MODEF:mode>3): Merge with
9805 *avx_<any_logic:code><MODEF:mode>3.
9806 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9807 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9808 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9809 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9810 (sse2_cvtdq2ps): Use %v modifier.
9811 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9812 (avx_cvtps2dq<avxmodesuffix>): Remove.
9813 (sse2_cvtps2dq): Use %v modifier.
9814 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9815 (avx_cvttps2dq<avxmodesuffix>): Remove.
9816 (sse2_cvttps2dq): Use %v modifier.
9817 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9818 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9819 (sse2_cvtsd2siq): Fix insn template.
9820 (sse2_cvtsd2siq_2): Ditto.
9821 (sse2_cvttsd2siq): Ditto.
9822 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9823 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9824
9825 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9826
9827 * gcov-io.c: Use GCC Runtime Library Exception.
9828
9829 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9830
9831 PR debug/48466
9832 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9833 as base_reg whatever register reg has been eliminated to, instead
9834 of hardcoding STACK_POINTER_REGNUM.
9835
9836 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9837
9838 * doc/tm.texi.in: Document C target hooks as separate from general
9839 target hooks.
9840 * doc/tm.texi: Regenerate.
9841 * genhooks.c (struct hook_desc): Add docname field.
9842 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9843 docname field.
9844 (hook_array): Include c-target.def.
9845 (emit_documentation): Use docname field in output.
9846 (emit_init_macros): Take docname argument. Only emit definitions
9847 for hooks matching docname.
9848 (main): Expect additional arguments in all cases. Pass argument
9849 to emit_init_macros.
9850 * target.def: Move initial macro definitions and comments to
9851 target-hooks-macros.h.
9852 (gcc_targetcm): Move to c-family/c-target.def.
9853 * target.h (targetcm): Move declaration to c-family/c-target.h.
9854 * targhooks.c (default_handle_c_option): Move to
9855 c-family/c-opts.c.
9856 * targhooks.h (default_handle_c_option): Move declaration to
9857 c-family/c-common.h.
9858 * target-hooks-macros.h: New file.
9859 * config.gcc (target_has_targetcm): Define and use to add to
9860 c_target_objs and cxx_target_objs.
9861 * config/default-c.c: New file.
9862 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9863 of target.h and target-def.h.
9864 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9865 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9866 darwin_check_cfstring_format_arg): Make static.
9867 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9868 TARGET_STRING_OBJECT_REF_TYPE_P,
9869 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9870 * config/darwin-protos.h (darwin_objc_construct_string,
9871 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9872 declare.
9873 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9874 TARGET_STRING_OBJECT_REF_TYPE_P,
9875 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9876 * config/t-darwin (darwin-c.o): Update dependencies.
9877 * system.h (TARGET_HAS_TARGETCM): Poison.
9878 * Makefile.in (TARGET_H): Update.
9879 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9880 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9881 (default-c.o): New target.
9882 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9883 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9884 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9885 c-target.def.
9886 (build/genhooks.o): Update dependencies.
9887
9888 2011-04-06 Richard Guenther <rguenther@suse.de>
9889
9890 * ipa-inline.c (enum inlining_mode): Remove.
9891 (cgraph_flatten): Use some other token.
9892 (cgraph_edge_early_inlinable_p): New function, split out from ...
9893 (cgraph_perform_always_inlining): New function, split out from ...
9894 (cgraph_decide_inlining_incrementally): ... here.
9895 (cgraph_mark_inline_edge): Adjust.
9896 (cgraph_early_inlining): Re-structure.
9897 (pass_early_inline): Require SSA form.
9898
9899 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9900 Julian Brown <julian@codesourcery.com>
9901 Mark Shinwell <shinwell@codesourcery.com>
9902
9903 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9904 LO_REGS only for Thumb-1.
9905 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9906 be used in short instructions when optimising for size on Thumb-2.
9907
9908 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9909
9910 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9911 associated with user returns to be preserved.
9912
9913 2011-04-06 Tristan Gingold <gingold@adacore.com>
9914
9915 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9916 symbol_queue_size, DBXOUT_DECR_NESTING,
9917 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9918 if XCOFF_DEBUGGING_INFO.
9919
9920 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9921
9922 * config/i386/i386.md (attribute isa): New.
9923 (attribute enabled): New.
9924 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9925 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9926 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9927 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9928 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9929 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9930 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9931 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9932
9933 * config/i386/sse.md (VF): New mode iterator.
9934 (VF1): Ditto.
9935 (VF2): Ditto.
9936 (VF_128): Ditto.
9937 (SSEMODEF4): Remove.
9938 (attribute sse): Handle V8SF and V4DF modes.
9939 (<absneg:code><mode>2): Use VF mode iterator.
9940 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9941 mode iterator.
9942 (<plusminus_insn><mode>3): Use VF mode iterator.
9943 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9944 Use VF mode iterator.
9945 (<sse>_vm<plusminus_insn><mode>3): Merge with
9946 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9947 (mul<mode>3): Use VF mode iterator.
9948 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9949 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9950 mode iterator.
9951 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9952 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9953 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9954 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9955 mode iterator.
9956 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9957 Use VF1 mode iterator.
9958 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9959 (sqrt<VF2:mode>2): New expander.
9960 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9961 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9962 and sqrtv2df2. Use VF mode iterator.
9963 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9964 mode iterator.
9965 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9966 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9967 Use VF1 mode iterator.
9968 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9969 (<smaxmin:code><mode>3): Use VF mode iterator.
9970 (*<smaxmin:code><mode>3_finite): Merge with
9971 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9972 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9973 (<sse>_vm<smaxmin:code><mode>2): Merge with
9974 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9975 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9976 mode iterator.
9977 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9978 mode iterator.
9979 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9980 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9981 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9982 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9983 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9984 VF mode iterator.
9985 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9986 Use VF_128 mode iterator.
9987 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9988 mode iterator.
9989 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9990 VF_128 mode iterator.
9991 (vcond<mode>): Use VF mode iterator.
9992 * config/i386/predicates.md (sse_comparison_operator): Merge with
9993 avx_comparison_float_operator. Do not declare as special_predicate.
9994 * config/i386/i386.c (struct builtin_description): Update for renamed
9995 compare patterns.
9996 (ix86_expand_args_builtin): Ditto.
9997 (ix86_expand_sse_compare_mask): Ditto.
9998
9999 2011-04-06 Richard Guenther <rguenther@suse.de>
10000
10001 * tree-inline.c (estimate_num_insns): For calls simply account
10002 for all passed arguments and a used return value.
10003
10004 2011-04-06 Richard Guenther <rguenther@suse.de>
10005
10006 PR tree-optimization/47663
10007 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10008 call_stmt_time fields.
10009 (cgraph_edge_inlinable_p): Declare.
10010 (cgraph_edge_recursive_p): New inline function.
10011 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10012 (cgraph_clone_edge): Copy it.
10013 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10014 Account for call stmt time.
10015 (cgraph_estimate_time_after_inlining): Take edge argument.
10016 (cgraph_estimate_edge_growth): Account call stmt size.
10017 (cgraph_estimate_size_after_inlining): Take edge argument.
10018 (cgraph_mark_inline_edge): Adjust.
10019 (cgraph_check_inline_limits): Likewise.
10020 (cgraph_recursive_inlining_p): Remove.
10021 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10022 (cgraph_decide_recursive_inlining): Take edge argument and
10023 adjust.
10024 (cgraph_decide_inlining_of_small_functions): Do not avoid
10025 diags for recursive inlining here.
10026 (cgraph_flatten): Adjust.
10027 (cgraph_decide_inlining_incrementally): Likewise.
10028 (estimate_function_body_sizes): Remove call cost handling.
10029 (compute_inline_parameters): Initialize caller edge call costs.
10030 (cgraph_estimate_edge_growth): New function.
10031 (cgraph_estimate_growth): Use it.
10032 (cgraph_edge_badness): Likewise.
10033 (cgraph_check_inline_limits): Take an edge argument.
10034 (cgraph_decide_inlining_of_small_functions): Adjust.
10035 (cgraph_decide_inlining): Likewise.
10036 * tree-inline.c (estimate_num_insns): Only account for call
10037 return value if it is used.
10038 (expand_call_inline): Avoid diagnostics on recursive inline
10039 functions here.
10040 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10041 (input_edge): Input edge call costs.
10042
10043 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10044
10045 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10046
10047 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10048
10049 * doc/invoke.texi (Spec Files): Fix typo.
10050
10051 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10052
10053 * profile.c (branch_prob): Move declaration of local variable. Remove
10054 obsolete ??? comment. Expand the location explicitly instead of using
10055 the LOCATION_FILE and LOCATION_LINE macros.
10056
10057 2011-04-06 Wei Guozhi <carrot@google.com>
10058
10059 PR target/47855
10060 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10061 (arm_cond_branch): Likewise.
10062 (arm_cond_branch_reversed): Likewise.
10063 (arm_jump): Likewise.
10064 (push_multi): Likewise.
10065 * config/arm/constraints.md (Py): New constraint.
10066
10067 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10068
10069 PR bootstrap/48471
10070 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10071 Move these...
10072 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10073 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10074 #ifdef DBX_DEBUGGING_INFO.
10075
10076 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10077
10078 PR bootstrap/48403
10079 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10080 if old and new states differ.
10081
10082 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10083
10084 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10085 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10086 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10087 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10088 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10089 mcfv4e): Use Alias.
10090 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10091 ColdFire options to -mcpu= options.
10092
10093 2011-04-05 Jeff Law <law@redhat.com>
10094
10095 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10096 check if BB is a successor of LOOP->header and return
10097 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10098
10099 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10100
10101 * cprop.c (struct reg_use): Remove.
10102 (reg_use_table): Make an array of RTX.
10103 (find_used_regs, constprop_register, local_cprop_pass,
10104 bypass_block): Simplify users of reg_use_table.
10105 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10106 on one of the uses found by find_used_regs.
10107
10108 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10109
10110 PR bootstrap/48469
10111 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10112 declaration.
10113
10114 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10115
10116 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10117 as an rtx.
10118 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10119
10120 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10121
10122 PR middle-end/48441
10123 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10124
10125 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10126
10127 * combine.c: Include obstack.h.
10128 (struct insn_link): Define.
10129 (uid_log_links): Adjust type.
10130 (FOR_EACH_LOG_LINK): New macro.
10131 (insn_link_obstack): Declare.
10132 (alloc_insn_link): Define.
10133 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10134 type of link variables.
10135 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10136 (try_combine, record_promoted_values, distribute_notes): Likewise.
10137 (distribute_links): Likewise. Tweak prototype.
10138 (clear_log_links): Delete.
10139 (adjust_for_new_dest): Call alloc_insn_link.
10140 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10141
10142 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10143
10144 * gcse.c (modify_mem_list): Convert to an array of VECs.
10145 (canon_modify_mem_list, compute_transp): Tweak formatting.
10146 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10147 (load_killed_in_block_p): Likewise.
10148 (record_last_mem_set_info): Likewise.
10149 (clear_modify_mem_tables): Likewise.
10150
10151 2011-04-05 Tom de Vries <tom@codesourcery.com>
10152
10153 PR middle-end/48461
10154 * function.c (emit_use_return_register_into_block): Only define if
10155 HAVE_return.
10156
10157 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10158
10159 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10160
10161 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10162
10163 * config/rx/rx-opts.h: New.
10164 * config/rx/rx.c (rx_cpu_type): Remove.
10165 (rx_handle_option): Don't assert that global structures are in
10166 use. Access variables via opts pointer. Defer most handling of
10167 OPT_mint_register_. Use error_at.
10168 (rx_option_override): Handle deferred OPT_mint_register_ here.
10169 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10170 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10171 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10172 (rx_cpu_types): New Enum and EnumValue entries.
10173 (mint-register=): Use Defer and use Var accordingly.
10174
10175 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10176
10177 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10178 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10179 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10180 Move these...
10181 (debug_free_queue, debug_nesting, symbol_queue_index):
10182 ...and these...
10183 * dbxout.c: ...to here. Make static.
10184
10185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10186
10187 * gcse.c (modify_pair): Define. Define a VEC of it.
10188 (canon_modify_mem_list): Convert to an array of VECs.
10189 (free_insn_expr_list_list): Delete.
10190 (clear_modify_mem_tables): Call VEC_free instead.
10191 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10192 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10193 (canon_list_insert, compute_transp): Likewise.
10194
10195 2011-04-05 Tom de Vries <tom@codesourcery.com>
10196
10197 PR target/43920
10198 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10199 for size.
10200
10201 2011-04-05 Tom de Vries <tom@codesourcery.com>
10202
10203 PR target/43920
10204 * function.c (emit_use_return_register_into_block): New function.
10205 (thread_prologue_and_epilogue_insns): Use
10206 emit_use_return_register_into_block.
10207
10208 2011-04-05 Tom de Vries <tom@codesourcery.com>
10209
10210 PR target/43920
10211 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10212 insn.
10213
10214 2011-04-05 Tom de Vries <tom@codesourcery.com>
10215
10216 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10217
10218 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10219
10220 * config/arm/arm.md (define_constants for unspec): Replace with
10221 define_c_enum.
10222 (define_constants for unspecv): Replace with define_c_enum.
10223 * config/arm/neon.md (define_constants for unspec): Replace with
10224 define_c_enum.
10225
10226 2011-04-04 Richard Henderson <rth@redhat.com>
10227
10228 PR bootstrap/48400
10229 * dwarf2out.c (output_line_info): Always emit line info from
10230 at least one section.
10231 (dwarf2out_init): Create text_section_line_info here ...
10232 (set_cur_line_info_table): ... not here.
10233
10234 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10235
10236 PR target/48380
10237 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10238 not called.
10239
10240 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10241
10242 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10243
10244 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10245 (expr_equiv_p): Remove.
10246 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10247 (hash_scan_set): Update call to insert_set_in_table.
10248 (dump_hash_table): Dump <dest, src> pair.
10249 (lookup_set): Simplify. Lookup <dest, src> pair.
10250 (compute_transp): Remove, fold heavily simplified code into...
10251 (compute_local_properties): ...here. Expect COMP and TRANSP
10252 unconditionally.
10253 (find_avail_set): Take set directly from struct expr.
10254 (find_bypass-set): Likewise.
10255 (bypass_block): Likewise.
10256 (cprop_insn): Likewise. Remove redundant INSN_P test.
10257
10258 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10259 checks on form of COND from find_implicit_sets to here.
10260 (find_implicit_sets): Cleanup control flow. Split critical edges
10261 if it exposes implicit sets. Allocate/resize implicit_sets as
10262 necessary.
10263 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10264 changed something. Run df_analyze after find_implicit_sets if any
10265 edges were split. Do not allocate implicit_sets here.
10266
10267 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10268 (gcse_obstack): Renamed to cprop_obstack.
10269 (GNEW, GNEWVEC, GNEWVAR): Remove.
10270 (gmalloc): Remove.
10271 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10272 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10273 (gcse_alloc): Likewise, and rename to cprop_alloc.
10274 (alloc_gcse_men, free_gcse_mem): Remove.
10275 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10276 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10277 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10278
10279 * cprop.c (oprs_not_set_p): Remove.
10280 (mark_set, mark_clobber): Remove.
10281 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10282 (reg_not_set_p): New function.
10283 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10284 (cprop_insn): Likewise.
10285 (cprop_jump): Use FOR_EACH_EDGE.
10286
10287 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10288
10289 PR bootstrap/48403
10290 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10291 (rank_for_schedule): Use scheduled_insns vector instead of
10292 last_scheduled_insn.
10293 (ok_for_early_queue_removal): Likewise.
10294 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10295 we have a dbg_cnt.
10296 (choose_ready): Likewise.
10297 (commit_schedule): Use VEC_iterate.
10298 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10299 a dbg_cnt, use it and ensure the first insn is in the ready list.
10300 (haifa_sched_init): Allocate scheduled_insns.
10301 (sched_extend_ready_list): Don't allocate it; reserve space.
10302 (haifa_sched_finish): Free it.
10303
10304 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10305
10306 * optc-gen.awk: Always remove type from Variable entry before
10307 recording in var_seen.
10308
10309 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10310
10311 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10312 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10313 call to tidy_fallthru_edges.
10314
10315 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10316
10317 * doc/options.texi (ToLower): Document.
10318 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10319 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10320 * opts.h (cl_option): Add cl_tolower field.
10321 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10322 arguments with lowercase strings.
10323 * config/rx/rx.opt (mcpu=): Add ToLower.
10324 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10325 argument.
10326
10327 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10328
10329 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10330
10331 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10332
10333 * config/vax/vax.c: Include reload.h.
10334
10335 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10336
10337 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10338 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10339 (sparc_preferred_reload_class): New function.
10340
10341 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10342
10343 PR debug/48401
10344 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10345 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10346
10347 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10348
10349 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10350 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10351
10352 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10353
10354 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10355 (ASM_OUTPUT_ALIGNED_BSS): Define.
10356
10357 2011-04-03 Michael Matz <matz@suse.de>
10358
10359 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10360 and next_slot members.
10361 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10362 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10363 (lto_streamer_cache_append): Declare.
10364 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10365 unsigned index, remove offset parameter, ensure that we append
10366 or update existing entries.
10367 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10368 parameter, update next_slot for append.
10369 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10370 parameter.
10371 (lto_streamer_cache_insert_at): Likewise.
10372 (lto_streamer_cache_append): New function.
10373 (lto_streamer_cache_lookup): Use unsigned index.
10374 (lto_streamer_cache_get): Likewise.
10375 (lto_record_common_node): Don't test tree_node_can_be_shared.
10376 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10377 (lto_streamer_cache_delete): Don't free offsets member.
10378 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10379 (lto_output_string_with_length): Use lto_output_data_stream.
10380 (lto_output_tree_header): Remove ix parameter, don't write it.
10381 (lto_output_builtin_tree): Likewise.
10382 (lto_write_tree): Adjust callers to above, don't track and write
10383 offset, write unsigned index.
10384 (output_unreferenced_globals): Don't emit all global vars.
10385 (write_global_references): Use unsigned indices.
10386 (lto_output_decl_state_refs): Likewise.
10387 (write_symbol): Likewise.
10388 * lto-streamer-in.c (lto_input_chain): Move earlier.
10389 (input_function): Use unsigned index.
10390 (input_alias_pairs): Don't read and then ignore all global vars.
10391 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10392 don't pass it back, use lto_streamer_cache_append.
10393 (lto_register_var_decl_in_symtab): Use unsigned index.
10394 (lto_register_function_decl_in_symtab): Likewise.
10395 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10396 index.
10397 (lto_get_builtin_tree): Don't read index, use
10398 lto_streamer_cache_append.
10399 (lto_read_tree): Adjust call to lto_materialize_tree.
10400
10401 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10402 don't use function calls in arguments to MIN.
10403
10404 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10405 twice.
10406
10407 * gimple.c (gimple_type_leader_entry): Mark deletable.
10408
10409 2011-04-03 Alan Modra <amodra@gmail.com>
10410
10411 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10412
10413 2011-04-03 Michael Matz <matz@suse.de>
10414
10415 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10416 an integer.
10417 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10418
10419 2011-04-03 Michael Matz <matz@suse.de>
10420
10421 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10422 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10423 without function context.
10424 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10425 current_function_decl and cfun.
10426
10427 2011-04-03 Michael Matz <matz@suse.de>
10428
10429 * tree.c (decl_init_priority_insert): Don't create entry for
10430 default priority.
10431 (decl_fini_priority_insert): Ditto.
10432 (fields_compatible_p, find_compatible_field): Remove.
10433 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10434 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10435
10436 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10437
10438 * combine.c (try_combine): Remove useless local variable.
10439
10440 2011-04-03 Richard Guenther <rguenther@suse.de>
10441 Ira Rosen <ira.rosen@linaro.org>
10442
10443 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10444 non-variable offsets and compare the remaining bases of the two
10445 accesses instead of looking for exact same data-ref.
10446
10447 2011-04-02 Kai Tietz <ktietz@redhat.com>
10448
10449 PR target/48416
10450 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10451
10452 * i386.c (ix86_is_msabi_thiscall): New helper function.
10453 (ix86_is_type_thiscall): New helper function.
10454 (ix86_comp_type_attributes): Handle thiscall for method-functions
10455 special.
10456 (init_cumulative_args): Likewise.
10457 (find_drap_reg): Likewise.
10458 (ix86_static_chain): Likewise.
10459 (x86_this_parameter): Likewise.
10460 (x86_output_mi_thunk): Likewise.
10461
10462 2011-04-01 Olivier Hainque <hainque@adacore.com>
10463 Nicolas Setton <setton@adacore.com>
10464 Eric Botcazou <ebotcazou@adacore.com>
10465
10466 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10467 (add_gnat_descriptive_type_attribute): New function.
10468 (gen_array_type_die): Call it.
10469 (gen_enumeration_type_die): Likewise.
10470 (gen_struct_or_union_type_die): Likewise.
10471 (modified_type_die): Likewise.
10472 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10473 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10474 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10475
10476 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10477
10478 PR bootstrap/48148
10479 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10480 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10481
10482 Revert:
10483 2011-03-17 Richard Guenther <rguenther@suse.de>
10484
10485 PR bootstrap/48148
10486 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10487 origin for decls in other ltrans units.
10488 (input_varpool_node): Likewise.
10489
10490 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10491
10492 PR middle-end/48335
10493 * expr.c (expand_assignment): Handle all possibilities
10494 if TO_RTX is CONCAT.
10495 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10496 (store_split_bit_field): If SUBREG_REG (op0) or
10497 op0 itself has smaller mode than word, return it
10498 for offset 0 and const0_rtx for out-of-bounds stores.
10499 If word is const0_rtx, skip it.
10500
10501 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10502
10503 * config/h8300/h8300.c (print_operand_address): Rename to...
10504 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10505 Call h8300_print_operand and h8300_print_operand_address instead of
10506 print_operand and print_operand_address. Declare.
10507 (print_operand): Renake to...
10508 (h8300_print_operand): ...this. Make static. Adjust comments.
10509 Call h8300_print_operand instead of print_operand. Declare.
10510 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10511 (h8300_register_move_cost): Likewise.
10512 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10513 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10514 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10515 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10516 * config/h8300/h8300-protos.h (print_operand): Delete.
10517 (print_operand_address): Delete.
10518
10519 2011-04-01 Richard Henderson <rth@redhat.com>
10520
10521 PR 48400
10522 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10523 in strict mode before dwarf4. Re-order tests to early out
10524 before switching sections.
10525
10526 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10527
10528 * config/h8300/constraints.md: New file.
10529 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10530 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10531 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10532 * config/h8300/predicates.md (bit_operand): Likewise.
10533 (incdec_operand): Use satisfies_constraint_M and
10534 satisfies_constraint_O. Don't use C code block.
10535 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10536 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10537 (compute_mov_length): Use satisfies_constraint_G.
10538 (fix_bit_operand): Use satisfies_constraint_U.
10539 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10540 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10541 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10542 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10543 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10544 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10545 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10546 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10547 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10548 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10549 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10550 (EXTRA_MEMORY_CONSTRAINT): Delete.
10551
10552 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10553 Michael Meissner <meissner@linux.vnet.ibm.com>
10554
10555 PR target/48262
10556 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10557 operands, as per the specifications.
10558
10559 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10560 (vec_extract_evenv4sf): Ditto.
10561 (vec_extract_evenv8hi): Ditto.
10562 (vec_extract_evenv16qi): Ditto.
10563 (vec_extract_oddv4si): Ditto.
10564
10565 2011-03-31 Mark Wielaard <mjw@redhat.com>
10566
10567 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10568 high_pc attribute if the CU has no associated code. Only output
10569 DW_AT_entry_pc for CU if not generating strict dwarf and
10570 dwarf_version < 4.
10571
10572 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10573
10574 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10575 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10576 out of ...
10577 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10578 * final.c (final_start_function): Call the new function rather
10579 than using a NULL argument for dwarf2out_frame_debug.
10580
10581 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10582 that contains the prologue.
10583
10584 * haifa-sched.c (queue_insn): New arg REASON. All callers
10585 changed. Print it in debugging output.
10586
10587 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10588
10589 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10590 Split most of the code into...
10591 (begin_move_insn): ... here. New function.
10592 (ebb_sched_info): Add a pointer to it.
10593 * haifa-sched.c (scheduled_insns): New static variable.
10594 (sched_extend_ready_list): Allocate it.
10595 (schedule_block): Use it to record the order of scheduled insns.
10596 Perform RTL changes to move insns only after all scheduling
10597 decisions have been made.
10598 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10599 begin_move_insn field.
10600 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10601 * sched-int.h (struct haifa_sched_info): Remove second argument
10602 from begin_schedule_ready hook. Add new member begin_move_insn.
10603 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10604 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10605
10606 * haifa-sched.c (prune_ready_list): New function, broken out of
10607 schedule_block.
10608 (schedule_block): Use it.
10609
10610 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10611
10612 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10613
10614 2011-04-01 Kai Tietz <ktietz@redhat.com>
10615
10616 * config.gcc (*-*-mingw*): Allow as option the
10617 posix threading model.
10618 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10619 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10620 definition.
10621 (CPP_SPEC): Add pthread/no-pthread handling.
10622 (LIB_SPEC): Likewise.
10623 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10624 (LIB_SPEC): Likewise.
10625 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10626 flag to pass -pthread option for shared libgcc build.
10627 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10628 for shared libgcc build.
10629 * config/i386/t-mingw-pthread: New file.
10630 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10631 New define to enable use of library pthread by default.
10632 * config/i386/mingw.opt (pthread): New driver option.
10633 (no-pthread): New driver option.
10634 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10635 * config/i386/mingw-w64.opt: Likewise.
10636
10637 2011-04-01 Gary Funck <gary@intrepid.com>
10638
10639 * c-decl.c (grokdeclarator): Fix formatting.
10640
10641 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10642
10643 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10644 instead of n_operands.
10645 (set_storage_via_setmem): Likewise.
10646 * optabs.c (maybe_gen_insn): Likewise.
10647 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10648 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10649 (mips_expand_builtin_direct): Likewise.
10650 * config/spu/spu.c (expand_builtin_args): Likewise.
10651
10652 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10653
10654 * recog.h (insn_data_d): Add n_generator_args.
10655 * genoutput.c (data): Likewise.
10656 (output_insn_data): Print it.
10657 (max_opno, num_dups): Delete.
10658 (scan_operands): Just fill in "d->operand[...]".
10659 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10660
10661 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10662
10663 * gensupport.h (pattern_stats): New structure.
10664 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10665 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10666 (max_operand_1, max_operand_vec): Delete.
10667 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10668
10669 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10670
10671 * emit-rtl.c (emit_pattern_after_setloc): New function.
10672 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10673 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10674 (emit_pattern_after): New function.
10675 (emit_insn_after, emit_jump_insn_after): Call it.
10676 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10677 (emit_pattern_before_setloc): New function.
10678 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10679 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10680 Likewise.
10681 (emit_pattern_before): New function.
10682 (emit_insn_before, emit_jump_insn_before): Call it.
10683 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10684
10685 2011-03-31 Richard Henderson <rth@redhat.com>
10686
10687 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10688 (dw_separate_line_info_entry): Remove.
10689 (enum dw_line_info_opcode): New.
10690 (dw_line_info_entry): Use it.
10691 (dw_line_info_table, dw_line_info_table_p): New.
10692 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10693 (line_info_table, line_info_label_num): Remove.
10694 (line_info_table_in_use): Remove.
10695 (separate_line_info_table): Remove.
10696 (separate_line_info_table_allocated): Remove.
10697 (separate_line_info_table_in_use): Remove.
10698 (LINE_INFO_TABLE_INCREMENT): Remove.
10699 (line_info_label_num): New.
10700 (cur_line_info_table): New.
10701 (text_section_line_info, cold_text_section_line_info): New.
10702 (separate_line_info): New.
10703 (SEPARATE_LINE_CODE_LABEL): Remove.
10704 (print_dwarf_line_table): Remove.
10705 (debug_dwarf): Don't dump it.
10706 (output_one_line_info_table): New.
10707 (output_line_info): Use it.
10708 (new_line_info_table): New.
10709 (set_cur_line_info_table): New.
10710 (dwarf2out_switch_text_section): Use it.
10711 (dwarf2out_begin_function): Likewise.
10712 (push_dw_line_info_entry): New.
10713 (dwarf2out_source_line): Rewrite for new line info tables.
10714 (dwarf2out_init): Remove dead initailizations.
10715
10716 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10717
10718 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10719 various flags.
10720 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10721 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10722 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10723 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10724 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10725 * opt-functions.awk (flag_init, switch_bit_fields): New.
10726 (switch_flags): Don't handle flags moved to bit-fields. Don't
10727 generate CL_MISSING_OK or CL_SAVE.
10728 * optc-gen.awk: Update to generate bit-field output as well as
10729 flags field.
10730 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10731 bit-field instead of CL_REJECT_DRIVER flag.
10732 * opts-common.c (generate_canonical_option,
10733 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10734 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10735 instead of CL_REJECT_NEGATIVE flag.
10736 * toplev.c (print_switch_values): Use cl_report bit-field instead
10737 of CL_REPORT flag.
10738
10739 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10740
10741 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10742 a zero minimum index only if it is redundant.
10743
10744 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10745
10746 PR rtl-optimization/48381
10747 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10748 instead of ira_class_hard_reg_index for calculating conflicting
10749 hard registers.
10750
10751 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10752
10753 * cprop.c: Clean up hash table building.
10754 (reg_avail_info): Remove.
10755 (oprs_available_p): Remove.
10756 (record_last_reg_set_info): Remove.
10757 (record_last_set_info): Remove.
10758 (reg_available_p): New function.
10759 (gcse_constant_p): Do not treat unfolded conditions as constants.
10760 (make_set_regs_unavailable): New function.
10761 (hash_scan_set): Simplify with new reg_available_p.
10762 (compute_hash_table_work): Traverse insns stream only once.
10763 Do not compute reg_avail_info. Traverse insns in reverse order.
10764 Record implicit sets after recording explicit sets from the block.
10765
10766 2011-03-31 Michael Matz <matz@suse.de>
10767
10768 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10769
10770 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10771
10772 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10773 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10774 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10775 (h8300_mode_dependent_address_p): New function.
10776 (h8300_get_index): Make static.
10777
10778 2011-03-31 Jeff Law <law@redhat.com>
10779
10780 * reload1.c (elimination_effects): Fix typo in recent change.
10781
10782 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10783 typo potentially leading to null pointer dereference.
10784
10785 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10786 (setup_save_areas): Corresponding changes to avoid useless
10787 assignments.
10788
10789 * jump.c (reversed_comparison_code_parts): Avoid successive return
10790 statements when REVERSE_CONDITION is defined.
10791
10792 * expr.c (expand_assignment): Avoid useless assignments.
10793 (expand_expr_real_1): Likewise.
10794 (expand_expr_real_2): Avoid useless statements.
10795
10796 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10797
10798 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10799
10800 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10801 statements.
10802
10803 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10804
10805 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10806
10807 PR target/47109
10808 * doc/tm.texi.in (TARGET_VERSION): Remove.
10809 * doc/tm.texi: Regenerate.
10810 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10811 * collect2.c (main): Don't use TARGET_VERSION.
10812 * mips-tdump.c (main): Don't use TARGET_VERSION.
10813 * mips-tfile.c (main): Don't use TARGET_VERSION.
10814 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10815 * config/rs6000/vxworksae.h: Remove.
10816 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10817 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10818 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10819 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10820 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10821 * config/arm/arm.h (TARGET_VERSION): Remove.
10822 * config/arm/coff.h (TARGET_VERSION): Remove.
10823 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10824 * config/arm/elf.h (TARGET_VERSION): Remove.
10825 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10826 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10827 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10828 * config/arm/pe.h (TARGET_VERSION): Remove.
10829 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10830 * config/arm/semi.h (TARGET_VERSION): Remove.
10831 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10832 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10833 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10834 * config/avr/avr.h (TARGET_VERSION): Remove.
10835 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10836 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10837 * config/frv/frv.h (TARGET_VERSION): Remove.
10838 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10839 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10840 * config/i386/darwin.h (TARGET_VERSION): Remove.
10841 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10842 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10843 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10844 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10845 * config/i386/gnu.h (TARGET_VERSION): Remove.
10846 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10847 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10848 * config/i386/linux.h (TARGET_VERSION): Remove.
10849 * config/i386/linux64.h (TARGET_VERSION): Remove.
10850 * config/i386/lynx.h (TARGET_VERSION): Remove.
10851 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10852 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10853 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10854 * config/i386/netware.h (TARGET_VERSION): Remove.
10855 * config/i386/nto.h (TARGET_VERSION): Remove.
10856 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10857 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10858 * config/ia64/elf.h (TARGET_VERSION): Remove.
10859 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10860 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10861 * config/ia64/linux.h (TARGET_VERSION): Remove.
10862 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10863 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10864 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10865 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10866 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10867 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10868 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10869 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10870 * config/m68k/linux.h (TARGET_VERSION): Remove.
10871 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10872 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10873 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10874 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10875 * config/mep/mep.h (TARGET_VERSION): Remove.
10876 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10877 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10878 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10879 * config/mips/linux.h (TARGET_VERSION): Remove.
10880 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10881 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10882 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10883 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10884 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10885 * config/pa/pa.h (TARGET_VERSION): Remove.
10886 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10887 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10888 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10889 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10890 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10891 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10892 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10893 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10894 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10895 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10896 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10897 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10898 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10899 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10900 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10901 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10902 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10903 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10904 * config/s390/linux.h (TARGET_VERSION): Remove.
10905 * config/s390/s390.h (TARGET_VERSION): Remove.
10906 * config/s390/tpf.h (TARGET_VERSION): Remove.
10907 * config/score/score.h (TARGET_VERSION): Remove.
10908 * config/sh/linux.h (TARGET_VERSION): Remove.
10909 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10910 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10911 * config/sh/sh.h (TARGET_VERSION): Remove.
10912 * config/sh/sh64.h (TARGET_VERSION): Remove.
10913 * config/sh/superh.h (TARGET_VERSION): Remove.
10914 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10915 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10916 * config/sparc/linux.h (TARGET_VERSION): Remove.
10917 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10918 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10919 TARGET_NAME32, TARGET_NAME): Remove.
10920 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10921 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10922 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10923 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10924 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10925 * config/spu/spu.h (TARGET_VERSION): Remove.
10926 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10927 * config/v850/v850.h (TARGET_VERSION): Remove.
10928 * config/vax/linux.h (TARGET_VERSION): Remove.
10929 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10930 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10931 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10932
10933 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10934
10935 PR target/48142
10936 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10937 frame-related from frame-unrelated adjustments to the stack pointer.
10938
10939 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10940
10941 * common.opt (fdebug-types-section): Move earlier.
10942 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10943
10944 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10945
10946 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10947 var.
10948
10949 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10950
10951 * tree.h (CASE_CHAIN): Define.
10952 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10953 (gimple_redirect_edge_and_branch): Likewise.
10954
10955 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10956
10957 PR middle-end/48367
10958 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10959 calculation.
10960
10961 2011-03-30 Jeff Law <law@redhat.com>
10962
10963 * PR bootstrap/48371
10964 * reload1.c (reload): Fix botch in last change.
10965
10966 * reload.h (struct reload): Fix typo introduced in last change.
10967
10968 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10969
10970 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10971 Undocumented. Remove help text.
10972 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10973 -mhard-float.
10974
10975 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10976
10977 * doc/options.texi (NegativeAlias): Document.
10978 (Alias): Mention NegativeAlias.
10979 * opt-functions.awk: Handle NegativeAlias.
10980 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10981 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10982 * opts.h (CL_NEGATIVE_ALIAS): Define.
10983 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10984 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10985 OPT_mspe_.
10986 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10987 Alias entries.
10988 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10989 mno-spe and mno-isel instead of mspe=no and -misel=no.
10990
10991 2011-03-29 Mark Wielaard <mjw@redhat.com>
10992
10993 * common.opt (fdebug-types-section): New flag.
10994 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10995 * dwarf2out.c (use_debug_types): New define.
10996 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10997 (print_die): Guard output of type unit signatures using
10998 use_debug_types.
10999 (build_abbrev_table): Replace assert of dwarf_version >= 4
11000 with assert on use_debug_types.
11001 (size_of_die): Likewise.
11002 (unmark_dies): Likewise.
11003 (value_format): Decide AT_ref_external form on use_debug_types.
11004 (output_die): Replace dwarf_version version check guard with
11005 use_debug_types where appropriate.
11006 (modified_type_die): Likewise.
11007 (gen_reference_type_die): Likewise.
11008 (dwarf2out_start_source_file): Likewise.
11009 (dwarf2out_end_source_file): Likewise.
11010 (prune_unused_types_walk_attribs): Likewise.
11011 (dwarf2out_finish): Likewise.
11012
11013 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11014
11015 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11016
11017 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11018
11019 PR rtl-optimization/48332
11020 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11021 mode of input operand N and modeN to its actual mode.
11022
11023 2011-03-30 Jeff Law <law@redhat.com>
11024
11025 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11026 define accessor macro.
11027 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11028 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11029 (reg_equiv_init): Likewise.
11030 (reg_equivs_size): New variable.
11031 (reg_equiv_init_size): Remove.
11032 (allocate_initial_values): Move prototype to here from....
11033 * integrate.h (allocate_initial_values): Remove prototype.
11034 * integrate.c: Include reload.h.
11035 (allocate_initial_values): Corresponding changes.
11036 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11037 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11038 (update_equiv_regs): Corresponding changes.
11039 (ira): Corresponding changes.
11040 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11041 (push_secondary_reload): Corresponding changes.
11042 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11043 (make_memloc, find_reloads_address): Corresponding changes.
11044 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11045 (find_reloads_address_1): Corresponding changes.
11046 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11047 (refers_to_regno_for_reload_p): Corresponding changes.
11048 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11049 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11050 * reload1.c: Include ggc.h.
11051 (grow_reg_equivs): New function.
11052 (replace_pseudos_in, reload): Corresponding changes.
11053 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11054 (eliminate_regs_1, elimination_effects): Corresponding changes.
11055 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11056 (delete_output_reload): Likewise.
11057 * caller-save.c (mark_referenced_regs): Corresponding changes.
11058 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11059 * frv/predicates.md (frv_load_operand): Corresponding changes.
11060 * microblaze/microblaze.c (double_memory_operand): Corresponding
11061 changes.
11062 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11063 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11064 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11065 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11066 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11067 changes.
11068 * pa/pa.c (emit_move_sequence): Corresponding changes.
11069 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11070
11071 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11072
11073 PR target/47551
11074 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11075 structure modes. Don't check neon_vector_mem_operand for
11076 vector or structure modes.
11077
11078 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11079 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11080
11081 PR target/43590
11082 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11083 operand 1 and reshuffle the operands to match.
11084 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11085
11086 2011-03-30 Christian Schüler <cschueler@gmx.de>
11087
11088 PR driver/48208
11089 * config/c.opt (F): Added 'Driver' to -F option.
11090
11091 PR driver/48260
11092 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11093 handler function.
11094 * config/darwin.opt: Added '-arch' option.
11095
11096 2011-03-30 Nick Clifton <nickc@redhat.com>
11097
11098 * config/rx/rx.md: Add peepholes and patterns to combine
11099 extending loads and simple arithmetic instructions.
11100 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11101 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11102 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11103 modes to use pre-decrement and post-increment addressing.
11104 (rx_is_restricted_memory_address): Add range checking of REG+INT
11105 addresses.
11106 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11107 (rx_memory_move_cost): Adjust cost of stores.
11108 (rx_adjust_insn_length): New function.
11109
11110 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11111
11112 PR c/48305
11113 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11114 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11115 matching arg00/arg01 types.
11116
11117 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11118
11119 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11120 last_location to UNKNOWN_LOCATION.
11121
11122 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11123
11124 PR target/48349
11125 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11126 FLOAT_SSE_REGS.
11127
11128 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11129 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11130
11131 PR bootstrap/48337
11132 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11133 Init(PROCESSOR_V7).
11134 (sparc_cpu): Likewise.
11135 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11136 PROCESSOR_V7.
11137
11138 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11139
11140 PR target/48336
11141 PR middle-end/48342
11142 PR rtl-optimization/48345
11143 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11144 hard regs for given mode from profitable regs when doing secondary
11145 allocation.
11146
11147 2011-03-29 Jeff Law <law@redhat.com>
11148
11149 PR bootstrap/48327
11150 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11151 do_not_duplicate field.
11152 (lookup_redirection_data): Corresponding changes.
11153 (create_duplicates): Always create a template block.
11154 (redirect_edges): Remove code which reused the original block
11155 when it was going to become unreachable code.
11156 (thread_block): Don't set do_not_duplicate field.
11157
11158 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11159
11160 * lto-opts.c (register_user_option_p, lto_register_user_option):
11161 Make type argument unsigned.
11162 * lto-streamer.h (lto_register_user_option): Make type argument
11163 unsigned.
11164 * opth-gen.awk: Make CL_* macros unsigned.
11165 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11166 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11167 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11168 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11169 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11170 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11171 (find_opt): Make lang_mask argument unsigned.
11172
11173 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11174
11175 PR rtl-optimization/48331
11176 PR rtl-optimization/48334
11177 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11178 for any used algorithm.
11179
11180 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11181
11182 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11183 to parent_max.
11184
11185 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11186
11187 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11188 (alpha_option_override): Don't set alpha_sr_alias_set.
11189 (emit_frame_store_1): Use gen_frame_mem rather than calling
11190 set_mem_alias_set.
11191 (alpha_expand_epilogue): Ditto.
11192
11193 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11194
11195 PR tree-optimization/48290
11196 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11197 vectorization, check that relevant phis in the basic block after
11198 the inner loop are really inner loop's exit phis.
11199
11200 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11201
11202 PR debug/48190
11203 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11204 (cached_dw_loc_list_def): New structure.
11205 (cached_dw_loc_list): New typedef.
11206 (cached_dw_loc_list_table): New variable.
11207 (cached_dw_loc_list_table_hash): New function.
11208 (cached_dw_loc_list_table_eq): Likewise.
11209 (add_location_or_const_value_attribute): Take a bool cache_p.
11210 Cache the list when the parameter is true.
11211 (gen_formal_parameter_die): Update caller.
11212 (gen_variable_die): Likewise.
11213 (dwarf2out_finish): Likewise.
11214 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11215 while generating debug info for the decl.
11216 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11217 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11218 (resolve_addr): Cache the result of resolving a chain of
11219 location lists.
11220
11221 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11222
11223 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11224 conflict object hard regset nodes have intersecting hard reg sets.
11225
11226 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11227 after regstat_init_n_sets_and_refs.
11228
11229 * ira.c: Add more comments at the top.
11230 (setup_stack_reg_pressure_class, setup_pressure_classes):
11231 Add comments how we compute the register pressure classes.
11232 (setup_allocno_and_important_classes): Add more comments.
11233 (setup_class_translate_array, reorder_important_classes)
11234 (setup_reg_class_relations): Add comments.
11235
11236 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11237 start of the file.
11238
11239 * ira-color.c: Add 2011 to the Copyright line.
11240 (assign_hard_reg): Add more comments.
11241 (improve_allocation): Ditto.
11242
11243 * ira-costs.c: Add 2011 to the Copyright line.
11244 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11245 comments.
11246 (setup_regno_cost_classes_by_mode): Ditto.
11247
11248 Initial patches from ira-improv branch:
11249
11250 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11251
11252 * ira-build.c (ira_create_object): Remove initialization of
11253 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11254 (ira_create_allocno): Remove initialization of
11255 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11256 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11257 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11258 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11259 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11260 Initialize ALLOCNO_ADD_DATA.
11261 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11262 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11263 ALLOCNO_REG.
11264 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11265 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11266
11267 * ira.c (ira_reallocate): Remove.
11268 (setup_pressure_classes): Call
11269 ira_init_register_move_cost_if_necessary. Use
11270 ira_register_move_cost instead of ira_get_register_move_cost.
11271 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11272 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11273
11274 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11275 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11276 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11277 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11278 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11279 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11280 Fix formatting.
11281 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11282 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11283 (struct allocno_color_data): New.
11284 (allocno_color_data_t): New typedef.
11285 (allocno_color_data): New definition.
11286 (ALLOCNO_COLOR_DATA): New macro.
11287 (struct object_color_data): New.
11288 (object_color_data_t): New typedef.
11289 (object_color_data): New definition.
11290 (OBJECT_COLOR_DATA): New macro.
11291 (update_copy_costs, calculate_allocno_spill_cost): Call
11292 ira_init_register_move_cost_if_necessary. Use
11293 ira_register_move_cost instead of ira_get_register_move_cost.
11294 (move_spill_restore, update_curr_costs): Ditto.
11295 (allocno_spill_priority): Make it inline.
11296 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11297 (struct coalesce_data, coalesce_data_t): New.
11298 (allocno_coalesce_data): New definition.
11299 (ALLOCNO_COALESCE_DATA): New macro.
11300 (merge_allocnos, coalesced_allocno_conflict_p): Use
11301 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11302 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11303 (coalesce_allocnos): Ditto.
11304 (setup_coalesced_allocno_costs_and_nums): Ditto.
11305 (collect_spilled_coalesced_allocnos): Ditto.
11306 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11307 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11308 (coalesce_spill_slots): Ditto.
11309 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11310 free allocno_coalesce_data.
11311
11312 * ira-conflicts.c: Fix formatting.
11313 (process_regs_for_copy): Call
11314 ira_init_register_move_cost_if_necessary. Use
11315 ira_register_move_cost instead of ira_get_register_move_cost.
11316 (build_object_conflicts): Optimize.
11317
11318 * ira-costs.c (record_reg_classes): Optimize. Call
11319 ira_init_register_move_cost_if_necessary. Use
11320 ira_register_move_cost, ira_may_move_in_cost, and
11321 ira_may_move_out_cost instead of ira_get_register_move_cost and
11322 ira_get_may_move_cost.
11323 (record_address_regs): Ditto.
11324 (scan_one_insn): Optimize.
11325 (find_costs_and_classes): Optimize.
11326 (process_bb_node_for_hard_reg_moves): Call
11327 ira_init_register_move_cost_if_necessary. Use
11328 ira_register_move_cost instead of ira_get_register_move_cost.
11329
11330 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11331 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11332 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11333 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11334 definitions.
11335 (ira_initiate_emit_data, ira_finish_emit_data)
11336 (create_new_allocno): New functions.
11337 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11338 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11339 Use ira_register_move_cost instead of ira_get_register_move_cost.
11340
11341 * ira-int.h: Fix some comments.
11342 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11343 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11344 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11345 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11346 add_data.
11347 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11348 bitfield after mode. Make hard_regno a short int. Make
11349 hard_regno short. Remove first_coalesced_allocno and
11350 next_coalesced_allocno. Move mem_optimized_dest_p,
11351 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11352 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11353 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11354 temp, colorable_p. Add new member add_data.
11355 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11356 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11357 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11358 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11359 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11360 (ALLOCNO_ADD_DATA): New macro.
11361 (ira_emit_data_t): New typedef.
11362 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11363 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11364 from struct ira_allocno.
11365 (ALLOCNO_EMIT_DATA): New macro.
11366 (ira_allocno_emit_data, allocno_emit_reg): New.
11367 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11368 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11369 (OBJECT_ADD_DATA): New macro.
11370 (ira_reallocate): Remove.
11371 (ira_initiate_emit_data, ira_finish_emit_data): New.
11372 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11373 (ira_init_register_move_cost_if_necessary): New.
11374 (ira_object_conflict_iter_next): Merge into
11375 ira_object_conflict_iter_cond.
11376 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11377
11378 * ira-live.c (process_single_reg_class_operands): Call
11379 ira_init_register_move_cost_if_necessary. Use
11380 ira_register_move_cost instead of ira_get_register_move_cost.
11381
11382 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11383
11384 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11385
11386 * ira-costs.c: Fix formatting.
11387 (cost_classes, cost_classes_num): Remove.
11388 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11389 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11390 (cost_classes_del, cost_classes_htab): New.
11391 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11392 (initiate_regno_cost_classes, setup_cost_classes): New.
11393 (setup_regno_cost_classes_by_aclass): New.
11394 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11395 (record_reg_classes): Use regno_cost_classes instead of
11396 cost_classes. Move checking opposite operand up.
11397 (record_address_regs): Use regno_cost_classes
11398 instead of cost_classes.
11399 (scan_one_insn): Ditto. Use always general register.
11400 (print_allocno_costs): Use regno_cost_classes instead of
11401 cost_classes.
11402 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11403 (find_costs_and_classes): Set up cost classes for each registers.
11404 Use also their mode for this. Use regno_cost_classes instead of
11405 cost_classes.
11406 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11407 cost_classes.
11408 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11409 (ira_costs, ira_set_pseudo_classes): Call
11410 initiate_regno_cost_classes and finish_regno_cost_classes.
11411
11412 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11413
11414 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11415
11416 * target.def (ira_cover_classes): Remove.
11417
11418 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11419
11420 * doc/tm.texi.in: Ditto.
11421
11422 * ira-conflicts.c: Remove mentioning cover classes from the file.
11423 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11424 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11425
11426 * targhooks.c (default_ira_cover_classes): Remove.
11427
11428 * targhooks.h (default_ira_cover_classes): Ditto.
11429
11430 * haifa-sched.c: Remove mentioning cover classes from the file.
11431 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11432 ira_pressure_classes and ira_pressure_classes_num instead of
11433 ira_reg_class_cover_size and ira_reg_class_cover. Use
11434 sched_regno_pressure_class instead of sched_regno_cover_class.
11435 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11436 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11437
11438 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11439 classes from the file.
11440 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11441 (struct object_hard_regs, struct object_hard_regs_node): New.
11442 (struct ira_object): New members profitable_hard_regs,
11443 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11444 (struct ira_allocno): Rename cover_class to aclass. Rename
11445 cover_class_cost and updated_cover_class_cost to class_cost and
11446 updated_class_cost. Remove splay_removed_p and
11447 left_conflict_size. Add new members colorable_p.
11448 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11449 (ALLOCNO_COLORABLE_P): New macro.
11450 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11451 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11452 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11453 (OBJECT_...): Rename parameter C to O.
11454 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11455 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11456 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11457 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11458 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11459 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11460 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11461 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11462 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11463 x_ira_reg_class_subunion.
11464 (ira_max_memory_move_cost, ira_max_register_move_cost)
11465 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11466 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11467 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11468 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11469 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11470 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11471 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11472 (ira_tune_allocno_costs_and_cover_classes): Rename to
11473 ira_tune_allocno_costs.
11474 (ira_debug_hard_regs_forest): New.
11475 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11476 (ira_object_conflict_iter_next): Fix comments.
11477 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11478 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11479 cover_class to aclass.
11480 (ira_allocate_and_accumulate_costs): Ditto.
11481 (ira_allocate_and_set_or_copy_costs): Ditto.
11482
11483 * opts.c (decode_options): Remove ira_cover_class check.
11484
11485 * ira-color.c: Remove mentioning cover classes from the file. Use
11486 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11487 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11488 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11489 (splay-tree.h): Remove include.
11490 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11491 before copy_freq_compare_func.
11492 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11493 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11494 New definitions.
11495 (hard_regs_roots, hard_regs_node_vec): Ditto.
11496 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11497 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11498 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11499 (create_new_object_hard_regs_node): Ditto.
11500 (add_new_object_hard_regs_node_to_forest): Ditto.
11501 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11502 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11503 Ditto.
11504 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11505 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11506 (remove_unused_object_hard_regs_nodes): Ditto.
11507 (enumerate_object_hard_regs_nodes): Ditto.
11508 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11509 (object_hard_regs_subnode_t): Ditto.
11510 (struct object_hard_regs_subnode): Ditto.
11511 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11512 (setup_object_hard_regs_subnode_index): Ditto.
11513 (get_object_hard_regs_subnodes_num): Ditto.
11514 (form_object_hard_regs_nodes_forest): Ditto.
11515 (finish_object_hard_regs_nodes_tree): Ditto.
11516 (finish_object_hard_regs_nodes_forest): Ditto.
11517 (allocnos_have_intersected_live_ranges_p): Rename to
11518 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11519 (pseudos_have_intersected_live_ranges_p): Rename to
11520 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11521 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11522 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11523 (update_copy_costs): Remove assert. Skip cost update if the hard
11524 reg does not belong the class.
11525 (assign_hard_reg): Process only profitable hard regs.
11526 (uncolorable_allocnos_num): Make it scalar.
11527 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11528 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11529 and ira_reg_class_max_nregs.
11530 (bucket_allocno_compare_func): Check frequency first.
11531 (sort_bucket): Add compare function as a parameter.
11532 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11533 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11534 (push_allocno_to_stack): Rewrite for checking new allocno
11535 colorability.
11536 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11537 (push_only_colorable): Pass new parameter to sort_bucket.
11538 (push_allocno_to_spill): Remove.
11539 (allocno_spill_priority_compare): Make it inline and rewrite.
11540 (splay_tree_allocate, splay_tree_free): Remove.
11541 (allocno_spill_sort_compare): New function.
11542 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11543 build and use splay tree. Choose first allocno in uncolorable
11544 allocno bucket to spill. Remove setting spill cost.
11545 (all_conflicting_hard_regs): Remove.
11546 (setup_allocno_available_regs_num): Check only profitable hard
11547 regs. Print info about hard regs nodes.
11548 (setup_allocno_left_conflicts_size): Remove.
11549 (put_allocno_into_bucket): Don't call
11550 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11551 (improve_allocation): New.
11552 (color_allocnos): Call setup_profitable_hard_regs,
11553 form_object_hard_regs_nodes_forest, improve_allocation,
11554 finish_object_hard_regs_nodes_forest. Setup spill cost.
11555 (print_loop_title): Use pressure classes.
11556 (color_allocnso): Ditto.
11557 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11558 and allocnos_for_spilling.
11559 (ira_sort_regnos_for_alter_reg): Don't setup members
11560 {first,next}_coalesced_allocno.
11561 (color): Remove allocating and freeing removed_splay_allocno_vec.
11562 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11563 prohibited_class_mode_regs.
11564
11565 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11566 formatting.
11567 (update_allocno_pressure_excess_length): Use pressure classes.
11568 (inc_register_pressure, dec_register_pressure): Check for pressure
11569 class.
11570 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11571 pressure class. Use ira_reg_class_nregs instead of
11572 ira_reg_class_max_nregs.
11573 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11574 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11575 (single_reg_class): Use ira_reg_class_nregs instead of
11576 ira_reg_class_max_nregs.
11577 (process_bb_node_lives): Use pressure classes.
11578
11579 * ira-emit.c: Remove mentioning cover classes from the file. Use
11580 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11581 (change_loop): Use pressure classes.
11582 (modify_move_list): Call ira_set_allocno_class instead of
11583 ira_set_allocno_cover_class.
11584
11585 * ira-build.c: Remove mentioning cover classes from the file. Use
11586 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11587 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11588 ALLOCNO_UPDATED_CLASS_COST instead of
11589 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11590 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11591 (ira_create_allocno): Remove initialization of
11592 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11593 ALLOCNO_COLORABLE_P.
11594 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11595 Update conflict regs for the objects.
11596 (create_cap_allocno): Remove assert. Don't propagate
11597 ALLOCNO_AVAILABLE_REGS_NUM.
11598 (ira_free_allocno_costs): New function.
11599 (finish_allocno): Change a part of code into call of
11600 ira_free_allocno_costs.
11601 (low_pressure_loop_node_p): Use pressure classes.
11602 (object_range_compare_func): Don't compare classes.
11603 (setup_min_max_conflict_allocno_ids): Ditto.
11604
11605 * loop-invariant.c: Remove mentioning cover classes from the file.
11606 Use ira_pressure_classes and ira_pressure_classes_num instead of
11607 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11608 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11609 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11610 Use reg_allocno_class instead of reg_cover_class.
11611 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11612 STACK_REG_COVER_CLASS.
11613 (get_regno_cover_class): Rename to get_regno_pressure_class.
11614 (move_loop_invariants): Initialize and finalize regstat.
11615
11616 * ira.c: Remove mentioning cover classes from the file. Add
11617 comments about coloring without cover classes. Use ALLOCNO_CLASS
11618 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11619 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11620 setup_class_subset_and_memory_move_costs.
11621 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11622 (setup_cover_and_important_classes): Rename to
11623 setup_allocno_and_important_classes.
11624 (setup_class_translate_array): New.
11625 (setup_class_translate): Call it for allocno and pressure classes.
11626 (cover_class_order): Rename to allocno_class_order.
11627 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11628 of ira_class_translate.
11629 (reorder_important_classes): Set up ira_important_class_nums.
11630 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11631 (print_class_cover): Rename to print_classes. Add parameter.
11632 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11633 Print pressure classes too.
11634 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11635 setup_reg_subclasses.
11636 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11637 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11638 (setup_prohibited_class_mode_regs): Use
11639 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11640 (clarify_prohibited_class_mode_regs): New function.
11641 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11642 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11643 (ira_init_once): Initialize them.
11644 (free_register_move_costs): Process them.
11645 (ira_init): Move calls of find_reg_classes and
11646 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11647 Call clarify_prohibited_class_mode_regs.
11648 (ira_no_alloc_reg): Remove.
11649 (too_high_register_pressure_p): Use pressure classes.
11650
11651 * sched-deps.c: Remove mentioning cover classes from the file.
11652 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11653 ira_pressure_classes and ira_pressure_classes_num instead of
11654 ira_reg_class_cover_size and ira_reg_class_cover.
11655 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11656 sched_regno_pressure_class instead of sched_regno_cover_class.
11657 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11658 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11659
11660 * ira.h: Add 2010 to Copyright.
11661 (ira_no_alloc_reg): Remove external.
11662 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11663 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11664 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11665 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11666 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11667 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11668 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11669 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11670 x_ira_no_alloc_regs.
11671 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11672 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11673 ira_allocno_classes_num and ira_allocno_classes.
11674 (ira_class_translate): Rename to ira_allocno_class_translate.
11675 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11676 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11677 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11678 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11679 (ira_no_alloc_regs): New.
11680
11681 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11682 classes from the file. Use ALLOCNO_CLASS instead of
11683 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11684 ALLOCNO_COVER_CLASS_COST.
11685 (regno_cover_class): Rename to regno_aclass.
11686 (record_reg_classes): Use ira_reg_class_subunion instead of
11687 ira_reg_class_union.
11688 (record_address_regs): Check overflow.
11689 (scan_one_insn): Ditto.
11690 (print_allocno_costs): Print total mem cost fore regional allocation.
11691 (print_pseudo_costs): Use REG_N_REFS.
11692 (find_costs_and_classes): Use classes intersected with them on the
11693 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11694 ira_reg_class_union. Use ira_allocno_class_translate and
11695 regno_aclass instead of ira_class_translate and regno_cover_class.
11696 Modify code for finding regno_aclass. Setup preferred classes for
11697 the next pass.
11698 (setup_allocno_cover_class_and_costs): Rename to
11699 setup_allocno_class_and_costs. Use regno_aclass instead of
11700 regno_cover_class. Use ira_set_allocno_class instead of
11701 ira_set_allocno_cover_class.
11702 (init_costs, finish_costs): Use regno_aclass instead of
11703 regno_cover_class.
11704 (ira_costs): Use setup_allocno_class_and_costs instead of
11705 setup_allocno_cover_class_and_costs.
11706 (ira_tune_allocno_costs_and_cover_classes): Rename to
11707 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11708 by processing objects. Use ira_reg_class_max_nregs instead of
11709 ira_reg_class_nregs.
11710
11711 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11712
11713 * sched-int.h: Remove mentioning cover classes from the file.
11714 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11715
11716 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11717 classes from the file.
11718 (struct reg_pref): Rename coverclass into allocnoclass.
11719 (reg_cover_class): Rename to reg_allocno_class.
11720
11721 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11722
11723 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11724
11725 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11726
11727 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11728
11729 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11730
11731 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11732
11733 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11734
11735 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11736
11737 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11738
11739 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11740
11741 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11742 (i386_ira_cover_classes): Ditto.
11743
11744 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11745
11746 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11747
11748 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11749
11750 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11751
11752 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11753
11754 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11755
11756 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11757 (mips_ira_cover_classes): Ditto.
11758
11759 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11760
11761 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11762
11763 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11764
11765 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11766
11767 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11768
11769 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11770 (IRA_COVER_CLASSES_VSX): Ditto.
11771
11772 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11773 (rs6000_ira_cover_classes): Ditto.
11774
11775 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11776
11777 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11778
11779 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11780
11781 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11782
11783 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11784
11785 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11786
11787 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11788
11789 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11790
11791 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11792
11793 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11794
11795 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR debug/48253
11798 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11799 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11800 dw_fde_unlikely_section_end_label, cold_in_std_section,
11801 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11802 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11803 fields.
11804 (output_fde): Use dw_fde_second_{begin,end} if second is
11805 true, otherwise dw_fde_{begin,end}.
11806 (output_call_frame_info): Test dw_fde_second_begin != NULL
11807 instead of dw_fde_switched_sections.
11808 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11809 fields, initialize new fields. Initialize in_std_section
11810 unconditionally from the first partition.
11811 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11812 dw_fde_second_begin is non-NULL.
11813 (dwarf2out_switch_text_section): Stop initializing removed
11814 dw_fde_struct fields, initialize new fields, initialize
11815 also dw_fde_end here. Set dw_fde_switch_cfi even when
11816 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11817 (struct var_loc_list_def): Add last_before_switch field.
11818 (arange_table, arange_table_allocated, arange_table_in_use,
11819 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11820 (size_of_aranges): Count !in_std_section and !second_in_std_section
11821 hunks in fdes, instead of looking at arange_table_in_use.
11822 (output_aranges): Add aranges_length argument, don't call
11823 size_of_aranges here. Instead of using aranges_table*
11824 emit ranges for fdes when !in_std_section resp.
11825 !second_in_std_section.
11826 (dw_loc_list): Break ranges crossing section switch.
11827 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11828 use dw_fde_second_end instead of dw_fde_end as end of last range.
11829 (gen_subprogram_die): Don't call add_arange. Use
11830 dw_fde_{begin,end} for first partition and if switched
11831 section dw_fde_second_{begin,end} for the second.
11832 (var_location_switch_text_section_1,
11833 var_location_switch_text_section): New functions.
11834 (dwarf2out_begin_function): Initialize cold_text_section even
11835 when function_section () isn't text_section.
11836 (prune_unused_types): Don't walk arange_table.
11837 (dwarf2out_finish): Don't needlessly test
11838 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11839 If info_section_emitted, call size_of_aranges and if it indicates
11840 non-empty .debug_aranges, call output_aranges with the computed
11841 size. Stop using removed dw_fde_struct fields, use
11842 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11843 for second.
11844
11845 PR debug/48203
11846 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11847 create ENTRY_VALUE if incoming or address of incoming's MEM
11848 is a hard REG.
11849 * dwarf2out.c (mem_loc_descriptor): Don't emit
11850 DW_OP_GNU_entry_value of DW_OP_fbreg.
11851 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11852 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11853 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11854 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11855 ENTRY_VALUE_EXPs.
11856 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11857 is a REG_P or MEM_P with REG_P address, compute hash directly
11858 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11859 (preserve_only_constants): Don't clear VALUES forwaring
11860 ENTRY_VALUE to some other VALUE.
11861
11862 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11863
11864 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11865 instead of GEN_INT.
11866
11867 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11868
11869 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11870 block before expanding the statement.
11871 (expand_gimple_stmt_1): Likewise. Set them here...
11872 (expand_gimple_stmt): ...and not here. Tidy.
11873 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11874 unknown.
11875
11876 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11877
11878 * Makefile.in: New rule for cprop.o.
11879 * gcse.c: Move constant/copy propagation to cprop.c.
11880 (compute_local_properties): Only handle expression tables.
11881 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11882 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11883 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11884 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11885 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11886 compute_cprop_data, find_used_regs, try_replace_reg,
11887 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11888 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11889 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11890 find_bypass_set, reg_killed_on_edge, bypass_block,
11891 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11892 execute_rtl_cprop, pass_rtl_cprop): Move to...
11893 * cprop.c: ...here. New file, constant/copy propagation for RTL
11894 moved from gcse.c to here with minor cleanups in duplicated code.
11895
11896 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11897
11898 * config/i386/i386.c (flag_opts): Fix a typo in
11899 -mavx256-split-unaligned-store.
11900
11901 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11902
11903 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11904 LIBCALL_VALUE): Remove macros.
11905 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11906 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11907 (h8300_function_value, h8300_libcall_value,
11908 h8300_function_value_regno_p): New functions.
11909
11910 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11911
11912 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11913
11914 2011-03-28 Jeff Law <law@redhat.com>
11915
11916 * tree-ssa-threadupdate.c (redirect_edges): Call
11917 create_edge_and_update_destination_phis as needed.
11918 (create_edge_and_update_destination_phis): Accept new BB argument.
11919 All callers updated.
11920 (thread_block): Do not update the profile when threading around
11921 intermediate blocks.
11922 (thread_single_edge): Likewise.
11923 (determine_bb_domination_status): If BB is not a successor of the
11924 loop header, return NONDOMINATING.
11925 (register_jump_thread): Note when we register a jump thread around
11926 an intermediate block.
11927 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11928 (thread_across_edge): Use it.
11929
11930 2011-03-28 Tristan Gingold <gingold@adacore.com>
11931
11932 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11933 when for_return is 2.
11934
11935 2011-03-28 Jeff Law <law@redhat.com>
11936
11937 * var-tracking.c (canonicalize_values_mark): Delete unused
11938 lhs assignment.
11939 (canonicalize_values_star, set_variable_part): Likewise.
11940 (clobber_variable_part, delete_variable_part): Likewise.
11941
11942 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11943
11944 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11945
11946 2011-03-28 Martin Jambor <mjambor@suse.cz>
11947
11948 * tree-inline.c (expand_call_inline): Do not check that destination
11949 node is analyzed.
11950 (optimize_inline_calls): Assert that destination node is analyzed.
11951 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11952 not call tree_lowering_passes.
11953 * cgraph.h (cgraph_analyze_function): Declare.
11954 * cgraphunit.c (cgraph_analyze_function): Make public.
11955
11956 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11957
11958 * config/sparc/sparc-opts.h: New.
11959 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11960 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11961 (sparc_option_override): Store processor_type enumeration rather
11962 than string in cpu_default. Remove name and enumeration from
11963 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11964 without using sparc_select. Use target_flags_explicit instead of
11965 fpu_option_set.
11966 * config/sparc/sparc.h (enum processor_type): Move to
11967 sparc-opts.h.
11968 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11969 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11970 HeaderInclude entry.
11971 (mcpu=, mtune=): Use Var and Enum.
11972 (sparc_processor_type): New Enum and EnumValue entries.
11973
11974 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11975 Iain Sandoe <iains@gcc.gnu.org>
11976
11977 PR target/48245
11978 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11979
11980 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11981
11982 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11983 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11984 Insert new statements at it in lieu of STMT.
11985 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11986 * tree-vect-stmts.c (vectorizable_store): Likewise.
11987 (vectorizable_load): Likewise.
11988
11989 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11990
11991 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11992 (divtf3): Ditto.
11993 (multf3): Ditto.
11994 (subtf3): Ditto.
11995
11996 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11997
11998 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11999 unaligned 256bit load/store.
12000 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12001 (*avx_movdqu<avxmodesuffix>): Likewise.
12002
12003 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12004
12005 PR target/48288
12006 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12007 * config/pa/pa.md (iordi3): Use new predicate in expander.
12008 (iorsi3): Likewise.
12009
12010 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12011
12012 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12013 FUNCTION_VALUE_REGNO_P): Remove macros.
12014 * config/mips/mips-protos.h (mips_function_value): Remove.
12015 * config/mips/mips.c (mips_function_value): Rename to...
12016 (mips_function_value_1): ... this. Make static. Handle receiving
12017 the function type in 'fn_decl_or_type' argument.
12018 (mips_function_value, mips_libcall_value,
12019 mips_function_value_regno_p): New function.
12020 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12021 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12022
12023 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12024
12025 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12026 and -mavx256-split-unaligned-store.
12027 (ix86_option_override_internal): Split 32-byte AVX unaligned
12028 load/store by default.
12029 (ix86_avx256_split_vector_move_misalign): New.
12030 (ix86_expand_vector_move_misalign): Use it.
12031
12032 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12033 -mavx256-split-unaligned-store.
12034
12035 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12036 256bit load/store. Generate unaligned store on misaligned memory
12037 operand.
12038 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12039 256bit load/store.
12040 (*avx_movdqu<avxmodesuffix>): Likewise.
12041
12042 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12043 -mavx256-split-unaligned-store.
12044
12045 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12046
12047 PR target/38598
12048 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12049 Update commentary.
12050
12051 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12052
12053 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12054 opno arguments with an expand_operand. Use create_input_operand.
12055 (mips_prepare_builtin_target): Delete.
12056 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12057 functions.
12058 (mips_expand_builtin_direct): Use create_output_operand and
12059 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12060 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12061 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12062
12063 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12064
12065 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12066 function.
12067 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12068
12069 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12070
12071 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12072 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12073 basic blocks and call commit_edge_insertions directly.
12074 (fixup_abnormal_edges): Move from here to...
12075 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12076 on the edges and return whether some have actually been inserted.
12077 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12078 compensation code.
12079
12080 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12081
12082 PR rtl-optimization/48144
12083 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12084 (merge_expr_data): ... here.
12085 (av_set_intersect): Rename to av_set_code_motion_filter.
12086 Update all callers. Call merge_history_vect when an expression
12087 is found in both sets.
12088 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12089
12090 2011-03-26 Alan Modra <amodra@gmail.com>
12091
12092 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12093 cmodel medium addresses.
12094 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12095 64-bit gpr loads and stores.
12096 (rs6000_secondary_reload_ppc64): New function.
12097 * config/rs6000/rs6000-protos.h: Declare it.
12098 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12099
12100 2011-03-26 Alan Modra <amodra@gmail.com>
12101
12102 PR target/47487
12103 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12104 GNU Go in traceback table.
12105
12106 2011-03-25 Richard Henderson <rth@redhat.com>
12107
12108 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12109 if there are exactly 6 operands.
12110 (set_storage_via_setmem): Similarly.
12111
12112 2011-03-25 Kai Tietz <ktietz@redhat.com>
12113
12114 * collect2.c (write_c_file_stat): Handle backslash
12115 as right-hand directory separator.
12116 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12117 checking just for slash.
12118 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12119 instead of checking for trailing slash.
12120 * gcc.c (record_temp_file): Use filename_cmp instead
12121 of strcmp.
12122 (do_spec_1): Likewise.
12123 (replace_outfile_spec_function): Likewise.
12124 (is_directory): Use filename_ncmp instead of strncmp.
12125 (print_multilib_info): Likewise.
12126 * gcov.c (find_source): Use filename_cmp instead
12127 instead of strcmp.
12128 (make_gcov_file_name): Fix order of slash/backslash
12129 checks.
12130 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12131 (add_standard_paths): Likewise.
12132 * mips-tfile.c (saber_stop): Handle backslash.
12133 * prefix.c (update_path): Use filename_ncmp instead of
12134 strncmp.
12135 * profile.c (output_location): Use filename_cmp instead
12136 of strcmp.
12137 * read-md.c (handle_toplevel_file): Handle backslash.
12138 * tlink.c (frob_extension): Likewise.
12139 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12140 strcmp.
12141 * tree-dump.c (dequeue_and_dump): Handle backslash.
12142 * tree.c (get_file_function_name): Likewise.
12143 * gengtype.c (read_input_list): Likewise.
12144 (get_file_realbasename): Likewise.
12145 (get_output_file_with_visibility): Use filename_cmp
12146 instead of strcmp.
12147
12148 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12149
12150 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12151 case to VFPv1.
12152
12153 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12154
12155 * fold-const.c (expr_location_or): New function.
12156 (fold_truth_not_expr): Call it.
12157
12158 2011-03-25 Jeff Law <law@redhat.com>
12159
12160 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12161 va_end.
12162 * c-family/c-common.c (def_fn_type): Likewise.
12163 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12164 * emit-rtl.c (gen_rtvec): Likewise.
12165 * lto/lto-lang.c (def_fn_type): Likewise.
12166
12167 2011-03-25 Richard Guenther <rguenther@suse.de>
12168
12169 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12170 also generate copies.
12171 (fini_copy_prop): Handle constant values properly.
12172
12173 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12174
12175 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12176 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12177 (hash_loc_operands, compare_loc_operands): Handle
12178 DW_OP_GNU_entry_value.
12179
12180 2011-03-25 Kai Tietz <ktietz@redhat.com>
12181
12182 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12183 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12184 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12185 comment and use macro TARGET_64BIT_MS_ABI instead.
12186 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12187 and change default behavior for 32-bit MS_ABI.
12188 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12189 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12190 32-bit, too.
12191 (ix86_cfun_abi): Likewise.
12192 (ix86_maybe_switch_abi): Adjust comment.
12193 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12194 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12195 instead of checking for SYSV_ABI.
12196 (ix86_nsaved_sseregs): Likewise.
12197 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12198 to 16 bytes.
12199 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12200 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12201 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12202 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12203 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12204
12205 2011-03-25 Richard Guenther <rguenther@suse.de>
12206
12207 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12208 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12209 (verify_gimple): Remove.
12210 * tree-cfg.c (verify_gimple_call): Merge verification
12211 from verify_stmts.
12212 (verify_gimple_phi): Merge verification from verify_stmts.
12213 (verify_gimple_label): New function.
12214 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12215 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12216 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12217 (verify_stmts): Rename to verify_gimple_in_cfg.
12218 (verify_gimple_in_cfg): New function.
12219 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12220 * tree-ssa.c (verify_ssa): Likewise.
12221 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12222
12223 2011-03-25 Richard Guenther <rguenther@suse.de>
12224
12225 * passes.c (init_optimization_passes): Add FRE pass after
12226 early SRA.
12227
12228 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12229 Andrew Stubbs <ams@codesourcery.com>
12230
12231 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12232 for Cortex-A8.
12233 (arm_movdi_vfp_cortexa8): New pattern.
12234 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12235 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12236 instructions when tuning for Cortex-A8. Set attribute "arch".
12237 * config/arm/arm.md: Move include arm-tune.md up a bit.
12238 (define_attr "arch"): Add "onlya8" and "nota8" values.
12239 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12240
12241 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12242
12243 PR bootstrap/48282
12244 Revert:
12245 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12246
12247 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12248 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12249 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12250 * passes.c (init_optimization_passes): Move
12251 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12252
12253 2011-03-25 Kai Tietz <ktietz@redhat.com>
12254
12255 * c-typeck.c (comptypes_internal): Replace target
12256 hook call of comp_type_attributes by version in tree.c file.
12257 * gimple.c (gimple_types_compatible_p_1): Likewise.
12258 * tree-ssa.c (useless_type_conversion_p): Likewise.
12259 * tree.c (build_type_attribute_qual_variant): Likewise.
12260 (attribute_value_equal): New static helper function.
12261 (comp_type_attributes): New function.
12262 (merge_attributes): Use attribute_value_equal for comparison.
12263 (attribute_list_contained): Likewise.
12264 * tree.h (comp_type_attributes): New prototype.
12265
12266 2011-03-25 Richard Guenther <rguenther@suse.de>
12267
12268 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12269 of complex types at -O0.
12270 (verify_gimple_assign_binary): Likewise.
12271 (verify_gimple_assign_ternary): Likewise.
12272
12273 2011-03-24 Mark Wielaard <mjw@redhat.com>
12274
12275 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12276 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12277
12278 2011-03-24 Mark Wielaard <mjw@redhat.com>
12279
12280 PR debug/48041
12281 * dwarf2out.c (output_abbrev_section): Only write table when
12282 abbrev_die_table_in_use > 1.
12283
12284 2011-02-24 Richard Henderson <rth@redhat.com>
12285
12286 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12287 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12288 (alpha_expand_unaligned_load_words): Use extql.
12289 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12290 (emit_insxl): Handle all modes for consistency.
12291
12292 2011-02-24 Richard Henderson <rth@redhat.com>
12293
12294 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12295 (alpha_expand_unaligned_load): Likewise.
12296 (alpha_expand_unaligned_store): Likewise.
12297 (alpha_expand_unaligned_load_words): Likewise.
12298 (alpha_expand_unaligned_store_words): Likewise.
12299 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12300 (alpha_split_lock_test_and_set_12): Likewise.
12301 (print_operand, alpha_fold_builtin_extxx): Likewise.
12302 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12303 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12304 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12305 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12306 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12307 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12308 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12309 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12310 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12311 (extwl, extll, extql): Similarly.
12312 (inswh, inslh, insqh): Similarly.
12313 (mskbl, mskwl, mskll, mskql): Similarly.
12314 (mskwh, msklh, mskqh): Similarly.
12315
12316 2011-02-24 Richard Henderson <rth@redhat.com>
12317
12318 * config/alpha/alpha.md (attribute isa): Add er, ner.
12319 (attribute enabled): Handle them.
12320 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12321
12322 2011-02-24 Richard Henderson <rth@redhat.com>
12323
12324 * config/alpha/alpha.md (attribute isa): Add vms.
12325 (attribute enabled): Handle it.
12326 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12327 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12328 (*movtf): Rename from *movtf_internal for consistency.
12329 (*movsi): Merge with *movsi_nt_vms.
12330 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12331 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12332 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12333 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12334
12335 2011-02-24 Richard Henderson <rth@redhat.com>
12336
12337 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12338 (extendqisi2, extendhisi2): Likewise.
12339 (extendqidi2): Simplify BWX/non-BWX expansions.
12340 (extendhidi2): Similarly.
12341
12342 2011-02-24 Richard Henderson <rth@redhat.com>
12343
12344 * config/alpha/alpha.md (attribute isa): New.
12345 (attribute enabled): New.
12346 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12347 (zero_extendqisi2, zero_extendqidi2): Similarly.
12348 (zero_extendhisi2, zero_extendhidi2): Similarly.
12349 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12350
12351 2011-02-24 Richard Henderson <rth@redhat.com>
12352
12353 * config/alpha/predicates.md (input_operand): Revert last change;
12354 update comment to mention 32-bit VMS rather than Windows.
12355
12356 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12357
12358 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12359 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12360 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12361 * passes.c (init_optimization_passes): Move
12362 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12363
12364 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12365
12366 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12367
12368 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12369
12370 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12371 correctly.
12372
12373 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12374
12375 PR debug/48204
12376 * simplify-rtx.c (simplify_const_unary_operation): Call
12377 real_convert when changing mode class with FLOAT_EXTEND.
12378
12379 2011-03-24 Nick Clifton <nickc@redhat.com>
12380
12381 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12382 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12383 * config/rx/rx.c (rx_option_override): Set align_jumps,
12384 align_loops and align_labels if not set by the user.
12385 (rx_align_for_label): New function.
12386 (rx_max_skip_for_label): New function.
12387 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12388 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12389 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12390 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12391 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12392
12393 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12394
12395 PR rtl-optimization/48263
12396 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12397 and original commutative_p handling. Use maybe_gen_insn.
12398
12399 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12400
12401 * reload.c (find_reloads_subreg_address): Add address_reloaded
12402 parameter and return true there if the full address has been
12403 reloaded.
12404 (find_reloads_toplev): Pass address_reloaded flag.
12405 (find_reloads_address_1): Don't use address_reloaded parameter.
12406
12407 2011-03-24 Jeff Law <law@redhat.com>
12408
12409 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12410 unused variable "ann".
12411 (remove_unused_locals): Likewise.
12412
12413 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12414 statement.
12415
12416 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12417 after it is freed.
12418
12419 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12420
12421 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12422 for invalid symbolic addresses.
12423 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12424 larl operands.
12425
12426 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12427
12428 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12429 the argument in calls to fold_truth_not_expr.
12430
12431 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12432
12433 * tree.c (record_node_allocation_statistics): New function.
12434 (make_node_stat, copy_node_stat, build_string): Call it.
12435 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12436 (build1_stat, build_omp_clause): Likewise.
12437
12438 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12439
12440 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12441 last commit.
12442
12443 2011-03-24 Richard Guenther <rguenther@suse.de>
12444
12445 PR tree-optimization/48271
12446 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12447 blocks that still exist.
12448
12449 2011-03-24 Richard Guenther <rguenther@suse.de>
12450
12451 PR tree-optimization/48270
12452 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12453 not free datarefs before ddrs.
12454
12455 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12456
12457 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12458 from the address built for a reference with variable offset.
12459
12460 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12461
12462 PR target/48237
12463 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12464 alternatives that can be handled with movq or movabsq insn.
12465 (*movdf_internal): Disable for !TARGET_64BIT.
12466 (*movdf_internal_nointeger): Ditto.
12467 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12468
12469 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12470
12471 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12472 (FUNCTION_ARG_ADVANCE): Likewise.
12473 * tm.texi.in: Change references to them to hook references.
12474 * tm.texi: Regenerate.
12475 * targhooks.c (default_function_arg): Eliminate check for target macro.
12476 (default_function_incoming_arg): Likewise.
12477 (default_function_arg_advance): Likewise.
12478 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12479 (function_arg_advance): Likewise.
12480 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12481
12482 2011-03-24 Richard Guenther <rguenther@suse.de>
12483
12484 PR middle-end/48269
12485 * tree-object-size.c (addr_object_size): Do not double-account
12486 for MEM_REF offsets.
12487
12488 2011-03-24 Diego Novillo <dnovillo@google.com>
12489
12490 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12491 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12492 (lto_input_data_block): Move from lto-opts.c. Make extern.
12493 Update all users.
12494 (lto_input_string): Rename from input_string. Make extern.
12495 Update all users.
12496 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12497 output_string_with_length.
12498 Output 0 to indicate a non-NULL string. Update all callers to
12499 not emit 0.
12500 (lto_output_string): Rename from output_string. Make extern.
12501 Update all users.
12502 (lto_output_decl_state_streams): Make extern.
12503 (lto_output_decl_state_refs): Make extern.
12504 * lto-streamer.h (lto_input_string): Declare.
12505 (lto_input_data_block): Declare.
12506 (lto_output_string): Declare.
12507 (lto_output_string_with_length): Declare.
12508 (lto_output_decl_state_streams): Declare.
12509 (lto_output_decl_state_refs): Declare.
12510
12511 2011-03-24 Richard Guenther <rguenther@suse.de>
12512
12513 PR tree-optimization/46562
12514 * tree.c (build_invariant_address): New function.
12515 * tree.h (build_invariant_address): Declare.
12516 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12517 a renamed function moved ...
12518 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12519 Take valueization callback parameter.
12520 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12521 * gimple-fold.h: New file.
12522 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12523 (ccp_fold, fold_const_aggregate_ref,
12524 fold_ctor_reference, fold_nonarray_ctor_reference,
12525 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12526 get_base_constructor): Move ...
12527 * gimple-fold.c: ... here.
12528 (gimple_fold_stmt_to_constant_1): New function
12529 split out from ccp_fold. Take a valueization callback parameter.
12530 Valueize all operands.
12531 (gimple_fold_stmt_to_constant): New wrapper function.
12532 (fold_const_aggregate_ref_1): New function split out from
12533 fold_const_aggregate_ref. Take a valueization callback parameter.
12534 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12535 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12536 invariant POINTER_PLUS_EXPRs to invariant form.
12537 (vn_valueize): New function.
12538 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12539 * tree-vrp.c (vrp_valueize): New function.
12540 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12541 to fold statements to constants.
12542 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12543 function declarations.
12544 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12545 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12546
12547 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12548
12549 * config/h8300/predicates.md (jump_address_operand): Fix register
12550 mode check.
12551
12552 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12553
12554 * doc/invoke.texi (max-stores-to-sink): Document.
12555 * params.h (MAX_STORES_TO_SINK): Define.
12556 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12557 if either vectorization or if-conversion is disabled.
12558 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12559 tree-vect-data-refs.c vect_equal_offsets.
12560 (dr_equal_offsets_p): New function.
12561 (find_data_references_in_bb): Remove static.
12562 * tree-data-ref.h (find_data_references_in_bb): Declare.
12563 (dr_equal_offsets_p): Likewise.
12564 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12565 (vect_drs_dependent_in_basic_block): Update calls to
12566 vect_equal_offsets.
12567 (vect_check_interleaving): Likewise.
12568 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12569 (cond_if_else_store_replacement): Rename to...
12570 (cond_if_else_store_replacement_1): ... this. Change arguments and
12571 documentation.
12572 (cond_if_else_store_replacement): New function.
12573 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12574 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12575
12576 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12577
12578 PR target/46934
12579 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12580 to subtract lower bound instead of GEN_INT().
12581
12582 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12583
12584 PR other/48179
12585 PR other/48221
12586 PR other/48234
12587 * doc/extend.texi (Alignment): Move section to match order in TOC.
12588 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12589 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12590
12591 2011-03-23 Jeff Law <law@redhat.com>
12592
12593 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12594 before removing the edge.
12595
12596 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12597 it may have been freed by redirect_branch_edge or
12598 redirect_edge_succ_nodup.
12599
12600 2011-03-23 Richard Guenther <rguenther@suse.de>
12601
12602 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12603 (check_va_list_escapes): Likewise.
12604 (check_all_va_list_escapes): Likewise.
12605
12606 2011-03-23 Richard Guenther <rguenther@suse.de>
12607
12608 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12609 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12610 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12611 (alias.o): Likewise.
12612 (ipa-type-escape.o): Remove.
12613 (ipa-struct-reorg.o): Likewise.
12614 (GTFILES): Remove ipa-struct-reorg.c.
12615 * alias.c: Do not include ipa-type-escape.h.
12616 * tree-ssa-alias.c: Likewise.
12617 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12618 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12619 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12620 and ipa-type-escape passes.
12621 * tree-pass.h (pass_ipa_type_escape): Remove.
12622 (pass_ipa_struct_reorg): Likewise.
12623 * ipa-struct-reorg.h: Remove.
12624 * ipa-struct-reorg.c: Likewise.
12625 * ipa-type-escape.h: Likewise.
12626 * ipa-type-escape.c: Likewise.
12627 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12628 (--param struct-reorg-cold-struct-ratio): Likewise.
12629 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12630 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12631 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12632
12633 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12634
12635 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12636 cpu attribute value.
12637 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12638 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12639 * config/s390/s390.c (processor_flags_table): New constant array.
12640 (s390_handle_arch_option): Remove.
12641 (s390_handle_option): Remove s390_handle_arch_option invocations
12642 and OPT_mwarn_framesize_ handling.
12643 (s390_option_override): Remove s390_handle_arch_option invocation.
12644 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12645 warnings.
12646 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12647 * config/s390/s390.opt (s390_tune, s390_arch)
12648 (march=): Replace s390_arch_option enum and values with
12649 processor_type. Set variable name to s390_arch. Set
12650 initialization value.
12651 (mtune=): Replace s390_arch_option with processor_type. Set
12652 variable name to s390_tune. Set initialization value.
12653
12654 2011-03-23 Julian Brown <julian@codesourcery.com>
12655
12656 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12657 accesses which are not naturally aligned.
12658
12659 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12660
12661 PR target/47553
12662 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12663
12664 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12665
12666 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12667 parameter from "int" to "enum insn_code".
12668 (expand_operand_type): New enum.
12669 (expand_operand): New structure.
12670 (create_expand_operand): New function.
12671 (create_fixed_operand, create_output_operand): Likewise
12672 (create_input_operand, create_convert_operand_to): Likewise.
12673 (create_convert_operand_from, create_address_operand): Likewise.
12674 (create_integer_operand): Likewise.
12675 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12676 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12677 (expand_insn, expand_jump_insn): Likewise.
12678 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12679 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12680 (expand_movstr, expand_builtin___clear_cache): Likewise.
12681 (expand_builtin_lock_release): Likewise.
12682 * explow.c (allocate_dynamic_stack_space): Likewise.
12683 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12684 and use the default handling in that case.
12685 * expmed.c (check_predicate_volatile_ok): Delete.
12686 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12687 (emit_cstore): Likewise.
12688 * expr.c (emit_block_move_via_movmem): Likewise.
12689 (set_storage_via_setmem, expand_assignment): Likewise.
12690 (emit_storent_insn, try_casesi): Likewise.
12691 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12692 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12693 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12694 (expand_twoval_unop, expand_twoval_binop): Likewise.
12695 (expand_unop_direct, emit_indirect_jump): Likewise.
12696 (emit_conditional_move, vector_compare_rtx): Likewise.
12697 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12698 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12699 (expand_sync_lock_test_and_set): Likewise.
12700 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12701 (emit_unop_insn): Likewise.
12702 (expand_copysign_absneg): Change icode to an insn_code.
12703 (create_convert_operand_from_type): New function.
12704 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12705 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12706 (expand_insn, expand_jump_insn): Likewise.
12707 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12708 than const_int_operand for operand 2.
12709
12710 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12711
12712 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12713 if possible.
12714
12715 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12716
12717 * emit-rtl.c (emit_pattern_before_noloc): New function.
12718 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12719 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12720 (emit_pattern_after_noloc): New function.
12721 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12722 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12723
12724 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12725
12726 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12727 (__ffsDI2): Likewise.
12728
12729 2011-03-22 Richard Henderson <rth@redhat.com>
12730
12731 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12732 of !TARGET_ABI_OPEN_VMS.
12733 (alpha_trampoline_init, alpha_start_function): Likewise.
12734 (alpha_expand_epilogue, alpha_file_start): Likewise.
12735 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12736 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12737 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12738 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12739 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12740
12741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12742
12743 * config/s390/s390-opts.h: New.
12744 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12745 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12746 s390_stack_guard): Remove.
12747 (s390_handle_arch_option): Return void. Take enum
12748 s390_arch_option value instead of string and searching array.
12749 (s390_handle_option): Don't assert that global structures are in
12750 use. Access variables via opts pointer. Use error_at. Don't use
12751 sscanf for -mstack-guard= or -mstack-size=. Update call to
12752 s390_handle_arch_option.
12753 (s390_option_override): Update call to s390_handle_arch_option.
12754 (s390_emit_prologue): Use %d format for s390_stack_size in
12755 diagnostic. Use %wd for HOST_WIDE_INT.
12756 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12757 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12758 * config/s390/s390.opt (config/s390/s390-opts.h): New
12759 HeaderInclude entry.
12760 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12761 s390_arch_flags, s390_warn_framesize): New Variable entries.
12762 (s390_arch_option): New Enum and EnumValue entries.
12763 (march=): Use Enum instead of Var.
12764 (mstack-guard=, mstack-size=): Use UInteger and Var.
12765 (mtune=): Use Enum.
12766
12767 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12768
12769 * config/score/score.c (score_handle_option): Don't assert that
12770 global structures are in use. Access target_flags via opts
12771 pointer. Use value of -march= option to determine target_flags
12772 settings.
12773 * config/score/score.opt (march=): Use Enum.
12774 (score_arch): New Enum and EnumValue entries.
12775
12776 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12777
12778 * config/mep/mep.c (option_mtiny_specified): Remove.
12779 (mep_option_override): Move register handling for -mivc2 from
12780 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12781 instead of option_mtiny_specified.
12782 (mep_handle_option): Access target_flags via opts pointer. Don't
12783 assert that global structures are in use. Defer part of -mivc2
12784 handling and move it to mep_option_override.
12785 * config/mep/mep.opt (IVC2): New Mask entry.
12786 (mivc2): Use Var and Defer instead of Mask.
12787
12788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12789
12790 * config/v850/v850-opts.h: New.
12791 * config/v850/v850.c (small_memory): Replace with
12792 small_memory_physical_max array. Make that array static const.
12793 (v850_handle_memory_option): Take integer value of argument. Take
12794 gcc_options pointer, option text and location. Return void.
12795 Update for changes to small memory structures.
12796 (v850_handle_option): Access target_flags via opts pointer. Don't
12797 assert that global structures are in use. Update calls to
12798 v850_handle_memory_option.
12799 (v850_encode_data_area): Update references to small memory settings.
12800 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12801 (enum small_memory_type): Move to v850-opts.h.
12802 * config/v850/v850.opt (config/v850/v850-opts.h): New
12803 HeaderInclude entry.
12804 (small_memory_max): New Variable entry.
12805 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12806 (mtda, mzda): Likewise.
12807
12808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12809
12810 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12811 pointer. Don't assert that global structures are in use.
12812
12813 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12814
12815 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12816 via opts pointer. Don't assert that global structures are in use.
12817
12818 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12819
12820 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12821 (munix=93): Use Var.
12822 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12823 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12824 * config/pa/pa-opts.h: New.
12825 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12826 (pa_handle_option): Don't assert that global structures are in
12827 use. Access target_flags via opts pointer. Don't handle
12828 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12829 OPT_munix_98 here.
12830 (pa_option_override): Handle deferred OPT_mfixed_range_.
12831
12832 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12833
12834 * config/mn10300/mn10300-opts.h: New.
12835 * config/mn10300/mn10300.c (mn10300_processor,
12836 mn10300_tune_string): Remove.
12837 (mn10300_handle_option): Don't assert that global structures are
12838 in use. Access mn10300_processor via opts pointer. Don't handle
12839 OPT_mtune_ here.
12840 * config/mn10300/mn10300.h (enum processor_type): Move to
12841 mn10300-opts.h.
12842 (mn10300_processor): Remove.
12843 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12844 HeaderInclude entry.
12845 (mn10300_processor): New Variable entry.
12846 (mtune=): Use Var.
12847
12848 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12849
12850 * config/microblaze/microblaze.c: Don't include opts.h.
12851 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12852 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12853 (mno-clearbss): Use Var and Warn.
12854
12855 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12856
12857 * config/m32r/m32r-opts.h: New.
12858 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12859 (m32r_handle_option): Don't assert that global structures are in
12860 use. Access target_flags and m32r_cache_flush_func via opts
12861 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12862 OPT_mno_flush_trap here.
12863 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12864 include of m32r-opts.h.
12865 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12866 HeaderInclude entry.
12867 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12868 (mmodel=): Use Enum and Var.
12869 (m32r_model): New Enum and EnumValue entries.
12870 (mno-flush-trap): Use Var.
12871 (msdata=): Use Enum and Var.
12872 (m32r_sdata): New Enum and EnumValue entries.
12873
12874 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12875
12876 * config/m32c/m32c.c: Don't include opts.h.
12877 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12878 m32c_handle_option): Remove.
12879 (m32c_option_override): Check global_options_set.x_target_memregs
12880 instead of target_memregs_set.
12881 * config/m32c/m32c.h (target_memregs): Remove.
12882 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12883 variable.
12884
12885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12886
12887 * config/iq2000/iq2000-opts.h: New.
12888 * config/iq2000/iq2000.c: Don't include opts.h.
12889 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12890 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12891 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12892 HeaderInclude entry.
12893 (iq2000_tune): New Variable entry.
12894 (march=): Add comment. Use Enum.
12895 (iq2000_arch): New Enum and EnumValue entries.
12896 (mcpu=): Use Enum and Var.
12897 (iq2000_tune): New Enum and EnumValue entries.
12898
12899 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12900
12901 * config/ia64/ia64-opts.h: New.
12902 * config/ia64/ia64.c (ia64_tune): Remove.
12903 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12904 here. Use error_at.
12905 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12906 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12907 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12908 HeaderInclude entry.
12909 (ia64_tune): New Variable entry.
12910 (mfixed-range=): Use Defer and Var.
12911 (mtune=): Use Enum and Var.
12912 (ia64_tune): New Enum and EnumValue entries.
12913
12914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12915
12916 * config/frv/frv-opts.h: New.
12917 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12918 frv-opts.h.
12919 (frv_cpu_type): Remove.
12920 * config/frv/frv.c: Don't include opts.h.
12921 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12922 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12923 (frv_cpu_type): New Variable entry.
12924 (frv_cpu): New Enum and EnumValue entries.
12925
12926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12927
12928 * config/cris/cris.c (cris_handle_option): Access target_flags via
12929 opts pointer. Don't assert that global structures are in use.
12930 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12931 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12932
12933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12934
12935 * config/bfin/bfin-opts.h: New.
12936 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12937 bfin_si_revision, bfin_workarounds): Remove.
12938 (bfin_cpus): Make static const.
12939 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12940 not bfin_lib_id_given.
12941 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12942 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12943 pointer. Use error_at. Don't assert that global structures are in use.
12944 * config/bfin/bfin.h: Include bfin-opts.h.
12945 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12946 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12947 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12948 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12949 entries.
12950
12951 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12952
12953 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12954 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12955 or -msoft-float here.
12956 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12957 -msoft-float and -mhard-float.
12958 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12959 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12960 msoft-float.
12961 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12962 -msoft-float.
12963 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12964 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12965 not mhard-float.
12966 (LIBGCC_SPEC): Don't handle -msoft-float.
12967 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12968 -mhard-float.
12969 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12970 msoft-float.
12971 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12972 -mfloat-abi=*, not -msoft-float and -mhard-float.
12973 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12974 -msoft-float.
12975 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12976 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12977 mhard-float and msoft-float.
12978 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12979 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12980 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12981 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12982 mhard-float.
12983 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12984 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12985 msoft-float.
12986 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12987 not mhard-float.
12988 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12989 not msoft-float.
12990
12991 2011-03-22 Richard Henderson <rth@redhat.com>
12992
12993 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12994 TARGET_ABI_WINDOWS_NT.
12995 (alpha_output_function_end_prologue): Likewise.
12996 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12997 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12998 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12999 (trap, *movsi_nt_vms): Likewise.
13000 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13001 (*tablejump_osf_nt_internal): Remove.
13002 * config/alpha/predicates.md (input_operand): Only test Pmode.
13003
13004 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13005
13006 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13007 via opts pointer. Use error_at. Don't assert that global
13008 structures are in use.
13009
13010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13011
13012 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13013 (ix86_handle_option): Access ix86_isa_flags and
13014 ix86_isa_flags_explicit via opts pointer. Don't assert that
13015 global structures are in use.
13016 (ix86_function_specific_save, ix86_function_specific_restore):
13017 Update ix86_isa_flags_explicit field name.
13018 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13019 (ix86_isa_flags_explicit): Rename TargetSave entry to
13020 x_ix86_isa_flags_explicit.
13021
13022 2011-03-22 Richard Henderson <rth@redhat.com>
13023
13024 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13025 (alpha_option_override, direct_return): Likewise.
13026 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13027 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13028 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13029 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13030 (alpha_expand_epilogue, alpha_end_function): Likewise.
13031 (alpha_init_libfuncs): Likewise.
13032 (struct machine_function): Remove unicosmk members.
13033 (print_operand) ['t']: Remove.
13034 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13035 unicosmk_output_module_name, unicosmk_output_common,
13036 current_section_align, unicosmk_output_text_section_asm_op,
13037 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13038 unicosmk_section_type_flags, unicosmk_unique_section,
13039 unicosmk_asm_named_section, unicosmk_insert_attributes,
13040 unicosmk_output_align, unicosmk_defer_case_vector,
13041 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13042 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13043 unicosmk_output_ssib, unicosmk_add_call_info_word,
13044 unicosmk_extern_head, unicosmk_output_default_externs,
13045 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13046 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13047 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13048 * config/alpha/alpha-protos.h: Update.
13049 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13050 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13051 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13052 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13053 (*mulsi_se, mulvsi3): Likewise.
13054 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13055 (*divmodsi_internal, call, call_value, realign): Likewise.
13056 (moddi3, umoddi3): Likewise; remove duplicate expander.
13057 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13058 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13059 (*movdi_nofix): Remove r/U alternative.
13060 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13061 * config/alpha/constraints.md ("U"): Remove.
13062 * config/alpha/predicates.md (call_operand"): Don't test
13063 TARGET_ABI_UNICOSMK.
13064
13065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13066
13067 * target.def (handle_option): Take gcc_options and
13068 cl_decoded_option pointers and location_t.
13069 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13070 * doc/tm.texi: Regenerate.
13071 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13072 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13073 * lto-opts.c (lto_reissue_options): Generate option structure for
13074 targetm.handle_option call.
13075 * opts.c (target_handle_option): Update call to
13076 targetm.handle_option. Remove assertions about values now passed
13077 down to hook.
13078 * targhooks.c (default_target_handle_option): New.
13079 * targhooks.h (default_target_handle_option): Declare.
13080 * config/alpha/alpha.c: Include opts.h.
13081 (alpha_handle_option): Update to new hook interface.
13082 * config/arm/arm.c: Include opts.h.
13083 (arm_handle_option): Update to new hook interface.
13084 * config/arm/t-arm (arm.o): Update dependencies.
13085 * config/bfin/bfin.c: Include opts.h.
13086 (bfin_handle_option): Update to new hook interface.
13087 * config/cris/cris.c: Include opts.h.
13088 (cris_handle_option): Update to new hook interface.
13089 * config/frv/frv.c: Include opts.h.
13090 (frv_handle_option): Update to new hook interface.
13091 * config/i386/i386.c: Include opts.h.
13092 (ix86_handle_option): Update to new hook interface.
13093 (ix86_valid_target_attribute_inner_p): Generate option structure
13094 for call to ix86_handle_option.
13095 * config/i386/t-i386 (i386.o): Update dependencies.
13096 * config/ia64/ia64.c: Include opts.h.
13097 (ia64_handle_option): Update to new hook interface.
13098 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13099 * config/iq2000/iq2000.c: Include opts.h.
13100 (iq2000_handle_option): Update to new hook interface.
13101 * config/m32c/m32c.c: Include opts.h.
13102 (m32c_handle_option): Update to new hook interface.
13103 * config/m32r/m32r.c: Include opts.h.
13104 (m32r_handle_option): Update to new hook interface.
13105 * config/m68k/m68k.c: Include opts.h.
13106 (m68k_handle_option): Update to new hook interface.
13107 * config/mep/mep.c: Include opts.h.
13108 (mep_handle_option): Update to new hook interface.
13109 * config/microblaze/microblaze.c: Include opts.h.
13110 (microblaze_handle_option): Update to new hook interface.
13111 * config/mips/mips.c: Include opts.h.
13112 (mips_handle_option): Update to new hook interface.
13113 * config/mn10300/mn10300.c: Include opts.h.
13114 (mn10300_handle_option): Update to new hook interface.
13115 * config/pa/pa.c: Include opts.h.
13116 (pa_handle_option): Update to new hook interface.
13117 * config/pdp11/pdp11.c: Include opts.h.
13118 (pdp11_handle_option): Update to new hook interface.
13119 * config/rs6000/rs6000.c: Include opts.h.
13120 (rs6000_handle_option): Update to new hook interface.
13121 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13122 * config/rx/rx.c: Include opts.h.
13123 (rx_handle_option): Update to new hook interface.
13124 * config/s390/s390.c: Include opts.h.
13125 (s390_handle_option): Update to new hook interface.
13126 * config/score/score.c: Include opts.h.
13127 (score_handle_option): Update to new hook interface.
13128 * config/sh/sh.c: Include opts.h.
13129 (sh_handle_option): Update to new hook interface.
13130 * config/sparc/sparc.c: Include opts.h.
13131 (sparc_handle_option): Update to new hook interface.
13132 * config/v850/v850.c: Include opts.h.
13133 (v850_handle_option): Update to new hook interface.
13134
13135 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13136
13137 * gcc.c (driver_unknown_option_callback): Only permit and save
13138 unknown -Wno- options.
13139 (driver_wrong_lang_callback): Save options directly instead of via
13140 driver_unknown_option_callback.
13141
13142 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13143
13144 * combine.c (simplify_set): Try harder to find the best CC mode when
13145 simplifying a nested COMPARE on the RHS.
13146
13147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13148
13149 * config/alpha/gnu.h: Remove.
13150 * config/arc: Remove directory.
13151 * config/arm/netbsd.h: Remove.
13152 * config/arm/t-pe: Remove.
13153 * config/crx: Remove directory.
13154 * config/i386/netbsd.h: Remove.
13155 * config/m68hc11: Remove directory.
13156 * config/m68k/uclinux-oldabi.h: Remove.
13157 * config/mcore/mcore-pe.h: Remove.
13158 * config/mcore/t-mcore-pe: Remove.
13159 * config/netbsd-aout.h: Remove.
13160 * config/rs6000/gnu.h: Remove.
13161 * config/sh/sh-symbian.h: Remove.
13162 * config/sh/symbian-base.c: Remove.
13163 * config/sh/symbian-c.c: Remove.
13164 * config/sh/symbian-cxx.c: Remove.
13165 * config/sh/symbian-post.h: Remove.
13166 * config/sh/symbian-pre.h: Remove.
13167 * config/sh/t-symbian: Remove.
13168 * config/svr3.h: Remove.
13169 * config/vax/netbsd.h: Remove.
13170 * config.build: Don't handle i[34567]86-*-pe.
13171 * config.gcc: Remove handling of deprecations for most deprecated
13172 targets.
13173 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13174 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13175 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13176 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13177 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13178 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13179 Remove cases.
13180 * config.host: Don't handle i[34567]86-*-pe.
13181 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13182 (ASM_SPEC32): Don't handle -mcall-gnu.
13183 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13184 -mcall-gnu.
13185 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13186 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13187 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13188 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13189 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13190 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13191 conditional on SYMBIAN.
13192 * configure.ac: Don't handle powerpc*-*-gnu*.
13193 * configure: Regenerate.
13194 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13195 * doc/install-old.texi (m6811, m6812): Don't mention.
13196 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13197 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13198 (m68k-uclinuxoldabi): Don't mention.
13199 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13200 Remove.
13201 (-mcall-gnu): Remove.
13202 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13203 families): Remove constraint documentation.
13204
13205 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13206
13207 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13208 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13209 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13210
13211 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13212
13213 PR target/48226
13214 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13215 vector when peeking at the next token for vector, don't expand the
13216 keywords.
13217
13218 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13219
13220 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13221 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13222 * config/avr/avr.c (init_cumulative_args)
13223 (avr_function_arg_advance): Use it.
13224 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13225 sibcall epilogues.
13226 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13227 (avr_function_ok_for_sibcall): ...this new function.
13228 (avr_lookup_function_attribute1): New static Function.
13229 (avr_naked_function_p, interrupt_function_p)
13230 (signal_function_p, avr_OS_task_function_p)
13231 (avr_OS_main_function_p): Use it.
13232 * config/avr/avr.md ("sibcall", "sibcall_value")
13233 ("sibcall_epilogue"): New expander.
13234 ("*call_insn", "*call_value_insn"): New insn.
13235 ("call_insn", "call_value_insn"): Remove
13236 ("call", "call_value", "epilogue"): Change expander to handle
13237 sibling calls.
13238
13239 2011-03-21 Nick Clifton <nickc@redhat.com>
13240
13241 * doc/invoke.texi (Overall Options): Move closing brace to end of
13242 options list.
13243 (Optimization Options): Add missing @gol.
13244 (Directory Options): Likewise.
13245 (i386 and x86-64 Options): Likewise.
13246 (RS6000 and PowerPC Options): Likewise.
13247 (i386 and x86-64 Windows Options): Likewise.
13248 (V850 Options): Add text missing from descriptions.
13249
13250 2011-03-22 Richard Henderson <rth@redhat.com>
13251
13252 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13253 (avr_incoming_return_addr_rtx): New.
13254 (emit_push_byte): New.
13255 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13256 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13257 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13258 (emit_pop_byte): New.
13259 (expand_epilogue): Use it. Pop frame pointer by bytes.
13260 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13261 (INCOMING_RETURN_ADDR_RTX): New.
13262 (INCOMING_FRAME_SP_OFFSET): New.
13263 (ARG_POINTER_CFA_OFFSET): New.
13264 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13265 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13266 (pophi): Remove.
13267
13268 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13269
13270 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13271
13272 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13273 (FUNCTION_ARG_ADVANCE): Likewise.
13274 * tm.texi.in: Change references to them to hook references.
13275 * tm.texi: Regenerate.
13276 * targhooks.c (default_function_arg): Eliminate check for target
13277 macro.
13278 (default_function_incoming_arg): Likewise.
13279 (default_function_arg_advance): Likewise.
13280 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13281 (function_arg_advance): Likewise.
13282 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13283
13284 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13285
13286 * tree.c (build_call_1): New function.
13287 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13288
13289 2011-03-22 Richard Guenther <rguenther@suse.de>
13290
13291 PR tree-optimization/48228
13292 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13293 for single-arg PHIs.
13294
13295 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13296
13297 PR rtl-optimization/48143
13298 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13299 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13300 sse2_cvtps2pd): Likewise.
13301
13302 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13303
13304 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13305
13306 2011-03-22 Richard Guenther <rguenther@suse.de>
13307
13308 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13309 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13310 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13311 and REALIGN_LOAD_EXPR.
13312 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13313 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13314 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13315 DOT_PROD_EXPR case ...
13316 (expand_expr_real_2): ... here.
13317 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13318 and REALIGN_LOAD_EXPR.
13319 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13320 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13321 (vect_create_epilog_for_reduction): Likewise.
13322 (vectorizable_reduction): Likewise.
13323 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13324 * tree-vect-stmts.c (vectorizable_load): Likewise.
13325
13326 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13327
13328 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13329
13330 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13331
13332 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13333 handling for PLTOFF/GOTOFF.
13334
13335 2011-03-22 Nick Clifton <nickc@redhat.com>
13336
13337 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13338 trailing backslash from the end of the macro definition.
13339
13340 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13341
13342 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13343 and PLT unspecs.
13344
13345 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13346
13347 * expr.h (prepare_operand): Move to...
13348 * optabs.h (prepare_operand): ...here and change the insn code
13349 parameter from "int" to "enum insn_code".
13350 (insn_operand_matches): Declare.
13351 * expr.c (init_expr_target): Use insn_operand_matches.
13352 (compress_float_constant): Likewise.
13353 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13354 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13355 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13356 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13357 Likewise.
13358 (gen_cond_trap): Likewise.
13359 (prepare_operand): Likewise. Change icode to an insn_code.
13360 (insn_operand_matches): New function.
13361 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13362 * reload1.c (gen_reload): Likewise.
13363 * targhooks.c (default_secondary_reload): Likewise.
13364
13365 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13366
13367 * config/alpha/alpha.md (unspec): New define_c_enum.
13368 (unspecv): Ditto.
13369
13370 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13371
13372 PR debug/48214
13373 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13374 between a call and its CALL_ARG_LOCATION note.
13375
13376 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13377
13378 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13379
13380 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR c/42544
13383 PR c/48197
13384 * c-common.c (shorten_compare): If primopN is first sign-extended
13385 to opN and then zero-extended to result type, set primopN to opN.
13386
13387 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13388
13389 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13390 for barrier handlers.
13391
13392 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13393
13394 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13395 UNSPEC constants to be in the unspec enumeration, and redefine
13396 all UNSPECV constants to be in the unspecv enumeration, so that
13397 dumps print which unspec/unspec_volatile this is.
13398 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13399 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13400 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13401 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13402 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13403
13404 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13405 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13406 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13407 * config/rs6000/sync.md (isync, lwsync): Ditto.
13408
13409 2011-03-21 Richard Guenther <rguenther@suse.de>
13410
13411 * params.def (lto-min-partition): Fix typo.
13412
13413 2011-03-21 Richard Guenther <rguenther@suse.de>
13414
13415 PR c/47939
13416 * c-decl.c (grokdeclarator): Drop to the main variant only
13417 for array types. Drop flag_gen_aux_info check.
13418
13419 2011-03-21 Richard Guenther <rguenther@suse.de>
13420
13421 PR translation/47911
13422 * params.def (lto-partitions): Fix typo.
13423 (lto-min-partition): Fix wording.
13424
13425 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13426
13427 * config/rs6000/t-freebsd: Remove duplication from file.
13428
13429 2011-03-21 Richard Guenther <rguenther@suse.de>
13430
13431 PR middle-end/47661
13432 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13433
13434 2011-03-21 Richard Guenther <rguenther@suse.de>
13435
13436 PR lto/48210
13437 * params.def (lto-partitions): Require at least 1 partition.
13438
13439 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13440
13441 * gthr-solaris.h: Remove.
13442 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13443 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13444 (LIB_SPEC): Likewise.
13445 * config/sol2.opt (threads): Remove.
13446 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13447 (sparc*-*-solaris2*): Likewise.
13448 * configure.ac (enable_threads): Enable solaris support.
13449 * configure: Regenerate.
13450 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13451 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13452 solaris.
13453
13454 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13455
13456 * config.gcc: Obsolete *-*-solaris2.8*.
13457 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13458
13459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13460
13461 PR bootstrap/48135
13462 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13463 reference. Solaris 8 perl works.
13464
13465 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13466
13467 PR bootstrap/48135
13468 * doc/install.texi (Prerequisites): Move jar etc. up.
13469 Explain support library version requirements.
13470
13471 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13472
13473 PR bootstrap/48135
13474 * doc/install.texi (Prerequisites): Move Perl to build
13475 requirements. Always necessary on Solaris 2 with Sun ld.
13476
13477 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13478
13479 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13480 binutils 2.21.
13481 (Specific, i?86-*-solaris2.[89]): Likewise.
13482 (Specific, i?86-*-solaris2.10): Likewise.
13483 (Specific, mips-sgi-irix6): Likewise.
13484 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13485 Update for binutils 2.21.
13486
13487 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13488
13489 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13490 Allow -fuse-linker-plugin for non-default plugin linker.
13491 * configure: Regenerate.
13492
13493 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13494
13495 PR bootstrap/48167
13496 * gengtype.c (files_rules): Added rule for cp/parser.h.
13497
13498 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13499
13500 PR target/48213
13501 * config/s390/s390.c (s390_delegitimize_address): Don't call
13502 lowpart_subreg if orig_x has BLKmode.
13503
13504 2011-03-21 Kai Tietz <ktietz@redhat.com>
13505
13506 PR target/12171
13507 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13508 * tree.h (attribute_spec): Add new member affects_type_identity.
13509 * attribs.c (empty_attribute_table): Adjust attribute_spec
13510 initializers.
13511 * config/alpha/alpha.c: Likewise.
13512 * config/arc/arc.c: Likewise.
13513 * config/arm/arm.c: Likewise.
13514 * config/avr/avr.c: Likewise.
13515 * config/bfin/bfin.c: Likewise.
13516 * config/crx/crx.c: Likewise.
13517 * config/darwin.h: Likewise.
13518 * config/h8300/h8300.c: Likewise.
13519 * config/i386/cygming.h: Likewise.
13520 * config/i386/i386.c: Likewise.
13521 * config/ia64/ia64.c: Likewise.
13522 * config/m32c/m32c.c: Likewise.
13523 * config/m32r/m32r.c: Likewise.
13524 * config/m68hc11/m68hc11.c: Likewise.
13525 * config/m68k/m68k.c: Likewise.
13526 * config/mcore/mcore.c: Likewise.
13527 * config/mep/mep.c: Likewise.
13528 * config/microblaze/microblaze.c: Likewise.
13529 * config/mips/mips.c: Likewise.
13530 * config/rs6000/rs6000.c: Likewise.
13531 * config/rx/rx.c: Likewise.
13532 * config/sh/sh.c: Likewise.
13533 * config/sol2.h: Likewise.
13534 * config/sparc/sparc.c: Likewise.
13535 * config/spu/spu.c: Likewise.
13536 * config/stormy16/stormy16.c: Likewise.
13537 * config/v850/v850.c: Likewise.
13538
13539 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13540
13541 * simplify-rtx.c (simplify_binary_operation_1): Handle
13542 (xor (and A B) C) case when B and C are both constants.
13543
13544 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13545
13546 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13547
13548 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13549
13550 PR bootstrap/48168
13551 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13552
13553 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13554
13555 PR rtl-optimization/48156
13556 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13557 assume df and df_lr are not NULL.
13558
13559 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13560
13561 PR debug/48023
13562 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13563 between a call and its CALL_ARG_LOCATION note.
13564
13565 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13566
13567 PR debug/48178
13568 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13569 between a call and its corresponding CALL_ARG_LOCATION note.
13570
13571 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13572
13573 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13574 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13575 * haifa-sched.c (setup_ref_regs): Ditto.
13576 * caller-save.c (add_used_regs_1): Ditto.
13577 * dse.c (look_for_hardregs): Ditto.
13578 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13579 * sched-rgn.c (check_live_1): Ditto.
13580
13581 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13582
13583 * c-decl.c (diagnose_mismatched_decls): Give an error for
13584 redefining a typedef with variably modified type.
13585
13586 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13587
13588 * c-decl.c (grokfield): Don't allow typedefs for structures or
13589 unions with no tag by default.
13590 * doc/extend.texi (Unnamed Fields): Update.
13591
13592 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13593
13594 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13595 Rewrite using indirect functions.
13596 (lwp_slwpcb): Ditto.
13597 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13598 (avx_vinsertf128<mode>): Ditto.
13599
13600 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13601
13602 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13603 unspecs.
13604
13605 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13606
13607 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13608 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13609
13610 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13611
13612 PR rtl-optimization/48170
13613 * gcse.c (hoist_code): Remove bogus asserts.
13614
13615 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13616
13617 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13618 computation for prologue/epilogue.
13619
13620 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13621
13622 * Makefile.in (check-consistency): Remove.
13623
13624 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13625
13626 PR debug/48176
13627 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13628 arange_table_in_use is 0, but either text_section_used or
13629 cold_text_section_used is true. Don't call it if
13630 !info_section_emitted.
13631
13632 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13633
13634 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13635 FUNCTION_VALUE_REGNO_P): Remove.
13636 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13637 Remove.
13638 * config/avr/avr.c (avr_ret_register): Make static inline.
13639 (avr_function_value_regno_p): New function.
13640 (avr_libcall_value): Make static. Add 'func' argument.
13641 (avr_function_value): Make static. Rename 'func' argument to
13642 'fn_decl_or_type', forward it to avr_libcall_value. Call
13643 avr_ret_register function instead of RET_REGISTER macro.
13644 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13645
13646 2011-03-18 Jason Merrill <jason@redhat.com>
13647
13648 PR c++/23372
13649 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13650
13651 2011-03-18 Richard Guenther <rguenther@suse.de>
13652
13653 * doc/install.texi (--enable-gold): Remove.
13654 (--with-plugin-ld): Document.
13655 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13656
13657 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13658
13659 PR middle-end/47790
13660 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13661 again after expansion changes.
13662
13663 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13664
13665 * combine.c (try_combine): Do simplification only call of
13666 subst() on i2 even when i1 is present. Update comments.
13667
13668 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13669
13670 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13671 and UNSPEC_PCREL_SYMOFF.
13672
13673 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13674
13675 * config/s390/s390.md: Use define_c_enum for the unspec constant
13676 definitions.
13677
13678 2011-03-18 Richard Henderson <rth@redhat.com>
13679 Jakub Jelinek <jakub@redhat.com>
13680
13681 PR bootstrap/48161
13682 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13683 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13684
13685 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13686
13687 PR middle-end/47725
13688 * combine.c (cant_combine_insn_p): Don't check zero/sign
13689 extended hard registers.
13690
13691 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13692
13693 PR middle-end/47725
13694 * combine.c (cant_combine_insn_p): Check zero/sign extended
13695 hard registers.
13696
13697 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13698
13699 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13700 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13701 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13702 Change return type to bool.
13703 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13704
13705 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13706
13707 PR debug/48163
13708 * var-tracking.c (prepare_call_arguments): If CALL target
13709 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13710 pc instead of looking it up using cselib_lookup and use
13711 Pmode for it if x has VOIDmode.
13712 * dwarf2out.c (gen_subprogram_die): If also both first and
13713 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13714
13715 PR debug/48163
13716 * function.c (assign_parms): For data.passed_pointer parms
13717 use MEM of data.entry_parm instead of data.entry_parm itself
13718 as DECL_INCOMING_RTL.
13719 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13720 also when passed and declared mode is the same, DECL_RTL
13721 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13722 a MEM too.
13723
13724 2011-03-16 Jeff Law <law@redhat.com>
13725
13726 PR rtl-optimization/37273
13727 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13728 handle them like argument loads from stack slots. Do not double
13729 count memory for memory constants and argument loads from stack slots.
13730
13731 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13732
13733 PR debug/48160
13734 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13735
13736 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13737
13738 PR target/48171
13739 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13740
13741 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13742
13743 PR bootstrap/48153
13744 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13745 if dwarf_strict.
13746 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13747 Clear call_arg_locations and call_arg_loc_last always.
13748
13749 PR middle-end/48152
13750 * var-tracking.c (prepare_call_arguments): If argument needs to be
13751 passed by reference, adjust argtype and mode.
13752
13753 2011-03-17 Richard Guenther <rguenther@suse.de>
13754
13755 PR middle-end/48134
13756 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13757 a value make sure to fold the statement.
13758
13759 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13760
13761 PR target/43872
13762 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13763 return condition with !cfun->calls_alloca.
13764
13765 2011-03-17 Richard Guenther <rguenther@suse.de>
13766
13767 PR bootstrap/48148
13768 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13769 origin for decls in other ltrans units.
13770 (input_varpool_node): Likewise.
13771
13772 2011-03-17 Richard Guenther <rguenther@suse.de>
13773
13774 PR middle-end/48165
13775 * tree-object-size.c (compute_object_offset): Properly return
13776 the offset operand of MEM_REFs as sizetype.
13777
13778 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13779
13780 PR rtl-optimization/48141
13781 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13782 * dse.c: Include params.h.
13783 (active_local_stores_len): New variable.
13784 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13785 to NULL.
13786 (record_store, check_mem_read_rtx): Decrease it when removing
13787 from the chain.
13788 (scan_insn): Likewise. Increase it when adding to chain, if it
13789 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13790 set active_local_stores to NULL before the addition.
13791 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13792
13793 PR rtl-optimization/48141
13794 * dse.c (record_store): If no positions are needed in an insn
13795 that cannot be deleted, at least unchain it from active_local_stores.
13796
13797 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13798
13799 PR debug/47510
13800 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13801 (lookup_type_die_strip_naming_typedef): ... here.
13802 (get_context_die): Use it.
13803 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13804 the anonymous struct named by the naming typedef.
13805
13806 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13807
13808 PR target/48154
13809 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13810 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13811
13812 2011-03-16 Jeff Law <law@redhat.com>
13813
13814 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13815 check for operands of conditional. Allow type to be a pointer.
13816
13817 2011-03-16 Richard Guenther <rguenther@suse.de>
13818
13819 PR tree-optimization/48149
13820 * fold-const.c (fold_binary_loc): Fold
13821 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13822
13823 2011-03-16 Richard Guenther <rguenther@suse.de>
13824
13825 PR tree-optimization/26134
13826 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13827 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13828 (non_rewritable_mem_ref_base): Handle complex type component
13829 accesses, constrain offsets for vector and complex extracts
13830 more properly.
13831
13832 2011-03-16 Richard Guenther <rguenther@suse.de>
13833
13834 PR tree-optimization/48146
13835 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13836 operands avoiding the need for renaming.
13837
13838 2011-03-16 Richard Guenther <rguenther@suse.de>
13839
13840 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13841 constant folding. Move MEM_REF canonicalization first.
13842 Rely on fold_const_aggregate_ref for initializer folding.
13843 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13844
13845 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13846
13847 PR middle-end/48136
13848 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13849 arg0/arg1 or their arguments are always fold converted to matching
13850 types.
13851
13852 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13853 to nargs.
13854
13855 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13856
13857 PR lto/46944
13858 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13859 Handle in-tree gold.
13860 (ld_vers): Extract binutils version for gold.
13861 (gcc_cv_ld_hidden): Handle gold here.
13862 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13863 * configure: Regenerate.
13864 * config.in: Regenerate.
13865 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13866 -fuse-linker-plugin otherwise.
13867 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13868 (LINK_COMMAND_SPEC): Use it.
13869 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13870
13871 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13872
13873 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13874 * calls.c: Remove debug.h include.
13875 (emit_call_1): Don't call virtual_call_token debug hook.
13876 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13877 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13878 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13879 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13880 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13881 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13882 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13883 dwarf2out_virtual_call): Remove.
13884 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13885 copy_call_info and virtual_call hooks.
13886 (dwarf2out_init): Don't initialize vcall_insn_table,
13887 debug_dcall_section and debug_vcall_section.
13888 (prune_unused_types): Don't mark nodes from dcall_table.
13889 (dwarf2out_finish): Don't output dcall or vcall tables.
13890 * final.c (final_scan_insn): Don't call direct_call or
13891 virtual_call debug hooks.
13892 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13893 virtual_call_token, copy_call_info and virtual_call hooks.
13894 (debug_nothing_uid): Remove prototype.
13895 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13896 copy_call_info and virtual_call hooks.
13897 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13898 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13899 * debug.c (do_nothing_debug_hooks): Likewise.
13900 (debug_nothing_uid): Remove.
13901 * doc/invoke.texi (-fenable-icf-debug): Remove.
13902 * common.opt (-fenable-icf-debug): Likewise.
13903
13904 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13905 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13906 call's MEM. Handle functions returning aggregate through a hidden
13907 first pointer. For virtual calls add clobbered pc to call arguments
13908 chain.
13909 * dwarf2out.c (gen_subprogram_die): Emit
13910 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13911 can't be emitted.
13912
13913 PR debug/45882
13914 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13915 * rtl.h (ENTRY_VALUE_EXP): Define.
13916 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13917 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13918 * print-rtl.c (print_rtx): Likewise.
13919 * gengtype.c (adjust_field_rtx_def): Likewise.
13920 * var-tracking.c (vt_add_function_parameter): Adjust
13921 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13922 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13923 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13924 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13925 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13926
13927 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13928 Call var_location debug hook even on CALL_INSNs.
13929 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13930 * rtl.def (ENTRY_VALUE): New.
13931 * dwarf2out.c: Include cfglayout.h.
13932 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13933 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13934 (struct call_arg_loc_node): New type.
13935 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13936 tail_call_site_count): New variables.
13937 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13938 DW_TAG_GNU_call_site_parameter.
13939 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13940 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13941 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13942 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13943 and DW_AT_GNU_all_source_call_sites.
13944 (mem_loc_descriptor): Handle ENTRY_VALUE.
13945 (add_src_coords_attributes): Don't add enything if
13946 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13947 (dwarf2out_abstract_function): Save and clear call_arg_location,
13948 call_site_count and tail_call_site_count around dwarf2out_decl call.
13949 (gen_call_site_die): New function.
13950 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13951 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13952 (dwarf2out_function_decl): Clear call_arg_locations,
13953 call_arg_loc_last, set call_site_count and tail_call_site_count
13954 to -1 and free block_map.
13955 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13956 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13957 followed by any real instructions.
13958 (dwarf2out_begin_function): Set call_site_count and
13959 tail_call_site_count to 0.
13960 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13961 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13962 attempt to force a DIE for it and worst case remove the attribute.
13963 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13964 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13965 the decl itself.
13966 * var-tracking.c: Include tm_p.h.
13967 (vt_stack_adjustments): For calls call note_register_arguments.
13968 (argument_reg_set): New variable.
13969 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13970 ensure the VALUE is resolved.
13971 (call_arguments): New variable.
13972 (prepare_call_arguments): New function.
13973 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13974 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13975 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13976 always use the best expression.
13977 (vt_expand_loc): Add ignore_cur_loc argument.
13978 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13979 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13980 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13981 note for all calls.
13982 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13983 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13984 argument. Don't call cselib_preserve_only_values and
13985 cselib_reset_table.
13986 (note_register_arguments): New function.
13987 (vt_initialize): Compute argument_reg_set. Call
13988 vt_add_function_parameters before processing basic blocks instead of
13989 afterwards. For calls call prepare_call_arguments before calling
13990 cselib_process_insn.
13991 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13992 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13993 (var-tracking.o): Depend on $(TM_P_H).
13994 * cfglayout.h (insn_scope): New prototype.
13995 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13996 * cfglayout.c (insn_scope): No longer static.
13997 * insn-notes.def (CALL_ARG_LOCATION): New.
13998 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13999 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14000 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14001 nothing for DECL_EXTERNAL BLOCK_VARS.
14002
14003 2011-03-16 Alan Modra <amodra@gmail.com>
14004
14005 PR target/45844
14006 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14007 create invalid offset address for vsx splat insn.
14008 * config/rs6000/predicates.md (splat_input_operand): New.
14009 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14010
14011 2011-03-15 Xinliang David Li <davidxl@google.com>
14012
14013 PR c/47837
14014 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14015 (normalize_preds): New function.
14016 (is_use_properly_guarded): Normalize def predicates.
14017
14018 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14019
14020 PR target/46788
14021 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14022 in the output template.
14023
14024 2011-03-15 Richard Guenther <rguenther@suse.de>
14025
14026 PR middle-end/47650
14027 * tree-pretty-print.c (dump_function_declaration): Properly
14028 dump unprototyped and varargs function types.
14029
14030 2011-03-15 Richard Guenther <rguenther@suse.de>
14031
14032 PR tree-optimization/13954
14033 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14034 and friends.
14035
14036 2011-03-15 Richard Guenther <rguenther@suse.de>
14037
14038 PR tree-optimization/48037
14039 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14040 selects into BIT_FIELD_REFs.
14041 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14042 vector select.
14043
14044 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14045
14046 PR tree-optimization/48129
14047 * builtins.c (fold_builtin_snprintf): Convert to type of
14048 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14049 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14050
14051 2011-03-15 Richard Guenther <rguenther@suse.de>
14052
14053 PR tree-optimization/41490
14054 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14055 value but with VUSE.
14056 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14057 return statements.
14058 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14059 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14060 * tree-tailcall.c (find_tail_calls): Ignore returns.
14061
14062 2011-03-15 Richard Guenther <rguenther@suse.de>
14063
14064 PR middle-end/48031
14065 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14066 or variable-indexed array accesses when in gimple form.
14067
14068 2011-03-15 Richard Guenther <rguenther@suse.de>
14069
14070 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14071
14072 2011-03-15 Alan Modra <amodra@gmail.com>
14073
14074 PR target/48032
14075 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14076 presume symbol_refs without a symbol_ref_decl are suitably
14077 aligned, nor other trees we may see here. Handle anchor symbols.
14078 (legitimate_constant_pool_address_p): Comment. Add mode param.
14079 Check cmodel=medium addresses. Adjust all calls.
14080 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14081 creating cmodel=medium optimized access to locals.
14082 * config/rs6000/constraints.md (R): Pass QImode to
14083 legitimate_constant_pool_address_p.
14084 * config/rs6000/predicates.md (input_operand): Pass mode to
14085 legitimate_constant_pool_address_p.
14086 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14087 Update prototype.
14088
14089 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14090
14091 PR target/48053
14092 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14093 64-bit constants being loaded into registers other than GPRs such
14094 as loading 0 into a VSX register.
14095
14096 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14097
14098 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14099
14100 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14101
14102 PR middle-end/47917
14103 * builtins.c (fold_builtin_snprintf): New function.
14104 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14105 (fold_builtin_4): Likewise.
14106
14107 PR middle-end/38878
14108 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14109 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14110 and C - X == X also strip nops from +/-/p+ operand.
14111 When optimizing -X == C, fold C to arg0's type.
14112
14113 PR debug/47946
14114 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14115 emit it as add_AT_int instead of add_AT_unsigned.
14116
14117 2011-03-14 Tom Tromey <tromey@redhat.com>
14118
14119 * unwind-dw2.c: Include sys/sdt.h if it exists.
14120 (_Unwind_DebugHook): Use STAP_PROBE2.
14121 * config.in, configure: Rebuild.
14122 * configure.ac: Check for sys/sdt.h.
14123
14124 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14125
14126 * config/i386/i386.md (ROUND_FLOOR): New constant.
14127 (ROUND_CEIL): Ditto.
14128 (ROUND_TRUNC): Ditto.
14129 (ROUND_MXCSR): Ditto.
14130 (ROUND_NO_EXC): Ditto.
14131 (rint<mode>2): Use new defines instead of numerical constants.
14132 (floor<mode>2): Ditto.
14133 (ceil<mode>2): Ditto.
14134 (btrunc<mode>2): Ditto.
14135 * config/i386/i386-builtin-types.def: Define ROUND function type
14136 aliases.
14137 * config/i386/i386.c (enum ix86_builtins): Add
14138 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14139 (struct builtin_description): Add
14140 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14141 (ix86_expand_sse_round): New static function.
14142 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14143 function types.
14144 (ix86_builtin_vectorized_function): Handle
14145 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14146
14147 2011-03-14 Tom Tromey <tromey@redhat.com>
14148
14149 * c-parser.c (c_parser_asm_string_literal): Clear
14150 warn_overlength_strings.
14151
14152 2011-03-14 Tom Tromey <tromey@redhat.com>
14153
14154 * c-parser.c (disable_extension_diagnostics): Save
14155 warn_overlength_strings.
14156 (restore_extension_diagnostics): Restore warn_overlength_strings.
14157
14158 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14159
14160 * BASE-VER: Change to 4.7.0.
14161
14162 2011-03-14 Richard Guenther <rguenther@suse.de>
14163
14164 PR middle-end/48098
14165 * tree.c (build_vector_from_val): Adjust assert to requirements
14166 and reality.
14167
14168 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14169
14170 PR bootstrap/48102
14171 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14172
14173 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14174
14175 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14176 terms of target_flags_explicit. Adjust copyright year.
14177
14178 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14179 * config/rs6000/t-freebsd: New file. Add override for
14180 LIB2FUNCS_EXTRA.
14181
14182 2011-03-13 Chris Demetriou <cgd@google.com>
14183
14184 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14185 (-fno-diagnostics-show-option): this, to reflect current default.
14186 (-Werror=): Update text about -fno-diagnostics-show-option.
14187
14188 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14189
14190 PR target/48053
14191 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14192 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14193 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14194 mode is not V2DImode or V2DFmode.
14195 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14196 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14197 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14198 registers to 0.
14199 (movdi_internal64): Likewise.
14200
14201 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14202
14203 PR tree-optimization/47127
14204 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14205 parameter.
14206 (set_cloog_options): Same.
14207 (scop_to_clast): Same.
14208 (print_clast_stmt): Do not call cloog_state_malloc and
14209 cloog_state_free.
14210 (print_generated_program): Same.
14211 (gloog): Same.
14212 * graphite-clast-to-gimple.h (cloog_state): Declared.
14213 (scop_to_clast): Adjust declaration.
14214 * graphite.c (cloog_state): Defined here.
14215 (graphite_initialize): Call cloog_state_malloc.
14216 (graphite_finalize): Call cloog_state_free.
14217
14218 2011-03-11 Jason Merrill <jason@redhat.com>
14219
14220 * attribs.c (lookup_attribute_spec): Take const_tree.
14221 * tree.h: Adjust.
14222
14223 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14224
14225 * config/sparc/sparc.c (sparc_option_override): Use
14226 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14227
14228 2011-03-11 Richard Guenther <rguenther@suse.de>
14229
14230 PR tree-optimization/48067
14231 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14232 multiplication result will be only used once on the target
14233 stmt.
14234
14235 2011-03-11 Richard Guenther <rguenther@suse.de>
14236
14237 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14238
14239 2011-03-11 Richard Guenther <rguenther@suse.de>
14240
14241 PR lto/48073
14242 * tree.c (find_decls_types_r): Do not walk types only reachable
14243 from IDENTIFIER_NODEs.
14244
14245 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14246
14247 PR middle-end/48044
14248 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14249 all vnode->force_output nodes as needed.
14250
14251 2011-03-11 Jason Merrill <jason@redhat.com>
14252
14253 PR c++/48069
14254 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14255 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14256
14257 2011-03-11 Martin Jambor <mjambor@suse.cz>
14258
14259 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14260 cgraph_node.
14261
14262 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14263
14264 PR tree-optimization/48063
14265 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14266 inline functions called once if !tree_can_inline_p (node->callers).
14267
14268 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14269
14270 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14271 extra_objs.
14272 * config/score/score3.c: Delete.
14273 * config/score/score3.h: Delete.
14274 * config/score/mul-div.S: Delete.
14275 * config/score/sfp-machine.h: Add new file.
14276 * config/score/constraints.md: Add new file.
14277 * config/score/t-score-softfp: Add new file.
14278 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14279 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14280 (score7_extra_constraint): Delete.
14281 (score7_option_override): Remove unused code.
14282 * config/score/score.c: Remove score3 and score5 define and code.
14283 * config/score/score.h: Remove score3 and score5 define and code.
14284 * config/score/score.md: Remove score3 template and unusual insn.
14285 * config/score/score.opt: Remove score3 and score5 options.
14286
14287 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14288
14289 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14290 when _HPUX_SOURCE is defined.
14291 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14292
14293 2011-03-10 Jason Merrill <jason@redhat.com>
14294
14295 PR c++/48029
14296 * stor-layout.c (layout_type): Don't set structural equality
14297 on arrays of incomplete type.
14298 * tree.c (type_hash_eq): Handle comparing them properly.
14299
14300 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14301
14302 PR debug/48043
14303 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14304 result mode matches original rtl mode.
14305
14306 2011-03-10 Nick Clifton <nickc@redhat.com>
14307
14308 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14309 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14310
14311 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14312
14313 PR rtl-optimization/47866
14314 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14315 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14316 if target wasn't scalar.
14317 * function.c (assign_stack_temp_for_type): Assert that neither
14318 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14319 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14320 macro.
14321 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14322
14323 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14324
14325 * config/s390/s390-protos.h (s390_label_align): New prototype.
14326 * config/s390/s390.c (s390_label_align): New function.
14327 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14328
14329 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14330
14331 PR target/47755
14332 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14333 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14334 (output_vec_const_move): Ditto.
14335
14336 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14337
14338 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14339 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14340 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14341 Change 'rclass' argument and result type to reg_class_t.
14342 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14343
14344 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14345
14346 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14347 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14348 (TARGET_MEMORY_MOVE_COST): Define.
14349 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14350
14351 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14352
14353 PR debug/47881
14354 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14355 removed anything.
14356
14357 PR tree-optimization/48022
14358 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14359 for EQ/NE_EXPR.
14360
14361 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14362
14363 PR debug/47991
14364 * var-tracking.c (find_use_val): Return NULL for
14365 cui->sets && cui->store_p BLKmode MEMs.
14366
14367 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14368
14369 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14370 Remove.
14371 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14372 xstormy16_print_operand_address): Remove.
14373 * config/stormy16/stormy16.c (xstormy16_print_operand,
14374 xstormy16_print_operand_address): Make static.
14375 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14376
14377 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14378
14379 PR target/47862
14380 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14381 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14382 before definition.
14383
14384 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14385
14386 PR bootstrap/48000
14387 * cfgloopmanip.c (fix_bb_placements): Return immediately
14388 if FROM is BASE_LOOP's header.
14389
14390 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14391
14392 * gimplify.c (gimplify_function_tree): Fix building calls
14393 to __builtin_return_address.
14394
14395 2011-03-07 Alan Modra <amodra@gmail.com>
14396
14397 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14398 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14399 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14400 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14401 return_mode args.
14402 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14403 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14404 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14405 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14406 * config/rs6000/rs6000.c
14407 (rs6000_elf_end_indicate_exec_stack): Rename to..
14408 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14409 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14410 (rs6000_file_start): ..here.
14411 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14412 file scope variables.
14413 (call_ABI_of_interest): New function.
14414 (init_cumulative_args): Set above vars when function return value
14415 is a float, vector, or small struct.
14416 (rs6000_function_arg_advance_1): Likewise for function args.
14417 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14418 references float args.
14419
14420 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14421
14422 * doc/cfg.texi: Remove "See" before @ref.
14423 * doc/invoke.texi: Likewise.
14424
14425 2011-03-05 Jason Merrill <jason@redhat.com>
14426
14427 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14428
14429 2011-03-05 Anthony Green <green@moxielogic.com>
14430
14431 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14432
14433 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14434
14435 PR rtl-optimization/47899
14436 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14437 to flow_loop_nested_p when moving the loop upward.
14438
14439 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14440
14441 PR target/47719
14442 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14443
14444 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14445
14446 PR tree-optimization/47967
14447 * ipa-cp.c (build_const_val): Return NULL instead of creating
14448 VIEW_CONVERT_EXPR for mismatching sizes.
14449 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14450 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14451 give up on versioning.
14452
14453 2011-03-05 Alan Modra <amodra@gmail.com>
14454
14455 PR target/47986
14456 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14457 full cmodel medium/large lo_sum + high addresses.
14458
14459 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14460
14461 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14462 pool references in UNSPEC_LTREL_OFFSET.
14463
14464 2011-03-04 Jan Hubicka <jh@suse.cz>
14465
14466 PR lto/47497
14467 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14468 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14469 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14470 Add node pointers.
14471 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14472 cgraph_add_thunk): Add node pointers.
14473 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14474 associated to right node.
14475 (input_node): Update use of cgraph_same_body_alias
14476 and cgraph_add_thunk.
14477
14478 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14479
14480 * config/i386/i386.opt (mprefer-avx128): New flag.
14481 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14482 modes when the flag -mprefer-avx128 is on.
14483
14484 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14485
14486 * dwarf2out.c (compare_loc_operands): Fix address handling.
14487
14488 2011-03-04 Alan Modra <amodra@gmail.com>
14489
14490 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14491
14492 2011-03-04 Richard Guenther <rguenther@suse.de>
14493
14494 PR middle-end/47968
14495 * expmed.c (extract_bit_field_1): Prefer vector modes that
14496 vec_extract patterns can handle.
14497
14498 2011-03-04 Richard Guenther <rguenther@suse.de>
14499
14500 PR middle-end/47975
14501 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14502
14503 2011-03-04 Richard Henderson <rth@redhat.com>
14504
14505 * explow.c (emit_stack_save): Remove 'after' parameter.
14506 (emit_stack_restore): Likewise.
14507 * expr.h: Update to match.
14508 * builtins.c, calls.c, stmt.c: Likewise.
14509 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14510 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14511 * function.c (expand_function_end): Insert the emit_stack_save
14512 sequence before parm_birth_insn instead of after.
14513
14514 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14515
14516 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14517 (ssse3_pmaddubsw128): Ditto.
14518 (ssse3_pmaddubsw): Ditto.
14519
14520 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14521
14522 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14523
14524 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14525
14526 PR c/47963
14527 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14528 on TYPE_SIZE_UNIT if it is a DECL.
14529
14530 PR debug/47283
14531 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14532 first operand is not is_gimple_mem_ref_addr, try to fold it.
14533 If the operand still isn't is_gimple_mem_ref_addr, clear
14534 MEM_EXPR on op0.
14535
14536 2011-03-03 Richard Guenther <rguenther@suse.de>
14537
14538 PR middle-end/47283
14539 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14540 match comment.
14541 (refs_may_alias_p_1): For release branches return true if
14542 we are confused by our input.
14543
14544 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14545
14546 * config/s390/s390.c (s390_function_value): Rename to ...
14547 (s390_function_and_libcall_value): ... this.
14548 (s390_function_value): New function.
14549 (s390_libcall_value): New function.
14550 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14551 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14552 target macro definitions.
14553 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14554
14555 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14556
14557 * config/i386/freebsd64.h (CC1_SPEC): Define.
14558 * config/i386/linux64.h (CC1_SPEC): Define.
14559 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14560
14561 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14562
14563 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14564 Remove.
14565 * config/stormy16/stormy16.c: Include reload.h.
14566 (xstormy16_memory_move_cost): New function.
14567 (TARGET_MEMORY_MOVE_COST): Define.
14568
14569 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14570
14571 PR rtl-optimization/47925
14572 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14573 with side effects. Remove the more-specific check for volatile asms.
14574
14575 2011-03-02 Alan Modra <amodra@gmail.com>
14576
14577 PR target/47935
14578 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14579 toc relative addresses for valid offsets.
14580
14581 2011-03-01 Richard Guenther <rguenther@suse.de>
14582
14583 PR tree-optimization/47890
14584 * tree-vect-loop.c (get_initial_def_for_induction): Set
14585 related stmt properly.
14586
14587 2011-03-01 Richard Guenther <rguenther@suse.de>
14588
14589 PR lto/47924
14590 * lto-streamer.c (lto_record_common_node): Also register
14591 the canonical type.
14592
14593 2011-03-01 Richard Guenther <rguenther@suse.de>
14594
14595 PR lto/46911
14596 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14597 Do not stream DECL_ABSTRACT_ORIGIN.
14598 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14599 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14600 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14601 Do not stream DECL_ABSTRACT_ORIGIN.
14602 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14603 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14604
14605 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14606
14607 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14608 FUNCTION_VALUE_REGNO_P): Remove.
14609 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14610 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14611 Add 'outgoing' argument.
14612 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14613 function.
14614 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14615 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14616
14617 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14618
14619 PR debug/28047
14620 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14621 (lookup_filename): Likewise.
14622 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14623
14624 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14625 Jakub Jelinek <jakub@redhat.com>
14626
14627 PR middle-end/47893
14628 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14629 (assign_stack_local_1): Change last argument type to int.
14630 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14631 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14632 don't record padding space into frame_space_list nor use those areas.
14633 (assign_stack_local): Adjust caller.
14634 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14635 of assign_stack_local, pass 0 as last argument.
14636 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14637 callers.
14638
14639 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14640
14641 PR debug/47283
14642 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14643 Use target address_mode and pointer_mode hooks instead of hardcoded
14644 Pmode and ptr_mode. Handle some simple cases of extending if
14645 POINTERS_EXTEND_UNSIGNED < 0.
14646 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14647 Call convert_debug_memory_address.
14648 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14649 convert_debug_memory_address.
14650
14651 PR middle-end/46790
14652 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14653 * configure: Regenerated.
14654 * config.in: Regenerated.
14655 * varasm.c (default_function_section): Return NULL
14656 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14657
14658 2011-02-28 Martin Jambor <mjambor@suse.cz>
14659
14660 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14661 the description to match the printed values.
14662
14663 2011-02-28 Richard Guenther <rguenther@suse.de>
14664
14665 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14666 of the copied scope tree.
14667
14668 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14669
14670 * doc/extend.texi (Function Attributes): Avoid deeply (and
14671 wrongly) nested tables.
14672
14673 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14674
14675 PR middle-end/47903
14676 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14677 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14678 r isn't op0 nor op1.
14679
14680 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14681
14682 * config/avr/avr.md: Remove magic comment for emacs.
14683
14684 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14685
14686 PR target/45261
14687 * config/avr/avr.c (avr_option_override): Use error on bad options.
14688 (avr_help): New function.
14689 (TARGET_HELP): Define.
14690
14691 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14692
14693 PR target/42240
14694 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14695 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14696
14697 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14698
14699 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14700 (ARM Options): Ditto.
14701 (i386 and x86-64 Options): Ditto.
14702 (RX Options): Ditto.
14703 (SPARC Options): Ditto.
14704
14705 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14706
14707 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14708 FreeBSD 6 and later. Generally use cpu generic.
14709
14710 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14711
14712 * doc/cpp.texi: Update copyright years.
14713
14714 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14715
14716 PR target/46898
14717 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14718
14719 2011-02-25 Jon Beniston <jon@beniston.com>
14720
14721 PR target/46898
14722 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14723 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14724 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14725 (lm32_block_move_inline): Add type cast to remove warning.
14726 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14727 (gen_int_relational): Move declarations to start of function.
14728
14729 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14730
14731 PR tree-optimization/45470
14732 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14733 can throw internally only.
14734 * tree-vect-stmts.c (vectorizable_call): Likewise.
14735
14736 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14737
14738 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14739 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14740 * config/stormy16/stormy16-protos.h
14741 (xstormy16_preferred_reload_class): Remove.
14742 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14743 static. Change 'rclass' argument and return type to reg_class_t.
14744 (TARGET_PREFERRED_RELOAD_CLASS,
14745 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14746
14747 2011-02-24 Richard Guenther <rguenther@suse.de>
14748
14749 * lto-streamer-in.c (input_bb): Do not find referenced vars
14750 in debug statements.
14751
14752 2011-02-23 Jason Merrill <jason@redhat.com>
14753
14754 * common.opt (fabi-version): Document v5 and v6.
14755
14756 2011-02-23 Richard Guenther <rguenther@suse.de>
14757
14758 PR tree-optimization/47849
14759 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14760
14761 2011-02-23 Jie Zhang <jie@codesourcery.com>
14762
14763 * opts-common.c (decode_cmdline_option): Print empty string
14764 argument as "" in decoded->orig_option_with_args_text.
14765 * gcc.c (execute): Print empty string argument as ""
14766 in the verbose output.
14767 (do_spec_1): Keep empty string argument.
14768
14769 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14770
14771 * config.gcc: Declare score-* and crx-* obsolete.
14772
14773 2011-02-23 Jie Zhang <jie@codesourcery.com>
14774
14775 PR rtl-optimization/47763
14776 * web.c (web_main): Ignore naked clobber when replacing register.
14777
14778 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14779
14780 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14781 Remove.
14782
14783 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14784
14785 PR doc/47848
14786 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14787
14788 2011-02-22 Mike Stump <mikestump@comcast.net>
14789
14790 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14791 assembler.
14792 * configure: Regenerate.
14793
14794 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14795
14796 PR rtl-optimization/46002
14797 * ira-color.c (update_copy_costs): Change class intersection
14798 test to reg_class_contents[] test of 'hard_regno'.
14799
14800 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14801
14802 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14803 than Driver option.
14804 * config/hpux11.opt (mt): Likewise.
14805 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14806 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14807 * config/vax/elf.opt (mno-asm-pic): Likewise.
14808 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14809
14810 2011-02-21 Mike Stump <mikestump@comcast.net>
14811
14812 PR target/47822
14813 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14814 tree so we can get save the type.
14815 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14816 for CFString instead of trying to use past the end of the builtins.
14817 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14818 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14819 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14820 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14821 Rename to darwin_builtin_cfstring.
14822 (darwin_init_cfstring_builtins): Return the built type.
14823
14824 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14825
14826 PR target/47840
14827 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14828 (_mm256_insert_epi64): Use _mm_insert_epi64.
14829
14830 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14831
14832 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14833 * config/stormy16/stormy16-protos.h
14834 (xstormy16_mode_dependent_address_p): Remove.
14835 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14836 Make static. Change return type to bool. Change argument type to
14837 const_rtx. Remove dead code.
14838 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14839
14840 2011-02-21 Richard Guenther <rguenther@suse.de>
14841
14842 PR lto/47820
14843 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14844 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14845 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14846 TUs context.
14847 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14848 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14849
14850 2011-02-20 Richard Guenther <rguenther@suse.de>
14851
14852 PR lto/47822
14853 * tree.c (free_lang_data_in_decl): Clean builtins from
14854 the TU decl BLOCK_VARS.
14855
14856 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14857
14858 PR debug/47620
14859 PR debug/47630
14860 * haifa-sched.c (fix_tick_ready): Skip tick computation
14861 for debug insns.
14862
14863 2011-02-19 Richard Guenther <rguenther@suse.de>
14864
14865 PR lto/47647
14866 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14867 Remove lazy BLOCK_VARS streaming.
14868 (lto_input_ts_block_tree_pointers): Likewise.
14869 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14870
14871 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14872
14873 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14874
14875 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14876
14877 * config/i386/biarch32.h, config/i386/mach.h,
14878 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14879
14880 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14881
14882 PR target/47800
14883 * config/i386/i386.md (peephole2 for shift and plus): Use
14884 operands[1] original mode in the first insn.
14885
14886 2011-02-18 Mike Stump <mikestump@comcast.net>
14887
14888 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14889
14890 2011-02-18 Jan Hubicka <jh@suse.cz>
14891
14892 PR middle-end/47788
14893 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14894 to zero when the function is not inlinable at all.
14895
14896 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14897
14898 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14899 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14900 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14901 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14902 * config/pa/t-pa64: Likewise.
14903 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14904
14905 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14906
14907 PR driver/47787
14908 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14909
14910 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14911
14912 PR target/47792
14913 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14914
14915 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14916
14917 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14918 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14919 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14920 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14921 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14922 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14923 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14924 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14925 m32r_legitimate_address_p): New functions.
14926 * config/m32r/constraints.md (constraint "S"): Don't use
14927 STORE_PREINC_PREDEC_P.
14928 (constraint "U"): Don't use LOAD_POSTINC_P.
14929
14930 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14931
14932 PR rtl-optimization/46178
14933 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14934 compute ira_hard_regno_cover_class[].
14935
14936 2011-02-18 Richard Guenther <rguenther@suse.de>
14937
14938 PR lto/47798
14939 * lto-streamer.h (lto_global_var_decls): Declare.
14940 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14941 statics for global var processing.
14942
14943 2011-02-18 Richard Guenther <rguenther@suse.de>
14944
14945 PR tree-optimization/47737
14946 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14947 edge dominance check.
14948
14949 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14950
14951 PR debug/47780
14952 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14953 avoid invalid rtx sharing.
14954
14955 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14956
14957 * doc/cpp.texi (Obsolete Features): Add background on the
14958 origin of assertions.
14959
14960 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14961
14962 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14963 objc_abi == 2.
14964 * config/darwin.c (output_objc_section_asm_op): Added support for
14965 ABI v1 and v2.
14966 (is_objc_metadata): New.
14967 (darwin_objc2_section): New.
14968 (darwin_objc1_section): New.
14969 (machopic_select_section): Added support for ABI v1 and v2.
14970 (darwin_emit_objc_zeroed): New.
14971 (darwin_output_aligned_bss): Detect objc metadata and treat it
14972 appropriately.
14973 (darwin_asm_output_aligned_decl_common): Same.
14974 (darwin_asm_output_aligned_decl_local): Same.
14975 * config/darwin-sections.def: Updated for ABI v1 and v2.
14976 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14977 compiling Objective-C code for the NeXT runtime, default to using
14978 ABI version 0 for 32-bit, and version 2 for 64-bit.
14979
14980 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14981
14982 * common.opt (optimize_fast): New Variable.
14983 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14984 instead of local variable ofast.
14985
14986 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14987
14988 * doc/invoke.texi (fobjc-abi-version): Documented.
14989 (fobjc-nilcheck): Documented.
14990 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14991 version.
14992
14993 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14994
14995 PR driver/47390
14996 * common.opt (export-dynamic): New Driver option.
14997 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14998
14999 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15000
15001 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15002
15003 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15004 Jan Hubicka <jh@suse.cz>
15005
15006 PR debug/47106
15007 PR debug/47402
15008 * cfgexpand.c (account_used_vars_for_block): Remove.
15009 (estimated_stack_frame_size): Use referenced vars.
15010 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15011 that were referenced in the original function. Test src_fn
15012 rather than cfun. Drop redundant get_var_ann.
15013 (setup_one_parameter): Drop redundant get_var_ann.
15014 (declare_return_variable): Likewise.
15015 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15016 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15017 * ipa-inline.c (compute_inline_parameters): Do not compute
15018 disregard_inline_limits here.
15019 (compute_inlinable_for_current, pass_inlinable): New.
15020 (pass_inline_parameters): Require PROP_referenced_vars.
15021 * cgraphunit.c (cgraph_process_new_functions): Don't run
15022 compute_inline_parameters explicitly unless function is in SSA form.
15023 (cgraph_analyze_function): Set .disregard_inline_limits.
15024 * tree-sra.c (convert_callers): Compute inliner parameters
15025 only for functions already in SSA form.
15026
15027 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15028
15029 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15030 -mlittle-endian-data.
15031
15032 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15033
15034 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15035 -mno-fpu, not -fpu and -no-fpu.
15036 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15037 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15038
15039 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15040
15041 PR target/43653
15042 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15043 input reload with PLUS RTX.
15044
15045 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15046
15047 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15048 of InverseVar(MDMX).
15049
15050 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15051
15052 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15053 --m4-340.
15054
15055 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15056
15057 * config/mn10300/mn10300.opt (mno-crt0): New.
15058
15059 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15060
15061 * config/m68k/uclinux.opt (static-libc): New Driver option.
15062
15063 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15064
15065 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15066
15067 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15068
15069 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15070 %{muser-extend-enabled}.
15071
15072 2011-02-16 Richard Guenther <rguenther@suse.de>
15073
15074 PR tree-optimization/47738
15075 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15076 the TODO from tree_predictive_commoning.
15077
15078 2011-02-15 Jeff Law <law@redhat.com>
15079
15080 Revert
15081 2011-01-25 Jeff Law <law@redhat.com>
15082
15083 PR rtl-optimization/37273
15084 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15085 handle them like argument loads from stack slots. Do not double
15086 count memory for memory constants and argument loads from stack slots.
15087
15088 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15089
15090 PR middle-end/47725
15091 * combine.c (cant_combine_insn_p): Revert the last change.
15092
15093 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15094
15095 PR target/47755
15096 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15097 mode for vector constants. Remove code that checks for TImode.
15098
15099 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15100
15101 PR debug/47106
15102 PR debug/47402
15103 * cgraph.h (compute_inline_parameters): Return void.
15104 * ipa-inline.c (compute_inline_parameters): Adjust.
15105
15106 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15107
15108 PR debug/47106
15109 PR debug/47402
15110 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15111 rather than decl.
15112 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15113 * ipa-inline.c (compute_inline_parameters): Adjust.
15114
15115 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15116
15117 PR debug/47106
15118 PR debug/47402
15119 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15120 Adjust all users. Pass FN to...
15121 * tree-flow-inline.h (first_referenced_var): ... this. Add
15122 fn argument.
15123 * ipa-struct-reorg.c: Adjust.
15124 * tree-dfa.c: Adjust.
15125 * tree-into-ssa.c: Adjust.
15126 * tree-sra.c: Adjust.
15127 * tree-ssa-alias.c: Adjust.
15128 * tree-ssa-live.c: Adjust.
15129 * tree-ssa.c: Adjust.
15130 * tree-ssanames.c: Adjust.
15131 * tree-tailcall.c: Adjust.
15132
15133 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15134
15135 PR debug/47106
15136 PR debug/47402
15137 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15138 Adjust all callers.
15139 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15140 * tree-flow-inline.h: Adjust.
15141 * gimple-pretty-print.c: Adjust.
15142 * tree-into-ssa.c: Adjust.
15143 * tree-ssa.c: Adjust.
15144 * cfgexpand.c: Adjust.
15145
15146 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15147
15148 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15149 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15150 (EXTRA_CONSTRAINT): Delete.
15151 * config/iq2000/constraints.md: New file.
15152 * config/iq2000/iq2000.md: Include it.
15153 (define_insn ""): Delete.
15154 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15155 unsupported constraint letters from patterns.
15156 (call_value, call_value_internal1): Likewise.
15157 (call_value_multiple_internal1): Likewise.
15158
15159 2011-02-15 Nick Clifton <nickc@redhat.com>
15160
15161 * config/mn10300/mn10300.c: Include tm-constrs.h.
15162 (struct liw_data): New data structure describing an LIW candidate
15163 instruction.
15164 (extract_bundle): Use struct liw_data. Allow small integer
15165 operands for some instructions.
15166 (check_liw_constraints): Use struct liw_data. Remove swapped
15167 parameter. Add comments describing the checks. Fix bug when
15168 assigning the source of liw1 to the source of liw2.
15169 (liw_candidate): Delete. Code moved into extract_bundle.
15170 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15171 before swapping.
15172 * config/mn10300/predicates.md (liw_operand): New predicate.
15173 Allows registers and small integer constants.
15174 * config/mn10300/constraints.md (O): New constraint. Accetps
15175 integers in the range -8 to +7 inclusive.
15176 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15177 for moving a small integer into a register. Give this alternative
15178 LIW attributes.
15179 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15180 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15181 using the J,K,L and M constraints,
15182 (liw): Remove SI mode on second operands to allow for HI and QI
15183 mode values.
15184 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15185 instruction.
15186
15187 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15188
15189 PR middle-end/47725
15190 * combine.c (cant_combine_insn_p): Check zero/sign extended
15191 hard registers.
15192
15193 2011-02-15 Richard Guenther <rguenther@suse.de>
15194
15195 PR tree-optimization/47743
15196 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15197 for a non-type-compatible VN lookup bail out.
15198
15199 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15200
15201 * config/fr30/constraints.md: New file.
15202 * config/fr30/fr30.md: Include it.
15203 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15204 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15205 (EXTRA_CONSTRAINT): Delete.
15206
15207 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15208
15209 * config/frv/constraints.md: New file.
15210 * config/frv/predicates.md: Include it.
15211 * config/frv/frv.c (reg_class_from_letter): Delete.
15212 (frv_option_override): Don't initialize it.
15213 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15214 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15215 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15216 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15217 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15218 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15219 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15220 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15221 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15222 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15223 (REG_CLASS_FROM_CONSTRAINT): Delete.
15224
15225 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15226
15227 PR middle-end/47581
15228 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15229 if frame size is 0 in a leaf function.
15230
15231 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15232
15233 PR pch/14940
15234 * config/alpha/host-osf.c: New file.
15235 * config/alpha/x-osf: New file.
15236 * config.host (alpha*-dec-osf*): Use it.
15237
15238 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15239
15240 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15241 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15242 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15243 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15244 type to const_rtx.
15245 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15246
15247 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15248
15249 * config/stormy16/constraints.md: New file.
15250 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15251 Use satisfies_constraint_Q and satisfies_constraint_R.
15252 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15253 Delete.
15254 (xstormy16_legitiamte_address_p): Declare.
15255 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15256 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15257 (EXTRA_CONSTRAINT): Delete.
15258 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15259 Un-staticize.
15260 (xstormy16_extra_constraint_p): Delete.
15261
15262 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15263
15264 PR tree-optimization/46494
15265 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15266 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15267 (pass_rtl_loop_done): Add TODO_verify_flow.
15268 * fwprop.c (pass_rtl_fwprop): Likewise.
15269 * modulo-sched.c (pass_sms): Likewise.
15270 * tree-ssa-dom.c (pass_dominator): Likewise.
15271 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15272 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15273 (pass_tree_loop_done): Likewise.
15274 * tree-ssa-pre.c (execute_pre): Likewise.
15275 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15276 * tree-ssa-sink.c (pass_sink_code): Likewise.
15277 * tree-vrp.c (pass_vrp): Likewise.
15278
15279 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15280
15281 * config/v850/constraints.md: New file.
15282 * config/v850/v850.md: Include it.
15283 * config/v850/predicates.md (reg_or_0_operand): Use
15284 satisfies_constraint_G.
15285 (special_symbolref_operand): Use satisfies_constraint_K.
15286 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15287 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15288 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15289 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15290 (EXTRA_CONSTRAINT): Delete.
15291 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15292 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15293 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15294
15295 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15296
15297 PR target/47696
15298 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15299 description.
15300
15301 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15302
15303 * config/mcore/constraints.md: New file.
15304 * config/mcore/mcore.md: Include it.
15305 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15306 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15307 (REG_CLASS_FROM_LETTER): Delete.
15308 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15309 insn_const_int_ok_for_constraint.
15310 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15311 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15312 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15313 (EXTRA_CONSTRAINT): Delete.
15314
15315 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15316
15317 PR ada/41929
15318 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15319 (IS_SIGHANDLER): Define.
15320 (sparc64_is_sighandler): New function, split off from
15321 sparc64_fallback_frame_state.
15322 (sparc_is_sighandler): New function, split off from
15323 sparc_fallback_frame_state.
15324 (sparc64_fallback_frame_state): Merge with ...
15325 (sparc_fallback_frame_state): ... this into ...
15326 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15327 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15328 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15329 stack instead of hardcoded offsets.
15330
15331 2011-02-14 Andriy Gapon <avg@freebsd.org>
15332
15333 PR target/45808
15334 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15335
15336 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15337
15338 * configure: Regenerate.
15339
15340 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15341
15342 PR driver/45731
15343 * gcc.c (asm_options): Correct spec matching --target-help.
15344
15345 2011-02-12 Martin Jambor <mjambor@suse.cz>
15346
15347 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15348 to gimple call error.
15349
15350 2011-02-12 Mike Stump <mikestump@comcast.net>
15351
15352 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15353 comments in backslash regions.
15354
15355 2011-02-12 Mike Stump <mikestump@comcast.net>
15356 Jakub Jelinek <jakub@redhat.com>
15357 Iain Sandoe <iains@gcc.gnu.org>
15358
15359 PR target/47324
15360 * dwarf2out.c (output_cfa_loc): When required, apply the
15361 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15362 (output_loc_sequence): Likewise.
15363 (output_loc_operands_raw): Likewise.
15364 (output_loc_sequence_raw): Likewise.
15365 (output_cfa_loc): Likewise.
15366 (output_loc_list): Suppress register number adjustment when
15367 calling output_loc_sequence()
15368 (output_die): Likewise.
15369
15370 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15371
15372 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15373 Remove macros.
15374 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15375 xtensa_memory_move_cost): New functions.
15376 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15377
15378 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15379
15380 PR lto/47225
15381 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15382 in the current directory.
15383 * configure: Rebuilt.
15384
15385 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15386
15387 * config/darwin.c (darwin_override_options): Add a hunk missed
15388 from the commit of r168571. Trim comment line lengths and
15389 correct indents of the preceding block.
15390
15391 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15392
15393 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15394 the switch.
15395
15396 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15397
15398 * common.opt (nostartfiles): New Driver option.
15399
15400 2011-02-11 Xinliang David Li <davidxl@google.com>
15401
15402 PR tree-optimization/47707
15403 * tree-chrec.c (convert_affine_scev): Keep type precision.
15404
15405 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15406
15407 PR tree-optimization/47420
15408 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15409
15410 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15411
15412 PR rtl-optimization/47614
15413 * rtl.h (check_for_inc_dec): Declare.
15414 * dse.c (check_for_inc_dec): Externalize...
15415 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15416 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15417
15418 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15419
15420 PR driver/47678
15421 * gcc.c (main): Do not compile inputs if there were errors in
15422 option handling.
15423 * opts-common.c (read_cmdline_option): Check for wrong language
15424 after other error checks.
15425
15426 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15427
15428 * cgraph.c: Fix comment typos.
15429 * cgraph.h: Likewise.
15430 * cgraphunit.c: Likewise.
15431 * ipa-cp.c: Likewise.
15432 * ipa-inline.c: Likewise.
15433 * ipa-prop.c: Likewise.
15434 * ipa-pure-const.c: Likewise.
15435 * ipa-ref.c: Likewise.
15436 * ipa-reference.c: Likewise.
15437
15438 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15439
15440 PR debug/47684
15441 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15442
15443 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15444
15445 PR testsuite/47400
15446 * doc/sourcebuild.texi (Require Support): Document
15447 dg-require-ascii-locale.
15448
15449 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15450
15451 * doc/lto.texi (Write summary): Fix missing parentheses.
15452
15453 2011-02-10 DJ Delorie <dj@redhat.com>
15454
15455 * config/m32c/m32c.c (m32c_option_override): Disable
15456 -fcombine-stack-adjustments until flag value tracking and compare
15457 optimization can be rewritten.
15458
15459 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15460
15461 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15462 PROCESSOR_POWER7.
15463 (PROCESSOR_DEFAULT64): Likewise.
15464
15465 2011-02-10 Richard Henderson <rth@redhat.com>
15466
15467 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15468 change from 2011-02-03.
15469 * config/rx/rx.c (flags_from_code): Likewise.
15470 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15471 is valid, n/pz otherwise.
15472 (rx_select_cc_mode): Return CCmode if Y is not zero.
15473
15474 2011-02-10 Richard Guenther <rguenther@suse.de>
15475
15476 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15477
15478 2011-02-10 Richard Guenther <rguenther@suse.de>
15479
15480 PR tree-optimization/47677
15481 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15482
15483 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15484
15485 PR target/47665
15486 * combine.c (make_compound_operation): Only change shifts into
15487 multiplication for SCALAR_INT_MODE_P.
15488
15489 2011-02-10 Jie Zhang <jie@codesourcery.com>
15490
15491 PR testsuite/47622
15492 Revert
15493 2011-02-05 Jie Zhang <jie@codesourcery.com>
15494 PR debug/42631
15495 * web.c (entry_register): Don't clobber the number of the
15496 first uninitialized reference in used[].
15497
15498 2011-02-09 Richard Guenther <rguenther@suse.de>
15499
15500 PR tree-optimization/47664
15501 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15502 all edges again.
15503
15504 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15505
15506 PR target/46481
15507 PR target/47032
15508 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15509 PROCESSOR_POWER7.
15510 (PROCESSOR_DEFAULT64): Same.
15511 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15512
15513 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15514
15515 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15516
15517 2011-02-09 Martin Jambor <mjambor@suse.cz>
15518
15519 PR middle-end/45505
15520 * tree-sra.c (struct access): New flags grp_scalar_read and
15521 grp_scalar_write. Changed description of assignment read and write
15522 flags.
15523 (dump_access): Dump new flags, reorder all of them.
15524 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15525 to detect multiple scalar reads.
15526 (analyze_access_subtree): Use the new scalar read write flags instead
15527 of the old flags. Adjusted comments.
15528
15529 2011-02-08 DJ Delorie <dj@redhat.com>
15530
15531 PR target/47548
15532 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15533 patterns.
15534
15535 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15536
15537 * config/m68k/uclinux.opt: New.
15538 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15539
15540 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15541
15542 * config/cris/elf.opt (sim): New Driver option.
15543
15544 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15545
15546 * config/xtensa/elf.opt: New.
15547 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15548
15549 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15550
15551 * config/vax/elf.opt: New.
15552 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15553
15554 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15555
15556 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15557
15558 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15559
15560 * config/gnu-user.opt: New.
15561 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15562 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15563 *-*-uclinux*): Use gnu-user.opt.
15564
15565 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15566
15567 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15568 * config/i386/gnu.h (CPP_SPEC): Likewise.
15569
15570 2011-02-08 Ian Lance Taylor <iant@google.com>
15571
15572 * common.opt (fcx-limited-range): Add SetByCombined flag.
15573 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15574 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15575 (fassociative-math, freciprocal-math): Likewise.
15576 (funsafe-math-optimizations): Likewise.
15577 * opth-gen.awk: Handle SetByCombined.
15578 * optc-gen.awk: Likewise.
15579 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15580 (set_unsafe_math_optimizations_flags): Likewise.
15581 * doc/options.texi (Option properties): Document SetByCombined.
15582
15583 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15584
15585 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15586 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15587 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15588 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15589 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15590
15591 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15592
15593 PR tree-optimization/46834
15594 PR tree-optimization/46994
15595 PR tree-optimization/46995
15596 * graphite-sese-to-poly.c (used_outside_reduction): New.
15597 (detect_commutative_reduction): Call used_outside_reduction.
15598 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15599 translate_scalar_reduction_to_array only when at least one
15600 loop-phi/close-phi tuple has been detected.
15601
15602 2011-02-08 Richard Guenther <rguenther@suse.de>
15603
15604 PR middle-end/47639
15605 * tree-vect-generic.c (expand_vector_operations_1): Update
15606 stmts here ...
15607 (expand_vector_operations): ... not here. Cleanup EH info
15608 and the CFG if required.
15609
15610 2011-02-08 Richard Guenther <rguenther@suse.de>
15611
15612 PR tree-optimization/47641
15613 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15614 require type compatibility.
15615
15616 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15617
15618 * gimple-low.c (lower_function_body): Don't remove the location of
15619 the return statement here.
15620 (lower_gimple_return): Do it here instead but only if the return
15621 statement is actually used twice.
15622
15623 2011-02-08 Richard Guenther <rguenther@suse.de>
15624
15625 PR tree-optimization/47632
15626 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15627 unused up_to_stmt parameter, return whether cfg-cleanup is
15628 necessary, remove EH info properly.
15629 (forward_propagate_into_gimple_cond): Adjust caller.
15630 (forward_propagate_into_cond): Likewise.
15631 (forward_propagate_comparison): Likewise.
15632 (tree_ssa_forward_propagate_single_use_vars): Make
15633 forward_propagate_comparison case similar to the two others.
15634
15635 2011-02-08 Nick Clifton <nickc@redhat.com>
15636
15637 * config/mn10300/mn10300.opt (mliw): New command line option.
15638 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15639 (liw_bundling): New automaton.
15640 (liw): New attribute.
15641 (liw_op): New attribute.
15642 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15643 (movsi_internal): Add LIW attributes.
15644 (andsi3): Likewise.
15645 (iorsi3): Likewise.
15646 (xorsi3): Likewise.
15647 (addsi3): Separate register and immediate alternatives.
15648 Add LIW attributes.
15649 (subsi3): Likewise.
15650 (cmpsi): Likewise.
15651 (aslsi3): Likewise.
15652 (lshrsi3): Likewise.
15653 (ashrsi3): Likewise.
15654 (liw): New pattern.
15655 * config/mn10300/mn10300.c (liw_op_names): New
15656 (mn10300_print_operand): Handle 'W' operand descriptor.
15657 (extract_bundle): New function.
15658 (check_liw_constraints): New function.
15659 (liw_candidate): New function.
15660 (mn10300_bundle_liw): New function.
15661 (mn10300_reorg): New function.
15662 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15663 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15664 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15665 __LIW__ or __NO_LIW__.
15666 * doc/invoke.texi: Describe the -mliw command line option.
15667
15668 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15669
15670 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15671 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15672 pthread_mutex_unlock): Remove.
15673 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15674 * config/pa/t-pa64: Likewise.
15675 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15676 shared libc if not linking against libpthread.
15677 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15678
15679 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15680
15681 PR target/47558
15682 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15683 on 10.6 and later to ensure that we always use the unwinder from
15684 the system. Only add -no_compact_unwind when tarteting darwin
15685 10.6 or later.
15686
15687 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15688
15689 PR target/46997
15690 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15691 (vec_interleave_lowv2sf): Ditto.
15692 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15693 (vec_extract_oddv2sf): Ditto.
15694
15695 2011-02-07 Mike Stump <mikestump@comcast.net>
15696
15697 PR target/42333
15698 Add __ieee_divdc3 entry point.
15699 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15700 entry point.
15701 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15702 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15703 * config/darwin.c (darwin_rename_builtins): Add.
15704 * config/darwin-protos.h (darwin_rename_builtins): Add.
15705
15706 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15707
15708 PR target/47636
15709 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15710 for the condition.
15711
15712 2011-02-07 Mike Stump <mikestump@comcast.net>
15713
15714 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15715
15716 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15717
15718 PR target/47534
15719 * config/avr/libgcc.S (exit): Move .endfunc
15720
15721 2011-02-07 Richard Guenther <rguenther@suse.de>
15722
15723 PR tree-optimization/47615
15724 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15725 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15726 (run_scc_vn): Initialize it.
15727 (visit_reference_op_load): Use it.
15728 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15729
15730 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15731
15732 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15733 DImode trapping arithmetic libfuncs.
15734
15735 2011-02-07 Richard Guenther <rguenther@suse.de>
15736
15737 PR tree-optimization/47621
15738 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15739 two duplicates ...
15740 (execute_update_addresses_taken): ... here. Make it more
15741 conservative in what we accept.
15742
15743 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15744
15745 * config/sparc/freebsd.h (ASM_SPEC): Define.
15746 * config/sparc/vxworks.h (ASM_SPEC): Define.
15747
15748 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15749
15750 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15751
15752 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15753
15754 * doc/invoke.texi: Remove reference to compiler internals from
15755 user documentation.
15756
15757 * reg-notes.def: Remove REG_VALUE_PROFILE.
15758 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15759
15760 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15761
15762 PR middle-end/47610
15763 * varasm.c (default_section_type_flags): If decl is NULL,
15764 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15765
15766 2011-02-05 Jie Zhang <jie@codesourcery.com>
15767
15768 PR debug/42631
15769 * web.c (entry_register): Don't clobber the number of the
15770 first uninitialized reference in used[].
15771
15772 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15773
15774 PR tree-optimization/46194
15775 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15776 (build_classic_dist_vector_1): Do not represent classic distance
15777 vectors when the access functions are variating in different loops.
15778
15779 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15780
15781 * config/mips/iris6.opt: New.
15782 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15783
15784 2011-02-04 Richard Henderson <rth@redhat.com>
15785 Steve Ellcey <sje@cup.hp.com>
15786
15787 PR target/46997
15788 * config/ia64/predicates.md (mux1_brcst_element): New.
15789 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15790 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15791 (ia64_unpack_sign): New.
15792 (ia64_expand_unpack): Rewrite using new routines.
15793 (ia64_expand_widen_sum): Ditto.
15794 (ia64_expand_dot_prod_v8qi): Ditto.
15795 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15796 routines, add endian check.
15797 (pmpy2_even): Rename from pmpy2_r, add endian check.
15798 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15799 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15800 (vec_widen_smult_hi_v4hi): Ditto.
15801 (vec_widen_umult_lo_v4hi): Ditto.
15802 (vec_widen_umult_hi_v4hi): Ditto.
15803 (mulv2si3): Change endian checks.
15804 (sdot_prodv4hi): Rewrite with new calls.
15805 (udot_prodv4hi): New.
15806 (vec_pack_ssat_v4hi): Add endian check.
15807 (vec_pack_usat_v4hi): Ditto.
15808 (vec_pack_ssat_v2si): Ditto.
15809 (max1_even): Rename from max1_r, add endian check.
15810 (max1_odd): Rename from max1_l, add endian check.
15811 (*mux1_rev): Format change.
15812 (*mux1_mix): Ditto.
15813 (*mux1_shuf): Ditto.
15814 (*mux1_alt): Ditto.
15815 (*mux1_brcst_v8qi): Use new predicate.
15816 (vec_extract_evenv8qi): Remove endian check.
15817 (vec_extract_oddv8qi): Ditto.
15818 (vec_interleave_lowv4hi): Format change.
15819 (vec_interleave_highv4hi): Ditto.
15820 (mix2_even): Rename from mix2_r, add endian check.
15821 (mix2_odd): Rename from mux2_l, add endian check.
15822 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15823 (vec_extract_evenodd_helper): Format change.
15824 (vec_extract_evenv4hi): Remove endian check.
15825 (vec_extract_oddv4hi): Remove endian check.
15826 (vec_interleave_lowv2si): Format change.
15827 (vec_interleave_highv2si): Format change.
15828 (vec_initv2si): Remove endian check.
15829 (vecinit_v2si): Add endian check.
15830 (reduc_splus_v2sf): Add endian check.
15831 (reduc_smax_v2sf): Ditto.
15832 (reduc_smin_v2sf): Ditto.
15833 (vec_initv2sf): Remove endian check.
15834 (fpack): Add endian check.
15835 (fswap): Add endian check.
15836 (vec_interleave_highv2sf): Add endian check.
15837 (vec_interleave_lowv2sf): Add endian check.
15838 (fmix_lr): Add endian check.
15839 (vec_setv2sf): Format change.
15840 (*vec_extractv2sf_0_be): Use shift to extract operand.
15841 (*vec_extractv2sf_1_be): New.
15842 (vec_pack_trunc_v4hi): Add endian check.
15843 (vec_pack_trunc_v2si): Format change.
15844
15845 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15846
15847 PR inline-asm/23200
15848 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15849 do bb, locus and block comparison and disallow loads if it is not set.
15850 (stmt_is_replaceable_p): New function.
15851 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15852 callers.
15853 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15854 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15855 SSA_NAME_DEF_STMT.
15856 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15857
15858 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15859
15860 * config/rs6000/xilinx.opt: New.
15861 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15862
15863 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15864
15865 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15866
15867 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15868
15869 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15870 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15871 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15872 secondary_reload_info, xtensa_secondary_reload): Remove.
15873 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15874 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15875 (xtensa_preferred_reload_class): Make static. Change return and
15876 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15877 Use CONST_DOUBLE_P predicate.
15878 (xtensa_preferred_output_reload_class): New function.
15879 (xtensa_secondary_reload): Make static.
15880
15881 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15882
15883 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15884 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15885 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15886
15887 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15888
15889 PR middle-end/31490
15890 * output.h (SECTION_RELRO): Define.
15891 (SECTION_MACH_DEP): Adjust.
15892 (get_variable_section): New prototype.
15893 * varpool.c (varpool_finalize_named_section_flags): New function.
15894 (varpool_assemble_pending_decls): Call it.
15895 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15896 * cgraphunit.c (cgraph_output_in_order): Call
15897 varpool_finalize_named_section_flags.
15898 * varasm.c (get_section): Allow section flags conflicts between
15899 relro and read-only sections if the section hasn't been declared yet.
15900 Set SECTION_OVERRIDE after diagnosing section type conflict.
15901 (get_variable_section): No longer static.
15902 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15903 readonly sections that need relocations.
15904 (decl_readonly_section_1): New function.
15905 (decl_readonly_section): Use it.
15906
15907 Revert:
15908 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15909 Steve Ellcey <sje@cup.hp.com>
15910
15911 PR middle-end/31490
15912 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15913 if section attribute used.
15914
15915 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15916
15917 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15918 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15919 (darwin_init_sections): Remove assertion.
15920
15921 2011-02-03 Nick Clifton <nickc@redhat.com>
15922
15923 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15924 lt and ge.
15925 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15926 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15927 instead of "n" and "pz".
15928 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15929 CC_FLAG_S.
15930
15931 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15932
15933 PR target/47312
15934 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15935 fma, expand FMA_EXPR as fma{,f,l} call.
15936
15937 PR lto/47274
15938 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15939 copy them into a unsigned char variable and pass address of it to
15940 lto_output_data_stream.
15941
15942 PR target/47564
15943 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15944 around backend_init_target and lang_dependent_init_target calls.
15945 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15946 (verify_cgraph_node): Don't call set_cfun here. Use
15947 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15948 Set error_found for incorrectly represented calls to thunks.
15949
15950 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15951
15952 PR debug/43092
15953 PR rtl-optimization/43494
15954 * rtl.h (for_each_inc_dec_fn): New type.
15955 (for_each_inc_dec): Declare.
15956 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15957 (for_each_inc_dec_find_inc_dec): New fn.
15958 (for_each_inc_dec_find_mem): New fn.
15959 (for_each_inc_dec): New fn.
15960 * dse.c (struct insn_size): Remove.
15961 (replace_inc_dec, replace_inc_dec_mem): Remove.
15962 (emit_inc_dec_insn_before): New fn.
15963 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15964 (canon_address): Pass mem modes to cselib_lookup.
15965 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15966 (cselib_lookup_from_insn): Likewise.
15967 (cselib_subst_to_values): Likewise.
15968 * cselib.c (find_slot_memmode): New var.
15969 (cselib_find_slot): New fn. Use it instead of
15970 htab_find_slot_with_hash everywhere.
15971 (entry_and_rtx_equal_p): Use find_slot_memmode.
15972 (autoinc_split): New fn.
15973 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15974 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15975 Deal with autoinc. Special-case recursion into MEMs.
15976 (cselib_hash_rtx): Likewise.
15977 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15978 address and MEM modes.
15979 (cselib_subst_to_values): Add memmode, pass it on.
15980 Deal with autoinc.
15981 (cselib_lookup): Add memmode argument, pass it on.
15982 (cselib_lookup_from_insn): Add memmode.
15983 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15984 (struct cselib_record_autoinc_data): New.
15985 (cselib_record_autoinc_cb): New fn.
15986 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15987 mode to cselib_lookup. Reset autoinced REGs here instead of...
15988 (cselib_process_insn): ... here.
15989 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15990 to cselib_lookup.
15991 (add_uses): Likewise, also to cselib_subst_to_values.
15992 (add_stores): Likewise.
15993 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15994 cselib_subst_to_values.
15995 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15996 * gcse.c (do_local_cprop): Adjusted.
15997 * postreload.c (reload_cse_simplify_set): Adjusted.
15998 (reload_cse_simplify_operands): Adjusted.
15999 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16000
16001 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16002
16003 PR tree-optimization/45122
16004 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16005 unsafe assumptions when there's more than one loop exit.
16006
16007 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16008
16009 PR target/47272
16010 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16011 Document using vector double with the load/store builtins, and
16012 that the load/store builtins always use Altivec instructions.
16013
16014 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16015 to use altivec memory instructions, even on VSX.
16016 (vector_altivec_store_<mode>): Ditto.
16017
16018 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16019 function.
16020
16021 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16022 V2DF, V2DI support to load/store overloaded builtins.
16023
16024 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16025 altivec load/store builtins for V2DF/V2DI types.
16026
16027 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16028 set avoid indexed addresses on power6 if -maltivec.
16029 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16030 vector_altivec_load/vector_altivec_store builtins.
16031 (altivec_expand_st_builtin): Ditto.
16032 (altivec_expand_builtin): Add VSX memory builtins.
16033 (rs6000_init_builtins): Add V2DI types to internal types.
16034 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16035 load/store builtins.
16036 (rs6000_address_for_altivec): Insure memory address is appropriate
16037 for Altivec.
16038
16039 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16040 vec_vsx_ld and vec_vsx_st.
16041 (vsx_store_<mode>): Ditto.
16042
16043 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16044 variables to hold long long types for VSX vector memory builtins.
16045 (RS6000_BTI_unsigned_long_long): Ditto.
16046 (long_long_integer_type_internal_node): Ditti.
16047 (long_long_unsigned_type_internal_node): Ditti.
16048
16049 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16050 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16051 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16052
16053 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16054 short cuts.
16055 (vec_vsx_st): Ditto.
16056
16057 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16058
16059 * config/pa/pa-hpux10.opt: New.
16060 * config/hpux11.opt (pthread): New Driver option.
16061 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16062 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16063
16064 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16065
16066 * config/ia64/vms.opt: New.
16067 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16068
16069 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16070
16071 PR target/47580
16072 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16073 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16074 generator functions.
16075 (vsx_floatuns<VSi><mode>2): Ditto.
16076 (vsx_fix_trunc<mode><VSi>2): Ditto.
16077 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16078
16079 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16080
16081 * config/i386/djgpp.opt (posix): New Driver option.
16082
16083 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16084
16085 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16086 Move to the unsupported targets list.
16087
16088 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16089
16090 PR rtl-optimization/47525
16091 * df-scan.c: Update copyright years.
16092 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16093 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16094
16095 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16096
16097 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16098 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16099 (ASM_OUTPUT_ASCII): Remove.
16100 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16101
16102 2011-02-02 Jeff Law <law@redhat.com>
16103
16104 PR middle-end/47543
16105 * reload.c (find_reloads_address): Handle reg+d address where both
16106 components are invalid by reloading the entire address.
16107
16108 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16109 Richard Guenther <rguenther@suse.de>
16110
16111 PR tree-optimization/40979
16112 PR bootstrap/47044
16113 * passes.c (init_optimization_passes): After LIM call copy_prop
16114 and DCE to clean up.
16115 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16116
16117 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16118
16119 PR tree-optimization/47576
16120 PR tree-optimization/47555
16121 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16122 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16123 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16124 * tree-scalar-evolution.c (follow_ssa_edge): Use
16125 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16126
16127 2011-02-02 Richard Guenther <rguenther@suse.de>
16128
16129 PR tree-optimization/47566
16130 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16131
16132 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16133
16134 PR debug/47106
16135 PR debug/47402
16136 * tree-inline.c (declare_return_variable): Remove unused caller
16137 variable.
16138
16139 PR debug/47106
16140 PR debug/47402
16141 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16142 * cfgexpand.c (account_used_vars_for_block): Use them.
16143 * tree-nrv.c (tree_nrv): Likewise.
16144 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16145 (dump_scope_block): Likewise.
16146 (remove_unused_locals): Likewise.
16147
16148 PR debug/47106
16149 PR debug/47402
16150 * tree-inline.c (declare_return_variable): Add result decl to
16151 local decls only once.
16152 * gimple-low.c (record_vars_into): Mark newly-created variables
16153 as referenced.
16154
16155 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16156
16157 PR debug/47498
16158 PR debug/47501
16159 PR debug/45136
16160 PR debug/45130
16161 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16162 debug insns.
16163 (no_real_insns_p, schedule_block, set_priorities): Drop special
16164 treatment of boundary debug insns.
16165 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16166 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16167 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16168 (BOUNDARY_DEBUG_INSN_P): Likewise.
16169 (SCHEDULE_DEBUG_INSN_P): Likewise.
16170 * sched-rgn.c (init_ready_list): Drop special treatment of
16171 boundary debug insns.
16172 * final.c (rest_of_clean_state): Clear notes' BB.
16173
16174 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16175
16176 * config/openbsd.opt (assert=): New Driver option.
16177
16178 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16179
16180 * config/i386/nto.opt: New.
16181 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16182
16183 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16184
16185 * config/i386/netware.opt: New.
16186 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16187
16188 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16189
16190 * config/interix.opt (posix): New Driver option.
16191
16192 2011-02-01 DJ Delorie <dj@redhat.com>
16193
16194 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16195
16196 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16197 class for A0/A1.
16198
16199 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16200
16201 PR tree-optimization/47561
16202 * toplev.c (process_options): Print the Graphite flags. Add
16203 flag_loop_flatten to the list of options requiring Graphite.
16204
16205 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16206
16207 * config/i386/cygming.opt (posix): New Driver option.
16208
16209 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16210
16211 * config/arm/vxworks.opt: New.
16212 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16213
16214 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16215
16216 * config/alpha/elf.opt: New.
16217 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16218 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16219
16220 2011-02-01 Richard Guenther <rguenther@suse.de>
16221
16222 PR tree-optimization/47559
16223 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16224 store-motion on references that can throw.
16225
16226 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16227
16228 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16229 * tree-pass.h (TDF_CSELIB): New macro.
16230 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16231 cselib_lookup): Check for it rather than for TDF_DETAILS.
16232
16233 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16234
16235 PR driver/47547
16236 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16237 is HOST_BIT_BUCKET.
16238
16239 * opts.c (finish_options): Don't add x_aux_base_name if it is
16240 HOST_BIT_BUCKET.
16241
16242 2011-02-01 Richard Guenther <rguenther@suse.de>
16243
16244 PR tree-optimization/47555
16245 Revert
16246 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16247
16248 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16249
16250 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16251
16252 PR gcc/46692
16253 * config/lm32/t-lm32: Add multilib for all CPU options.
16254
16255 2011-02-01 Richard Guenther <rguenther@suse.de>
16256
16257 PR tree-optimization/47541
16258 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16259 sure to have a field at offset zero.
16260
16261 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16262
16263 * config/arc/arc.opt (EB, EL): New Driver options.
16264
16265 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16266
16267 * config/alpha/osf5.opt: New.
16268 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16269
16270 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16271
16272 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16273
16274 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16275
16276 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16277 -floop-interchange.
16278 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16279 is an alias of -floop-interchange and that it requires the
16280 Graphite infrastructure.
16281 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16282 flag_loop_interchange based on the value of flag_tree_loop_linear.
16283
16284 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16285 Richard Guenther <rguenther@suse.de>
16286
16287 PR tree-optimization/47538
16288 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16289 type instead of r1type, except for comparisons. For right
16290 shifts and comparisons punt if there are mismatches in
16291 sizetype vs. non-sizetype types.
16292
16293 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16294
16295 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16296 avx_runtime.
16297
16298 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16299
16300 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16301 version number.
16302 * configure: Regenerate.
16303
16304 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16305
16306 * configure.ac (gcc_cv_ld_static_option): Define.
16307 (gcc_cv_ld_dynamic_option): Define.
16308 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16309 instead.
16310 (HAVE_LD_STATIC_DYNAMIC): Update message.
16311 (LD_STATIC_OPTION): Define.
16312 (LD_DYNAMIC_OPTION): Define.
16313 * configure: Regenerate.
16314 * config.in: Regenerate.
16315 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16316 HAVE_LD_STATIC_DYNAMIC]: Use them.
16317
16318 2011-01-31 Nick Clifton <nickc@redhat.com>
16319
16320 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16321 registers inside interrupt handlers if the handler is not a leaf
16322 function.
16323
16324 2011-01-31 Nick Clifton <nickc@redhat.com>
16325
16326 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16327 reg_renumber returning an INVALID_REGNUM.
16328
16329 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16330
16331 PR libgcj/44341
16332 * doc/install.texi: Document host options discarded when cross
16333 configuring target libraries.
16334
16335 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16336
16337 Reverted:
16338 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16339 PR debug/45136
16340 PR debug/45130
16341 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16342 debug insns.
16343 (no_real_insns_p, schedule_block, set_priorities): Drop special
16344 treatment of boundary debug insns.
16345 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16346 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16347 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16348 (BOUNDARY_DEBUG_INSN_P): Likewise.
16349 (SCHEDULE_DEBUG_INSN_P): Likewise.
16350 * sched-rgn.c (init_ready_list): Drop special treatment of
16351 boundary debug insns.
16352 * final.c (rest_of_clean-state): Clear notes' BB.
16353
16354 2011-01-31 Alan Modra <amodra@gmail.com>
16355
16356 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16357 toc relative expressions as we do in print_operand_address.
16358
16359 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16360
16361 * doc/extend.texi: Follow spelling conventions.
16362 * doc/invoke.texi: Fix a typo.
16363
16364 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16365
16366 * config/hpux11.opt: New.
16367 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16368 ia64*-*-hpux*): Use hpux11.opt.
16369
16370 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16371
16372 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16373 to tmake_file.
16374
16375 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16376
16377 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16378 support sites.
16379
16380 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16381
16382 * doc/install.texi (Binaries): Remove outdated reference for
16383 Motorola 68HC11/68HC12 downloads.
16384
16385 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16386
16387 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16388 Drepper's paper.
16389
16390 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16391
16392 PR bootstrap/47147
16393 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16394 used by NetBSD.
16395
16396 2011-01-28 Ahmad Sharif <asharif@google.com>
16397
16398 * value-prof.c (check_counter): Corrected error message.
16399
16400 2011-01-29 Jie Zhang <jie@codesourcery.com>
16401
16402 * config/arm/arm.c (arm_legitimize_reload_address): New.
16403 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16404 arm_legitimize_reload_address.
16405 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16406
16407 2011-01-28 Ian Lance Taylor <iant@google.com>
16408
16409 * godump.c (go_define): Ignore macros whose definitions include
16410 two adjacent operands.
16411
16412 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16413
16414 PR target/42894
16415 * varasm.c (force_const_mem): Store copy of x in desc->constant
16416 instead of x itself.
16417 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16418 itself into REG_EQUAL note.
16419
16420 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16421
16422 * config/freebsd.opt (posix, rdynamic): New Driver options.
16423
16424 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16425
16426 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16427 -Bstatic/-Bdynamic.
16428 * configure: Regenerate.
16429
16430 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16431
16432 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16433 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16434
16435 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16436
16437 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16438 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16439 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16440 (s390_preferred_reload_class): Make static. Change return and
16441 'rclass' argument type to reg_class_t.
16442
16443 2011-01-27 Jan Hubicka <jh@suse.cz>
16444
16445 PR middle-end/46949
16446 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16447 (process_function_and_variable_attributes): Check defined weakrefs.
16448
16449 2011-01-27 Martin Jambor <mjambor@suse.cz>
16450
16451 PR tree-optimization/47228
16452 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16453 build_ref_for_offset.
16454
16455 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16456
16457 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16458
16459 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16460
16461 PR rtl-optimization/46856
16462 * postreload.c (reload_combine_recognize_const_pattern): Do not
16463 separate cc0 setter and user on cc0 targets.
16464
16465 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16466
16467 PR c/43082
16468 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16469 passed a VOID_TYPE expression, immediately emit an error and
16470 return error_mark_node.
16471
16472 2011-01-26 Jeff Law <law@redhat.com>
16473
16474 PR rtl-optimization/47464
16475 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16476 rather than may_trap_p as needed.
16477
16478 2011-01-26 DJ Delorie <dj@redhat.com>
16479
16480 PR rtl-optimization/46878
16481 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16482 setter/user dependency as well.
16483
16484 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16485
16486 PR rtl-optimization/44469
16487 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16488 after removing trivially dead basic blocks.
16489
16490 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16491
16492 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16493 * config/frv/frv.h (LINK_SPEC): Likewise.
16494 * config/i386/netware.h (LINK_SPEC): Likewise.
16495 * config/m68k/linux.h (ASM_SPEC): Likewise.
16496 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16497 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16498 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16499 * config/sparc/linux.h (ASM_SPEC): Likewise.
16500 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16501 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16502
16503 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16504
16505 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16506 * config/frv/frv.h (ASM_SPEC): Likewise.
16507 * config/m68k/linux.h (ASM_SPEC): Likewise.
16508 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16509 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16510 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16511 * config/sparc/linux.h (ASM_SPEC): Likewise.
16512 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16513 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16514
16515 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16516
16517 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16518 * config/frv/frv.h (LINK_SPEC): Likewise.
16519 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16520
16521 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16522
16523 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16524 * config/frv/frv.h (ASM_SPEC): Likewise.
16525 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16526 * config/m68k/linux.h (ASM_SPEC): Likewise.
16527 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16528 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16529 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16530 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16531 * config/sparc/linux.h (ASM_SPEC): Likewise.
16532 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16533 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16534 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16535
16536 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16537
16538 PR target/46997
16539 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16540 (*mux2): Ditto.
16541 (vec_extract_evenodd_help): Ditto.
16542 (vec_extract_evenv4hi): Ditto.
16543 (vec_extract_oddv4hi): Ditto.
16544 (vec_interleave_lowv2si): Ditto.
16545 (vec_interleave_highv2si): Ditto.
16546 (vec_extract_evenv2si): Ditto.
16547 (vec_extract_oddv2si: Ditto.
16548 (vec_pack_trunc_v2si): Ditto.
16549
16550 2011-01-22 Jan Hubicka <jh@suse.cz>
16551
16552 PR target/47237
16553 * cgraph.h (cgraph_local_info): New field can_change_signature.
16554 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16555 signature can change.
16556 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16557 can change.
16558 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16559 (cgraph_function_versioning): We can not change signature of functions
16560 that don't allow that.
16561 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16562 (lto_input_node): Likewise.
16563 * ipa-inline.c (compute_inline_parameters): Compute
16564 local.can_change_signature.
16565 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16566 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16567 functions that can not change signature.
16568 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16569 init_cumulative_args): Do not use local calling conventions
16570 for functions that can not change signature.
16571
16572 2011-01-22 Jan Hubicka <jh@suse.cz>
16573
16574 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16575
16576 2011-01-26 Richard Guenther <rguenther@suse.de>
16577
16578 PR tree-optimization/47190
16579 * cgraphunit.c (process_common_attributes): New function.
16580 (process_function_and_variable_attributes): Use it.
16581
16582 2011-01-26 Richard Guenther <rguenther@suse.de>
16583
16584 PR lto/47423
16585 * cgraphbuild.c (record_eh_tables): Record reference to personality
16586 function.
16587
16588 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16589
16590 PR debug/45454
16591 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16592 non-debug insns from moving up.
16593
16594 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16595
16596 PR target/40125
16597 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16598 t-dlldir{,-x} fragment for build and add it to tmake_file.
16599 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16600 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16601 * config/i386/t-dlldir: New file.
16602 (SHLIB_DLLDIR): Define.
16603 * config/i386/t-dlldir-x: New file.
16604 (SHLIB_DLLDIR): Define.
16605 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16606 (SHLIB_INSTALL): Use it.
16607
16608 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16609
16610 PR target/47246
16611 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16612 lower bound of the allowed Thumb-2 coprocessor load/store
16613 index range to -256. Add explaining comment.
16614
16615 2011-01-25 Ian Lance Taylor <iant@google.com>
16616
16617 * godump.c (go_define): Improve lexing of macro expansion to only
16618 accept expressions which match Go spec.
16619
16620 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16621
16622 PR c++/43601
16623 * tree.c (handle_dll_attribute): Handle it.
16624 * doc/extend.texi (@item dllexport): Mention it.
16625 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16626
16627 2011-01-25 Ian Lance Taylor <iant@google.com>
16628
16629 PR tree-optimization/26854
16630 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16631 (decl_jump_unsafe): Move higher in file, with no other change.
16632 (bind): Set has_jump_unsafe_decl if appropriate.
16633 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16634 (check_earlier_gotos): Likewise.
16635 (c_check_switch_jump_warnings): Likewise.
16636
16637 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16638
16639 * doc/invoke.texi (Warning Options): Add missing hyphen.
16640 (-fprofile-dir): Minor grammatical fixes.
16641 (-fbranch-probabilities): Likewise.
16642
16643 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16644
16645 PR debug/45136
16646 PR debug/45130
16647 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16648 debug insns.
16649 (no_real_insns_p, schedule_block, set_priorities): Drop special
16650 treatment of boundary debug insns.
16651 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16652 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16653 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16654 (BOUNDARY_DEBUG_INSN_P): Likewise.
16655 (SCHEDULE_DEBUG_INSN_P): Likewise.
16656 * sched-rgn.c (init_ready_list): Drop special treatment of
16657 boundary debug insns.
16658 * final.c (rest_of_clean-state): Clear notes' BB.
16659
16660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16661
16662 * Makefile.in (LAMBDA_H): Removed.
16663 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16664 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16665 lambda-trans.o, and tree-loop-linear.o.
16666 (lto-symtab.o): Remove dependence on LAMBDA_H.
16667 (tree-loop-linear.o): Remove rule.
16668 (lambda-mat.o): Same.
16669 (lambda-trans.o): Same.
16670 (lambda-code.o): Same.
16671 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16672 (tree-vect-slp.o): Same.
16673 * hwint.h (gcd): Moved here.
16674 (least_common_multiple): Same.
16675 * lambda-code.c: Removed.
16676 * lambda-mat.c: Removed.
16677 * lambda-trans.c: Removed.
16678 * lambda.h: Removed.
16679 * tree-loop-linear.c: Removed.
16680 * lto-symtab.c: Do not include lambda.h.
16681 * omega.c (gcd): Removed.
16682 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16683 * tree-data-ref.c (print_lambda_vector): Moved here.
16684 (lambda_vector_copy): Same.
16685 (lambda_matrix_copy): Same.
16686 (lambda_matrix_id): Same.
16687 (lambda_vector_first_nz): Same.
16688 (lambda_matrix_row_add): Same.
16689 (lambda_matrix_row_exchange): Same.
16690 (lambda_vector_mult_const): Same.
16691 (lambda_vector_negate): Same.
16692 (lambda_matrix_row_negate): Same.
16693 (lambda_vector_equal): Same.
16694 (lambda_matrix_right_hermite): Same.
16695 * tree-data-ref.h: Do not include lambda.h.
16696 (lambda_vector): Moved here.
16697 (lambda_matrix): Same.
16698 (dependence_level): Same.
16699 (lambda_transform_legal_p): Removed declaration.
16700 (lambda_collect_parameters): Same.
16701 (lambda_compute_access_matrices): Same.
16702 (lambda_vector_gcd): Same.
16703 (lambda_vector_new): Same.
16704 (lambda_vector_clear): Same.
16705 (lambda_vector_lexico_pos): Same.
16706 (lambda_vector_zerop): Same.
16707 (lambda_matrix_new): Same.
16708 * tree-flow.h (least_common_multiple): Removed declaration.
16709 * tree-parloops.c (lambda_trans_matrix): Moved here.
16710 (LTM_MATRIX): Same.
16711 (LTM_ROWSIZE): Same.
16712 (LTM_COLSIZE): Same.
16713 (LTM_DENOMINATOR): Same.
16714 (lambda_trans_matrix_new): Same.
16715 (lambda_matrix_vector_mult): Same.
16716 (lambda_transform_legal_p): Same.
16717 * tree-pass.h (pass_linear_transform): Removed declaration.
16718 * tree-ssa-loop.c (tree_linear_transform): Removed.
16719 (gate_tree_linear_transform): Removed.
16720 (pass_linear_transform): Removed.
16721 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16722 flag_loop_interchange.
16723
16724 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16725
16726 PR tree-optimization/47265
16727 PR tree-optimization/47443
16728 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16729 if name still has some uses.
16730
16731 2011-01-25 Martin Jambor <mjambor@suse.cz>
16732
16733 PR tree-optimization/47382
16734 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16735 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16736
16737 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16738
16739 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16740 sjlj_except_unwind_info.
16741
16742 2011-01-25 Richard Guenther <rguenther@suse.de>
16743
16744 PR tree-optimization/47426
16745 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16746 visible functions results escape.
16747
16748 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16749
16750 PR target/45701
16751 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16752 (arm_get_frame_offsets): Use it.
16753
16754 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16755 Jakub Jelinek <jakub@redhat.com>
16756
16757 PR tree-optimization/47271
16758 * tree-if-conv.c (bb_postdominates_preds): New.
16759 (if_convertible_bb_p): Call bb_postdominates_preds.
16760 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16761 (predicate_scalar_phi): Call bb_postdominates_preds.
16762
16763 2011-01-25 Nick Clifton <nickc@redhat.com>
16764
16765 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16766 * config/rx/rx.c (rx_function_value): Likewise.
16767 (rx_promote_function_mode): Likewise.
16768 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16769 in order to make it legitimate.
16770 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16771 make sure that the first operand is the same as the result register.
16772 (addsi3_unspec): Delete.
16773 (subdi3): Do not accept immediate operands.
16774 (subdi3_internal): Likewise.
16775
16776 2011-01-25 Jeff Law <law@redhat.com>
16777
16778 PR rtl-optimization/37273
16779 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16780 handle them like argument loads from stack slots. Do not double
16781 count memory for memory constants and argument loads from stack slots.
16782
16783 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16784
16785 PR tree-optimization/47427
16786 PR tree-optimization/47428
16787 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16788 coalesce if the new root var would be TREE_READONLY.
16789
16790 2011-01-25 Richard Guenther <rguenther@suse.de>
16791
16792 PR middle-end/47414
16793 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16794 correct type for TBAA.
16795
16796 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16797
16798 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16799 (close_phi_written_to_memory): Call for_each_index with
16800 dr_indices_valid_in_loop.
16801
16802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16803
16804 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16805 when it is initialized.
16806
16807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16808
16809 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16810 call to graphite_find_data_references_in_stmt.
16811 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16812 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16813 call to graphite_find_data_references_in_stmt.
16814 (analyze_drs_in_stmts): Same.
16815 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16816 in which the scalar analysis of indices is performed.
16817 (create_data_ref): Same. Update call to dr_analyze_indices.
16818 (find_data_references_in_stmt): Update call to create_data_ref.
16819 (graphite_find_data_references_in_stmt): Same.
16820 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16821 declaration.
16822 (create_data_ref): Same.
16823 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16824 call to create_data_ref.
16825
16826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16827
16828 * graphite-sese-to-poly.c (build_poly_scop): Move
16829 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16830
16831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16832
16833 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16834 VAR_DECL, PARM_DECL, and RESULT_DECL.
16835
16836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16837
16838 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16839 in a reduction PBB.
16840 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16841 that have already been marked as PBB_IS_REDUCTION.
16842
16843 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16844
16845 * graphite-scop-detection.c (same_close_phi_node): New.
16846 (remove_duplicate_close_phi): New.
16847 (make_close_phi_nodes_unique): New.
16848 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16849
16850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16851
16852 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16853 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16854 of both data references to be the same.
16855
16856 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16857
16858 * graphite-dependences.c (build_lexicographical_constraint): Remove
16859 the gdim parameter.
16860 (build_lexicographical_constraint): Adjust call to
16861 ppl_powerset_is_empty.
16862 (dependence_polyhedron): Same.
16863 (graphite_legal_transform_dr): Same.
16864 (graphite_carried_dependence_level_k): Same.
16865 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16866 parameter.
16867 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16868
16869 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16870
16871 * graphite-sese-to-poly.c
16872 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16873 (close_phi_written_to_memory): New.
16874 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16875 and unshare_expr.
16876
16877 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16878
16879 * doc/install.texi: Update the expected version number of PPL to 0.11.
16880 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16881 #if PPL_VERSION_MINOR < 11.
16882
16883 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16884
16885 * graphite-dependences.c: Include graphite-cloog-util.h.
16886 (new_poly_ddr): Inlined into dependence_polyhedron.
16887 (free_poly_ddr): Moved close by new_poly_ddr.
16888 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16889 Early return NULL when ppl_powerset_is_empty returns true.
16890 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16891 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16892 (graphite_legal_transform_dr): Call new_poly_ddr.
16893 (graphite_carried_dependence_level_k): Same.
16894 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16895 (dot_transformed_deps_stmt_1): Removed.
16896 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16897 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16898 (dot_deps_1): Call dot_deps_2.
16899 * Makefile.in (graphite-dependences.o): Add missing dependence on
16900 graphite-cloog-util.h.
16901
16902 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16903
16904 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16905 (build_lexicographical_constraint): Same.
16906 (dependence_polyhedron_1): Same.
16907 (graphite_legal_transform_dr): Same.
16908 (graphite_carried_dependence_level_k): Same.
16909 * graphite-ppl.c (ppl_powerset_is_empty): New.
16910 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16911 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16912
16913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16914
16915 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16916 the "a followed by b" relation and document it.
16917
16918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16919
16920 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16921 iteration when the bag of constraints is empty.
16922
16923 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16924
16925 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16926
16927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16928
16929 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16930 nest and two loop depths as parameters.
16931 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16932 lst_perfect_nestify.
16933
16934 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16935
16936 * graphite-dependences.c (print_pddr): Call
16937 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16938
16939 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16940
16941 * graphite-ppl.c (debug_gmp_value): New.
16942 * graphite-ppl.h (debug_gmp_value): Declared.
16943
16944 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16945
16946 * doc/install.texi: Document availability of cloog-0.16.
16947
16948 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16949
16950 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16951 invalid postdominance info.
16952
16953 2011-01-24 Jan Hubicka <jh@suse.cz>
16954
16955 PR c/21659
16956 * doc/extend.texi (weak pragma): Drop claim that it must
16957 appear before definition.
16958 * varasm.c (merge_weak, declare_weak): Only sanity check
16959 that DECL is not output at a time it is declared weak.
16960
16961 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16962
16963 * machmode.def: Fixed comments.
16964
16965 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16966
16967 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16968
16969 2011-01-24 Paul Koning <ni1d@arrl.net>
16970
16971 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16972 WORDS_BIG_ENDIAN.
16973
16974 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16975
16976 PR target/46519
16977 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16978 (block_info): Add scanned and prev.
16979 (move_or_delete_vzeroupper_2): Return if the basic block
16980 has been scanned and the upper 128bit state is unchanged
16981 from the last scan.
16982 (move_or_delete_vzeroupper_1): Return true if the exit
16983 state is changed.
16984 (move_or_delete_vzeroupper): Visit basic blocks using the
16985 work-list based algorithm based on vt_find_locations in
16986 var-tracking.c.
16987
16988 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16989
16990 2011-01-24 Nick Clifton <nickc@redhat.com>
16991
16992 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16993 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16994 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16995 then define __v850e1__.
16996 * doc/invoke.texi: Document -mv850es.
16997
16998 2011-01-24 Richard Henderson <rth@redhat.com>
16999
17000 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17001 compound unordered comparisons.
17002 * config/rx/rx.c (rx_split_fp_compare): Remove.
17003 * config/rx/rx-protos.h: Update.
17004 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17005 (cbranchsf4): Don't call rx_split_fp_compare.
17006 (*cbranchsf4): Use rx_split_cbranch.
17007 (*cmpsf): Don't accept "i" constraint.
17008 (*conditional_branch): Only valid after reload.
17009 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17010
17011 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17012
17013 PR target/47385
17014 * config/rs6000/altivec.md (vector constant splitters): Add
17015 support for creating vector single precision constants if -mvsx is
17016 used and we would create the constant using Altivec primitives.
17017
17018 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17019 Richard Sandiford <rdsandiford@googlemail.com>
17020
17021 PR rtl-optimization/47166
17022 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17023 mechanism for PRE_MODIFY and POST_MODIFY.
17024 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17025 reloadreg.
17026
17027 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17028
17029 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17030
17031 2011-01-22 Jan Hubicka <jh@suse.cz>
17032
17033 PR lto/47333
17034 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17035
17036 2011-01-22 Jan Hubicka <jh@suse.cz>
17037
17038 PR tree-optimization/43884
17039 PR lto/44334
17040 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17041 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17042
17043 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17044
17045 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17046 * config/s390/s390.c (s390_register_move_cost,
17047 s390_memory_move_cost): New.
17048 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17049
17050 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17051
17052 PR middle-end/47401
17053 * except.c (sjlj_assign_call_site_values): Move setting the
17054 crtl->uses_eh_lsda flag to ...
17055 (sjlj_mark_call_sites): ... here.
17056 (sjlj_emit_function_enter): Support NULL dispatch label.
17057 (sjlj_build_landing_pads): In a function with no landing pads
17058 that still has must-not-throw regions, generate code to register
17059 a personality function with empty LSDA.
17060
17061 2011-01-21 Richard Henderson <rth@redhat.com>
17062
17063 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17064
17065 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17066
17067 * compare-elim.c: New file.
17068 * Makefile.in (OBJS-common): Add it.
17069 (compare-elim.o): New.
17070 * common.opt (fcompare-elim): New.
17071 * opts.c (default_options_table): Add OPT_fcompare_elim.
17072 * tree-pass.h (pass_compare_elim_after_reload): New.
17073 * passes.c (init_optimization_passes): Add it.
17074 * recog.h: Protect against re-inclusion.
17075 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17076 * doc/invoke.texi (-fcompare-elim): Document it.
17077 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17078 * doc/tm.texi: Rebuild.
17079
17080 2011-01-22 Nick Clifton <nickc@redhat.com>
17081
17082 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17083 rx_split_fp_compare.
17084
17085 2011-01-22 Nick Clifton <nickc@redhat.com>
17086
17087 * config/rx/rx.md (UNSPEC_CONST): New.
17088 (deallocate_and_return): Wrap the amount popped off the stack in
17089 an UNSPEC_CONST in order to stop it being rejected by
17090 -mmax-constant-size.
17091 (pop_and_return): Add a "(return)" rtx.
17092 (call): Drop the immediate operand.
17093 (call_internal): Likewise.
17094 (call_value): Likewise.
17095 (call_value_internal): Likewise.
17096 (sibcall_internal): Likewise.
17097 (sibcall_value_internal): Likewise.
17098 (sibcall): Likewise. Generate an explicit call using
17099 sibcall_internal.
17100 (sibcall_value): Likewise.
17101 (mov<>): FAIL if a constant operand is not legitimate.
17102 (addsi3_unpsec): New pattern.
17103
17104 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17105 (ok_for_max_constant): New function.
17106 (gen_safe_add): New function.
17107 (rx_expand_prologue): Use gen_safe_add.
17108 (rx_expand_epilogue): Likewise.
17109 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17110 UNSPEC CONSTs.
17111
17112 2011-01-21 Jeff Law <law@redhat.com>
17113
17114 PR tree-optimization/47053
17115 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17116 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17117 statements are deleted.
17118 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17119 is nonempty, then purge dead edges and cleanup the CFG.
17120
17121 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17122
17123 PR debug/47402
17124 Temporarily revert:
17125 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17126 PR debug/47106
17127 * tree-dfa.c (create_var_ann): Mark variable as used.
17128
17129 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17130
17131 PR middle-end/45566
17132 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17133 notes from other section in hot/cold partitioning even if
17134 last_action is -3. Increment call_site_base.
17135
17136 PR rtl-optimization/47366
17137 * fwprop.c (forward_propagate_into): Return bool. If
17138 any changes are made, -fnon-call-exceptions is used and
17139 REG_EH_REGION note is present, call purge_dead_edges
17140 and return true if it purged anything.
17141 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17142 any EH edges were purged.
17143
17144 2011-01-21 Jeff Law <law@redhat.com>
17145
17146 PR rtl-optimization/41619
17147 * caller-save.c (setup_save_areas): Break out code to determine
17148 which hard regs are live across calls by examining the reload chains
17149 so that it is always used.
17150 Eliminate code which checked REG_N_CALLS_CROSSED.
17151
17152 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR tree-optimization/47355
17155 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17156 NOP has non-debug uses beyond PHIs in new_bb.
17157
17158 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17159
17160 PR debug/47106
17161 * cfgexpand.c (account_used_vars_for_block): Only account vars
17162 that are annotated as used.
17163 (estimated_stack_frame_size): Don't set TREE_USED.
17164 * tree-dfa.c (create_var_ann): Mark variable as used.
17165
17166 2011-01-21 Richard Guenther <rguenther@suse.de>
17167
17168 PR middle-end/47395
17169 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17170
17171 2011-01-21 Richard Guenther <rguenther@suse.de>
17172
17173 PR tree-optimization/47365
17174 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17175 (vn_reference_lookup_pieces): Adjust.
17176 (vn_reference_lookup): Likewise.
17177 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17178 (vn_reference_lookup_3): Only look through kills if in
17179 VN_WALKREWRITE mode.
17180 (vn_reference_lookup_pieces): Adjust.
17181 (vn_reference_lookup): Likewise.
17182 (visit_reference_op_load): Likewise.
17183 (visit_reference_op_store): Likewise.
17184 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17185 (compute_avail): Likewise.
17186 (eliminate): Likewise.
17187
17188 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17189
17190 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17191 DECL_IGNORED_P non-reg vars if they are used.
17192
17193 PR tree-optimization/47391
17194 * varpool.c (const_value_known_p): Return false if
17195 decl is volatile.
17196
17197 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17198
17199 PR bootstrap/47215
17200 * config/i386/i386.c (ix86_local_alignment): Handle
17201 case for va_list_type_node is nil.
17202 (ix86_canonical_va_list_type): Likewise.
17203
17204 2011-01-21 Alan Modra <amodra@gmail.com>
17205
17206 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17207 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17208
17209 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17210
17211 * config/arm/arm.md (define_attr type): Rename f_load
17212 and f_store to f_fpa_load and f_fpa_store. Update.
17213 (write_conflict): Deal with rename fallout.
17214 (*push_fp_multi): Likewise.
17215 * config/arm/fpa.md (f_load): Use f_fpa_load.
17216 (f_store): Use f_fpa_store.
17217 (*movsf_fpa): Likewise.
17218 (*movdf_fpa): Likewise.
17219 (*movxf_fpa): Likewise.
17220 (*thumb2_movsf_fpa): Likewise.
17221 (*thumb2_movdf_fpa): Likewise.
17222 (*thumb2_movxf_fpa): Likewise.
17223 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17224 f_loadd and f_stored.
17225 (*thumb2_movdi_vfp): Likewise.
17226 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17227 (*thumb2_movsi_vfp): Likewise.
17228 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17229 Use f_loads instead of f_load.
17230 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17231
17232 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17233
17234 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17235 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17236 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17237 (xtensa_mode_dependent_address_p): New function.
17238 (constantpool_address_p): Make static. Change return type to bool.
17239 Change argument type to const_rtx. Use CONST_INT_P predicate.
17240
17241 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17242
17243 PR debug/46583
17244 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17245
17246 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17247
17248 PR debug/47283
17249 * cfgexpand.c (expand_debug_expr): Instead of generating
17250 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17251 etc. handling.
17252
17253 2011-01-20 Richard Guenther <rguenther@suse.de>
17254
17255 PR middle-end/47370
17256 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17257 the pointer operand of MEM_REFs.
17258
17259 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17260
17261 PR tree-optimization/46130
17262 * ipa-split.c (consider_split): If return_bb contains non-virtual
17263 PHIs other than for retval or if split_function would not adjust it,
17264 refuse to split.
17265
17266 2011-01-20 Richard Guenther <rguenther@suse.de>
17267
17268 PR tree-optimization/47167
17269 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17270 Revert previous change, only avoid enumeral type changes.
17271
17272 2011-01-19 Mike Stump <mikestump@comcast.net>
17273
17274 * doc/tm.texi.in (BRANCH_COST): Englishify.
17275 * doc/tm.texi (BRANCH_COST): Likewise.
17276
17277 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17278
17279 PR c++/47291
17280 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17281 (gen_scheduled_generic_parms_dies): New functions.
17282 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17283 generation for the end of CU compilation.
17284 (dwarf2out_finish): Generate template parameters DIEs here.
17285
17286 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17287
17288 PR debug/46240
17289 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17290 debug bind stmt on merge edges.
17291
17292 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17293
17294 PR debug/47079
17295 PR debug/46724
17296 * function.c (instantiate_expr): Instantiate incoming rtl of
17297 implicit arguments, and recurse on VALUE_EXPRs.
17298 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17299 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17300
17301 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17302
17303 * c-parser.c (c_parser_for_statement): Initialize
17304 collection_expression.
17305
17306 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17307
17308 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17309
17310 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17311
17312 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17313 (LINK_SHLIB_SPEC): Don't use %(link_path).
17314 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17315
17316 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17317
17318 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17319 (NO_SHARED_LIB_SUPPORT): Remove.
17320 (LINK_SHLIB_SPEC): Remove one conditional definition.
17321
17322 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17323
17324 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17325 %{call_shared}.
17326 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17327 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17328 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17329 %{call_shared} and conditionals on these options not being passed.
17330 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17331 %{call_shared}.
17332
17333 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17334
17335 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17336 simplify.
17337
17338 * ipa-split.c: Spelling fixes.
17339
17340 2011-01-19 Richard Henderson <rth@redhat.com>
17341
17342 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17343 (*mulsi3): Likewise.
17344
17345 * longlong.h [__mn10300__] (count_leading_zeros): New.
17346 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17347 [__mn10300__] (add_ssaaaa, subddmmss): New.
17348 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17349 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17350
17351 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17352
17353 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17354
17355 2011-01-19 Richard Henderson <rth@redhat.com>
17356
17357 * config/mn10300/mn10300.md (addsi3_flags): New.
17358 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17359 (subsi3_flags, subc_internal, subdi3): New.
17360 (subdi3_internal, *subdi3_degenerate): New.
17361 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17362
17363 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17364 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17365 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17366 * config/mn10300/mn10300-protos.h: Update.
17367 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17368 (return_ret): Likewise. Rename from return_internal_regs.
17369 (return_internal): Remove.
17370
17371 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17372 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17373 (mn10300_legitimate_constant_p): Likewise.
17374 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17375 (mn10300_frame_size): New.
17376 (mn10300_expand_prologue): Use it.
17377 (mn10300_expand_epilogue): Likewise.
17378 (mn10300_initial_offset): Likewise.
17379 * config/mn10300/mn10300-protos.h: Update.
17380 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17381 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17382 (prologue, epilogue, return_internal): Tidy output code.
17383 (mn10300_store_multiple_operation, return): Likewise.
17384 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17385 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17386 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17387 (load_pic, am33_load_pic): New.
17388 (mn10300_load_pic0, mn10300_load_pic1): New.
17389
17390 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17391 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17392 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17393 (cc_flags_for_mode, cc_flags_for_code): New.
17394 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17395 overflow flag is not valid. Validate that the flags we need
17396 for the comparison are valid.
17397 (mn10300_output_cmp): Remove.
17398 (mn10300_output_add): New.
17399 (mn10300_select_cc_mode): Use cc_flags_for_code.
17400 (mn10300_split_cbranch): New.
17401 (mn10300_match_ccmode): New.
17402 (mn10300_split_and_operand_count): New.
17403 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17404 to the function.
17405 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17406 (addsi3): ... here. Use mn10300_output_add.
17407 (*addsi3_flags): New.
17408 (*am33_subsi3, *mn10300_subsi3): Merge...
17409 (subsi3): ... here. Use attribute isa.
17410 (*subsi3_flags): New.
17411 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17412 when possible.
17413 (*am33_andsi3, *mn10300_andsi3): Merge...
17414 (andsi3): ... here.
17415 (*andsi3_flags): New.
17416 (andsi3 splitters): New.
17417 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17418 (iorsi3): ... here.
17419 (*iorsi3_flags): New.
17420 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17421 (xorsi3): ... here.
17422 (*xorsi3_flags): New.
17423 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17424 (one_cmplsi2): ... here.
17425 (*one_cmplsi2_flags): New.
17426 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17427 instead of "dax" in constraints. Use mn10300_split_cbranch.
17428 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17429 use matching constraints to eliminate a self-comparison.
17430 (*integer_conditional_branch): Rename from integer_conditional_branch.
17431 Use int_mode_flags to match CC_REG.
17432 (*cbranchsi4_btst, *btstsi): New.
17433 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17434 mn10300_split_cbranch.
17435 (*am33_cmpsf): Rename from am33_cmpsf.
17436 (*float_conditional_branch): Rename from float_conditional_branch.
17437 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17438 (zero_extendqisi2): ... here.
17439 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17440 (zero_extendhisi2): ... here.
17441 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17442 (extendqisi2): ... here.
17443 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17444 (extendhisi2): ... here.
17445 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17446 (ashlsi3): ... here.
17447 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17448 (lshrsi3): ... here.
17449 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17450 (ashrsi3): ... here.
17451 (consecutive add peephole): Remove.
17452 * config/mn10300/predicates.md (label_ref_operand): New.
17453 (int_mode_flags): New.
17454 (CCZN_comparison_operator): New.
17455
17456 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17457 (throughput_42_latency_43): New reservation.
17458 (mulsidi3, umulsidi3): New expanders.
17459 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17460 the MDR register to allocation; separately allocate the low and
17461 high parts of the DImode result.
17462 (umulsidi3_internal): Similarly.
17463 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17464 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17465 (udivsi3, umodsi3): Remove.
17466 (udivmodsi4, divmodsi4): New expanders.
17467 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17468 (*divmodsi4): Simiarly.
17469 (ext_internal): New.
17470
17471 * config/mn10300/constraints.md ("z"): New constraint.
17472 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17473 (FIXED_REGISTERS): Don't fix MDR.
17474 (CALL_USED_REGSITERS): Reformat nicely.
17475 (REG_ALLOC_ORDER): Add MDR.
17476 (enum regclass): Add MDR_REGS.
17477 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17478 (IRA_COVER_CLASSES): Add MDR_REGS.
17479 (REGNO_REG_CLASS): Handle MDR_REG.
17480 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17481 (mn10300_register_move_cost): Likewise.
17482 * config/mn10300/mn10300.md (MDR_REG): New.
17483 (*movsi_internal): Handle moves to/from MDR_REGS.
17484
17485 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17486 POST_MODIFY.
17487 (mn10300_secondary_reload): Tidy combination reload classes.
17488 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17489 addresses for AM33. Allow symbolic offsets for reg+imm.
17490 (mn10300_regno_in_class_p): New.
17491 (mn10300_legitimize_reload_address): New.
17492 * config/mn10300/mn10300.h (enum reg_class): Remove
17493 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17494 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17495 SP_OR_GENERAL_REGS.
17496 (REG_CLASS_NAMES): Update to match.
17497 (REG_CLASS_CONTENTS): Likewise.
17498 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17499 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17500 (REGNO_IN_RANGE_P): Remove.
17501 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17502 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17503 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17504 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17505 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17506 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17507 (REGNO_GENERAL_P): New.
17508 (HAVE_POST_MODIFY_DISP): New.
17509 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17510 (LEGITIMIZE_RELOAD_ADDRESS): New.
17511 * config/mn10300/mn10300-protos.h: Update.
17512
17513 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17514 DATA_REGS for AM33 stack-pointer destination.
17515 (mn10300_preferred_output_reload_class): Likewise.
17516 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17517 into a form appropriate for ...
17518 (TARGET_SECONDARY_RELOAD): New.
17519 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17520 * config/mn10300/mn10300-protos.h: Update.
17521 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17522 reload_insi; use the "A" constraint for the scratch; handle AM33
17523 moves of sp to non-address registers.
17524
17525 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17526 (*movqi_internal): ... here.
17527 (*am33_movhi, *mn10300_movhi): Merge into...
17528 (*movhi_internal): ... here.
17529 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17530 as the source/destination of moves from/to SP.
17531 (movsf): Only allow for AM33-2.
17532 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17533 any integer constant constraint. Only allow for AM33-2. Tidy
17534 all of the alternative outputs.
17535 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17536 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17537 for MN103.
17538 (udivsi3, umodsi3): New patterns for MN103 only.
17539
17540 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17541
17542 * doc/tm.texi.in: Spell out that a lack of register class unions
17543 can lead to ICEs.
17544 * doc/tm.texi: Regenerate.
17545
17546 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17547
17548 PR rtl-optimization/47337
17549 * dce.c (check_argument_store): New function.
17550 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17551
17552 PR tree-optimization/47290
17553 * tree-eh.c (infinite_empty_loop_p): New function.
17554 (cleanup_empty_eh): Use it.
17555
17556 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17557
17558 PR target/46997
17559 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17560 (a64_expand_widen_sum): Ditto.
17561 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17562 (vec_extract_evenodd_help): Ditto.
17563 (vec_extract_evenv4hi): Ditto.
17564 (vec_extract_oddv4hi): Ditto.
17565 (vec_extract_evenv2si): Ditto.
17566 (vec_extract_oddv2si): Ditto.
17567 (vec_extract_evenv2sf): Ditto.
17568 (vec_extract_oddv2sf): Ditto.
17569 (vec_pack_trunc_v4hi: Ditto.
17570 (vec_pack_trunc_v2si): Ditto.
17571 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17572 (vec_interleave_highv8qi): Ditto.
17573 (mix1_r): Ditto.
17574 (vec_extract_oddv8qi): Ditto.
17575 (vec_interleave_lowv4hi): Ditto.
17576 (vec_interleave_highv4hi): Ditto.
17577 (vec_interleave_lowv2si): Ditto.
17578 (vec_interleave_highv2si): Ditto.
17579
17580 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17581
17582 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17583 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17584 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17585 (pa_c_mode_for_suffix): New.
17586 (TARGET_EXPAND_BUILTIN): Define.
17587 (TARGET_C_MODE_FOR_SUFFIX): Define.
17588 (pa_builtins): Define.
17589 (pa_init_builtins): Register __float128 type and init new support
17590 builtins.
17591 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17592 * config/pa/quadlib.c (_U_Qfcopysign): New.
17593
17594 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17595
17596 PR middle-end/46894
17597 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17598 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17599 are defined.
17600
17601 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17602
17603 PR tree-optimization/47179
17604 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17605 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17606
17607 2011-01-18 Richard Guenther <rguenther@suse.de>
17608
17609 PR rtl-optimization/47216
17610 * emit-rtl.c: Include tree-flow.h.
17611 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17612 of replicating it with different semantics.
17613 * Makefile.in (emit-rtl.o): Adjust.
17614
17615 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17616
17617 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17618 (cortex_a9_dp): Handle neon types correctly.
17619
17620 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17621
17622 PR rtl-optimization/47299
17623 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17624 subtarget. Use normal multiplication if both operands are constants.
17625 * expmed.c (expand_widening_mult): Don't try to optimize constant
17626 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17627 before using it.
17628
17629 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17630
17631 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17632 spacing after 'e.g.', typos, comma, hyphenation.
17633
17634 2011-01-17 Richard Henderson <rth@redhat.com>
17635
17636 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17637 (rx_restricted_mem_operand): New.
17638 (rx_shift_operand): Use register_operand.
17639 (rx_source_operand, rx_compare_operand): Likewise.
17640 * config/rx/rx.md (addsi3_flags): New expander.
17641 (adddi3): Rewrite as expander.
17642 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17643 (subsi3_flags): New expander.
17644 (subdi3): Rewrite as expander.
17645 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17646
17647 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17648 (rx_init_builtins): Remove sat builtin.
17649 (rx_expand_builtin): Likewise.
17650 * config/rx/rx.md (ssaddsi3): New.
17651 (*sat): Rename from sat. Represent the CC_REG input.
17652
17653 * config/rx/predicates.md (rshift_operator): New.
17654 * config/rx/rx.c (rx_expand_insv): Remove.
17655 * config/rx/rx-protos.h: Update.
17656 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17657 operand to the canonical position.
17658 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17659 (*bitclr, *bitclr_in_memory): Similarly.
17660 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17661 (insv): Retain the zero_extract in the expansion.
17662
17663 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17664 (bswaphi2, bitinvert, revw): Likewise.
17665
17666 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17667 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17668 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17669 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17670 (bitset, bitset_in_memory): Likewise.
17671 (bitinvert, bitinvert_in_memory): Likewise.
17672 (bitclr, bitclr_in_memory): Likewise.
17673 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17674 (rx_strend, rx_cmpstrn): Likewise.
17675 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17676 (bitop peep2 patterns): Remove.
17677
17678 * config/rx/rx.c (rx_match_ccmode): New.
17679 * config/rx/rx-protos.h: Update.
17680 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17681 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17682 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17683 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17684 (fix_truncsfsi2, floatsisf2): Likewise.
17685 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17686 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17687 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17688 (*subsi3_flags, *xorsi3_flags): New.
17689
17690 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17691
17692 * config/rx/rx.c (rx_print_operand): Remove workaround for
17693 unsplit comparison operations.
17694
17695 * config/rx/rx.md (movsicc): Split after reload.
17696 (*movsicc): Merge *movsieq and *movsine via match_operator.
17697 (*stcc): New pattern.
17698
17699 * config/rx/rx.c (rx_float_compare_mode): Remove.
17700 * config/rx/rx.h (rx_float_compare_mode): Remove.
17701 * config/rx/rx.md (cstoresi4): Split after reload.
17702 (*sccc): New pattern.
17703
17704 * config/rx/predicates.md (label_ref_operand): New.
17705 (rx_z_comparison_operator): New.
17706 (rx_zs_comparison_operator): New.
17707 (rx_fp_comparison_operator): New.
17708 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17709 Validate that the flags are set properly for the comparison.
17710 (rx_gen_cond_branch_template): Remove.
17711 (rx_cc_modes_compatible): Remove.
17712 (mode_from_flags): New.
17713 (flags_from_code): Rename from flags_needed_for_conditional.
17714 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17715 (rx_select_cc_mode): Likewise.
17716 (rx_split_fp_compare): New.
17717 (rx_split_cbranch): New.
17718 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17719 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17720 (*cbranchsf4): Similarly.
17721 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17722 match_operator and rx_split_cbranch.
17723 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17724 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17725 (*cmpsi): Rename from cmpsi.
17726 (*tstsi): Rename from tstsi.
17727 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17728 (*conditional_branch): Rename from conditional_branch.
17729 (*reveresed_conditional_branch): Remove.
17730 (b<code>): Remove expander.
17731 * config/rx/rx-protos.h: Update.
17732
17733 * config/rx/rx.c (rx_compare_redundant): Remove.
17734 * config/rx/rx.md (cmpsi): Don't use it.
17735 * config/rx/rx-protos.h: Update.
17736
17737 * config/rx/rx-modes.def (CC_F): New mode.
17738 * config/rx/rx.c (rx_select_cc_mode): New.
17739 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17740 * config/rx/rx-protos.h: Update.
17741
17742 2011-01-17 Richard Henderson <rth@redhat.com>
17743
17744 * except.c (dump_eh_tree): Fix stray ; after for statement.
17745
17746 2011-01-17 Richard Guenther <rguenther@suse.de>
17747
17748 PR tree-optimization/47313
17749 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17750 handling before copying the body. Properly deal with
17751 by-reference result in SSA form.
17752
17753 2011-01-17 Ian Lance Taylor <iant@google.com>
17754
17755 PR target/47219
17756 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17757 (struct_value_alias_set): Don't define.
17758 (sparc_option_override): Don't set sparc_sr_alias_set and
17759 struct_value_alias_set.
17760 (save_or_restore_regs): Use gen_frame_mem rather than calling
17761 set_mem_alias_set.
17762 (sparc_struct_value_rtx): Likewise.
17763
17764 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17765
17766 PR target/47318
17767 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17768 (_mm_maskstore_pd): Likewise.
17769 (_mm_maskload_ps): Likewise.
17770 (_mm_maskstore_ps): Likewise.
17771 (_mm256_maskload_pd): Change mask to __m256i.
17772 (_mm256_maskstore_pd): Likewise.
17773 (_mm256_maskload_ps): Likewise.
17774 (_mm256_maskstore_ps): Likewise.
17775
17776 * config/i386/i386-builtin-types.def: Updated.
17777 (ix86_expand_special_args_builtin): Likewise.
17778
17779 * config/i386/i386.c (bdesc_special_args): Update
17780 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17781 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17782 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17783 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17784
17785 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17786 Use <avxpermvecmode> on mask register.
17787 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17788
17789 2011-01-17 Olivier Hainque <hainque@adacore.com>
17790 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17791 Eric Botcazou <ebotcazou@adacore.com>
17792
17793 PR target/46655
17794 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17795 if <= USHRT_MAX in 32-bit mode.
17796
17797 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17798
17799 * doc/install.texi (Configuration, Specific): Wrap long
17800 lines in examples. Allow line wrapping in long options
17801 and URLs where beneficial for PDF output.
17802
17803 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17804
17805 * config/mips/mips.c (mips_classify_symbol): Don't return
17806 SYMBOL_PC_RELATIVE for nonlocal labels.
17807
17808 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17809
17810 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17811
17812 2011-01-15 Jan Hubicka <jh@suse.cz>
17813
17814 PR tree-optimization/47276
17815 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17816 declarations as needed.
17817
17818 2011-01-15 Martin Jambor <mjambor@suse.cz>
17819
17820 * common.opt (fdevirtualize): New flag.
17821 * doc/invoke.texi (Option Summary): Document it.
17822 * opts.c (default_options_table): Add devirtualize flag.
17823 * ipa-prop.c (detect_type_change): Return immediately if
17824 devirtualize flag is not set.
17825 (detect_type_change_ssa): Likewise.
17826 (compute_known_type_jump_func): Likewise.
17827 (ipa_analyze_virtual_call_uses): Likewise.
17828
17829 2011-01-14 Martin Jambor <mjambor@suse.cz>
17830
17831 PR tree-optimization/45934
17832 PR tree-optimization/46302
17833 * ipa-prop.c (type_change_info): New type.
17834 (stmt_may_be_vtbl_ptr_store): New function.
17835 (check_stmt_for_type_change): Likewise.
17836 (detect_type_change): Likewise.
17837 (detect_type_change_ssa): Likewise.
17838 (compute_complex_assign_jump_func): Check for dynamic type change.
17839 (compute_complex_ancestor_jump_func): Likewise.
17840 (compute_known_type_jump_func): Likewise.
17841 (compute_scalar_jump_functions): Likewise.
17842 (ipa_analyze_virtual_call_uses): Likewise.
17843 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17844
17845 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17846
17847 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17848 * config/i386/i386.opt (msse5): New Alias.
17849
17850 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17851
17852 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17853 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17854 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17855 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17856
17857 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17858
17859 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17860 -mcpu options.
17861 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17862 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17863 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17864 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17865 Likewise.
17866 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17867
17868 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17869
17870 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17871
17872 2011-01-14 Mike Stump <mikestump@comcast.net>
17873
17874 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17875 * config/fr30/fr30.md: Likweise
17876 (movsi_push): Likewise.
17877 (movsi_pop): Likewise.
17878 (enter_func): Likewise.
17879 * config/moxie/moxie.md (movsi_push): Likewise.
17880 (movsi_pop): Likewise.
17881
17882 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17883
17884 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17885 %{no_archive} %{exact_version}.
17886 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17887 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17888 %{no_archive} %{exact_version}.
17889 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17890 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17891 * config/mips/vxworks.h: Likewise.
17892
17893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17894
17895 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17896
17897 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17898
17899 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17900 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17901
17902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17903
17904 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17905 -nodefaultlib.
17906
17907 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17908
17909 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17910 for mcpu not cpu.
17911 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17912 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17913 not cpu.
17914 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17915 Don't handle -shlib.
17916
17917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17918
17919 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17920 (CC1_SPEC): Don't handle -profile.
17921
17922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17923
17924 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17925 * config/mips/mips.h (CC1_SPEC): Likewise.
17926
17927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17928
17929 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17930 * config/mips/mips.h (CC1_SPEC): Likewise.
17931
17932 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17933
17934 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17935 * config/m32r/linux.h (LINK_SPEC): Likewise.
17936 * config/mips/linux.h (LINK_SPEC): Likewise.
17937 * config/mips/linux64.h (LINK_SPEC): Likewise.
17938 * config/sparc/linux.h (LINK_SPEC): Likewise.
17939 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17940 LINK_SPEC): Likewise.
17941 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17942
17943 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17944
17945 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17946 %{version:-v}.
17947 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17948
17949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17950
17951 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17952 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17953
17954 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17955
17956 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17957
17958 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17959
17960 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17961 supports -Bstatic/-Bdynamic.
17962 * configure: Regenerate.
17963
17964 2011-01-14 Jan Hubicka <jh@suse.cz>
17965 Jack Howarth <howarth@bromo.med.uc.edu>
17966
17967 PR target/46037
17968 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17969 when checking debug_info_level. Test write_symbols instead of
17970 debug_hooks->var_location when setting flag_var_tracking_uninit.
17971
17972 2011-01-14 Richard Guenther <rguenther@suse.de>
17973
17974 PR tree-optimization/47179
17975 * target.def (ref_may_alias_errno): New target hook.
17976 * targhooks.h (default_ref_may_alias_errno): Declare.
17977 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17978 (default_ref_may_alias_errno): New function.
17979 * target.h (struct ao_ref_s): Declare.
17980 * tree-ssa-alias.c: Include target.h.
17981 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17982 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17983 (targhooks.o): Likewise.
17984 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17985 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17986
17987 2011-01-14 Richard Guenther <rguenther@suse.de>
17988
17989 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17990
17991 2011-01-14 Richard Guenther <rguenther@suse.de>
17992
17993 PR tree-optimization/47280
17994 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17995 return CFG changes.
17996 (tree_ssa_forward_propagate_single_use_vars): Deal with
17997 CFG changes from associate_plusminus.
17998
17999 2011-01-14 Richard Guenther <rguenther@suse.de>
18000
18001 PR middle-end/47281
18002 Revert
18003 2011-01-11 Richard Guenther <rguenther@suse.de>
18004
18005 PR tree-optimization/46076
18006 * tree-ssa.c (useless_type_conversion_p): Conversions from
18007 unprototyped to empty argument list function types are useless.
18008
18009 2011-01-14 Richard Guenther <rguenther@suse.de>
18010
18011 PR tree-optimization/47286
18012 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18013
18014 2011-01-14 Martin Jambor <mjambor@suse.cz>
18015
18016 PR middle-end/46823
18017 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18018
18019 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18020
18021 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18022 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18023 * config/xtensa/xtensa.c (xtensa_libcall_value,
18024 xtensa_function_value_regno_p): New functions.
18025 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18026
18027 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18028
18029 PR c++/47213
18030 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18031 PE specific hook.
18032 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18033 New function prototype.
18034 * config/i386/winnt.c (i386_pe_assemble_visibility):
18035 Warn only if attribute was specified by user.
18036
18037 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18038
18039 PR target/47251
18040 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18041 floating point.
18042 (floatunsdidf2_fcfidu): Ditto.
18043
18044 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18045
18046 * config/s390/s390.c (print_operand_address): Replace 'error' with
18047 'output_operand_lossage'.
18048 (print_operand): Likewise.
18049
18050 2011-01-13 Jeff Law <law@redhat.com>
18051
18052 PR rtl-optimization/39077
18053 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18054 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18055 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18056 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18057 * gcse.c (prune_insertions_deletions): New function.
18058 (compute_pre_data): Use it.
18059
18060 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18061
18062 PR debug/PR46973
18063 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18064 static function.
18065 (prune_unused_types_mark): Use it.
18066
18067 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18068
18069 PR rtl-optimization/45352
18070 * sel-sched.c: Update copyright years.
18071 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18072 in the advancing loop when we have issued issue_rate insns.
18073
18074 2011-01-12 Richard Henderson <rth@redhat.com>
18075
18076 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18077 (TARGET_MD_ASM_CLOBBERS): New.
18078
18079 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18080 (TARGET_DELEGITIMIZE_ADDRESS): New.
18081
18082 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18083 (clzsi2, *bsch): New patterns.
18084
18085 * config/mn10300/mn10300.md (INT): New mode iterator.
18086 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18087
18088 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18089 flag_split_wide_types.
18090
18091 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18092 (mn10300_trampoline_init): Rewrite without a template, an immediate
18093 load and a direct branch.
18094 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18095
18096 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18097
18098 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18099 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18100 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18101 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18102
18103 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18104
18105 PR debug/47209
18106 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18107 of type.
18108
18109 2011-01-12 Jan Hubicka <jh@suse.cz>
18110
18111 PR driver/47244
18112 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18113 (PLUGIN_COND_CLOSE): New macro.
18114 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18115
18116 2011-01-12 Richard Guenther <rguenther@suse.de>
18117
18118 PR lto/47259
18119 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18120 register variables in a MEM_REF.
18121
18122 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18123
18124 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18125 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18126 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18127 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18128 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18129 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18130 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18131 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18132 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18133 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18134 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18135 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18136 * config/gnu-user.h: New. Copied from linux.h.
18137 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18138 GNU_USER_TARGET_STARTFILE_SPEC.
18139 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18140 GNU_USER_TARGET_ENDFILE_SPEC.
18141 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18142 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18143 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18144 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18145 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18146 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18147 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18148 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18149 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18150 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18151 * config/arm/linux-eabi.h (CC1_SPEC): Use
18152 GNU_USER_TARGET_CC1_SPEC.
18153 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18154 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18155 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18156 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18157 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18158 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18159 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18160 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18161
18162 2011-01-12 Richard Guenther <rguenther@suse.de>
18163
18164 PR other/46946
18165 * doc/invoke.texi (ffast-math): Document it is turned on
18166 with -Ofast.
18167
18168 2011-01-12 Jan Hubicka <jh@suse.cz>
18169
18170 PR tree-optimization/47233
18171 * opts.c (common_handle_option): Disable ipa-reference with profile
18172 feedback.
18173
18174 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18175
18176 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18177 error message.
18178
18179 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18180
18181 * c-parser.c (c_lex_one_token): Updated and reindented some
18182 comments. No changes in code.
18183
18184 2011-01-11 Ian Lance Taylor <iant@google.com>
18185
18186 * godump.c (go_output_var): Don't output the variable if there is
18187 already a type with the same name.
18188
18189 2011-01-11 Ian Lance Taylor <iant@google.com>
18190
18191 * godump.c (go_format_type): Don't generate float80.
18192
18193 2011-01-11 Richard Henderson <rth@redhat.com>
18194
18195 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18196 declaration. Rewrite for both speed and size.
18197 (mn10300_address_cost_1): Remove.
18198 (mn10300_register_move_cost): New.
18199 (mn10300_memory_move_cost): New.
18200 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18201 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18202 extensions, shifts, BSWAP, CLZ.
18203 (mn10300_wide_const_load_uses_clr): Remove.
18204 (TARGET_REGISTER_MOVE_COST): New.
18205 (TARGET_MEMORY_MOVE_COST): New.
18206 * config/mn10300/mn10300-protos.h: Update.
18207 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18208
18209 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18210 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18211 * config/mn10300/mn10300-protos.h: Update.
18212 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18213 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18214 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18215 (*test_int_bitfield, *test_byte_bitfield): Remove.
18216 (*bit_test, *subreg_bit_test): Remove.
18217 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18218
18219 * config/mn10300/constraints.md ("c"): Rename from "A".
18220 ("A", "D"): New constraint letters.
18221 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18222 (fmssf4, fnmasf4, fnmssf4): Likewise.
18223
18224 * config/mn10300/mn10300.md (isa): New attribute.
18225 (enabled): New attribute.
18226
18227 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18228 (abssf2, negsf2): Define only for hardware fp.
18229 (sqrtsf2): Reformat.
18230 (addsf3, subsf3, mulsf3): Merge expander and insn.
18231
18232 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18233 (DEBUGGER_AUTO_OFFSET): Remove.
18234 (DEBUGGER_ARG_OFFSET): Remove.
18235
18236 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18237 Emit register stores with the same offsets as the hardware.
18238 (mn10300_store_multiple_operation): Don't check that the register
18239 save offsets are monotonic.
18240 * config/mn10300/mn10300-protos.h: Update.
18241
18242 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18243
18244 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18245 in terms of the value on the stack, not the MDR register.
18246
18247 2011-01-11 Jan Hubicka <jh@suse.cz>
18248
18249 PR lto/45721
18250 PR lto/45375
18251 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18252 (symbol_alias_set_destroy, symbol_alias_set_contains,
18253 propagate_aliases_backward): Declare.
18254 * lto-streamer-out.c (struct sets): New sturcture.
18255 (trivally_defined_alias): New function.
18256 (output_alias_pair_p): Rewrite.
18257 (output_unreferenced_globals): Fix output of alias pairs.
18258 (produce_symtab): Likewise.
18259 * ipa.c (function_and_variable_visibility): Set weak alias destination
18260 as needed in lto.
18261 * varasm.c (symbol_alias_set_t): Remove.
18262 (symbol_alias_set_destroy): Export.
18263 (propagate_aliases_forward, propagate_aliases_backward): New functions
18264 based on ...
18265 (compute_visible_aliases): ... this one; remove.
18266 (trivially_visible_alias): New
18267 (trivially_defined_alias): New.
18268 (remove_unreachable_alias_pairs): Rewrite.
18269 (finish_aliases_1): Reorganize code checking if alias is defined.
18270 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18271 in LTO mode.
18272
18273 2011-01-11 Richard Guenther <rguenther@suse.de>
18274
18275 PR tree-optimization/46076
18276 * tree-ssa.c (useless_type_conversion_p): Conversions from
18277 unprototyped to empty argument list function types are useless.
18278
18279 2011-01-11 Richard Guenther <rguenther@suse.de>
18280
18281 PR middle-end/45235
18282 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18283 volatile MEMs as MEM_READONLY_P.
18284
18285 2011-01-11 Richard Guenther <rguenther@suse.de>
18286
18287 PR tree-optimization/47239
18288 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18289
18290 2011-01-11 Jeff Law <law@redhat.com>
18291
18292 PR tree-optimization/47086
18293 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18294 IVs from statements that might throw.
18295
18296 2011-01-10 Jan Hubicka <jh@suse.cz>
18297
18298 PR lto/45375
18299 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18300
18301 2011-01-10 Jan Hubicka <jh@suse.cz>
18302
18303 PR lto/45375
18304 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18305 when correcting profile.
18306
18307 2011-01-10 Jan Hubicka <jh@suse.cz>
18308
18309 PR lto/46083
18310 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18311 DECL_FINI_PRIORITY.
18312 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18313 Restore DECL_FINI_PRIORITY.
18314
18315 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18316
18317 * doc/gimple.texi: Fix quoting of multi-word return values in
18318 @deftypefn statements. Ensure presence of return value. Wrap
18319 overlong @deftypefn lines.
18320 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18321 descriptions of removed functions.
18322 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18323 of multi-word return value in @deftypefn statement.
18324
18325 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18326
18327 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18328 (Conditional Expressions, Logical Operators)
18329 (Statement and operand traversals): Do not indent smallexample
18330 code. Fix duplicate function argument in example.
18331
18332 2011-01-10 Jeff Law <law@redhat.com>
18333
18334 PR tree-optimization/47141
18335 * ipa-split.c (split_function): Handle case where we are
18336 returning a value and the return block has a virtual operand phi.
18337
18338 2011-01-10 Jan Hubicka <jh@suse.cz>
18339
18340 PR tree-optimization/47234
18341 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18342 (pass_feedback_split_functions): Declare.
18343 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18344 tree-profile.
18345 * ipa-split.c (gate_split_functions): Update comments; disable
18346 split-functions for profile_arc_flag and branch_probabilities.
18347 (gate_feedback_split_functions): New function.
18348 (execute_feedback_split_functions): New function.
18349 (pass_feedback_split_functions): New global var.
18350
18351 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18352
18353 PR lto/46760
18354 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18355 calling gimple_call_set_cannot_inline.
18356
18357 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18358
18359 * config/darwin-sections.def: Remove unused section.
18360
18361 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18362
18363 PR c++/47218
18364 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18365
18366 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18367
18368 PR objc/47232
18369 * c-parser.c (c_parser_declaration_or_fndef): Improved
18370 error message.
18371
18372 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18373
18374 * config/i386/winnt.c (i386_pe_start_function): Make sure
18375 to switch back to function's section.
18376
18377 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18378
18379 PR gcc/46902
18380 PR testsuite/46912
18381 * plugin.c: Move include of dlfcn.h from here...
18382 * system.h: ... to here.
18383
18384 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18385
18386 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18387 file name.
18388 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18389 two extra empty pages in PDF output.
18390
18391 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18392
18393 PR objc/47078
18394 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18395 for error recovery purposes behave as if it was not specified so
18396 that the default type is usd.
18397
18398 2011-01-07 Jan Hubicka <jh@suse.cz>
18399
18400 PR tree-optmization/46469
18401 * ipa.c (function_and_variable_visibility): Clear needed flags on
18402 nodes with external decls; handle weakrefs merging correctly.
18403
18404 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18405
18406 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18407 not false.
18408
18409 2011-01-07 Jan Hubicka <jh@suse.cz>
18410
18411 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18412 and no longer claim that gold is required for linker plugin.
18413 * configure: Regenerate.
18414 * gcc.c (PLUGIN_COND): New macro.
18415 (LINK_COMMAND_SPEC): Use it.
18416 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18417 * config.in (HAVE_LTO_PLUGIN): New.
18418 * configure.ac (--with-lto-plugin): New parameter; autodetect
18419 HAVE_LTO_PLUGIN.
18420
18421 2011-01-07 Jan Hubicka <jh@suse.cz>
18422
18423 PR tree-optimization/46367
18424 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18425 when we can update original.
18426 (cgraph_mark_inline_edge): Sanity check.
18427 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18428
18429 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18430
18431 * config/spu/spu.h (ASM_COMMENT_START): Define.
18432
18433 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18434
18435 PR driver/42445
18436 * gcc.c (%>S): New.
18437 (SWITCH_KEEP_FOR_GCC): Likewise.
18438 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18439 (do_spec_1): Handle "%>".
18440
18441 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18442
18443 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18444
18445 PR target/47201
18446 * config/i386/i386.c (ix86_delegitimize_address): If
18447 simplify_gen_subreg fails, return orig_x.
18448
18449 PR bootstrap/47187
18450 * value-prof.c (gimple_stringop_fixed_value): Handle
18451 lhs of the call properly.
18452
18453 2011-01-07 Jan Hubicka <jh@suse.cz>
18454
18455 PR lto/45375
18456 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18457
18458 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18459
18460 * target.def (function_switched_text_sections): New hook.
18461 * doc/tm.texi: Regenerated.
18462 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18463 * final.c (default_function_switched_text_sections): New.
18464 (final_scan_insn): Call function_switched_text_sections when a
18465 mid-function section change occurs.
18466 * output.h (default_function_switched_text_sections): Declare.
18467 * config/darwin-protos.h (darwin_function_switched_text_sections):
18468 Likewise.
18469 * config/darwin.c (darwin_function_switched_text_sections): New.
18470 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18471
18472 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18473
18474 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18475 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18476 the secondary code fragment when outputting for DWARF == 2.
18477
18478 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18479
18480 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18481 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18482 Remove.
18483 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18484 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18485
18486 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18487
18488 PR debug/46704
18489 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18490 when it is not empty.
18491
18492 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18493
18494 Bobcat Enablement
18495 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18496 (case ${target}): Add btver1.
18497 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18498 -march=native recognize btver1 processors.
18499 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18500 btver1 def_and_undef
18501 * config/i386/i386.c (struct processor_costs btver1_cost): New
18502 btver1 cost table.
18503 (m_BTVER1): New definition.
18504 (m_AMD_MULTIPLE): Includes m_BTVER1.
18505 (initial_ix86_tune_features): Add btver1 tune.
18506 (processor_target_table): Add btver1 entry.
18507 (static const char *const cpu_names): Add btver1 entry.
18508 (software_prefetching_beneficial_p): Add btver1.
18509 (ix86_option_override_internal): Add btver1 instruction sets.
18510 (ix86_issue_rate): Add btver1.
18511 (ix86_adjust_cost): Add btver1.
18512 * config/i386/i386.h (TARGET_BTVER1): New definition.
18513 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18514 (enum processor_type): Add PROCESSOR_BTVER1.
18515 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18516
18517 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18518
18519 PR target/43309
18520 * config/i386/i386.c (legitimize_tls_address)
18521 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18522 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18523 (tls_initial_exec_64_sun): New pattern.
18524
18525 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18526
18527 * doc/invoke.texi (Overall Options): Improve wording and markup
18528 of the description of -wrapper.
18529
18530 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18531
18532 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18533 rdynamic, threads): New Driver options.
18534
18535 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18536
18537 PR target/38118
18538 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18539 if coming from .tdata.
18540 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18541
18542 2011-01-06 Jan Hubicka <jh@suse.cz>
18543
18544 PR lto/47188
18545 * collect2.c (main): Do not enable LTOmode when plugin is active.
18546
18547 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18548
18549 PR other/45915
18550 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18551 --version output if supported.
18552 * configure: Regenerate.
18553
18554 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18555
18556 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18557 Driver options.
18558
18559 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18560
18561 PR c/47150
18562 * c-convert.c (convert): When converting a complex expression
18563 other than COMPLEX_EXPR to a different complex type, ensure
18564 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18565 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18566 when converting COMPLEX_TYPE.
18567
18568 2011-01-06 Ira Rosen <irar@il.ibm.com>
18569
18570 PR tree-optimization/47139
18571 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18572 only the last reduction value is used outside the loop. Update
18573 documentation.
18574
18575 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18576
18577 * config/rtems.opt: New.
18578 * config.gcc (*-*-rtems*): Use rtems.opt.
18579
18580 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18581
18582 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18583 processors do not support 3DNow instructions.
18584
18585 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18586
18587 * config/spu/spu.c (spu_option_override): Set parameter
18588 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18589
18590 2011-01-05 Jan Hubicka <jh@suse.cz>
18591
18592 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18593 at the command line.
18594
18595 2011-01-05 Martin Jambor <mjambor@suse.cz>
18596
18597 PR lto/47162
18598 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18599 deltas on streamed outgoing edges.
18600 (output_node_opt_summary): Output info for outgoing edges only when
18601 the node is in new parameter set.
18602 (output_cgraph_opt_summary): New parameter set, passed to the two
18603 aforementioned functions. Update its forward declaration and its
18604 callee too.
18605
18606 2011-01-05 Tom Tromey <tromey@redhat.com>
18607
18608 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18609 operator to c_finish_omp_atomic.
18610 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18611 (build_unary_op): Update.
18612 (build_modify_expr): Update.
18613 (build_asm_expr): Update.
18614
18615 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18616
18617 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18618 newly inserted insns.
18619 (pad_bb): Likewise.
18620 (spu_emit_branch_hint): Likewise.
18621 (insert_hbrp_for_ilb_runout): Likewise.
18622 (spu_machine_dependent_reorg): Call df_finish_pass after
18623 schedule_insns returns.
18624
18625 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18626
18627 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18628
18629 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18630
18631 PR tree-optimization/47005
18632 * tree-sra.c (struct access): Add 'non_addressable' bit.
18633 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18634 (decide_one_param_reduction): Return 0 if the parameter is passed by
18635 reference and one of the accesses in the group is non_addressable.
18636
18637 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18638
18639 PR tree-optimization/47056
18640 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18641 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18642 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18643
18644 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18645
18646 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18647 initializer. Skip view conversions from aggregate types.
18648
18649 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18650
18651 PR bootstrap/47055
18652 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18653
18654 2011-01-04 Philipp Thomas <pth@suse.de>
18655
18656 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18657 obvious typo.
18658
18659 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18660
18661 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18662 on empty epilogue sequences.
18663
18664 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18665
18666 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18667 non-static): New Driver options.
18668
18669 2011-01-04 Jie Zhang <jie@codesourcery.com>
18670
18671 PR driver/47137
18672 * gcc.c (default_compilers[]): Set combinable field to 0
18673 for all assembly languages.
18674
18675 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18676
18677 * config/mips/loongson3a.md: New file.
18678 * config/mips/mips.md: Include loongson3a.md.
18679 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18680 TUNE_LOONGSON_3A.
18681
18682 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18683
18684 PR middle-end/47017
18685 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18686 instead of convert_memory_address_addr_space on the base expression.
18687
18688 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18689
18690 * config/spu/spu.c (spu_option_override): Update error text
18691 for bad -march= / -mtune= values.
18692
18693 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18694
18695 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18696 if branch-hint optimization will be performed.
18697
18698 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18699
18700 PR tree-optimization/47148
18701 * ipa-split.c (split_function): Convert arguments to
18702 DECL_ARG_TYPE if possible.
18703
18704 PR tree-optimization/47155
18705 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18706 when computing uns.
18707
18708 PR rtl-optimization/47157
18709 * combine.c (try_combine): If undobuf.other_insn becomes
18710 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18711 and set *new_direct_jump_p too.
18712
18713 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18714
18715 PR tree-optimization/47021
18716 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18717
18718 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18719
18720 * gcc.c (process_command): Update copyright notice dates.
18721 * gcov.c (print_version): Likewise.
18722 * gcov-dump.c (print_version): Likewise.
18723 * mips-tfile.c (main): Likewise.
18724 * mips-tdump.c (main): Likewise.
18725
18726 2011-01-03 Martin Jambor <mjambor@suse.cz>
18727
18728 PR tree-optimization/46801
18729 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18730 aggregate fields start at byte boundary instead of the bit-field flag.
18731
18732 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18733
18734 PR driver/47137
18735 * gcc.c (main): Revert revision 168407.
18736
18737 2011-01-03 Martin Jambor <mjambor@suse.cz>
18738
18739 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18740
18741 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18742
18743 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18744 vector optab to expand vector/scalar shift, update gimple to vector.
18745
18746 2011-01-03 Martin Jambor <mjambor@suse.cz>
18747
18748 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18749 a thunk.
18750
18751 2011-01-03 Martin Jambor <mjambor@suse.cz>
18752
18753 PR tree-optimization/46984
18754 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18755 HOST_WIDE_INT.
18756 (cgraph_create_indirect_edge): Fixed line length.
18757 (cgraph_indirect_call_info): Declare.
18758 (cgraph_make_edge_direct) Update declaration.
18759 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18760 (cgraph_create_indirect_edge): Use it.
18761 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18762 callees.
18763 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18764 the new thunk_delta representation.
18765 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18766 HOST_WIDE_INT.
18767 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18768 (ipa_read_indirect_edge_info): Likewise.
18769 * lto-cgraph.c (output_edge_opt_summary): New function.
18770 (output_node_opt_summary): Call it on all outgoing edges.
18771 (input_edge_opt_summary): New function.
18772 (input_node_opt_summary): Call it on all outgoing edges.
18773
18774 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18775
18776 PR driver/47137
18777 * gcc.c (main): Don't check have_o when settting combine_inputs.
18778
18779 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18780
18781 * regrename.c: Add general comment describing the pass.
18782 (struct du_head): Remove 'length' field.
18783 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18784 (regrename_optimize): Do not sort chains. Rework comments, add others.
18785 Force renaming to the preferred class (if any) in the first pass and do
18786 not consider registers that belong to it in the second pass.
18787 (create_new_chain): Do not set 'length' field.
18788 (scan_rtx_reg): Likewise.
18789
18790 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18791
18792 PR tree-optimization/47140
18793 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18794 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18795 to bit_value_binop.
18796
18797 PR rtl-optimization/47028
18798 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18799 parm_birth_insn instead of at the beginning of first bb.
18800
18801 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18802
18803 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18804 Remove the word "see" before "@pxref".
18805 * doc/rtl.texi: Remove the word "see" before "@pxref".
18806
18807 2011-01-01 Jan Hubicka <jh@suse.cz>
18808
18809 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18810 memory.
18811
18812 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18813
18814 PR target/38662
18815 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18816
18817 \f
18818 Copyright (C) 2011 Free Software Foundation, Inc.
18819
18820 Copying and distribution of this file, with or without modification,
18821 are permitted in any medium without royalty provided the copyright
18822 notice and this notice are preserved.