1 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4 if the element type is volatile.
6 2011-06-18 Jan Hubicka <jh@suse.cz>
8 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
10 (lto_symtab_resolve_can_prevail_p): Likewise.
11 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
12 * cgraphbuild.c (record_reference): Remove extra body alias code.
13 (mark_load): Likewise.
14 (mark_store): Likewise.
15 * cgraph.h (varpool_node): Remove extra_name filed;
16 add alias_of and extraname_alias.
17 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
18 (varpool_alias_aliased_node): New inline function.
19 (varpool_variable_node): New function.
20 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
21 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
22 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
23 (input_varpool_node): Likewise.
24 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
25 (varpool_externally_visible_p): Remove extra body alias code.
26 (function_and_variable_visibility): Likewise.
27 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
28 (ipa_pta_execute): Use it.
29 * varpool.c (varpool_remove_node): Remove extra name alias code.
30 (varpool_mark_needed_node): Likewise.
31 (varpool_analyze_pending_decls): Analyze aliases.
32 (assemble_aliases): New functoin.
33 (varpool_assemble_decl): Use it.
34 (varpool_create_variable_alias): New function.
35 (varpool_extra_name_alias): Rewrite.
36 (varpool_for_node_and_aliases): New function.
38 2011-06-18 Jakub Jelinek <jakub@redhat.com>
41 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
42 last_arg_constant and last argument doesn't match its predicate,
43 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
44 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
45 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
46 spelling of error message.
47 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
48 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
49 const_0_to_255_operand instead of const_int_operand.
52 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
54 * config/i386/sse.md (blendbits): Remove mode attribute.
55 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
56 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
57 Check integer value of operand 3 in insn constraint.
59 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
61 PR rtl-optimization/48542
62 * reload.c (find_equiv_reg): Stop looking when finding a
64 * reload1.c (reload_as_needed): Invalidate all reload
65 registers when crossing a setjmp-type call.
67 2011-06-16 Jeff Law <law@redhat.com>
69 * tree-ssa-threadupdate.c (struct redirection_data): New field
71 (THREAD_TARGET2): Define.
72 (redirection_data_eq): Also check that the intermediate edge is
74 (lookup_redirection_data): Drop useless argument. Extract the
75 outgoing_edge and intermediate edge from E. Callers updated.
76 (copy_phi_args, update_destination_phis): New functions.
77 (fix_duplicate_block_edges): Likewise.
78 (create_edge_and_update_destination_phis): Duplicate all the edges
79 hung off e->aux. Use copy_phi_args.
80 (create_duplicates): Use fix_duplicate_block_edges.
81 (fixup_template_block): Likewise.
82 (redirect_edges): If necessary, redirect the joiner block's incoming
83 edge to the duplicate of the joiner block.
84 (thread_block): Don't muck up loops when threading through a joiner
86 (thread_through_loop_header): Handle threading through a joiner
88 (mark_threaded_blocks, register_jump_thread): Likewise.
89 * tree-flow.h (register_jump_thread): Add new argument. Callers
91 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
92 (thread_across_edge): Handle threading through a joiner block.
94 2011-06-16 Martin Jambor <mjambor@suse.cz>
96 PR tree-optimization/49343
97 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
98 calculate offset, provide 2nd operand for the new COMPONENT_REF.
100 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
102 * config/darwin-protos.h (machopic_select_rtx_section): Move to
103 inside RTX_CODE ifdef.
105 2011-06-16 Tom de Vries <tom@codesourcery.com>
108 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
109 NULL pointer for pointer arithmetic.
111 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
115 2011-06-10 Wei Guozhi <carrot@google.com>
118 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
119 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
120 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
122 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
124 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
125 (arm_legitimate_ldrd_p): New prototype.
126 (arm_output_ldrd): New prototype.
127 * config/arm/arm.c (arm_check_ldrd_operands): New function.
128 (arm_legitimate_ldrd_p): New function.
129 (arm_output_ldrd): New function.
131 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
134 * doc/tm.texi.in: Update Copyright date.
135 * doc/tm.texi: Regenerate.
136 * targhooks.c (default_setup_incoming_varargs): Replace
137 CUMULATIVE_ARGS* argument type with cumulative_args_t.
138 (default_pretend_outgoing_varargs_named): Likewise.
139 (hook_pass_by_reference_must_pass_in_stack): Likewise.
140 (hook_callee_copies_named): Likewise.
141 (default_function_arg_advance): Likewise.
142 (default_function_arg): Likewise.
143 (default_function_incoming_arg): Likewise.
144 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
145 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
146 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
147 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
148 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
149 * targhooks.h (default_setup_incoming_varargs): Likewise.
150 (default_pretend_outgoing_varargs_named): Likewise.
151 (hook_pass_by_reference_must_pass_in_stack): Likewise.
152 (hook_callee_copies_named): Likewise.
153 (default_function_arg_advance): Likewise.
154 (default_function_arg): Likewise.
155 (default_function_incoming_arg): Likewise.
156 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
157 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
158 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
159 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
160 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
161 * target.def (pass_by_reference): Likewise.
162 (setup_incoming_varargs, strict_argument_naming): Likewise.
163 (pretend_outgoing_varargs_named, callee_copies): Likewise.
164 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
165 (function_incoming_arg): Likewise.
166 * target.h: Don't include "tm.h" .
167 (cumulative_args_t): New typedef.
168 [GCC_TM_H] (get_cumulative_args): New static inline function.
169 [GCC_TM_H] (pack_cumulative_args): Likewise.
170 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
171 argument type with cumulative_args_t.
172 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
173 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
174 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
175 (frv_arg_partial_bytes, frv_function_arg): Likewise.
176 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
177 (frv_function_arg_1): Likewise.
178 * config/s390/s390.c (s390_pass_by_reference): Likewise.
179 (s390_function_arg_advance, s390_function_arg): Likewise.
180 * config/m32c/m32c.c (m32c_function_arg): Likewise.
181 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
182 (m32c_strict_argument_naming): Likewise.
183 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
184 (spu_function_arg_advance): Likewise.
185 (spu_setup_incoming_varargs): Likewise. Make static.
186 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
188 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
189 CUMULATIVE_ARGS* argument type with cumulative_args_t.
190 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
191 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
192 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
193 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
194 (mep_pass_by_reference, mep_function_arg): Likewise.
195 (mep_function_arg_advance): Likewise.
196 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
197 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
198 (m32r_function_arg, m32r_function_arg_advance): Likewise.
199 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
200 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
201 (ix86_function_arg, ix86_pass_by_reference): Likewise.
202 (ix86_setup_incoming_varargs): Likewise.
203 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
204 (sh_strict_argument_naming): Likewise.
205 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
206 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
207 (sh_function_arg_advance, sh_function_arg): Likewise.
208 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
209 (pdp11_function_arg_advance): Likewise.
210 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
212 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
213 * config/avr/avr.c (avr_function_arg): Likewise.
214 (avr_function_arg_advance): Likewise.
215 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
216 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
217 (xtensa_function_arg_1): Likewise.
218 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
219 (xstormy16_function_arg): Likewise.
220 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
221 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
222 (fr30_function_arg_advance): Likewise.
223 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
224 (lm32_function_arg, lm32_function_arg_advance): Likewise.
225 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
226 (moxie_function_arg, moxie_function_arg_advance): Likewise.
227 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
228 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
229 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
230 (cris_function_arg, cris_function_incoming_arg): Likewise.
231 (cris_function_arg_advance, cris_function_arg_1): Likewise.
232 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
233 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
234 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
235 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
236 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
237 (mn10300_arg_partial_bytes): Likewise.
238 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
239 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
240 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
241 (ia64_function_arg_1): Likewise.
242 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
243 (m68k_function_arg): Likewise.
244 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
245 (rs6000_function_arg, setup_incoming_varargs): Likewise.
246 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
247 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
248 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
249 (picochip_arg_advance): Likewise.
250 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
251 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
252 (mcore_function_arg_advance): Likewise.
253 * config/score/score.c (score_pass_by_reference): Likewise.
254 (score_function_arg_advance): Likewise.
255 (score_arg_partial_bytes): Likewise. Make static.
256 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
257 * config/arm/arm.c (arm_arg_partial_bytes): Replace
258 CUMULATIVE_ARGS* argument type with cumulative_args_t.
259 (arm_function_arg, arm_function_arg_advance): Likewise.
260 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
261 * config/pa/pa.c (pa_pass_by_reference): Likewise.
262 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
263 (pa_function_arg): Likewise.
264 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
265 (mips_function_arg, mips_function_arg_advance): Likewise.
266 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
267 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
268 * config/vax/vax.c (vax_function_arg): Likewise.
269 (vax_function_arg_advance): Likewise.
270 * config/h8300/h8300.c (h8300_function_arg): Likewise.
271 (h8300_function_arg_advance): Likewise.
272 * config/v850/v850.c (v850_pass_by_reference): Likewise.
273 (v850_strict_argument_naming, v850_function_arg): Likewise.
274 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
275 (v850_setup_incoming_varargs): Likewise.
276 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
277 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
278 (mmix_function_arg, mmix_pass_by_reference): Likewise.
279 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
281 * config/bfin/bfin.c (setup_incoming_varargs): Replace
282 CUMULATIVE_ARGS* argument type with cumulative_args_t.
283 (bfin_function_arg_advance, bfin_function_arg): Likewise.
284 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
285 * calls.c (emit_call_1): Change type of args_so_far to
286 cumulative_args_t. Changed all callers.
287 (initialize_argument_information): Likewise.
288 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
289 * dse.c (get_call_args): Likewise.
290 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
291 * function.c (pass_by_reference, reference_callee_copied): Likewise.
292 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
293 New member args_so_far_v. Changed all users.
294 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
295 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
296 * config/mips/mips.c (mips_output_args_xfer): Likewise.
297 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
298 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
299 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
300 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
301 m32r_pass_by_reference.
303 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
305 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
306 argument to be a VEC of statements.
307 * tree-vect-loop.c (vect_determine_vectorization_factor):
308 Remove the assert that pattern statements have to have their
310 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
311 Change the first argument to be a VEC of statements. Update
313 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
314 (vect_handle_widen_mult_by_const): New function.
315 (vect_recog_widen_mult_pattern): Change the first argument to
316 be a VEC of statements. Update documentation. Check that the
317 constant is INTEGER_CST. Support multiplication by a constant
318 that fits an intermediate type - call
319 vect_handle_widen_mult_by_const.
320 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
321 call. Handle additional pattern statements if necessary.
323 2011-06-16 Nick Clifton <nickc@redhat.com>
326 * config.gcc: Set cpu_type to v850 for any V850 architecture.
327 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
328 md_file, extra_modes, out_file and extra_options are these are all
329 deduced from cpu_type.
331 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
333 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
334 truncation mask to 63.
336 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
340 * longlong.h: Add AVR support:
341 (count_leading_zeros): New macro.
342 (count_trailing_zeros): New macro.
343 (COUNT_LEADING_ZEROS_0): New macro.
344 * config/avr/t-avr (LIB1ASMFUNCS): Add
345 _ffssi2, _ffshi2, _loop_ffsqi2,
346 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
347 _paritydi2, _paritysi2, _parityhi2,
348 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
349 _bswapsi2, _bswapdi2,
350 _ashldi3, _ashrdi3, _lshrdi3
351 (LIB2FUNCS_EXCLUDE): Add _clz.
352 * config/avr/libgcc.S (XCALL): Move up in file.
354 (DEFUN): New asm macro.
355 (ENDF): New asm macro.
356 (__ffssi2): New function.
357 (__ffshi2): New function.
358 (__loop_ffsqi2): New function.
359 (__ctzsi2): New function.
360 (__ctzhi2): New function.
361 (__clzdi2): New function.
362 (__clzsi2): New function.
363 (__clzhi2): New function.
364 (__paritydi2): New function.
365 (__paritysi2): New function.
366 (__parityhi2): New function.
367 (__parityqi2): New function.
368 (__popcounthi2): New function.
369 (__popcountsi2): New function.
370 (__popcountdi2): New function.
371 (__popcountqi2): New function.
372 (__bswapsi2): New function.
373 (__bswapdi2): New function.
374 (__ashldi3): New function.
375 (__ashrdi3): New function.
376 (__lshrdi3): New function.
379 2011-06-16 Richard Guenther <rguenther@suse.de>
381 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
383 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
385 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
386 equality compares against zero for the lower bit.
388 2011-06-16 Jakub Jelinek <jakub@redhat.com>
390 PR tree-optimization/49419
391 * tree-vrp.c (execute_vrp): Call init_range_assertions
392 before estimate_numbers_of_iterations, call
393 free_number_of_iterations_estimates before calling
394 remove_range_assertions.
396 2011-06-16 Revital Eres <revital.eres@linaro.org>
398 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
399 (struct partial_schedule): Add rows_length field.
400 (verify_partial_schedule): Check rows_length.
401 (ps_insert_empty_row): Handle rows_length.
402 (create_partial_schedule): Likewise.
403 (free_partial_schedule): Likewise.
404 (reset_partial_schedule): Likewise.
405 (create_ps_insn): Remove rest_count argument.
406 (remove_node_from_ps): Update rows_length.
407 (add_node_to_ps): Update rows_length and call create_ps_insn
408 without passing row_rest_count.
409 (rotate_partial_schedule): Update rows_length.
411 2011-06-16 Revital Eres <revital.eres@linaro.org>
413 * ddg.c (add_intra_loop_mem_dep): New function.
414 (build_intra_loop_deps): Call it.
416 2011-06-13 Jeff Law <law@redhat.com>
418 * df-problems.c (df_lr_local_compute): Manually CSE
419 PIC_OFFSET_TABLE_REGNUM.
420 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
421 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
423 2011-06-13 Jan Hubicka <jh@suse.cz>
425 * cgraphunit.c (handle_alias_pairs): New function.
426 (cgraph_finalize_compilation_unit): Use it.
427 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
428 as externally visible.
430 2011-06-15 Richard Guenther <rguenther@suse.de>
432 * expr.c (expand_expr_real_2): Reduce all integral types to
434 (expand_expr_real_1): Likewise.
436 2011-06-15 Martin Jambor <mjambor@suse.cz>
438 PR tree-optimization/48613
439 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
440 ipa_node_params_vector is NULL.
442 2011-06-15 Jakub Jelinek <jakub@redhat.com>
445 * dwarf2out.c (dw_loc_list_node): Add force field.
446 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
447 the incoming location in the list, even if it is modified
448 before first real insn.
449 (output_loc_list): Emit empty ranges with force flag set.
450 (dw_loc_list): If first range of a PARM_DECL is empty,
453 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
456 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
457 (fence_to_rewind). Use it to notice when bookkeeping will be placed
458 above a fence. Update comments.
459 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
460 placed just above it. Do not allow NULL place_to_insert.
462 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
464 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
465 (slpeel_tree_peel_loop_to_edge): Don't call
466 remove_dead_stmts_from_loop.
467 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
468 remove irrelevant pattern statements. For irrelevant statements
469 check if it is the last statement of a detected pattern, use
470 corresponding pattern statement instead.
471 (destroy_loop_vec_info): No need to remove pattern statements,
472 only free stmt_vec_info.
473 (vect_transform_loop): For irrelevant statements check if it is
474 the last statement of a detected pattern, use corresponding
475 pattern statement instead.
476 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
477 pattern statements. Set basic block for the new statement.
478 (vect_pattern_recog): Update documentation.
479 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
480 operands of pattern statements.
481 (vectorizable_call): Fix printing. In case of a pattern statement
482 use the lhs of the original statement when creating a dummy
483 statement to replace the original call.
484 (vect_analyze_stmt): For irrelevant statements check if it is
485 the last statement of a detected pattern, use corresponding
486 pattern statement instead.
487 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
488 statements use gsi of the original statement.
490 2011-06-14 Joseph Myers <joseph@codesourcery.com>
492 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
493 common/common-target-def.h.
494 * target.def (default_target_flags, handle_option,
495 supports_split_stack, optimization_table, init_struct,
496 except_unwind_info, unwind_tables_default, have_named_sections):
497 Move to common/common-target.def.
498 * target.h (enum opt_levels, struct default_options): Move to
499 common/common-target.h.
500 * targhooks.c (default_except_unwind_info,
501 dwarf2_except_unwind_info, sjlj_except_unwind_info,
502 default_target_handle_option, empty_optimization_table): Move to
503 common/common-targhooks.c.
504 * targhooks.h (default_except_unwind_info,
505 dwarf2_except_unwind_info, sjlj_except_unwind_info,
506 default_target_handle_option, empty_optimization_table): Move to
507 common/common-targhooks.h.
508 * common/common-target-def.h: Include common/common-targhooks.h.
509 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
511 * common/common-target.def (handle_option, option_init_struct,
512 option_optimization_table, default_target_flags,
513 except_unwind_info, supports_split_stack, unwind_tables_default,
514 have_named_sections): Move from target.def.
515 (HOOK_PREFIX): Undefine at end of file.
516 * common/common-target.h: Include input.h.
517 (enum opt_levels, struct default_options): Move from target.h.
518 * common/common-targhooks.c, common/common-targhooks.h: New.
519 * config.gcc (target_has_targetm_common): Default to yes.
520 (moxie*): Set target_has_targetm_common=no.
521 (hppa*-*-*): Don't set target_has_targetm_common=yes.
522 * doc/tm.texi: Regenerate.
523 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
524 (C_TARGET_DEF_H): Add common/common-targhooks.h.
525 (GCC_OBJS): Remove vec.o.
526 (OBJS): Remove hooks.o and vec.o.
527 (OBJS-libcommon-target): Add vec.o, hooks.o and
528 common/common-targhooks.o.
529 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
530 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
531 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
532 cfglayout.o, $(out_object_file), $(common_out_object_file)):
534 (common/common-targhooks.o): New.
535 * common/config/default-common.c: Include tm.h. Add FIXME
537 * common/config/pa/pa-common.c: Include more headers. Take
538 copyright dates from pa.c.
539 (pa_option_optimization_table, pa_handle_option,
540 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
541 TARGET_HANDLE_OPTION): Move from pa.c.
542 * common/config/alpha/alpha-common.c,
543 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
544 common/config/bfin/bfin-common.c,
545 common/config/cris/cris-common.c,
546 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
547 common/config/h8300/h8300-common.c,
548 common/config/i386/i386-common.c,
549 common/config/ia64/ia64-common.c,
550 common/config/iq2000/iq2000-common.c,
551 common/config/lm32/lm32-common.c,
552 common/config/m32c/m32c-common.c,
553 common/config/m32r/m32r-common.c,
554 common/config/m68k/m68k-common.c,
555 common/config/mcore/mcore-common.c,
556 common/config/mep/mep-common.c,
557 common/config/microblaze/microblaze-common.c,
558 common/config/mips/mips-common.c,
559 common/config/mmix/mmix-common.c,
560 common/config/mn10300/mn10300-common.c,
561 common/config/pdp11/pdp11-common.c,
562 common/config/picochip/picochip-common.c,
563 common/config/rs6000/rs6000-common.c,
564 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
565 common/config/score/score-common.c, common/config/sh/sh-common.c,
566 common/config/sparc/sparc-common.c,
567 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
568 common/config/vax/vax-common.c,
569 common/config/xstormy16/xstormy16-common.c,
570 common/config/xtensa/xtensa-common.c: New.
571 * config/alpha/alpha.c: Include common/common-target.h.
572 (alpha_option_optimization_table, alpha_handle_option,
573 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
574 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
575 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
576 * config/arm/arm.c (arm_option_optimization_table,
577 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
578 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
580 * config/avr/avr.c (avr_option_optimization_table,
581 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
583 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
584 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
585 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
586 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
587 * config/cris/cris.c (cris_option_optimization_table,
588 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
589 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
591 * config/fr30/fr30.c (fr30_option_optimization_table,
592 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
594 * config/frv/frv.c (frv_option_optimization_table,
595 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
596 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
597 * config/h8300/h8300.c (h8300_option_optimization_table,
598 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
599 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
600 * config/i386/i386-protos.h (ix86_handle_option): Declare.
601 * config/i386/i386.c: Include common/common-target.h.
602 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
603 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
604 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
605 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
606 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
607 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
608 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
609 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
610 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
611 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
612 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
613 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
614 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
615 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
616 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
617 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
618 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
619 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
620 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
621 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
622 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
623 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
624 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
625 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
626 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
627 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
628 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
629 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
630 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
631 ix86_option_optimization_table, ix86_option_init_struct,
632 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
633 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
634 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
636 * config/i386/t-i386 (i386.o): Update dependencies.
637 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
638 * config/ia64/ia64.c (ia64_option_optimization_table,
639 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
640 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
641 ia64_handle_option): Move to ia64-common.c.
642 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
643 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
644 * config/lm32/lm32.c (lm32_option_optimization_table,
645 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
647 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
649 * config/m32r/m32r.c (m32r_option_optimization_table,
650 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
651 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
652 m32r_handle_option): Move to m32r-common.c.
653 (m32r_memory_move_cost): Remove comment referring to
654 TARGET_HANDLE_OPTION.
655 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
656 Move to m68k-common.c.
657 * config/mcore/mcore.c (mcore_option_optimization_table,
658 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
659 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
660 * config/mep/mep.c (mep_option_optimization_table,
661 mep_handle_option, TARGET_HANDLE_OPTION,
662 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
663 Move to mep-common.c.
664 * config/microblaze/microblaze.c
665 (microblaze_option_optimization_table,
666 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
667 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
668 * config/mips/mips.c (mips_handle_option,
669 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
670 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
672 * config/mmix/mmix.c (mmix_option_optimization_table,
673 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
674 Move to mmix-common.c.
675 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
676 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
677 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
678 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
679 * config/pa/pa.c: Include common/common-target.h.
680 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
681 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
682 pa_handle_option): Move to pa-common.c.
683 (pa_option_override): Use targetm_common.except_unwind_info.
684 (pa_asm_output_mi_thunk, pa_function_section): Use
685 targetm_common.have_named_sections.
686 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
687 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
688 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
689 pdp11_handle_option, pdp11_option_init_struct): Move to
691 * config/picochip/picochip.c (picochip_option_optimization_table,
692 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
693 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
694 * config/rs6000/rs6000.c: Include common/common-target.h.
695 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
696 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
697 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
698 rs6000_handle_option): Move to rs6000-common.c.
699 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
700 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
701 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
702 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
703 * config/s390/s390.c (processor_flags_table,
704 s390_option_optimization_table, s390_option_init_struct,
705 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
706 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
707 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
708 * config/s390/s390.h (processor_flags_table): Declare.
709 * config/score/score.c (score_option_optimization_table,
710 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
711 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
712 score_handle_option): Move to score-common.c.
713 * config/sh/sh.c (sh_option_optimization_table,
714 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
715 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
716 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
717 * config/sparc/sparc.c: Include common/common-target.h.
718 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
719 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
720 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
721 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
722 spu_option_init_struct): Move to spu-common.c.
723 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
724 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
725 * config/v850/v850.c (small_memory_physical_max,
726 v850_handle_memory_optionn v850_handle_option,
727 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
728 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
730 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
732 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
733 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
734 Move to xtensa-common.c.
735 * cfglayout.c: Include common/common-target.h.
736 (fixup_reorder_chain): Use targetm_common.have_named_sections.
737 * cfgrtl.c: Include common/common-target.h.
738 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
739 targetm_common.have_named_sections.
740 * dbxout.c: Include common/common-target.h.
741 (dbxout_function_end): Use targetm_common.have_named_sections.
742 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
743 targetm_common.except_unwind_info.
744 * dwarf2out.c: Include common/common-target.h.
745 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
746 dwarf2out_begin_prologue, dwarf2out_frame_init,
747 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
748 targetm_common.except_unwind_info.
749 * except.c: Include common/common-target.h.
750 (init_eh, finish_eh_generation,
751 output_one_function_exception_table): Use
752 targetm_common.except_unwind_info.
753 (switch_to_exception_section): Use
754 targetm_common.have_named_sections.
755 * explow.c: Include common/common-target.h.
756 * expr.c: Include common/common-target.h.
757 (build_personality_function): Use
758 targetm_common.except_unwind_info.
759 * function.c: Include common/common-target.h.
760 (expand_function_end): Use targetm_common.except_unwind_info.
761 * haifa-sched.c: Include common/common-target.h.
762 (sched_create_recovery_edges): Use
763 targetm_common.have_named_sections.
764 * lto-opts.c: Include common/common-target.h instead of target.h.
765 (lto_reissue_options): Use targetm_common.handle_option.
766 * opts.c: Include common/common-target.h.
767 (target_handle_option): Use targetm_common.handle_option.
768 (init_options_struct): Update comment referring to
769 targetm.target_option.optimization. Use
770 targetm_common.default_target_flags,
771 targetm_common.unwind_tables_default and
772 targetm_common.option_init_struct.
773 (default_options_optimization): Use
774 targetm_common.option_optimization_table.
775 (finish_options): Use targetm_common.except_unwind_info,
776 targetm_common.unwind_tables_default,
777 targetm_common.have_named_sections and
778 targetm_common.supports_split_stack.
779 * toplev.c: Include common/common-target.h.
780 (process_options): Use targetm_common.have_named_sections.
781 * tree-tailcall.c: Include common/common-target.h.
782 (suitable_for_tail_call_opt_p): Use
783 targetm_common.except_unwind_info.
784 * tree.c: Include common/common-target.h.
785 (build_common_builtin_nodes): Use
786 targetm_common.except_unwind_info.
787 * varasm.c: Include common/common-target.h.
788 (resolve_unique_section, hot_function_section,
789 default_function_section): Use targetm_common.have_named_sections.
791 2011-06-14 Easwaran Raman <eraman@google.com>
793 PR rtl-optimization/44194
794 * dse.c: Include tree-flow.h
795 (insn_info): Add new field non_frame_wild_read.
796 (group_info): Add new fields escaped_n and escaped_p.
797 (kill_on_calls): New variable.
798 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
799 (dse_step0): Initialize kill_on_calls.
800 (can_escape): New function.
801 (set_usage_bits): Add additional parameter; record information
802 about escaped locations.
803 (record_store): Pass EXPR corresponding to MEM to
805 (dse_step2_nospill): Set kill_on_calls based on
806 group->escaped_n and group->escaped_n.
807 (add_wild_read): Refactor into...
808 (reset_active_stores): ... New function, and
809 (free_read_records): ... New function.
810 (add_non_frame_wild_read): New function.
811 (scan_insn): Call add_non_frame_wild_read on non-const calls.
812 (scan_reads_nospill): Handle instructions with
814 (dse_step5_nospill): Call scan_reads_nospill for instructions
815 marked as non_frame_wild_read.
816 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
819 2011-06-14 Joseph Myers <joseph@codesourcery.com>
821 * common/common-target-def.h, common/common-target.def,
822 common/common-target.h, common/config/default-common.c,
823 common/config/pa/pa-common.c: New files.
824 * Makefile.in (common_out_file, common_out_object_file,
825 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
826 (OBJS-libcommon-target): Include $(common_out_object_file).
827 (prefix.o): Update dependencies.
828 ($(common_out_object_file), common/common-target-hooks-def.h,
829 s-common-target-hooks-def-h): New.
830 (s-tm-texi): Also check timestamp on common-target.def.
831 (build/genhooks.o): Update dependencies.
832 * config.gcc (common_out_file, target_has_targetm_common): Define.
833 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
834 TARGET_ALWAYS_STRIP_DOTDOT.
835 * configure.ac (common_out_object_file): Define.
836 (common_out_file, common_out_object_file): Substitute.
837 (common): Create directory.
838 * configure: Regenerate.
839 * doc/tm.texi.in (targetm_common): Document.
840 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
841 * doc/tm.texi: Regenerate.
842 * genhooks.c (hook_array): Also include common/common-target.def.
843 * prefix.c (tm.h): Don't include.
844 (common/common-target.h): Include.
845 (ALWAYS_STRIP_DOTDOT): Don't define.
846 (update_path): Use targetm_common.always_strip_dotdot instead of
848 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
850 2011-06-14 David Li <davidxl@google.com>
852 * passes.c (execute_function_todo): Remove TODO_dump_func.
853 (execute_one_pass): Remove TODO_dump_func.
854 (execute_function_dump): New function.
855 * tree-vrp.c: Remove TODO_dump_func.
856 * regrename.c: Remove TODO_dump_func.
857 * fwprop.c: Remove TODO_dump_func.
858 * tree-into-ssa.c: Remove TODO_dump_func.
859 * tree-complex.c: Remove TODO_dump_func.
860 * tracer.c: Remove TODO_dump_func.
861 * tree-loop-distribution.c: Remove TODO_dump_func.
862 * postreload-gcse.c: Remove TODO_dump_func.
863 * postreload.c: Remove TODO_dump_func.
864 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
865 * tree-tailcall.c: Remove TODO_dump_func.
866 * ipa-cp.c: Remove TODO_dump_func.
867 * final.c: Remove TODO_dump_func.
868 * tree-emutls.c: Remove TODO_dump_func.
869 * omp-low.c: Remove TODO_dump_func.
870 * tree-ssa-dse.c: Remove TODO_dump_func.
871 * tree-ssa-uncprop.c: Remove TODO_dump_func.
872 * auto-inc-dec.c: Remove TODO_dump_func.
873 * reorg.c: Remove TODO_dump_func.
874 * tree-ssa-copyrename.c: Remove TODO_dump_func.
875 * tree-ssa-ccp.c: Remove TODO_dump_func.
876 * compare-elim.c: Remove TODO_dump_func.
877 * mode-switching.c: Remove TODO_dump_func.
878 * modulo-sched.c: Remove TODO_dump_func.
879 * tree-call-cdce.c: Remove TODO_dump_func.
880 * cse.c: Remove TODO_dump_func.
881 * web.c: Remove TODO_dump_func.
882 * tree-stdarg.c: Remove TODO_dump_func.
883 * lto-streamer-out.c: Remove TODO_dump_func.
884 * tree-ssa-math-opts.c: Remove TODO_dump_func.
885 * tree-ssa-dom.c: Remove TODO_dump_func.
886 * tree-nrv.c: Remove TODO_dump_func.
887 * loop-init.c: Remove TODO_dump_func.
888 * gimple-low.c: Remove TODO_dump_func.
889 * ipa-inline.c: Remove TODO_dump_func.
890 * tree-ssa-sink.c: Remove TODO_dump_func.
891 * jump.c: Remove TODO_dump_func.
892 * ifcvt.c: Remove TODO_dump_func.
893 * tree-ssa-loop.c: Remove TODO_dump_func.
894 * recog.c: Remove TODO_dump_func.
895 * dse.c: Remove TODO_dump_func.
896 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
897 * matrix-reorg.c: Remove TODO_dump_func.
898 * tree-eh.c: Remove TODO_dump_func.
899 * regmove.c: Remove TODO_dump_func.
900 * function.c: Remove TODO_dump_func.
901 * tree-vectorizer.c: Remove TODO_dump_func.
902 * ipa-split.c: Remove TODO_dump_func.
903 * gcse.c: Remove TODO_dump_func.
904 * tree-if-conv.c: Remove TODO_dump_func.
905 * init-regs.c: Remove TODO_dump_func.
906 * tree-ssa-phiopt.c: Remove TODO_dump_func.
907 * implicit-zee.c: Remove TODO_dump_func.
908 * lower-subreg.c: Remove TODO_dump_func.
909 * bt-load.c: Remove TODO_dump_func.
910 * tree-dfa.c: Remove TODO_dump_func.
911 * except.c: Remove TODO_dump_func.
912 * emit-rtl.c: Remove TODO_dump_func.
913 * store-motion.c: Remove TODO_dump_func.
914 * cfgexpand.c: Remove TODO_dump_func.
915 * tree-cfgcleanup.c: Remove TODO_dump_func.
916 * cfgcleanup.c: Remove TODO_dump_func.
917 * tree-ssa-pre.c: Remove TODO_dump_func.
918 * tree-sra.c: Remove TODO_dump_func.
919 * tree-mudflap.c: Remove TODO_dump_func.
920 * tree-ssa-copy.c: Remove TODO_dump_func.
921 * cfglayout.c: Remove TODO_dump_func.
922 * tree-ssa-forwprop.c: Remove TODO_dump_func.
923 * tree-ssa-dce.c: Remove TODO_dump_func.
924 * ira.c: Remove TODO_dump_func.
925 * tree-ssa.c: Remove TODO_dump_func.
926 * integrate.c: Remove TODO_dump_func.
927 * tree-optimize.c: Remove TODO_dump_func.
928 * tree-ssa-phiprop.c: Remove TODO_dump_func.
929 * tree-object-size.c: Remove TODO_dump_func.
930 * combine.c: Remove TODO_dump_func.
931 * bb-reorder.c: Remove TODO_dump_func.
932 * cprop.c: Remove TODO_dump_func.
933 * var-tracking.c: Remove TODO_dump_func.
934 * tree-profile.c: Remove TODO_dump_func.
935 * tree-vect-generic.c: Remove TODO_dump_func.
936 * reg-stack.c: Remove TODO_dump_func.
937 * sched-rgn.c: Remove TODO_dump_func.
938 * tree-ssa-structalias.c: Remove TODO_dump_func.
939 * tree-switch-conversion.c: Remove TODO_dump_func.
940 * tree-cfg.c: Remove TODO_dump_func.
941 * tree-ssa-reassoc.c: Remove TODO_dump_func.
942 * combine-stack-adj.c: Remove TODO_dump_func.
943 * dce.c: Remove TODO_dump_func.
944 * tree-ssanames.c: Remove TODO_dump_func.
945 * regcprop.c: Remove TODO_dump_func.
947 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
950 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
951 and properly handle result not in Pmode.
953 2011-06-14 Robert Millan <rmh@gnu.org>
955 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
956 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
959 * config/i386/kfreebsd-gnu64.h: New file.
960 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
961 with `i386/kfreebsd-gnu64.h'.
963 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
964 (GNU_USER_LINK_EMULATION64): New macros.
965 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
966 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
967 of hardcoding `elf_i386' and `elf_x86_64'.
969 2011-06-14 Nick Clifton <nickc@redhat.com>
972 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
975 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
977 2011-06-14 Jakub Jelinek <jakub@redhat.com>
980 * tree.h (DECL_NONSHAREABLE): Define.
981 (struct tree_decl_common): Change decl_common_unused to
982 decl_nonshareable_flag.
983 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
984 Ignore vars with DECL_NONSHAREABLE bit set.
985 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
986 on stores to automatic aggregate vars.
988 PR rtl-optimization/49390
990 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
992 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
995 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
996 Tom de Vries <tom@codesourcery.com>
999 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1000 Document changed semantics.
1001 (max_stmt_executions, max_stmt_executions_int): Declare.
1002 * tree-data-ref.c (estimated_loop_iterations)
1003 (estimated_loop_iterations_int): Move functions...
1004 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1005 (estimated_loop_iterations_int): here.
1006 (record_estimate): Change nb_iterations_upper_bound and
1007 nb_iterations_estimate semantics.
1008 (max_stmt_executions, max_stmt_executions_int): New function.
1009 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1010 (max_stmt_executions_tree): this.
1011 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1012 estimated_loop_iterations_tree.
1013 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1014 max_stmt_executions_int instead of estimated_loop_iterations_int.
1015 * predict.c (predict_loops): Idem.
1016 * tree-parloops.c (parallelize_loops): Idem.
1017 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1018 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1019 (init_omega_for_ddr_1): Idem.
1020 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1021 (loop_prefetch_arrays): Idem
1022 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1023 max_stmt_executions instead of estimated_loop_iterations.
1024 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1025 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1026 instead of nb_iterations_upper_bound.
1028 2011-06-13 Jan Hubicka <jh@suse.cz>
1030 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1032 2011-06-14 Richard Henderson <rth@redhat.com>
1035 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1036 (based_loc_descr): Assert it's true.
1037 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1038 aborting immediately.
1040 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1041 Mingfeng Wu <mingfeng@faraday-tech.com>
1043 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1045 2011-06-13 Jan Hubicka <jh@suse.cz>
1047 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1049 2011-06-13 Jan Hubicka <jh@suse.cz>
1051 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1052 similarly to DECL_COMDAT.
1053 * cgraphunit.c (cgraph_analyze_function): Likewise.
1054 * ipa.c (function_and_variable_visibility): Likewise.
1056 2011-06-13 Jan Hubicka <jh@suse.cz>
1058 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1059 BINFO_VIRTUALS when streaming for ltrans unit.
1061 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1063 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1064 (movdi_internal64): Same.
1066 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1069 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1070 a set of similar patterns, where the MATCH_OPERAND for the function
1071 argument is replaced with individual references to hardware registers.
1072 (save_fpregs_<mode>): Ditto
1073 (restore_gpregs_<mode>): Ditto
1074 (return_and_restore_gpregs_<mode>): Ditto
1075 (return_and_restore_fpregs_<mode>): Ditto
1076 (return_and_restore_fpregs_aix_<mode>): Ditto
1078 2011-06-13 Jan Hubicka <jh@suse.cz>
1080 * ipa-utils.c (postorder_stack): New structure.
1081 (ipa_reverse_postorder): Handle aliases.
1083 2011-06-13 Jan Hubicka <jh@suse.cz>
1085 * ipa-inline.c (reset_edge_caches): Walk aliases.
1086 (update_caller_keys): Do not test inlinability of aliases.
1087 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1088 (do_estimate_growth): Fix typo.
1090 2011-06-13 Jan Hubicka <jh@suse.cz>
1092 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1093 (can_remove_node_now_p): ... here; handle same comdat groups.
1094 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1095 (inline_call): Update use of can_remove_node_now_p.
1097 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1099 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1100 condition to disallow non-identical memory locations.
1101 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1102 preference to bit manipulation instructions.
1104 2011-06-13 Jan Hubicka <jh@suse.cz>
1106 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1107 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1108 (nonremovable_p): New function.
1109 (cgraph_can_remove_if_no_direct_calls_p): New function.
1110 (used_from_object_file_p): New functoin.
1111 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1112 references from aliases.
1113 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1114 * ipa-inline.c (check_caller_edge): New function.
1115 (want_inline_function_called_once_p): Use it; accept aliases called
1117 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1119 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1122 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1123 correctly for the case with Quad vectors.
1125 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1126 Ira Rosen <ira.rosen@linaro.org>
1128 PR tree-optimization/49352
1129 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1130 all, make sure loop_use_stmt after the loop is a def stmt of a used
1131 SSA_NAME that is the only one defined inside of the loop. Don't
1132 check for COND_EXPR and GIMPLE_BINARY_RHS.
1133 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1134 check_reduction is true.
1136 2011-06-11 Jan Hubicka <jh@suse.cz>
1139 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1141 2011-06-11 Jan Hubicka <jh@suse.cz>
1144 * ipa-inline-transform.c: Include tree-pass.h
1145 (inline_transform): Set TODO_update_ssa_only_virtuals.
1146 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1148 2011-06-11 Jan Hubicka <jh@suse.cz>
1151 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1154 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1156 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1157 Take number of iterations to peel into account for equally frequent
1158 misalignment values.
1160 2011-06-11 Jan Hubicka <jh@suse.cz>
1162 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1165 2011-06-11 Jan Hubicka <jh@suse.cz>
1167 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1169 (ipa_update_after_lto_read): Likewise.
1170 (ipa_write_node_info): Do not sream call_with_var_arguments.
1171 (ipa_read_node_info): Likewise.
1173 2011-06-11 Jan Hubicka <jh@suse.cz>
1175 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1177 2011-06-11 Jan Hubicka <jh@suse.cz>
1179 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1180 (lto_symtab_resolve_can_prevail_p): Likewise.
1181 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1182 * cgraph.c (same_body_aliases_done): New global var.
1183 (cgraph_same_body_alias_1): Rename to ...
1184 (cgraph_create_function_alias): ... this one; reorg to new
1186 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1187 record references when asked to.
1188 (cgraph_add_thunk): Fix formating.
1189 (cgraph_get_node): Kill same body alias code.
1190 (cgraph_node_for_asm): Likewise.
1191 (cgraph_remove_same_body_alias): Remove.
1192 (cgraph_remove_node): Kill same body alias code.
1193 (cgraph_mark_address_taken_node): Mark also the aliased function
1194 as having address taken.
1195 (dump_cgraph_node): Dump same body aliases.
1196 (cgraph_for_node_thunks_and_aliases): Update for new alias
1198 (cgraph_for_node_and_aliases): Likewise.
1199 * cgraph.h (same_body): Kll pointer.
1200 (same_body_alias): Update comment.
1201 (same_body_aliases_done): Declare.
1202 (cgraph_remove_same_body_alias): Remove declaration.
1203 (cgraph_create_function_alias): Declare.
1204 (cgraph_process_same_body_aliases): Declare.
1205 (cgraph_function_with_gimple_body_p): Check for alias.
1206 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1207 (cgraph_alias_aliased_node): New function.
1208 (cgraph_function_node): Update for new aliases.
1209 (cgraph_function_or_thunk_node): Likewise.
1210 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1211 (inline_call): Remove dead aliases.
1212 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1213 name hack for same body aliases.
1214 (clone_of_p): Look through aliases.
1215 (verify_cgraph_node): Verify aliases.
1216 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1217 (cgraph_process_same_body_aliases): New function.
1218 (process_function_and_variable_attributes): Disable weakref warning on
1220 (cgraph_analyze_functions): Handle aliases.
1221 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1222 (assemble_thunks): Rename to ...
1223 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1224 (cgraph_expand_function): Remove alias output code.
1225 (cgraph_output_in_order): Skip aliases.
1226 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1227 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1228 (ipa_record_reference): Do not assert on alias references.
1229 (ipa_ref_has_aliases_p): New function.
1230 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1231 (ipa_ref_has_aliases_p): Declare.
1232 * lto-cgraph.c (lto_output_node): Handle aliases.
1233 (input_node): Likewise.
1234 * lto-streamer-out.c (lto_output): Skip aliases.
1235 (produce_symtab): Kill same_body_alias code.
1236 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1237 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1238 * ipa-inline.c (update_caller_keys): Walk aliases.
1239 (inline_small_functions): Fix thinko in previous patch.
1240 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1241 (function_and_variable_visibility): Do not walk same body aliases.
1242 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1243 (ipa_pta_execute): Use it.
1245 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1247 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1248 (*vec_dupv2df): Rename from vec_dupv2df.
1249 (vec_dupv2df): New expander.
1251 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1253 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1255 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1257 * config/i386/i386.md: Use default value in "isa" attribute.
1258 * config/i386/sse.md: Ditto.
1259 * config/i386/mmx.md: Ditto.
1261 2011-06-10 Wei Guozhi <carrot@google.com>
1264 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1265 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1266 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1268 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1270 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1271 (arm_legitimate_ldrd_p): New prototype.
1272 (arm_output_ldrd): New prototype.
1273 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1274 (arm_legitimate_ldrd_p): New function.
1275 (arm_output_ldrd): New function.
1277 2011-06-10 David Li <davidxl@google.com>
1279 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1280 * passes.c (passr_eq): New function.
1281 (create_pass_tab): New function.
1282 (pass_traverse): New function.
1283 (dump_one_pass): New function.
1284 (dump_pass_list): New function.
1285 (dump_passes): New function.
1287 2011-06-10 Jan Hubicka <jh@suse.cz>
1289 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1290 setting the nothrow flag.
1291 * ipa-reference.c (propagate): Skip aliases.
1292 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1293 (propagate_nothrow): Skip aliases; do not update cgraph.
1294 (local_pure_const): Do not update cgraph.
1295 * tree-profile.c (tree_profiling): Do fixup_cfg.
1297 2011-06-10 Jan Hubicka <jh@suse.cz>
1299 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1300 (cgraph_local_node_p): ... here; handle aliases.
1301 (has_addr_references_p): Break out from ...;
1302 (cgraph_remove_unreachable_nodes) ... here.
1304 2011-06-10 Jan Hubicka <jh@suse.cz>
1306 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1307 * common.opt (flag_inline_functions_called_once): Do not
1310 2011-06-10 Jan Hubicka <jh@suse.cz>
1312 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1313 (ipcp_initialize_node_lattices): Do not deal with aliases;
1314 Do not try to propagate through thunks.
1315 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1317 2011-06-10 Jan Hubicka <jh@suse.cz>
1319 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1321 (ipa_read_node_info): Likewise.
1323 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1326 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1327 (build_and_insert_call): Likewise.
1328 (build_and_insert_ref): New.
1329 (gimple_expand_builtin_pow): Minor cleanup.
1330 (gimple_expand_builtin_cabs): New.
1331 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1333 2011-06-10 Jan Hubicka <jh@suse.cz>
1335 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1336 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1337 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1338 (ipcp_propagate_stage): Skip aliases when propagating.
1339 (ipcp_need_redirect_p): Skip aliases.
1340 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1341 collect_callers_of_node.
1342 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1344 (ipa_compute_jump_functions): Look through aliases.
1346 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1348 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1350 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1352 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1354 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1356 2011-06-10 Jan Hubicka <jh@suse.cz>
1358 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1359 Update call of gimple_get_virt_method_for_binfo.
1360 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1361 refuse_thunks parameter.
1362 (gimple_fold_call): Update.
1363 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1365 2011-06-10 Jan Hubicka <jh@suse.cz>
1367 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1368 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1369 worker for cgraph_for_node_and_aliases.
1370 (convert_callers_for_node): Break out from ...
1371 (convert_callers): ... here.
1372 (modify_function): Use collect_callers_of_node.
1373 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1375 2011-06-10 Richard Guenther <rguenther@suse.de>
1377 PR tree-optimization/49361
1378 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1379 when not already in gimple form.
1381 2011-06-10 Richard Guenther <rguenther@suse.de>
1384 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1385 FOR_EACH_PHI_OR_STMT_USE.
1387 2011-06-10 Jan Hubicka <jh@suse.cz>
1389 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1390 (clone_inlined_nodes): ... here.
1391 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1392 to real destination prior inlining.
1393 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1394 can_early_inline_edge_p, want_early_inline_function_p,
1395 want_early_inline_function_p, want_inline_small_function_p,
1396 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1397 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1398 add_new_edges_to_heap, inline_small_functions, flatten_function,
1399 inline_always_inline_functions, early_inline_small_functions): Use
1400 cgraph_function_or_thunk_node.
1401 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1402 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1403 (do_estimate_edge_growth_1): Break out from ...
1404 (do_estimate_growth) ... here; walk aliases.
1405 (inline_generate_summary): Skip aliases.
1407 2011-06-10 Richard Guenther <rguenther@suse.de>
1409 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1410 forward when combining, visit inserted stmts when a stmt was changed.
1412 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1414 * tree.h (error_operand_p): Add.
1415 * dbxout.c (dbxout_type_fields): Use the latter.
1416 * c-decl.c (add_stmt): Likewise.
1417 * gimplify.c (omp_add_variable, omp_notice_variable,
1418 gimplify_scan_omp_clauses): Likewise.
1420 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1422 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1423 when a value is actually passed in regs.
1425 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1426 Laurent Rougé <laurent.rouge@menta.fr>
1428 * doc/invoke.texi (SPARC options): Add -mflat.
1429 * config/sparc/sparc.opt: Likewise.
1430 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1431 (sparc_flat_expand_prologue): Declare.
1432 (sparc_flat_expand_epilogue): Likewise.
1433 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1434 (CPP_ENDIAN_SPEC): Replace with...
1435 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1436 (CPP_SPEC): Adjust to above change.
1437 (EXTRA_SPECS): Likewise.
1438 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1439 (INCOMING_REGNO): Likewise.
1440 (OUTGOING_REGNO): Likewise.
1441 (LOCAL_REGNO): Likewise.
1442 (SETUP_FRAME_ADDRESSES): Likewise.
1443 (FIXED_REGISTERS): Set 0 for %fp.
1444 (CALL_USED_REGISTERS): Likewise.
1445 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1446 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1447 (RETURN_ADDR_REGNUM): Define.
1448 (RETURN_ADDR_RTX): Use it.
1449 (INCOMING_RETURN_ADDR_REGNUM): Define.
1450 (INCOMING_RETURN_ADDR_RTX): Use it.
1451 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1452 (EH_RETURN_REGNUM): Define.
1453 (EH_RETURN_STACKADJ_RTX): Use it.
1454 (EH_RETURN_HANDLER_RTX): Delete.
1455 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1456 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1458 (struct machine_function): Add frame_size, apparent_frame_size,
1459 frame_base_reg, frame_base_offset, n_global_fp_regs and
1460 save_local_in_regs_p fields.
1461 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1462 sparc_frame_base_offset, sparc_n_global_fp_regs,
1463 sparc_save_local_in_regs_p): New macros.
1464 (sparc_option_override): Error out if -fcall-saved-REG is specified
1466 (eligible_for_restore_insn): Fix formatting.
1467 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1468 (eligible_for_sibcall_delay): Likewise.
1469 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1470 (sparc_legitimate_address_p): Adjust to above change.
1471 (save_global_or_fp_reg_p): New predicate.
1472 (return_addr_reg_needed_p): Likewise.
1473 (save_local_or_in_reg_p): Likewise.
1474 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1475 (SORR_SAVE, SORR_RESTORE): Delete.
1476 (sorr_pred_t): New typedef.
1477 (sorr_act_t): New enum.
1478 (save_or_restore_regs): Rename to...
1479 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1480 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1481 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1482 mechanism. Add CFI information for double-word saves in 32-bit mode.
1483 (emit_adjust_base_to_offset): New function extracted from...
1484 (emit_save_or_restore_regs): ...this. Rename the rest to...
1485 (emit_save_or_restore_regs_global_fp_regs): ...this.
1486 (emit_save_or_restore_regs_local_in_regs): New function.
1487 (gen_create_flat_frame_[123]): New functions.
1488 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1489 (sparc_flat_expand_prologue): New function.
1490 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1491 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1492 (sparc_flat_expand_epilogue): New function.
1493 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1494 (output_return): Likewise.
1495 (output_sibcall): Likewise.
1496 (sparc_output_mi_thunk): Likewise.
1497 (sparc_frame_pointer_required): Likewise.
1498 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1499 function optimization.
1500 * config/sparc/sparc.md (flat): New attribute.
1501 (prologue): Add TARGET_FLAT handling.
1502 (save_register_window): Disable if TARGET_FLAT.
1503 (create_flat_frame_[123]): New patterns.
1504 (epilogue): Add TARGET_FLAT handling.
1505 (sibcall_epilogue): Likewise.
1506 (eh_return): New expander.
1507 (eh_return_internal): New insn and splitter.
1508 (return_internal): Add TARGET_FLAT handling.
1509 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1510 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1511 (nonlocal_goto): Add TARGET_FLAT handling.
1512 * config/sparc/t-elf: Add -mflat multilib.
1513 * config/sparc/t-leon: Likewise.
1515 2011-06-10 Jan Hubicka <jh@suse.cz>
1517 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1518 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1519 (self_recursive_p): Use cgraph_function_node.
1520 (propagate_pure_const): Likewise.
1521 (propagate_nothrow): Likewise.
1522 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1523 cgraph_function_node.
1524 (propagate_bits): Likewise.
1525 (propagate): Likewise.
1527 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1528 Richard Earnshaw <rearnsha@arm.com>
1530 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1531 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1532 (*thumb2_movdi_vfp): Delete.
1533 (*arm_movdi_vfp_cortexa8): Delete.
1534 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1535 (*movdi_vfp_cortexa8): Likewise.
1537 2011-06-10 Richard Guenther <rguenther@suse.de>
1539 * stor-layout.c (initialize_sizetypes): Give names to all
1542 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1544 PR tree-optimization/49318
1545 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1546 irrelevant pattern statements.
1548 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1550 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1553 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1556 2011-06-09 Jan Hubicka <jh@suse.cz>
1558 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1559 do not recompute reachable flag.
1560 (cgraph_finalize_function, cgraph_analyze_functions): Set
1561 redefined_extern_inline here.
1563 2011-06-09 Jan Hubicka <jh@suse.cz>
1565 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1566 (cgraph_only_called_directly_p): ... this one; bring offline.
1567 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1568 varpool_used_from_object_file_p): Drop names from the declaratoin.
1569 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1570 collect_callers_of_node): New.
1571 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1572 (cgraph_edge_recursive_p): Use cgraph_function_node.
1573 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1574 (cgraph_node_cannot_be_local_p_1): Break out from ...
1575 (cgraph_node_can_be_local_p): ... here; walk aliases.
1576 (cgraph_for_node_thunks_and_aliases): New function.
1577 (cgraph_for_node_and_aliases): New function.
1578 (cgraph_make_node_local_1): Break out from ...
1579 (cgraph_make_node_local) ... here; use
1580 cgraph_for_node_thunks_and_aliases.
1581 (cgraph_set_nothrow_flag_1): Break out from ...
1582 (cgraph_set_nothrow_flag) ... here;
1583 use cgraph_for_node_thunks_and_aliases.
1584 (cgraph_set_const_flag_1): Break out from ...
1585 (cgraph_set_const_flag) ... here;
1586 use cgraph_for_node_thunks_and_aliases.
1587 (cgraph_set_pure_flag_1): Break out from ...
1588 (cgraph_set_pure_flag) ... here;
1589 use cgraph_for_node_thunks_and_aliases.
1590 (cgraph_propagate_frequency_1): Break out from ...
1591 (cgraph_propagate_frequency) ... here; use
1592 cgraph_for_node_thunks_and_aliases.
1593 (cgraph_used_from_object_file_p): Do not care about aliases.
1594 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1596 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1598 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1600 PR rtl-optimization/49154
1601 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1602 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1603 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1604 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1605 * config/cris/cris.h (cris_register_move_cost): Remove
1606 !TARGET_V32 code. Tweak comments.
1608 2011-06-09 Jan Hubicka <jh@suse.cz>
1610 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1613 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1615 PR rtl-optimization/49154
1616 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1617 is a matching slot in the hashtable, assign it to classes_ptr.
1619 PR rtl-optimization/49154
1620 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1622 * doc/tm.texi: Regenerate.
1624 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1627 * config/sh/sh.md (UNSPEC_CHKADD): New.
1628 (chk_guard_add): New define_insn_and_split.
1629 (symGOT_load): Use chk_guard_add instead of blockage.
1631 2011-06-09 Kai Tietz <ktietz@redhat.com>
1633 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1635 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1637 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1639 2011-06-09 Wei Guozhi <carrot@google.com>
1642 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1643 (peephole2 for conditional move): Generate 16 bit instructions.
1645 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1647 * config/i386/i386.md (*movdi_internal_rex64): Merge
1648 alternatives 6 and 8.
1650 2011-06-09 David Li <davidxl@google.com>
1652 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1653 * passes.c (passr_eq): New function.
1654 (create_pass_tab): New function.
1655 (pass_traverse): New function.
1656 (dump_one_pass): New function.
1657 (dump_pass_list): New function.
1658 (dump_passes): New function.
1660 2011-06-09 David Li <davidxl@google.com>
1662 * tree-complex.c (tree_lower_complex): Gate cleanup.
1663 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1664 (execute_optimize_stdarg): Ditto.
1665 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1666 (execute_cleanup_eh_1): Ditto.
1667 (execute_cleanup_eh): Ditto.
1668 * gcse.c (gate_rtl_pre): Ditto.
1669 (execute_rtl_pre): Ditto.
1670 * except.c (finish_eh_generation): Ditto.
1671 (convert_to_eh_region_ranges): Ditto.
1672 * cprop.c (one_cprop_pass): Ditto.
1674 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1677 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1678 in all basic blocks.
1680 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1682 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1683 (HAVE_ENABLE_EXECUTE_STACK): Define.
1684 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1685 (HAVE_ENABLE_EXECUTE_STACK): Define.
1686 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1687 (HAVE_ENABLE_EXECUTE_STACK): Define.
1688 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1689 (ENABLE_EXECUTE_STACK): Remove.
1690 (HAVE_ENABLE_EXECUTE_STACK): Define.
1691 [IN_LIBGCC2]: Don't include <windows.h>.
1692 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1693 (HAVE_ENABLE_EXECUTE_STACK): Define.
1694 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1695 (HAVE_ENABLE_EXECUTE_STACK): Define.
1696 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1697 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1698 (HAVE_ENABLE_EXECUTE_STACK): Define.
1699 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1700 (HAVE_ENABLE_EXECUTE_STACK): Define.
1701 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1702 (HAVE_ENABLE_EXECUTE_STACK): Define.
1703 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1704 (HAVE_ENABLE_EXECUTE_STACK): Define.
1705 * config/alpha/alpha.c (alpha_trampoline_init): Test
1706 HAVE_ENABLE_EXECUTE_STACK.
1707 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1708 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1709 (sparc64_initialize_trampoline): Likewise.
1710 * libgcc2.c [L_enable_execute_stack]: Remove.
1711 * system.h (ENABLE_EXECUTE_STACK): Poison.
1712 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1713 * doc/tm.texi: Regenerate.
1714 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1716 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1719 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1720 variable. After resetting and rescanning insn continue with previous
1723 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1726 (gcc_cv_ld_hidden): Likewise.
1727 * configure: Regenerate.
1728 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1729 (ix86_stack_protect_fail): Mark unused.
1730 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1731 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1732 [TARGET_MACHO]: Don't define.
1733 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1734 (TARGET_STACK_PROTECT_FAIL): Likewise.
1735 (rs6000_stack_protect_fail): Mark unused.
1736 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1737 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1739 2011-06-08 Andi Kleen <ak@linux.intel.com>
1741 * varasm.c (get_section): Print location of other conflict
1742 for section conflicts.
1744 2011-06-08 Andi Kleen <ak@linux.intel.com>
1746 * config/i386/driver-i386.c (host_detect_local_cpu):
1747 Add model 0x2d Intel CPU.
1749 2011-06-08 Andi Kleen <ak@linux.intel.com>
1751 * reginfo.c (global_regs_decl): Add.
1752 (globalize_reg): Add decl parameter. Compute location. Pass location
1753 to warnings and add inform. Store decl in global_regs_decl.
1754 * rtl.h (globalize_reg): Update prototype.
1755 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1757 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1759 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1761 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1764 * config/sh/predicates.md (general_movsrc_operand): Check
1765 mode for memory with indexed address for QI and HImode.
1766 (general_movdst_operand): Likewise.
1768 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1770 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1772 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1774 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1775 (num_ssa_operands): Likewise.
1776 (op_iter_init_phiuse): Forward-declare.
1777 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1779 2011-06-08 Nick Clifton <nickc@redhat.com>
1781 * doc/invoke.texi (ARM Options): Update description of
1784 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1786 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1787 unknown Intel family 0x6 CPUs.
1789 2011-06-08 Martin Jambor <mjambor@suse.cz>
1791 * tree-sra.c (mark_rw_status): Removed.
1792 (analyze_access_subtree): New parameter parent instead of
1793 mark_read and mark_write, propagate from that.
1795 2011-06-08 Julian Brown <julian@codesourcery.com>
1797 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1798 for double-precision helper functions in hard-float mode if only
1799 single-precision arithmetic is supported in hardware.
1801 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1803 PR rtl-optimization/49303
1804 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1805 code_motion_path_driver returned 0 or 1.
1806 (sel_region_finish): Clear h_d_i_d.
1808 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1810 * config/sh/sh.c (prepare_move_operands): Set pic register
1811 appropriately for global and local dynamic tls models even
1812 if flag_pic is unset.
1814 2011-06-07 Jason Merrill <jason@redhat.com>
1816 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1818 2011-06-07 Xinliang David Li <davidxl@google.com>
1819 * passes.c (enable_disable_pass): Handle assembler name.
1820 (is_pass_explicitly_enabled_or_disabled): Ditto.
1822 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1824 PR tree-optimization/48497
1825 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1827 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1829 PR tree-optimization/46728
1830 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1831 to use gimple_val_nonnegative_real_p.
1832 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1833 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1835 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1837 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1839 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1841 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1844 2011-06-07 Richard Guenther <rguenther@suse.de>
1846 * stor-layout.c (initialize_sizetypes): Initialize all
1847 sizetypes based on target definitions.
1848 (set_sizetype): Remove.
1849 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1850 * tree.h (set_sizetype): Remove.
1852 2011-06-07 Nick Clifton <nickc@redhat.com>
1854 * config.gcc: Unify V850 architecture options and add support for
1855 newer V850 architectures.
1856 * config/v850/t-v850e: Delete.
1858 2011-06-07 Richard Guenther <rguenther@suse.de>
1860 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1861 Call set_sizetype from here.
1863 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1865 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1866 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1868 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1869 Andrew Stubbs <ams@codesourcery.com>
1871 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1873 * doc/md.texi (Canonicalization of Instructions): Document widening
1874 multiply canonicalization.
1876 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1878 PR gcov-profile/49299
1879 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1881 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1883 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1885 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1886 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1887 vect_recog_pow_pattern): Likewise.
1888 (vect_pattern_recog_1): Remove declaration.
1889 (widened_name_p): Remove declaration. Add new argument to specify
1890 whether to check that both types are either signed or unsigned.
1891 (vect_recog_widen_mult_pattern): Update documentation. Handle
1892 unsigned patterns and multiplication by constants.
1893 (vect_pattern_recog_1): Update vect_recog_func references. Use
1894 statement information from the statement returned from pattern
1895 detection functions.
1896 (vect_pattern_recog): Update vect_recog_func reference.
1897 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1898 multiplication by a constant use the type of the other operand.
1900 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1902 PR rtl-optimization/49145
1903 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1905 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1908 * dwarf2out.c (native_encode_initializer): Decrement count in each
1912 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1916 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1917 if stmt folded into nothing.
1918 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1919 a bb folded into nothing, just update cgraph edges and move to next bb.
1920 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1921 to be NULL. Don't compute count and frequency if new_call is NULL.
1923 2011-06-04 Diego Novillo <dnovillo@google.com>
1925 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1926 (cgraph.o): Likewise.
1927 (cgraphunit.o): Likewise.
1928 * cgraphunit.c: Include lto-streamer.h
1929 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1931 * lto-streamer-in.c (unpack_value_fields): Call
1932 streamer_hooks.unpack_value_fields if set.
1933 (lto_materialize_tree): For unhandled nodes, first try to
1934 call lto_streamer_hooks.alloc_tree, if it exists.
1935 (lto_input_ts_decl_common_tree_pointers): Move reading of
1936 DECL_INITIAL to lto_streamer_read_tree.
1937 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1938 (lto_streamer_read_tree): New.
1939 (lto_reader_init): Rename from lto_init_reader.
1940 Move initialization code to lto/lto.c.
1941 * lto-streamer-out.c (pack_value_fields): Call
1942 streamer_hooks.pack_value_fields if set.
1943 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1944 call streamer_hooks.indexable_with_decls_p before giving up.
1945 (lto_output_ts_decl_common_tree_pointers): Move handling
1946 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1947 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1948 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1949 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1950 (lto_streamer_write_tree): New.
1951 (lto_output): Call lto_streamer_init directly.
1952 (lto_writer_init): Remove.
1953 * lto-streamer.c (streamer_hooks): New.
1954 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1955 instead of lto_preload_common_nodes.
1956 (lto_is_streamable): Move from lto-streamer.h
1957 (lto_streamer_hooks_init): New.
1958 (streamer_hooks): New.
1959 (streamer_hooks_init): New.
1960 * lto-streamer.h (struct output_block): Forward declare.
1961 (struct lto_input_block): Likewise.
1962 (struct data_in): Likewise.
1963 (struct bitpack_d): Likewise.
1964 (struct streamer_hooks): Declare.
1965 (streamer_hooks): Declare.
1966 (lto_streamer_hooks_init): Declare.
1967 (lto_streamer_write_tree): Declare.
1968 (lto_streamer_read_tree): Declare.
1969 (streamer_hooks_init): Declare.
1970 (lto_is_streamable): Move to lto-streamer.c
1972 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1974 * longlong.h (smul_ppmm): The resulting register pair contains the
1975 higher order word first.
1977 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1979 PR tree-optimization/46728
1980 * builtins.c (powi_table): Remove.
1981 (powi_lookup_cost): Remove.
1982 (powi_cost): Remove.
1983 (expand_powi_1): Remove.
1984 (expand_powi): Remove.
1985 (expand_builtin_pow_root): Remove.
1986 (expand_builtin_pow): Remove.
1987 (expand_builtin_powi): Eliminate handling of constant exponent.
1988 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1990 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1992 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1994 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1996 * dce.c (reset_unmarked_insns_debug_uses): New.
1997 (delete_unmarked_insns): Skip debug insns.
1998 (prescan_insns_for_dce): Likewise.
1999 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2000 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2001 active reg can be found.
2002 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2003 (convert_regs_1): Use it.
2005 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2007 * tree-pretty-print.c (dump_function_header): Add flags.
2008 Don't dump decl_uid with nouid.
2009 * tree-pretty-print.h (dump_function_header): Adjust.
2010 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2011 * passes.c (pass_init_dump_file): Pass dump_flags on.
2012 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2014 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2017 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2019 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2021 PR tree-optimization/49243
2022 * calls.c (setjmp_call_p): Also check if fndecl has the
2023 returns_twice attribute.
2025 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2027 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2030 2011-06-06 Richard Henderson <rth@redhat.com>
2031 Georg-Johann Lay <avr@gjlay.de>
2034 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2036 * config/avr/avr.md ("insv"): New insn expander.
2037 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2038 "*insv.not.io", "*insv.reg"): New insns.
2040 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2043 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2044 to nonimmediate_operand from memory_operand for the operand that is to
2045 be forced to memory by the expander. Lose the constraints.
2047 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2049 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2050 EH return when delayed branches are disabled.
2052 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2054 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2055 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2057 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2058 Simplify MODE_V1DF and MODE_V2SF handling.
2059 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2060 Simplify MODE_SF handling.
2062 2011-06-04 Jan Hubicka <jh@suse.cz>
2064 PR tree-optimization/48893
2065 PR tree-optimization/49091
2066 PR tree-optimization/49179
2067 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2070 2011-06-04 Jan Hubicka <jh@suse.cz>
2073 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2076 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2078 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2080 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2083 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2084 to be strictly smaller than 1 << shiftcount.
2086 2011-06-04 Jan Hubicka <jh@suse.cz>
2088 PR tree-optimize/48929
2089 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2092 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2095 * calls.c (emit_call_1): Prefer the __builtin declaration of
2098 2011-06-03 Diego Novillo <dnovillo@google.com>
2100 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2101 (lto_input_tree_pointers): Likewise.
2102 * lto-streamer-out.c (pack_value_fields): Likewise.
2103 (lto_output_tree_pointers): Likewise.
2104 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2105 and OPTIMIZATION_NODE.
2107 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2109 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2110 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2111 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2112 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2113 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2114 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2115 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2116 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2117 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2118 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2119 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2120 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2121 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2122 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2123 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2124 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2125 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2126 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2127 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2128 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2129 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2130 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2131 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2132 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2133 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2134 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2135 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2136 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2137 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2138 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2139 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2140 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2141 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2142 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2143 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2144 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2145 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2146 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2147 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2148 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2149 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2150 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2151 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2152 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2153 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2154 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2155 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2156 * system.h (MD_UNWIND_SUPPORT): Poison.
2157 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2158 * doc/tm.texi: Regenerate.
2159 * unwind-dw2.c: Include md-unwind-support.h instead of
2161 * config/ia64/unwind-ia64.c: Likewise.
2162 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2164 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2166 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2168 2011-06-03 Richard Henderson <rth@redhat.com>
2169 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2171 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2172 (sigill_hdlr): Correct insn, insn size.
2173 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2175 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2177 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2179 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2180 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2181 * config/mips/t-iris: Remove.
2182 * config/mips/t-irix6: New file.
2183 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2185 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2187 * Makefile.in (LIB2ADDEHDEP): Remove.
2188 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2189 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2190 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2191 * config/t-darwin (LIB2ADDEHDEP): Remove.
2192 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2193 * config/t-linux (LIB2ADDEHDEP): Remove.
2195 2011-06-03 Diego Novillo <dnovillo@google.com>
2197 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2198 (lto_register_var_decl_in_symtab): Likewise.
2199 (lto_register_function_decl_in_symtab): Likewise.
2200 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2201 logic to uniquify_nodes.
2203 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205 * config/alpha/t-osf5: Remove.
2206 * config/alpha/t-osf-pthread: Remove.
2207 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2208 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2210 2011-06-03 Julian Brown <julian@codesourcery.com>
2212 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2213 (strongarm1110): Use strongarm tuning.
2214 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2215 * config/arm/arm.c (arm_strongarm_tune): New.
2216 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2217 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2218 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2219 setting, using previous defaults or 1 for Cortex-A5.
2220 (arm_option_override): Set max_insns_skipped from current tuning.
2222 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2224 * doc/install.texi (Options specification): Document --with-specs.
2226 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2228 * config/arm/neon.md (orndi3_neon): Actually split it.
2230 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2232 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2233 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2235 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2238 * target.def (delay_sched2, delay_vartrack): New.
2239 * doc/tm.texi.in: Update.
2240 * doc/tm.texi: Rebuild.
2241 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2242 * var-tracking.c (gate_handle_var_tracking): Likewise.
2243 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2244 (bfin_flag_var_tracking): Drop.
2245 (output_file_start): Don't save and override flag_var_tracking.
2246 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2247 (bfin_reorg): Test original variables.
2248 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2249 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2250 (ia64_flag_var_tracking): Drop.
2251 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2252 (ia64_file_start): Don't save and override flag_var_tracking.
2253 (ia64_override_options_after_change): Ditto
2254 flag_schedule_insns_after_reload.
2255 (ia64_reorg): Test original variables.
2256 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2257 (picochip_flag_var_tracking): Drop.
2258 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2259 (picochip_option_override): Don't save and override
2260 flag_schedule_insns_after_reload.
2261 (picochip_asm_file_start): Ditto flag_var_tracking.
2262 (picochip_reorg): Test original variables.
2263 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2264 (TARGET_DELAY_VARTRACK): Define.
2265 (spu_var_tracking): New.
2266 (spu_machine_dependent_reorg): Call it.
2267 (asm_file_start): Don't save and override flag_var_tracking.
2269 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2272 * config/sh/predicates.md (general_movsrc_operand): Return 0
2273 for memory and memory subreg of which address is an invalid
2274 indexed address for QI and HImode.
2275 (general_movdst_operand): Likewise.
2277 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2279 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2280 edges only, when there is a non-local label in the function.
2281 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2283 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2285 * config/i386/constraints.md (Y3): New register constraint.
2286 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2287 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2288 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2289 *sse2_interleave_lowv2df.
2291 2011-06-02 Julian Brown <julian@codesourcery.com>
2293 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2294 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2295 (arm_cortex_a5_tune): New.
2297 2011-06-02 Julian Brown <julian@codesourcery.com>
2299 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2300 * config/arm/arm.c (arm_default_branch_cost): New.
2301 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2302 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2303 (arm_fa726_tune): Set branch_cost field using
2304 arm_default_branch_cost.
2305 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2306 current_tune structure.
2307 * dojump.c (tm_p.h): Include file.
2309 2011-06-02 Julian Brown <julian@codesourcery.com>
2311 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2313 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2314 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2315 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2317 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2318 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2319 (arm_fa726te_tune): Add prefer_constant_pool setting.
2320 (arm_v6t2_tune, arm_cortex_tune): New.
2321 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2322 prefer_constant_pool setting.
2324 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2326 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2328 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2329 (*movdf_internal) <case 6,7,8>: Ditto.
2331 * config/i386/constraints.md (Y4): New register constraint.
2332 * config/i386/sse.md (vec_set<mode>_0): Merge with
2333 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2334 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2335 *vec_extractv2di_1_sse.
2336 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2337 and *vec_concatv2di_rex64_sse.
2339 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2342 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2343 of cgraph_local_info for null before attempting to use it.
2345 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2347 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2348 (current_function_dynamic_alloc_count): Delete.
2349 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2350 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2351 (expand_builtin_update_setjmp_buf): Remove dead code.
2352 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2353 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2355 * function.c (instantiate_virtual_regs): Likewise.
2356 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2357 for a block with a single abnormal incoming edge.
2358 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2359 (SETJMP_VIA_SAVE_AREA): Delete.
2360 * config/sparc/sparc-protos.h (load_got_register): Declare.
2361 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2362 (load_got_register): Make global.
2363 (sparc_frame_pointer_required): Add 'static'.
2364 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2365 (sparc_builtin_setjmp_frame_value): New function.
2366 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2367 (save_stack_nonlocal): New expander.
2368 (restore_stack_nonlocal): Likewise.
2369 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2370 (nonlocal_goto_internal): New insn.
2371 (goto_handler_and_restore): Delete.
2372 (builtin_setjmp_setup): Likewise.
2373 (do_builtin_setjmp_setup): Likewise.
2375 (builtin_setjmp_receiver): New expander.
2377 2011-06-01 David Li <davidxl@google.com>
2380 * tree-pretty-print.c (dump_function_header): Format cleanup.
2382 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2385 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2386 needed when original operands are used for msw_skip comparison.
2388 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2391 * var-tracking.c (add_uses, add_stores): Don't call
2392 cselib_subst_to_values on ENTRY_VALUE.
2394 2011-06-01 Diego Novillo <dnovillo@google.com>
2396 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2397 output_record_start with LTO_null instead of output_zero.
2398 (lto_output_ts_binfo_tree_pointers): Likewise.
2399 (lto_output_tree): Likewise.
2400 (output_eh_try_list): Likewise.
2401 (output_eh_region): Likewise.
2402 (output_eh_lp): Likewise.
2403 (output_eh_regions): Likewise.
2404 (output_bb): Likewise.
2405 (output_function): Likewise.
2406 (output_unreferenced_globals): Likewise.
2407 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2408 instead of NUM_TREE_CODES.
2409 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2410 (lto_output_int_in_range): Change << to >> when shifting VAL.
2412 2011-06-01 Diego Novillo <dnovillo@google.com>
2414 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2415 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2417 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2420 * optabs.h (valid_multiword_target_p): Declare.
2421 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2422 doing multi-word operations.
2423 * optabs.c (expand_binop): Likewise.
2424 (expand_doubleword_bswap): Likewise.
2425 (expand_absneg_bit): Likewise.
2426 (expand_unop): Likewise.
2427 (expand_copysign_bit): Likewise.
2428 (multiword_target_p): New function.
2430 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2432 PR rtl-optimization/48830
2433 PR rtl-optimization/48808
2434 PR rtl-optimization/48792
2435 * reload.c (push_reload): Check contains_reg_of_mode.
2436 * reload1.c (strip_paradoxical_subreg): New function.
2437 (gen_reload_chain_without_interm_reg_p): Use it to handle
2438 paradoxical subregs.
2439 (emit_output_reload_insns, gen_reload): Likewise.
2441 2011-06-01 David Li <davidxl@google.com>
2443 * predict.c : Change pass name
2446 * tree-profile.c: Ditto.
2449 2011-06-01 David Li <davidxl@google.com>
2451 * tree-pretty-print.c (dump_function_header): New function.
2452 * final.c (rest_of_clean_state): Use header dumper.
2453 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2454 * passes.c (pass_init_dump_file): Use header dumper.
2456 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2458 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2459 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2460 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2462 (mem_loc_descriptor): Use them.
2464 * var-tracking.c (create_entry_value): New function.
2465 (vt_add_function_parameter): Use it.
2467 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2469 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2470 Include <signal.h>, <ucontext.h>.
2471 (sigill_caught): Define.
2472 (sigill_hdlr): New function.
2473 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2474 insns can be executed.
2475 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2476 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2478 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2480 * config/t-slibgcc-darwin: Move to ...
2481 * config/t-slibgcc-dummy: ... this. Clarify comments.
2482 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2483 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2484 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2485 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2486 Remove i386/t-crtstuff from tmake_file.
2487 (i[34567]86-*-solaris2*): Remove t-svr4,
2488 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2490 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2491 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2492 sparc/t-crtfm from tmake_file.
2493 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2494 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2496 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2497 * config/i386/t-nwld (SHLIB_LINK): Remove.
2498 * config/i386/t-rtems-i386: Rename to ...
2499 * config/i386/t-rtems: ... this.
2500 ($(T)crti.o, $(T)crtn.o): Remove.
2501 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2502 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2503 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2504 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2505 EXTRA_MULTILIB_PARTS): Remove.
2506 * config/sparc/t-sol2-64: Likewise.
2507 * config/sparc/t-sol2: Remove.
2508 * config/sparc/t-crtin: Remove.
2509 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2510 * config/i386/gmon-sol2.c: Remove.
2511 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2512 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2513 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2514 * config/i386/sol2-gc1.asm: Remove.
2515 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2516 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2517 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2518 * config/t-slibgcc-sld: Remove.
2520 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2522 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2523 base_type_for_mode with op_mode instead of mode.
2525 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2527 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2529 * config/arm/arm-tune.md: Regenerate.
2530 * config/arm/arm-tables.opt: Regenerate.
2531 * config/arm/arm.c (FL_DIV): Rename...
2532 (FL_THUMB_DIV): ... to this.
2533 (FL_ARM_DIV): Define.
2534 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2535 (arm_arch_hwdiv): Remove.
2536 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2537 (arm_issue_rate): Add cortexr5.
2538 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2539 __ARM_ARCH_EXT_IDIV__.
2540 (TARGET_IDIV): Define.
2541 (arm_arch_hwdiv): Remove.
2542 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2543 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2544 (divsi3, udivsi3): New patterns.
2545 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2546 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2548 2011-06-01 Martin Jambor <mjambor@suse.cz>
2550 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2551 * ipa-utils.c (searchc): Set scc_no.
2553 2011-06-01 Martin Jambor <mjambor@suse.cz>
2555 * ipa-utils.c (searchc_env): New field allow_overwritable.
2556 (searchc): do not ignore edges to overwritable nodes if indicated
2557 by env->allow_overwritable.
2558 (ipa_reduced_postorder): Set env.allow_overwritable.
2560 2011-06-01 Richard Guenther <rguenther@suse.de>
2562 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2564 * lto-streamer.c (lto_record_common_node): Take node pointer,
2565 do not register types.
2566 (lto_preload_common_nodes): Explicitly skip preloading nodes
2567 that differ between frontends.
2569 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2571 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2574 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2576 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2577 parameter value for dump. Dump cost on outermost call only.
2578 (rs6000_memory_move_cost): Dump cost on outermost call only.
2580 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2582 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2583 DW_OP_GNU_convert ops.
2585 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2586 cselib_preserve_constants.
2587 (cselib_lookup_1): If cselib_preserve_constants,
2588 a new VALUE is being created for REG and there is a VALUE for the
2589 same register in wider mode, add another loc with lowpart SUBREG of
2591 (cselib_subst_to_values): Handle ENTRY_VALUE.
2592 * var-tracking.c (replace_expr_with_values): Return NULL for
2594 * dwarf2out.c (convert_descriptor_to_signed): New function.
2595 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2596 instead of two shifts.
2597 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2598 the right mode if needed.
2599 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2600 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2601 convert_descriptor_to_signed.
2602 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2603 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2606 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2608 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2610 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2611 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2612 (SWI248x): New mode iterator, rename from X87MODEI.
2613 (X87MODEI): Remove mode iterator.
2614 (X87MODEI12): Ditto.
2615 (SSEMODEI24): Ditto.
2617 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2619 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2620 * doc/invoke.texi: Document max-vartrack-expr-depth.
2621 * var-tracking.c (EXPR_DEPTH): New.
2622 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2624 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2626 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2627 * config/i386/sse.md: Add n to negated FMA pattern names.
2629 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2631 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2633 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2635 * gengtype-state.c (read_state_params_structs): Initialize previous.
2637 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2639 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2640 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2642 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2644 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2645 registers. Penalize F*r->o alternative to prevent partial memory
2646 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2647 CONST_DOUBLE immediates when optimizing function for size. Do not move
2648 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2649 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2650 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2651 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2653 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2655 (fp_register_operand splitters): Use fp_register_operand
2656 constraint. Do not use FP_REG_P in insn condition.
2657 (any_fp_register_operand splitters): Use any_fp_register_operand
2658 constraint. Do not use ANY_FP_REG_P in insn condition.
2660 2011-05-31 Jan Hubicka <jh@suse.cz>
2662 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2663 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2664 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2665 (lto_output_edge): Use output_enum and var_len_unsigned.
2666 (lto_output_varpool_node): Likewise.
2667 (input_overwrite_node): Do not take resolution parameter;
2668 extract it from a bitpack.
2669 (input_node): Do not read resolution; use input_enum and
2671 (input_varpool_node): Likewise.
2672 (input_edge): Likewise.
2673 (input_cgraph_1): Likewise.
2675 2011-05-31 Richard Guenther <rguenther@suse.de>
2677 * gimple.c (gimple_register_canonical_type): Do not register
2678 any types via gimple_register_type.
2680 2011-05-31 Jan Hubicka <jh@suse.cz>
2682 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2685 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2687 PR rtl-optimization/49235
2688 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2689 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2691 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2693 PR tree-optimization/49093
2694 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2697 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2700 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2701 for concrete functions containing the code of cloned functions.
2703 2011-05-31 Richard Guenther <rguenther@suse.de>
2705 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2707 (forward_propagate_into_comparison_1): ... this.
2708 (forward_propagate_comparison): Rename to ...
2709 (forward_propagate_into_comparison): ... this. Split out
2710 real forward propagation code to ...
2711 (forward_propagate_comparison): ... this.
2712 (forward_propagate_into_gimple_cond): Remove looping.
2713 (forward_propagate_into_cond): Likewise.
2714 (simplify_not_neg_expr): Return whether we have done something.
2715 (simplify_gimple_switch): Likewise.
2716 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2717 (ssa_forward_propagate_and_combine): ... this. Re-structure
2718 to do a forward forward-propagation walk on BBs and a backward
2719 stmt combining walk on BBs. Consistently re-scan changed statements.
2720 (pass_forwprop): Adjust.
2722 2011-05-30 Ian Lance Taylor <iant@google.com>
2724 * godump.c (go_format_type): Correct length of name added to
2725 obstack for anonymous field.
2727 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2730 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2731 part of the second operand is 0.
2733 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2735 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2736 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2737 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2738 (*movdf_internal_rex64): Do not penalize F->r alternative.
2739 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2740 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2741 when optimizing function for size. Do not move CONST_DOUBLEs
2742 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2743 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2744 SUBREGs. Do not check for MEM_P operands in the insn condition,
2745 check for ANY_FP_REGNO_P instead.
2746 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2747 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2749 * config/i386/i386.c (ix86_option_override_internal): Do not
2750 set TARGET_INTEGER_DFMODE_MOVES here.
2752 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2755 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2757 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2759 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2760 DW_TAG_rvalue_reference_type even for
2761 -gdwarf-4 -fno-debug-types-section.
2763 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2765 PR tree-optimization/46728
2766 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2767 (build_and_insert_binop): New.
2768 (gimple_expand_builtin_pow): Reorder args for
2769 build_and_insert_call; use build_and_insert_binop; add more
2770 optimizations for fractional exponents.
2772 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2777 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2779 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2781 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2782 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2783 TS_BASE instead of TS_COMMON.
2784 * varasm.c (assemble_name): Remove assert.
2786 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2788 * config.gcc: Keep obselete list sorted.
2790 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2791 Eric Botcazou <ebotcazou@adacore.com>
2793 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2794 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2795 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2796 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2797 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2799 2011-05-30 Richard Guenther <rguenther@suse.de>
2801 * gimple.c (gimple_types_compatible_p_1): Compare record
2802 and union type members properly.
2804 2011-05-30 Richard Guenther <rguenther@suse.de>
2806 PR tree-optimization/49210
2807 * ipa-split.c (split_function): Care for the case where the call
2808 result is not trivially convertible to the result holding variable.
2810 2011-05-30 Richard Guenther <rguenther@suse.de>
2812 PR tree-optimization/49218
2813 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2816 2011-05-30 Richard Guenther <rguenther@suse.de>
2818 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2819 New function split out from ...
2820 (forward_propagate_into_gimple_cond): ... here. Adjust.
2821 (forward_propagate_into_cond): Likewise.
2822 (forward_propagate_comparison): Also propagate into
2823 comparisons on assignment RHS. Change return value to
2824 behave similar to forward_propagate_into_cond.
2825 (tree_ssa_forward_propagate_single_use_vars): Handle
2826 strict-overflow warnings properly for forward_propagate_comparison.
2828 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2830 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2832 * configure: Regenerate.
2834 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2836 PR tree-optimization/49199
2837 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2838 non-reduction operands are either defined in the loop or by induction.
2840 2011-05-29 Xinliang David Li <davidxl@google.com>
2842 * opts-global.c (handle_common_deferred_options): Handle new options.
2843 * passes.c (register_one_dump_file): Call register_pass_name.
2844 (execute_one_pass): Check explicit enable/disable flag.
2845 (passr_hash): New function.
2847 (register_pass_name): Ditto.
2848 (get_pass_by_name): Ditto.
2851 (enable_pass): Ditto.
2852 (disable_pass): Ditto.
2853 (is_pass_explicitly_enabled_or_disabled): Ditto.
2855 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2857 * config/i386/i386.md (*movoi_internal_avx): Use
2858 standard_sse_constant_opcode for alternative 0.
2859 (*movti_internal_sse): Ditto.
2860 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2862 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2864 (*movsi_internal): Ditto.
2865 (*movdi_internal): Ditto. Add ssecvt type moves.
2867 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2870 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2872 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2874 PR rtl-optimization/49095
2875 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2876 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2878 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2881 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2882 recurse_p argument. Only follow register copies if it is set,
2883 and prevent mips_find_pic_call_symbol from recursing.
2884 (mips_find_pic_call_symbol): Add a recurse_p argument.
2885 Pass it to mips_pic_call_symbol_from_set.
2886 (mips_annotate_pic_calls): Update accordingly.
2888 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2890 * emit-rtl.c (try_split): Use a loop to search for
2891 NOTE_INSN_CALL_ARG_LOCATIONs.
2893 2011-05-29 Richard Guenther <rguenther@suse.de>
2895 PR tree-optimization/49217
2896 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2898 2011-05-28 Jan Hubicka <jh@suse.cz>
2900 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2902 (string_slot_free): Remove
2903 (create_output_block): Initialize obstack.
2904 (destroy_output_block): Free obstack.
2905 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2906 the string unless it needs to be added into the hash.
2907 (lto_output_string_with_length): Add persistent attribute;
2908 handle NULL strings.
2909 (lto_output_string): Add PERSISTENT parameter.
2910 (output_string_cst, output_identifier): Simplify.
2911 (lto_output_location_bitpack): Update.
2912 (lto_output_builtin_tree): Update.
2913 * lto-streamer.h (struct output_block): Add obstack.
2914 (lto_output_string, lto_output_string_with_length): Remove
2915 declarations; functions are static now.
2917 2011-05-28 Jan Hubicka <jh@suse.cz>
2919 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2920 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2921 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2922 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2923 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2924 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2925 unpack_ts_decl_with_vis_value_fields,
2926 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2927 lto_get_builtin_tree): Use enum and variable length i/o.
2928 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2929 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2931 (bp_pack_enum, bp_unpack_enum): New macros.
2933 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2935 * genrecog.c: Remove redundant forward declarations.
2937 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2939 * config.gcc: Deprecate mips*-*-openbsd*.
2941 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2944 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2947 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2950 * gengtype.c (vec_prefix_type): New function.
2951 (note_def_vec): Use vec_prefix_type and change the length
2952 attribute to be based on the prefix.
2953 * vec.c: Include coretypes.h before vec.h.
2954 (struct vec_prefix): Remove.
2955 (vec_gc_p_reserve): Change the offsetof to sizeof.
2956 (vec_gc_p_reserve_exact): Likewise.
2957 (vec_heap_p_reserve): Likewise.
2958 (vec_heap_p_reserve_exact): Likewise.
2959 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2960 (vec_stack_p_reserve): Change the offsetof to sizeof.
2961 (vec_stack_p_reserve_exact): Likewise.
2962 * vec.h (struct vec_prefix): New struct definition.
2963 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2964 (VEC_T_GTY(T,B)): Likewise.
2965 (DEF_VEC_FUNC_P(T)): Use prefix field.
2966 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2967 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2969 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2971 PR tree-optimization/46728
2972 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2973 (powi_as_mults): Add gimple_set_location.
2974 (build_and_insert_call): New.
2975 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2976 0.5, 0.25, 0.75, 1./3., or 1./6.
2978 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2980 * doc/contrib.texi: Update copyright years.
2981 (Contributors): Add Zdenek Sojka.
2983 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2985 * c-decl.c (c_push_function_context): Copy the current statement
2987 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2988 (finish_struct): Call building_stmt_list_p instead of checking
2990 * c-parser.c (c_parser_postfix_expression): Likewise.
2991 * c-typeck.c (c_end_compound_stmt): Likewise.
2992 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2993 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2994 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2995 (free_stmt_list): Likewise.
2996 * tree.h (struct tree_statement_list): Include typed_tree instead
2998 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2999 as TS_TYPED instead of TS_COMMON.
3001 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3002 Uros Bizjak <ubizjak@gmail.com>
3004 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3005 (HAVE_AS_IX86_TLSGDPTL): Define.
3006 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3007 (HAVE_AS_IX86_TLSLDMPLT): Define.
3008 * configure: Regenerate.
3009 * config.in: Regenerate.
3010 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3011 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3012 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3013 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3014 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3016 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3018 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3020 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3022 (INSN_COND, INSN_REVERSE_COND): New macros.
3023 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3025 (sched_get_condition_with_rev): Cache the results, and look them up
3027 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3028 are clobbered by the current insn.
3029 * target.def (exposed_pipline): New sched data hook.
3030 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3031 * doc/tm.texi: Regenerate.
3033 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3035 PR tree-optimization/49170
3036 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3039 2011-05-27 Richard Guenther <rguenther@suse.de>
3042 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3045 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3047 * haifa-sched.c (sched_scan_info): Remove.
3048 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3050 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3052 (sched_scan): Remove.
3053 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3054 static. All callers changed.
3055 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3056 static. All callers changed.
3057 (sched_init_luids): Remove all arguments except the first. All
3058 callers changed. Don't use sched_scan.
3059 (haifa_init_h_i_d): Likewise.
3060 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3061 manually rather than using sched_init_luids. Likewise with
3062 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3063 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3064 rather than sched_init_luids with NULL args.
3065 * sel-sched-ir.c (new_insns): Remove variable.
3066 (sched_scan): New static function, previously in haifa-sched.c. Remove
3067 all arguments but the first two; all callers changed.
3068 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3069 rather than sched_init_luids.
3070 (sel_init_bbs): Remove second argument. All callers changed.
3071 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3072 with NULL arguments.
3073 (create_insn_rtx_from_pattern): Likewise.
3074 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3075 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3076 (sched_init_insn_luid, sched_extend_luids): Declare.
3077 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3080 2011-05-27 Richard Guenther <rguenther@suse.de>
3083 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3084 A CMP B ? (T) true : (T) false for non-integral types T again.
3086 2011-05-27 Jan Hubicka <jh@suse.cz>
3088 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3089 so 0 means NULL string.
3090 (lto_output_string_with_length): ... here.
3091 (lto_output_string, output_string_cst, output_identifier): Update
3092 handling of NULL strings.
3093 (lto_output_location_bitpack): New function.
3094 (lto_output_location): Use it.
3095 (lto_output_tree_ref): Use output_record_start.
3096 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3098 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3100 (input_string_internal): ... here;
3101 (input_string_cst, input_identifier, lto_input_string): Update handling
3103 (lto_input_location_bitpack): New function
3104 (lto_input_location): Use it.
3105 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3107 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3108 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3109 (bp_pack_value): Sanity check the value range.
3110 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3112 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3115 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3117 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3118 call_arg_location instructions down the floor.
3120 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3122 PR rtl-optimization/49154
3123 * ira.c (setup_pressure_classes): Process class without sublcasses
3124 as a candidate for pressure classes.
3126 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3128 PR rtl-optimization/48575
3129 * genrecog.c (position_type): New enum.
3130 (position): New structure.
3131 (decision): Use position structure instead of a string.
3132 (root_pos, peep2_insn_pos_list): New variables.
3133 (next_position, compare_positions): New functions.
3134 (new_decision): Use position structures instead of strings.
3135 (maybe_both_true): Likewise.
3136 (change_state): Likewise.
3137 (write_tree): Likewise.
3138 (make_insn_sequence): Likewise.
3140 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3142 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3143 TS_BASE instead of TS_COMMON.
3144 (find_decls_types_r): Check for TS_TYPED structure before looking at
3146 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3148 (BLOCK_CHAIN): Use new chain field.
3150 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3152 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3153 moves expensive on Power7 also.
3155 2011-05-26 Richard Guenther <rguenther@suse.de>
3157 * fold-const.c (fold_unary_loc): Remove bogus code.
3159 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3161 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3163 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3164 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3165 TS_BASE instead of TS_COMMON.
3166 * varasm.c (assemble_name): Remove assert.
3168 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3170 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3172 * libgcc-std.ver: Delete file.
3174 2011-05-26 Richard Guenther <rguenther@suse.de>
3176 PR tree-optimization/48702
3177 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3178 only when we know the base address is within bounds.
3179 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3180 assume the base address of TARGET_MEM_REFs is in bounds.
3182 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3185 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3186 declaration in TARGET_SOLARIS.
3188 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3190 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3191 The instruction is then expanded explicitly.
3192 (supported_compare): Callable instruction.
3193 (compare): Likewise.
3195 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3198 * gimplify.c (shortcut_cond_r): Don't special case
3199 COND_EXPRs if they have void type on one of their arms.
3201 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3203 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3204 to reduce duplication, and to achieve a slightly more logical order
3207 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3209 PR tree-optimization/49161
3210 * tree-vrp.c (struct case_info): New type.
3211 (compare_case_labels): Sort case_info structs instead of
3212 trees, and not primarily by CASE_LABEL uids but by
3213 label_for_block indexes.
3214 (find_switch_asserts): Put case labels into struct case_info
3215 array instead of TREE_VEC, adjust sorting, compare label_for_block
3216 values instead of CASE_LABELs.
3218 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3220 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3221 ("orndi3_neon"): Likewise.
3222 ("bic<mode>3_neon"): Likewise.
3224 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3226 PR tree-optimization/49038
3227 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3228 Ensure at least one epilogue iteration if required by data
3230 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3231 to mark loops that require peeling for gaps.
3232 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3233 (vect_get_known_peeling_cost): Take peeling for gaps into
3235 (vect_transform_loop): Generate epilogue if required by data
3237 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3238 loop as requiring an epilogue if there are gaps in the end of
3241 2011-05-25 Ian Lance Taylor <iant@google.com>
3243 * godump.c (go_format_type): Output the first field with a usable
3246 2011-05-25 Ian Lance Taylor <iant@google.com>
3248 * godump.c (go_format_type): Check for invalid type names, pointer
3249 target types, and struct field types.
3251 2011-05-25 Jason Merrill <jason@redhat.com>
3253 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3255 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3257 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3259 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3261 * config/i386/i386.md (*movqi_extv_1)): Put back
3262 "register_operand" check in "type" calculation.
3263 (*movqi_extzv_2): Likewise.
3265 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3267 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3269 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3272 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3273 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3274 __divxc3, __divtc3): Wrap definitions in #ifndef.
3276 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3279 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3280 "register_operand" check and replace q_regs_operand with
3281 QIreg_operand in "type" calculation.
3282 (*movqi_extv_1): Likewise.
3283 (*movqi_extzv_2_rex64): Likewise.
3284 (*movqi_extzv_2): Likewise.
3286 * config/i386/predicates.md (QIreg_operand): New.
3288 2011-05-25 Richard Guenther <rguenther@suse.de>
3290 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3291 type-based offset disambiguation, streamline MEM_REF and
3292 TARGET_MEM_REF handling.
3294 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3296 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3297 (bdesc_special_args): Add pause intrinsic.
3299 * config/i386/i386.md (UNSPEC_PAUSE): New.
3302 * config/i386/ia32intrin.h (__pause): Likewise.
3304 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3307 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3309 PR tree-optimization/46728
3310 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3311 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3313 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3315 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3316 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3317 instead of TS_COMMON.
3319 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3321 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3322 LIBGCC2_GNU_PREFIX is defined.
3324 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3325 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3326 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3327 __clz_tab): Define using __N.
3328 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3329 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3330 * target.def (libfunc_gnu_prefix): New hook.
3331 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3332 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3333 * doc/tm.texi: Regenerate.
3334 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3335 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3337 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3338 (init_optabs): Likewise for the bswap libfuncs.
3339 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3341 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3342 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3343 * libgcc-std.ver: Remove.
3344 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3345 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3347 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3348 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3349 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3350 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3351 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3352 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3353 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3354 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3355 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3356 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3358 2011-05-25 Jan Hubicka <jh@suse.cz>
3360 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3361 (lto_output_tree): Use output_record_start.
3362 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3363 (lto_get_pickled_tree): Use input_record_start.
3364 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3365 (lto_value_range_error): New function.
3366 * lto-streamer.h (lto_value_range_error): Declare.
3367 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3368 (lto_output_enum, lto_input_enum): New macros.
3370 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3372 * common.opt (flag_stack_usage_info): New variable.
3373 (-Wstack-usage): New option.
3374 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3375 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3376 <OPT_fstack_usage>: Likewise.
3377 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3378 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3379 of flag_stack_usage.
3380 (emit_library_call_value_1): Likewise.
3381 * explow.c (allocate_dynamic_stack_space): Likewise.
3382 * function.c (instantiate_virtual_regs ): Likewise.
3383 (prepare_function_start): Likewise.
3384 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3385 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3386 * config/arm/arm.c (arm_expand_prologue): Likewise.
3387 (thumb1_expand_prologue): Likewise.
3388 * config/avr/avr.c (expand_prologue): Likewise.
3389 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3390 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3391 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3392 * config/mips/mips.c (mips_expand_prologue): Likewise.
3393 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3394 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3395 * config/s390/s390.c (s390_emit_prologue): Likewise.
3396 * config/sh/sh.c (sh_expand_prologue): Likewise.
3397 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3398 * config/spu/spu.c (spu_expand_prologue): Likewise.
3400 2011-05-25 Richard Guenther <rguenther@suse.de>
3402 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3403 (gimple_canonical_types_compatible_p): Likewise.
3405 2011-05-25 Jan Hubicka <jh@suse.cz>
3408 * ipa.c (function_and_variable_visibility): Only add to same
3409 comdat group list if DECL_ONE_ONLY.
3411 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3413 PR rtl-optimization/49014
3414 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3416 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3419 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3421 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3423 PR rtl-optimization/48757
3424 * ira-build.c (loop_with_eh_edge_p): Rename to
3425 loop_with_complex_edge_p, check edges on complexity, make function
3427 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3430 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3432 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3433 force flag_ira_share_save_slots to 0.
3435 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3437 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3438 (vt_initialize): Set PROLOGUE_BB unconditionally.
3439 Add block comment about CFA_BASE_RTX machinery.
3440 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3441 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3443 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3446 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3447 parsing of syntax error in ObjC instance variable lists. In
3448 particular, avoid an infinite loop if there is a stray ']'.
3449 Updated error message.
3451 2011-05-24 Ian Lance Taylor <iant@google.com>
3453 * godump.c (go_define): Don't accept a string immediately after
3456 2011-05-24 Ian Lance Taylor <iant@google.com>
3458 * godump.c (struct godump_container): Add invalid_hash field.
3459 (go_format_type): Return false if type is found in invalid_hash.
3460 (go_output_typedef): Add invalid type to invalid_hash.
3461 (go_finish): Create and delete invalid_hash.
3463 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3465 PR tree-optimization/46728
3466 * tree-ssa-math-opts.c (powi_table): New.
3467 (powi_lookup_cost): New.
3469 (powi_as_mults_1): New.
3470 (powi_as_mults): New.
3471 (gimple_expand_builtin_powi): New.
3472 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3473 (gate_cse_sincos): Remove sincos/cexp restriction.
3475 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3478 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3480 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3481 * mips-tdump.c: Likewise.
3483 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3486 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3487 add -mno-XXX. Handle FMA.
3489 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3491 PR rtl-optimization/48633
3492 * ira-build.c (loop_with_eh_edge_p): New function.
3493 (mark_loops_for_removal): Use it.
3495 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3497 PR rtl-optimization/48971
3498 * ira.c (setup_pressure_classes): Don't check register move cost
3499 for classes with one registers. Don't add pressure class if there
3500 is a pressure class with the same available hard registers.
3501 Check contains_reg_of_mode. Fix a typo in collecting
3502 temp_hard_regset. Ignore hard registers not belonging to a class.
3504 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3507 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3509 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3510 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3512 PR gcov-profile/48845
3513 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3515 2011-05-24 Richard Guenther <rguenther@suse.de>
3517 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3518 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3519 (gimple_types_compatible_p_1): Adjust.
3520 (iterative_hash_canonical_type): Do not bother about complete vs.
3522 (gimple_canonical_types_compatible_p): Likewise.
3524 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3526 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3528 2011-05-24 Richard Guenther <rguenther@suse.de>
3531 * gimple.c (gimple_register_canonical_type): Revert
3533 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3534 does not for a tree for the case where it matters. Cache
3535 pointer-type alias-sets.
3537 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3539 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3540 (OBJS): Remove options.o, opts-common.o and prefix.o.
3541 (OBJS-libcommon-target): New.
3542 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3543 (BACKEND): Include libcommon-target.a.
3544 (MOSTLYCLEANFILES): Include libcommon-target.a.
3545 (libcommon-target.a): New.
3546 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3549 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3551 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3552 parts of output shared with the driver.
3553 * optc-gen.awk: Don't generate parts of output not shared with the
3555 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3556 * doc/options.texi (SourcerInclude): Mention options-save.c.
3557 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3558 (OBJS): Add options-save.o.
3559 (options-save.c, options-save.o): New.
3560 (options.o): Update dependencies.
3561 (gcc-options.o): Remove.
3562 (mostlyclean): Remove options-save.c.
3564 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3567 * dbxout.c: Include cgraph.h.
3568 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3569 and without value expr, return NULL if no varpool node exists for
3570 it or if it is not needed.
3571 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3574 * c-decl.c (start_decl): Convert expr to void_type_node.
3576 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3578 PR rtl-optimization/48826
3579 * emit-rtl.c (try_split): When splitting a call that is followed
3580 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3582 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3584 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3585 parameters passed in memory prefer using DECL_INCOMING_RTL over
3586 the pseudos it will be copied into.
3588 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3591 * config/i386/i386.c (ix86_option_override_internal): Save the
3592 initial options after checking vzeroupper.
3594 2011-05-23 David Li <davidxl@google.com>
3596 PR tree-optimization/48988
3597 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3598 Initialize has_valid_pred for each pred chain.
3600 2011-05-23 Richard Guenther <rguenther@suse.de>
3602 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3603 (iterative_hash_gimple_type): Always hash type names.
3605 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3607 * c-typeck.c (build_function_call_vec): Tweak call to
3608 check_function_arguments.
3610 2011-05-23 Richard Guenther <rguenther@suse.de>
3612 PR tree-optimization/49115
3613 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3614 is not necessarily carried out, do not claim it kills the ref.
3615 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3617 2011-05-23 Richard Guenther <rguenther@suse.de>
3620 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3621 what pointer types we accept for folding.
3623 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3625 * gthr-gnat.c: Remove.
3626 * gthr-gnat.h: Remove.
3627 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3628 * config/t-freebsd (LIB2ADDEH): Likewise.
3629 * config/t-linux (LIB2ADDEH): Likewise.
3630 * config/t-sol2 (LIB2ADDEH): Likewise.
3631 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3632 * configure.ac (target_thread_file): Remove gnat handling.
3633 * configure: Regenerate.
3634 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3636 2011-05-23 Tristan Gingold <gingold@adacore.com>
3637 Eric Botcazou <ebotcazou@adacore.com>
3639 * gcov.c (create_file_names): If no object directory is specified,
3640 keep the directory of the file.
3642 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3644 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3645 * configure: Regenerate.
3647 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3650 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3651 failed and the comparison has a single bit signed type, use
3652 constm1_rtx instead of const1_rtx for true value.
3653 (do_store_flag): If ops->type is single bit signed type, disable
3654 signel bit test optimization and pass -1 instead of 1 as last
3655 parameter to emit_store_flag_force.
3657 2011-05-23 Tom de Vries <tom@codesourcery.com>
3660 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3662 (infer_loop_bounds_from_undefined): Use new function.
3664 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3666 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3667 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3668 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3670 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3672 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3674 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3675 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3678 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3680 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3682 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3684 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3685 UNSPEC_MOVE_PIC pattern.
3687 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3689 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3690 (sparc-*-rtems*): Likewise.
3691 (sparc64-*-elf*): Likewise.
3692 (sparc64-*-rtems*): Likewise.
3693 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3694 * config/sparc/t-crtin: New file.
3695 * config/sparc/t-sol2 (crti.o): Delete rule.
3697 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3698 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3699 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3700 (ENDFILE_SPEC): Add crtn.o.
3702 2011-05-22 Tom de Vries <tom@codesourcery.com>
3705 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3706 CODE_CONTAINS_STRUCT (TS_COMMON).
3708 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3711 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3712 only after deciding which mode to use.
3714 2011-05-22 Tom de Vries <tom@codesourcery.com>
3717 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3718 for call to get_shiftadd_cost.
3720 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3723 * config/i386/cpuid.h (bit_MMXEXT): New define.
3725 2011-05-22 Nick Clifton <nickc@redhat.com>
3727 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3728 initialisation of non-existant args[2] element. Use args[] array
3729 not arg[] array to pass arguments to build_function_type_list.
3731 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3733 PR tree-optimization/49087
3734 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3736 2011-05-21 Jason Merrill <jason@redhat.com>
3739 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3740 static storage duration.
3742 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3744 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3747 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3749 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3750 false if there are call-saved registers here...
3751 (sparc_can_use_return_insn_p): ...but here instead.
3752 (save_or_restore_regs): Fix thinko.
3753 (sparc_expand_prologue): Use current_function_is_leaf.
3754 (sparc_frame_pointer_required): Likewise.
3756 2011-05-21 Nick Clifton <nickc@redhat.com>
3759 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3761 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3763 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3764 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3766 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3768 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3769 * optc-gen.awk: Move common code to opt-read.awk.
3770 * opth-gen.awk: Likewise.
3771 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3773 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3775 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3777 2011-05-20 Tom de Vries <tom@codesourcery.com>
3780 * tree-ssa-loop-ivopts.c: Include expmed.h.
3781 (get_shiftadd_cost): New function.
3782 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3784 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3787 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3788 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3790 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3792 * Makefile.in: Update comment referring to $(OBJS-common).
3794 2011-05-20 Ian Lance Taylor <iant@google.com>
3796 * godump.c (go_output_typedef): Put enum constants in the macro
3797 hash table to avoid duplicate Go const definitions.
3799 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3801 * Makefile.in (LIBDEPS): Add libcommon.a.
3803 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3804 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3805 pretty-print.o and version.o.
3806 (OBJS-libcommon): New.
3807 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3808 (BACKEND): Add libcommon.a.
3809 (MOSTLYCLEANFILES): Likewise.
3811 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3812 (cpp$(exeext)): Likewise.
3813 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3814 pretty-print.o and input.o.
3815 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3816 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3818 (mips-tfile): Don't explicitly use version.o.
3819 (mips-tdump): Likewise.
3820 (gcov.o): Depend on $(DIAGNOSTIC_H).
3821 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3822 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3823 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3824 * gcov-dump.c: Include intl.h and diagnostic.h.
3825 (main): Initialize diagnostics.
3826 * gcov.c: Include diagnostic.h.
3828 (main): Initialize diagnostics.
3829 * lto-wrapper.c: Include diagnostic.h.
3830 (main): Initialize diagnostics.
3832 2011-05-20 Michael Matz <matz@suse.de>
3834 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3836 2011-05-20 Michael Matz <matz@suse.de>
3837 Richard Guenther <rguenther@suse.de>
3839 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3840 use lto_streamer_cache_append directly instead of returning a VEC.
3841 (preload_common_node): Remove.
3842 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3844 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3846 2011-05-20 Richard Guenther <rguenther@suse.de>
3848 PR tree-optimization/49079
3849 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3850 MEM_REFs correctly for the trailing array access detection.
3851 Special case constants the same way as decls for overall size
3854 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3856 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3859 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3861 PR tree-optimization/49073
3862 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3863 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3864 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3866 2011-05-20 Richard Guenther <rguenther@suse.de>
3869 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3870 of pointer types the same way the middle-end does.
3872 2011-05-20 Richard Guenther <rguenther@suse.de>
3874 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3875 or pointer-to chains. Delay all fixup to uniquify_nodes.
3877 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3879 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3880 (fma4_fmaddsub): Likewise
3882 2011-05-19 Jan Hubicka <jh@suse.cz>
3884 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3885 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3886 (type_pair_cache): New static var.
3887 (lookup_type_pair): Use fixed sized custom hash; make inline.
3888 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3889 calls of lookup_type_pair.
3890 (print_gimple_types_stats): Remove cache stats.
3891 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3894 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3896 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3897 when TARGET_RDRND is active.
3898 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3899 Generate dummy SImode target register when target is NULL.
3901 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3903 * config/arm/arm-fpus.def: New.
3904 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3906 * config/arm/arm-tables.opt: Regenerate.
3907 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3908 (arm_option_override): Don't decode FPU name to string here.
3909 * config/arm/arm.opt (mfpu=): Use Enum.
3910 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3911 Update dependencies.
3913 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3915 * collect2.c: Include diagnostic.h.
3916 (fatal_perror, fatal, error, fancy_abort): Remove.
3917 (main): Set progname. Call xmalloc_set_program_name and
3918 diagnostic_initialize.
3919 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3920 scan_libraries, resolve_lib_name): Call fatal_error instead of
3921 fatal and fatal_perror.
3922 * collect2.h (error, fatal, fatal_perror): Don't declare.
3923 * tlink.c: Include diagnostic-core.h.
3924 (recompile_files): Call fatal_error instead of fatal_perror.
3925 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3926 pretty-print.o and input.o.
3927 (collect2.o, tlink.o): Update dependencies.
3929 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3931 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3933 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3936 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3937 COMDAT group syntax, both SPARC and x86 variants.
3938 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3939 * configure: Regenerate.
3940 * config/sol2.h (TARGET_SOLARIS): Define.
3941 (PUSHSECTION_FORMAT): Remove.
3942 (SECTION_NAME_FORMAT): Define.
3943 * config/sol2.c: Include hashtab.h.
3944 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3945 expansion, using SECTION_NAME_FORMAT.
3946 (solaris_comdat_htab): New variable.
3947 (struct comdat_entry): Define.
3948 (comdat_hash): New function.
3949 (comdat_eq): New function.
3950 (solaris_elf_asm_comdat_section): New function.
3951 (solaris_define_comdat_signature): New function.
3952 (solaris_code_end): New function.
3953 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3954 (solaris_code_end): Declare.
3955 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3956 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3958 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3959 Remove ATTRIBUTE_UNUSED.
3960 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3961 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3962 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3963 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3964 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3965 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3966 (PUSHSECTION_FORMAT): Remove.
3967 (SECTION_NAME_FORMAT): Redefine.
3969 2011-05-19 Kai Tietz <ktietz@redhat.com>
3971 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3972 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3973 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3975 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3976 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3978 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3980 2011-05-19 Richard Guenther <rguenther@suse.de>
3983 * tree-object-size.c (addr_object_size): If the pointed-to
3984 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3986 2011-05-19 Richard Guenther <rguenther@suse.de>
3988 * gimple.c (gimple_types_compatible_p_1): Compare names of
3989 the types themselves.
3990 (iterative_hash_gimple_type): And hash them that way.
3991 (gimple_register_type_1): If we register a main variant properly
3992 initialize the leader to ourselves.
3994 2011-05-19 Tom de Vries <tom@codesourcery.com>
3997 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3998 get_loop_invariant_expr_id.
3999 (get_loop_invariant_expr_id): Use get_expr_id.
4000 (parm_decl_cost): New function.
4001 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4002 Improve bound cost estimation. Use different inv_expr_id for elim and
4005 2011-05-19 Tom de Vries <tom@codesourcery.com>
4008 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4009 cost_base.cost == 0.
4011 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4014 * config/i386/sse.md
4015 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4018 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4020 PR tree-optimization/49039
4021 * tree-vrp.c (extract_range_from_binary_expr): For
4022 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4023 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4025 2011-05-18 Tom de Vries <tom@codesourcery.com>
4028 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4030 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4032 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4033 (*tls_global_dynamic_64): Ditto.
4034 (*tls_local_dynamic_base_32_gnu): Ditto.
4035 (*tls_local_dynamic_base_64): Ditto.
4036 (tls_initial_exec_64_sun): Ditto.
4038 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4040 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4041 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4043 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4044 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4045 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4046 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4047 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4048 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4049 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4051 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4053 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4054 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4055 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4056 target_thread_pointer, arm_structure_size_boundary, struct
4057 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4058 struct abi_name, arm_all_abis): Remove.
4059 (arm_option_override) Don't process most enumerated option values here.
4060 Don't process target_fpe_name here. Work with integer not string for
4061 structure size boundary; use separate diagnostics for each case.
4062 * config/arm/arm.h (enum float_abi_type, enum
4063 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4065 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4066 arm_structure_size_boundary): Remove.
4067 * config/arm/arm.opt (mabi=): Use Enum and Init.
4068 (arm_abi_type): New Enum and EnumValue entries.
4069 (mfloat-abi=): Use Enum and Init.
4070 (float_abi_type): New Enum and EnumValue entries.
4071 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4072 (mfp16-format=): Use Enum and Init.
4073 (arm_fp16_format_type): New Enum and EnumValue entries.
4074 (mstructure-size-boundary=): Use UInteger and Init.
4075 (mtp=): Use Enum and Init.
4076 (arm_tp_type): New Enum and EnumValue entries.
4078 2011-05-18 Richard Guenther <rguenther@suse.de>
4080 PR tree-optimization/49018
4081 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4082 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4083 gimple_has_side_effects.
4085 2011-05-18 Richard Guenther <rguenther@suse.de>
4087 * gimple.c (gimple_register_type_1): New function, split out from ...
4088 (gimple_register_type): ... here. Avoid infinite recursion.
4090 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4092 PR tree-optimization/41881
4093 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4094 reduction_chains along with a macro for its access.
4095 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4096 (destroy_loop_vec_info): Free reduction chains.
4097 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4098 (vect_is_slp_reduction): New function.
4099 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4100 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4101 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4102 definition types for reduction chains.
4103 (vect_supported_load_permutation_p): Don't allow permutations for
4105 (vect_analyze_slp_instance): Support reduction chains.
4106 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4107 (vect_get_constant_vectors): Handle reduction chains.
4108 (vect_schedule_slp_instance): Mark the first statement of the
4109 reduction chain as reduction.
4111 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4113 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4114 names for group elements access.
4115 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4116 reduction chains as well. Remove data reference and interleaving
4117 related words from the fields names.
4118 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4120 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4121 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4122 vect_update_interleaving_chain, vect_same_range_drs,
4123 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4124 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4125 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4126 vect_analyze_group_access, vect_analyze_data_ref_access,
4127 vect_create_data_ref_ptr, vect_transform_strided_load,
4128 vect_record_strided_load_vectors): Likewise.
4129 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4130 vect_model_load_cost, vectorizable_store, vectorizable_load,
4131 vect_remove_stores, new_stmt_vec_info): Likewise.
4132 * tree-vect-slp.c (vect_build_slp_tree,
4133 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4135 2011-05-18 Richard Guenther <rguenther@suse.de>
4138 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4139 operand verification.
4140 (verify_gimple_assign_binary): Likewise.
4141 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4142 to non-1-precision BOOLEAN_TYPEs.
4144 2011-05-18 Tom de Vries <tom@codesourcery.com>
4147 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4149 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4151 PR tree-optimization/49000
4152 * tree-ssa.c (execute_update_addresses_taken): Call
4153 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4154 be rewritten and decl has been marked for renaming, reset
4157 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4159 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4160 enum_opts_set when testing if attributes have set -mfpmath=.
4162 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4164 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4166 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4168 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4170 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4171 id.transform_lang_insert_block with NULL.
4173 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4175 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4176 (output_fp_compare): Change args 3 and 4 to bool.
4177 (ix86_expand_call): Change arg 6 to bool.
4178 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4179 (ix86_attr_length_vex_default): Change arg 3 to bool.
4180 * config/i386/i386.md: Update all uses.
4181 * config/i386/i386.c: Ditto.
4182 (ix86_flags_dependent): Change return type to bool.
4184 2011-05-17 Richard Guenther <rguenther@suse.de>
4186 * gimple.c (type_hash_pair_compare): Fix comparison.
4188 2011-05-17 Richard Guenther <rguenther@suse.de>
4190 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4191 case some more, fix final hash value of the non-singleton case.
4193 2011-05-17 Richard Guenther <rguenther@suse.de>
4197 2011-05-16 Richard Guenther <rguenther@suse.de>
4199 * gimple.c (gimple_types_compatible_p_1): Use names of the
4200 type itself, not its main variant.
4201 (iterative_hash_gimple_type): Likewise.
4203 2011-05-17 Richard Guenther <rguenther@suse.de>
4205 * gimple.c (gimple_register_canonical_type): Use the main-variant
4206 leader for computing the canonical type.
4208 2011-05-17 Nick Clifton <nickc@redhat.com>
4210 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4213 * config/rx/rx.md: Add peephole to remove redundant extensions
4215 (bitset_in_memory): Use rx_restricted_mem_operand.
4216 (bitinvert_in_memory): Likewise.
4217 (bitclr_in_memory): Likewise.
4219 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4220 Nick Clifton <nickc@redhat.com>
4222 * config/rx/rx.md: Add peepholes to match a register move followed
4223 by a comparison of the moved register. Replace these with an
4224 addition of zero that does both actions in one instruction.
4226 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4229 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4230 predicate to allow CONST_INT.
4231 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4233 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4235 * opts-common.c (opt_enum_arg_to_value): New.
4236 * opts.h (opt_enum_arg_to_value): Declare.
4237 * config/i386/i386.opt (fpmath): Remove.
4238 (mfpmath=): Use Enum, Init and Save.
4239 (fpmath_unit): New Enum and EnumValue entries.
4240 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4241 name for function fpmath state.
4242 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4243 * config/i386/i386.c: Include diagnostic.h.
4244 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4245 (ix86_target_string): Take enum fpmath_unit value instead of string.
4246 (ix86_debug_options): Update call to ix86_target_string.
4247 (ix86_option_override_internal): Don't process fpmath strings here.
4248 (x86_function_specific_save, ix86_function_specific_restore):
4249 Don't handle fpmath state specially.
4250 (ix86_function_specific_print): Pass fpmath state to
4251 ix86_target_string instead of printing in this function.
4252 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4253 Handle enum attributes.
4254 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4255 (ix86_valid_target_attribute_tree): Update option_strings
4256 handling. Handle fpmath as enum option.
4257 (ix86_can_inline_p): Update field names for function fpmath state.
4258 (ix86_expand_builtin): Update call to ix86_target_string.
4259 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4260 (ix86_fpmath): Remove.
4261 * config/i386/t-i386 (i386.o): Update dependencies.
4263 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4265 PR preprocessor/48677
4266 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4267 from decoded_options[0], not from itself.
4269 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4271 * config/i386/constraints.md (z): New constraint.
4272 * config/i386/i386.c (c): New mode attribute.
4273 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4274 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4275 constraint for operand 0.
4276 (*call_vzeroupper): Ditto.
4277 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4278 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4279 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4280 Use "lzm" constraint for operand 0.
4281 (*call_pop_vzeroupper): Ditto.
4282 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4283 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4284 constraint for operand 0.
4285 (*sibcall_vzeroupper): Ditto.
4286 (*sibcall_rex64_ms_sysv): Ditto.
4287 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4288 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4289 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4290 (*sibcall_pop_vzeroupper): Ditto.
4291 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4292 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4293 mode iterator. Use "<c>zm" constraint for operand 1.
4294 (*call_value_vzeroupper): Ditto.
4295 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4297 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4298 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4299 *call_value_pop_1. Use "lzm" constraint for operand 1.
4300 (*call_value_pop_vzeroupper): Ditto.
4301 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4302 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4303 mode iterator. Use "Uz" constraint for operand 1.
4304 (*sibcall_value_vzeroupper): Ditto.
4305 (*sibcall_value_rex64_ms_sysv): Ditto.
4306 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4307 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4308 constraint for operand 1.
4309 (*sibcall_value_pop_vzeroupper): Ditto.
4310 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4311 and "z" constraint for operand 2.
4312 (*tls_global_dynamic_32_gnu): Ditto.
4313 (*tls_local_dynamic_base_32_gnu): Ditto.
4314 (*tls_local_dynamic_base_64): Ditto.
4315 (*tls_local_dynamic_32_once): Ditto.
4316 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4318 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4320 2011-05-16 Richard Guenther <rguenther@suse.de>
4322 * gimple.c (gimple_types_compatible_p_1): Use names of the
4323 type itself, not its main variant.
4324 (iterative_hash_gimple_type): Likewise.
4326 2011-05-16 Richard Guenther <rguenther@suse.de>
4328 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4329 always visit pointer target and function result and argument types.
4331 2011-05-16 Jason Merrill <jason@redhat.com>
4334 * tree-inline.c (copy_statement_list): Put back recursion.
4336 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4340 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4341 * config/avr/avr.md ("*ior<mode>qi.byte0",
4342 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4344 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4347 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4348 register is needed for a function argument.
4350 2011-05-16 Richard Guenther <rguenther@suse.de>
4352 * gimple.c (struct type_hash_pair): New type.
4353 (type_hash_pair_compare): New function.
4354 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4356 2011-05-16 Revital Eres <revital.eres@linaro.org>
4358 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4360 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4362 * config/i386/i386.md (floating point move splitters): Fix
4363 usage of standard_80387_constant_p.
4364 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4366 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4368 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4370 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4372 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4373 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4374 (tree_ssa_lim_finalize): Likewise.
4376 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4378 * config/i386/constraint.md (Yd, Yx): New register constraints.
4379 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4380 Yd conditional register constraint.
4381 (*movtf_internal): Use standard_sse_constant_opcode.
4382 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4383 Yx conditional register constraint.
4384 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4385 Yd conditional register constraint. Use standard_sse_constant_p to
4386 check for valid SSE constants and call standard_sse_constant_opcode to
4388 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4389 constants and call standard_sse_constant_opcode to output SSE insn.
4390 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4391 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4392 optimize_size is set.
4393 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4395 2011-05-14 Tobias Burnus <burnus@net-b.de>
4397 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4399 2011-05-13 Martin Jambor <mjambor@suse.cz>
4401 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4402 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4403 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4404 (evaluate_conditions_for_ipcp_clone): Removed.
4405 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4406 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4407 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4409 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4411 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4412 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4413 lieu of MAY_HAVE_DEBUG_STMTS.
4414 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4415 debug statements if !MAY_HAVE_DEBUG_STMTS.
4417 2011-05-13 Martin Thuresson <martint@google.com>
4419 PR gcov-profile/47793
4420 * libgcov.c (gcov_exit): Support relative profile paths.
4421 * doc/invoke.texi (-fprofile-dir): Update for above change.
4423 2011-05-13 Richard Guenther <rguenther@suse.de>
4425 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4426 type-pair caching, do not compare hashes.
4428 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4431 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4432 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4434 2011-05-13 Kai Tietz <ktietz@redhat.com>
4436 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4437 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4438 compatible type for TRUTH_NOT_EXPR.
4440 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4442 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4443 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4444 can_create_pseudo_p ().
4446 2011-05-13 Richard Guenther <rguenther@suse.de>
4449 * gimple.c (iterative_hash_gimple_type): Revert change in
4450 pointer target and function result and argument hashing.
4452 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4454 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4455 (*movxf_internal_nointeger): Ditto.
4456 (*movdf_internal_rex64): Ditto.
4457 (*movdf_internal): Ditto.
4458 (*movdf_internal_nointeger): Ditto.
4459 (*movsf_internal): Ditto.
4460 (sincos splitters): Use can_create_pseudo ().
4462 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4464 * config/i386/i386-opts.h: New.
4465 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4466 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4467 ix86_section_threshold): Remove.
4468 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4469 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4471 (ix86_option_override_internal): Don't decode strings for options
4472 other than -march=, -mtune= and -mfpmath=. Don't allow for
4473 __attribute__ uses in remaining diagnostics for options with
4474 string arguments. Don't check for integer arguments being negative.
4475 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4476 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4477 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4478 ix86_branch_cost, ix86_section_threshold): Remove.
4479 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4481 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4483 (masm=): Use Enum and Init.
4484 (asm_dialect): New Enum and EnumValue entries.
4485 (mbranch-cost=): Use UInteger.
4486 (mlarge-data-threshold=): Use UInteger and Init.
4487 (mcmodel=): Use Enum and Init.
4488 (cmodel): New Enum and EnumValue entries.
4489 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4490 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4491 mregparm=): Use UInteger.
4492 (mstringop-strategy=): Use Enum and Init.
4493 (stringop_alg): New Enum and EnumValue entries.
4494 (mtls-dialect=): Use Enum and Init.
4495 (tls_dialect): New Enum and EnumValue entries.
4496 (mabi=): Use Enum and Init.
4497 (calling_abi): New Enum and EnumValue entries.
4498 (mveclibabi=): Use Enum and Init.
4499 (ix86_veclibabi): New Enum and EnumValue entries.
4501 2011-05-13 Nick Clifton <nickc@redhat.com>
4503 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4504 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4506 2011-05-13 Kai Tietz <ktietz@redhat.com>
4509 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4510 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4511 (gimple_boolify): Check for cast for boolean_type_node instead for
4514 2011-05-13 Richard Guenther <rguenther@suse.de>
4516 PR tree-optimization/48172
4517 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4518 multiplying by number of iterations for equal step.
4519 (vect_create_cond_for_alias_checks): Likewise.
4521 2011-05-13 Andreas Schwab <schwab@redhat.com>
4523 * configure.ac: Use AS_HELP_STRING throughout.
4524 * configure: Regenerate.
4526 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4528 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4529 (ix86_emit_restore_regs_using_mov): Likewise.
4530 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4532 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4534 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4535 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4536 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4537 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4538 RTX_OK_FOR_OLO10_P): ...here.
4539 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4542 2011-05-12 Kai Tietz <ktietz@redhat.com>
4544 * gimplify.c (gimple_boolify): Re-boolify expression
4545 arguments even if expression type is of kind BOOLEAN_TYPE.
4546 (gimplify_boolean_expr): Removed.
4547 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4548 and XOR. Additional take care that we keep expression's type.
4549 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4550 of TRUTH_AND|OR|XOR_EXPR.
4552 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4554 PR tree-optimization/48975
4555 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4556 on all bbs here and free and clear ifc_bbs at the end.
4558 2011-05-12 Richard Guenther <rguenther@suse.de>
4560 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4561 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4562 until after simple checks.
4563 (gimple_types_compatible_p): Likewise.
4564 (iterative_hash_gimple_type): Always hash pointer targets
4565 and function return and argument types.
4566 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4567 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4568 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4569 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4570 completely in the simple compare section.
4571 (gimple_register_canonical_type): Query the cache again after
4574 2011-05-12 Richard Guenther <rguenther@suse.de>
4576 PR tree-optimization/48172
4577 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4578 the number of iterations from the segment size calculation.
4579 (vect_create_cond_for_alias_checks): Adjust.
4581 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4584 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4585 if validate_subreg fails.
4587 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4589 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4590 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4593 2011-05-12 DJ Delorie <dj@redhat.com>
4595 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4596 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4597 created builtin into rx_builtins array.
4598 (rx_builtin_decl): New function.
4599 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4601 2011-05-12 DJ Delorie <dj@redhat.com>
4602 Nick Clifton <nickc@redhat.com>
4604 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4605 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4606 (rx_is_legitimate_address): Add pre-decrement and post-increment
4607 addressing in HImode and QImode. Fix test for out of range
4609 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4610 (rx_align_for_label): Test label before extracting its usage count.
4611 (rx_adjust_insn_lengths): Fix selection of insn codes.
4612 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4614 2011-05-11 Jason Merrill <jason@redhat.com>
4616 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4618 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4620 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4621 reindent the subsequent block.
4623 2011-05-11 Satoru Takabayashi <satorux@google.com>
4624 Paul Pluzhnikov <ppluzhnikov@google.com>
4626 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4627 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4628 * config.in: Add LINKER_HASH_STYLE.
4629 * configure.ac: Add --with-linker-hash-style.
4630 * configure: Regenerate.
4632 2011-05-11 Richard Guenther <rguenther@suse.de>
4635 * gimple.c (iterative_hash_canonical_type): Fix typo.
4637 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4639 * config/i386/i386.c (legitimize_tls_address)
4640 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4641 expanders directly for TARGET_GNU2_TLS. Determine pic and
4642 __tls_get_addr symbol reference here. Update call to
4643 gen_tls_global_dynamic_{32,64} for added arguments.
4644 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4645 expanders directly for TARGET_GNU2_TLS. Determine
4646 __tls_get_addr symbol reference here. Update call to
4647 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4648 unique UNSPEC REG_EQUIV to libcall block.
4649 (ix86_tls_get_addr): Declare static.
4650 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4651 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4652 Do not determine pic and __tls_get_addr symbol reference here. Do not
4653 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4654 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4655 (tls_global_dynamic_64): Add operand 2. Do not determine
4656 __tls_get_addr symbol reference here. Do not call
4657 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4658 (tls_local_dynamic_base64): Ditto for operand 1.
4660 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4662 * function.c (expand_function_start): Initialize stack_check_probe_note
4663 only if the generic stack checking mechanism is used.
4665 2011-05-11 Richard Guenther <rguenther@suse.de>
4667 PR tree-optimization/15256
4668 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4669 (A & B) | C, combine (A op CST1) op CST2.
4670 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4671 visit assigns that have uses.
4673 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4675 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4676 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4677 (unpack_ts_type_common_value_fields): ...this. Update comment.
4678 (unpack_value_fields): Adjust for renaming.
4679 (lto_input_ts_type_tree_pointers): Split into...
4680 (lto_input_ts_type_common_tree_pointer): ...this and...
4681 (lto_input_ts_type_non_common_tree_pointers): ...this.
4682 (lto_input_tree_pointers): Adjust for above split.
4683 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4684 (pack_ts_type_common_value_fields): ...this. Update comment.
4685 (lto_output_ts_type_tree_pointers): Split into...
4686 (lto_output_ts_type_common_tree_pointers): ...this and...
4687 (lto_output_ts_type_non_common_tree_pointers): ...this.
4688 (lto_output_tree_pointers): Adjust for above split.
4689 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4690 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4691 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4692 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4694 (struct tree_type): Split into...
4695 (struct tree_type_common: ...this and...
4696 (struct tree_type_with_lang_specific): ...this and...
4697 (struct tree_type_non_common): ...this. Adjust accessor macros
4699 (TYPE_VALUES_RAW): Define.
4700 (union tree_node): Update for above changes.
4701 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4703 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4704 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4705 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4706 * treestructu.def (TS_TYPE): Remove.
4707 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4710 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4713 * tree-ssa.c (reset_debug_uses): New function.
4714 * tree-flow.h (reset_debug_uses): New prototype.
4715 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4716 * tree-loop-distribution.c (generate_loops_for_partition): Call
4717 reset_debug_uses on the stmts that will be removed. Keep around
4718 all debug stmts, don't count them as bits in partition bitmap.
4719 (generate_builtin): Don't count debug stmts or labels as bits in
4722 2011-05-11 Richard Guenther <rguenther@suse.de>
4724 * gimple.c (gimple_type_hash_1): Merge with ...
4725 (gimple_type_hash): ... this.
4726 (gtc_visit): Remove mode parameter and simplify accordingly.
4727 (gimple_types_compatible_p_1): Likewise.
4728 (gimple_types_compatible_p): Likewise.
4729 (iterative_hash_gimple_type): Likewise.
4731 (gimple_type_eq): Adjust.
4733 2011-05-11 Revital Eres <revital.eres@linaro.org>
4735 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4736 enters the branch create an anti edge in the opposite direction
4737 to prevent the creation of reg-moves.
4738 * modulo-sched.c: Adjust comment to reflect the fact we are
4739 scheduling closing branch.
4740 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4741 (stage_count): New field in struct partial_schedule.
4742 (calculate_stage_count): New function.
4743 (normalize_sched_times): Rename to reset_sched_times and handle
4744 incrementing the sched time of the nodes by a constant value
4745 passed as parameter.
4746 (duplicate_insns_of_cycles): Skip closing branch.
4747 (sms_schedule_by_order): Schedule closing branch.
4748 (ps_insn_find_column): Handle closing branch.
4749 (sms_schedule): Call reset_sched_times and adjust the code to
4750 support scheduling of the closing branch.
4751 (ps_insert_empty_row): Update calls to normalize_sched_times
4752 and rotate_partial_schedule functions.
4754 2011-05-11 Richard Guenther <rguenther@suse.de>
4757 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4759 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4761 * opts.c (finish_options): Move warning settings from process_options.
4762 * toplev.c (process_options): Move warning settings to finish_options.
4764 2011-05-11 Richard Guenther <rguenther@suse.de>
4766 PR tree-optimization/18041
4767 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4768 (simplify_bitwise_binary): ... this. Handle operand conversions
4769 by applying them to the result instead.
4770 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4772 2011-05-11 Richard Guenther <rguenther@suse.de>
4774 * gimple.c (gimple_canonical_types_compatible_p): Split out
4775 from gimple_types_compatible_p and friends. Do not recurse
4776 to pointed-to types.
4777 (gimple_canonical_type_eq): Use it.
4778 (iterative_hash_canonical_type): Split out from
4779 iterative_hash_gimple_type and friends. Do not recurse
4780 to pointed-to types.
4781 (gimple_canonical_type_hash): Use it, allocate the hash here.
4783 2011-05-11 Revital Eres <revital.eres@linaro.org>
4785 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4788 2011-05-11 Revital Eres <revital.eres@linaro.org>
4790 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4791 instead of PREV_INSN.
4793 2011-05-11 Revital Eres <revital.eres@linaro.org>
4795 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4796 * loop-doloop.c (doloop_condition_get): Likewise.
4797 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4799 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4801 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4803 * tree.def (CASE_LABEL_EXPR): Add an operand.
4804 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4806 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4808 * c-decl.c (c_override_global_bindings_to_false): Remove.
4809 (global_bindings_p): Don't check
4810 c_override_global_bindings_to_false.
4811 * c-tree.h (c_override_global_bindings_to_false): Remove.
4812 * c-typeck.c (composite_type): Don't set
4813 c_override_global_bindings_to_false.
4815 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4817 PR target/48857, 48495
4818 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4820 (VSX_MOVE_MODE): Ditto.
4821 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4822 VSX vector types. Add V2DImode.
4823 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4824 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4825 (MODES_TIEABLE_P): Ditto.
4827 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4828 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4830 (init_cumulative_args): Ditto.
4831 (rs6000_function_arg_boundary): Ditto.
4832 (rs6000_function_arg_advance_1): Ditto.
4833 (rs6000_function_arg): Ditto.
4834 (rs6000_function_ok_for_sibcall): Ditto.
4835 (emit_frame_save): Ditto.
4836 (rs6000_function_value): Ditto.
4837 (rs6000_libcall_value): Ditto.
4839 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4841 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4842 i386/darwin-lib.h to $libgcc_tm_file.
4843 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4845 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4847 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4849 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4851 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4852 * config/rs6000/rs6000-tables.opt: New file (generated).
4853 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4854 rs6000/rs6000-tables.opt to extra_options.
4855 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4856 * config/rs6000/rs6000.c (rs6000_select): Remove.
4857 (processor_target_table): Move contents to rs6000-cpus.def.
4858 (darwin_rs6000_override_options): Check
4859 global_options_set.x_rs6000_cpu_index instead of
4860 rs6000_select[1].string.
4861 (rs6000_option_override_internal): Likewise.
4862 (rs6000_handle_option): Don't assert that global structures are in
4863 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4864 (rs6000_default_cpu): New variable.
4865 (rs6000_file_start): Set it instead of local default_cpu. Check
4866 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4867 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4868 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4869 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4870 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4871 rs6000_select): Remove.
4872 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4874 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4875 * config/rs6000/t-rs6000
4876 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4877 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4878 global_options_set.x_rs6000_cpu_index instead of
4879 rs6000_select[1].string.
4880 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4881 global_options_set.x_rs6000_cpu_index instead of
4882 rs6000_select[1].string.
4884 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4886 * config.gcc (libgcc_tm_file): Define instead of including files
4887 from ../../libgcc/config/ in tm_file.
4888 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4889 * configure: Regenerate.
4890 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4891 libgcc_tm.h, cs-libgcc_tm.h): New.
4892 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4893 (clean): Remove libgcc_tm.h.
4894 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4895 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4896 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4898 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4901 * config/avr/avr.c (avr_ret_register): Return unsigned int
4903 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4904 it to avr_libcall_value.
4905 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4907 (avr_expand_binop_builtin): Ditto.
4908 (avr_expand_unop_builtin): Ditto.
4910 2011-05-10 DJ Delorie <dj@redhat.com>
4912 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4913 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4914 * config/rx/rx.c (rx_align_for_label): Add label and
4915 uses_threshold parameters. Do not align when the label is not
4917 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4919 2011-05-10 Richard Guenther <rguenther@suse.de>
4921 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4922 a series of conversions and apply foldings similar to what
4924 (tree_ssa_forward_propagate_single_use_vars): Call it.
4926 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4928 PR tree-optimization/48611
4929 PR tree-optimization/48794
4930 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4931 referenced from RESX or EH_DISPATCH arguments.
4934 * dfp.c (decimal_to_decnumber): Handle conversion from
4935 dconst{1,2,m1,half}.
4937 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4939 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4940 for !flag_prefer_avx128.
4941 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4943 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4945 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4946 (fold_ternary_loc): Use expr_location_or.
4948 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4951 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4952 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4953 Pmode and mem_mode is not VOIDmode.
4955 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4957 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4958 TYPE_QUAL_RESTRICT): Convert to enum.
4960 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4962 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4963 (const_pow2_1_to_8_operand): Ditto.
4964 (const_pow2_1_to_128_operand): Ditto.
4965 (const_pow2_1_to_32768_operand): Ditto.
4966 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4967 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4968 in insn constraint to check integer value of operand 3.
4969 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4971 (PINSR_MODE): New mode iterator.
4972 (sse2p4_1): New mode attribute.
4973 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4974 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4975 iterator. Use const_int_operand instead of
4976 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4977 exact_log2 in insn constraint to check integer value of operand 3.
4979 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4981 * config/i386/sse.md (blendbits): Remove mode attribute.
4982 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4983 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4984 Check integer value of operand 3 in insn constraint.
4986 2011-05-09 Richard Guenther <rguenther@suse.de>
4988 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4990 (lto_symtab_merge): Likewise. Do not register types here.
4991 (lto_symtab_merge_decls_2): Likewise.
4992 (lto_symtab_merge_decls_1): Likewise.
4993 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4994 * gimple.c (enum gtc_mode): Declare.
4995 (gimple_types_compatible_p): Make static.
4997 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4999 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5000 temporary register to match Pmode.
5002 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5004 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5005 and *vec_concatv4si_1_avx.
5007 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5009 PR rtl-optimization/48927
5010 * ira-conflicts.c (commutative_constraint_p): Use
5011 recog_data.alternative_enabled_p to disable alternatives where
5012 "enabled" attribute is false.
5013 (get_dup_num): Ditto.
5014 * ira-lives.c (single_reg_class): Ditto.
5015 (ira_implicitly_set_insn_hard_regs): Ditto.
5017 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5019 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5020 (dataflow_set_preserve_mem_locs): Likewise.
5022 2011-05-09 Philipp Thomas <pth@suse.de>
5024 * config/mep/mep.c (mep_validate_vliw): Syntax description
5025 should not be translated.
5027 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5029 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5030 * config/mips/mips-tables.opt: New file (generated).
5031 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5032 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5033 MIPS_ARCH_OPTION_NATIVE): Define.
5034 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5036 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5037 mips_parse_cpu): Remove.
5038 (mips_cpu_info_from_opt, mips_default_arch): New.
5039 (mips_handle_option): Don't assert that global structures are in
5040 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5041 (mips_option_override): Use new variables and functions to set
5042 state of these options. Use strcmp to check for individual CPU names.
5043 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5045 * config/mips/mips.opt (march=): Use ToLower and Enum.
5046 (mips): Use ToLower, Enum and Var.
5047 (mtune=): Use ToLower and Enum.
5048 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5050 2011-05-08 Jan Hubicka <jh@suse.cz>
5052 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5053 Arrange type pairs to be UID ordered.
5054 (gimple_lookup_type_leader): Make inline.
5056 2011-05-09 Nick Clifton <nickc@redhat.com>
5059 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5063 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5066 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5068 * combine.c (simplify_comparison): Abstract out parts into...
5069 (simplify_compare_const): ... new function.
5070 (try_combine): Generalize parallel arithmetic/compare combining
5071 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5073 2011-05-08 Jan Hubicka <jh@suse.cz>
5075 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5076 (cgraph_create_virtual_clone): Call hooks once virtual clone
5078 * cgraph.h (cgraph_clone_node): Update prototype.
5079 * ipa-cp.c (ipcp_estimate_growth): Use
5080 estimate_ipcp_clone_size_and_time.
5081 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5082 * lto-cgraph.c (input_node): Update.
5083 * ipa-inline.c (recursive_inlining): Update.
5084 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5085 (evaluate_conditions_for_known_args): Break out from ...
5086 (evaluate_conditions_for_edge): ... here.
5087 (evaluate_conditions_for_ipcp_clone): New function.
5088 (inline_node_duplication_hook): Update clone summary based
5090 (estimate_callee_size_and_time): Rename to ...
5091 (estimate_node_size_and_time): take NODE instead of EDGE;
5092 take POSSIBLE_TRUTHS as argument.
5093 (estimate_callee_size_and_time): Update.
5094 (estimate_ipcp_clone_size_and_time): New function.
5095 (do_estimate_edge_time): Update.
5097 2011-05-08 Richard Guenther <rguenther@suse.de>
5101 * expmed.c (expand_shift_1): Compute adjusted constant shift
5104 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5106 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5108 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5110 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5112 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5114 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5116 2011-05-07 Jan Hubicka <jh@suse.cz>
5118 * ipa-inline-transform.c (inline_call): Account when program size
5120 * ipa-inline.c (relative_time_benefit): New function.
5121 (edge_badness): Reorganize to be power 2 based; fix thinko when
5122 computing badness for negative growth; update comments to match
5123 reality; better dumps.
5125 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5127 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5128 type to bool and adjust comment.
5129 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5130 (fold_mathfn_compare): Remove calls to global_bindings_p.
5131 (fold_inf_compare): Likewise.
5132 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5133 * c-tree.h (global_bindings_p): Adjust prototype.
5134 * c-decl.c (global_bindings_p): Return bool and simplify.
5136 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5138 PR tree-optimization/48837
5139 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5140 when accumulator transformation is performed.
5142 2011-05-06 Jan Hubicka <jh@suse.cz>
5144 * i386.h (ix86_tune_indices): Add
5145 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5146 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5147 * i386.c (initial_ix86_tune_features): Add
5148 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5149 (software_prefetching_beneficial_p): Remove predicate.
5150 (ix86_option_override_internal): Use new macro.
5152 2011-05-06 Jan Hubicka <jh@suse.cz>
5154 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5156 2011-05-06 Jan Hubicka <jh@suse.cz>
5158 * cgraph.c (cgraph_add_thunk): Create real function node instead
5159 of alias node; finalize it and mark needed/reachale; arrange visibility
5160 to be right and add it into the corresponding same comdat group list.
5161 (dump_cgraph_node): Dump thunks.
5162 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5163 cgraph_function_with_gimple_body_p,
5164 cgraph_first_function_with_gimple_body,
5165 cgraph_next_function_with_gimple_body): New functions.
5166 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5168 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5169 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5170 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5171 devirtualization when optimizing.
5172 (verify_cgraph_node): Verify thunks.
5173 (cgraph_analyze_function): Analyze thunks.
5174 (cgraph_mark_functions_to_output): Output thunks only in combination
5175 with function they are assigned to.
5176 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5177 alias into normal node.
5178 (assemble_thunks): New functoin.
5179 (cgraph_expand_function): Use it.
5180 * lto-cgraph.c (lto_output_node): Stream thunks.
5181 (input_overwrite_node): Stream in thunks.
5182 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5183 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5184 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5185 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5186 (inline_analyze_function): Do not care about thunk jump functions.
5187 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5188 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5189 cgraph_function_with_gimple_body_p.
5190 * passes.c (do_per_function_toporder): Use
5191 cgraph_function_with_gimple_body_p.
5192 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5193 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5194 (function_called_by_processed_nodes_p): Likewise.
5196 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5198 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5199 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5201 (mabi=): Replace with separate entries for mabi=altivec,
5202 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5203 mabi=ieeelongdouble and mabi=ibmlongdouble.
5204 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5205 check for -mabi=spe without SPE ABI support here.
5206 (rs6000_handle_option): Replace OPT_mabi_ handling with
5207 OPT_mabi_altivec and OPT_mabi_spe handling.
5209 2011-05-06 Cary Coutant <ccoutant@google.com>
5211 * dwarf2out.c (contains_subprogram_definition): New function.
5212 (should_move_die_to_comdat): Call it.
5214 2011-05-06 Jeff Law <law@redhat.com>
5216 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5217 remove_ctrl_stmt_and_useless_edges.
5218 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5219 (fixup_template_block, thread_single_edge): Likewise.
5220 (mark_threaded_blocks): Use THREAD_TARGET.
5222 2011-05-06 Alan Modra <amodra@gmail.com>
5225 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5226 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5228 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5230 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5231 constraint modifier to "r".
5233 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5235 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5236 fall through for OPT_mcmodel_.
5238 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5240 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5242 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5244 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5247 * config/arm/arm.opt (marm): Document it.
5248 (mthumb): Reject negative variant.
5250 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5253 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5254 Fix typo in "ccvt" variable name.
5256 2011-05-06 Tristan Gingold <gingold@adacore.com>
5259 * config/vms/vms-ar.c (main): Remove cwd variable.
5261 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5264 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5266 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5268 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5269 * gimplify.c (gimplify_switch_expr): Likewise.
5270 * omp-low.c (expand_omp_sections): Likewise.
5271 * tree-eh.c (lower_try_finally_switch): Likewise.
5272 (lower_eh_dispatch): Likewise.
5273 * tree.h (build_case_label): Declare.
5274 * tree.c (build_case_label): Define.
5276 2011-05-05 Jason Merrill <jason@redhat.com>
5279 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5280 (copy_statement_list): Don't recurse.
5281 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5284 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5286 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5287 through from -mfpu= handling.
5288 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5290 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5292 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5295 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5297 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5299 (hppa[12]*-*-hpux11*): Ditto.
5300 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5301 * config/ia64/hpux-unix2003.h: New.
5302 * config/pa/pa-hpux1131.opt: New.
5303 * config/pa/pa-hpux1131.h: New.
5304 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5305 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5306 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5308 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5311 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5312 instead of mode as 3rd argument to recursive call.
5313 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5314 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5316 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5317 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5318 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5319 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5321 2011-05-05 Julian Brown <julian@codesourcery.com>
5323 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5324 parenthesis in D-register case.
5326 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5328 * opt-functions.awk (var_type_struct): Handle Enum options.
5329 * optc-gen.awk: Don't check range of variables of character type.
5330 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5331 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5332 rs6000_sdata_name, rs6000_explicit_options): Remove.
5333 (rs6000_option_override_internal): Check for -malign-power here.
5334 Use global_options_set instead of rs6000_explicit_options.
5335 (rs6000_parse_fpu_option): Remove.
5336 (rs6000_handle_option): Access variables via opts and opts_set
5337 pointers. Use error_at and warning_at. Add fall-through
5338 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5339 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5340 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5341 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5342 here. Don't use rs6000_parse_fpu_option.
5343 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5344 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5345 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5347 (mspe): Use Var and Save.
5348 (mtraceback=): Use Enum and Var.
5349 (rs6000_traceback_type): New Enum and EnumValue entries.
5350 (mfloat-gprs=): Use Enum, Var and Save.
5351 (rs6000_float_gprs): New Enum and EnumValue entries.
5352 (mlong-double-): use Var and Save.
5353 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5354 (malign-): Use Enum and Var.
5355 (rs6000_alignment_flags): New Enum and EnumValue entries.
5357 (fpu_type_t): New Enum and EnumValue entries.
5358 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5359 global_options_set instead of rs6000_explicit_options.
5360 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5361 global_options_set instead of rs6000_explicit_options.
5362 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5363 global_options_set instead of rs6000_explicit_options.
5364 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5365 global_options_set instead of rs6000_explicit_options.
5366 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5367 global_options_set instead of rs6000_explicit_options.
5368 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5369 global_options_set instead of rs6000_explicit_options.
5370 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5372 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5373 global_options_set instead of rs6000_explicit_options.
5374 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5375 (rs6000_cmodel): New Enum and EnumValue entries.
5376 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5377 global_options_set instead of rs6000_explicit_options.
5378 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5379 (mtls-size=): Use Enum and Var.
5380 (rs6000_tls_size): New Enum and EnumValue entries.
5382 2011-05-05 Michael Matz <matz@suse.de>
5384 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5385 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5386 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5387 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5388 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5389 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5390 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5391 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5392 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5393 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5394 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5395 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5396 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5397 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5398 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5399 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5401 2011-05-05 Richard Guenther <rguenther@suse.de>
5403 * expmed.c (expand_variable_shift): Rename to ...
5404 (expand_shift_1): ... this. Take an expanded shift amount.
5405 For rotates recurse directly not building trees for the shift amount.
5406 (expand_variable_shift): Wrap around expand_shift_1.
5407 (expand_shift): Adjust.
5409 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5411 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5413 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5415 * tree.h (get_pending_sizes): Remove prototype.
5416 (put_pending_size): Likewise.
5417 (put_pending_sizes): Likewise.
5418 * stor-layout.c (pending_sizes): Delete.
5419 (get_pending_sizes): Likewise.
5420 (put_pending_size): Likewise.
5421 (put_pending_sizes): Likewise.
5422 (variable_size): Do not call put_pending_size and tidy up.
5423 * function.h (struct function): Remove dont_save_pending_sizes_p.
5424 * lto-streamer-in.c (input_function): Do not stream it.
5425 * lto-streamer-out.c (output_function): Likewise.
5426 * tree-inline.c (initialize_cfun): Do not copy it.
5427 * c-decl.c (store_parm_decls): Do not set it.
5428 * omp-low.c (create_task_copyfn): Likewise.
5429 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5431 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5433 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5435 (*movdf_internal): Ditto.
5436 (*movdf_internal_nointeger): Ditto.
5437 (*movsf_internal): Ditto.
5439 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5441 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5442 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5443 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5444 (c_variable_size): Remove.
5445 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5446 call put_pending_sizes.
5447 (get_parm_info): Add parameter expr. Use it to set
5448 arg_info->pending_sizes.
5449 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5451 * c-parser.c (c_parser_parms_declarator): Update call to
5452 c_parser_parms_list_declarator.
5453 (c_parser_parms_list_declarator): Take parameter expr. Update
5454 call to push_parm_decl. Update recursive call. Don't call
5455 get_pending_sizes. Update calls to get_parm_info.
5456 (c_parser_objc_method_definition): Update calls to
5457 c_parser_objc_method_decl and objc_start_method_definition.
5458 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5459 (c_parser_objc_method_decl): Add parameter expr. Update call to
5461 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5462 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5463 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5465 2011-05-05 Michael Hope <michael.hope@linaro.org>
5468 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5471 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5473 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5474 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5475 (spu_output_mi_thunk): New function.
5477 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5479 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5480 targetm.asm_out.print_operand.
5481 * config/sol2.c: Include target.h.
5483 2011-05-04 Jan Hubicka <jh@suse.cz>
5485 * ipa-inline.c (reset_edge_caches): New function.
5486 (update_caller_keys): Add check_inlinablity_for; do not
5487 reset edge caches; remove now unnecesary loop.
5488 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5489 (update_all_callee_keys): Likewise.
5490 (inline_small_functions): Sanity check cache; update code
5493 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5495 PR rtl-optimization/47612
5496 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5497 as the last insn of the sequence to be moved.
5499 2011-05-04 Tobias Burnus <burnus@net-b.de>
5502 * doc/invoke.texi (Ofast): Document that it
5503 enables Fortran's -fno-protect-parens.
5505 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5507 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5509 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5511 * stor-layout.c (variable_size): Do not issue errors.
5513 2011-05-04 Richard Guenther <rguenther@suse.de>
5515 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5516 for array-ref indices.
5517 (tree_coverage_counter_addr): Likewise.
5518 (build_fn_info_type): Use size_int for index types.
5519 (build_gcov_info): Likewise.
5521 2011-05-04 Richard Guenther <rguenther@suse.de>
5523 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5525 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5526 for constructor indices.
5527 (push_init_level): Likewise.
5529 2011-05-04 Richard Guenther <rguenther@suse.de>
5531 * explow.c (promote_mode): Move variable declarations before code.
5533 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5535 * tree.h (build_function_type_array): Declare.
5536 (build_varargs_function_type_array): Declare.
5537 (build_function_type_vec, build_varargs_function_type_vec): Define.
5538 * tree.c (build_function_type_array_1): New function.
5539 (build_function_type_array): New function.
5540 (build_varargs_function_type_array): New function.
5542 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5544 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5545 before setting STMT_VINFO_TYPE.
5547 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5549 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5550 instead of spu_pass_by_reference.
5552 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5554 * calls.c (emit_library_call_value_1): Invoke
5555 promote_function_mode hook on libcall arguments.
5556 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5557 argument being NULL.
5558 * targhooks.c (default_promote_function_mode): Lisewise.
5559 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5560 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5562 * doc/tm.texi: Document that TYPE argument might be NULL.
5564 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5566 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5568 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5571 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5573 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5575 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5576 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5578 * mips-tfile.c: ... here.
5579 Don't include coretypes.h, tm.h, filenames.h.
5580 (saber_stop): Remove definition and all calls.
5581 [__SABER__]: Remove.
5582 (__LINE__): Remove default.
5583 (Size_t, Ptrdiff_t): Remove definitions.
5584 Replace by size_t, ptrdiff_t.
5585 [!MIPS_DEBUGGING_INFO]: Remove.
5586 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5587 (progname): Add const.
5589 Replace all uses by static.
5590 (ALIGN_SYMTABLE_OFFSET): Remove default.
5591 * mips-tdump.c: Don't include coretypes.h, tm.h.
5592 Remove !MIPS_IS_STAB guard.
5593 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5594 $(TM_H), filenames.h dependencies.
5595 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5597 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5600 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5601 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5603 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5606 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5607 account and save/restore RETS.
5608 (PROFILE_BEFORE_PROLOGUE): Define.
5609 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5610 the push insn to use predecrement.
5612 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5615 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5617 2011-05-04 Nick Clifton <nickc@redhat.com>
5619 * config/mn10300/mn10300.c: Include cfgloop.h.
5621 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5622 Lcc or a FLcc insn into the instruction stream.
5623 (mn10300_block_contains_call): New function. Returns true if the
5624 given basic block contains a CALL insn.
5625 (mn10300_loop_contains_call_insn): New function. Returns true if
5626 the given loop contains a CALL insn.
5627 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5628 to use the SETLB and Lcc or FLcc insns.
5629 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5630 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5631 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5632 disable the SETLB optimization.
5633 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5634 __SETLB__ or __NO_SETLB__.
5635 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5636 (movsf_internal): Handle MDR register.
5637 (cmpsi): Make visible.
5638 (setlb): New pattern.
5640 (FLcc): New pattern.
5642 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5645 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5646 for reg<->xmm moves.
5647 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5648 (vec_concatv2di_rex64_sse): Ditto.
5649 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5650 (*vec_extractv2di_1_rex64): Ditto.
5653 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5655 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5657 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5659 2011-05-04 Richard Guenther <rguenther@suse.de>
5661 * tree.h (int_const_binop): Remove notrunc argument.
5662 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5663 create integer constants that are properly truncated.
5664 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5665 (const_binop): Remove zero notrunc argument to int_const_binop.
5666 (size_binop_loc): Likewise.
5667 (fold_div_compare): Likewise.
5668 (maybe_canonicalize_comparison_1): Likewise.
5669 (fold_comparison): Likewise.
5670 (fold_binary_loc): Likewise.
5671 (multiple_of_p): Likewise.
5672 * expr.c (store_constructor): Likewise.
5673 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5674 (maybe_fold_stmt_addition): Likewise.
5675 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5676 * stor-layout.c (layout_type): Likewise.
5677 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5678 * tree-sra.c (build_ref_for_offset): Likewise.
5679 (build_user_friendly_ref_for_offset): Likewise.
5680 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5681 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5682 * tree-ssa-loop-niter.c (inverse): Likewise.
5683 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5684 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5685 * tree-switch-conversion.c (check_range): Likewise.
5686 (build_constructors): Likewise.
5687 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5688 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5689 (extract_range_from_assert): Likewise.
5690 (vrp_int_const_binop): Likewise.
5691 (extract_range_from_binary_expr): Likewise.
5692 (extract_range_from_unary_expr): Likewise.
5693 (check_array_ref): Likewise.
5694 (find_case_label_range): Likewise.
5695 (simplify_div_or_mod_using_ranges): Likewise.
5696 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5697 comparing case labels for merging.
5699 2011-05-03 Mark Wielaard <mjw@redhat.com>
5701 * dwarf2out.c (debug_str_hash_forced): Removed.
5702 (gen_label_for_indirect_string): Removed.
5703 (get_debug_string_label): Removed.
5704 (AT_string_form): Generate label directly.
5705 (output_indirect_string): Test indirect_string_node for
5706 DW_FORM_strp instead of checking label and refcount.
5707 (prune_indirect_string): Removed.
5708 (prune_unused_types): Don't check debug_str_hash_forced or
5709 call prune_indirect_string.
5711 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5714 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5716 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5720 * combine.c (try_combine): Skip debug insns at m_split tests.
5722 2011-04-26 Mark Wielaard <mjw@redhat.com>
5725 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5726 when info_section_emitted.
5728 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5730 * config/mips/mips-opts.h: New.
5731 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5733 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5734 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5735 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5737 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5739 (mips_abi, mips_code_readable): Don't declare.
5740 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5741 (mabi=): Use Enum and Var.
5742 (mips_abi): New Enum and EnumValue entries.
5743 (mcode-readable=): Use Enum and Var.
5744 (mips_code_readable_setting): New Enum and EnumValue entries.
5745 (mr10k-cache-barrier=): Use Enum and Var.
5746 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5748 2011-05-03 Jan Hubicka <jh@suse.cz>
5750 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5751 replace hash by pointer map.
5752 (cgraph_node_set_element_def, cgraph_node_set_element,
5753 const_cgraph_node_set_element, varpool_node_set_element_def,
5754 varpool_node_set_element, const_varpool_node_set_element): Remove.
5755 (free_cgraph_node_set, free_varpool_node_set): New function.
5756 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5757 * tree-emutls.c: Free varpool node set.
5758 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5759 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5760 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5761 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5762 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5763 Move here from ipa.c; implement using pointer_map
5764 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5765 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5766 debug_cgraph_node_set, varpool_node_set_new,
5767 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5768 dump_varpool_node_set, debug_varpool_node_set):
5769 Move to ipa-uitls.c.
5770 * passes.c (ipa_write_summaries): Update.
5772 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5774 From Mike Frysinger:
5775 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5776 bf542/bf544/bf547/bf548/bf549.
5778 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5780 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5782 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5785 * config/bfin/bfin.md (MOVCC): New mode_macro.
5786 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5787 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5788 comments from generated assembly.
5790 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5793 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5794 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5795 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5796 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5797 * config/bfin/lib1funcs.asm (___muldi3): New function.
5799 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5801 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5802 build_function_type_list instead of build_function_type.
5803 Rearrange initialization of `args' to do so.
5805 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5807 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5808 instead of build_function_type.
5810 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5812 * config/rs6000/rs6000.c (spe_init_builtins): Call
5813 build_function_type_list instead of build_function_type.
5814 (paired_init_builtins, altivec_init_builtins): Likewise.
5815 (builtin_function_type): Likewise.
5817 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5819 * config/sh/sh.c (sh_media_init_builtins): Call
5820 build_function_type_list instead of build_function_type.
5822 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5824 * config/sparc/sparc.c (sparc_file_end): Call
5825 build_function_type_list instead of build_function_type.
5827 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5829 * config/alpha/alpha.c (alpha_init_builtins): Call
5830 build_function_type_list instead of build_function_type.
5832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5834 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5835 build_function_type_list instead of build_function_type.
5837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5839 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5840 build_function_type_list instead of build_function_type.
5841 Delete `endlink' variable.
5843 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5845 * config/avr/avr.c (avr_init_builtins): Call
5846 build_function_type_list instead of build_function_type.
5848 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5850 * config/picochip/picochip.c (picochip_init_builtins): Call
5851 build_function_type_list instead of build_function_type.
5852 Delete `endlink' variable.
5854 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5856 * config/bfin/bfin.c (bfin_init_builtins): Call
5857 build_function_type_list instead of build_function_type.
5859 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5862 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5863 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5865 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5868 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5869 libbffastfp overrides libgcc when -mfast-fp.
5871 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5873 Originally from Bernd Schmidt
5874 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5875 * config/bfin/bfin.c (override_options): Test it and error if
5878 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5880 Originally From Bernd Schmidt
5881 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5884 2011-05-03 Jeff Law <law@redhat.com>
5886 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5887 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5888 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5889 than accessing AUX field directly. Free the AUX field before
5891 (thread_block, thread_through_loop_header): Likewise.
5892 (thread_single_edge, mark_threaded_blocks): Likewise.
5893 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5894 (register_jump_thread): Do not attempt to thread to a NULL edge.
5896 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5898 * function.c (init_function_start): Call decide_function_section.
5899 * varasm.c (decide_function_section): New function.
5900 (assemble_start_function): When not using
5901 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5902 or first_function_block_is_cold.
5903 * rtl.h (decide_function_section): Declare.
5905 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5906 Jakub Jelinek <jakub@redhat.com>
5909 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5910 only succeed if req_mode is the same as set_mode.
5912 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5914 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5915 * genemit.c (gen_exp): Handle RETURN.
5916 * emit-rtl.c (verify_rtx_sharing): Likewise.
5917 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5918 * rtl.c (copy_rtx): RETURN is shared.
5919 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5921 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5922 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5923 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5924 * config/cris/cris.c (cris_expand_return): Likewise.
5925 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5926 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5927 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5928 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5929 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5931 * config/v850/v850.c (expand_epilogue): Likewise.
5932 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5933 * config/arm/arm.md (epilogue): Likewise.
5934 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5935 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5936 variable to ret_reg.
5938 2011-05-03 Richard Guenther <rguenther@suse.de>
5941 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5942 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5943 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5945 2011-05-03 Richard Guenther <rguenther@suse.de>
5947 * c-decl.c (grokdeclarator): Instead of looking at
5948 TREE_OVERFLOW check if the constant fits in the index type.
5950 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5952 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5953 (vec_store_lanes<mode><mode>): Likewise.
5955 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5957 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5958 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5959 convert_optab_index values.
5960 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5961 * genopinit.c (optabs): Initialize the new optabs.
5962 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5963 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5964 (expand_STORE_LANES): New functions.
5965 * tree.h (build_array_type_nelts): Declare.
5966 * tree.c (build_array_type_nelts): New function.
5967 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5968 (vect_model_load_cost): Likewise.
5969 (vect_store_lanes_supported, vect_load_lanes_supported)
5970 (vect_record_strided_load_vectors): Declare.
5971 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5972 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5973 (vect_transform_strided_load): Split out statement recording into...
5974 (vect_record_strided_load_vectors): ...this new function.
5975 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5976 (write_vector_array, create_array_ref): New functions.
5977 (vect_model_store_cost): Add store_lanes_p argument.
5978 (vect_model_load_cost): Add load_lanes_p argument.
5979 (vectorizable_store): Try to use store-lanes functions for
5981 (vectorizable_load): Likewise load-lanes and loads.
5982 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5983 to vect_model_store_cost.
5984 (vect_build_slp_tree): Likewise vect_model_load_cost.
5986 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5988 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5989 * hooks.c (hook_bool_mode_uhwi_false): New function.
5990 * target.def (array_mode_supported_p): New hook.
5991 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5992 * doc/tm.texi: Regenerate.
5993 * stor-layout.c (mode_for_array): New function.
5994 (layout_type): Use it.
5995 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5996 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5998 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6001 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6002 for -fstack-check if the size to allocate is negative.
6004 2011-05-02 Lawrence Crowl <crowl@google.com>
6006 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6007 (timevar_cond_start): New for starting a timer only when it is not
6009 (timevar_cond_stop): New for stopping a timer when it was not already
6012 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6013 (timevar_cond_start): New as above.
6014 (timevar_cond_stop): New as above.
6016 * timevar.def: Add start/stop timers for compiler phases,
6017 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6018 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6019 and TV_PHASE_FINALIZE.
6020 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6021 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6022 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6023 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6024 Make unused TV_OVERLOAD into a start/stop timer.
6026 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6027 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6028 to indicate that they are start/stop timers.
6030 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6031 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6032 Move initialization to do_compile.
6033 (do_compile): Add initialization from above.
6034 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6036 * c-decl.c (c_write_global_declarations): Add start/stop of
6037 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6039 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6040 or TV_PARSE_INLINE, as appropriate.
6041 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6042 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6044 2011-05-02 Jason Merrill <jason@redhat.com>
6047 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6049 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6052 * c-decl.c (finish_decl): Only create a composite if the types are
6055 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6057 * config/fr30/fr30-protos.h (Mmode): Don't define.
6058 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6059 definition where used.
6060 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6061 define. Expand definitions where used.
6062 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6063 Expand definitions where used.
6064 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6065 rx_function_arg, rx_function_arg_advance,
6066 rx_function_arg_boundary): Expand definitions of those macros.
6067 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6068 definition where used.
6070 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6072 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6074 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6075 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6076 with *movv2sf_internal_rex64_avx.
6077 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6078 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6079 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6080 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6081 "vex" in "prefix" attribute calculation.
6082 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6084 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6087 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6088 inputs match the output.
6090 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6093 * config/m68k/m68k.c (m68k_expand_prologue): Set
6094 current_function_static_stack_size.
6096 2011-05-02 Jan Hubicka <jh@suse.cz>
6098 * lto-streamer.c (lto_streamer_cache_insert_1,
6099 lto_streamer_cache_lookup, lto_streamer_cache_create,
6100 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6101 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6103 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6105 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6106 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6107 config/m68k/t-opts: New files.
6108 * config/m68k/m68k-tables.opt: New file (generated).
6109 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6110 extra_options and m68k/t-opts to tmake_file.
6111 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6112 (all_isas): Initialize using m68k-isas.def.
6113 (all_microarchs): Initialize using m68k-microarchs.def.
6114 (m68k_find_selection): Remove.
6115 (m68k_handle_option): Don't assert that global structures are in
6116 use. Use error_at. Access variables via opts pointer. Don't
6117 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6118 directly for -m68020-40 and -m68020-60.
6119 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6120 m68k_tune_entry here.
6121 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6123 (m68k_library_id_string): Remove declaration.
6124 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6125 (m68k_library_id_string): New Variable.
6126 (march=, mcpu=, mtune=): Use Enum and Var.
6128 2011-05-02 Richard Guenther <rguenther@suse.de>
6130 * varasm.c (output_constructor_regular_field): Compute zero-based
6131 index with double-ints. Make sure to ICE instead of producing
6133 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6134 in asserts. Properly use a signed type.
6136 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6138 * config/i386/sse.md (V): New mode iterator.
6139 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6141 (V_256): Rename from AVX256MODE.
6142 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6143 condition to all users.
6145 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6146 condition to all users.
6147 (VF_128): Make V4SF mode unconditional.
6148 (VF_256): Rename from AVX256MODEF2P.
6149 (VI4F_128): Rename from SSEMODE4S.
6150 (VI8F_128): Rename from SSEMODE2D.
6151 (VI4F_256): Rename from AVX256MODE8P.
6152 (VI8F_256): Rename from AVX256MODE4P.
6153 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6154 (ssescalarmodesuffix): Remove SF and DF modes.
6155 (SSEMODE124): Remove.
6156 (SSEMODE1248): Ditto.
6157 (SSEMODEF2P): Ditto.
6158 (AVXMODEF2P): Ditto.
6159 (AVXMODEFDP): Ditto.
6160 (AVXMODEFSP): Ditto.
6161 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6163 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6165 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6166 xop_pcmov_<mode>256. Use V mode iterator.
6168 Adjust RTX patterns globally for renamed mode attributes.
6170 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6172 * haifa-sched.c (sched_emit_insn): Emit insn before first
6173 non-scheduled insn. Inform back-end about new insn. Add
6174 new insn to scheduled_insns list.
6176 2011-05-02 Richard Guenther <rguenther@suse.de>
6178 PR tree-optimization/48822
6179 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6180 (process_scc): Indicate which iteration we start.
6182 2011-05-02 Jan Hubicka <jh@suse.cz>
6184 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6185 (lto_section_overrun): New.
6186 * lto-section-out.c (append_block): Rename to ...
6187 (lto_append_block): ... this one; export.
6188 (lto_output_1_stream): Move lto lto-streamer.h
6189 (lto_output_data_stream): Update.
6190 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6191 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6194 2011-05-02 Richard Guenther <rguenther@suse.de>
6196 * tree.c (tree_code_counts): New global array.
6197 (record_node_allocation_statistics): Count individual tree codes.
6198 (dump_tree_statistics): Dump individual code stats.
6200 2011-05-01 Jan Hubicka <jh@suse.cz>
6202 * ipa-inline.c (caller_growth_limits): Fix thinko when
6203 looking for largest stack frame.
6204 * ipa-inline.h (dump_inline_summary): Declare.
6205 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6207 (dump_inline_summary): Export.
6208 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6210 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6212 * reginfo.c (memory_move_cost): Change rclass argument type form
6213 'enum reg_class' to reg_class_t.
6214 * reload.h (memory_move_cost): Update prototype.
6215 * postreload.c reload_cse_simplify_set): Change type dclass var to
6217 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6219 (ira_allocate_and_set_costs): Change aclass argument type form
6220 'enum reg_class' to reg_class_t.
6221 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6222 Change aclass argument type to reg_class_t.
6223 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6225 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6226 memory_move_cost call.
6228 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6229 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6230 Change type tmp var to reg_class_t.
6232 2011-04-30 Jan Hubicka <jh@suse.cz>
6234 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6235 inlining into function with flatten attribute.
6236 (want_inline_small_function_p): Be more realistic about inlining
6237 cold calls where callee size grows.
6239 2011-04-30 Jan Hubicka <jh@suse.cz>
6241 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6244 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6246 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6247 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6248 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6249 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6250 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6251 (print_operand): Rename to...
6252 (sparc_print_operand): ...this. Make static. Adjust
6253 sparc_print_operand function call.
6254 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6257 2011-04-30 Jan Hubicka <jh@suse.cz>
6260 * ipa-inline.c (early_inliner): Disable when doing late
6261 addition of function.
6263 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6265 * dwarf2out.c (get_address_mode): New inline.
6266 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6267 if not dwarf_strict emit
6268 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6269 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6270 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6271 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6272 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6273 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6274 mem_loc_descriptor callers.
6275 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6276 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6277 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6278 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6279 (base_types): New variable.
6280 (get_base_type_offset, calc_base_type_die_sizes,
6281 base_type_for_mode, mark_base_types, base_type_cmp,
6282 move_marked_base_types): New functions.
6283 (calc_die_sizes): Assert that die_offset is 0 or equal to
6285 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6286 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6287 callers. If not dwarf_strict, call mem_loc_descriptor even for
6288 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6289 (gen_subprogram_die): Don't give up on call site parameters
6290 with non-integral or large integral modes. Adjust
6291 mem_loc_descriptor callers.
6292 (prune_unused_types): Call prune_unused_types_mark on base_types
6294 (resolve_addr): Call mark_base_types.
6295 (dwarf2out_finish): Call move_marked_base_types.
6297 PR tree-optimization/48809
6298 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6300 (gen_inbound_check): Don't compute index_expr - range_min in utype
6301 again, instead reuse SSA_NAME initialized in build_arrays.
6302 Remove two useless gsi_for_stmt calls.
6304 2011-04-29 Jeff Law <law@redhat.com>
6306 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6308 2011-04-29 Martin Jambor <mjambor@suse.cz>
6310 * cgraph.h (cgraph_postorder): Remove declaration.
6311 * ipa-utils.h (ipa_free_postorder_info): Declare.
6312 (ipa_reverse_postorder): Likewise.
6313 * cgraphunit.c: Include ipa-utils.h.
6314 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6315 * ipa-inline.c: Include ipa-utils.h.
6316 (ipa_inline): Update call to ipa_reverse_postorder.
6317 * ipa-pure-const.c (propagate_pure_const): Update call to
6318 ipa_reduced_postorder and ipa_print_order. Call
6319 ipa_free_postorder_info to clean up.
6320 (propagate_nothrow): Likewise.
6321 * ipa-reference.c (propagate): Removed a useless call to
6322 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6323 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6324 * ipa.c: Include ipa-utils.h.
6325 (ipa_profile): Update call to ipa_reverse_postorder.
6326 (cgraph_postorder): Moved to...
6327 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6328 (ipa_utils_print_order): Renamed to ipa_print_order.
6329 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6331 (ipa_free_postorder_info): New function.
6332 * passes.c: Include ipa-utils.h.
6333 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6334 (ipa_write_summaries): Likewise.
6335 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6336 (cgraphunit.o): Likewise.
6338 (ipa-inline.o): Likewise.
6340 2011-04-29 Jan Hubicka <jh@suse.cz>
6342 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6343 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6344 * ipa-inline.h (clause_t): Turn into unsigned int.
6345 * ipa-inline-analysis.c (add_clause): Do more simplification.
6346 (and_predicates): Shortcut more cases.
6347 (predicates_equal_p): Move forward; check that clauses are properly
6349 (or_predicates): Shortcut more cases.
6350 (edge_execution_predicate): Rewrite as...
6351 (set_cond_stmt_execution_predicate): ... this function; handle
6352 __builtin_constant_p.
6353 (set_switch_stmt_execution_predicate): New .
6354 (compute_bb_predicates): New.
6355 (will_be_nonconstant_predicate): Update TODO.
6356 (estimate_function_body_sizes): Use compute_bb_predicates
6357 and free them later, always try to estimate if stmt is constant.
6358 (estimate_time_after_inlining, estimate_size_after_inlining):
6359 Gracefully handle optimized out edges.
6360 (read_predicate): Fix off by one error.
6362 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6364 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6366 2011-04-27 Xinliang David Li <davidxl@google.com>
6368 * tree-profile.c (init_ic_make_global_vars): Set
6369 tls attribute on ic vars.
6370 * coverage.c (coverage_end_function): Initialize
6371 function_list with zero.
6373 2011-04-29 Richard Guenther <rguenther@suse.de>
6375 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6376 for the type of the result.
6377 (fold_builtin_isascii): Likewise.
6378 (fold_builtin_toascii): Use integer_type_node where appropriate.
6379 (fold_builtin_logb): Likewise.
6380 (fold_builtin_frexp): Likewise.
6381 (fold_builtin_strstr): Likewise.
6382 (fold_builtin_strpbrk): Likewise.
6383 (fold_builtin_fputs): Likewise.
6384 (fold_builtin_sprintf): Likewise.
6385 (fold_builtin_snprintf): Likewise.
6386 (fold_builtin_printf): Likewise.
6387 (do_mpfr_remquo): Use a proper type for the assigned constant.
6388 (do_mpfr_lgamma_r): Likewise.
6389 * dwarf2out.c (resolve_one_addr): Use size_int.
6390 * except.c (init_eh): Likewise.
6391 (assign_filter_values): Use integer_type_node for filter values.
6392 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6394 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6395 for EH region numbers.
6396 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6397 for the shift amount.
6399 2011-04-29 Richard Guenther <rguenther@suse.de>
6401 * expr.h (expand_shift): Rename to ...
6402 (expand_variable_shift): ... this.
6403 (expand_shift): Take a constant shift amount.
6404 * expmed.c (expand_shift): Rename to ...
6405 (expand_variable_shift): ... this.
6406 (expand_shift): New wrapper around expand_variable_shift.
6407 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6408 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6409 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6410 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6411 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6412 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6413 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6414 emit_store_flag_1, emit_store_flag): Likewise.
6415 * builtins.c (expand_builtin_signbit): Likewise.
6416 * calls.c (load_register_parameters): Likewise.
6417 * function.c (assign_parm_setup_block): Likewise.
6418 * lower-subreg.c (resolve_shift_zext): Likewise.
6419 * optabs.c (widen_bswap, expand_abs_nojump,
6420 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6421 * spu/spu.c (spu_expand_extv): Likewise.
6422 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6424 2011-04-29 Richard Guenther <rguenther@suse.de>
6426 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6427 for the remapped region number.
6428 * predict.c (build_predict_expr): Use integer_type_node for the
6430 * fold-const.c (fold_binary_loc): Use integer_type_node for
6431 the shift amount. Use a proper type for the PLUS_EXPR operand.
6433 2011-04-29 Michael Matz <matz@suse.de>
6435 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6436 other trees that just builtins.
6437 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6439 2011-04-29 Richard Guenther <rguenther@suse.de>
6441 * tree-nested.c (get_trampoline_type): Use size_int.
6442 (get_nl_goto_field): Likewise.
6443 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6445 (lower_eh_constructs_2): Likewise.
6446 (lower_resx): Likewise.
6447 (lower_eh_dispatch): Likewise.
6448 * tree-mudflap.c (mf_build_string): Use size_int.
6449 (mudflap_register_call): Use integer_type_node for the flag.
6450 (mudflap_enqueue_constant): Use size_int.
6451 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6452 instead of rebuilding it.
6454 2011-04-29 Richard Guenther <rguenther@suse.de>
6456 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6457 Handle OBJ_TYPE_REF.
6458 (find_func_aliases_for_call): Use it more consistently.
6460 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6462 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6463 (rank_for_schedule): Use it.
6464 (schedule_block): Set it.
6466 2011-04-28 David Li <davidxl@google.com>
6468 * tree.c (crc32_string): Use crc32_byte.
6469 (crc32_byte): New function.
6470 * tree.h (crc32_byte): New function.
6471 * gcov.c (read_graph_file): Handle new cfg_cksum.
6472 (read_count_file): Ditto.
6473 * profile.c (instrument_values): Ditto.
6474 (get_exec_counts): Ditto.
6475 (read_profile_edge_counts): Ditto.
6476 (compute_branch_probabilities): Ditto.
6477 (compute_value_histograms): Ditto.
6478 (branch_prob): Ditto.
6479 (end_branch_prob): Ditto.
6480 * coverage.c (read_counts_file): Ditto.
6481 (get_coverage_counts): Ditto.
6482 (tree_coverage_counter_addr): Ditto.
6483 (coverage_checksum_string): Ditto.
6484 (coverage_begin_output): Ditto.
6485 (coverage_end_function): Ditto.
6486 (build_fn_info_type): Ditto.
6487 (build_fn_info_value): Ditto.
6488 * libgcov.c (gcov_exit): Ditto.
6489 * gcov-dump.c (tag_function): Ditto.
6490 (compute_checksum): Remove.
6492 2011-04-29 Alan Modra <amodra@gmail.com>
6494 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6495 unspec plus offset. Tidy macho code.
6497 2011-04-29 Martin Jambor <mjambor@suse.cz>
6499 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6500 node instead of a decl. Update all callers.
6501 * cgraph.h: Update declaration.
6503 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6505 PR tree-optimization/48765
6506 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6507 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6508 to indicate if loop aware SLP is being used. Scan the statements
6509 and update the vectorization factor according to the type of
6510 vectorization before statement analysis.
6511 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6512 pass it to vect_analyze_loop_operations.
6513 (vectorizable_reduction): Set number of copies to 1 in case of pure
6515 * tree-vect-stmts.c (vectorizable_conversion,
6516 vectorizable_assignment, vectorizable_shift,
6517 vectorizable_operation, vectorizable_type_demotion,
6518 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6520 (vectorizable_condition): Move the check that it is not SLP
6521 vectorization before the number of copies check.
6522 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6523 to vectorize the loop using SLP.
6525 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6528 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6531 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6533 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6534 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6535 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6536 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6537 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6539 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6540 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6541 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6542 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6543 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6544 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6546 * config/i386/linux.h (REG_NAME): Don't define.
6547 * config/i386/linux64.h (REG_NAME): Don't define.
6548 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6549 Undefine before defining.
6551 2011-04-28 Jan Hubicka <jh@suse.cz>
6553 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6554 nonconstant_names array.
6555 (estimate_function_body_sizes): Build nonconstant_names array; handle
6556 BUILT_IN_CONSTANT_P.
6558 2011-04-28 Richard Guenther <rguenther@suse.de>
6562 2011-04-28 Richard Guenther <rguenther@suse.de>
6564 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6565 as late as possible.
6567 2011-04-28 Richard Guenther <rguenther@suse.de>
6569 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6570 (debug_constraint): Do it here.
6571 (dump_constraints): And here.
6572 (rewrite_constraints): And here.
6573 (dump_constraint_edge): Remove.
6574 (dump_constraint_graph): Rewrite to produce DOT output.
6575 (solve_constraints): Build succ graph as late as possible.
6576 Dump constraint graphs before and after solving.
6578 2011-04-28 Richard Guenther <rguenther@suse.de>
6580 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6581 New function split out from ...
6582 (find_func_aliases): ... here. Call it.
6583 (find_func_aliases_for_call): Likewise.
6585 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6587 * internal-fn.h (internal_fn_name_array): Declare.
6588 (internal_fn_flags_array): Likewise.
6590 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6592 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6593 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6595 (ssemodefsuffix): Remove.
6596 (ssevecmodesuffix): New mode attribute.
6597 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6598 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6599 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6600 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6601 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6602 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6603 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6604 ssemodesuffix mode attribute.
6605 (float splitters): Use ssevecmodesuffix mode attribute.
6606 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6607 (sseinsmode): Rename from avxvecmode.
6608 (avxsizesuffix): Rename from avxmodesuffix.
6609 (sseintvecmode): Rename from avxpermvecmode.
6610 (ssedoublevecmode): Rename from ssedoublesizemode.
6611 (ssehalfvecmode): Rename from avxhalfvecmode.
6612 (ssescalarmode): Rename from avxscalarmode.
6613 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6614 templates for ssemodesuffix mode attribute.
6615 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6618 Adjust RTX patterns globally for renamed mode attributes.
6620 2011-04-27 Jan Hubcika <jh@suse.cz>
6622 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6623 * ipa-inline-analysis.c: Include alloc-pool.h.
6624 (edge_predicate_pool): New.
6625 (trye_predicate_p): New function
6626 (false_predicate_p): New function.
6627 (add_clause): Sanity check that false clauses are "optimized";
6628 never add clauses to predicate that is already known to be false.
6629 (and_predicate): Use flase_predicate_p.
6630 (evaulate_predicate): Rename to ...
6631 (evaluate_predicate): ... this one; update all callers; assert
6632 that false is not listed among possible truths.
6633 (dump_predicate): Use true_predicate_p.
6634 (account_size_time): Use false_predicate_p.
6635 (evaulate_conditions_for_edge): Rename to ...
6636 (evaluate_conditions_for_edge) ... this one.
6637 (edge_set_predicate): New function.
6638 (inline_edge_duplication_hook): Duplicate edge predicates.
6639 (inline_edge_removal_hook): Free edge predicates.
6640 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6641 (dump_inline_summary): Update.
6642 (estimate_function_body_sizes): Set edge predicates.
6643 (estimate_calls_size_and_time): Handle predicates.
6644 (estimate_callee_size_and_time): Update.
6645 (remap_predicate): Add toplev_predicate; update comment.
6646 (remap_edge_predicates): New function.
6647 (inline_merge_summary): Compute toplev predicate; update.
6648 (read_predicate): New function.
6649 (read_inline_edge_summary): Use it.
6650 (inline_read_section): Likewise.
6651 (write_predicate): New function.
6652 (write_inline_edge_summary): Use it.
6653 (inline_write_summary): Likewise.
6654 (inline_free_summary): Free alloc pool and edge summary vec.
6656 2011-04-27 Richard Guenther <rguenther@suse.de>
6658 * tree-ssa-structalias.c (changed_count): Remove.
6659 (changed): Use a bitmap.
6660 (unify_nodes): Adjust.
6661 (do_sd_constraint): Likewise.
6662 (do_ds_constraint): Likewise.
6663 (do_complex_constraint): Likewise.
6664 (solve_graph): Likewise.
6666 2011-04-27 Jan Hubicka <jh@suse.cz>
6668 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6670 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6672 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6673 (avx_vperm2f128_*_operand): Ditto.
6674 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6675 Use avx_vpermilp_parallel in insn condition.
6676 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6677 Use avx_vperm2f128_parallel in insn condition.
6679 2011-04-27 Richard Guenther <rguenther@suse.de>
6681 * Makefile.in (tree-ssa-structalias.o): Remove
6682 gt-tree-ssa-structalias.h dependency.
6683 (GTFILES): Remove tree-ssa-structalias.c.
6684 * tree.c (allocate_decl_uid): New function.
6685 (make_node_stat): Use it.
6686 (copy_node_stat): Likewise.
6687 * tree.h (allocate_decl_uid): Declare.
6688 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6689 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6690 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6691 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6692 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6693 (struct heapvar_map): Likewise.
6694 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6695 heapvar_insert): Likewise.
6696 (make_heapvar_for): Rename to ...
6697 (make_heapvar): ... this. Simplify.
6698 (fake_var_decl_obstack): New global var.
6699 (build_fake_var_decl): New function.
6700 (make_constraint_from_heapvar): Adjust.
6701 (handle_lhs_call): Likewise.
6702 (create_function_info_for): Likewise.
6703 (intra_create_variable_infos): Likewise.
6704 (init_alias_vars): Allocate fake_var_decl_obstack.
6705 (init_alias_heapvars, delete_alias_heapvars): Remove.
6706 (compute_points_to_sets): Do not call init_alias_heapvars.
6707 (ipa_pta_execute): Likewise.
6708 (delete_points_to_sets): Free fake_var_decl_obstack.
6710 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6712 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6713 (si_from_UTItype, si_to_UTItype): New functions.
6714 (__udivmodti4): Use them to implement type-punning.
6715 * config/spu/multi3.c (union qword_TItype): New data type.
6716 (si_from_TItype, si_to_TItype): New functions.
6717 (__multi3): Use them to implement type-punning.
6719 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6721 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6723 2011-04-27 Jan Hubicka <jh@suse.cz>
6725 * ipa-prop.c (function_insertion_hook_holder): New holder.
6726 (ipa_add_new_function): New function.
6727 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6728 Register/deregister holder.
6730 2011-04-27 Richard Guenther <rguenther@suse.de>
6732 PR tree-optimization/48772
6733 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6735 2011-04-27 Richard Guenther <rguenther@suse.de>
6737 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6738 TARGET_MEM_REF handling.
6740 2011-04-27 Nick Clifton <nickc@redhat.com>
6742 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6743 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6744 (REG_CLASS_NAMES): Likewise.
6745 (REG_CLASS_CONTENTS): Likewise.
6746 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6747 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6748 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6749 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6750 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6751 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6752 duplicate register classes.
6753 (frv_class_likely_spilled_p): Likewise.
6754 (frv_register_move_cost): Likewise.
6756 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6757 end of the regno_reg_class array.
6759 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6762 * c-typeck.c (build_binary_op): Don't wrap arguments if
6763 int_operands is true.
6765 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6768 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6769 targetm.calls.must_pass_in_stack for void type.
6771 2011-04-26 Jan Hubicka <jh@suse.cz>
6773 * cgraphbuild.c (build_cgraph_edges): Update call
6774 of cgraph_create_edge and cgraph_create_indirect_edge.
6775 * cgraph.c (cgraph_create_edge_including_clones,
6776 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6777 cgraph_update_edges_for_call_stmt_node): Do not take nest
6778 argument; do not initialize call_stmt_size/time.
6779 (dump_cgraph_node): Do not dump nest.
6780 (cgraph_clone_edge): Do not take loop_nest argument;
6781 do not propagate it; do not clone call_stmt_size/time.
6782 (cgraph_clone_node): Likewise.
6783 (cgraph_create_virtual_clone): Update.
6784 * cgraph.h (struct cgraph_edge): Remove
6785 call_stmt_size/call_stmt_time/loop_nest.
6786 (cgraph_create_edge, cgraph_create_indirect_edge,
6787 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6789 * tree-emutls.c (gen_emutls_addr): Update.
6790 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6791 loop_nest; handle indirect calls, too.
6792 (clone_inlined_nodes): Do not care about updating inline summaries.
6793 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6794 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6795 stream call_stmt_size/call_stmt_time/loop_nest.
6796 * ipa-inline.c (edge_badness): Update.
6797 (ipa_inline): dump summaries after inlining.
6798 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6800 (inline_edge_summary): New function.
6801 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6802 (inline_edge_removal_hook): Handle edge summaries.
6803 (inline_edge_duplication_hook): New hook.
6804 (inline_summary_alloc): Alloc hooks.
6805 (initialize_growth_caches): Do not register removal hooks.
6806 (free_growth_caches); Do not free removal hook.
6807 (dump_inline_edge_summary): New function.
6808 (dump_inline_summary): Use it.
6809 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6810 (inline_update_callee_summaries): New function.
6811 (inline_merge_summary): Use it.
6812 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6813 (read_inline_edge_summary): New function.
6814 (inline_read_section): Use it.
6815 (write_inline_edge_summary): New function.
6816 (inline_write_summary): Use it.
6817 (inline_free_summary): Free edge new holders.
6818 * tree-inline.c (copy_bb): Update.
6820 2011-04-26 Jason Merrill <jason@redhat.com>
6822 * tree-eh.c (lower_try_finally_switch): Create the label along with
6823 the CASE_LABEL_EXPR.
6825 2011-04-26 David S. Miller <davem@davemloft.net>
6826 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6828 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6829 * configure: Regenerate.
6831 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6834 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6836 (VEC_reduc): New code iterator and splitters for vector reduction.
6837 (VEC_reduc_name): Ditto.
6838 (VEC_reduc_rtx): Ditto.
6839 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6840 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6842 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6843 support for extracting SF on VSX.
6845 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6846 generating xscvspdp.
6847 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6848 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6849 double add, minimum, maximum vector reduction.
6850 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6851 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6852 optimize double vector reduction.
6853 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6855 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6857 * config/fr30/fr30.h (inhibit_libc): Don't define.
6858 * config/m32r/m32r-protos.h: Correct comment.
6859 * config/v850/v850.h (GHS_default_section_names,
6860 GHS_current_section_names): Use tree, not union tree_node *.
6862 2011-04-26 Xinliang David Li <davidxl@google.com>
6864 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6865 * c-family/c-opts.c (c_common_handle_option): Set
6866 warn_maybe_uninitialized.
6867 * opts.c (common_handle_option): Ditto.
6868 * common.opt: New option.
6869 * tree-ssa.c (warn_uninit): Add one more parameter.
6870 (warn_uninitialized_var): Pass warning code.
6871 * tree-flow.h: Interface change.
6873 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6875 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6876 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6877 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6879 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6881 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6882 * config/mips/mips.opt (mmips-tfile): Remove.
6884 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6885 mips-tdump reference to ...
6886 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6887 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6888 reference by Tru64 UNIX.
6890 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6893 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6894 is error_mark_node, set value to NULL.
6896 PR tree-optimization/48734
6897 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6898 if return value from maybe_fold_*_comparsions isn't something
6899 the code is prepared to handle.
6901 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6903 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6905 (ext_QIreg_nomode_operands): Remove.
6906 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6910 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6912 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6914 2011-04-26 Richard Guenther <rguenther@suse.de>
6916 * c-typeck.c (build_unary_op): Do not expand array-refs via
6917 pointer arithmetic. Only adjust qualifiers for function types.
6919 2011-04-26 Richard Guenther <rguenther@suse.de>
6922 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6923 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6924 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6925 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6927 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6929 * doc/extend.texi: Document __underlying_type.
6931 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6933 * config/rs6000/titan.md (automata_option "progress"): Remove.
6935 2011-04-25 Jeff Law <law@redhat.com>
6937 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6939 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6941 * system.h (ENUM_BITFIELD): Remove.
6943 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6944 Eric Botcazou <ebotcazou@adacore.com>
6946 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6947 for STORE_FLAG_VALUE==-1 case.
6949 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6952 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6953 LEGITIMATE_PIC_OPERAND_P.
6955 2011-04-24 Jan Hubicka <jh@suse.cz>
6957 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6959 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6960 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6961 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6962 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6963 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6964 Sanity check predicate length.
6965 (remap_predicate): Likewise; sanity check jump functions.
6966 (inline_read_section, inline_write_summary): Sanity check
6969 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6972 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6973 __is_literal_type, and __is_trivial; update throughout about
6974 possibly cv-qualified void types.
6976 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6978 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6979 testsuite and make it version agnostic.
6981 2011-04-22 Jan Hubicka <jh@suse.cz>
6983 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6985 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6988 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6989 to VOID_TYPE even around MODIFY_EXPR.
6991 2011-04-22 Mike Stump <mikestump@comcast.net>
6993 * gensupport.c (read_md_rtx): Fix typo in comment.
6994 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6997 2011-04-22 Jan Hubicka <jh@suse.cz>
6999 * gengtype.c (open_base_files): Add ipa-inline.h include.
7000 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7001 ipa-prop.c; update all uses.
7002 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7003 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7004 merge summary of inlined function into former caller.
7005 * ipa-inline.c (max_benefit): Remove.
7006 (edge_badness): Compensate for removal of benefits.
7007 (update_caller_keys): Use
7008 reset_node_growth_cache/reset_edge_growth_cache.
7009 (update_callee_keys): Likewise.
7010 (update_all_callee_keys): Likewise.
7011 (inline_small_functions): Do not collect max_benefit; do not reset
7012 estimated_growth; call free_growth_caches and initialize_growth_caches.
7013 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7014 struct size_time_entry): New structures.
7015 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7016 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7017 and estimated_growth.
7018 (edge_growth_cache_entry): New structure.
7019 (node_growth_cache, edge_growth_cache): New global vars.
7020 (estimate_growth): Turn into inline.
7021 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7022 initialize_growth_caches, free_growth_caches): Declare.
7023 (estimate_edge_growth): Rewrite.
7024 (estimate_edge_time): Implement as inline cache lookup.
7025 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7027 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7028 (NUM_CONDITIONS): New constant.
7029 (predicate_conditions): New enum.
7030 (IS_NOT_CONSTANT): New constant.
7031 (edge_removal_hook_holder): New var.
7032 (node_growth_cache, edge_growth_cache): New global vars.
7033 (true_predicate, single_cond_predicate, false_predicate,
7034 not_inlined_predicate, add_condition, add_clause, and_predicates,
7035 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7036 dump_clause, dump_predicate, account_size_time,
7037 evaulate_conditions_for_edge): New functions.
7038 (inline_summary_alloc): Move to heap.
7039 (inline_node_removal_hook): Clear condition and entry vectors.
7040 (inline_edge_removal_hook): New function.
7041 (initialize_growth_caches, free_growth_caches): New function.
7042 (dump_inline_summary): Update.
7043 (edge_execution_predicate): New function.
7044 (will_be_nonconstant_predicate): New function.
7045 (estimate_function_body_sizes): Compute BB and constantness predicates.
7046 (compute_inline_parameters): Do not clear estimated_growth.
7047 (estimate_edge_size_and_time): New function.
7048 (estimate_calls_size_and_time): New function.
7049 (estimate_callee_size_and_time): New function.
7050 (remap_predicate): New function.
7051 (inline_merge_summary): New function.
7052 (do_estimate_edge_time): New function based on...
7053 (estimate_edge_time): ... this one.
7054 (do_estimate_edge_growth): New function.
7055 (do_estimate_growth): New function based on....
7056 (estimate_growth): ... this one.
7057 (inline_analyze_function): Analyze after deciding on jump functions.
7058 (inline_read_section): New function.
7059 (inline_read_summary): Use it.
7060 (inline_write_summary): Write all the new data.
7061 * ipa-prop.c (ipa_get_param_decl_index): Export.
7062 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7063 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7065 (ipa_get_lattice): Move here from ipa-cp.c
7066 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7067 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7068 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7069 cgraph_edge_inlinable_p): Remove.
7070 * cgraphunit.c: Include ipainline.h
7071 (cgraph_process_new_functions): Update call of
7072 compute_inline_parameters.
7074 2011-04-22 Richard Guenther <rguenther@suse.de>
7076 * tree.c (build_int_cst): Properly create canonicalized integer
7078 (build_int_cst_type): Remove scary comments.
7080 2011-04-22 Xinliang David Li <davidxl@google.com>
7082 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7083 by default when -Wno-error is not specified.
7084 * opts-global.c (decode_options): Remove call to
7085 control_warning_options.
7087 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7089 PR tree-optimization/48717
7090 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7091 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7093 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7095 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7096 definition where used.
7098 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7101 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7102 TREE_STATIC variables declared inside of some OpenMP construct.
7104 2011-04-22 Martin Jambor <mjambor@suse.cz>
7107 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7109 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7112 * c-typeck.c (pop_init_level): Do not warn about initializing
7115 2011-04-22 Alan Modra <amodra@gmail.com>
7117 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7118 when returning call_cookie.
7119 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7120 pointers, to functions with no more vector args than the current
7121 function, and some non-local calls for ABI_V4.
7122 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7123 sibcall_nonlocal_aix64): Combine to ..
7124 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7125 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7126 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7127 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7128 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7130 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7131 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7132 sibcall_value_symbolic_64): Delete.
7134 2011-04-21 Xinliang David Li <davidxl@google.com>
7136 * cgraph.h: Remove pid.
7137 * cgraph.c: Remove pid.
7138 * value-prof.c (init_node_map): New function.
7139 (del_node_map): New function.
7140 (find_func_by_funcdef_no): New function.
7141 (gimple_ic_transform): Call new function.
7142 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7143 * function.c (get_last_funcdef_no): New function.
7144 * function.h (get_last_funcdef_no): New function.
7145 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7146 to libgcov function.
7147 (tree-profiling): Call node map init and delete function.
7149 2011-04-21 Ian Lance Taylor <iant@google.com>
7151 * godump.c (go_format_type): Use exported Go name for anonymous
7154 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7156 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7157 Call builtin_function_type_list instead of builtin_function_type.
7158 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7160 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7162 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7163 build_function_type_list instead of build_function_type.
7164 Delete variable `endlink'.
7166 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7168 * config/s390/s390.c (s390_init_builtins): Call
7169 build_function_type_list instead of build_function_type.
7171 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7173 * config/ia64/ia64.c (ia64_init_builtins): Call
7174 build_function_type_list instead of builtin_function_type.
7176 2011-04-21 Easwaran Raman <eraman@google.com>
7178 * cfgexpand.c (stack_var): Remove OFFSET...
7179 (add_stack_var): ...and its reference here...
7180 (expand_stack_vars): ...and here.
7181 (stack_var_cmp): Sort by descending order of size.
7182 (partition_stack_vars): Change heuristic.
7183 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7184 (dump_stack_var_partition): Add newline after each partition.
7186 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7187 Jeff Law <law@redhat.com>
7189 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7190 * gengtype.c (matching_file_name_substitute): Likewise.
7192 2011-04-21 Richard Guenther <rguenther@suse.de>
7195 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7197 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7199 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7201 2011-04-21 Richard Guenther <rguenther@suse.de>
7203 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7206 2011-04-21 Richard Guenther <rguenther@suse.de>
7208 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7209 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7210 Use DECL_P, not SSA_VAR_P.
7211 (ptr_derefs_may_alias_p): Likewise.
7212 (ptr_deref_may_alias_ref_p_1): Likewise.
7213 (decl_refs_may_alias_p): Likewise.
7214 (refs_may_alias_p_1): Likewise.
7215 (ref_maybe_used_by_call_p_1): Likewise.
7216 (call_may_clobber_ref_p_1): Likewise.
7217 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7218 are either MEM_REF or TARGET_MEM_REF.
7219 (indirect_refs_may_alias_p): Likewise.
7220 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7221 for MEM_EXPR of indirect calls.
7223 2011-04-21 Tristan Gingold <gingold@adacore.com>
7225 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7226 (dst_file_info_struct): Remove flen field.
7227 (lookup_filename): Remove code that set flen field.
7229 2011-04-21 Tristan Gingold <gingold@adacore.com>
7231 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7233 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7236 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7237 vec_extract and vec_concat for non-SSE4_1 targets.
7239 2011-04-21 Richard Guenther <rguenther@suse.de>
7241 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7244 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7246 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7248 (FILE): Don't undefine.
7250 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7252 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7254 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7256 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7257 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7258 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7260 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7261 definitions where used.
7262 * config/microblaze/microblaze.h (struct microblaze_args): Use
7263 rtx, not struct rtx_def *.
7264 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7266 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7267 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7268 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7269 not struct rtx_def *.
7270 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7272 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7274 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7276 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7278 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7279 operand_equal_p to compare DR_BASE_ADDRESSes.
7280 (vect_check_interleaving): Likewise.
7282 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7285 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7286 for all Neon struct constants.
7288 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7290 * target.def (legitimate_constant_p): New hook.
7291 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7292 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7293 * doc/tm.texi: Regenerate.
7294 * hooks.h (hook_bool_mode_rtx_true): Declare.
7295 * hooks.c (hook_bool_mode_rtx_true): Define.
7296 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7297 * calls.c (precompute_register_parameters): Replace uses of
7298 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7299 (emit_library_call_value_1): Likewise.
7300 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7301 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7302 * ira-costs.c (scan_one_insn): Likewise.
7303 * recog.c (general_operand, immediate_operand): Likewise.
7304 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7305 * reload1.c (init_eliminable_invariants): Likewise.
7307 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7309 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7310 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7312 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7313 * config/alpha/predicates.md (input_operand): Update call to
7314 alpha_legitimate_constant_p.
7316 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7317 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7318 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7319 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7320 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7321 (arm_legitimate_constant_p): New functions.
7322 (arm_cannot_force_const_mem): Make static.
7324 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7326 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7327 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7328 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7329 instead of bfin_legitimate_constant_p.
7330 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7331 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7333 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7335 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7337 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7338 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7339 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7340 (frv_legitimate_constant_p): Make static. Add a mode argument.
7342 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7343 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7344 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7346 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7347 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7348 * config/i386/i386.c (legitimate_constant_p): Rename to...
7349 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7351 (ix86_cannot_force_const_mem): Update accordingly.
7352 (ix86_legitimate_address_p): Likewise.
7353 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7354 * config/i386/i386.md: Update commentary.
7356 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7357 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7358 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7359 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7361 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7363 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7364 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7365 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7366 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7368 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7369 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7370 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7372 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7373 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7374 (m32r_legitimate_constant_p): New function.
7376 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7377 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7378 LEGITIMATE_CONSTANT_P.
7379 (LEGITIMATE_CONSTANT_P): Delete.
7380 * config/m68k/m68k.c (m68k_expand_prologue): Call
7381 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7382 (m68k_legitimate_constant_p): New function.
7383 * config/m68k/m68k.md: Update comments.
7385 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7386 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7387 (mcore_legitimate_constant_p): New function.
7389 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7390 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7391 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7392 Add a mode argument.
7393 (mep_legitimate_address): Update accordingly.
7394 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7396 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7398 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7399 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7400 static. Check OP's mode for VOIDmode.
7401 (microblaze_legitimate_constant_p): New function.
7402 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7404 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7405 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7406 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7407 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7408 * config/mips/predicates.md: Update comments.
7410 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7411 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7412 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7413 (mmix_legitimate_constant_p): Make static, return a bool, and take
7415 (mmix_print_operand_address): Update accordingly.
7417 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7419 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7420 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7421 static. Add a mode argument.
7422 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7424 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7426 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7427 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7428 (pa_legitimate_constant_p): New function.
7430 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7432 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7433 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7434 (pdp11_legitimate_constant_p): New function.
7436 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7437 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7438 (rs6000_legitimate_constant_p): New function.
7440 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7441 (rx_legitimate_constant_p): ...this.
7442 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7443 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7444 (rx_legitimate_constant_p): ...this.
7445 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7446 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7448 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7449 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7450 * config/s390/s390.c (legitimate_constant_p): Rename to...
7451 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7452 and add a mode argument.
7453 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7455 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7457 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7458 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7459 (sh_legitimate_constant_p): New function.
7461 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7462 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7463 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7464 (legitimate_constant_p): Rename to...
7465 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7467 (constant_address_p): Update accordingly.
7469 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7470 argument and return a bool.
7471 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7472 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7473 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7474 (spu_rtx_costs): Update accordingly.
7475 * config/spu/predicates.md (vec_imm_operand): Likewise.
7477 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7479 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7480 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7481 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7483 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7484 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7485 * config/vax/vax.c (legitimate_constant_p): Likewise.
7487 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7488 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7489 (xtensa_legitimate_constant_p): New function.
7491 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7493 * target.def (cannot_force_const_mem): Add a mode argument.
7494 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7495 * doc/tm.texi: Regenerate.
7496 * hooks.h (hook_bool_mode_rtx_false): Declare.
7497 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7498 (hook_bool_mode_const_rtx_true): Likewise.
7499 (hook_bool_mode_rtx_false): New function.
7500 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7501 to be non-VOID. Update call to cannot_force_const_mem.
7502 (find_reloads): Update accordingly.
7503 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7504 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7506 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7507 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7508 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7509 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7510 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7511 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7512 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7513 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7514 (m68k_cannot_force_const_mem): ...this new function.
7515 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7517 (mips_const_insns, mips_legitimize_const_move): Update calls.
7518 (mips_secondary_reload_class): Likewise.
7519 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7520 (pa_cannot_force_const_mem): ...this new function.
7521 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7522 (rs6000_cannot_force_const_mem): ...this new function.
7523 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7525 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7526 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7528 (xtensa_cannot_force_const_mem): ...this new function.
7530 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7532 * config/mips/mips.c (mips16_build_function_stub): Call
7533 build_function_type_list instead of build_function_type.
7534 (mips16_build_call_stub): Likewise.
7536 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7538 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7539 instead of build_function_type.
7541 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7543 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7544 instead of build_function_type.
7546 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7549 * config/i386/i386.md (insv): Change operand 0 constraint to
7550 "register_operand". Change operand 1 and 2 constraint to
7551 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7552 * config/i386/sse.md (sse4_1_pinsrb): Export.
7553 (sse2_pinsrw): Ditto.
7554 (sse4_1_pinsrd): Ditto.
7555 (sse4_1_pinsrq): Ditto.
7556 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7557 * config/i386/i386.c (ix86_expand_pinsr): New.
7559 2011-04-20 Easwaran Raman <eraman@google.com>
7561 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7562 containing union type only with -fstrict-aliasing.
7564 2011-04-20 Jim Meyering <meyering@redhat.com>
7566 Remove useless if-before-free tests.
7567 * calls.c (expand_call, save_area): Likewise.
7568 * cfgcleanup.c (try_forward_edges): Likewise.
7569 * collect2.c (collect_execute): Likewise.
7570 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7571 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7572 * coverage.c (coverage_checksum_string): Likewise.
7573 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7574 * cselib.c (cselib_init): Likewise.
7575 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7576 (df_set_clean_cfg): Likewise.
7577 * function.c (free_after_compilation): Likewise.
7578 * gcc.c (do_spec_1, main): Likewise.
7579 * gcov.c (create_file_names): Likewise.
7580 * gensupport.c (identify_predicable_attribute): Likewise.
7581 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7582 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7583 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7584 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7585 * ipa-pure-const.c (local_pure_const): Likewise.
7586 * ipa-reference.c (propagate): Likewise.
7587 * ira-costs.c (free_ira_costs): Likewise.
7588 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7589 * matrix-reorg.c (mat_free): Likewise.
7590 * prefix.c (get_key_value): Likewise.
7591 * profile.c (compute_value_histograms): Likewise.
7592 * reload1.c (free_reg_equiv): Likewise.
7593 * sched-deps.c (free_deps): Likewise.
7594 * sel-sched-ir.c (fence_clear): Likewise.
7595 * sese.c (set_rename, if_region_set_false_region): Likewise.
7596 * tree-data-ref.c (free_rdg): Likewise.
7597 * tree-eh.c (lower_try_finally): Likewise.
7598 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7599 * tree-ssa-live.c (delete_var_map): Likewise.
7600 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7601 * tree-ssa-pre.c (phi_trans_add): Likewise.
7603 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7605 PR tree-optimization/48611
7606 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7607 beyond ERT_MUST_NOT_THROW region.
7609 2011-04-20 Catherine Moore <clm@codesourcery.com>
7611 * config/mips/mips.opt (mfix-24k): New.
7612 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7613 * config/mips/mips.md (length): Increase by 4 for stores if
7615 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7616 all noreorder if fixing 24K errata.
7617 * doc/invoke.texi: Document mfix-24k.
7619 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7621 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7622 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7624 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7626 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7627 (const_ok_for_op): ... to here.
7629 2011-04-20 Kai Tietz <ktietz@redhat.com>
7631 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7632 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7634 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7636 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7638 2011-04-20 Richard Guenther <rguenther@suse.de>
7640 PR tree-optimization/47892
7641 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7644 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7646 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7648 2011-04-20 Tristan Gingold <gingold@adacore.com>
7650 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7652 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7656 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7657 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7658 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7659 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7660 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7662 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7665 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7666 (avr_asm_named_section, avr_asm_output_aligned_common,
7667 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7668 New functions to update...
7669 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7670 (avr_asm_init_sections): Overwrite section callbacks for
7671 data_section, bss_section.
7672 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7674 (avr_file_end): ...here.
7676 2011-04-20 Richard Guenther <rguenther@suse.de>
7679 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7680 objects and types here. Adjust for their offset before comparing.
7682 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7684 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7687 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7689 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7690 (GIMPLE_H): Include $(INTERNAL_FN_H).
7691 (OBJS-common): Add internal-fn.o.
7692 (internal-fn.o): New rule.
7693 * internal-fn.def: New file.
7694 * internal-fn.h: Likewise.
7695 * internal-fn.c: Likewise.
7696 * gimple.h: Include internal-fn.h.
7697 (GF_CALL_INTERNAL): New gf_mask.
7698 (gimple_statement_call): Put fntype into a union with a new
7700 (gimple_build_call_internal): Declare.
7701 (gimple_build_call_internal_vec): Likewise.
7702 (gimple_call_same_target_p): Likewise.
7703 (gimple_call_internal_p): New function.
7704 (gimple_call_internal_fn): Likewise.
7705 (gimple_call_fntype): Return null for internal calls.
7706 (gimple_call_set_fntype): Assert that the function is not internal.
7707 (gimple_call_set_fn): Likewise.
7708 (gimple_call_set_fndecl): Likewise.
7709 (gimple_call_set_internal_fn): New function.
7710 (gimple_call_addr_fndecl): Handle null functions.
7711 (gimple_call_return_type): Likewise null types.
7712 * gimple.c (gimple_build_call_internal_1): New function.
7713 (gimple_build_call_internal): Likewise.
7714 (gimple_build_call_internal_vec): Likewise.
7715 (gimple_call_same_target_p): Likewise.
7716 (gimple_call_flags): Handle calls to internal functions.
7717 (gimple_call_fnspec): New function.
7718 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7719 (gimple_has_side_effects): Handle null functions.
7720 (gimple_rhs_has_side_effects): Likewise.
7721 (gimple_call_copy_skip_args): Handle calls to internal functions.
7722 * cfgexpand.c (expand_call_stmt): Likewise.
7723 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7724 * gimple-fold.c (gimple_fold_call): Handle null functions.
7725 (gimple_fold_stmt_to_constant_1): Don't fold
7726 calls to internal functions.
7727 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7729 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7730 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7731 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7732 (do_warn_unused_result): Likewise.
7733 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7734 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7735 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7736 the target of a call.
7737 (initialize_hash_element): Update accordingly.
7738 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7739 (iterative_hash_hashable_expr): Handle calls to internal functions.
7740 (print_expr_hash_elt): Likewise.
7741 * tree-ssa-pre.c (can_value_number_call): Likewise.
7742 (eliminate): Handle null functions.
7743 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7744 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7745 (find_func_aliases): Likewise.
7746 * value-prof.c (gimple_ic_transform): Likewise.
7747 (gimple_indirect_call_to_profile): Likewise.
7748 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7749 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7751 2011-04-19 Jan Hubicka <jh@suse.cz>
7753 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7754 * ipa-inline.c (inline_small_functions): Compute summaries first,
7755 populate heap later.
7757 2011-04-19 Jan Hubicka <jh@suse.cz>
7759 * cgraph.h (save_inline_function_body): Remove.
7760 * ipa-inline-transform.c: New file, broke out of...
7761 * ipa-inline.c: ... this one; Update toplevel comment.
7762 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7764 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7765 (cgraph_mark_inline_edge): Rename to inline_call; move to
7766 ipa-inline-transform.c.
7767 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7768 move to ipa-inline-transform.c
7769 (recursive_inlining, inline_small_functions, flatten_function,
7770 ipa_inline, inline_always_inline_functions,
7771 early_inline_small_functions): Update.
7772 (inline_transform): Move to ipa-inline-transform.c.
7773 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7775 * Makefile.in (ipa-inline-transform.o): New file.
7776 * cgraphunit.c (save_inline_function_body): Move to
7777 ipa-inline-transform.c
7779 2011-04-19 DJ Delorie <dj@redhat.com>
7781 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7782 registers if we already know there aren't any.
7783 (m32c_emit_epilogue): Don't emit a barrier here.
7784 (m32c_emit_eh_epilogue): Likewise.
7785 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7786 operands at expand time.
7787 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7789 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7790 duplicates. Provide aliases instead.
7791 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7792 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7795 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7797 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7798 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7799 (general_or_i64_p, sparc_register_move_cost): New function.
7801 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7803 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7804 Add lynx, mipssde. Sort table.
7806 2011-04-19 Xinliang David Li <davidxl@google.com>
7808 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7811 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7814 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7815 is a SUBREG with non-MODE_INT mode inside of it.
7817 2011-04-19 Martin Jambor <mjambor@suse.cz>
7819 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7820 also according to actual contants.
7821 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7822 (gimple_fold_call): Use it.
7823 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7825 2011-04-19 Martin Jambor <mjambor@suse.cz>
7827 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7828 non-pointer assignments.
7830 2011-04-19 Martin Jambor <mjambor@suse.cz>
7832 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7833 account anc_offset and otr_type from the indirect edge info.
7834 * ipa-prop.c (get_ancestor_addr_info): New function.
7835 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7836 get_ancestor_addr_info, call it.
7837 (ipa_note_param_call): Do not initialize information about polymorphic
7838 calls, return the indirect call graph edge. Remove the last
7839 parameter, adjust all callers.
7840 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7841 parameters. Initialize polymorphic information in the indirect edge.
7843 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7846 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7847 the types if they have different enumeration identifiers.
7849 2011-04-19 Jan Hubicka <jh@suse.cz>
7851 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7852 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7853 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7854 (optimize_function_for_size_p) ... here.
7856 2011-04-19 Richard Guenther <rguenther@suse.de>
7859 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7862 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7864 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7865 if DECL_NO_INLINE_WARNING_P is set on the function.
7867 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7870 * reload1.c (inc_for_reload): Return void. All callers changed.
7871 (emit_input_reload_insns): Don't try to delete previous output
7872 reloads to a register, or record spill_reg_store for autoincs.
7874 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7876 * gengtype.h: Updated copyright year.
7877 (struct input_file_st): Add inpisplugin field.
7878 (type_fileloc): New function.
7880 (write_typed_struct_alloc_def): Add gcc_assert.
7881 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7882 (write_typed_alloc_defns): Don't output for plugin files.
7883 (input_file_by_name): Clear inpisplugin field.
7884 (main): Set inpisplugin field for plugin files.
7886 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7888 * gengtype-state.c (string_eq): New.
7889 (read_state): Use string_eq instead of strcmp when creating the
7892 2011-04-19 Wei Guozhi <carrot@google.com>
7895 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7896 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7898 * config/arm/constraints.md (Uu): New constraint.
7899 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7901 2011-04-19 Tristan Gingold <gingold@adacore.com>
7903 * config.gcc (-*-*-*vms): Added.
7904 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7906 * config/vms/vms-ld.c: New file.
7907 * config/vms/vms-ar.c: New file.
7908 * config/vms/t-vmsnative: New file.
7910 2011-04-18 Xinliang David Li <davidxl@google.com>
7912 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7914 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7917 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7918 if TREE_TYPE (v) is non-NULL.
7920 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7921 gimple_get_virt_mehtod_for_binfo.
7922 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7923 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7925 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7927 2011-04-18 Michael Matz <matz@suse.de>
7928 Steve Ellcey <sje@cup.hp.com>
7930 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7931 use its mode as source mode if it isn't VOIDmode.
7933 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7935 * doc/passes.texi: Fill crossref nodes.
7937 2011-04-18 Jim Meyering <meyering@redhat.com>
7939 Fix doubled-word typos in comments and strings
7940 * config/alpha/vms-unwind.h: s/for for/for/
7941 * config/arm/unwind-arm.h: Likewise.
7942 * config/microblaze/microblaze.c: Likewise.
7943 * config/sh/constraints.md: s/in in/in/
7944 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7946 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7948 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7949 (AVX_FLOAT_MODE_P): Ditto.
7950 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7951 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7952 (AVX_VEC_FLOAT_MODE_P): Ditto.
7953 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7954 (UNSPEC_MASKSTORE): Ditto.
7955 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7956 Merge from <sse>_movmsk<ssemodesuffix> and
7957 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7958 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7960 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7961 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7962 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7964 2011-04-18 Jan Hubicka <jh@suse.cz>
7966 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7968 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7969 (want_inline_function_called_once_p): Break out the logic from
7971 (edge_badness): Ensure that profile is not misupdated.
7972 (lookup_recursive_calls): Prioritize by call frequencies.
7973 (inline_small_functions): Move program size estimates here;
7974 actually process whole queue even when unit growth has been
7975 met. (to properly compute inline_failed reasons and for the
7976 case unit size decrease.) Revisit comments on recursive inlining.
7977 (ipa_inline): Remove unit summary code; first inline hot calls
7978 of functions called once, cold calls next.
7979 (order, nnodes): Remove unused variables.
7980 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7981 (GTFILES): Remove ipa-inline.c
7982 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7984 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7986 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7988 2011-04-18 Jie Zhang <jie@codesourcery.com>
7989 Richard Earnshaw <rearnsha@arm.com>
7991 * arm.c (neon_builtin_type_bits): Remove.
7992 (typedef enum neon_builtin_mode): New.
7993 (T_MAX): Don't define.
7994 (typedef enum neon_builtin_datum): Remove bits, codes[],
7995 num_vars and base_fcode. Add mode, code and fcode.
7996 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7997 VAR10): Change accordingly.
7998 (neon_builtin_data[]): Change accordingly
7999 (arm_init_neon_builtins): Change accordingly.
8000 (neon_builtin_compare): Remove.
8001 (locate_neon_builtin_icode): Remove.
8002 (arm_expand_neon_builtin): Change accordingly.
8004 * arm.h (enum arm_builtins): Move to ...
8005 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8007 * arm.c (arm_builtin_decl): Declare.
8008 (TARGET_BUILTIN_DECL): Define.
8009 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8010 (arm_builtin_decls[]): New.
8011 (arm_init_neon_builtins): Store builtin declarations in
8012 arm_builtin_decls[].
8013 (arm_init_tls_builtins): Likewise.
8014 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8015 (arm_builtin_decl): New.
8017 2011-04-18 Richard Guenther <rguenther@suse.de>
8019 * tree.c (upper_bound_in_type): Build properly canonicalized
8021 (lower_bound_in_type): Likewise.
8023 2011-04-18 Richard Guenther <rguenther@suse.de>
8025 * gimple.h (gimple_call_addr_fndecl): New function.
8026 (gimple_call_fndecl): Use it.
8027 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8029 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8030 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8032 2011-04-18 Richard Guenther <rguenther@suse.de>
8035 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8037 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8040 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8041 DECL_IN_CONSTANT_POOL without RTL.
8043 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8044 Ira Rosen <ira.rosen@linaro.org>
8047 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8048 to match neon_vzip/vuzp/vtrn_internal.
8049 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8050 outputs explicitly dependent on both inputs.
8051 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8053 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8055 PR tree-optimization/48616
8056 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8057 whether the shift is by scalar or vector based on whether all SLP
8058 scalar stmts have the same rhs.
8060 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8062 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8065 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8068 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8071 2011-04-17 Jan Hubicka <jh@suse.cz>
8073 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8074 * cgrpahunit.c (cgraph_finalize_function): Do not set
8075 finalized_by_frontend.
8076 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8077 finalized_by_frontend.
8079 2011-04-17 Jan Hubicka <jh@suse.cz>
8081 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8082 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8083 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8084 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8086 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8088 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8090 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8093 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8094 is non-null before accessing it.
8095 (input_cgraph): Remove trailing spaces.
8097 2011-04-17 Revital Eres <revital.eres@linaro.org>
8099 * params.def (sms-min-sc): New param flag.
8100 * modulo-sched.c (sms_schedule): Use it.
8101 * doc/invoke.texi (sms-min-sc): Document it.
8103 2011-04-17 Jan Hubicka <jh@suse.cz>
8105 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8106 present, also set gimple_call_set_cannot_inline.
8107 * ipa-inline.c: Update toplevel comment.
8109 (cgraph_clone_inlined_nodes): Fix linebreaks.
8110 (cgraph_check_inline_limits): Restructure to ...
8111 (caller_growth_limits): ... this one; be more tolerant
8112 on growth in nested inline chains; add explanatory comment;
8113 fix stack accounting thinko introduced by previous patch.
8114 (cgraph_default_inline_p): Remove.
8115 (report_inline_failed_reason): New function.
8116 (can_inline_edge_p): New function.
8117 (can_early_inline_edge_p): New function.
8118 (leaf_node_p): Move upwards in file.
8119 (want_early_inline_function_p): New function.
8120 (want_inline_small_function_p): New function.
8121 (want_inline_self_recursive_call_p): New function.
8122 (cgraph_edge_badness): Rename to ...
8123 (edge_badness) ... this one; fix linebreaks.
8124 (update_edge_key): Update call of edge_baddness; add
8125 detailed dump about queue updates.
8126 (update_caller_keys): Use can_inline_edge_p and
8127 want_inline_small_function_p.
8128 (cgraph_decide_recursive_inlining): Rename to...
8129 (recursive_inlining): Use can_inline_edge_p and
8130 want_inline_self_recursive_call_p; simplify and remove no longer
8132 (cgraph_set_inline_failed): Remove.
8133 (add_new_edges_to_heap): Use can_inline_edge_p and
8134 want_inline_small_function_p.
8135 (cgraph_decide_inlining_of_small_functions): Rename to ...
8136 (inline_small_functions): ... this one; cleanup; use
8137 can/want predicates; cleanup debug ouput; work edges till fibheap
8138 is exhausted and do not stop once unit growth is reached; remove
8139 later loop processing remaining edges.
8140 (cgraph_flatten): Rename to ...
8141 (flatten_function): ... this one; use can_inline_edge_p
8142 and can_early_inline_edge_p predicates.
8143 (cgraph_decide_inlining): Rename to ...
8144 (ipa_inline): ... this one; remove unreachable nodes before
8145 inlining functions called once; simplify the pass.
8146 (cgraph_perform_always_inlining): Rename to ...
8147 (inline_always_inline_functions): ... this one; use
8148 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8149 (cgraph_decide_inlining_incrementally): Rename to ...
8150 (early_inline_small_functions): ... this one; simplify
8151 using new predicates; cleanup; make dumps prettier.
8152 (cgraph_early_inlining): Rename to ...
8153 (early_inliner): newer inline regular functions into always-inlines;
8154 fix updating of call stmt summaries.
8155 (pass_early_inline): Update for new names.
8156 (inline_transform): Fix formating.
8157 (gate_cgraph_decide_inlining): Rename to ...
8158 (pass_ipa_inline): ... this one.
8159 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8160 * ipa-inline-analysis.c (dump_inline_summary): Update.
8161 (compute_inline_parameters): Do not compute disregard_inline_limits;
8162 look for mismatching arguments.
8163 (estimate_growth): Fix handlig of non-trivial self recursion.
8164 (inline_read_summary): Do not read info->disregard_inline_limits.
8165 (inline_write_summary): Do not write info->disregard_inline_limits.
8166 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8167 and move all checks into can_inline_edge_p predicate; re-enable code
8168 comparing optimization levels.
8169 (expand_call_inline): Do not test inline_forbidden_into_p.
8170 * Makefile.in (ipa-inline.o): Update arguments.
8172 2011-04-17 Revital Eres <revital.eres@linaro.org>
8174 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8176 2011-04-17 Revital Eres <revital.eres@linaro.org>
8178 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8180 2011-04-17 Michael Matz <matz@suse.de>
8182 PR tree-optimization/48622
8184 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8185 in same order as they're written.
8187 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8189 * config/pa/predicates.md: Reorganize and simplify predicates.
8190 Eliminate duplicate code checks.
8191 (arith_operand): Rename to arith14_operand
8192 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8193 * config/pa/pa.md: Use renamed operands.
8194 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8195 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8196 arith11_operand, adddi3_operand, indexed_memory_operand,
8197 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8198 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8199 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8200 move_dest_operand, move_src_operand, prefetch_cc_operand,
8201 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8202 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8203 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8204 div_operand, int5_operand, movb_comparison_operator,
8205 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8206 arith_double_operand, ireg_operand, lhs_lshift_operand,
8207 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8208 integer_store_memory_operand): Likewise.
8209 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8210 (integer_store_memory_operand, read_only_operand,
8211 function_label_operand, borx_reg_operand,
8212 non_hard_reg_operand): Likewise.
8213 (eq_neq_comparison_operator): Delete unused operator.
8214 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8215 function_label_operand.
8216 (emit_move_sequence): Likewise.
8218 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8220 * config/i386/sse.md (sseunpackmode): New mode attribute.
8221 (ssepackmode): Ditto.
8222 (vec_pack_trunc_<mode>): Macroize expander from
8223 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8224 (vec_unpacks_lo_<mode>): Macroize expander from
8225 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8226 (vec_unpacks_hi_<mode>): Macroize expander from
8227 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8228 (vec_unpacku_lo_<mode>): Macroize expander from
8229 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8230 (vec_unpacku_hi_<mode>): Macroize expander from
8231 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8232 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8233 ix86_expand_sse4_unpack.
8234 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8236 2011-04-16 Jan Hubicka <jh@suse.cz>
8238 * cgraphbuild.c: Include ipa-inline.h.
8239 (reset_inline_failed): Use initialize_inline_failed.
8240 * cgraph.c: Include ipa-inline.h.
8241 (cgraph_create_node_1): Do not initialize estimated_growth.
8242 (initialize_inline_failed): More to ipa-inline-analysis.c
8243 (dump_cgraph_node): Do not dump inline flags.
8244 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8245 and disregard_inline_limits flags.
8246 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8247 time, size, estimated_growth.
8248 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8250 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8251 DECL_DISREGARD_INLINE_LIMITS.
8252 (cgraph_analyze_function): Do not initialize
8253 node->local.disregard_inline_limits.
8254 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8255 inlinable, versionable and disregard_inline_limits.
8256 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8257 cgraph_check_inline_limits, cgraph_default_inline_p,
8258 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8259 add_new_edges_to_heap): Update.
8260 (cgraph_decide_inlining_of_small_function): Update; set
8261 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8262 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8263 cgraph_decide_inlining_incrementally): Update.
8264 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8265 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8266 time, size and estimated_growth parameters.
8267 (estimate_edge_growth): Update.
8268 (initialize_inline_failed): Declare.
8269 * ipa-split.c: Include ipa-inline.h
8270 (execute_split_functions): Update.
8271 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8272 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8273 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8274 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8275 estimated_growth to INT_MIN.
8276 (inline_node_duplication_hook): Likewise.
8277 (dump_inline_summary): Dump new fields.
8278 (compute_inline_parameters): Update.
8279 (estimate_edge_time, estimate_time_after_inlining,
8280 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8281 inline_write_summary):
8282 (initialize_inline_failed): Move here from cgraph.c.
8283 * tree-sra.c: Include ipa-inline.h.
8284 (ipa_sra_preliminary_function_checks): Update.
8285 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8288 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8290 * config/i386/sse.md (V16): New mode iterator.
8292 (AVXMODEQI, AVXMODEDI): Remove.
8293 (sse2, sse3): New mode attribute.
8294 (mov<mode>): Use V16 mode iterator.
8295 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8296 (push<mode>1): Use V16 mode iterator.
8297 (movmisalign<mode>): Ditto.
8298 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8299 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8300 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8301 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8302 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8303 avx_movdqu<avxmodesuffix>.
8304 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8305 *avx_movdqu<avxmodesuffix>.
8306 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8307 avx_lddqu<avxmodesuffix>.
8308 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8309 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8310 avx_movnt<AVXMODEDI:mode>.
8311 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8312 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8314 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8317 * haifa-sched.c (prune_ready_list, schedule_block): Use
8318 sched_pressure_p rather than flag_sched_pressure.
8320 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8322 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8323 cgraph_get_node instead of cgraph_get_create_node.
8325 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8327 * cfgexpand.c (expand_debug_expr): Use
8328 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8330 2011-04-15 Michael Matz <matz@suse.de>
8332 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8333 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8334 * function.c (gimplify_parameters): Ditto.
8335 * gimplify.c (gimplify_vla_decl): Ditto.
8337 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8338 (gimple_call_set_alloca_for_var): New inline function.
8339 (gimple_call_alloca_for_var_p): Ditto.
8340 * gimple.c (gimple_build_call_from_tree): Remember
8341 CALL_ALLOCA_FOR_VAR_P state.
8342 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8344 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8345 calls if they were for VLA objects.
8347 2011-04-15 Martin Jambor <mjambor@suse.cz>
8349 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8352 2011-04-15 Martin Jambor <mjambor@suse.cz>
8355 * tree-emutls.c (lower_emutls_function_body): Call
8356 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8359 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8361 * c-decl.c (detect_field_duplicates): Call
8362 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8364 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8366 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8367 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8368 * ipa-pure-const.c (check_stmt): Call it.
8369 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8371 2011-04-15 Richard Guenther <rguenther@suse.de>
8373 PR tree-optimization/48290
8374 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8375 Properly decide inhibiting propagation based on the valueized
8376 operand. Do loop-closed SSA form preserving here ...
8377 (init_copy_prop): ... not here.
8379 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8382 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8383 (*ieee_smax<mode>3): Likewise.
8385 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8387 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8388 Replace match_operand with match_dup for the third operand in
8391 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8393 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8394 to track processing of conditionals. Update all callers.
8395 (try_combine, simplify_if_then_else): Update.
8397 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8399 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8402 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8404 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8405 instead of match_operand for operand 3.
8407 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8409 * recog.h (insn_operand_data): Add an "allows_mem" field.
8410 * genoutput.c (output_operand_data): Initialize it.
8411 * optabs.c (maybe_legitimize_operand_same_code): New function.
8412 (maybe_legitimize_operand): Use it when matching the original
8415 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8417 * gimplify.c: Fix issues in comments throughout.
8418 (voidify_wrapper_expr): Fix long line.
8419 (build_stack_save_restore): Likewise.
8420 (gimplify_loop_expr): Likewise.
8421 (gimplify_compound_lval): Likewise.
8422 (gimplify_init_ctor_eval): Likewise.
8423 (gimplify_modify_expr_rhs): Likewise.
8424 (omp_notice_threadprivate_variable): Likewise.
8426 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8428 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8429 original one if this is not a builtin function.
8431 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8434 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8435 offset it as needed based on top 2 bits in operands[3], change
8436 MEM mode to SFmode and mask those 2 bits away from operands[3].
8438 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8440 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8441 change from objc_declare_protocols() to objc_declare_protocol().
8443 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8445 * config/i386/sse.md (sse4_1): New mode attribute.
8446 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8447 avx_blend<ssemodesuffix><avxmodesuffix> and
8448 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8449 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8450 avx_blendv<ssemodesuffix><avxmodesuffix> and
8451 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8452 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8453 avx_dp<ssemodesuffix><avxmodesuffix> and
8454 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8455 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8456 (sse4_1_packusdw): Merge with *avx_packusdw.
8457 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8458 (sse4_1_pblendw): Merge with *avx_pblendw.
8459 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8460 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8461 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8463 (sse4_1_round<ssescalarmodesuffix>): Merge with
8464 *avx_round<ssescalarmodesuffix>.
8465 (aesenc): Merge with *avx_aesenc.
8466 (aesenclast): Merge with *avx_aesenclast.
8467 (aesdec): Merge with *avx_aesdec.
8468 (aesdeclast): Merge with *avx_aesdeclast.
8469 (pclmulqdq): Merge with *pclmulqdq.
8470 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8472 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8474 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8477 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8478 (align_local_variable): This. Update DECL_ALIGN.
8479 (add_stack_var): Updated.
8480 (expand_one_stack_var): Likewise.
8482 2011-04-14 Richard Guenther <rguenther@suse.de>
8484 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8486 (dse_initialize_block_local_data, dse_leave_block,
8487 record_voperand_set, get_stmt_uid): Likewise.
8488 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8489 (dse_optimize_stmt): Remove voperand set handling code.
8490 Simplify and improve to handle any kind of killing stmt.
8491 (dse_record_phi): Remove.
8492 (dse_enter_block): Simplify.
8493 (tree_ssa_dse): Likewise.
8494 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8496 2011-04-14 Jan Hubicka <jh@suse.cz>
8498 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8499 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8500 (cgraph_local_info): Remove inline_summary.
8501 * ipa-cp.c: Include ipa-inline.h.
8502 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8503 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8505 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8506 (input_overwrite_node): Do not set inline summary.
8507 (input_node): Do not stream inline summary.
8508 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8509 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8510 growth; we do not have inline parameters computed for that anyway.
8511 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8512 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8513 (inline_summary_t): New type and VECtor.
8514 (debug_inline_summary, dump_inline_summaries): Declare.
8515 (inline_summary): Use VOCtor.
8516 (estimate_edge_growth): Kill hack computing call stmt size directly.
8517 * lto-section-in.c (lto_section_name): Add inline section.
8518 * ipa-inline-analysis.c: Include lto-streamer.h
8519 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8520 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8521 (inline_summary_vec): Define.
8522 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8523 dump_inline_summaries): New functions.
8524 (estimate_function_body_sizes): Properly compute size/time of outgoing
8526 (compute_inline_parameters): Alloc inline_summary; do not compute
8527 size/time of incomming calls.
8528 (estimate_edge_time): Avoid missing time summary hack.
8529 (inline_read_summary): Read inline summary info.
8530 (inline_write_summary): Write inline summary info.
8531 (inline_free_summary): Free all hooks and inline summary vector.
8532 * lto-streamer.h: Add LTO_section_inline_summary section.
8533 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8534 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8536 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8538 * tree-vectorizer.h (vect_strided_store_supported): Add a
8539 HOST_WIDE_INT argument.
8540 (vect_strided_load_supported): Likewise.
8541 (vect_permute_store_chain): Return void.
8542 (vect_transform_strided_load): Likewise.
8543 (vect_permute_load_chain): Delete.
8544 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8545 count argument. Check that the count is a power of two.
8546 (vect_strided_load_supported): Likewise.
8547 (vect_permute_store_chain): Return void. Update after above changes.
8548 Assert that the access is supported.
8549 (vect_permute_load_chain): Likewise.
8550 (vect_transform_strided_load): Return void.
8551 * tree-vect-stmts.c (vectorizable_store): Update calls after
8552 above interface changes.
8553 (vectorizable_load): Likewise.
8554 (vect_analyze_stmt): Don't check for strided powers of two here.
8556 2011-04-14 Richard Guenther <rguenther@suse.de>
8558 PR tree-optimization/48590
8559 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8560 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8561 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8562 BUILT_IN_STACK_SAVE.
8563 * tree-ssa-dce.c (propagate_necessity): Handle
8564 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8566 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8568 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8571 2011-04-14 Richard Guenther <rguenther@suse.de>
8573 * tree.h (get_object_alignment_1): Declare.
8574 * builtins.c (get_object_alignment_1): Split out worker from ...
8575 (get_object_alignment): ... here.
8576 * fold-const.c (get_pointer_modulus_and_residue): Use
8577 get_object_alignment_1.
8579 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8581 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8583 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8584 parameter. Generalise code to handle arrays as well as vectors.
8585 (vect_setup_realignment): Update accordingly.
8586 * tree-vect-stmts.c (vectorizable_store): Likewise.
8587 (vectorizable_load): Likewise.
8589 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8591 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8592 within the per-copy loop.
8594 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8596 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8599 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8601 * doc/options.texi (Negative): Explicitly mention that the
8602 Negative chain must be circular.
8604 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8606 * function.h (block_chainon): Declare.
8607 * function.c (block_chainon): Define.
8609 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8610 Eric Weddington <eric.weddington@atmel.com>
8611 Georg-Johann Lay <avr@gjlay.de>
8613 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8615 (avr_init_builtins, avr_expand_builtin,
8616 avr_expand_delay_cycles, avr_expand_unop_builtin,
8617 avr_expand_binop_builtin ): New functions.
8618 (avr_builtin_id): New enum
8619 (struct avr_builtin_description): New struct
8620 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8621 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8623 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8624 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8625 UNSPECV_DELAY_CYCLES): new enumeration values
8626 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8627 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8628 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8629 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8630 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8631 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8632 "fmulsu"): New insns
8634 * config/avr/avr-c.c: fix line endings
8635 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8636 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8637 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8638 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8639 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8641 * doc/extend.texi (AVR Built-in Functions): New node
8642 (Target Builtins): Add documentation of AVR
8645 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8648 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8649 alone. Error if non-const data has attribute progmem.
8651 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8653 * tree.h (struct tree_constructor): Include tree_typed instead of
8655 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8656 TS_TYPED instead of TS_COMMON.
8658 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8660 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8661 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8662 (sse2_psadbw): Merge with *avx_psadbw.
8663 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8664 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8665 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8666 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8667 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8668 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8669 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8670 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8671 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8672 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8673 (ssse3_palignrti): Merge with *avx_palignrti.
8675 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8677 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8678 * tree-ssanames.c (fini_ssanames): VEC_free it.
8679 (make_ssa_name_fn): Update for VECness of free_ssanames.
8680 (release_ssa_name, release_dead_ssa_names): Likewise.
8681 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8683 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8684 TS_TYPED instead of TS_COMMON.
8686 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8688 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8689 statistics_counter_event.
8690 * tree-ssa-copyrename.c (stats): Define.
8691 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8692 statistics_counter_event.
8693 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8694 (bswap_stats, widen_mul_stats): Define.
8695 (insert_reciprocals): Increment rdivs_inserted.
8696 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8697 rfuncs_inserted. Add calls to statistics_counter_event.
8698 (execute_cse_sincos_1): Increment inserted.
8699 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8700 statistics_counter_event.
8701 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8702 of bswap_stats. Add calls to statistics_counter_event.
8703 (convert_mult_to_widen): Increment widen_mults_inserted.
8704 (convert_plusminus_to_widen): Increment maccs_inserted.
8705 (convert_mult_to_fma): Increment fmas_inserted.
8706 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8707 calls to statistics_counter_event.
8709 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8711 PR rtl-optimization/48455
8712 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8713 `temp_costs->mem_cost'.
8715 2011-04-13 Jan Hubicka <jh@suse.cz>
8717 * ipa-inline.h: New file.
8718 * ipa-inline-analysis.c: New file. Broken out of ...
8719 * ipa-inline.c: ... this file; update toplevel comment;
8720 include ipa-inline.h
8721 (inline_summary): Move to ipa-inline.h
8722 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8723 ipa-inline-analysis.c.
8724 (cgraph_estimate_time_after_inlining): Rename to
8725 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8726 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8727 to estimate_edge_growth.
8728 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8729 rename to estimate_size_after_inlining.
8730 (cgraph_mark_inline_edge): Update for new naming convention.
8731 (cgraph_check_inline_limits): Likewise.
8732 (cgraph_edge_badness): Likewise.
8733 (cgraph_decide_recursive_inlining): Likewise.
8734 (cgraph_decide_inlining_of_small_functions): Likewise.
8735 (cgraph_decide_inlining_incrementally): Likewise.
8736 (cgraph_estimate_growth): Rename to estimate_growth; move to
8737 ipa-inline-analysis.c.
8738 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8739 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8740 (compute_inline_parameters): Likewise.
8741 (compute_inline_parameters_for_current): Likewise.
8742 (pass_inline_parameters): Likewise.
8743 (inline_indirect_intraprocedural_analysis): Likewise.
8744 (analyze_function): Rename to inline_analyze_function; likewise.
8745 (add_new_function): Move to ipa-inline-analysis.c.
8746 (inline_generate_summary): Likewise.
8747 (inline_read_summary): Likewise.
8748 (inline_write_summary): Likewise.
8749 * Makefile.in (ipa-inline-analysis.c): New file.
8751 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8753 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8754 * configure: Regenerate.
8756 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8758 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8759 instead of tree_common.
8760 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8762 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8763 TS_TYPED rather than TS_COMMON.
8764 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8766 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8769 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8770 r20 around calls of __tablejump_elpm__
8772 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8775 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8777 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8779 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8781 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8782 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8783 (cfi_vec): New typedef.
8784 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8785 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8786 (cie_cfi_vec): New static variable.
8787 (cie_cfi_head): Delete.
8788 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8789 declaration changed. Use vector rather than list operations.
8790 (new_cfi): Don't initialize the dw_cfi_next field.
8791 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8792 rather than list operations.
8793 (lookup_cfa): Use vector rather than list operations.
8794 (output_cfis): New argument upto. Accept a cfi_vec rather than
8795 a dw_cfi_ref list head as argument. All callers changed.
8796 Iterate over the vector using upto as a maximum index.
8797 (output_all_cfis): New static function.
8798 (output_fde): Use vector rather than list operations. Use the
8799 new upto argument for output_cfis rather than manipulating a
8801 (dwarf2out_begin_prologue): Change initializations to match
8803 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8804 from the vector length rather than searching for the end of a list.
8805 Use output_all_cfis.
8806 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8808 2011-04-13 Nick Clifton <nickc@redhat.com>
8810 * config/rx/rx.md (movmemsi): Do not use this pattern when
8811 volatile pointers are involved.
8813 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8815 * config/i386/sse.md (pinsrbits): Remove.
8816 (sse2_packsswb): Merge with *avx_packsswb.
8817 (sse2_packssdw): Merge with *avx_packssdw.
8818 (sse2_packuswb): Merge with *avx_packuswb.
8819 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8820 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8821 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8822 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8823 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8824 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8825 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8826 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8827 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8828 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8829 (sse2_loadld): Merge with *avx_loadld.
8830 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8831 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8832 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8833 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8834 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8836 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8838 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8840 * print-tree.c (print_node): Likewise.
8841 * tree-inline.c (copy_tree_r): Likewise.
8842 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8843 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8844 instead of TS_COMMON.
8845 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8846 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8847 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8848 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8849 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8851 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8853 (TREE_CHAIN): Check for a TS_COMMON structure.
8854 (TREE_TYPE): Check for a TS_TYPED structure.
8856 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8858 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8859 cgraph_get_create_node instead of cgraph_node.
8861 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8863 * c-parser.c (c_parser_initelt): Updated call to
8864 objc_build_message_expr.
8865 (c_parser_postfix_expression): Likewise.
8867 2011-04-12 Kai Tietz <ktietz@redhat.com>
8869 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8870 MASK_MS_BITFIELD_LAYOUT bit.
8872 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8874 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8875 assert it is always true.
8876 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8879 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8881 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8882 compiling Objective-C to be more efficient.
8884 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8886 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8889 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8891 * recog.h, genoutput.c, optabs.c: Revert last patch.
8893 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8896 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8898 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8900 * recog.h (insn_operand_data): Add an "allows_mem" field.
8901 * genoutput.c (output_operand_data): Initialize it.
8902 * optabs.c (maybe_legitimize_operand_same_code): New function.
8903 (maybe_legitimize_operand): Use it when matching the original
8906 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8908 * genpreds.c (process_define_predicate): Move most processing
8909 to gensupport.c. Continue to validate the expression.
8910 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8911 (process_define_predicate): Move processing to gensupport.c.
8912 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8913 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8914 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8916 (valid_predicate_name_p): New function, split out from old
8917 genpreds.c:process_define_predicate.
8918 (process_define_predicate): New function, combining code from
8919 old genpreds.c and genrecog.c functions.
8920 (process_rtx): Call it for DEFINE_PREDICATE and
8921 DEFINE_SPECIAL_PREDICATE.
8923 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8925 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8926 size of a '%A' memory reference.
8927 (T_DREG, T_QREG): New neon_builtin_type_bits.
8928 (arm_init_neon_builtins): Assert that the load and store operands
8929 are neon_struct_operands.
8930 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8931 (NEON_ARG_MEMORY): New builtin_arg.
8932 (neon_dereference_pointer): New function.
8933 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8934 Handle NEON_ARG_MEMORY.
8935 (arm_expand_neon_builtin): Update after above interface changes.
8936 Use NEON_ARG_MEMORY for loads and stores.
8937 * config/arm/predicates.md (neon_struct_operand): New predicate.
8938 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8939 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8940 (V_four_elem): Tweak formatting.
8941 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8942 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8943 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8944 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8945 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8946 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8947 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8948 Use %A in the output template.
8949 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8950 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8951 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8952 the width of the memory access. Remove post-increment.
8953 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8955 2011-04-12 Nick Clifton <nickc@redhat.com>
8957 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8958 instruction for interrupt handlers if the target is the basic V850
8960 (expand_epilogue): Likewise.
8962 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8964 PR rtl-optimization/48549
8965 * combine.c (propagate_for_debug): Also stop after BB_END of
8966 this_basic_block. Process LAST and just stop processing after it.
8967 (combine_instructions): If last_combined_insn has been deleted,
8968 set last_combined_insn to its PREV_INSN.
8970 2011-04-12 Richard Guenther <rguenther@suse.de>
8972 PR tree-optimization/46076
8973 * gimple.h (struct gimple_statement_call): Add fntype field.
8974 (gimple_call_fntype): Adjust.
8975 (gimple_call_set_fntype): New function.
8976 * gimple.c (gimple_build_call_1): Set the call function type.
8977 * gimplify.c (gimplify_call_expr): Preserve the function
8978 type the frontend used for the call.
8979 (gimplify_modify_expr): Likewise.
8980 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8982 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8984 * tree-ssa.c (useless_type_conversion_p): Function pointer
8985 conversions are useless.
8987 2011-04-12 Martin Jambor <mjambor@suse.cz>
8989 * cgraph.h (cgraph_node): Remove function declaration.
8990 (cgraph_create_node): Declare.
8991 (cgraph_get_create_node): Likewise.
8992 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8993 Updated all callers.
8994 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8995 the decl does not already exist. Call cgraph_get_create_node instead
8997 (cgraph_get_create_node): New function.
8998 (cgraph_same_body_alias): Update comment.
8999 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9000 assert it does not return NULL.
9001 (cgraph_update_edges_for_call_stmt): Likewise.
9002 (cgraph_clone_edge): Likewise.
9003 (cgraph_create_virtual_clone): Likewise.
9004 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9005 instead of cgraph_node.
9006 (cgraph_add_new_function): Call cgraph_create_node or
9007 cgraph_get_create_node instead of cgraph_node.
9008 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9009 instead of cgraph_node.
9010 (record_eh_tables): Likewise.
9011 (mark_address): Likewise.
9012 (mark_load): Likewise.
9013 (build_cgraph_edges): Call cgraph_get_create_node instead
9015 (rebuild_cgraph_edges): Likewise.
9016 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9017 instead of cgraph_node.
9018 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9020 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9021 cgraph_create_node instead of cgraph_node.
9022 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9024 * lto-cgraph.c (input_node): Likewise.
9025 * lto-streamer-in.c (input_function): Likewise.
9026 * varasm.c (mark_decl_referenced): Likewise.
9027 (assemble_alias): Likewise.
9029 2011-04-12 Martin Jambor <mjambor@suse.cz>
9031 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9032 instead of cgraph_node and assert it does not return NULL.
9033 * lto-streamer-in.c (lto_read_body): Likewise.
9034 * omp-low.c (new_omp_context): Likewise.
9035 (create_task_copyfn): Likewise.
9036 * tree-emutls.c (lower_emutls_function_body): Likewise.
9037 * matrix-reorg.c (transform_allocation_sites): Likewise.
9039 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9042 * c-typeck.c (build_asm_expr): Error out on attempts to use
9043 void type outputs or inputs for constraints that allow reg or
9046 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9047 Richard Earnshaw <rearnsha@arm.com>
9050 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9051 to use sign-magnitude offsets. Reject unsupported unaligned
9052 cases. Add detailed description in comments.
9053 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9054 condition from TARGET_32BIT to TARGET_ARM.
9056 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9058 * tree.h (struct typed_tree): New.
9059 (struct tree_common): Include it instead of tree_base.
9060 (TREE_TYPE): Update for new location of type field.
9061 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9062 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9063 (union tree_node): Add typed field.
9064 * treestruct.def (TS_TYPED): New.
9065 * lto-streamer.c (check_handled_ts_structures): Handle it.
9066 * tree.c (MARK_TS_TYPED): New macro.
9067 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9069 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9071 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9072 (force_nonfallthru): Do not alter the loop nest if no basic block
9075 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9077 * config/i386/sse.md (VI): New mode iterator.
9079 (AVX256MODEI): Ditto.
9080 (AVXMODEF4P): Ditto.
9081 (avxvecpsmode): Ditto.
9082 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9083 (sse2_andnot<mode>3): New expander.
9084 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9085 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9086 (<any_logic:code><mode>3): Use VI mode iterator.
9087 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9088 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9089 (*andnottf3): Handle AVX three-operand constraints.
9090 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9092 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9093 Robert Millan <rmh@gnu.org>
9095 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9096 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9097 GNU_USER_DYNAMIC_LINKER64): Define.
9098 (REG_NAME): Don't undefine.
9099 (MD_UNWIND_SUPPORT): Undefine.
9100 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9101 (REG_NAME): Don't undefine.
9102 (MD_UNWIND_SUPPORT): Undefine.
9103 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9105 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9107 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9108 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9110 2011-04-11 Xinliang David Li <davidxl@google.com>
9112 * value-profile.c (check_ic_target): New function.
9113 (gimple_ic_transform): Sanity check indirect call target.
9114 * gimple-low.c (gimple_check_call_args): Interface change.
9115 (gimple_check_call_matching_types): New function.
9116 * tree-inline.c (tree_can_inline_p): Call new function.
9118 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9120 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9121 tree-pretty-print.h & realmpfr.h.
9123 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9126 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9127 (setup_allocno_and_important_classes): Ditto.
9129 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9131 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9132 GNU_USER_DYNAMIC_LINKER.
9133 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9135 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9136 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9137 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9138 GNU_USER_TARGET_OS_CPP_BUILTINS.
9139 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9140 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9141 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9142 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9143 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9144 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9145 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9146 GNU_USER_TARGET_OS_CPP_BUILTINS.
9147 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9148 GNU_USER_DYNAMIC_LINKER.
9149 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9150 GNU_USER_TARGET_OS_CPP_BUILTINS.
9151 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9152 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9153 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9155 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9156 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9157 GNU_USER_DYNAMIC_LINKER64): Remove.
9158 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9160 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9161 GNU_USER_DYNAMIC_LINKER.
9162 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9163 GNU_USER_TARGET_OS_CPP_BUILTINS.
9164 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9165 GNU_USER_TARGET_OS_CPP_BUILTINS.
9166 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9167 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9168 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9169 GNU_USER_TARGET_OS_CPP_BUILTINS.
9170 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9171 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9172 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9173 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9174 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9175 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9176 GNU_USER_DYNAMIC_LINKER.
9177 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9178 GNU_USER_TARGET_OS_CPP_BUILTINS.
9179 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9180 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9181 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9182 GNU_USER_DYNAMIC_LINKER.
9183 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9184 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9185 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9186 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9187 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9188 GNU_USER_DYNAMIC_LINKER.
9189 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9190 GNU_USER_DYNAMIC_LINKERN32.
9191 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9192 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9193 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9194 GNU_USER_DYNAMIC_LINKER32.
9195 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9196 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9197 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9198 GNU_USER_DYNAMIC_LINKER.
9199 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9201 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9203 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9204 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9205 GNU_USER_DYNAMIC_LINKER32.
9206 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9207 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9208 GNU_USER_DYNAMIC_LINKER.
9209 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9210 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9211 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9212 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9213 GNU_USER_DYNAMIC_LINKER64.
9214 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9216 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9217 GNU_USER_DYNAMIC_LINKER.
9218 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9219 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9220 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9221 GNU_USER_DYNAMIC_LINKER.
9222 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9223 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9224 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9225 GNU_USER_DYNAMIC_LINKER32.
9226 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9227 GNU_USER_DYNAMIC_LINKER64.
9228 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9229 GNU_USER_DYNAMIC_LINKER64.
9230 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9231 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9232 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9233 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9234 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9236 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9238 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9239 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9240 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9241 GNU_USER_DYNAMIC_LINKER.
9242 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9243 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9244 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9245 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9246 GNU_USER_DYNAMIC_LINKER64.
9247 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9248 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9249 GNU_USER_LINK_EMULATION.
9250 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9251 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9252 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9253 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9254 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9255 CPP_SPEC, CC1_SPEC): Remove.
9256 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9257 (GNU_USER_DYNAMIC_LINKER): Define.
9258 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9259 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9260 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9261 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9262 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9263 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9264 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9265 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9266 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9267 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9268 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9269 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9270 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9271 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9272 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9273 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9274 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9275 GNU_USER_DYNAMIC_LINKER.
9276 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9277 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9278 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9279 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9280 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9281 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9282 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9283 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9284 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9285 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9287 2011-04-11 Kai Tietz <ktietz@redhat.com>
9291 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9292 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9294 (ix86_is_msabi_thiscall): Removed.
9295 (ix86_is_type_thiscall): Likewise.
9296 (ix86_get_callcvt): New function.
9297 (ix86_comp_type_attributes): Simplify check.
9298 (ix86_function_regparm): Use ix86_get_callcvt for calling
9299 convention attribute checks.
9300 (ix86_return_pops_args): Likewise.
9301 (ix86_static_chain): Likewise.
9302 (x86_this_parameter): Likewise.
9303 (x86_output_mi_thunk): Likewise.
9304 (ix86_function_type_abi): Optimize check for types without attributes.
9305 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9306 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9307 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9309 (IX86_BASE_CALLCVT): Helper macro.
9310 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9311 Use ix86_get_callcvt for calling convention attribute checks and avoid
9312 symbol-decoration for stdcall in TARGET_RTD case.
9313 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9315 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9318 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9320 * config/i386/sse.md (VI_128): New mode iterator.
9321 (VI12_128): Rename from SSEMODE12.
9322 (VI14_128): Rename from SSEMODE14.
9323 (VI124_128): New mode iterator.
9324 (VI24_128): Rename from SSEMODE248.
9325 (VI248_128): Rename from SSEMODE248.
9326 (SSEMODE124C8): Remove.
9327 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9328 (*sse2_<plusminus_insn><mode>3): Merge with
9329 *avx_<plusminus_insn><mode>3.
9330 (*mulv8hi3): Merge with *avx_mulv8hi3.
9331 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9332 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9333 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9334 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9335 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9336 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9337 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9338 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9339 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9340 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9341 (*<smaxmin:code>v8hi3): Ditto.
9342 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9343 (*<smaxmin:code>v16qi3): Ditto.
9344 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9345 (*sse2_eq<mode>3): Ditto.
9346 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9347 (*sse2_gt<mode>3): Ditto.
9348 (vcondv2di): Split out of vcond<mode>.
9349 (vconduv2di): Split out of vcondu<mode>.
9351 2011-04-11 Richard Guenther <rguenther@suse.de>
9353 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9354 before calling tree_low_cst.
9356 2011-04-11 Richard Guenther <rguenther@suse.de>
9358 * stor-layout.c (layout_type): Compute all array index size operations
9359 in the original type.
9360 (initialize_sizetypes): Add comment.
9361 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9363 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9365 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9367 2011-04-11 Martin Jambor <mjambor@suse.cz>
9369 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9370 of cgraph_node, handle NULL return value.
9371 (cgraph_global_info): Likewise.
9372 (cgraph_rtl_info): Likewise.
9373 * tree-inline.c (estimate_num_insns): Likewise.
9374 * gimplify.c (unshare_body): Likewise.
9375 (unvisit_body): Likewise.
9376 (gimplify_body): Likewise.
9377 * predict.c (optimize_function_for_size_p): Likewise.
9378 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9379 (call_may_clobber_ref_p_1): Likewise.
9380 * varasm.c (function_section_1): Likewise.
9381 (assemble_start_function): Likewise.
9383 2011-04-11 Martin Jambor <mjambor@suse.cz>
9385 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9387 * final.c (rest_of_clean_state): Likewise.
9388 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9389 * passes.c (pass_init_dump_file): Likewise.
9390 (execute_all_ipa_transforms): Likewise.
9391 (function_called_by_processed_nodes_p): Likewise.
9392 * predict.c (maybe_hot_frequency_p): Likewise.
9393 (probably_never_executed_bb_p): Likewise.
9394 (compute_function_frequency): Likewise.
9395 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9396 (unnest_nesting_tree_1): Likewise.
9397 (lower_nested_functions): Likewise.
9398 * tree-optimize.c (execute_fixup_cfg): Likewise.
9399 (tree_rest_of_compilation): Likewise.
9400 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9401 * tree-sra.c (ipa_early_sra): Likewise.
9402 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9403 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9404 * ipa.c (record_cdtor_fn): Likewise.
9405 * ipa-inline.c (cgraph_early_inlining): Likewise.
9406 (compute_inline_parameters_for_current): Likewise.
9407 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9408 * ipa-pure-const.c (local_pure_const): Likewise.
9409 * ipa-split.c (split_function): Likewise.
9410 (execute_split_functions): Likewise.
9411 * cgraphbuild.c (build_cgraph_edges): Likewise.
9412 (rebuild_cgraph_edges): Likewise.
9413 (cgraph_rebuild_references): Likewise.
9414 (remove_cgraph_callee_edges): Likewise.
9415 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9416 (verify_cgraph_node): Likewise.
9417 (cgraph_analyze_functions): Likewise.
9418 (cgraph_preserve_function_body_p): Likewise.
9419 (save_inline_function_body): Likewise.
9420 (save_inline_function_body): Likewise.
9421 * tree-inline.c (copy_bb): Likewise.
9422 (optimize_inline_calls): Likewise.
9424 2011-04-11 Martin Jambor <mjambor@suse.cz>
9426 PR tree-optimization/48195
9427 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9428 ipa_check_create_edge_args.
9429 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9430 ipa_check_create_edge_args.
9431 * ipa-inline.c (inline_generate_summary): Do not call
9432 ipa_check_create_node_params and ipa_check_create_edge_args.
9433 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9434 ipa_check_create_edge_args.
9436 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9438 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9440 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9441 * function.c (record_hard_reg_sets): Likewise.
9442 * ira.c (compute_regs_asm_clobbered): Likewise.
9443 * sched-deps.c (sched_analyze_1): Likewise.
9444 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9446 2011-04-09 Xinliang David Li <davidxl@google.com>
9448 PR tree-optimization/PR48484
9449 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9450 has_valid_pred lazily
9452 2011-04-09 Duncan Sands <baldrick@free.fr>
9454 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9456 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9458 * combine.c (combine_validate_cost): Adjust comments. Set registered
9459 cost of I0 to zero at the end, if any.
9461 2011-04-08 Xinliang David Li <davidxl@google.com>
9463 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9464 to insane profile data.
9466 2011-04-08 Xinliang David Li <davidxl@google.com>
9468 * ipa-cp.c (ipcp_update_profiling): Correct
9469 negative scale factor due to insane profile data.
9471 2011-04-08 Xinliang David Li <davidxl@google.com>
9473 * final.c (dump_basic_block_info): New function.
9474 (final): Dump basic block.
9475 (final_scan_insn): Remove old dump.
9477 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9480 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9483 2011-04-08 Michael Matz <matz@suse.de>
9486 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9488 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9489 * rtl.h (rebuild_jump_labels_chain): Declare.
9490 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9491 insns inserted on edges.
9493 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9495 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9496 * config/arm/arm-arches.def: New.
9497 * config/arm/arm-opts.h: New.
9498 * config/arm/genopt.sh: New.
9499 * config/arm/arm-tables.opt: New (generated).
9500 * config/arm/arm.c (arm_handle_option, arm_target_help,
9501 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9502 (all_architectures): Get most table contents from arm-arches.def.
9503 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9504 arm_selected_tune here.
9505 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9506 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9507 (march=, mcpu=, mtune=): Use Enum and Var.
9508 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9509 (arm.o): Update dependencies.
9511 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9513 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9515 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9516 (write_typed_alloc_defns): Likewise.
9517 (main): Calls write_typed_alloc_defns with output_header.
9519 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9522 * ira-color.c (setup_profitable_hard_regs): Add comments.
9523 Don't take prohibited hard regs into account.
9524 (setup_conflict_profitable_regs): Rename to
9525 get_conflict_profitable_regs.
9526 (check_hard_reg_p): Check prohibited hard regs.
9528 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9530 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9531 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9532 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9534 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9537 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9538 move from floating point to shift amount register.
9539 (emit_move_sequence): Remove secondary reload support for floating
9540 point to shift amount amount register copies.
9541 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9542 amount register copies.
9543 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9544 register, return false if mode isn't a scalar integer mode.
9545 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9547 2011-04-08 Richard Guenther <rguenther@suse.de>
9549 * gimple.c (gimple_call_flags): Remove kludge.
9551 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9553 * sel-sched.c (sel_region_init): Move call to
9554 sel_setup_region_sched_flags after setup_current_loop_nest.
9556 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9558 PR rtl-optimization/48272
9559 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9560 init_insn_reg_pressure_info. Adjust a caller.
9561 * sched-int.h (init_insn_reg_pressure_info): Declare.
9562 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9563 when sched-pressure is enabled.
9565 2011-04-08 Richard Guenther <rguenther@suse.de>
9567 * gimple.c (gimple_set_modified): Do not queue calls to
9568 MODIFIED_NORETURN_CALLS here ...
9569 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9571 2011-04-08 Richard Guenther <rguenther@suse.de>
9574 * toplev.c (lang_dependent_init): Do not open asm_out_file
9575 in WPA mode, nor perform debug machinery initialization.
9576 (finalize): Do not unlink asm_out_file in WPA mode.
9578 2011-04-08 Richard Guenther <rguenther@suse.de>
9580 * gimple.h (gimple_call_fntype): New function.
9581 (gimple_call_return_type): Use it.
9582 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9583 * gimple-low.c (gimple_check_call_args): Likewise.
9584 * gimple.c (gimple_call_flags): Likewise.
9585 (gimple_call_arg_flags): Likewise.
9586 (gimple_call_return_flags): Likewise.
9587 * tree-cfg.c (verify_gimple_call): Likewise.
9588 (do_warn_unused_result): Likewise.
9589 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9590 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9592 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9594 PR rtl-optimization/48235
9595 * sel-sched.c (code_motion_process_successors): Recompute the last
9596 insn in basic block if control flow changed.
9597 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9598 Update condition for ilist_remove.
9600 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9602 PR rtl-optimization/48302
9603 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9604 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9605 it to record added preheader blocks.
9606 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9607 on to sel_add_loop_preheaders.
9608 (sel_region_init): Move call to setup_current_loop_nest after
9611 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9614 * cfgloop.h (loop_has_exit_edges): New helper.
9615 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9617 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9618 that have no exit edges.
9620 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9622 PR rtl-optimization/48442
9623 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9624 all callers. Adjust assert.
9626 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9628 PR tree-optimization/48377
9629 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9630 is_packed to true even for types with smaller TYPE_ALIGN than
9633 2011-04-08 Richard Guenther <rguenther@suse.de>
9636 * doc/tm.texi: Re-generate.
9638 2011-04-08 Wei Guozhi <carrot@google.com>
9641 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9642 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9643 * config/arm/arm.md (*push_multi): Change the length computation to
9646 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9648 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9649 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9650 * doc/tm.texi: Regenerate.
9651 * system.h (ASM_OUTPUT_BSS): Poison.
9652 * varasm.c (asm_output_bss): Remove function.
9653 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9655 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9656 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9657 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9658 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9660 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9662 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9664 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9666 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9668 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9671 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9673 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9674 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9675 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9677 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9678 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9679 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9680 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9681 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9682 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9683 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9684 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9685 options. Don't map other m68k options manually. Don't handle
9686 old-style options as canonical.
9687 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9688 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9690 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9692 * basic-block.h (force_nonfallthru): Move to...
9693 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9694 (force_nonfallthru): ...here.
9695 * cfghooks.c (force_nonfallthru): New function.
9696 * cfgrtl.c (force_nonfallthru): Rename into...
9697 (rtl_force_nonfallthru): ...this.
9698 (commit_one_edge_insertion): Do not set AUX field.
9699 (commit_edge_insertions): Do not discover new basic blocks.
9700 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9701 (cfg_layout_rtl_cfg_hooks): Likewise.
9702 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9703 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9704 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9706 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9708 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9711 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9713 * config/i386/sse.md: Update copyright year.
9714 (avxcvtvecmode): Remove.
9715 (sse_movhlps): Merge with *avx_movhlps.
9716 (sse_movlhps): Merge with *avx_movlhps.
9717 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9718 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9719 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9720 (sse_loadhps): Merge with *avx_loadhps.
9721 (sse_storelps): Merge with *avx_storelps.
9722 (sse_loadlps): Merge with *avx_loadlps.
9723 (sse_movss): Merge with *avx_movss.
9724 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9725 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9726 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9727 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9728 (vec_set<mode>_0): Ditto.
9729 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9730 (sse4_1_insertps): Merge with *avx_insertps.
9731 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9732 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9733 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9734 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9735 (sse2_storehpd): Merge with *avx_storehpd.
9736 (sse2_loadhpd): Merge with *avx_loadhpd.
9737 (sse2_loadlpd): Merge with *avx_loadlpd.
9738 (sse2_movsd): Merge with *avx_movsd.
9739 (*vec_concatv2df): Merge with *vec_concatv2df.
9741 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9744 * combine.c (combine_instructions): Add last_combined_insn,
9745 update it if insn is after it, pass it to all try_combine calls.
9746 (try_combine): Add last_combined_insn parameter, pass it instead of
9747 i3 to propagate_for_debug.
9749 2011-04-07 Nick Clifton <nickc@redhat.com>
9751 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9752 to handle MDR <-> data register transfers.
9753 (movhi_internal): Likewise.
9755 2011-04-07 Alan Modra <amodra@gmail.com>
9757 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9758 previous stack info.
9760 2011-04-07 Tom de Vries <tom@codesourcery.com>
9763 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9764 flow_find_cross_jump. Swap variables to implement backward replacement.
9765 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9767 2011-04-07 Tom de Vries <tom@codesourcery.com>
9770 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9771 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9773 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9774 src1 or src2. Redirect edges to the last basic block. Update
9775 frequency and count on multiple basic blocks in case of fallthru.
9777 2011-04-07 Tom de Vries <tom@codesourcery.com>
9780 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9782 (old_insns_match_p): Change return type. Replace return false/true
9783 with return dir_none/dir_both. Use can_replace_by.
9784 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9785 direction from dir_p. Register replacement direction in dir, last_dir
9786 and afterlast_dir. Handle new return type of old_insns_match_p using
9787 merge_dir. Return replacement direction in dir_p.
9788 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9789 return type of old_insns_match_p.
9790 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9791 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9792 flow_find_cross_jump.
9793 * basic-block.h (enum replace_direction): New type.
9794 (flow_find_cross_jump): Add parameter to declaration.
9796 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9798 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9799 (AVXMODEDCVTPS2DQ): Ditto.
9800 (VEC_FLOAT_MODE): Ditto.
9801 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9802 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9803 (<any_logic:code><mode>3): Use VF mode iterator.
9804 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9805 Use VF mode iterator.
9806 (copysign<mode>3): Use VF mode iterator.
9807 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9808 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9809 (*<any_logic:code><MODEF:mode>3): Merge with
9810 *avx_<any_logic:code><MODEF:mode>3.
9811 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9812 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9813 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9814 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9815 (sse2_cvtdq2ps): Use %v modifier.
9816 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9817 (avx_cvtps2dq<avxmodesuffix>): Remove.
9818 (sse2_cvtps2dq): Use %v modifier.
9819 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9820 (avx_cvttps2dq<avxmodesuffix>): Remove.
9821 (sse2_cvttps2dq): Use %v modifier.
9822 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9823 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9824 (sse2_cvtsd2siq): Fix insn template.
9825 (sse2_cvtsd2siq_2): Ditto.
9826 (sse2_cvttsd2siq): Ditto.
9827 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9828 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9830 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9832 * gcov-io.c: Use GCC Runtime Library Exception.
9834 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9837 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9838 as base_reg whatever register reg has been eliminated to, instead
9839 of hardcoding STACK_POINTER_REGNUM.
9841 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9843 * doc/tm.texi.in: Document C target hooks as separate from general
9845 * doc/tm.texi: Regenerate.
9846 * genhooks.c (struct hook_desc): Add docname field.
9847 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9849 (hook_array): Include c-target.def.
9850 (emit_documentation): Use docname field in output.
9851 (emit_init_macros): Take docname argument. Only emit definitions
9852 for hooks matching docname.
9853 (main): Expect additional arguments in all cases. Pass argument
9854 to emit_init_macros.
9855 * target.def: Move initial macro definitions and comments to
9856 target-hooks-macros.h.
9857 (gcc_targetcm): Move to c-family/c-target.def.
9858 * target.h (targetcm): Move declaration to c-family/c-target.h.
9859 * targhooks.c (default_handle_c_option): Move to
9861 * targhooks.h (default_handle_c_option): Move declaration to
9862 c-family/c-common.h.
9863 * target-hooks-macros.h: New file.
9864 * config.gcc (target_has_targetcm): Define and use to add to
9865 c_target_objs and cxx_target_objs.
9866 * config/default-c.c: New file.
9867 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9868 of target.h and target-def.h.
9869 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9870 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9871 darwin_check_cfstring_format_arg): Make static.
9872 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9873 TARGET_STRING_OBJECT_REF_TYPE_P,
9874 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9875 * config/darwin-protos.h (darwin_objc_construct_string,
9876 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9878 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9879 TARGET_STRING_OBJECT_REF_TYPE_P,
9880 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9881 * config/t-darwin (darwin-c.o): Update dependencies.
9882 * system.h (TARGET_HAS_TARGETCM): Poison.
9883 * Makefile.in (TARGET_H): Update.
9884 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9885 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9886 (default-c.o): New target.
9887 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9888 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9889 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9891 (build/genhooks.o): Update dependencies.
9893 2011-04-06 Richard Guenther <rguenther@suse.de>
9895 * ipa-inline.c (enum inlining_mode): Remove.
9896 (cgraph_flatten): Use some other token.
9897 (cgraph_edge_early_inlinable_p): New function, split out from ...
9898 (cgraph_perform_always_inlining): New function, split out from ...
9899 (cgraph_decide_inlining_incrementally): ... here.
9900 (cgraph_mark_inline_edge): Adjust.
9901 (cgraph_early_inlining): Re-structure.
9902 (pass_early_inline): Require SSA form.
9904 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9905 Julian Brown <julian@codesourcery.com>
9906 Mark Shinwell <shinwell@codesourcery.com>
9908 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9909 LO_REGS only for Thumb-1.
9910 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9911 be used in short instructions when optimising for size on Thumb-2.
9913 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9915 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9916 associated with user returns to be preserved.
9918 2011-04-06 Tristan Gingold <gingold@adacore.com>
9920 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9921 symbol_queue_size, DBXOUT_DECR_NESTING,
9922 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9923 if XCOFF_DEBUGGING_INFO.
9925 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9927 * config/i386/i386.md (attribute isa): New.
9928 (attribute enabled): New.
9929 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9930 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9931 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9932 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9933 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9934 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9935 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9936 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9938 * config/i386/sse.md (VF): New mode iterator.
9942 (SSEMODEF4): Remove.
9943 (attribute sse): Handle V8SF and V4DF modes.
9944 (<absneg:code><mode>2): Use VF mode iterator.
9945 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9947 (<plusminus_insn><mode>3): Use VF mode iterator.
9948 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9949 Use VF mode iterator.
9950 (<sse>_vm<plusminus_insn><mode>3): Merge with
9951 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9952 (mul<mode>3): Use VF mode iterator.
9953 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9954 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9956 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9957 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9958 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9959 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9961 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9962 Use VF1 mode iterator.
9963 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9964 (sqrt<VF2:mode>2): New expander.
9965 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9966 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9967 and sqrtv2df2. Use VF mode iterator.
9968 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9970 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9971 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9972 Use VF1 mode iterator.
9973 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9974 (<smaxmin:code><mode>3): Use VF mode iterator.
9975 (*<smaxmin:code><mode>3_finite): Merge with
9976 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9977 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9978 (<sse>_vm<smaxmin:code><mode>2): Merge with
9979 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9980 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9982 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9984 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9985 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9986 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9987 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9988 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9990 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9991 Use VF_128 mode iterator.
9992 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9994 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9995 VF_128 mode iterator.
9996 (vcond<mode>): Use VF mode iterator.
9997 * config/i386/predicates.md (sse_comparison_operator): Merge with
9998 avx_comparison_float_operator. Do not declare as special_predicate.
9999 * config/i386/i386.c (struct builtin_description): Update for renamed
10001 (ix86_expand_args_builtin): Ditto.
10002 (ix86_expand_sse_compare_mask): Ditto.
10004 2011-04-06 Richard Guenther <rguenther@suse.de>
10006 * tree-inline.c (estimate_num_insns): For calls simply account
10007 for all passed arguments and a used return value.
10009 2011-04-06 Richard Guenther <rguenther@suse.de>
10011 PR tree-optimization/47663
10012 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10013 call_stmt_time fields.
10014 (cgraph_edge_inlinable_p): Declare.
10015 (cgraph_edge_recursive_p): New inline function.
10016 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10017 (cgraph_clone_edge): Copy it.
10018 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10019 Account for call stmt time.
10020 (cgraph_estimate_time_after_inlining): Take edge argument.
10021 (cgraph_estimate_edge_growth): Account call stmt size.
10022 (cgraph_estimate_size_after_inlining): Take edge argument.
10023 (cgraph_mark_inline_edge): Adjust.
10024 (cgraph_check_inline_limits): Likewise.
10025 (cgraph_recursive_inlining_p): Remove.
10026 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10027 (cgraph_decide_recursive_inlining): Take edge argument and
10029 (cgraph_decide_inlining_of_small_functions): Do not avoid
10030 diags for recursive inlining here.
10031 (cgraph_flatten): Adjust.
10032 (cgraph_decide_inlining_incrementally): Likewise.
10033 (estimate_function_body_sizes): Remove call cost handling.
10034 (compute_inline_parameters): Initialize caller edge call costs.
10035 (cgraph_estimate_edge_growth): New function.
10036 (cgraph_estimate_growth): Use it.
10037 (cgraph_edge_badness): Likewise.
10038 (cgraph_check_inline_limits): Take an edge argument.
10039 (cgraph_decide_inlining_of_small_functions): Adjust.
10040 (cgraph_decide_inlining): Likewise.
10041 * tree-inline.c (estimate_num_insns): Only account for call
10042 return value if it is used.
10043 (expand_call_inline): Avoid diagnostics on recursive inline
10045 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10046 (input_edge): Input edge call costs.
10048 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10050 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10052 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10054 * doc/invoke.texi (Spec Files): Fix typo.
10056 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10058 * profile.c (branch_prob): Move declaration of local variable. Remove
10059 obsolete ??? comment. Expand the location explicitly instead of using
10060 the LOCATION_FILE and LOCATION_LINE macros.
10062 2011-04-06 Wei Guozhi <carrot@google.com>
10065 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10066 (arm_cond_branch): Likewise.
10067 (arm_cond_branch_reversed): Likewise.
10068 (arm_jump): Likewise.
10069 (push_multi): Likewise.
10070 * config/arm/constraints.md (Py): New constraint.
10072 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10075 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10077 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10078 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10079 #ifdef DBX_DEBUGGING_INFO.
10081 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10084 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10085 if old and new states differ.
10087 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10089 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10090 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10091 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10092 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10093 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10094 mcfv4e): Use Alias.
10095 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10096 ColdFire options to -mcpu= options.
10098 2011-04-05 Jeff Law <law@redhat.com>
10100 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10101 check if BB is a successor of LOOP->header and return
10102 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10104 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10106 * cprop.c (struct reg_use): Remove.
10107 (reg_use_table): Make an array of RTX.
10108 (find_used_regs, constprop_register, local_cprop_pass,
10109 bypass_block): Simplify users of reg_use_table.
10110 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10111 on one of the uses found by find_used_regs.
10113 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10116 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10119 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10121 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10123 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10125 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10127 PR middle-end/48441
10128 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10130 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10132 * combine.c: Include obstack.h.
10133 (struct insn_link): Define.
10134 (uid_log_links): Adjust type.
10135 (FOR_EACH_LOG_LINK): New macro.
10136 (insn_link_obstack): Declare.
10137 (alloc_insn_link): Define.
10138 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10139 type of link variables.
10140 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10141 (try_combine, record_promoted_values, distribute_notes): Likewise.
10142 (distribute_links): Likewise. Tweak prototype.
10143 (clear_log_links): Delete.
10144 (adjust_for_new_dest): Call alloc_insn_link.
10145 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10147 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10149 * gcse.c (modify_mem_list): Convert to an array of VECs.
10150 (canon_modify_mem_list, compute_transp): Tweak formatting.
10151 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10152 (load_killed_in_block_p): Likewise.
10153 (record_last_mem_set_info): Likewise.
10154 (clear_modify_mem_tables): Likewise.
10156 2011-04-05 Tom de Vries <tom@codesourcery.com>
10158 PR middle-end/48461
10159 * function.c (emit_use_return_register_into_block): Only define if
10162 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10164 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10166 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10168 * config/rx/rx-opts.h: New.
10169 * config/rx/rx.c (rx_cpu_type): Remove.
10170 (rx_handle_option): Don't assert that global structures are in
10171 use. Access variables via opts pointer. Defer most handling of
10172 OPT_mint_register_. Use error_at.
10173 (rx_option_override): Handle deferred OPT_mint_register_ here.
10174 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10175 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10176 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10177 (rx_cpu_types): New Enum and EnumValue entries.
10178 (mint-register=): Use Defer and use Var accordingly.
10180 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10182 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10183 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10184 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10186 (debug_free_queue, debug_nesting, symbol_queue_index):
10188 * dbxout.c: ...to here. Make static.
10190 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10192 * gcse.c (modify_pair): Define. Define a VEC of it.
10193 (canon_modify_mem_list): Convert to an array of VECs.
10194 (free_insn_expr_list_list): Delete.
10195 (clear_modify_mem_tables): Call VEC_free instead.
10196 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10197 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10198 (canon_list_insert, compute_transp): Likewise.
10200 2011-04-05 Tom de Vries <tom@codesourcery.com>
10203 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10206 2011-04-05 Tom de Vries <tom@codesourcery.com>
10209 * function.c (emit_use_return_register_into_block): New function.
10210 (thread_prologue_and_epilogue_insns): Use
10211 emit_use_return_register_into_block.
10213 2011-04-05 Tom de Vries <tom@codesourcery.com>
10216 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10219 2011-04-05 Tom de Vries <tom@codesourcery.com>
10221 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10223 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10225 * config/arm/arm.md (define_constants for unspec): Replace with
10227 (define_constants for unspecv): Replace with define_c_enum.
10228 * config/arm/neon.md (define_constants for unspec): Replace with
10231 2011-04-04 Richard Henderson <rth@redhat.com>
10234 * dwarf2out.c (output_line_info): Always emit line info from
10235 at least one section.
10236 (dwarf2out_init): Create text_section_line_info here ...
10237 (set_cur_line_info_table): ... not here.
10239 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10242 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10245 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10247 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10249 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10250 (expr_equiv_p): Remove.
10251 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10252 (hash_scan_set): Update call to insert_set_in_table.
10253 (dump_hash_table): Dump <dest, src> pair.
10254 (lookup_set): Simplify. Lookup <dest, src> pair.
10255 (compute_transp): Remove, fold heavily simplified code into...
10256 (compute_local_properties): ...here. Expect COMP and TRANSP
10258 (find_avail_set): Take set directly from struct expr.
10259 (find_bypass-set): Likewise.
10260 (bypass_block): Likewise.
10261 (cprop_insn): Likewise. Remove redundant INSN_P test.
10263 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10264 checks on form of COND from find_implicit_sets to here.
10265 (find_implicit_sets): Cleanup control flow. Split critical edges
10266 if it exposes implicit sets. Allocate/resize implicit_sets as
10268 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10269 changed something. Run df_analyze after find_implicit_sets if any
10270 edges were split. Do not allocate implicit_sets here.
10272 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10273 (gcse_obstack): Renamed to cprop_obstack.
10274 (GNEW, GNEWVEC, GNEWVAR): Remove.
10276 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10277 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10278 (gcse_alloc): Likewise, and rename to cprop_alloc.
10279 (alloc_gcse_men, free_gcse_mem): Remove.
10280 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10281 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10282 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10284 * cprop.c (oprs_not_set_p): Remove.
10285 (mark_set, mark_clobber): Remove.
10286 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10287 (reg_not_set_p): New function.
10288 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10289 (cprop_insn): Likewise.
10290 (cprop_jump): Use FOR_EACH_EDGE.
10292 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10295 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10296 (rank_for_schedule): Use scheduled_insns vector instead of
10297 last_scheduled_insn.
10298 (ok_for_early_queue_removal): Likewise.
10299 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10301 (choose_ready): Likewise.
10302 (commit_schedule): Use VEC_iterate.
10303 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10304 a dbg_cnt, use it and ensure the first insn is in the ready list.
10305 (haifa_sched_init): Allocate scheduled_insns.
10306 (sched_extend_ready_list): Don't allocate it; reserve space.
10307 (haifa_sched_finish): Free it.
10309 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10311 * optc-gen.awk: Always remove type from Variable entry before
10312 recording in var_seen.
10314 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10316 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10317 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10318 call to tidy_fallthru_edges.
10320 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10322 * doc/options.texi (ToLower): Document.
10323 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10324 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10325 * opts.h (cl_option): Add cl_tolower field.
10326 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10327 arguments with lowercase strings.
10328 * config/rx/rx.opt (mcpu=): Add ToLower.
10329 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10332 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10334 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10336 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10338 * config/vax/vax.c: Include reload.h.
10340 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10342 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10343 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10344 (sparc_preferred_reload_class): New function.
10346 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10349 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10350 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10352 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10354 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10355 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10357 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10359 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10360 (ASM_OUTPUT_ALIGNED_BSS): Define.
10362 2011-04-03 Michael Matz <matz@suse.de>
10364 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10365 and next_slot members.
10366 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10367 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10368 (lto_streamer_cache_append): Declare.
10369 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10370 unsigned index, remove offset parameter, ensure that we append
10371 or update existing entries.
10372 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10373 parameter, update next_slot for append.
10374 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10376 (lto_streamer_cache_insert_at): Likewise.
10377 (lto_streamer_cache_append): New function.
10378 (lto_streamer_cache_lookup): Use unsigned index.
10379 (lto_streamer_cache_get): Likewise.
10380 (lto_record_common_node): Don't test tree_node_can_be_shared.
10381 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10382 (lto_streamer_cache_delete): Don't free offsets member.
10383 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10384 (lto_output_string_with_length): Use lto_output_data_stream.
10385 (lto_output_tree_header): Remove ix parameter, don't write it.
10386 (lto_output_builtin_tree): Likewise.
10387 (lto_write_tree): Adjust callers to above, don't track and write
10388 offset, write unsigned index.
10389 (output_unreferenced_globals): Don't emit all global vars.
10390 (write_global_references): Use unsigned indices.
10391 (lto_output_decl_state_refs): Likewise.
10392 (write_symbol): Likewise.
10393 * lto-streamer-in.c (lto_input_chain): Move earlier.
10394 (input_function): Use unsigned index.
10395 (input_alias_pairs): Don't read and then ignore all global vars.
10396 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10397 don't pass it back, use lto_streamer_cache_append.
10398 (lto_register_var_decl_in_symtab): Use unsigned index.
10399 (lto_register_function_decl_in_symtab): Likewise.
10400 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10402 (lto_get_builtin_tree): Don't read index, use
10403 lto_streamer_cache_append.
10404 (lto_read_tree): Adjust call to lto_materialize_tree.
10406 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10407 don't use function calls in arguments to MIN.
10409 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10412 * gimple.c (gimple_type_leader_entry): Mark deletable.
10414 2011-04-03 Alan Modra <amodra@gmail.com>
10416 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10418 2011-04-03 Michael Matz <matz@suse.de>
10420 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10422 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10424 2011-04-03 Michael Matz <matz@suse.de>
10426 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10427 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10428 without function context.
10429 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10430 current_function_decl and cfun.
10432 2011-04-03 Michael Matz <matz@suse.de>
10434 * tree.c (decl_init_priority_insert): Don't create entry for
10436 (decl_fini_priority_insert): Ditto.
10437 (fields_compatible_p, find_compatible_field): Remove.
10438 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10439 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10441 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10443 * combine.c (try_combine): Remove useless local variable.
10445 2011-04-03 Richard Guenther <rguenther@suse.de>
10446 Ira Rosen <ira.rosen@linaro.org>
10448 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10449 non-variable offsets and compare the remaining bases of the two
10450 accesses instead of looking for exact same data-ref.
10452 2011-04-02 Kai Tietz <ktietz@redhat.com>
10455 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10457 * i386.c (ix86_is_msabi_thiscall): New helper function.
10458 (ix86_is_type_thiscall): New helper function.
10459 (ix86_comp_type_attributes): Handle thiscall for method-functions
10461 (init_cumulative_args): Likewise.
10462 (find_drap_reg): Likewise.
10463 (ix86_static_chain): Likewise.
10464 (x86_this_parameter): Likewise.
10465 (x86_output_mi_thunk): Likewise.
10467 2011-04-01 Olivier Hainque <hainque@adacore.com>
10468 Nicolas Setton <setton@adacore.com>
10469 Eric Botcazou <ebotcazou@adacore.com>
10471 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10472 (add_gnat_descriptive_type_attribute): New function.
10473 (gen_array_type_die): Call it.
10474 (gen_enumeration_type_die): Likewise.
10475 (gen_struct_or_union_type_die): Likewise.
10476 (modified_type_die): Likewise.
10477 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10478 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10479 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10481 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10484 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10485 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10488 2011-03-17 Richard Guenther <rguenther@suse.de>
10491 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10492 origin for decls in other ltrans units.
10493 (input_varpool_node): Likewise.
10495 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10497 PR middle-end/48335
10498 * expr.c (expand_assignment): Handle all possibilities
10499 if TO_RTX is CONCAT.
10500 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10501 (store_split_bit_field): If SUBREG_REG (op0) or
10502 op0 itself has smaller mode than word, return it
10503 for offset 0 and const0_rtx for out-of-bounds stores.
10504 If word is const0_rtx, skip it.
10506 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10508 * config/h8300/h8300.c (print_operand_address): Rename to...
10509 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10510 Call h8300_print_operand and h8300_print_operand_address instead of
10511 print_operand and print_operand_address. Declare.
10512 (print_operand): Renake to...
10513 (h8300_print_operand): ...this. Make static. Adjust comments.
10514 Call h8300_print_operand instead of print_operand. Declare.
10515 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10516 (h8300_register_move_cost): Likewise.
10517 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10518 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10519 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10520 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10521 * config/h8300/h8300-protos.h (print_operand): Delete.
10522 (print_operand_address): Delete.
10524 2011-04-01 Richard Henderson <rth@redhat.com>
10527 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10528 in strict mode before dwarf4. Re-order tests to early out
10529 before switching sections.
10531 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10533 * config/h8300/constraints.md: New file.
10534 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10535 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10536 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10537 * config/h8300/predicates.md (bit_operand): Likewise.
10538 (incdec_operand): Use satisfies_constraint_M and
10539 satisfies_constraint_O. Don't use C code block.
10540 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10541 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10542 (compute_mov_length): Use satisfies_constraint_G.
10543 (fix_bit_operand): Use satisfies_constraint_U.
10544 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10545 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10546 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10547 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10548 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10549 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10550 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10551 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10552 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10553 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10554 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10555 (EXTRA_MEMORY_CONSTRAINT): Delete.
10557 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10558 Michael Meissner <meissner@linux.vnet.ibm.com>
10561 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10562 operands, as per the specifications.
10564 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10565 (vec_extract_evenv4sf): Ditto.
10566 (vec_extract_evenv8hi): Ditto.
10567 (vec_extract_evenv16qi): Ditto.
10568 (vec_extract_oddv4si): Ditto.
10570 2011-03-31 Mark Wielaard <mjw@redhat.com>
10572 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10573 high_pc attribute if the CU has no associated code. Only output
10574 DW_AT_entry_pc for CU if not generating strict dwarf and
10577 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10579 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10580 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10582 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10583 * final.c (final_start_function): Call the new function rather
10584 than using a NULL argument for dwarf2out_frame_debug.
10586 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10587 that contains the prologue.
10589 * haifa-sched.c (queue_insn): New arg REASON. All callers
10590 changed. Print it in debugging output.
10592 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10594 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10595 Split most of the code into...
10596 (begin_move_insn): ... here. New function.
10597 (ebb_sched_info): Add a pointer to it.
10598 * haifa-sched.c (scheduled_insns): New static variable.
10599 (sched_extend_ready_list): Allocate it.
10600 (schedule_block): Use it to record the order of scheduled insns.
10601 Perform RTL changes to move insns only after all scheduling
10602 decisions have been made.
10603 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10604 begin_move_insn field.
10605 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10606 * sched-int.h (struct haifa_sched_info): Remove second argument
10607 from begin_schedule_ready hook. Add new member begin_move_insn.
10608 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10609 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10611 * haifa-sched.c (prune_ready_list): New function, broken out of
10613 (schedule_block): Use it.
10615 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10617 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10619 2011-04-01 Kai Tietz <ktietz@redhat.com>
10621 * config.gcc (*-*-mingw*): Allow as option the
10622 posix threading model.
10623 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10624 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10626 (CPP_SPEC): Add pthread/no-pthread handling.
10627 (LIB_SPEC): Likewise.
10628 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10629 (LIB_SPEC): Likewise.
10630 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10631 flag to pass -pthread option for shared libgcc build.
10632 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10633 for shared libgcc build.
10634 * config/i386/t-mingw-pthread: New file.
10635 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10636 New define to enable use of library pthread by default.
10637 * config/i386/mingw.opt (pthread): New driver option.
10638 (no-pthread): New driver option.
10639 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10640 * config/i386/mingw-w64.opt: Likewise.
10642 2011-04-01 Gary Funck <gary@intrepid.com>
10644 * c-decl.c (grokdeclarator): Fix formatting.
10646 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10648 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10649 instead of n_operands.
10650 (set_storage_via_setmem): Likewise.
10651 * optabs.c (maybe_gen_insn): Likewise.
10652 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10653 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10654 (mips_expand_builtin_direct): Likewise.
10655 * config/spu/spu.c (expand_builtin_args): Likewise.
10657 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10659 * recog.h (insn_data_d): Add n_generator_args.
10660 * genoutput.c (data): Likewise.
10661 (output_insn_data): Print it.
10662 (max_opno, num_dups): Delete.
10663 (scan_operands): Just fill in "d->operand[...]".
10664 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10666 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10668 * gensupport.h (pattern_stats): New structure.
10669 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10670 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10671 (max_operand_1, max_operand_vec): Delete.
10672 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10674 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10676 * emit-rtl.c (emit_pattern_after_setloc): New function.
10677 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10678 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10679 (emit_pattern_after): New function.
10680 (emit_insn_after, emit_jump_insn_after): Call it.
10681 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10682 (emit_pattern_before_setloc): New function.
10683 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10684 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10686 (emit_pattern_before): New function.
10687 (emit_insn_before, emit_jump_insn_before): Call it.
10688 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10690 2011-03-31 Richard Henderson <rth@redhat.com>
10692 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10693 (dw_separate_line_info_entry): Remove.
10694 (enum dw_line_info_opcode): New.
10695 (dw_line_info_entry): Use it.
10696 (dw_line_info_table, dw_line_info_table_p): New.
10697 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10698 (line_info_table, line_info_label_num): Remove.
10699 (line_info_table_in_use): Remove.
10700 (separate_line_info_table): Remove.
10701 (separate_line_info_table_allocated): Remove.
10702 (separate_line_info_table_in_use): Remove.
10703 (LINE_INFO_TABLE_INCREMENT): Remove.
10704 (line_info_label_num): New.
10705 (cur_line_info_table): New.
10706 (text_section_line_info, cold_text_section_line_info): New.
10707 (separate_line_info): New.
10708 (SEPARATE_LINE_CODE_LABEL): Remove.
10709 (print_dwarf_line_table): Remove.
10710 (debug_dwarf): Don't dump it.
10711 (output_one_line_info_table): New.
10712 (output_line_info): Use it.
10713 (new_line_info_table): New.
10714 (set_cur_line_info_table): New.
10715 (dwarf2out_switch_text_section): Use it.
10716 (dwarf2out_begin_function): Likewise.
10717 (push_dw_line_info_entry): New.
10718 (dwarf2out_source_line): Rewrite for new line info tables.
10719 (dwarf2out_init): Remove dead initailizations.
10721 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10723 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10725 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10726 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10727 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10728 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10729 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10730 * opt-functions.awk (flag_init, switch_bit_fields): New.
10731 (switch_flags): Don't handle flags moved to bit-fields. Don't
10732 generate CL_MISSING_OK or CL_SAVE.
10733 * optc-gen.awk: Update to generate bit-field output as well as
10735 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10736 bit-field instead of CL_REJECT_DRIVER flag.
10737 * opts-common.c (generate_canonical_option,
10738 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10739 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10740 instead of CL_REJECT_NEGATIVE flag.
10741 * toplev.c (print_switch_values): Use cl_report bit-field instead
10744 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10746 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10747 a zero minimum index only if it is redundant.
10749 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10751 PR rtl-optimization/48381
10752 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10753 instead of ira_class_hard_reg_index for calculating conflicting
10756 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10758 * cprop.c: Clean up hash table building.
10759 (reg_avail_info): Remove.
10760 (oprs_available_p): Remove.
10761 (record_last_reg_set_info): Remove.
10762 (record_last_set_info): Remove.
10763 (reg_available_p): New function.
10764 (gcse_constant_p): Do not treat unfolded conditions as constants.
10765 (make_set_regs_unavailable): New function.
10766 (hash_scan_set): Simplify with new reg_available_p.
10767 (compute_hash_table_work): Traverse insns stream only once.
10768 Do not compute reg_avail_info. Traverse insns in reverse order.
10769 Record implicit sets after recording explicit sets from the block.
10771 2011-03-31 Michael Matz <matz@suse.de>
10773 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10775 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10777 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10778 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10779 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10780 (h8300_mode_dependent_address_p): New function.
10781 (h8300_get_index): Make static.
10783 2011-03-31 Jeff Law <law@redhat.com>
10785 * reload1.c (elimination_effects): Fix typo in recent change.
10787 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10788 typo potentially leading to null pointer dereference.
10790 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10791 (setup_save_areas): Corresponding changes to avoid useless
10794 * jump.c (reversed_comparison_code_parts): Avoid successive return
10795 statements when REVERSE_CONDITION is defined.
10797 * expr.c (expand_assignment): Avoid useless assignments.
10798 (expand_expr_real_1): Likewise.
10799 (expand_expr_real_2): Avoid useless statements.
10801 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10803 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10805 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10808 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10810 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10813 * doc/tm.texi.in (TARGET_VERSION): Remove.
10814 * doc/tm.texi: Regenerate.
10815 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10816 * collect2.c (main): Don't use TARGET_VERSION.
10817 * mips-tdump.c (main): Don't use TARGET_VERSION.
10818 * mips-tfile.c (main): Don't use TARGET_VERSION.
10819 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10820 * config/rs6000/vxworksae.h: Remove.
10821 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10822 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10823 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10824 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10825 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10826 * config/arm/arm.h (TARGET_VERSION): Remove.
10827 * config/arm/coff.h (TARGET_VERSION): Remove.
10828 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10829 * config/arm/elf.h (TARGET_VERSION): Remove.
10830 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10831 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10832 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10833 * config/arm/pe.h (TARGET_VERSION): Remove.
10834 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10835 * config/arm/semi.h (TARGET_VERSION): Remove.
10836 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10837 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10838 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10839 * config/avr/avr.h (TARGET_VERSION): Remove.
10840 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10841 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10842 * config/frv/frv.h (TARGET_VERSION): Remove.
10843 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10844 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10845 * config/i386/darwin.h (TARGET_VERSION): Remove.
10846 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10847 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10848 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10849 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10850 * config/i386/gnu.h (TARGET_VERSION): Remove.
10851 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10852 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10853 * config/i386/linux.h (TARGET_VERSION): Remove.
10854 * config/i386/linux64.h (TARGET_VERSION): Remove.
10855 * config/i386/lynx.h (TARGET_VERSION): Remove.
10856 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10857 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10858 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10859 * config/i386/netware.h (TARGET_VERSION): Remove.
10860 * config/i386/nto.h (TARGET_VERSION): Remove.
10861 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10862 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10863 * config/ia64/elf.h (TARGET_VERSION): Remove.
10864 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10865 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10866 * config/ia64/linux.h (TARGET_VERSION): Remove.
10867 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10868 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10869 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10870 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10871 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10872 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10873 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10874 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10875 * config/m68k/linux.h (TARGET_VERSION): Remove.
10876 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10877 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10878 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10879 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10880 * config/mep/mep.h (TARGET_VERSION): Remove.
10881 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10882 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10883 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10884 * config/mips/linux.h (TARGET_VERSION): Remove.
10885 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10886 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10887 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10888 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10889 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10890 * config/pa/pa.h (TARGET_VERSION): Remove.
10891 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10892 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10893 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10894 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10895 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10896 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10897 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10898 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10899 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10900 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10901 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10902 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10903 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10904 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10905 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10906 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10907 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10908 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10909 * config/s390/linux.h (TARGET_VERSION): Remove.
10910 * config/s390/s390.h (TARGET_VERSION): Remove.
10911 * config/s390/tpf.h (TARGET_VERSION): Remove.
10912 * config/score/score.h (TARGET_VERSION): Remove.
10913 * config/sh/linux.h (TARGET_VERSION): Remove.
10914 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10915 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10916 * config/sh/sh.h (TARGET_VERSION): Remove.
10917 * config/sh/sh64.h (TARGET_VERSION): Remove.
10918 * config/sh/superh.h (TARGET_VERSION): Remove.
10919 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10920 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10921 * config/sparc/linux.h (TARGET_VERSION): Remove.
10922 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10923 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10924 TARGET_NAME32, TARGET_NAME): Remove.
10925 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10926 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10927 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10928 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10929 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10930 * config/spu/spu.h (TARGET_VERSION): Remove.
10931 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10932 * config/v850/v850.h (TARGET_VERSION): Remove.
10933 * config/vax/linux.h (TARGET_VERSION): Remove.
10934 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10935 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10936 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10938 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10941 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10942 frame-related from frame-unrelated adjustments to the stack pointer.
10944 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10946 * common.opt (fdebug-types-section): Move earlier.
10947 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10949 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10951 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10954 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10956 * tree.h (CASE_CHAIN): Define.
10957 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10958 (gimple_redirect_edge_and_branch): Likewise.
10960 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10962 PR middle-end/48367
10963 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10966 2011-03-30 Jeff Law <law@redhat.com>
10968 * PR bootstrap/48371
10969 * reload1.c (reload): Fix botch in last change.
10971 * reload.h (struct reload): Fix typo introduced in last change.
10973 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10975 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10976 Undocumented. Remove help text.
10977 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10980 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10982 * doc/options.texi (NegativeAlias): Document.
10983 (Alias): Mention NegativeAlias.
10984 * opt-functions.awk: Handle NegativeAlias.
10985 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10986 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10987 * opts.h (CL_NEGATIVE_ALIAS): Define.
10988 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10989 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10991 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10993 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10994 mno-spe and mno-isel instead of mspe=no and -misel=no.
10996 2011-03-29 Mark Wielaard <mjw@redhat.com>
10998 * common.opt (fdebug-types-section): New flag.
10999 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11000 * dwarf2out.c (use_debug_types): New define.
11001 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11002 (print_die): Guard output of type unit signatures using
11004 (build_abbrev_table): Replace assert of dwarf_version >= 4
11005 with assert on use_debug_types.
11006 (size_of_die): Likewise.
11007 (unmark_dies): Likewise.
11008 (value_format): Decide AT_ref_external form on use_debug_types.
11009 (output_die): Replace dwarf_version version check guard with
11010 use_debug_types where appropriate.
11011 (modified_type_die): Likewise.
11012 (gen_reference_type_die): Likewise.
11013 (dwarf2out_start_source_file): Likewise.
11014 (dwarf2out_end_source_file): Likewise.
11015 (prune_unused_types_walk_attribs): Likewise.
11016 (dwarf2out_finish): Likewise.
11018 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11020 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11022 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11024 PR rtl-optimization/48332
11025 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11026 mode of input operand N and modeN to its actual mode.
11028 2011-03-30 Jeff Law <law@redhat.com>
11030 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11031 define accessor macro.
11032 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11033 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11034 (reg_equiv_init): Likewise.
11035 (reg_equivs_size): New variable.
11036 (reg_equiv_init_size): Remove.
11037 (allocate_initial_values): Move prototype to here from....
11038 * integrate.h (allocate_initial_values): Remove prototype.
11039 * integrate.c: Include reload.h.
11040 (allocate_initial_values): Corresponding changes.
11041 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11042 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11043 (update_equiv_regs): Corresponding changes.
11044 (ira): Corresponding changes.
11045 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11046 (push_secondary_reload): Corresponding changes.
11047 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11048 (make_memloc, find_reloads_address): Corresponding changes.
11049 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11050 (find_reloads_address_1): Corresponding changes.
11051 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11052 (refers_to_regno_for_reload_p): Corresponding changes.
11053 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11054 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11055 * reload1.c: Include ggc.h.
11056 (grow_reg_equivs): New function.
11057 (replace_pseudos_in, reload): Corresponding changes.
11058 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11059 (eliminate_regs_1, elimination_effects): Corresponding changes.
11060 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11061 (delete_output_reload): Likewise.
11062 * caller-save.c (mark_referenced_regs): Corresponding changes.
11063 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11064 * frv/predicates.md (frv_load_operand): Corresponding changes.
11065 * microblaze/microblaze.c (double_memory_operand): Corresponding
11067 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11068 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11069 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11070 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11071 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11073 * pa/pa.c (emit_move_sequence): Corresponding changes.
11074 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11076 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11079 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11080 structure modes. Don't check neon_vector_mem_operand for
11081 vector or structure modes.
11083 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11084 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11087 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11088 operand 1 and reshuffle the operands to match.
11089 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11091 2011-03-30 Christian Schüler <cschueler@gmx.de>
11094 * config/c.opt (F): Added 'Driver' to -F option.
11097 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11099 * config/darwin.opt: Added '-arch' option.
11101 2011-03-30 Nick Clifton <nickc@redhat.com>
11103 * config/rx/rx.md: Add peepholes and patterns to combine
11104 extending loads and simple arithmetic instructions.
11105 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11106 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11107 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11108 modes to use pre-decrement and post-increment addressing.
11109 (rx_is_restricted_memory_address): Add range checking of REG+INT
11111 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11112 (rx_memory_move_cost): Adjust cost of stores.
11113 (rx_adjust_insn_length): New function.
11115 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11118 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11119 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11120 matching arg00/arg01 types.
11122 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11124 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11125 last_location to UNKNOWN_LOCATION.
11127 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11130 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11133 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11134 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11137 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11138 Init(PROCESSOR_V7).
11139 (sparc_cpu): Likewise.
11140 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11143 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11146 PR middle-end/48342
11147 PR rtl-optimization/48345
11148 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11149 hard regs for given mode from profitable regs when doing secondary
11152 2011-03-29 Jeff Law <law@redhat.com>
11155 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11156 do_not_duplicate field.
11157 (lookup_redirection_data): Corresponding changes.
11158 (create_duplicates): Always create a template block.
11159 (redirect_edges): Remove code which reused the original block
11160 when it was going to become unreachable code.
11161 (thread_block): Don't set do_not_duplicate field.
11163 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11165 * lto-opts.c (register_user_option_p, lto_register_user_option):
11166 Make type argument unsigned.
11167 * lto-streamer.h (lto_register_user_option): Make type argument
11169 * opth-gen.awk: Make CL_* macros unsigned.
11170 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11171 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11172 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11173 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11174 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11175 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11176 (find_opt): Make lang_mask argument unsigned.
11178 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11180 PR rtl-optimization/48331
11181 PR rtl-optimization/48334
11182 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11183 for any used algorithm.
11185 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11187 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11190 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11192 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11193 (alpha_option_override): Don't set alpha_sr_alias_set.
11194 (emit_frame_store_1): Use gen_frame_mem rather than calling
11196 (alpha_expand_epilogue): Ditto.
11198 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11200 PR tree-optimization/48290
11201 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11202 vectorization, check that relevant phis in the basic block after
11203 the inner loop are really inner loop's exit phis.
11205 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11208 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11209 (cached_dw_loc_list_def): New structure.
11210 (cached_dw_loc_list): New typedef.
11211 (cached_dw_loc_list_table): New variable.
11212 (cached_dw_loc_list_table_hash): New function.
11213 (cached_dw_loc_list_table_eq): Likewise.
11214 (add_location_or_const_value_attribute): Take a bool cache_p.
11215 Cache the list when the parameter is true.
11216 (gen_formal_parameter_die): Update caller.
11217 (gen_variable_die): Likewise.
11218 (dwarf2out_finish): Likewise.
11219 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11220 while generating debug info for the decl.
11221 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11222 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11223 (resolve_addr): Cache the result of resolving a chain of
11226 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11228 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11229 conflict object hard regset nodes have intersecting hard reg sets.
11231 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11232 after regstat_init_n_sets_and_refs.
11234 * ira.c: Add more comments at the top.
11235 (setup_stack_reg_pressure_class, setup_pressure_classes):
11236 Add comments how we compute the register pressure classes.
11237 (setup_allocno_and_important_classes): Add more comments.
11238 (setup_class_translate_array, reorder_important_classes)
11239 (setup_reg_class_relations): Add comments.
11241 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11244 * ira-color.c: Add 2011 to the Copyright line.
11245 (assign_hard_reg): Add more comments.
11246 (improve_allocation): Ditto.
11248 * ira-costs.c: Add 2011 to the Copyright line.
11249 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11251 (setup_regno_cost_classes_by_mode): Ditto.
11253 Initial patches from ira-improv branch:
11255 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11257 * ira-build.c (ira_create_object): Remove initialization of
11258 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11259 (ira_create_allocno): Remove initialization of
11260 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11261 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11262 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11263 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11264 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11265 Initialize ALLOCNO_ADD_DATA.
11266 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11267 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11269 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11270 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11272 * ira.c (ira_reallocate): Remove.
11273 (setup_pressure_classes): Call
11274 ira_init_register_move_cost_if_necessary. Use
11275 ira_register_move_cost instead of ira_get_register_move_cost.
11276 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11277 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11279 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11280 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11281 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11282 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11283 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11284 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11286 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11287 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11288 (struct allocno_color_data): New.
11289 (allocno_color_data_t): New typedef.
11290 (allocno_color_data): New definition.
11291 (ALLOCNO_COLOR_DATA): New macro.
11292 (struct object_color_data): New.
11293 (object_color_data_t): New typedef.
11294 (object_color_data): New definition.
11295 (OBJECT_COLOR_DATA): New macro.
11296 (update_copy_costs, calculate_allocno_spill_cost): Call
11297 ira_init_register_move_cost_if_necessary. Use
11298 ira_register_move_cost instead of ira_get_register_move_cost.
11299 (move_spill_restore, update_curr_costs): Ditto.
11300 (allocno_spill_priority): Make it inline.
11301 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11302 (struct coalesce_data, coalesce_data_t): New.
11303 (allocno_coalesce_data): New definition.
11304 (ALLOCNO_COALESCE_DATA): New macro.
11305 (merge_allocnos, coalesced_allocno_conflict_p): Use
11306 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11307 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11308 (coalesce_allocnos): Ditto.
11309 (setup_coalesced_allocno_costs_and_nums): Ditto.
11310 (collect_spilled_coalesced_allocnos): Ditto.
11311 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11312 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11313 (coalesce_spill_slots): Ditto.
11314 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11315 free allocno_coalesce_data.
11317 * ira-conflicts.c: Fix formatting.
11318 (process_regs_for_copy): Call
11319 ira_init_register_move_cost_if_necessary. Use
11320 ira_register_move_cost instead of ira_get_register_move_cost.
11321 (build_object_conflicts): Optimize.
11323 * ira-costs.c (record_reg_classes): Optimize. Call
11324 ira_init_register_move_cost_if_necessary. Use
11325 ira_register_move_cost, ira_may_move_in_cost, and
11326 ira_may_move_out_cost instead of ira_get_register_move_cost and
11327 ira_get_may_move_cost.
11328 (record_address_regs): Ditto.
11329 (scan_one_insn): Optimize.
11330 (find_costs_and_classes): Optimize.
11331 (process_bb_node_for_hard_reg_moves): Call
11332 ira_init_register_move_cost_if_necessary. Use
11333 ira_register_move_cost instead of ira_get_register_move_cost.
11335 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11336 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11337 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11338 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11340 (ira_initiate_emit_data, ira_finish_emit_data)
11341 (create_new_allocno): New functions.
11342 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11343 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11344 Use ira_register_move_cost instead of ira_get_register_move_cost.
11346 * ira-int.h: Fix some comments.
11347 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11348 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11349 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11350 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11352 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11353 bitfield after mode. Make hard_regno a short int. Make
11354 hard_regno short. Remove first_coalesced_allocno and
11355 next_coalesced_allocno. Move mem_optimized_dest_p,
11356 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11357 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11358 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11359 temp, colorable_p. Add new member add_data.
11360 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11361 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11362 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11363 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11364 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11365 (ALLOCNO_ADD_DATA): New macro.
11366 (ira_emit_data_t): New typedef.
11367 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11368 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11369 from struct ira_allocno.
11370 (ALLOCNO_EMIT_DATA): New macro.
11371 (ira_allocno_emit_data, allocno_emit_reg): New.
11372 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11373 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11374 (OBJECT_ADD_DATA): New macro.
11375 (ira_reallocate): Remove.
11376 (ira_initiate_emit_data, ira_finish_emit_data): New.
11377 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11378 (ira_init_register_move_cost_if_necessary): New.
11379 (ira_object_conflict_iter_next): Merge into
11380 ira_object_conflict_iter_cond.
11381 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11383 * ira-live.c (process_single_reg_class_operands): Call
11384 ira_init_register_move_cost_if_necessary. Use
11385 ira_register_move_cost instead of ira_get_register_move_cost.
11387 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11389 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11391 * ira-costs.c: Fix formatting.
11392 (cost_classes, cost_classes_num): Remove.
11393 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11394 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11395 (cost_classes_del, cost_classes_htab): New.
11396 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11397 (initiate_regno_cost_classes, setup_cost_classes): New.
11398 (setup_regno_cost_classes_by_aclass): New.
11399 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11400 (record_reg_classes): Use regno_cost_classes instead of
11401 cost_classes. Move checking opposite operand up.
11402 (record_address_regs): Use regno_cost_classes
11403 instead of cost_classes.
11404 (scan_one_insn): Ditto. Use always general register.
11405 (print_allocno_costs): Use regno_cost_classes instead of
11407 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11408 (find_costs_and_classes): Set up cost classes for each registers.
11409 Use also their mode for this. Use regno_cost_classes instead of
11411 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11413 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11414 (ira_costs, ira_set_pseudo_classes): Call
11415 initiate_regno_cost_classes and finish_regno_cost_classes.
11417 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11419 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11421 * target.def (ira_cover_classes): Remove.
11423 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11425 * doc/tm.texi.in: Ditto.
11427 * ira-conflicts.c: Remove mentioning cover classes from the file.
11428 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11429 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11431 * targhooks.c (default_ira_cover_classes): Remove.
11433 * targhooks.h (default_ira_cover_classes): Ditto.
11435 * haifa-sched.c: Remove mentioning cover classes from the file.
11436 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11437 ira_pressure_classes and ira_pressure_classes_num instead of
11438 ira_reg_class_cover_size and ira_reg_class_cover. Use
11439 sched_regno_pressure_class instead of sched_regno_cover_class.
11440 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11441 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11443 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11444 classes from the file.
11445 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11446 (struct object_hard_regs, struct object_hard_regs_node): New.
11447 (struct ira_object): New members profitable_hard_regs,
11448 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11449 (struct ira_allocno): Rename cover_class to aclass. Rename
11450 cover_class_cost and updated_cover_class_cost to class_cost and
11451 updated_class_cost. Remove splay_removed_p and
11452 left_conflict_size. Add new members colorable_p.
11453 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11454 (ALLOCNO_COLORABLE_P): New macro.
11455 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11456 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11457 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11458 (OBJECT_...): Rename parameter C to O.
11459 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11460 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11461 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11462 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11463 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11464 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11465 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11466 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11467 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11468 x_ira_reg_class_subunion.
11469 (ira_max_memory_move_cost, ira_max_register_move_cost)
11470 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11471 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11472 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11473 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11474 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11475 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11476 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11477 (ira_tune_allocno_costs_and_cover_classes): Rename to
11478 ira_tune_allocno_costs.
11479 (ira_debug_hard_regs_forest): New.
11480 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11481 (ira_object_conflict_iter_next): Fix comments.
11482 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11483 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11484 cover_class to aclass.
11485 (ira_allocate_and_accumulate_costs): Ditto.
11486 (ira_allocate_and_set_or_copy_costs): Ditto.
11488 * opts.c (decode_options): Remove ira_cover_class check.
11490 * ira-color.c: Remove mentioning cover classes from the file. Use
11491 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11492 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11493 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11494 (splay-tree.h): Remove include.
11495 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11496 before copy_freq_compare_func.
11497 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11498 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11500 (hard_regs_roots, hard_regs_node_vec): Ditto.
11501 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11502 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11503 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11504 (create_new_object_hard_regs_node): Ditto.
11505 (add_new_object_hard_regs_node_to_forest): Ditto.
11506 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11507 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11509 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11510 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11511 (remove_unused_object_hard_regs_nodes): Ditto.
11512 (enumerate_object_hard_regs_nodes): Ditto.
11513 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11514 (object_hard_regs_subnode_t): Ditto.
11515 (struct object_hard_regs_subnode): Ditto.
11516 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11517 (setup_object_hard_regs_subnode_index): Ditto.
11518 (get_object_hard_regs_subnodes_num): Ditto.
11519 (form_object_hard_regs_nodes_forest): Ditto.
11520 (finish_object_hard_regs_nodes_tree): Ditto.
11521 (finish_object_hard_regs_nodes_forest): Ditto.
11522 (allocnos_have_intersected_live_ranges_p): Rename to
11523 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11524 (pseudos_have_intersected_live_ranges_p): Rename to
11525 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11526 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11527 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11528 (update_copy_costs): Remove assert. Skip cost update if the hard
11529 reg does not belong the class.
11530 (assign_hard_reg): Process only profitable hard regs.
11531 (uncolorable_allocnos_num): Make it scalar.
11532 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11533 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11534 and ira_reg_class_max_nregs.
11535 (bucket_allocno_compare_func): Check frequency first.
11536 (sort_bucket): Add compare function as a parameter.
11537 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11538 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11539 (push_allocno_to_stack): Rewrite for checking new allocno
11541 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11542 (push_only_colorable): Pass new parameter to sort_bucket.
11543 (push_allocno_to_spill): Remove.
11544 (allocno_spill_priority_compare): Make it inline and rewrite.
11545 (splay_tree_allocate, splay_tree_free): Remove.
11546 (allocno_spill_sort_compare): New function.
11547 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11548 build and use splay tree. Choose first allocno in uncolorable
11549 allocno bucket to spill. Remove setting spill cost.
11550 (all_conflicting_hard_regs): Remove.
11551 (setup_allocno_available_regs_num): Check only profitable hard
11552 regs. Print info about hard regs nodes.
11553 (setup_allocno_left_conflicts_size): Remove.
11554 (put_allocno_into_bucket): Don't call
11555 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11556 (improve_allocation): New.
11557 (color_allocnos): Call setup_profitable_hard_regs,
11558 form_object_hard_regs_nodes_forest, improve_allocation,
11559 finish_object_hard_regs_nodes_forest. Setup spill cost.
11560 (print_loop_title): Use pressure classes.
11561 (color_allocnso): Ditto.
11562 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11563 and allocnos_for_spilling.
11564 (ira_sort_regnos_for_alter_reg): Don't setup members
11565 {first,next}_coalesced_allocno.
11566 (color): Remove allocating and freeing removed_splay_allocno_vec.
11567 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11568 prohibited_class_mode_regs.
11570 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11572 (update_allocno_pressure_excess_length): Use pressure classes.
11573 (inc_register_pressure, dec_register_pressure): Check for pressure
11575 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11576 pressure class. Use ira_reg_class_nregs instead of
11577 ira_reg_class_max_nregs.
11578 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11579 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11580 (single_reg_class): Use ira_reg_class_nregs instead of
11581 ira_reg_class_max_nregs.
11582 (process_bb_node_lives): Use pressure classes.
11584 * ira-emit.c: Remove mentioning cover classes from the file. Use
11585 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11586 (change_loop): Use pressure classes.
11587 (modify_move_list): Call ira_set_allocno_class instead of
11588 ira_set_allocno_cover_class.
11590 * ira-build.c: Remove mentioning cover classes from the file. Use
11591 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11592 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11593 ALLOCNO_UPDATED_CLASS_COST instead of
11594 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11595 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11596 (ira_create_allocno): Remove initialization of
11597 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11598 ALLOCNO_COLORABLE_P.
11599 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11600 Update conflict regs for the objects.
11601 (create_cap_allocno): Remove assert. Don't propagate
11602 ALLOCNO_AVAILABLE_REGS_NUM.
11603 (ira_free_allocno_costs): New function.
11604 (finish_allocno): Change a part of code into call of
11605 ira_free_allocno_costs.
11606 (low_pressure_loop_node_p): Use pressure classes.
11607 (object_range_compare_func): Don't compare classes.
11608 (setup_min_max_conflict_allocno_ids): Ditto.
11610 * loop-invariant.c: Remove mentioning cover classes from the file.
11611 Use ira_pressure_classes and ira_pressure_classes_num instead of
11612 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11613 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11614 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11615 Use reg_allocno_class instead of reg_cover_class.
11616 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11617 STACK_REG_COVER_CLASS.
11618 (get_regno_cover_class): Rename to get_regno_pressure_class.
11619 (move_loop_invariants): Initialize and finalize regstat.
11621 * ira.c: Remove mentioning cover classes from the file. Add
11622 comments about coloring without cover classes. Use ALLOCNO_CLASS
11623 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11624 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11625 setup_class_subset_and_memory_move_costs.
11626 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11627 (setup_cover_and_important_classes): Rename to
11628 setup_allocno_and_important_classes.
11629 (setup_class_translate_array): New.
11630 (setup_class_translate): Call it for allocno and pressure classes.
11631 (cover_class_order): Rename to allocno_class_order.
11632 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11633 of ira_class_translate.
11634 (reorder_important_classes): Set up ira_important_class_nums.
11635 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11636 (print_class_cover): Rename to print_classes. Add parameter.
11637 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11638 Print pressure classes too.
11639 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11640 setup_reg_subclasses.
11641 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11642 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11643 (setup_prohibited_class_mode_regs): Use
11644 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11645 (clarify_prohibited_class_mode_regs): New function.
11646 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11647 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11648 (ira_init_once): Initialize them.
11649 (free_register_move_costs): Process them.
11650 (ira_init): Move calls of find_reg_classes and
11651 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11652 Call clarify_prohibited_class_mode_regs.
11653 (ira_no_alloc_reg): Remove.
11654 (too_high_register_pressure_p): Use pressure classes.
11656 * sched-deps.c: Remove mentioning cover classes from the file.
11657 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11658 ira_pressure_classes and ira_pressure_classes_num instead of
11659 ira_reg_class_cover_size and ira_reg_class_cover.
11660 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11661 sched_regno_pressure_class instead of sched_regno_cover_class.
11662 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11663 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11665 * ira.h: Add 2010 to Copyright.
11666 (ira_no_alloc_reg): Remove external.
11667 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11668 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11669 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11670 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11671 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11672 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11673 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11674 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11675 x_ira_no_alloc_regs.
11676 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11677 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11678 ira_allocno_classes_num and ira_allocno_classes.
11679 (ira_class_translate): Rename to ira_allocno_class_translate.
11680 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11681 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11682 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11683 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11684 (ira_no_alloc_regs): New.
11686 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11687 classes from the file. Use ALLOCNO_CLASS instead of
11688 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11689 ALLOCNO_COVER_CLASS_COST.
11690 (regno_cover_class): Rename to regno_aclass.
11691 (record_reg_classes): Use ira_reg_class_subunion instead of
11692 ira_reg_class_union.
11693 (record_address_regs): Check overflow.
11694 (scan_one_insn): Ditto.
11695 (print_allocno_costs): Print total mem cost fore regional allocation.
11696 (print_pseudo_costs): Use REG_N_REFS.
11697 (find_costs_and_classes): Use classes intersected with them on the
11698 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11699 ira_reg_class_union. Use ira_allocno_class_translate and
11700 regno_aclass instead of ira_class_translate and regno_cover_class.
11701 Modify code for finding regno_aclass. Setup preferred classes for
11703 (setup_allocno_cover_class_and_costs): Rename to
11704 setup_allocno_class_and_costs. Use regno_aclass instead of
11705 regno_cover_class. Use ira_set_allocno_class instead of
11706 ira_set_allocno_cover_class.
11707 (init_costs, finish_costs): Use regno_aclass instead of
11709 (ira_costs): Use setup_allocno_class_and_costs instead of
11710 setup_allocno_cover_class_and_costs.
11711 (ira_tune_allocno_costs_and_cover_classes): Rename to
11712 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11713 by processing objects. Use ira_reg_class_max_nregs instead of
11714 ira_reg_class_nregs.
11716 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11718 * sched-int.h: Remove mentioning cover classes from the file.
11719 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11721 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11722 classes from the file.
11723 (struct reg_pref): Rename coverclass into allocnoclass.
11724 (reg_cover_class): Rename to reg_allocno_class.
11726 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11728 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11730 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11732 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11734 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11736 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11738 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11740 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11742 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11744 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11746 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11747 (i386_ira_cover_classes): Ditto.
11749 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11751 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11753 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11755 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11757 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11759 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11761 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11762 (mips_ira_cover_classes): Ditto.
11764 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11766 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11768 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11770 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11772 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11774 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11775 (IRA_COVER_CLASSES_VSX): Ditto.
11777 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11778 (rs6000_ira_cover_classes): Ditto.
11780 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11782 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11784 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11786 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11788 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11790 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11792 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11794 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11796 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11798 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11800 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11803 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11804 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11805 dw_fde_unlikely_section_end_label, cold_in_std_section,
11806 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11807 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11809 (output_fde): Use dw_fde_second_{begin,end} if second is
11810 true, otherwise dw_fde_{begin,end}.
11811 (output_call_frame_info): Test dw_fde_second_begin != NULL
11812 instead of dw_fde_switched_sections.
11813 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11814 fields, initialize new fields. Initialize in_std_section
11815 unconditionally from the first partition.
11816 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11817 dw_fde_second_begin is non-NULL.
11818 (dwarf2out_switch_text_section): Stop initializing removed
11819 dw_fde_struct fields, initialize new fields, initialize
11820 also dw_fde_end here. Set dw_fde_switch_cfi even when
11821 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11822 (struct var_loc_list_def): Add last_before_switch field.
11823 (arange_table, arange_table_allocated, arange_table_in_use,
11824 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11825 (size_of_aranges): Count !in_std_section and !second_in_std_section
11826 hunks in fdes, instead of looking at arange_table_in_use.
11827 (output_aranges): Add aranges_length argument, don't call
11828 size_of_aranges here. Instead of using aranges_table*
11829 emit ranges for fdes when !in_std_section resp.
11830 !second_in_std_section.
11831 (dw_loc_list): Break ranges crossing section switch.
11832 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11833 use dw_fde_second_end instead of dw_fde_end as end of last range.
11834 (gen_subprogram_die): Don't call add_arange. Use
11835 dw_fde_{begin,end} for first partition and if switched
11836 section dw_fde_second_{begin,end} for the second.
11837 (var_location_switch_text_section_1,
11838 var_location_switch_text_section): New functions.
11839 (dwarf2out_begin_function): Initialize cold_text_section even
11840 when function_section () isn't text_section.
11841 (prune_unused_types): Don't walk arange_table.
11842 (dwarf2out_finish): Don't needlessly test
11843 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11844 If info_section_emitted, call size_of_aranges and if it indicates
11845 non-empty .debug_aranges, call output_aranges with the computed
11846 size. Stop using removed dw_fde_struct fields, use
11847 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11851 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11852 create ENTRY_VALUE if incoming or address of incoming's MEM
11854 * dwarf2out.c (mem_loc_descriptor): Don't emit
11855 DW_OP_GNU_entry_value of DW_OP_fbreg.
11856 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11857 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11858 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11859 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11861 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11862 is a REG_P or MEM_P with REG_P address, compute hash directly
11863 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11864 (preserve_only_constants): Don't clear VALUES forwaring
11865 ENTRY_VALUE to some other VALUE.
11867 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11869 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11870 instead of GEN_INT.
11872 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11874 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11875 block before expanding the statement.
11876 (expand_gimple_stmt_1): Likewise. Set them here...
11877 (expand_gimple_stmt): ...and not here. Tidy.
11878 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11881 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11883 * Makefile.in: New rule for cprop.o.
11884 * gcse.c: Move constant/copy propagation to cprop.c.
11885 (compute_local_properties): Only handle expression tables.
11886 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11887 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11888 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11889 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11890 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11891 compute_cprop_data, find_used_regs, try_replace_reg,
11892 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11893 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11894 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11895 find_bypass_set, reg_killed_on_edge, bypass_block,
11896 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11897 execute_rtl_cprop, pass_rtl_cprop): Move to...
11898 * cprop.c: ...here. New file, constant/copy propagation for RTL
11899 moved from gcse.c to here with minor cleanups in duplicated code.
11901 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11903 * config/i386/i386.c (flag_opts): Fix a typo in
11904 -mavx256-split-unaligned-store.
11906 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11908 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11909 LIBCALL_VALUE): Remove macros.
11910 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11911 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11912 (h8300_function_value, h8300_libcall_value,
11913 h8300_function_value_regno_p): New functions.
11915 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11917 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11919 2011-03-28 Jeff Law <law@redhat.com>
11921 * tree-ssa-threadupdate.c (redirect_edges): Call
11922 create_edge_and_update_destination_phis as needed.
11923 (create_edge_and_update_destination_phis): Accept new BB argument.
11924 All callers updated.
11925 (thread_block): Do not update the profile when threading around
11926 intermediate blocks.
11927 (thread_single_edge): Likewise.
11928 (determine_bb_domination_status): If BB is not a successor of the
11929 loop header, return NONDOMINATING.
11930 (register_jump_thread): Note when we register a jump thread around
11931 an intermediate block.
11932 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11933 (thread_across_edge): Use it.
11935 2011-03-28 Tristan Gingold <gingold@adacore.com>
11937 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11938 when for_return is 2.
11940 2011-03-28 Jeff Law <law@redhat.com>
11942 * var-tracking.c (canonicalize_values_mark): Delete unused
11944 (canonicalize_values_star, set_variable_part): Likewise.
11945 (clobber_variable_part, delete_variable_part): Likewise.
11947 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11949 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11951 2011-03-28 Martin Jambor <mjambor@suse.cz>
11953 * tree-inline.c (expand_call_inline): Do not check that destination
11955 (optimize_inline_calls): Assert that destination node is analyzed.
11956 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11957 not call tree_lowering_passes.
11958 * cgraph.h (cgraph_analyze_function): Declare.
11959 * cgraphunit.c (cgraph_analyze_function): Make public.
11961 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11963 * config/sparc/sparc-opts.h: New.
11964 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11965 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11966 (sparc_option_override): Store processor_type enumeration rather
11967 than string in cpu_default. Remove name and enumeration from
11968 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11969 without using sparc_select. Use target_flags_explicit instead of
11971 * config/sparc/sparc.h (enum processor_type): Move to
11973 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11974 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11975 HeaderInclude entry.
11976 (mcpu=, mtune=): Use Var and Enum.
11977 (sparc_processor_type): New Enum and EnumValue entries.
11979 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11980 Iain Sandoe <iains@gcc.gnu.org>
11983 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11985 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11987 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11988 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11989 Insert new statements at it in lieu of STMT.
11990 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11991 * tree-vect-stmts.c (vectorizable_store): Likewise.
11992 (vectorizable_load): Likewise.
11994 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11996 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12001 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12003 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12004 unaligned 256bit load/store.
12005 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12006 (*avx_movdqu<avxmodesuffix>): Likewise.
12008 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12011 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12012 * config/pa/pa.md (iordi3): Use new predicate in expander.
12013 (iorsi3): Likewise.
12015 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12017 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12018 FUNCTION_VALUE_REGNO_P): Remove macros.
12019 * config/mips/mips-protos.h (mips_function_value): Remove.
12020 * config/mips/mips.c (mips_function_value): Rename to...
12021 (mips_function_value_1): ... this. Make static. Handle receiving
12022 the function type in 'fn_decl_or_type' argument.
12023 (mips_function_value, mips_libcall_value,
12024 mips_function_value_regno_p): New function.
12025 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12026 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12028 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12030 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12031 and -mavx256-split-unaligned-store.
12032 (ix86_option_override_internal): Split 32-byte AVX unaligned
12033 load/store by default.
12034 (ix86_avx256_split_vector_move_misalign): New.
12035 (ix86_expand_vector_move_misalign): Use it.
12037 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12038 -mavx256-split-unaligned-store.
12040 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12041 256bit load/store. Generate unaligned store on misaligned memory
12043 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12045 (*avx_movdqu<avxmodesuffix>): Likewise.
12047 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12048 -mavx256-split-unaligned-store.
12050 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12053 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12056 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12058 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12059 opno arguments with an expand_operand. Use create_input_operand.
12060 (mips_prepare_builtin_target): Delete.
12061 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12063 (mips_expand_builtin_direct): Use create_output_operand and
12064 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12065 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12066 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12068 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12070 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12072 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12074 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12076 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12077 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12078 basic blocks and call commit_edge_insertions directly.
12079 (fixup_abnormal_edges): Move from here to...
12080 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12081 on the edges and return whether some have actually been inserted.
12082 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12085 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12087 PR rtl-optimization/48144
12088 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12089 (merge_expr_data): ... here.
12090 (av_set_intersect): Rename to av_set_code_motion_filter.
12091 Update all callers. Call merge_history_vect when an expression
12092 is found in both sets.
12093 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12095 2011-03-26 Alan Modra <amodra@gmail.com>
12097 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12098 cmodel medium addresses.
12099 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12100 64-bit gpr loads and stores.
12101 (rs6000_secondary_reload_ppc64): New function.
12102 * config/rs6000/rs6000-protos.h: Declare it.
12103 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12105 2011-03-26 Alan Modra <amodra@gmail.com>
12108 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12109 GNU Go in traceback table.
12111 2011-03-25 Richard Henderson <rth@redhat.com>
12113 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12114 if there are exactly 6 operands.
12115 (set_storage_via_setmem): Similarly.
12117 2011-03-25 Kai Tietz <ktietz@redhat.com>
12119 * collect2.c (write_c_file_stat): Handle backslash
12120 as right-hand directory separator.
12121 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12122 checking just for slash.
12123 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12124 instead of checking for trailing slash.
12125 * gcc.c (record_temp_file): Use filename_cmp instead
12127 (do_spec_1): Likewise.
12128 (replace_outfile_spec_function): Likewise.
12129 (is_directory): Use filename_ncmp instead of strncmp.
12130 (print_multilib_info): Likewise.
12131 * gcov.c (find_source): Use filename_cmp instead
12133 (make_gcov_file_name): Fix order of slash/backslash
12135 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12136 (add_standard_paths): Likewise.
12137 * mips-tfile.c (saber_stop): Handle backslash.
12138 * prefix.c (update_path): Use filename_ncmp instead of
12140 * profile.c (output_location): Use filename_cmp instead
12142 * read-md.c (handle_toplevel_file): Handle backslash.
12143 * tlink.c (frob_extension): Likewise.
12144 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12146 * tree-dump.c (dequeue_and_dump): Handle backslash.
12147 * tree.c (get_file_function_name): Likewise.
12148 * gengtype.c (read_input_list): Likewise.
12149 (get_file_realbasename): Likewise.
12150 (get_output_file_with_visibility): Use filename_cmp
12153 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12155 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12158 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12160 * fold-const.c (expr_location_or): New function.
12161 (fold_truth_not_expr): Call it.
12163 2011-03-25 Jeff Law <law@redhat.com>
12165 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12167 * c-family/c-common.c (def_fn_type): Likewise.
12168 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12169 * emit-rtl.c (gen_rtvec): Likewise.
12170 * lto/lto-lang.c (def_fn_type): Likewise.
12172 2011-03-25 Richard Guenther <rguenther@suse.de>
12174 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12175 also generate copies.
12176 (fini_copy_prop): Handle constant values properly.
12178 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12180 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12181 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12182 (hash_loc_operands, compare_loc_operands): Handle
12183 DW_OP_GNU_entry_value.
12185 2011-03-25 Kai Tietz <ktietz@redhat.com>
12187 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12188 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12189 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12190 comment and use macro TARGET_64BIT_MS_ABI instead.
12191 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12192 and change default behavior for 32-bit MS_ABI.
12193 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12194 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12196 (ix86_cfun_abi): Likewise.
12197 (ix86_maybe_switch_abi): Adjust comment.
12198 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12199 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12200 instead of checking for SYSV_ABI.
12201 (ix86_nsaved_sseregs): Likewise.
12202 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12204 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12205 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12206 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12207 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12208 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12210 2011-03-25 Richard Guenther <rguenther@suse.de>
12212 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12213 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12214 (verify_gimple): Remove.
12215 * tree-cfg.c (verify_gimple_call): Merge verification
12217 (verify_gimple_phi): Merge verification from verify_stmts.
12218 (verify_gimple_label): New function.
12219 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12220 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12221 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12222 (verify_stmts): Rename to verify_gimple_in_cfg.
12223 (verify_gimple_in_cfg): New function.
12224 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12225 * tree-ssa.c (verify_ssa): Likewise.
12226 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12228 2011-03-25 Richard Guenther <rguenther@suse.de>
12230 * passes.c (init_optimization_passes): Add FRE pass after
12233 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12234 Andrew Stubbs <ams@codesourcery.com>
12236 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12238 (arm_movdi_vfp_cortexa8): New pattern.
12239 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12240 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12241 instructions when tuning for Cortex-A8. Set attribute "arch".
12242 * config/arm/arm.md: Move include arm-tune.md up a bit.
12243 (define_attr "arch"): Add "onlya8" and "nota8" values.
12244 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12246 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12250 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12252 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12253 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12254 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12255 * passes.c (init_optimization_passes): Move
12256 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12258 2011-03-25 Kai Tietz <ktietz@redhat.com>
12260 * c-typeck.c (comptypes_internal): Replace target
12261 hook call of comp_type_attributes by version in tree.c file.
12262 * gimple.c (gimple_types_compatible_p_1): Likewise.
12263 * tree-ssa.c (useless_type_conversion_p): Likewise.
12264 * tree.c (build_type_attribute_qual_variant): Likewise.
12265 (attribute_value_equal): New static helper function.
12266 (comp_type_attributes): New function.
12267 (merge_attributes): Use attribute_value_equal for comparison.
12268 (attribute_list_contained): Likewise.
12269 * tree.h (comp_type_attributes): New prototype.
12271 2011-03-25 Richard Guenther <rguenther@suse.de>
12273 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12274 of complex types at -O0.
12275 (verify_gimple_assign_binary): Likewise.
12276 (verify_gimple_assign_ternary): Likewise.
12278 2011-03-24 Mark Wielaard <mjw@redhat.com>
12280 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12281 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12283 2011-03-24 Mark Wielaard <mjw@redhat.com>
12286 * dwarf2out.c (output_abbrev_section): Only write table when
12287 abbrev_die_table_in_use > 1.
12289 2011-02-24 Richard Henderson <rth@redhat.com>
12291 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12292 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12293 (alpha_expand_unaligned_load_words): Use extql.
12294 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12295 (emit_insxl): Handle all modes for consistency.
12297 2011-02-24 Richard Henderson <rth@redhat.com>
12299 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12300 (alpha_expand_unaligned_load): Likewise.
12301 (alpha_expand_unaligned_store): Likewise.
12302 (alpha_expand_unaligned_load_words): Likewise.
12303 (alpha_expand_unaligned_store_words): Likewise.
12304 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12305 (alpha_split_lock_test_and_set_12): Likewise.
12306 (print_operand, alpha_fold_builtin_extxx): Likewise.
12307 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12308 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12309 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12310 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12311 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12312 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12313 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12314 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12315 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12316 (extwl, extll, extql): Similarly.
12317 (inswh, inslh, insqh): Similarly.
12318 (mskbl, mskwl, mskll, mskql): Similarly.
12319 (mskwh, msklh, mskqh): Similarly.
12321 2011-02-24 Richard Henderson <rth@redhat.com>
12323 * config/alpha/alpha.md (attribute isa): Add er, ner.
12324 (attribute enabled): Handle them.
12325 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12327 2011-02-24 Richard Henderson <rth@redhat.com>
12329 * config/alpha/alpha.md (attribute isa): Add vms.
12330 (attribute enabled): Handle it.
12331 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12332 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12333 (*movtf): Rename from *movtf_internal for consistency.
12334 (*movsi): Merge with *movsi_nt_vms.
12335 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12336 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12337 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12338 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12340 2011-02-24 Richard Henderson <rth@redhat.com>
12342 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12343 (extendqisi2, extendhisi2): Likewise.
12344 (extendqidi2): Simplify BWX/non-BWX expansions.
12345 (extendhidi2): Similarly.
12347 2011-02-24 Richard Henderson <rth@redhat.com>
12349 * config/alpha/alpha.md (attribute isa): New.
12350 (attribute enabled): New.
12351 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12352 (zero_extendqisi2, zero_extendqidi2): Similarly.
12353 (zero_extendhisi2, zero_extendhidi2): Similarly.
12354 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12356 2011-02-24 Richard Henderson <rth@redhat.com>
12358 * config/alpha/predicates.md (input_operand): Revert last change;
12359 update comment to mention 32-bit VMS rather than Windows.
12361 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12363 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12364 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12365 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12366 * passes.c (init_optimization_passes): Move
12367 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12369 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12371 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12373 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12375 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12378 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12381 * simplify-rtx.c (simplify_const_unary_operation): Call
12382 real_convert when changing mode class with FLOAT_EXTEND.
12384 2011-03-24 Nick Clifton <nickc@redhat.com>
12386 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12387 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12388 * config/rx/rx.c (rx_option_override): Set align_jumps,
12389 align_loops and align_labels if not set by the user.
12390 (rx_align_for_label): New function.
12391 (rx_max_skip_for_label): New function.
12392 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12393 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12394 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12395 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12396 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12398 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12400 PR rtl-optimization/48263
12401 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12402 and original commutative_p handling. Use maybe_gen_insn.
12404 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12406 * reload.c (find_reloads_subreg_address): Add address_reloaded
12407 parameter and return true there if the full address has been
12409 (find_reloads_toplev): Pass address_reloaded flag.
12410 (find_reloads_address_1): Don't use address_reloaded parameter.
12412 2011-03-24 Jeff Law <law@redhat.com>
12414 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12415 unused variable "ann".
12416 (remove_unused_locals): Likewise.
12418 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12421 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12424 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12426 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12427 for invalid symbolic addresses.
12428 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12431 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12433 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12434 the argument in calls to fold_truth_not_expr.
12436 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12438 * tree.c (record_node_allocation_statistics): New function.
12439 (make_node_stat, copy_node_stat, build_string): Call it.
12440 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12441 (build1_stat, build_omp_clause): Likewise.
12443 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12445 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12448 2011-03-24 Richard Guenther <rguenther@suse.de>
12450 PR tree-optimization/48271
12451 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12452 blocks that still exist.
12454 2011-03-24 Richard Guenther <rguenther@suse.de>
12456 PR tree-optimization/48270
12457 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12458 not free datarefs before ddrs.
12460 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12462 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12463 from the address built for a reference with variable offset.
12465 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12468 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12469 alternatives that can be handled with movq or movabsq insn.
12470 (*movdf_internal): Disable for !TARGET_64BIT.
12471 (*movdf_internal_nointeger): Ditto.
12472 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12474 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12476 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12477 (FUNCTION_ARG_ADVANCE): Likewise.
12478 * tm.texi.in: Change references to them to hook references.
12479 * tm.texi: Regenerate.
12480 * targhooks.c (default_function_arg): Eliminate check for target macro.
12481 (default_function_incoming_arg): Likewise.
12482 (default_function_arg_advance): Likewise.
12483 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12484 (function_arg_advance): Likewise.
12485 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12487 2011-03-24 Richard Guenther <rguenther@suse.de>
12489 PR middle-end/48269
12490 * tree-object-size.c (addr_object_size): Do not double-account
12491 for MEM_REF offsets.
12493 2011-03-24 Diego Novillo <dnovillo@google.com>
12495 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12496 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12497 (lto_input_data_block): Move from lto-opts.c. Make extern.
12499 (lto_input_string): Rename from input_string. Make extern.
12501 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12502 output_string_with_length.
12503 Output 0 to indicate a non-NULL string. Update all callers to
12505 (lto_output_string): Rename from output_string. Make extern.
12507 (lto_output_decl_state_streams): Make extern.
12508 (lto_output_decl_state_refs): Make extern.
12509 * lto-streamer.h (lto_input_string): Declare.
12510 (lto_input_data_block): Declare.
12511 (lto_output_string): Declare.
12512 (lto_output_string_with_length): Declare.
12513 (lto_output_decl_state_streams): Declare.
12514 (lto_output_decl_state_refs): Declare.
12516 2011-03-24 Richard Guenther <rguenther@suse.de>
12518 PR tree-optimization/46562
12519 * tree.c (build_invariant_address): New function.
12520 * tree.h (build_invariant_address): Declare.
12521 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12522 a renamed function moved ...
12523 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12524 Take valueization callback parameter.
12525 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12526 * gimple-fold.h: New file.
12527 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12528 (ccp_fold, fold_const_aggregate_ref,
12529 fold_ctor_reference, fold_nonarray_ctor_reference,
12530 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12531 get_base_constructor): Move ...
12532 * gimple-fold.c: ... here.
12533 (gimple_fold_stmt_to_constant_1): New function
12534 split out from ccp_fold. Take a valueization callback parameter.
12535 Valueize all operands.
12536 (gimple_fold_stmt_to_constant): New wrapper function.
12537 (fold_const_aggregate_ref_1): New function split out from
12538 fold_const_aggregate_ref. Take a valueization callback parameter.
12539 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12540 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12541 invariant POINTER_PLUS_EXPRs to invariant form.
12542 (vn_valueize): New function.
12543 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12544 * tree-vrp.c (vrp_valueize): New function.
12545 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12546 to fold statements to constants.
12547 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12548 function declarations.
12549 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12550 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12552 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12554 * config/h8300/predicates.md (jump_address_operand): Fix register
12557 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12559 * doc/invoke.texi (max-stores-to-sink): Document.
12560 * params.h (MAX_STORES_TO_SINK): Define.
12561 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12562 if either vectorization or if-conversion is disabled.
12563 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12564 tree-vect-data-refs.c vect_equal_offsets.
12565 (dr_equal_offsets_p): New function.
12566 (find_data_references_in_bb): Remove static.
12567 * tree-data-ref.h (find_data_references_in_bb): Declare.
12568 (dr_equal_offsets_p): Likewise.
12569 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12570 (vect_drs_dependent_in_basic_block): Update calls to
12571 vect_equal_offsets.
12572 (vect_check_interleaving): Likewise.
12573 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12574 (cond_if_else_store_replacement): Rename to...
12575 (cond_if_else_store_replacement_1): ... this. Change arguments and
12577 (cond_if_else_store_replacement): New function.
12578 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12579 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12581 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12584 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12585 to subtract lower bound instead of GEN_INT().
12587 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12592 * doc/extend.texi (Alignment): Move section to match order in TOC.
12593 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12594 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12596 2011-03-23 Jeff Law <law@redhat.com>
12598 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12599 before removing the edge.
12601 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12602 it may have been freed by redirect_branch_edge or
12603 redirect_edge_succ_nodup.
12605 2011-03-23 Richard Guenther <rguenther@suse.de>
12607 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12608 (check_va_list_escapes): Likewise.
12609 (check_all_va_list_escapes): Likewise.
12611 2011-03-23 Richard Guenther <rguenther@suse.de>
12613 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12614 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12615 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12616 (alias.o): Likewise.
12617 (ipa-type-escape.o): Remove.
12618 (ipa-struct-reorg.o): Likewise.
12619 (GTFILES): Remove ipa-struct-reorg.c.
12620 * alias.c: Do not include ipa-type-escape.h.
12621 * tree-ssa-alias.c: Likewise.
12622 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12623 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12624 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12625 and ipa-type-escape passes.
12626 * tree-pass.h (pass_ipa_type_escape): Remove.
12627 (pass_ipa_struct_reorg): Likewise.
12628 * ipa-struct-reorg.h: Remove.
12629 * ipa-struct-reorg.c: Likewise.
12630 * ipa-type-escape.h: Likewise.
12631 * ipa-type-escape.c: Likewise.
12632 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12633 (--param struct-reorg-cold-struct-ratio): Likewise.
12634 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12635 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12636 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12638 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12640 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12641 cpu attribute value.
12642 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12643 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12644 * config/s390/s390.c (processor_flags_table): New constant array.
12645 (s390_handle_arch_option): Remove.
12646 (s390_handle_option): Remove s390_handle_arch_option invocations
12647 and OPT_mwarn_framesize_ handling.
12648 (s390_option_override): Remove s390_handle_arch_option invocation.
12649 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12651 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12652 * config/s390/s390.opt (s390_tune, s390_arch)
12653 (march=): Replace s390_arch_option enum and values with
12654 processor_type. Set variable name to s390_arch. Set
12655 initialization value.
12656 (mtune=): Replace s390_arch_option with processor_type. Set
12657 variable name to s390_tune. Set initialization value.
12659 2011-03-23 Julian Brown <julian@codesourcery.com>
12661 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12662 accesses which are not naturally aligned.
12664 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12667 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12669 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12671 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12672 parameter from "int" to "enum insn_code".
12673 (expand_operand_type): New enum.
12674 (expand_operand): New structure.
12675 (create_expand_operand): New function.
12676 (create_fixed_operand, create_output_operand): Likewise
12677 (create_input_operand, create_convert_operand_to): Likewise.
12678 (create_convert_operand_from, create_address_operand): Likewise.
12679 (create_integer_operand): Likewise.
12680 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12681 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12682 (expand_insn, expand_jump_insn): Likewise.
12683 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12684 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12685 (expand_movstr, expand_builtin___clear_cache): Likewise.
12686 (expand_builtin_lock_release): Likewise.
12687 * explow.c (allocate_dynamic_stack_space): Likewise.
12688 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12689 and use the default handling in that case.
12690 * expmed.c (check_predicate_volatile_ok): Delete.
12691 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12692 (emit_cstore): Likewise.
12693 * expr.c (emit_block_move_via_movmem): Likewise.
12694 (set_storage_via_setmem, expand_assignment): Likewise.
12695 (emit_storent_insn, try_casesi): Likewise.
12696 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12697 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12698 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12699 (expand_twoval_unop, expand_twoval_binop): Likewise.
12700 (expand_unop_direct, emit_indirect_jump): Likewise.
12701 (emit_conditional_move, vector_compare_rtx): Likewise.
12702 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12703 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12704 (expand_sync_lock_test_and_set): Likewise.
12705 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12706 (emit_unop_insn): Likewise.
12707 (expand_copysign_absneg): Change icode to an insn_code.
12708 (create_convert_operand_from_type): New function.
12709 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12710 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12711 (expand_insn, expand_jump_insn): Likewise.
12712 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12713 than const_int_operand for operand 2.
12715 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12717 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12720 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12722 * emit-rtl.c (emit_pattern_before_noloc): New function.
12723 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12724 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12725 (emit_pattern_after_noloc): New function.
12726 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12727 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12729 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12731 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12732 (__ffsDI2): Likewise.
12734 2011-03-22 Richard Henderson <rth@redhat.com>
12736 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12737 of !TARGET_ABI_OPEN_VMS.
12738 (alpha_trampoline_init, alpha_start_function): Likewise.
12739 (alpha_expand_epilogue, alpha_file_start): Likewise.
12740 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12741 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12742 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12743 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12744 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12746 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12748 * config/s390/s390-opts.h: New.
12749 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12750 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12751 s390_stack_guard): Remove.
12752 (s390_handle_arch_option): Return void. Take enum
12753 s390_arch_option value instead of string and searching array.
12754 (s390_handle_option): Don't assert that global structures are in
12755 use. Access variables via opts pointer. Use error_at. Don't use
12756 sscanf for -mstack-guard= or -mstack-size=. Update call to
12757 s390_handle_arch_option.
12758 (s390_option_override): Update call to s390_handle_arch_option.
12759 (s390_emit_prologue): Use %d format for s390_stack_size in
12760 diagnostic. Use %wd for HOST_WIDE_INT.
12761 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12762 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12763 * config/s390/s390.opt (config/s390/s390-opts.h): New
12764 HeaderInclude entry.
12765 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12766 s390_arch_flags, s390_warn_framesize): New Variable entries.
12767 (s390_arch_option): New Enum and EnumValue entries.
12768 (march=): Use Enum instead of Var.
12769 (mstack-guard=, mstack-size=): Use UInteger and Var.
12770 (mtune=): Use Enum.
12772 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12774 * config/score/score.c (score_handle_option): Don't assert that
12775 global structures are in use. Access target_flags via opts
12776 pointer. Use value of -march= option to determine target_flags
12778 * config/score/score.opt (march=): Use Enum.
12779 (score_arch): New Enum and EnumValue entries.
12781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12783 * config/mep/mep.c (option_mtiny_specified): Remove.
12784 (mep_option_override): Move register handling for -mivc2 from
12785 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12786 instead of option_mtiny_specified.
12787 (mep_handle_option): Access target_flags via opts pointer. Don't
12788 assert that global structures are in use. Defer part of -mivc2
12789 handling and move it to mep_option_override.
12790 * config/mep/mep.opt (IVC2): New Mask entry.
12791 (mivc2): Use Var and Defer instead of Mask.
12793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12795 * config/v850/v850-opts.h: New.
12796 * config/v850/v850.c (small_memory): Replace with
12797 small_memory_physical_max array. Make that array static const.
12798 (v850_handle_memory_option): Take integer value of argument. Take
12799 gcc_options pointer, option text and location. Return void.
12800 Update for changes to small memory structures.
12801 (v850_handle_option): Access target_flags via opts pointer. Don't
12802 assert that global structures are in use. Update calls to
12803 v850_handle_memory_option.
12804 (v850_encode_data_area): Update references to small memory settings.
12805 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12806 (enum small_memory_type): Move to v850-opts.h.
12807 * config/v850/v850.opt (config/v850/v850-opts.h): New
12808 HeaderInclude entry.
12809 (small_memory_max): New Variable entry.
12810 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12811 (mtda, mzda): Likewise.
12813 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12815 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12816 pointer. Don't assert that global structures are in use.
12818 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12820 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12821 via opts pointer. Don't assert that global structures are in use.
12823 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12825 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12826 (munix=93): Use Var.
12827 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12828 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12829 * config/pa/pa-opts.h: New.
12830 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12831 (pa_handle_option): Don't assert that global structures are in
12832 use. Access target_flags via opts pointer. Don't handle
12833 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12835 (pa_option_override): Handle deferred OPT_mfixed_range_.
12837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12839 * config/mn10300/mn10300-opts.h: New.
12840 * config/mn10300/mn10300.c (mn10300_processor,
12841 mn10300_tune_string): Remove.
12842 (mn10300_handle_option): Don't assert that global structures are
12843 in use. Access mn10300_processor via opts pointer. Don't handle
12845 * config/mn10300/mn10300.h (enum processor_type): Move to
12847 (mn10300_processor): Remove.
12848 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12849 HeaderInclude entry.
12850 (mn10300_processor): New Variable entry.
12853 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12855 * config/microblaze/microblaze.c: Don't include opts.h.
12856 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12857 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12858 (mno-clearbss): Use Var and Warn.
12860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12862 * config/m32r/m32r-opts.h: New.
12863 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12864 (m32r_handle_option): Don't assert that global structures are in
12865 use. Access target_flags and m32r_cache_flush_func via opts
12866 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12867 OPT_mno_flush_trap here.
12868 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12869 include of m32r-opts.h.
12870 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12871 HeaderInclude entry.
12872 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12873 (mmodel=): Use Enum and Var.
12874 (m32r_model): New Enum and EnumValue entries.
12875 (mno-flush-trap): Use Var.
12876 (msdata=): Use Enum and Var.
12877 (m32r_sdata): New Enum and EnumValue entries.
12879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12881 * config/m32c/m32c.c: Don't include opts.h.
12882 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12883 m32c_handle_option): Remove.
12884 (m32c_option_override): Check global_options_set.x_target_memregs
12885 instead of target_memregs_set.
12886 * config/m32c/m32c.h (target_memregs): Remove.
12887 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12892 * config/iq2000/iq2000-opts.h: New.
12893 * config/iq2000/iq2000.c: Don't include opts.h.
12894 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12895 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12896 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12897 HeaderInclude entry.
12898 (iq2000_tune): New Variable entry.
12899 (march=): Add comment. Use Enum.
12900 (iq2000_arch): New Enum and EnumValue entries.
12901 (mcpu=): Use Enum and Var.
12902 (iq2000_tune): New Enum and EnumValue entries.
12904 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12906 * config/ia64/ia64-opts.h: New.
12907 * config/ia64/ia64.c (ia64_tune): Remove.
12908 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12909 here. Use error_at.
12910 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12911 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12912 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12913 HeaderInclude entry.
12914 (ia64_tune): New Variable entry.
12915 (mfixed-range=): Use Defer and Var.
12916 (mtune=): Use Enum and Var.
12917 (ia64_tune): New Enum and EnumValue entries.
12919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12921 * config/frv/frv-opts.h: New.
12922 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12924 (frv_cpu_type): Remove.
12925 * config/frv/frv.c: Don't include opts.h.
12926 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12927 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12928 (frv_cpu_type): New Variable entry.
12929 (frv_cpu): New Enum and EnumValue entries.
12931 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12933 * config/cris/cris.c (cris_handle_option): Access target_flags via
12934 opts pointer. Don't assert that global structures are in use.
12935 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12936 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12938 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12940 * config/bfin/bfin-opts.h: New.
12941 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12942 bfin_si_revision, bfin_workarounds): Remove.
12943 (bfin_cpus): Make static const.
12944 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12945 not bfin_lib_id_given.
12946 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12947 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12948 pointer. Use error_at. Don't assert that global structures are in use.
12949 * config/bfin/bfin.h: Include bfin-opts.h.
12950 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12951 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12952 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12953 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12958 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12959 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12960 or -msoft-float here.
12961 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12962 -msoft-float and -mhard-float.
12963 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12964 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12966 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12968 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12969 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12971 (LIBGCC_SPEC): Don't handle -msoft-float.
12972 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12974 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12976 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12977 -mfloat-abi=*, not -msoft-float and -mhard-float.
12978 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12980 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12981 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12982 mhard-float and msoft-float.
12983 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12984 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12985 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12986 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12988 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12989 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12991 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12993 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12996 2011-03-22 Richard Henderson <rth@redhat.com>
12998 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12999 TARGET_ABI_WINDOWS_NT.
13000 (alpha_output_function_end_prologue): Likewise.
13001 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13002 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13003 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13004 (trap, *movsi_nt_vms): Likewise.
13005 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13006 (*tablejump_osf_nt_internal): Remove.
13007 * config/alpha/predicates.md (input_operand): Only test Pmode.
13009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13011 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13012 via opts pointer. Use error_at. Don't assert that global
13013 structures are in use.
13015 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13017 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13018 (ix86_handle_option): Access ix86_isa_flags and
13019 ix86_isa_flags_explicit via opts pointer. Don't assert that
13020 global structures are in use.
13021 (ix86_function_specific_save, ix86_function_specific_restore):
13022 Update ix86_isa_flags_explicit field name.
13023 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13024 (ix86_isa_flags_explicit): Rename TargetSave entry to
13025 x_ix86_isa_flags_explicit.
13027 2011-03-22 Richard Henderson <rth@redhat.com>
13029 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13030 (alpha_option_override, direct_return): Likewise.
13031 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13032 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13033 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13034 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13035 (alpha_expand_epilogue, alpha_end_function): Likewise.
13036 (alpha_init_libfuncs): Likewise.
13037 (struct machine_function): Remove unicosmk members.
13038 (print_operand) ['t']: Remove.
13039 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13040 unicosmk_output_module_name, unicosmk_output_common,
13041 current_section_align, unicosmk_output_text_section_asm_op,
13042 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13043 unicosmk_section_type_flags, unicosmk_unique_section,
13044 unicosmk_asm_named_section, unicosmk_insert_attributes,
13045 unicosmk_output_align, unicosmk_defer_case_vector,
13046 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13047 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13048 unicosmk_output_ssib, unicosmk_add_call_info_word,
13049 unicosmk_extern_head, unicosmk_output_default_externs,
13050 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13051 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13052 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13053 * config/alpha/alpha-protos.h: Update.
13054 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13055 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13056 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13057 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13058 (*mulsi_se, mulvsi3): Likewise.
13059 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13060 (*divmodsi_internal, call, call_value, realign): Likewise.
13061 (moddi3, umoddi3): Likewise; remove duplicate expander.
13062 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13063 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13064 (*movdi_nofix): Remove r/U alternative.
13065 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13066 * config/alpha/constraints.md ("U"): Remove.
13067 * config/alpha/predicates.md (call_operand"): Don't test
13068 TARGET_ABI_UNICOSMK.
13070 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13072 * target.def (handle_option): Take gcc_options and
13073 cl_decoded_option pointers and location_t.
13074 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13075 * doc/tm.texi: Regenerate.
13076 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13077 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13078 * lto-opts.c (lto_reissue_options): Generate option structure for
13079 targetm.handle_option call.
13080 * opts.c (target_handle_option): Update call to
13081 targetm.handle_option. Remove assertions about values now passed
13083 * targhooks.c (default_target_handle_option): New.
13084 * targhooks.h (default_target_handle_option): Declare.
13085 * config/alpha/alpha.c: Include opts.h.
13086 (alpha_handle_option): Update to new hook interface.
13087 * config/arm/arm.c: Include opts.h.
13088 (arm_handle_option): Update to new hook interface.
13089 * config/arm/t-arm (arm.o): Update dependencies.
13090 * config/bfin/bfin.c: Include opts.h.
13091 (bfin_handle_option): Update to new hook interface.
13092 * config/cris/cris.c: Include opts.h.
13093 (cris_handle_option): Update to new hook interface.
13094 * config/frv/frv.c: Include opts.h.
13095 (frv_handle_option): Update to new hook interface.
13096 * config/i386/i386.c: Include opts.h.
13097 (ix86_handle_option): Update to new hook interface.
13098 (ix86_valid_target_attribute_inner_p): Generate option structure
13099 for call to ix86_handle_option.
13100 * config/i386/t-i386 (i386.o): Update dependencies.
13101 * config/ia64/ia64.c: Include opts.h.
13102 (ia64_handle_option): Update to new hook interface.
13103 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13104 * config/iq2000/iq2000.c: Include opts.h.
13105 (iq2000_handle_option): Update to new hook interface.
13106 * config/m32c/m32c.c: Include opts.h.
13107 (m32c_handle_option): Update to new hook interface.
13108 * config/m32r/m32r.c: Include opts.h.
13109 (m32r_handle_option): Update to new hook interface.
13110 * config/m68k/m68k.c: Include opts.h.
13111 (m68k_handle_option): Update to new hook interface.
13112 * config/mep/mep.c: Include opts.h.
13113 (mep_handle_option): Update to new hook interface.
13114 * config/microblaze/microblaze.c: Include opts.h.
13115 (microblaze_handle_option): Update to new hook interface.
13116 * config/mips/mips.c: Include opts.h.
13117 (mips_handle_option): Update to new hook interface.
13118 * config/mn10300/mn10300.c: Include opts.h.
13119 (mn10300_handle_option): Update to new hook interface.
13120 * config/pa/pa.c: Include opts.h.
13121 (pa_handle_option): Update to new hook interface.
13122 * config/pdp11/pdp11.c: Include opts.h.
13123 (pdp11_handle_option): Update to new hook interface.
13124 * config/rs6000/rs6000.c: Include opts.h.
13125 (rs6000_handle_option): Update to new hook interface.
13126 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13127 * config/rx/rx.c: Include opts.h.
13128 (rx_handle_option): Update to new hook interface.
13129 * config/s390/s390.c: Include opts.h.
13130 (s390_handle_option): Update to new hook interface.
13131 * config/score/score.c: Include opts.h.
13132 (score_handle_option): Update to new hook interface.
13133 * config/sh/sh.c: Include opts.h.
13134 (sh_handle_option): Update to new hook interface.
13135 * config/sparc/sparc.c: Include opts.h.
13136 (sparc_handle_option): Update to new hook interface.
13137 * config/v850/v850.c: Include opts.h.
13138 (v850_handle_option): Update to new hook interface.
13140 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13142 * gcc.c (driver_unknown_option_callback): Only permit and save
13143 unknown -Wno- options.
13144 (driver_wrong_lang_callback): Save options directly instead of via
13145 driver_unknown_option_callback.
13147 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13149 * combine.c (simplify_set): Try harder to find the best CC mode when
13150 simplifying a nested COMPARE on the RHS.
13152 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13154 * config/alpha/gnu.h: Remove.
13155 * config/arc: Remove directory.
13156 * config/arm/netbsd.h: Remove.
13157 * config/arm/t-pe: Remove.
13158 * config/crx: Remove directory.
13159 * config/i386/netbsd.h: Remove.
13160 * config/m68hc11: Remove directory.
13161 * config/m68k/uclinux-oldabi.h: Remove.
13162 * config/mcore/mcore-pe.h: Remove.
13163 * config/mcore/t-mcore-pe: Remove.
13164 * config/netbsd-aout.h: Remove.
13165 * config/rs6000/gnu.h: Remove.
13166 * config/sh/sh-symbian.h: Remove.
13167 * config/sh/symbian-base.c: Remove.
13168 * config/sh/symbian-c.c: Remove.
13169 * config/sh/symbian-cxx.c: Remove.
13170 * config/sh/symbian-post.h: Remove.
13171 * config/sh/symbian-pre.h: Remove.
13172 * config/sh/t-symbian: Remove.
13173 * config/svr3.h: Remove.
13174 * config/vax/netbsd.h: Remove.
13175 * config.build: Don't handle i[34567]86-*-pe.
13176 * config.gcc: Remove handling of deprecations for most deprecated
13178 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13179 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13180 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13181 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13182 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13183 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13185 * config.host: Don't handle i[34567]86-*-pe.
13186 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13187 (ASM_SPEC32): Don't handle -mcall-gnu.
13188 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13190 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13191 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13192 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13193 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13194 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13195 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13196 conditional on SYMBIAN.
13197 * configure.ac: Don't handle powerpc*-*-gnu*.
13198 * configure: Regenerate.
13199 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13200 * doc/install-old.texi (m6811, m6812): Don't mention.
13201 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13202 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13203 (m68k-uclinuxoldabi): Don't mention.
13204 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13206 (-mcall-gnu): Remove.
13207 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13208 families): Remove constraint documentation.
13210 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13212 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13213 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13214 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13216 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13219 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13220 vector when peeking at the next token for vector, don't expand the
13223 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13225 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13226 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13227 * config/avr/avr.c (init_cumulative_args)
13228 (avr_function_arg_advance): Use it.
13229 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13231 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13232 (avr_function_ok_for_sibcall): ...this new function.
13233 (avr_lookup_function_attribute1): New static Function.
13234 (avr_naked_function_p, interrupt_function_p)
13235 (signal_function_p, avr_OS_task_function_p)
13236 (avr_OS_main_function_p): Use it.
13237 * config/avr/avr.md ("sibcall", "sibcall_value")
13238 ("sibcall_epilogue"): New expander.
13239 ("*call_insn", "*call_value_insn"): New insn.
13240 ("call_insn", "call_value_insn"): Remove
13241 ("call", "call_value", "epilogue"): Change expander to handle
13244 2011-03-21 Nick Clifton <nickc@redhat.com>
13246 * doc/invoke.texi (Overall Options): Move closing brace to end of
13248 (Optimization Options): Add missing @gol.
13249 (Directory Options): Likewise.
13250 (i386 and x86-64 Options): Likewise.
13251 (RS6000 and PowerPC Options): Likewise.
13252 (i386 and x86-64 Windows Options): Likewise.
13253 (V850 Options): Add text missing from descriptions.
13255 2011-03-22 Richard Henderson <rth@redhat.com>
13257 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13258 (avr_incoming_return_addr_rtx): New.
13259 (emit_push_byte): New.
13260 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13261 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13262 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13263 (emit_pop_byte): New.
13264 (expand_epilogue): Use it. Pop frame pointer by bytes.
13265 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13266 (INCOMING_RETURN_ADDR_RTX): New.
13267 (INCOMING_FRAME_SP_OFFSET): New.
13268 (ARG_POINTER_CFA_OFFSET): New.
13269 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13270 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13273 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13275 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13277 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13278 (FUNCTION_ARG_ADVANCE): Likewise.
13279 * tm.texi.in: Change references to them to hook references.
13280 * tm.texi: Regenerate.
13281 * targhooks.c (default_function_arg): Eliminate check for target
13283 (default_function_incoming_arg): Likewise.
13284 (default_function_arg_advance): Likewise.
13285 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13286 (function_arg_advance): Likewise.
13287 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13289 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13291 * tree.c (build_call_1): New function.
13292 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13294 2011-03-22 Richard Guenther <rguenther@suse.de>
13296 PR tree-optimization/48228
13297 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13298 for single-arg PHIs.
13300 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13302 PR rtl-optimization/48143
13303 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13304 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13305 sse2_cvtps2pd): Likewise.
13307 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13309 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13311 2011-03-22 Richard Guenther <rguenther@suse.de>
13313 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13314 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13315 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13316 and REALIGN_LOAD_EXPR.
13317 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13318 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13319 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13320 DOT_PROD_EXPR case ...
13321 (expand_expr_real_2): ... here.
13322 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13323 and REALIGN_LOAD_EXPR.
13324 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13325 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13326 (vect_create_epilog_for_reduction): Likewise.
13327 (vectorizable_reduction): Likewise.
13328 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13329 * tree-vect-stmts.c (vectorizable_load): Likewise.
13331 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13333 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13335 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13337 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13338 handling for PLTOFF/GOTOFF.
13340 2011-03-22 Nick Clifton <nickc@redhat.com>
13342 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13343 trailing backslash from the end of the macro definition.
13345 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13347 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13350 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13352 * expr.h (prepare_operand): Move to...
13353 * optabs.h (prepare_operand): ...here and change the insn code
13354 parameter from "int" to "enum insn_code".
13355 (insn_operand_matches): Declare.
13356 * expr.c (init_expr_target): Use insn_operand_matches.
13357 (compress_float_constant): Likewise.
13358 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13359 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13360 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13361 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13363 (gen_cond_trap): Likewise.
13364 (prepare_operand): Likewise. Change icode to an insn_code.
13365 (insn_operand_matches): New function.
13366 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13367 * reload1.c (gen_reload): Likewise.
13368 * targhooks.c (default_secondary_reload): Likewise.
13370 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13372 * config/alpha/alpha.md (unspec): New define_c_enum.
13375 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13378 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13379 between a call and its CALL_ARG_LOCATION note.
13381 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13383 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13385 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13389 * c-common.c (shorten_compare): If primopN is first sign-extended
13390 to opN and then zero-extended to result type, set primopN to opN.
13392 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13394 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13395 for barrier handlers.
13397 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13399 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13400 UNSPEC constants to be in the unspec enumeration, and redefine
13401 all UNSPECV constants to be in the unspecv enumeration, so that
13402 dumps print which unspec/unspec_volatile this is.
13403 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13404 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13405 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13406 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13407 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13409 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13410 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13411 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13412 * config/rs6000/sync.md (isync, lwsync): Ditto.
13414 2011-03-21 Richard Guenther <rguenther@suse.de>
13416 * params.def (lto-min-partition): Fix typo.
13418 2011-03-21 Richard Guenther <rguenther@suse.de>
13421 * c-decl.c (grokdeclarator): Drop to the main variant only
13422 for array types. Drop flag_gen_aux_info check.
13424 2011-03-21 Richard Guenther <rguenther@suse.de>
13426 PR translation/47911
13427 * params.def (lto-partitions): Fix typo.
13428 (lto-min-partition): Fix wording.
13430 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13432 * config/rs6000/t-freebsd: Remove duplication from file.
13434 2011-03-21 Richard Guenther <rguenther@suse.de>
13436 PR middle-end/47661
13437 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13439 2011-03-21 Richard Guenther <rguenther@suse.de>
13442 * params.def (lto-partitions): Require at least 1 partition.
13444 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13446 * gthr-solaris.h: Remove.
13447 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13448 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13449 (LIB_SPEC): Likewise.
13450 * config/sol2.opt (threads): Remove.
13451 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13452 (sparc*-*-solaris2*): Likewise.
13453 * configure.ac (enable_threads): Enable solaris support.
13454 * configure: Regenerate.
13455 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13456 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13461 * config.gcc: Obsolete *-*-solaris2.8*.
13462 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13464 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13467 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13468 reference. Solaris 8 perl works.
13470 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13473 * doc/install.texi (Prerequisites): Move jar etc. up.
13474 Explain support library version requirements.
13476 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13479 * doc/install.texi (Prerequisites): Move Perl to build
13480 requirements. Always necessary on Solaris 2 with Sun ld.
13482 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13484 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13486 (Specific, i?86-*-solaris2.[89]): Likewise.
13487 (Specific, i?86-*-solaris2.10): Likewise.
13488 (Specific, mips-sgi-irix6): Likewise.
13489 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13490 Update for binutils 2.21.
13492 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13494 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13495 Allow -fuse-linker-plugin for non-default plugin linker.
13496 * configure: Regenerate.
13498 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13501 * gengtype.c (files_rules): Added rule for cp/parser.h.
13503 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13506 * config/s390/s390.c (s390_delegitimize_address): Don't call
13507 lowpart_subreg if orig_x has BLKmode.
13509 2011-03-21 Kai Tietz <ktietz@redhat.com>
13512 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13513 * tree.h (attribute_spec): Add new member affects_type_identity.
13514 * attribs.c (empty_attribute_table): Adjust attribute_spec
13516 * config/alpha/alpha.c: Likewise.
13517 * config/arc/arc.c: Likewise.
13518 * config/arm/arm.c: Likewise.
13519 * config/avr/avr.c: Likewise.
13520 * config/bfin/bfin.c: Likewise.
13521 * config/crx/crx.c: Likewise.
13522 * config/darwin.h: Likewise.
13523 * config/h8300/h8300.c: Likewise.
13524 * config/i386/cygming.h: Likewise.
13525 * config/i386/i386.c: Likewise.
13526 * config/ia64/ia64.c: Likewise.
13527 * config/m32c/m32c.c: Likewise.
13528 * config/m32r/m32r.c: Likewise.
13529 * config/m68hc11/m68hc11.c: Likewise.
13530 * config/m68k/m68k.c: Likewise.
13531 * config/mcore/mcore.c: Likewise.
13532 * config/mep/mep.c: Likewise.
13533 * config/microblaze/microblaze.c: Likewise.
13534 * config/mips/mips.c: Likewise.
13535 * config/rs6000/rs6000.c: Likewise.
13536 * config/rx/rx.c: Likewise.
13537 * config/sh/sh.c: Likewise.
13538 * config/sol2.h: Likewise.
13539 * config/sparc/sparc.c: Likewise.
13540 * config/spu/spu.c: Likewise.
13541 * config/stormy16/stormy16.c: Likewise.
13542 * config/v850/v850.c: Likewise.
13544 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13546 * simplify-rtx.c (simplify_binary_operation_1): Handle
13547 (xor (and A B) C) case when B and C are both constants.
13549 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13551 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13553 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13556 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13558 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13560 PR rtl-optimization/48156
13561 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13562 assume df and df_lr are not NULL.
13564 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13567 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13568 between a call and its CALL_ARG_LOCATION note.
13570 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13573 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13574 between a call and its corresponding CALL_ARG_LOCATION note.
13576 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13578 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13579 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13580 * haifa-sched.c (setup_ref_regs): Ditto.
13581 * caller-save.c (add_used_regs_1): Ditto.
13582 * dse.c (look_for_hardregs): Ditto.
13583 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13584 * sched-rgn.c (check_live_1): Ditto.
13586 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13588 * c-decl.c (diagnose_mismatched_decls): Give an error for
13589 redefining a typedef with variably modified type.
13591 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13593 * c-decl.c (grokfield): Don't allow typedefs for structures or
13594 unions with no tag by default.
13595 * doc/extend.texi (Unnamed Fields): Update.
13597 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13599 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13600 Rewrite using indirect functions.
13601 (lwp_slwpcb): Ditto.
13602 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13603 (avx_vinsertf128<mode>): Ditto.
13605 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13607 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13610 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13612 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13613 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13615 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13617 PR rtl-optimization/48170
13618 * gcse.c (hoist_code): Remove bogus asserts.
13620 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13622 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13623 computation for prologue/epilogue.
13625 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13627 * Makefile.in (check-consistency): Remove.
13629 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13632 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13633 arange_table_in_use is 0, but either text_section_used or
13634 cold_text_section_used is true. Don't call it if
13635 !info_section_emitted.
13637 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13639 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13640 FUNCTION_VALUE_REGNO_P): Remove.
13641 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13643 * config/avr/avr.c (avr_ret_register): Make static inline.
13644 (avr_function_value_regno_p): New function.
13645 (avr_libcall_value): Make static. Add 'func' argument.
13646 (avr_function_value): Make static. Rename 'func' argument to
13647 'fn_decl_or_type', forward it to avr_libcall_value. Call
13648 avr_ret_register function instead of RET_REGISTER macro.
13649 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13651 2011-03-18 Jason Merrill <jason@redhat.com>
13654 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13656 2011-03-18 Richard Guenther <rguenther@suse.de>
13658 * doc/install.texi (--enable-gold): Remove.
13659 (--with-plugin-ld): Document.
13660 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13662 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13664 PR middle-end/47790
13665 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13666 again after expansion changes.
13668 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13670 * combine.c (try_combine): Do simplification only call of
13671 subst() on i2 even when i1 is present. Update comments.
13673 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13675 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13676 and UNSPEC_PCREL_SYMOFF.
13678 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13680 * config/s390/s390.md: Use define_c_enum for the unspec constant
13683 2011-03-18 Richard Henderson <rth@redhat.com>
13684 Jakub Jelinek <jakub@redhat.com>
13687 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13688 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13690 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13692 PR middle-end/47725
13693 * combine.c (cant_combine_insn_p): Don't check zero/sign
13694 extended hard registers.
13696 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13698 PR middle-end/47725
13699 * combine.c (cant_combine_insn_p): Check zero/sign extended
13702 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13704 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13705 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13706 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13707 Change return type to bool.
13708 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13710 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13713 * var-tracking.c (prepare_call_arguments): If CALL target
13714 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13715 pc instead of looking it up using cselib_lookup and use
13716 Pmode for it if x has VOIDmode.
13717 * dwarf2out.c (gen_subprogram_die): If also both first and
13718 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13721 * function.c (assign_parms): For data.passed_pointer parms
13722 use MEM of data.entry_parm instead of data.entry_parm itself
13723 as DECL_INCOMING_RTL.
13724 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13725 also when passed and declared mode is the same, DECL_RTL
13726 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13729 2011-03-16 Jeff Law <law@redhat.com>
13731 PR rtl-optimization/37273
13732 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13733 handle them like argument loads from stack slots. Do not double
13734 count memory for memory constants and argument loads from stack slots.
13736 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13739 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13741 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13744 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13746 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13749 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13751 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13752 Clear call_arg_locations and call_arg_loc_last always.
13754 PR middle-end/48152
13755 * var-tracking.c (prepare_call_arguments): If argument needs to be
13756 passed by reference, adjust argtype and mode.
13758 2011-03-17 Richard Guenther <rguenther@suse.de>
13760 PR middle-end/48134
13761 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13762 a value make sure to fold the statement.
13764 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13767 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13768 return condition with !cfun->calls_alloca.
13770 2011-03-17 Richard Guenther <rguenther@suse.de>
13773 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13774 origin for decls in other ltrans units.
13775 (input_varpool_node): Likewise.
13777 2011-03-17 Richard Guenther <rguenther@suse.de>
13779 PR middle-end/48165
13780 * tree-object-size.c (compute_object_offset): Properly return
13781 the offset operand of MEM_REFs as sizetype.
13783 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13785 PR rtl-optimization/48141
13786 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13787 * dse.c: Include params.h.
13788 (active_local_stores_len): New variable.
13789 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13791 (record_store, check_mem_read_rtx): Decrease it when removing
13793 (scan_insn): Likewise. Increase it when adding to chain, if it
13794 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13795 set active_local_stores to NULL before the addition.
13796 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13798 PR rtl-optimization/48141
13799 * dse.c (record_store): If no positions are needed in an insn
13800 that cannot be deleted, at least unchain it from active_local_stores.
13802 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13805 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13806 (lookup_type_die_strip_naming_typedef): ... here.
13807 (get_context_die): Use it.
13808 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13809 the anonymous struct named by the naming typedef.
13811 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13814 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13815 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13817 2011-03-16 Jeff Law <law@redhat.com>
13819 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13820 check for operands of conditional. Allow type to be a pointer.
13822 2011-03-16 Richard Guenther <rguenther@suse.de>
13824 PR tree-optimization/48149
13825 * fold-const.c (fold_binary_loc): Fold
13826 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13828 2011-03-16 Richard Guenther <rguenther@suse.de>
13830 PR tree-optimization/26134
13831 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13832 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13833 (non_rewritable_mem_ref_base): Handle complex type component
13834 accesses, constrain offsets for vector and complex extracts
13837 2011-03-16 Richard Guenther <rguenther@suse.de>
13839 PR tree-optimization/48146
13840 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13841 operands avoiding the need for renaming.
13843 2011-03-16 Richard Guenther <rguenther@suse.de>
13845 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13846 constant folding. Move MEM_REF canonicalization first.
13847 Rely on fold_const_aggregate_ref for initializer folding.
13848 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13850 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13852 PR middle-end/48136
13853 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13854 arg0/arg1 or their arguments are always fold converted to matching
13857 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13860 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13863 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13864 Handle in-tree gold.
13865 (ld_vers): Extract binutils version for gold.
13866 (gcc_cv_ld_hidden): Handle gold here.
13867 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13868 * configure: Regenerate.
13869 * config.in: Regenerate.
13870 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13871 -fuse-linker-plugin otherwise.
13872 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13873 (LINK_COMMAND_SPEC): Use it.
13874 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13876 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13878 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13879 * calls.c: Remove debug.h include.
13880 (emit_call_1): Don't call virtual_call_token debug hook.
13881 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13882 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13883 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13884 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13885 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13886 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13887 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13888 dwarf2out_virtual_call): Remove.
13889 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13890 copy_call_info and virtual_call hooks.
13891 (dwarf2out_init): Don't initialize vcall_insn_table,
13892 debug_dcall_section and debug_vcall_section.
13893 (prune_unused_types): Don't mark nodes from dcall_table.
13894 (dwarf2out_finish): Don't output dcall or vcall tables.
13895 * final.c (final_scan_insn): Don't call direct_call or
13896 virtual_call debug hooks.
13897 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13898 virtual_call_token, copy_call_info and virtual_call hooks.
13899 (debug_nothing_uid): Remove prototype.
13900 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13901 copy_call_info and virtual_call hooks.
13902 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13903 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13904 * debug.c (do_nothing_debug_hooks): Likewise.
13905 (debug_nothing_uid): Remove.
13906 * doc/invoke.texi (-fenable-icf-debug): Remove.
13907 * common.opt (-fenable-icf-debug): Likewise.
13909 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13910 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13911 call's MEM. Handle functions returning aggregate through a hidden
13912 first pointer. For virtual calls add clobbered pc to call arguments
13914 * dwarf2out.c (gen_subprogram_die): Emit
13915 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13919 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13920 * rtl.h (ENTRY_VALUE_EXP): Define.
13921 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13922 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13923 * print-rtl.c (print_rtx): Likewise.
13924 * gengtype.c (adjust_field_rtx_def): Likewise.
13925 * var-tracking.c (vt_add_function_parameter): Adjust
13926 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13927 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13928 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13929 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13930 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13932 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13933 Call var_location debug hook even on CALL_INSNs.
13934 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13935 * rtl.def (ENTRY_VALUE): New.
13936 * dwarf2out.c: Include cfglayout.h.
13937 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13938 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13939 (struct call_arg_loc_node): New type.
13940 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13941 tail_call_site_count): New variables.
13942 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13943 DW_TAG_GNU_call_site_parameter.
13944 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13945 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13946 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13947 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13948 and DW_AT_GNU_all_source_call_sites.
13949 (mem_loc_descriptor): Handle ENTRY_VALUE.
13950 (add_src_coords_attributes): Don't add enything if
13951 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13952 (dwarf2out_abstract_function): Save and clear call_arg_location,
13953 call_site_count and tail_call_site_count around dwarf2out_decl call.
13954 (gen_call_site_die): New function.
13955 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13956 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13957 (dwarf2out_function_decl): Clear call_arg_locations,
13958 call_arg_loc_last, set call_site_count and tail_call_site_count
13959 to -1 and free block_map.
13960 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13961 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13962 followed by any real instructions.
13963 (dwarf2out_begin_function): Set call_site_count and
13964 tail_call_site_count to 0.
13965 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13966 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13967 attempt to force a DIE for it and worst case remove the attribute.
13968 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13969 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13971 * var-tracking.c: Include tm_p.h.
13972 (vt_stack_adjustments): For calls call note_register_arguments.
13973 (argument_reg_set): New variable.
13974 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13975 ensure the VALUE is resolved.
13976 (call_arguments): New variable.
13977 (prepare_call_arguments): New function.
13978 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13979 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13980 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13981 always use the best expression.
13982 (vt_expand_loc): Add ignore_cur_loc argument.
13983 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13984 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13985 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13986 note for all calls.
13987 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13988 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13989 argument. Don't call cselib_preserve_only_values and
13990 cselib_reset_table.
13991 (note_register_arguments): New function.
13992 (vt_initialize): Compute argument_reg_set. Call
13993 vt_add_function_parameters before processing basic blocks instead of
13994 afterwards. For calls call prepare_call_arguments before calling
13995 cselib_process_insn.
13996 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13997 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13998 (var-tracking.o): Depend on $(TM_P_H).
13999 * cfglayout.h (insn_scope): New prototype.
14000 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14001 * cfglayout.c (insn_scope): No longer static.
14002 * insn-notes.def (CALL_ARG_LOCATION): New.
14003 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14004 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14005 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14006 nothing for DECL_EXTERNAL BLOCK_VARS.
14008 2011-03-16 Alan Modra <amodra@gmail.com>
14011 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14012 create invalid offset address for vsx splat insn.
14013 * config/rs6000/predicates.md (splat_input_operand): New.
14014 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14016 2011-03-15 Xinliang David Li <davidxl@google.com>
14019 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14020 (normalize_preds): New function.
14021 (is_use_properly_guarded): Normalize def predicates.
14023 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14026 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14027 in the output template.
14029 2011-03-15 Richard Guenther <rguenther@suse.de>
14031 PR middle-end/47650
14032 * tree-pretty-print.c (dump_function_declaration): Properly
14033 dump unprototyped and varargs function types.
14035 2011-03-15 Richard Guenther <rguenther@suse.de>
14037 PR tree-optimization/13954
14038 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14041 2011-03-15 Richard Guenther <rguenther@suse.de>
14043 PR tree-optimization/48037
14044 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14045 selects into BIT_FIELD_REFs.
14046 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14049 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14051 PR tree-optimization/48129
14052 * builtins.c (fold_builtin_snprintf): Convert to type of
14053 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14054 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14056 2011-03-15 Richard Guenther <rguenther@suse.de>
14058 PR tree-optimization/41490
14059 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14060 value but with VUSE.
14061 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14063 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14064 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14065 * tree-tailcall.c (find_tail_calls): Ignore returns.
14067 2011-03-15 Richard Guenther <rguenther@suse.de>
14069 PR middle-end/48031
14070 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14071 or variable-indexed array accesses when in gimple form.
14073 2011-03-15 Richard Guenther <rguenther@suse.de>
14075 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14077 2011-03-15 Alan Modra <amodra@gmail.com>
14080 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14081 presume symbol_refs without a symbol_ref_decl are suitably
14082 aligned, nor other trees we may see here. Handle anchor symbols.
14083 (legitimate_constant_pool_address_p): Comment. Add mode param.
14084 Check cmodel=medium addresses. Adjust all calls.
14085 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14086 creating cmodel=medium optimized access to locals.
14087 * config/rs6000/constraints.md (R): Pass QImode to
14088 legitimate_constant_pool_address_p.
14089 * config/rs6000/predicates.md (input_operand): Pass mode to
14090 legitimate_constant_pool_address_p.
14091 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14094 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14097 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14098 64-bit constants being loaded into registers other than GPRs such
14099 as loading 0 into a VSX register.
14101 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14103 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14105 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14107 PR middle-end/47917
14108 * builtins.c (fold_builtin_snprintf): New function.
14109 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14110 (fold_builtin_4): Likewise.
14112 PR middle-end/38878
14113 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14114 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14115 and C - X == X also strip nops from +/-/p+ operand.
14116 When optimizing -X == C, fold C to arg0's type.
14119 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14120 emit it as add_AT_int instead of add_AT_unsigned.
14122 2011-03-14 Tom Tromey <tromey@redhat.com>
14124 * unwind-dw2.c: Include sys/sdt.h if it exists.
14125 (_Unwind_DebugHook): Use STAP_PROBE2.
14126 * config.in, configure: Rebuild.
14127 * configure.ac: Check for sys/sdt.h.
14129 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14131 * config/i386/i386.md (ROUND_FLOOR): New constant.
14132 (ROUND_CEIL): Ditto.
14133 (ROUND_TRUNC): Ditto.
14134 (ROUND_MXCSR): Ditto.
14135 (ROUND_NO_EXC): Ditto.
14136 (rint<mode>2): Use new defines instead of numerical constants.
14137 (floor<mode>2): Ditto.
14138 (ceil<mode>2): Ditto.
14139 (btrunc<mode>2): Ditto.
14140 * config/i386/i386-builtin-types.def: Define ROUND function type
14142 * config/i386/i386.c (enum ix86_builtins): Add
14143 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14144 (struct builtin_description): Add
14145 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14146 (ix86_expand_sse_round): New static function.
14147 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14149 (ix86_builtin_vectorized_function): Handle
14150 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14152 2011-03-14 Tom Tromey <tromey@redhat.com>
14154 * c-parser.c (c_parser_asm_string_literal): Clear
14155 warn_overlength_strings.
14157 2011-03-14 Tom Tromey <tromey@redhat.com>
14159 * c-parser.c (disable_extension_diagnostics): Save
14160 warn_overlength_strings.
14161 (restore_extension_diagnostics): Restore warn_overlength_strings.
14163 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14165 * BASE-VER: Change to 4.7.0.
14167 2011-03-14 Richard Guenther <rguenther@suse.de>
14169 PR middle-end/48098
14170 * tree.c (build_vector_from_val): Adjust assert to requirements
14173 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14176 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14178 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14180 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14181 terms of target_flags_explicit. Adjust copyright year.
14183 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14184 * config/rs6000/t-freebsd: New file. Add override for
14187 2011-03-13 Chris Demetriou <cgd@google.com>
14189 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14190 (-fno-diagnostics-show-option): this, to reflect current default.
14191 (-Werror=): Update text about -fno-diagnostics-show-option.
14193 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14196 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14197 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14198 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14199 mode is not V2DImode or V2DFmode.
14200 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14201 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14202 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14204 (movdi_internal64): Likewise.
14206 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14208 PR tree-optimization/47127
14209 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14211 (set_cloog_options): Same.
14212 (scop_to_clast): Same.
14213 (print_clast_stmt): Do not call cloog_state_malloc and
14215 (print_generated_program): Same.
14217 * graphite-clast-to-gimple.h (cloog_state): Declared.
14218 (scop_to_clast): Adjust declaration.
14219 * graphite.c (cloog_state): Defined here.
14220 (graphite_initialize): Call cloog_state_malloc.
14221 (graphite_finalize): Call cloog_state_free.
14223 2011-03-11 Jason Merrill <jason@redhat.com>
14225 * attribs.c (lookup_attribute_spec): Take const_tree.
14228 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14230 * config/sparc/sparc.c (sparc_option_override): Use
14231 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14233 2011-03-11 Richard Guenther <rguenther@suse.de>
14235 PR tree-optimization/48067
14236 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14237 multiplication result will be only used once on the target
14240 2011-03-11 Richard Guenther <rguenther@suse.de>
14242 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14244 2011-03-11 Richard Guenther <rguenther@suse.de>
14247 * tree.c (find_decls_types_r): Do not walk types only reachable
14248 from IDENTIFIER_NODEs.
14250 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14252 PR middle-end/48044
14253 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14254 all vnode->force_output nodes as needed.
14256 2011-03-11 Jason Merrill <jason@redhat.com>
14259 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14260 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14262 2011-03-11 Martin Jambor <mjambor@suse.cz>
14264 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14267 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14269 PR tree-optimization/48063
14270 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14271 inline functions called once if !tree_can_inline_p (node->callers).
14273 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14275 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14277 * config/score/score3.c: Delete.
14278 * config/score/score3.h: Delete.
14279 * config/score/mul-div.S: Delete.
14280 * config/score/sfp-machine.h: Add new file.
14281 * config/score/constraints.md: Add new file.
14282 * config/score/t-score-softfp: Add new file.
14283 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14284 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14285 (score7_extra_constraint): Delete.
14286 (score7_option_override): Remove unused code.
14287 * config/score/score.c: Remove score3 and score5 define and code.
14288 * config/score/score.h: Remove score3 and score5 define and code.
14289 * config/score/score.md: Remove score3 template and unusual insn.
14290 * config/score/score.opt: Remove score3 and score5 options.
14292 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14294 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14295 when _HPUX_SOURCE is defined.
14296 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14298 2011-03-10 Jason Merrill <jason@redhat.com>
14301 * stor-layout.c (layout_type): Don't set structural equality
14302 on arrays of incomplete type.
14303 * tree.c (type_hash_eq): Handle comparing them properly.
14305 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14308 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14309 result mode matches original rtl mode.
14311 2011-03-10 Nick Clifton <nickc@redhat.com>
14313 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14314 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14316 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14318 PR rtl-optimization/47866
14319 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14320 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14321 if target wasn't scalar.
14322 * function.c (assign_stack_temp_for_type): Assert that neither
14323 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14324 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14326 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14328 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14330 * config/s390/s390-protos.h (s390_label_align): New prototype.
14331 * config/s390/s390.c (s390_label_align): New function.
14332 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14334 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14337 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14338 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14339 (output_vec_const_move): Ditto.
14341 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14343 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14344 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14345 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14346 Change 'rclass' argument and result type to reg_class_t.
14347 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14349 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14351 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14352 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14353 (TARGET_MEMORY_MOVE_COST): Define.
14354 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14356 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14359 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14362 PR tree-optimization/48022
14363 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14366 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14369 * var-tracking.c (find_use_val): Return NULL for
14370 cui->sets && cui->store_p BLKmode MEMs.
14372 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14374 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14376 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14377 xstormy16_print_operand_address): Remove.
14378 * config/stormy16/stormy16.c (xstormy16_print_operand,
14379 xstormy16_print_operand_address): Make static.
14380 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14382 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14385 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14386 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14389 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14392 * cfgloopmanip.c (fix_bb_placements): Return immediately
14393 if FROM is BASE_LOOP's header.
14395 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14397 * gimplify.c (gimplify_function_tree): Fix building calls
14398 to __builtin_return_address.
14400 2011-03-07 Alan Modra <amodra@gmail.com>
14402 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14403 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14404 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14405 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14407 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14408 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14409 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14410 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14411 * config/rs6000/rs6000.c
14412 (rs6000_elf_end_indicate_exec_stack): Rename to..
14413 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14414 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14415 (rs6000_file_start): ..here.
14416 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14417 file scope variables.
14418 (call_ABI_of_interest): New function.
14419 (init_cumulative_args): Set above vars when function return value
14420 is a float, vector, or small struct.
14421 (rs6000_function_arg_advance_1): Likewise for function args.
14422 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14423 references float args.
14425 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14427 * doc/cfg.texi: Remove "See" before @ref.
14428 * doc/invoke.texi: Likewise.
14430 2011-03-05 Jason Merrill <jason@redhat.com>
14432 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14434 2011-03-05 Anthony Green <green@moxielogic.com>
14436 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14438 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14440 PR rtl-optimization/47899
14441 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14442 to flow_loop_nested_p when moving the loop upward.
14444 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14447 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14449 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14451 PR tree-optimization/47967
14452 * ipa-cp.c (build_const_val): Return NULL instead of creating
14453 VIEW_CONVERT_EXPR for mismatching sizes.
14454 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14455 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14456 give up on versioning.
14458 2011-03-05 Alan Modra <amodra@gmail.com>
14461 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14462 full cmodel medium/large lo_sum + high addresses.
14464 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14466 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14467 pool references in UNSPEC_LTREL_OFFSET.
14469 2011-03-04 Jan Hubicka <jh@suse.cz>
14472 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14473 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14474 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14476 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14477 cgraph_add_thunk): Add node pointers.
14478 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14479 associated to right node.
14480 (input_node): Update use of cgraph_same_body_alias
14481 and cgraph_add_thunk.
14483 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14485 * config/i386/i386.opt (mprefer-avx128): New flag.
14486 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14487 modes when the flag -mprefer-avx128 is on.
14489 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14491 * dwarf2out.c (compare_loc_operands): Fix address handling.
14493 2011-03-04 Alan Modra <amodra@gmail.com>
14495 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14497 2011-03-04 Richard Guenther <rguenther@suse.de>
14499 PR middle-end/47968
14500 * expmed.c (extract_bit_field_1): Prefer vector modes that
14501 vec_extract patterns can handle.
14503 2011-03-04 Richard Guenther <rguenther@suse.de>
14505 PR middle-end/47975
14506 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14508 2011-03-04 Richard Henderson <rth@redhat.com>
14510 * explow.c (emit_stack_save): Remove 'after' parameter.
14511 (emit_stack_restore): Likewise.
14512 * expr.h: Update to match.
14513 * builtins.c, calls.c, stmt.c: Likewise.
14514 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14515 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14516 * function.c (expand_function_end): Insert the emit_stack_save
14517 sequence before parm_birth_insn instead of after.
14519 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14521 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14522 (ssse3_pmaddubsw128): Ditto.
14523 (ssse3_pmaddubsw): Ditto.
14525 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14527 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14529 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14532 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14533 on TYPE_SIZE_UNIT if it is a DECL.
14536 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14537 first operand is not is_gimple_mem_ref_addr, try to fold it.
14538 If the operand still isn't is_gimple_mem_ref_addr, clear
14541 2011-03-03 Richard Guenther <rguenther@suse.de>
14543 PR middle-end/47283
14544 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14546 (refs_may_alias_p_1): For release branches return true if
14547 we are confused by our input.
14549 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14551 * config/s390/s390.c (s390_function_value): Rename to ...
14552 (s390_function_and_libcall_value): ... this.
14553 (s390_function_value): New function.
14554 (s390_libcall_value): New function.
14555 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14556 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14557 target macro definitions.
14558 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14560 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14562 * config/i386/freebsd64.h (CC1_SPEC): Define.
14563 * config/i386/linux64.h (CC1_SPEC): Define.
14564 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14566 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14568 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14570 * config/stormy16/stormy16.c: Include reload.h.
14571 (xstormy16_memory_move_cost): New function.
14572 (TARGET_MEMORY_MOVE_COST): Define.
14574 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14576 PR rtl-optimization/47925
14577 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14578 with side effects. Remove the more-specific check for volatile asms.
14580 2011-03-02 Alan Modra <amodra@gmail.com>
14583 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14584 toc relative addresses for valid offsets.
14586 2011-03-01 Richard Guenther <rguenther@suse.de>
14588 PR tree-optimization/47890
14589 * tree-vect-loop.c (get_initial_def_for_induction): Set
14590 related stmt properly.
14592 2011-03-01 Richard Guenther <rguenther@suse.de>
14595 * lto-streamer.c (lto_record_common_node): Also register
14596 the canonical type.
14598 2011-03-01 Richard Guenther <rguenther@suse.de>
14601 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14602 Do not stream DECL_ABSTRACT_ORIGIN.
14603 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14604 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14605 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14606 Do not stream DECL_ABSTRACT_ORIGIN.
14607 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14608 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14610 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14612 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14613 FUNCTION_VALUE_REGNO_P): Remove.
14614 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14615 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14616 Add 'outgoing' argument.
14617 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14619 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14620 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14622 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14625 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14626 (lookup_filename): Likewise.
14627 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14629 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14630 Jakub Jelinek <jakub@redhat.com>
14632 PR middle-end/47893
14633 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14634 (assign_stack_local_1): Change last argument type to int.
14635 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14636 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14637 don't record padding space into frame_space_list nor use those areas.
14638 (assign_stack_local): Adjust caller.
14639 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14640 of assign_stack_local, pass 0 as last argument.
14641 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14644 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14647 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14648 Use target address_mode and pointer_mode hooks instead of hardcoded
14649 Pmode and ptr_mode. Handle some simple cases of extending if
14650 POINTERS_EXTEND_UNSIGNED < 0.
14651 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14652 Call convert_debug_memory_address.
14653 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14654 convert_debug_memory_address.
14656 PR middle-end/46790
14657 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14658 * configure: Regenerated.
14659 * config.in: Regenerated.
14660 * varasm.c (default_function_section): Return NULL
14661 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14663 2011-02-28 Martin Jambor <mjambor@suse.cz>
14665 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14666 the description to match the printed values.
14668 2011-02-28 Richard Guenther <rguenther@suse.de>
14670 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14671 of the copied scope tree.
14673 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14675 * doc/extend.texi (Function Attributes): Avoid deeply (and
14676 wrongly) nested tables.
14678 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14680 PR middle-end/47903
14681 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14682 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14683 r isn't op0 nor op1.
14685 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14687 * config/avr/avr.md: Remove magic comment for emacs.
14689 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14692 * config/avr/avr.c (avr_option_override): Use error on bad options.
14693 (avr_help): New function.
14694 (TARGET_HELP): Define.
14696 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14699 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14700 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14702 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14704 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14705 (ARM Options): Ditto.
14706 (i386 and x86-64 Options): Ditto.
14707 (RX Options): Ditto.
14708 (SPARC Options): Ditto.
14710 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14712 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14713 FreeBSD 6 and later. Generally use cpu generic.
14715 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14717 * doc/cpp.texi: Update copyright years.
14719 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14722 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14724 2011-02-25 Jon Beniston <jon@beniston.com>
14727 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14728 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14729 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14730 (lm32_block_move_inline): Add type cast to remove warning.
14731 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14732 (gen_int_relational): Move declarations to start of function.
14734 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14736 PR tree-optimization/45470
14737 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14738 can throw internally only.
14739 * tree-vect-stmts.c (vectorizable_call): Likewise.
14741 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14743 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14744 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14745 * config/stormy16/stormy16-protos.h
14746 (xstormy16_preferred_reload_class): Remove.
14747 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14748 static. Change 'rclass' argument and return type to reg_class_t.
14749 (TARGET_PREFERRED_RELOAD_CLASS,
14750 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14752 2011-02-24 Richard Guenther <rguenther@suse.de>
14754 * lto-streamer-in.c (input_bb): Do not find referenced vars
14755 in debug statements.
14757 2011-02-23 Jason Merrill <jason@redhat.com>
14759 * common.opt (fabi-version): Document v5 and v6.
14761 2011-02-23 Richard Guenther <rguenther@suse.de>
14763 PR tree-optimization/47849
14764 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14766 2011-02-23 Jie Zhang <jie@codesourcery.com>
14768 * opts-common.c (decode_cmdline_option): Print empty string
14769 argument as "" in decoded->orig_option_with_args_text.
14770 * gcc.c (execute): Print empty string argument as ""
14771 in the verbose output.
14772 (do_spec_1): Keep empty string argument.
14774 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14776 * config.gcc: Declare score-* and crx-* obsolete.
14778 2011-02-23 Jie Zhang <jie@codesourcery.com>
14780 PR rtl-optimization/47763
14781 * web.c (web_main): Ignore naked clobber when replacing register.
14783 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14785 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14788 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14791 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14793 2011-02-22 Mike Stump <mikestump@comcast.net>
14795 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14797 * configure: Regenerate.
14799 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14801 PR rtl-optimization/46002
14802 * ira-color.c (update_copy_costs): Change class intersection
14803 test to reg_class_contents[] test of 'hard_regno'.
14805 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14807 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14808 than Driver option.
14809 * config/hpux11.opt (mt): Likewise.
14810 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14811 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14812 * config/vax/elf.opt (mno-asm-pic): Likewise.
14813 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14815 2011-02-21 Mike Stump <mikestump@comcast.net>
14818 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14819 tree so we can get save the type.
14820 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14821 for CFString instead of trying to use past the end of the builtins.
14822 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14823 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14824 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14825 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14826 Rename to darwin_builtin_cfstring.
14827 (darwin_init_cfstring_builtins): Return the built type.
14829 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14832 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14833 (_mm256_insert_epi64): Use _mm_insert_epi64.
14835 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14837 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14838 * config/stormy16/stormy16-protos.h
14839 (xstormy16_mode_dependent_address_p): Remove.
14840 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14841 Make static. Change return type to bool. Change argument type to
14842 const_rtx. Remove dead code.
14843 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14845 2011-02-21 Richard Guenther <rguenther@suse.de>
14848 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14849 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14850 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14852 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14853 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14855 2011-02-20 Richard Guenther <rguenther@suse.de>
14858 * tree.c (free_lang_data_in_decl): Clean builtins from
14859 the TU decl BLOCK_VARS.
14861 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14865 * haifa-sched.c (fix_tick_ready): Skip tick computation
14868 2011-02-19 Richard Guenther <rguenther@suse.de>
14871 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14872 Remove lazy BLOCK_VARS streaming.
14873 (lto_input_ts_block_tree_pointers): Likewise.
14874 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14876 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14878 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14880 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14882 * config/i386/biarch32.h, config/i386/mach.h,
14883 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14885 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14888 * config/i386/i386.md (peephole2 for shift and plus): Use
14889 operands[1] original mode in the first insn.
14891 2011-02-18 Mike Stump <mikestump@comcast.net>
14893 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14895 2011-02-18 Jan Hubicka <jh@suse.cz>
14897 PR middle-end/47788
14898 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14899 to zero when the function is not inlinable at all.
14901 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14903 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14904 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14905 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14906 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14907 * config/pa/t-pa64: Likewise.
14908 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14910 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14913 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14915 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14918 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14920 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14922 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14923 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14924 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14925 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14926 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14927 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14928 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14929 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14930 m32r_legitimate_address_p): New functions.
14931 * config/m32r/constraints.md (constraint "S"): Don't use
14932 STORE_PREINC_PREDEC_P.
14933 (constraint "U"): Don't use LOAD_POSTINC_P.
14935 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14937 PR rtl-optimization/46178
14938 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14939 compute ira_hard_regno_cover_class[].
14941 2011-02-18 Richard Guenther <rguenther@suse.de>
14944 * lto-streamer.h (lto_global_var_decls): Declare.
14945 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14946 statics for global var processing.
14948 2011-02-18 Richard Guenther <rguenther@suse.de>
14950 PR tree-optimization/47737
14951 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14952 edge dominance check.
14954 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14957 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14958 avoid invalid rtx sharing.
14960 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14962 * doc/cpp.texi (Obsolete Features): Add background on the
14963 origin of assertions.
14965 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14967 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14969 * config/darwin.c (output_objc_section_asm_op): Added support for
14971 (is_objc_metadata): New.
14972 (darwin_objc2_section): New.
14973 (darwin_objc1_section): New.
14974 (machopic_select_section): Added support for ABI v1 and v2.
14975 (darwin_emit_objc_zeroed): New.
14976 (darwin_output_aligned_bss): Detect objc metadata and treat it
14978 (darwin_asm_output_aligned_decl_common): Same.
14979 (darwin_asm_output_aligned_decl_local): Same.
14980 * config/darwin-sections.def: Updated for ABI v1 and v2.
14981 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14982 compiling Objective-C code for the NeXT runtime, default to using
14983 ABI version 0 for 32-bit, and version 2 for 64-bit.
14985 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14987 * common.opt (optimize_fast): New Variable.
14988 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14989 instead of local variable ofast.
14991 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14993 * doc/invoke.texi (fobjc-abi-version): Documented.
14994 (fobjc-nilcheck): Documented.
14995 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14998 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15001 * common.opt (export-dynamic): New Driver option.
15002 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15004 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15006 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15008 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15009 Jan Hubicka <jh@suse.cz>
15013 * cfgexpand.c (account_used_vars_for_block): Remove.
15014 (estimated_stack_frame_size): Use referenced vars.
15015 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15016 that were referenced in the original function. Test src_fn
15017 rather than cfun. Drop redundant get_var_ann.
15018 (setup_one_parameter): Drop redundant get_var_ann.
15019 (declare_return_variable): Likewise.
15020 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15021 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15022 * ipa-inline.c (compute_inline_parameters): Do not compute
15023 disregard_inline_limits here.
15024 (compute_inlinable_for_current, pass_inlinable): New.
15025 (pass_inline_parameters): Require PROP_referenced_vars.
15026 * cgraphunit.c (cgraph_process_new_functions): Don't run
15027 compute_inline_parameters explicitly unless function is in SSA form.
15028 (cgraph_analyze_function): Set .disregard_inline_limits.
15029 * tree-sra.c (convert_callers): Compute inliner parameters
15030 only for functions already in SSA form.
15032 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15034 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15035 -mlittle-endian-data.
15037 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15039 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15040 -mno-fpu, not -fpu and -no-fpu.
15041 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15042 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15044 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15047 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15048 input reload with PLUS RTX.
15050 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15052 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15053 of InverseVar(MDMX).
15055 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15057 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15060 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15062 * config/mn10300/mn10300.opt (mno-crt0): New.
15064 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15066 * config/m68k/uclinux.opt (static-libc): New Driver option.
15068 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15070 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15072 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15074 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15075 %{muser-extend-enabled}.
15077 2011-02-16 Richard Guenther <rguenther@suse.de>
15079 PR tree-optimization/47738
15080 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15081 the TODO from tree_predictive_commoning.
15083 2011-02-15 Jeff Law <law@redhat.com>
15086 2011-01-25 Jeff Law <law@redhat.com>
15088 PR rtl-optimization/37273
15089 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15090 handle them like argument loads from stack slots. Do not double
15091 count memory for memory constants and argument loads from stack slots.
15093 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15095 PR middle-end/47725
15096 * combine.c (cant_combine_insn_p): Revert the last change.
15098 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15101 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15102 mode for vector constants. Remove code that checks for TImode.
15104 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15108 * cgraph.h (compute_inline_parameters): Return void.
15109 * ipa-inline.c (compute_inline_parameters): Adjust.
15111 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15115 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15117 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15118 * ipa-inline.c (compute_inline_parameters): Adjust.
15120 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15124 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15125 Adjust all users. Pass FN to...
15126 * tree-flow-inline.h (first_referenced_var): ... this. Add
15128 * ipa-struct-reorg.c: Adjust.
15129 * tree-dfa.c: Adjust.
15130 * tree-into-ssa.c: Adjust.
15131 * tree-sra.c: Adjust.
15132 * tree-ssa-alias.c: Adjust.
15133 * tree-ssa-live.c: Adjust.
15134 * tree-ssa.c: Adjust.
15135 * tree-ssanames.c: Adjust.
15136 * tree-tailcall.c: Adjust.
15138 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15142 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15143 Adjust all callers.
15144 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15145 * tree-flow-inline.h: Adjust.
15146 * gimple-pretty-print.c: Adjust.
15147 * tree-into-ssa.c: Adjust.
15148 * tree-ssa.c: Adjust.
15149 * cfgexpand.c: Adjust.
15151 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15153 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15154 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15155 (EXTRA_CONSTRAINT): Delete.
15156 * config/iq2000/constraints.md: New file.
15157 * config/iq2000/iq2000.md: Include it.
15158 (define_insn ""): Delete.
15159 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15160 unsupported constraint letters from patterns.
15161 (call_value, call_value_internal1): Likewise.
15162 (call_value_multiple_internal1): Likewise.
15164 2011-02-15 Nick Clifton <nickc@redhat.com>
15166 * config/mn10300/mn10300.c: Include tm-constrs.h.
15167 (struct liw_data): New data structure describing an LIW candidate
15169 (extract_bundle): Use struct liw_data. Allow small integer
15170 operands for some instructions.
15171 (check_liw_constraints): Use struct liw_data. Remove swapped
15172 parameter. Add comments describing the checks. Fix bug when
15173 assigning the source of liw1 to the source of liw2.
15174 (liw_candidate): Delete. Code moved into extract_bundle.
15175 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15177 * config/mn10300/predicates.md (liw_operand): New predicate.
15178 Allows registers and small integer constants.
15179 * config/mn10300/constraints.md (O): New constraint. Accetps
15180 integers in the range -8 to +7 inclusive.
15181 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15182 for moving a small integer into a register. Give this alternative
15184 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15185 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15186 using the J,K,L and M constraints,
15187 (liw): Remove SI mode on second operands to allow for HI and QI
15189 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15192 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15194 PR middle-end/47725
15195 * combine.c (cant_combine_insn_p): Check zero/sign extended
15198 2011-02-15 Richard Guenther <rguenther@suse.de>
15200 PR tree-optimization/47743
15201 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15202 for a non-type-compatible VN lookup bail out.
15204 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15206 * config/fr30/constraints.md: New file.
15207 * config/fr30/fr30.md: Include it.
15208 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15209 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15210 (EXTRA_CONSTRAINT): Delete.
15212 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15214 * config/frv/constraints.md: New file.
15215 * config/frv/predicates.md: Include it.
15216 * config/frv/frv.c (reg_class_from_letter): Delete.
15217 (frv_option_override): Don't initialize it.
15218 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15219 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15220 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15221 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15222 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15223 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15224 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15225 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15226 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15227 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15228 (REG_CLASS_FROM_CONSTRAINT): Delete.
15230 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15232 PR middle-end/47581
15233 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15234 if frame size is 0 in a leaf function.
15236 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15239 * config/alpha/host-osf.c: New file.
15240 * config/alpha/x-osf: New file.
15241 * config.host (alpha*-dec-osf*): Use it.
15243 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15245 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15246 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15247 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15248 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15250 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15252 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15254 * config/stormy16/constraints.md: New file.
15255 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15256 Use satisfies_constraint_Q and satisfies_constraint_R.
15257 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15259 (xstormy16_legitiamte_address_p): Declare.
15260 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15261 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15262 (EXTRA_CONSTRAINT): Delete.
15263 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15265 (xstormy16_extra_constraint_p): Delete.
15267 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15269 PR tree-optimization/46494
15270 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15271 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15272 (pass_rtl_loop_done): Add TODO_verify_flow.
15273 * fwprop.c (pass_rtl_fwprop): Likewise.
15274 * modulo-sched.c (pass_sms): Likewise.
15275 * tree-ssa-dom.c (pass_dominator): Likewise.
15276 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15277 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15278 (pass_tree_loop_done): Likewise.
15279 * tree-ssa-pre.c (execute_pre): Likewise.
15280 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15281 * tree-ssa-sink.c (pass_sink_code): Likewise.
15282 * tree-vrp.c (pass_vrp): Likewise.
15284 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15286 * config/v850/constraints.md: New file.
15287 * config/v850/v850.md: Include it.
15288 * config/v850/predicates.md (reg_or_0_operand): Use
15289 satisfies_constraint_G.
15290 (special_symbolref_operand): Use satisfies_constraint_K.
15291 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15292 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15293 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15294 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15295 (EXTRA_CONSTRAINT): Delete.
15296 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15297 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15298 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15300 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15303 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15306 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15308 * config/mcore/constraints.md: New file.
15309 * config/mcore/mcore.md: Include it.
15310 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15311 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15312 (REG_CLASS_FROM_LETTER): Delete.
15313 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15314 insn_const_int_ok_for_constraint.
15315 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15316 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15317 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15318 (EXTRA_CONSTRAINT): Delete.
15320 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15323 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15324 (IS_SIGHANDLER): Define.
15325 (sparc64_is_sighandler): New function, split off from
15326 sparc64_fallback_frame_state.
15327 (sparc_is_sighandler): New function, split off from
15328 sparc_fallback_frame_state.
15329 (sparc64_fallback_frame_state): Merge with ...
15330 (sparc_fallback_frame_state): ... this into ...
15331 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15332 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15333 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15334 stack instead of hardcoded offsets.
15336 2011-02-14 Andriy Gapon <avg@freebsd.org>
15339 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15341 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15343 * configure: Regenerate.
15345 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15348 * gcc.c (asm_options): Correct spec matching --target-help.
15350 2011-02-12 Martin Jambor <mjambor@suse.cz>
15352 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15353 to gimple call error.
15355 2011-02-12 Mike Stump <mikestump@comcast.net>
15357 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15358 comments in backslash regions.
15360 2011-02-12 Mike Stump <mikestump@comcast.net>
15361 Jakub Jelinek <jakub@redhat.com>
15362 Iain Sandoe <iains@gcc.gnu.org>
15365 * dwarf2out.c (output_cfa_loc): When required, apply the
15366 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15367 (output_loc_sequence): Likewise.
15368 (output_loc_operands_raw): Likewise.
15369 (output_loc_sequence_raw): Likewise.
15370 (output_cfa_loc): Likewise.
15371 (output_loc_list): Suppress register number adjustment when
15372 calling output_loc_sequence()
15373 (output_die): Likewise.
15375 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15377 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15379 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15380 xtensa_memory_move_cost): New functions.
15381 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15383 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15386 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15387 in the current directory.
15388 * configure: Rebuilt.
15390 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15392 * config/darwin.c (darwin_override_options): Add a hunk missed
15393 from the commit of r168571. Trim comment line lengths and
15394 correct indents of the preceding block.
15396 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15398 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15401 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15403 * common.opt (nostartfiles): New Driver option.
15405 2011-02-11 Xinliang David Li <davidxl@google.com>
15407 PR tree-optimization/47707
15408 * tree-chrec.c (convert_affine_scev): Keep type precision.
15410 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15412 PR tree-optimization/47420
15413 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15415 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15417 PR rtl-optimization/47614
15418 * rtl.h (check_for_inc_dec): Declare.
15419 * dse.c (check_for_inc_dec): Externalize...
15420 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15421 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15423 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15426 * gcc.c (main): Do not compile inputs if there were errors in
15428 * opts-common.c (read_cmdline_option): Check for wrong language
15429 after other error checks.
15431 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15433 * cgraph.c: Fix comment typos.
15434 * cgraph.h: Likewise.
15435 * cgraphunit.c: Likewise.
15436 * ipa-cp.c: Likewise.
15437 * ipa-inline.c: Likewise.
15438 * ipa-prop.c: Likewise.
15439 * ipa-pure-const.c: Likewise.
15440 * ipa-ref.c: Likewise.
15441 * ipa-reference.c: Likewise.
15443 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15446 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15448 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15451 * doc/sourcebuild.texi (Require Support): Document
15452 dg-require-ascii-locale.
15454 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15456 * doc/lto.texi (Write summary): Fix missing parentheses.
15458 2011-02-10 DJ Delorie <dj@redhat.com>
15460 * config/m32c/m32c.c (m32c_option_override): Disable
15461 -fcombine-stack-adjustments until flag value tracking and compare
15462 optimization can be rewritten.
15464 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15466 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15468 (PROCESSOR_DEFAULT64): Likewise.
15470 2011-02-10 Richard Henderson <rth@redhat.com>
15472 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15473 change from 2011-02-03.
15474 * config/rx/rx.c (flags_from_code): Likewise.
15475 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15476 is valid, n/pz otherwise.
15477 (rx_select_cc_mode): Return CCmode if Y is not zero.
15479 2011-02-10 Richard Guenther <rguenther@suse.de>
15481 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15483 2011-02-10 Richard Guenther <rguenther@suse.de>
15485 PR tree-optimization/47677
15486 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15488 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15491 * combine.c (make_compound_operation): Only change shifts into
15492 multiplication for SCALAR_INT_MODE_P.
15494 2011-02-10 Jie Zhang <jie@codesourcery.com>
15498 2011-02-05 Jie Zhang <jie@codesourcery.com>
15500 * web.c (entry_register): Don't clobber the number of the
15501 first uninitialized reference in used[].
15503 2011-02-09 Richard Guenther <rguenther@suse.de>
15505 PR tree-optimization/47664
15506 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15509 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15513 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15515 (PROCESSOR_DEFAULT64): Same.
15516 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15518 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15520 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15522 2011-02-09 Martin Jambor <mjambor@suse.cz>
15524 PR middle-end/45505
15525 * tree-sra.c (struct access): New flags grp_scalar_read and
15526 grp_scalar_write. Changed description of assignment read and write
15528 (dump_access): Dump new flags, reorder all of them.
15529 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15530 to detect multiple scalar reads.
15531 (analyze_access_subtree): Use the new scalar read write flags instead
15532 of the old flags. Adjusted comments.
15534 2011-02-08 DJ Delorie <dj@redhat.com>
15537 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15540 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15542 * config/m68k/uclinux.opt: New.
15543 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15545 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15547 * config/cris/elf.opt (sim): New Driver option.
15549 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15551 * config/xtensa/elf.opt: New.
15552 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15554 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15556 * config/vax/elf.opt: New.
15557 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15559 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15561 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15563 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15565 * config/gnu-user.opt: New.
15566 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15567 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15568 *-*-uclinux*): Use gnu-user.opt.
15570 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15572 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15573 * config/i386/gnu.h (CPP_SPEC): Likewise.
15575 2011-02-08 Ian Lance Taylor <iant@google.com>
15577 * common.opt (fcx-limited-range): Add SetByCombined flag.
15578 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15579 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15580 (fassociative-math, freciprocal-math): Likewise.
15581 (funsafe-math-optimizations): Likewise.
15582 * opth-gen.awk: Handle SetByCombined.
15583 * optc-gen.awk: Likewise.
15584 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15585 (set_unsafe_math_optimizations_flags): Likewise.
15586 * doc/options.texi (Option properties): Document SetByCombined.
15588 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15590 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15591 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15592 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15593 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15594 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15596 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15598 PR tree-optimization/46834
15599 PR tree-optimization/46994
15600 PR tree-optimization/46995
15601 * graphite-sese-to-poly.c (used_outside_reduction): New.
15602 (detect_commutative_reduction): Call used_outside_reduction.
15603 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15604 translate_scalar_reduction_to_array only when at least one
15605 loop-phi/close-phi tuple has been detected.
15607 2011-02-08 Richard Guenther <rguenther@suse.de>
15609 PR middle-end/47639
15610 * tree-vect-generic.c (expand_vector_operations_1): Update
15612 (expand_vector_operations): ... not here. Cleanup EH info
15613 and the CFG if required.
15615 2011-02-08 Richard Guenther <rguenther@suse.de>
15617 PR tree-optimization/47641
15618 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15619 require type compatibility.
15621 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15623 * gimple-low.c (lower_function_body): Don't remove the location of
15624 the return statement here.
15625 (lower_gimple_return): Do it here instead but only if the return
15626 statement is actually used twice.
15628 2011-02-08 Richard Guenther <rguenther@suse.de>
15630 PR tree-optimization/47632
15631 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15632 unused up_to_stmt parameter, return whether cfg-cleanup is
15633 necessary, remove EH info properly.
15634 (forward_propagate_into_gimple_cond): Adjust caller.
15635 (forward_propagate_into_cond): Likewise.
15636 (forward_propagate_comparison): Likewise.
15637 (tree_ssa_forward_propagate_single_use_vars): Make
15638 forward_propagate_comparison case similar to the two others.
15640 2011-02-08 Nick Clifton <nickc@redhat.com>
15642 * config/mn10300/mn10300.opt (mliw): New command line option.
15643 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15644 (liw_bundling): New automaton.
15645 (liw): New attribute.
15646 (liw_op): New attribute.
15647 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15648 (movsi_internal): Add LIW attributes.
15649 (andsi3): Likewise.
15650 (iorsi3): Likewise.
15651 (xorsi3): Likewise.
15652 (addsi3): Separate register and immediate alternatives.
15653 Add LIW attributes.
15654 (subsi3): Likewise.
15656 (aslsi3): Likewise.
15657 (lshrsi3): Likewise.
15658 (ashrsi3): Likewise.
15659 (liw): New pattern.
15660 * config/mn10300/mn10300.c (liw_op_names): New
15661 (mn10300_print_operand): Handle 'W' operand descriptor.
15662 (extract_bundle): New function.
15663 (check_liw_constraints): New function.
15664 (liw_candidate): New function.
15665 (mn10300_bundle_liw): New function.
15666 (mn10300_reorg): New function.
15667 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15668 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15669 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15670 __LIW__ or __NO_LIW__.
15671 * doc/invoke.texi: Describe the -mliw command line option.
15673 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15675 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15676 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15677 pthread_mutex_unlock): Remove.
15678 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15679 * config/pa/t-pa64: Likewise.
15680 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15681 shared libc if not linking against libpthread.
15682 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15684 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15687 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15688 on 10.6 and later to ensure that we always use the unwinder from
15689 the system. Only add -no_compact_unwind when tarteting darwin
15692 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15695 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15696 (vec_interleave_lowv2sf): Ditto.
15697 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15698 (vec_extract_oddv2sf): Ditto.
15700 2011-02-07 Mike Stump <mikestump@comcast.net>
15703 Add __ieee_divdc3 entry point.
15704 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15706 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15707 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15708 * config/darwin.c (darwin_rename_builtins): Add.
15709 * config/darwin-protos.h (darwin_rename_builtins): Add.
15711 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15714 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15717 2011-02-07 Mike Stump <mikestump@comcast.net>
15719 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15721 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15724 * config/avr/libgcc.S (exit): Move .endfunc
15726 2011-02-07 Richard Guenther <rguenther@suse.de>
15728 PR tree-optimization/47615
15729 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15730 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15731 (run_scc_vn): Initialize it.
15732 (visit_reference_op_load): Use it.
15733 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15735 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15737 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15738 DImode trapping arithmetic libfuncs.
15740 2011-02-07 Richard Guenther <rguenther@suse.de>
15742 PR tree-optimization/47621
15743 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15745 (execute_update_addresses_taken): ... here. Make it more
15746 conservative in what we accept.
15748 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15750 * config/sparc/freebsd.h (ASM_SPEC): Define.
15751 * config/sparc/vxworks.h (ASM_SPEC): Define.
15753 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15755 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15757 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15759 * doc/invoke.texi: Remove reference to compiler internals from
15760 user documentation.
15762 * reg-notes.def: Remove REG_VALUE_PROFILE.
15763 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15765 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15767 PR middle-end/47610
15768 * varasm.c (default_section_type_flags): If decl is NULL,
15769 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15771 2011-02-05 Jie Zhang <jie@codesourcery.com>
15774 * web.c (entry_register): Don't clobber the number of the
15775 first uninitialized reference in used[].
15777 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15779 PR tree-optimization/46194
15780 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15781 (build_classic_dist_vector_1): Do not represent classic distance
15782 vectors when the access functions are variating in different loops.
15784 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15786 * config/mips/iris6.opt: New.
15787 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15789 2011-02-04 Richard Henderson <rth@redhat.com>
15790 Steve Ellcey <sje@cup.hp.com>
15793 * config/ia64/predicates.md (mux1_brcst_element): New.
15794 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15795 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15796 (ia64_unpack_sign): New.
15797 (ia64_expand_unpack): Rewrite using new routines.
15798 (ia64_expand_widen_sum): Ditto.
15799 (ia64_expand_dot_prod_v8qi): Ditto.
15800 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15801 routines, add endian check.
15802 (pmpy2_even): Rename from pmpy2_r, add endian check.
15803 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15804 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15805 (vec_widen_smult_hi_v4hi): Ditto.
15806 (vec_widen_umult_lo_v4hi): Ditto.
15807 (vec_widen_umult_hi_v4hi): Ditto.
15808 (mulv2si3): Change endian checks.
15809 (sdot_prodv4hi): Rewrite with new calls.
15810 (udot_prodv4hi): New.
15811 (vec_pack_ssat_v4hi): Add endian check.
15812 (vec_pack_usat_v4hi): Ditto.
15813 (vec_pack_ssat_v2si): Ditto.
15814 (max1_even): Rename from max1_r, add endian check.
15815 (max1_odd): Rename from max1_l, add endian check.
15816 (*mux1_rev): Format change.
15817 (*mux1_mix): Ditto.
15818 (*mux1_shuf): Ditto.
15819 (*mux1_alt): Ditto.
15820 (*mux1_brcst_v8qi): Use new predicate.
15821 (vec_extract_evenv8qi): Remove endian check.
15822 (vec_extract_oddv8qi): Ditto.
15823 (vec_interleave_lowv4hi): Format change.
15824 (vec_interleave_highv4hi): Ditto.
15825 (mix2_even): Rename from mix2_r, add endian check.
15826 (mix2_odd): Rename from mux2_l, add endian check.
15827 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15828 (vec_extract_evenodd_helper): Format change.
15829 (vec_extract_evenv4hi): Remove endian check.
15830 (vec_extract_oddv4hi): Remove endian check.
15831 (vec_interleave_lowv2si): Format change.
15832 (vec_interleave_highv2si): Format change.
15833 (vec_initv2si): Remove endian check.
15834 (vecinit_v2si): Add endian check.
15835 (reduc_splus_v2sf): Add endian check.
15836 (reduc_smax_v2sf): Ditto.
15837 (reduc_smin_v2sf): Ditto.
15838 (vec_initv2sf): Remove endian check.
15839 (fpack): Add endian check.
15840 (fswap): Add endian check.
15841 (vec_interleave_highv2sf): Add endian check.
15842 (vec_interleave_lowv2sf): Add endian check.
15843 (fmix_lr): Add endian check.
15844 (vec_setv2sf): Format change.
15845 (*vec_extractv2sf_0_be): Use shift to extract operand.
15846 (*vec_extractv2sf_1_be): New.
15847 (vec_pack_trunc_v4hi): Add endian check.
15848 (vec_pack_trunc_v2si): Format change.
15850 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15852 PR inline-asm/23200
15853 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15854 do bb, locus and block comparison and disallow loads if it is not set.
15855 (stmt_is_replaceable_p): New function.
15856 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15858 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15859 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15861 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15863 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15865 * config/rs6000/xilinx.opt: New.
15866 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15868 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15870 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15872 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15874 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15875 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15876 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15877 secondary_reload_info, xtensa_secondary_reload): Remove.
15878 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15879 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15880 (xtensa_preferred_reload_class): Make static. Change return and
15881 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15882 Use CONST_DOUBLE_P predicate.
15883 (xtensa_preferred_output_reload_class): New function.
15884 (xtensa_secondary_reload): Make static.
15886 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15888 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15889 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15890 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15892 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15894 PR middle-end/31490
15895 * output.h (SECTION_RELRO): Define.
15896 (SECTION_MACH_DEP): Adjust.
15897 (get_variable_section): New prototype.
15898 * varpool.c (varpool_finalize_named_section_flags): New function.
15899 (varpool_assemble_pending_decls): Call it.
15900 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15901 * cgraphunit.c (cgraph_output_in_order): Call
15902 varpool_finalize_named_section_flags.
15903 * varasm.c (get_section): Allow section flags conflicts between
15904 relro and read-only sections if the section hasn't been declared yet.
15905 Set SECTION_OVERRIDE after diagnosing section type conflict.
15906 (get_variable_section): No longer static.
15907 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15908 readonly sections that need relocations.
15909 (decl_readonly_section_1): New function.
15910 (decl_readonly_section): Use it.
15913 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15914 Steve Ellcey <sje@cup.hp.com>
15916 PR middle-end/31490
15917 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15918 if section attribute used.
15920 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15922 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15923 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15924 (darwin_init_sections): Remove assertion.
15926 2011-02-03 Nick Clifton <nickc@redhat.com>
15928 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15930 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15931 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15932 instead of "n" and "pz".
15933 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15936 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15939 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15940 fma, expand FMA_EXPR as fma{,f,l} call.
15943 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15944 copy them into a unsigned char variable and pass address of it to
15945 lto_output_data_stream.
15948 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15949 around backend_init_target and lang_dependent_init_target calls.
15950 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15951 (verify_cgraph_node): Don't call set_cfun here. Use
15952 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15953 Set error_found for incorrectly represented calls to thunks.
15955 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15958 PR rtl-optimization/43494
15959 * rtl.h (for_each_inc_dec_fn): New type.
15960 (for_each_inc_dec): Declare.
15961 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15962 (for_each_inc_dec_find_inc_dec): New fn.
15963 (for_each_inc_dec_find_mem): New fn.
15964 (for_each_inc_dec): New fn.
15965 * dse.c (struct insn_size): Remove.
15966 (replace_inc_dec, replace_inc_dec_mem): Remove.
15967 (emit_inc_dec_insn_before): New fn.
15968 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15969 (canon_address): Pass mem modes to cselib_lookup.
15970 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15971 (cselib_lookup_from_insn): Likewise.
15972 (cselib_subst_to_values): Likewise.
15973 * cselib.c (find_slot_memmode): New var.
15974 (cselib_find_slot): New fn. Use it instead of
15975 htab_find_slot_with_hash everywhere.
15976 (entry_and_rtx_equal_p): Use find_slot_memmode.
15977 (autoinc_split): New fn.
15978 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15979 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15980 Deal with autoinc. Special-case recursion into MEMs.
15981 (cselib_hash_rtx): Likewise.
15982 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15983 address and MEM modes.
15984 (cselib_subst_to_values): Add memmode, pass it on.
15986 (cselib_lookup): Add memmode argument, pass it on.
15987 (cselib_lookup_from_insn): Add memmode.
15988 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15989 (struct cselib_record_autoinc_data): New.
15990 (cselib_record_autoinc_cb): New fn.
15991 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15992 mode to cselib_lookup. Reset autoinced REGs here instead of...
15993 (cselib_process_insn): ... here.
15994 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15996 (add_uses): Likewise, also to cselib_subst_to_values.
15997 (add_stores): Likewise.
15998 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15999 cselib_subst_to_values.
16000 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16001 * gcse.c (do_local_cprop): Adjusted.
16002 * postreload.c (reload_cse_simplify_set): Adjusted.
16003 (reload_cse_simplify_operands): Adjusted.
16004 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16006 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16008 PR tree-optimization/45122
16009 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16010 unsafe assumptions when there's more than one loop exit.
16012 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16015 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16016 Document using vector double with the load/store builtins, and
16017 that the load/store builtins always use Altivec instructions.
16019 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16020 to use altivec memory instructions, even on VSX.
16021 (vector_altivec_store_<mode>): Ditto.
16023 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16026 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16027 V2DF, V2DI support to load/store overloaded builtins.
16029 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16030 altivec load/store builtins for V2DF/V2DI types.
16032 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16033 set avoid indexed addresses on power6 if -maltivec.
16034 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16035 vector_altivec_load/vector_altivec_store builtins.
16036 (altivec_expand_st_builtin): Ditto.
16037 (altivec_expand_builtin): Add VSX memory builtins.
16038 (rs6000_init_builtins): Add V2DI types to internal types.
16039 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16040 load/store builtins.
16041 (rs6000_address_for_altivec): Insure memory address is appropriate
16044 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16045 vec_vsx_ld and vec_vsx_st.
16046 (vsx_store_<mode>): Ditto.
16048 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16049 variables to hold long long types for VSX vector memory builtins.
16050 (RS6000_BTI_unsigned_long_long): Ditto.
16051 (long_long_integer_type_internal_node): Ditti.
16052 (long_long_unsigned_type_internal_node): Ditti.
16054 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16055 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16056 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16058 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16060 (vec_vsx_st): Ditto.
16062 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16064 * config/pa/pa-hpux10.opt: New.
16065 * config/hpux11.opt (pthread): New Driver option.
16066 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16067 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16069 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16071 * config/ia64/vms.opt: New.
16072 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16074 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16077 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16078 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16079 generator functions.
16080 (vsx_floatuns<VSi><mode>2): Ditto.
16081 (vsx_fix_trunc<mode><VSi>2): Ditto.
16082 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16084 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16086 * config/i386/djgpp.opt (posix): New Driver option.
16088 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16090 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16091 Move to the unsupported targets list.
16093 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16095 PR rtl-optimization/47525
16096 * df-scan.c: Update copyright years.
16097 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16098 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16100 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16102 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16103 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16104 (ASM_OUTPUT_ASCII): Remove.
16105 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16107 2011-02-02 Jeff Law <law@redhat.com>
16109 PR middle-end/47543
16110 * reload.c (find_reloads_address): Handle reg+d address where both
16111 components are invalid by reloading the entire address.
16113 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16114 Richard Guenther <rguenther@suse.de>
16116 PR tree-optimization/40979
16118 * passes.c (init_optimization_passes): After LIM call copy_prop
16119 and DCE to clean up.
16120 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16122 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16124 PR tree-optimization/47576
16125 PR tree-optimization/47555
16126 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16127 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16128 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16129 * tree-scalar-evolution.c (follow_ssa_edge): Use
16130 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16132 2011-02-02 Richard Guenther <rguenther@suse.de>
16134 PR tree-optimization/47566
16135 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16137 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16141 * tree-inline.c (declare_return_variable): Remove unused caller
16146 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16147 * cfgexpand.c (account_used_vars_for_block): Use them.
16148 * tree-nrv.c (tree_nrv): Likewise.
16149 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16150 (dump_scope_block): Likewise.
16151 (remove_unused_locals): Likewise.
16155 * tree-inline.c (declare_return_variable): Add result decl to
16156 local decls only once.
16157 * gimple-low.c (record_vars_into): Mark newly-created variables
16160 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16166 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16168 (no_real_insns_p, schedule_block, set_priorities): Drop special
16169 treatment of boundary debug insns.
16170 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16171 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16172 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16173 (BOUNDARY_DEBUG_INSN_P): Likewise.
16174 (SCHEDULE_DEBUG_INSN_P): Likewise.
16175 * sched-rgn.c (init_ready_list): Drop special treatment of
16176 boundary debug insns.
16177 * final.c (rest_of_clean_state): Clear notes' BB.
16179 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16181 * config/openbsd.opt (assert=): New Driver option.
16183 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16185 * config/i386/nto.opt: New.
16186 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16188 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16190 * config/i386/netware.opt: New.
16191 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16193 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16195 * config/interix.opt (posix): New Driver option.
16197 2011-02-01 DJ Delorie <dj@redhat.com>
16199 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16201 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16204 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16206 PR tree-optimization/47561
16207 * toplev.c (process_options): Print the Graphite flags. Add
16208 flag_loop_flatten to the list of options requiring Graphite.
16210 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16212 * config/i386/cygming.opt (posix): New Driver option.
16214 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16216 * config/arm/vxworks.opt: New.
16217 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16219 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16221 * config/alpha/elf.opt: New.
16222 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16223 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16225 2011-02-01 Richard Guenther <rguenther@suse.de>
16227 PR tree-optimization/47559
16228 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16229 store-motion on references that can throw.
16231 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16233 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16234 * tree-pass.h (TDF_CSELIB): New macro.
16235 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16236 cselib_lookup): Check for it rather than for TDF_DETAILS.
16238 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16241 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16242 is HOST_BIT_BUCKET.
16244 * opts.c (finish_options): Don't add x_aux_base_name if it is
16247 2011-02-01 Richard Guenther <rguenther@suse.de>
16249 PR tree-optimization/47555
16251 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16253 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16255 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16258 * config/lm32/t-lm32: Add multilib for all CPU options.
16260 2011-02-01 Richard Guenther <rguenther@suse.de>
16262 PR tree-optimization/47541
16263 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16264 sure to have a field at offset zero.
16266 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16268 * config/arc/arc.opt (EB, EL): New Driver options.
16270 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16272 * config/alpha/osf5.opt: New.
16273 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16275 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16277 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16279 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16281 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16282 -floop-interchange.
16283 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16284 is an alias of -floop-interchange and that it requires the
16285 Graphite infrastructure.
16286 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16287 flag_loop_interchange based on the value of flag_tree_loop_linear.
16289 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16290 Richard Guenther <rguenther@suse.de>
16292 PR tree-optimization/47538
16293 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16294 type instead of r1type, except for comparisons. For right
16295 shifts and comparisons punt if there are mismatches in
16296 sizetype vs. non-sizetype types.
16298 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16300 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16303 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16305 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16307 * configure: Regenerate.
16309 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16311 * configure.ac (gcc_cv_ld_static_option): Define.
16312 (gcc_cv_ld_dynamic_option): Define.
16313 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16315 (HAVE_LD_STATIC_DYNAMIC): Update message.
16316 (LD_STATIC_OPTION): Define.
16317 (LD_DYNAMIC_OPTION): Define.
16318 * configure: Regenerate.
16319 * config.in: Regenerate.
16320 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16321 HAVE_LD_STATIC_DYNAMIC]: Use them.
16323 2011-01-31 Nick Clifton <nickc@redhat.com>
16325 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16326 registers inside interrupt handlers if the handler is not a leaf
16329 2011-01-31 Nick Clifton <nickc@redhat.com>
16331 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16332 reg_renumber returning an INVALID_REGNUM.
16334 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16337 * doc/install.texi: Document host options discarded when cross
16338 configuring target libraries.
16340 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16343 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16346 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16348 (no_real_insns_p, schedule_block, set_priorities): Drop special
16349 treatment of boundary debug insns.
16350 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16351 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16352 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16353 (BOUNDARY_DEBUG_INSN_P): Likewise.
16354 (SCHEDULE_DEBUG_INSN_P): Likewise.
16355 * sched-rgn.c (init_ready_list): Drop special treatment of
16356 boundary debug insns.
16357 * final.c (rest_of_clean-state): Clear notes' BB.
16359 2011-01-31 Alan Modra <amodra@gmail.com>
16361 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16362 toc relative expressions as we do in print_operand_address.
16364 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16366 * doc/extend.texi: Follow spelling conventions.
16367 * doc/invoke.texi: Fix a typo.
16369 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16371 * config/hpux11.opt: New.
16372 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16373 ia64*-*-hpux*): Use hpux11.opt.
16375 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16377 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16380 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16382 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16385 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16387 * doc/install.texi (Binaries): Remove outdated reference for
16388 Motorola 68HC11/68HC12 downloads.
16390 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16392 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16395 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16398 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16401 2011-01-28 Ahmad Sharif <asharif@google.com>
16403 * value-prof.c (check_counter): Corrected error message.
16405 2011-01-29 Jie Zhang <jie@codesourcery.com>
16407 * config/arm/arm.c (arm_legitimize_reload_address): New.
16408 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16409 arm_legitimize_reload_address.
16410 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16412 2011-01-28 Ian Lance Taylor <iant@google.com>
16414 * godump.c (go_define): Ignore macros whose definitions include
16415 two adjacent operands.
16417 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16420 * varasm.c (force_const_mem): Store copy of x in desc->constant
16421 instead of x itself.
16422 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16423 itself into REG_EQUAL note.
16425 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16427 * config/freebsd.opt (posix, rdynamic): New Driver options.
16429 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16431 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16432 -Bstatic/-Bdynamic.
16433 * configure: Regenerate.
16435 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16437 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16438 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16440 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16442 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16443 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16444 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16445 (s390_preferred_reload_class): Make static. Change return and
16446 'rclass' argument type to reg_class_t.
16448 2011-01-27 Jan Hubicka <jh@suse.cz>
16450 PR middle-end/46949
16451 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16452 (process_function_and_variable_attributes): Check defined weakrefs.
16454 2011-01-27 Martin Jambor <mjambor@suse.cz>
16456 PR tree-optimization/47228
16457 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16458 build_ref_for_offset.
16460 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16462 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16464 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16466 PR rtl-optimization/46856
16467 * postreload.c (reload_combine_recognize_const_pattern): Do not
16468 separate cc0 setter and user on cc0 targets.
16470 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16473 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16474 passed a VOID_TYPE expression, immediately emit an error and
16475 return error_mark_node.
16477 2011-01-26 Jeff Law <law@redhat.com>
16479 PR rtl-optimization/47464
16480 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16481 rather than may_trap_p as needed.
16483 2011-01-26 DJ Delorie <dj@redhat.com>
16485 PR rtl-optimization/46878
16486 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16487 setter/user dependency as well.
16489 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16491 PR rtl-optimization/44469
16492 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16493 after removing trivially dead basic blocks.
16495 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16497 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16498 * config/frv/frv.h (LINK_SPEC): Likewise.
16499 * config/i386/netware.h (LINK_SPEC): Likewise.
16500 * config/m68k/linux.h (ASM_SPEC): Likewise.
16501 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16502 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16503 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16504 * config/sparc/linux.h (ASM_SPEC): Likewise.
16505 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16506 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16508 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16510 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16511 * config/frv/frv.h (ASM_SPEC): Likewise.
16512 * config/m68k/linux.h (ASM_SPEC): Likewise.
16513 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16514 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16515 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16516 * config/sparc/linux.h (ASM_SPEC): Likewise.
16517 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16518 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16520 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16522 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16523 * config/frv/frv.h (LINK_SPEC): Likewise.
16524 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16526 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16528 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16529 * config/frv/frv.h (ASM_SPEC): Likewise.
16530 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16531 * config/m68k/linux.h (ASM_SPEC): Likewise.
16532 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16533 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16534 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16535 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16536 * config/sparc/linux.h (ASM_SPEC): Likewise.
16537 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16538 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16539 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16541 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16544 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16546 (vec_extract_evenodd_help): Ditto.
16547 (vec_extract_evenv4hi): Ditto.
16548 (vec_extract_oddv4hi): Ditto.
16549 (vec_interleave_lowv2si): Ditto.
16550 (vec_interleave_highv2si): Ditto.
16551 (vec_extract_evenv2si): Ditto.
16552 (vec_extract_oddv2si: Ditto.
16553 (vec_pack_trunc_v2si): Ditto.
16555 2011-01-22 Jan Hubicka <jh@suse.cz>
16558 * cgraph.h (cgraph_local_info): New field can_change_signature.
16559 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16560 signature can change.
16561 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16563 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16564 (cgraph_function_versioning): We can not change signature of functions
16565 that don't allow that.
16566 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16567 (lto_input_node): Likewise.
16568 * ipa-inline.c (compute_inline_parameters): Compute
16569 local.can_change_signature.
16570 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16571 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16572 functions that can not change signature.
16573 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16574 init_cumulative_args): Do not use local calling conventions
16575 for functions that can not change signature.
16577 2011-01-22 Jan Hubicka <jh@suse.cz>
16579 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16581 2011-01-26 Richard Guenther <rguenther@suse.de>
16583 PR tree-optimization/47190
16584 * cgraphunit.c (process_common_attributes): New function.
16585 (process_function_and_variable_attributes): Use it.
16587 2011-01-26 Richard Guenther <rguenther@suse.de>
16590 * cgraphbuild.c (record_eh_tables): Record reference to personality
16593 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16596 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16597 non-debug insns from moving up.
16599 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16602 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16603 t-dlldir{,-x} fragment for build and add it to tmake_file.
16604 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16605 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16606 * config/i386/t-dlldir: New file.
16607 (SHLIB_DLLDIR): Define.
16608 * config/i386/t-dlldir-x: New file.
16609 (SHLIB_DLLDIR): Define.
16610 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16611 (SHLIB_INSTALL): Use it.
16613 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16616 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16617 lower bound of the allowed Thumb-2 coprocessor load/store
16618 index range to -256. Add explaining comment.
16620 2011-01-25 Ian Lance Taylor <iant@google.com>
16622 * godump.c (go_define): Improve lexing of macro expansion to only
16623 accept expressions which match Go spec.
16625 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16628 * tree.c (handle_dll_attribute): Handle it.
16629 * doc/extend.texi (@item dllexport): Mention it.
16630 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16632 2011-01-25 Ian Lance Taylor <iant@google.com>
16634 PR tree-optimization/26854
16635 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16636 (decl_jump_unsafe): Move higher in file, with no other change.
16637 (bind): Set has_jump_unsafe_decl if appropriate.
16638 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16639 (check_earlier_gotos): Likewise.
16640 (c_check_switch_jump_warnings): Likewise.
16642 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16644 * doc/invoke.texi (Warning Options): Add missing hyphen.
16645 (-fprofile-dir): Minor grammatical fixes.
16646 (-fbranch-probabilities): Likewise.
16648 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16652 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16654 (no_real_insns_p, schedule_block, set_priorities): Drop special
16655 treatment of boundary debug insns.
16656 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16657 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16658 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16659 (BOUNDARY_DEBUG_INSN_P): Likewise.
16660 (SCHEDULE_DEBUG_INSN_P): Likewise.
16661 * sched-rgn.c (init_ready_list): Drop special treatment of
16662 boundary debug insns.
16663 * final.c (rest_of_clean-state): Clear notes' BB.
16665 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16667 * Makefile.in (LAMBDA_H): Removed.
16668 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16669 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16670 lambda-trans.o, and tree-loop-linear.o.
16671 (lto-symtab.o): Remove dependence on LAMBDA_H.
16672 (tree-loop-linear.o): Remove rule.
16673 (lambda-mat.o): Same.
16674 (lambda-trans.o): Same.
16675 (lambda-code.o): Same.
16676 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16677 (tree-vect-slp.o): Same.
16678 * hwint.h (gcd): Moved here.
16679 (least_common_multiple): Same.
16680 * lambda-code.c: Removed.
16681 * lambda-mat.c: Removed.
16682 * lambda-trans.c: Removed.
16683 * lambda.h: Removed.
16684 * tree-loop-linear.c: Removed.
16685 * lto-symtab.c: Do not include lambda.h.
16686 * omega.c (gcd): Removed.
16687 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16688 * tree-data-ref.c (print_lambda_vector): Moved here.
16689 (lambda_vector_copy): Same.
16690 (lambda_matrix_copy): Same.
16691 (lambda_matrix_id): Same.
16692 (lambda_vector_first_nz): Same.
16693 (lambda_matrix_row_add): Same.
16694 (lambda_matrix_row_exchange): Same.
16695 (lambda_vector_mult_const): Same.
16696 (lambda_vector_negate): Same.
16697 (lambda_matrix_row_negate): Same.
16698 (lambda_vector_equal): Same.
16699 (lambda_matrix_right_hermite): Same.
16700 * tree-data-ref.h: Do not include lambda.h.
16701 (lambda_vector): Moved here.
16702 (lambda_matrix): Same.
16703 (dependence_level): Same.
16704 (lambda_transform_legal_p): Removed declaration.
16705 (lambda_collect_parameters): Same.
16706 (lambda_compute_access_matrices): Same.
16707 (lambda_vector_gcd): Same.
16708 (lambda_vector_new): Same.
16709 (lambda_vector_clear): Same.
16710 (lambda_vector_lexico_pos): Same.
16711 (lambda_vector_zerop): Same.
16712 (lambda_matrix_new): Same.
16713 * tree-flow.h (least_common_multiple): Removed declaration.
16714 * tree-parloops.c (lambda_trans_matrix): Moved here.
16715 (LTM_MATRIX): Same.
16716 (LTM_ROWSIZE): Same.
16717 (LTM_COLSIZE): Same.
16718 (LTM_DENOMINATOR): Same.
16719 (lambda_trans_matrix_new): Same.
16720 (lambda_matrix_vector_mult): Same.
16721 (lambda_transform_legal_p): Same.
16722 * tree-pass.h (pass_linear_transform): Removed declaration.
16723 * tree-ssa-loop.c (tree_linear_transform): Removed.
16724 (gate_tree_linear_transform): Removed.
16725 (pass_linear_transform): Removed.
16726 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16727 flag_loop_interchange.
16729 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16731 PR tree-optimization/47265
16732 PR tree-optimization/47443
16733 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16734 if name still has some uses.
16736 2011-01-25 Martin Jambor <mjambor@suse.cz>
16738 PR tree-optimization/47382
16739 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16740 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16742 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16744 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16745 sjlj_except_unwind_info.
16747 2011-01-25 Richard Guenther <rguenther@suse.de>
16749 PR tree-optimization/47426
16750 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16751 visible functions results escape.
16753 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16756 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16757 (arm_get_frame_offsets): Use it.
16759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16760 Jakub Jelinek <jakub@redhat.com>
16762 PR tree-optimization/47271
16763 * tree-if-conv.c (bb_postdominates_preds): New.
16764 (if_convertible_bb_p): Call bb_postdominates_preds.
16765 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16766 (predicate_scalar_phi): Call bb_postdominates_preds.
16768 2011-01-25 Nick Clifton <nickc@redhat.com>
16770 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16771 * config/rx/rx.c (rx_function_value): Likewise.
16772 (rx_promote_function_mode): Likewise.
16773 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16774 in order to make it legitimate.
16775 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16776 make sure that the first operand is the same as the result register.
16777 (addsi3_unspec): Delete.
16778 (subdi3): Do not accept immediate operands.
16779 (subdi3_internal): Likewise.
16781 2011-01-25 Jeff Law <law@redhat.com>
16783 PR rtl-optimization/37273
16784 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16785 handle them like argument loads from stack slots. Do not double
16786 count memory for memory constants and argument loads from stack slots.
16788 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16790 PR tree-optimization/47427
16791 PR tree-optimization/47428
16792 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16793 coalesce if the new root var would be TREE_READONLY.
16795 2011-01-25 Richard Guenther <rguenther@suse.de>
16797 PR middle-end/47414
16798 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16799 correct type for TBAA.
16801 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16803 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16804 (close_phi_written_to_memory): Call for_each_index with
16805 dr_indices_valid_in_loop.
16807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16809 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16810 when it is initialized.
16812 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16814 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16815 call to graphite_find_data_references_in_stmt.
16816 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16817 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16818 call to graphite_find_data_references_in_stmt.
16819 (analyze_drs_in_stmts): Same.
16820 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16821 in which the scalar analysis of indices is performed.
16822 (create_data_ref): Same. Update call to dr_analyze_indices.
16823 (find_data_references_in_stmt): Update call to create_data_ref.
16824 (graphite_find_data_references_in_stmt): Same.
16825 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16827 (create_data_ref): Same.
16828 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16829 call to create_data_ref.
16831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16833 * graphite-sese-to-poly.c (build_poly_scop): Move
16834 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16838 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16839 VAR_DECL, PARM_DECL, and RESULT_DECL.
16841 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16843 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16844 in a reduction PBB.
16845 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16846 that have already been marked as PBB_IS_REDUCTION.
16848 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16850 * graphite-scop-detection.c (same_close_phi_node): New.
16851 (remove_duplicate_close_phi): New.
16852 (make_close_phi_nodes_unique): New.
16853 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16857 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16858 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16859 of both data references to be the same.
16861 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16863 * graphite-dependences.c (build_lexicographical_constraint): Remove
16864 the gdim parameter.
16865 (build_lexicographical_constraint): Adjust call to
16866 ppl_powerset_is_empty.
16867 (dependence_polyhedron): Same.
16868 (graphite_legal_transform_dr): Same.
16869 (graphite_carried_dependence_level_k): Same.
16870 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16872 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16876 * graphite-sese-to-poly.c
16877 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16878 (close_phi_written_to_memory): New.
16879 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16884 * doc/install.texi: Update the expected version number of PPL to 0.11.
16885 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16886 #if PPL_VERSION_MINOR < 11.
16888 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16890 * graphite-dependences.c: Include graphite-cloog-util.h.
16891 (new_poly_ddr): Inlined into dependence_polyhedron.
16892 (free_poly_ddr): Moved close by new_poly_ddr.
16893 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16894 Early return NULL when ppl_powerset_is_empty returns true.
16895 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16896 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16897 (graphite_legal_transform_dr): Call new_poly_ddr.
16898 (graphite_carried_dependence_level_k): Same.
16899 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16900 (dot_transformed_deps_stmt_1): Removed.
16901 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16902 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16903 (dot_deps_1): Call dot_deps_2.
16904 * Makefile.in (graphite-dependences.o): Add missing dependence on
16905 graphite-cloog-util.h.
16907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16909 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16910 (build_lexicographical_constraint): Same.
16911 (dependence_polyhedron_1): Same.
16912 (graphite_legal_transform_dr): Same.
16913 (graphite_carried_dependence_level_k): Same.
16914 * graphite-ppl.c (ppl_powerset_is_empty): New.
16915 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16916 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16920 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16921 the "a followed by b" relation and document it.
16923 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16925 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16926 iteration when the bag of constraints is empty.
16928 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16930 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16932 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16934 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16935 nest and two loop depths as parameters.
16936 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16937 lst_perfect_nestify.
16939 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16941 * graphite-dependences.c (print_pddr): Call
16942 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16944 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16946 * graphite-ppl.c (debug_gmp_value): New.
16947 * graphite-ppl.h (debug_gmp_value): Declared.
16949 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16951 * doc/install.texi: Document availability of cloog-0.16.
16953 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16955 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16956 invalid postdominance info.
16958 2011-01-24 Jan Hubicka <jh@suse.cz>
16961 * doc/extend.texi (weak pragma): Drop claim that it must
16962 appear before definition.
16963 * varasm.c (merge_weak, declare_weak): Only sanity check
16964 that DECL is not output at a time it is declared weak.
16966 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16968 * machmode.def: Fixed comments.
16970 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16972 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16974 2011-01-24 Paul Koning <ni1d@arrl.net>
16976 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16979 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16982 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16983 (block_info): Add scanned and prev.
16984 (move_or_delete_vzeroupper_2): Return if the basic block
16985 has been scanned and the upper 128bit state is unchanged
16986 from the last scan.
16987 (move_or_delete_vzeroupper_1): Return true if the exit
16989 (move_or_delete_vzeroupper): Visit basic blocks using the
16990 work-list based algorithm based on vt_find_locations in
16993 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16995 2011-01-24 Nick Clifton <nickc@redhat.com>
16997 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16998 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16999 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17000 then define __v850e1__.
17001 * doc/invoke.texi: Document -mv850es.
17003 2011-01-24 Richard Henderson <rth@redhat.com>
17005 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17006 compound unordered comparisons.
17007 * config/rx/rx.c (rx_split_fp_compare): Remove.
17008 * config/rx/rx-protos.h: Update.
17009 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17010 (cbranchsf4): Don't call rx_split_fp_compare.
17011 (*cbranchsf4): Use rx_split_cbranch.
17012 (*cmpsf): Don't accept "i" constraint.
17013 (*conditional_branch): Only valid after reload.
17014 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17016 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17019 * config/rs6000/altivec.md (vector constant splitters): Add
17020 support for creating vector single precision constants if -mvsx is
17021 used and we would create the constant using Altivec primitives.
17023 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17024 Richard Sandiford <rdsandiford@googlemail.com>
17026 PR rtl-optimization/47166
17027 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17028 mechanism for PRE_MODIFY and POST_MODIFY.
17029 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17032 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17034 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17036 2011-01-22 Jan Hubicka <jh@suse.cz>
17039 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17041 2011-01-22 Jan Hubicka <jh@suse.cz>
17043 PR tree-optimization/43884
17045 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17046 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17048 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17050 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17051 * config/s390/s390.c (s390_register_move_cost,
17052 s390_memory_move_cost): New.
17053 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17055 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17057 PR middle-end/47401
17058 * except.c (sjlj_assign_call_site_values): Move setting the
17059 crtl->uses_eh_lsda flag to ...
17060 (sjlj_mark_call_sites): ... here.
17061 (sjlj_emit_function_enter): Support NULL dispatch label.
17062 (sjlj_build_landing_pads): In a function with no landing pads
17063 that still has must-not-throw regions, generate code to register
17064 a personality function with empty LSDA.
17066 2011-01-21 Richard Henderson <rth@redhat.com>
17068 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17070 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17072 * compare-elim.c: New file.
17073 * Makefile.in (OBJS-common): Add it.
17074 (compare-elim.o): New.
17075 * common.opt (fcompare-elim): New.
17076 * opts.c (default_options_table): Add OPT_fcompare_elim.
17077 * tree-pass.h (pass_compare_elim_after_reload): New.
17078 * passes.c (init_optimization_passes): Add it.
17079 * recog.h: Protect against re-inclusion.
17080 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17081 * doc/invoke.texi (-fcompare-elim): Document it.
17082 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17083 * doc/tm.texi: Rebuild.
17085 2011-01-22 Nick Clifton <nickc@redhat.com>
17087 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17088 rx_split_fp_compare.
17090 2011-01-22 Nick Clifton <nickc@redhat.com>
17092 * config/rx/rx.md (UNSPEC_CONST): New.
17093 (deallocate_and_return): Wrap the amount popped off the stack in
17094 an UNSPEC_CONST in order to stop it being rejected by
17095 -mmax-constant-size.
17096 (pop_and_return): Add a "(return)" rtx.
17097 (call): Drop the immediate operand.
17098 (call_internal): Likewise.
17099 (call_value): Likewise.
17100 (call_value_internal): Likewise.
17101 (sibcall_internal): Likewise.
17102 (sibcall_value_internal): Likewise.
17103 (sibcall): Likewise. Generate an explicit call using
17105 (sibcall_value): Likewise.
17106 (mov<>): FAIL if a constant operand is not legitimate.
17107 (addsi3_unpsec): New pattern.
17109 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17110 (ok_for_max_constant): New function.
17111 (gen_safe_add): New function.
17112 (rx_expand_prologue): Use gen_safe_add.
17113 (rx_expand_epilogue): Likewise.
17114 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17117 2011-01-21 Jeff Law <law@redhat.com>
17119 PR tree-optimization/47053
17120 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17121 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17122 statements are deleted.
17123 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17124 is nonempty, then purge dead edges and cleanup the CFG.
17126 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17129 Temporarily revert:
17130 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17132 * tree-dfa.c (create_var_ann): Mark variable as used.
17134 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17136 PR middle-end/45566
17137 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17138 notes from other section in hot/cold partitioning even if
17139 last_action is -3. Increment call_site_base.
17141 PR rtl-optimization/47366
17142 * fwprop.c (forward_propagate_into): Return bool. If
17143 any changes are made, -fnon-call-exceptions is used and
17144 REG_EH_REGION note is present, call purge_dead_edges
17145 and return true if it purged anything.
17146 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17147 any EH edges were purged.
17149 2011-01-21 Jeff Law <law@redhat.com>
17151 PR rtl-optimization/41619
17152 * caller-save.c (setup_save_areas): Break out code to determine
17153 which hard regs are live across calls by examining the reload chains
17154 so that it is always used.
17155 Eliminate code which checked REG_N_CALLS_CROSSED.
17157 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17159 PR tree-optimization/47355
17160 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17161 NOP has non-debug uses beyond PHIs in new_bb.
17163 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17166 * cfgexpand.c (account_used_vars_for_block): Only account vars
17167 that are annotated as used.
17168 (estimated_stack_frame_size): Don't set TREE_USED.
17169 * tree-dfa.c (create_var_ann): Mark variable as used.
17171 2011-01-21 Richard Guenther <rguenther@suse.de>
17173 PR middle-end/47395
17174 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17176 2011-01-21 Richard Guenther <rguenther@suse.de>
17178 PR tree-optimization/47365
17179 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17180 (vn_reference_lookup_pieces): Adjust.
17181 (vn_reference_lookup): Likewise.
17182 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17183 (vn_reference_lookup_3): Only look through kills if in
17184 VN_WALKREWRITE mode.
17185 (vn_reference_lookup_pieces): Adjust.
17186 (vn_reference_lookup): Likewise.
17187 (visit_reference_op_load): Likewise.
17188 (visit_reference_op_store): Likewise.
17189 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17190 (compute_avail): Likewise.
17191 (eliminate): Likewise.
17193 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17195 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17196 DECL_IGNORED_P non-reg vars if they are used.
17198 PR tree-optimization/47391
17199 * varpool.c (const_value_known_p): Return false if
17202 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17205 * config/i386/i386.c (ix86_local_alignment): Handle
17206 case for va_list_type_node is nil.
17207 (ix86_canonical_va_list_type): Likewise.
17209 2011-01-21 Alan Modra <amodra@gmail.com>
17211 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17212 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17214 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17216 * config/arm/arm.md (define_attr type): Rename f_load
17217 and f_store to f_fpa_load and f_fpa_store. Update.
17218 (write_conflict): Deal with rename fallout.
17219 (*push_fp_multi): Likewise.
17220 * config/arm/fpa.md (f_load): Use f_fpa_load.
17221 (f_store): Use f_fpa_store.
17222 (*movsf_fpa): Likewise.
17223 (*movdf_fpa): Likewise.
17224 (*movxf_fpa): Likewise.
17225 (*thumb2_movsf_fpa): Likewise.
17226 (*thumb2_movdf_fpa): Likewise.
17227 (*thumb2_movxf_fpa): Likewise.
17228 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17229 f_loadd and f_stored.
17230 (*thumb2_movdi_vfp): Likewise.
17231 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17232 (*thumb2_movsi_vfp): Likewise.
17233 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17234 Use f_loads instead of f_load.
17235 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17237 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17239 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17240 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17241 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17242 (xtensa_mode_dependent_address_p): New function.
17243 (constantpool_address_p): Make static. Change return type to bool.
17244 Change argument type to const_rtx. Use CONST_INT_P predicate.
17246 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17249 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17251 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17254 * cfgexpand.c (expand_debug_expr): Instead of generating
17255 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17258 2011-01-20 Richard Guenther <rguenther@suse.de>
17260 PR middle-end/47370
17261 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17262 the pointer operand of MEM_REFs.
17264 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17266 PR tree-optimization/46130
17267 * ipa-split.c (consider_split): If return_bb contains non-virtual
17268 PHIs other than for retval or if split_function would not adjust it,
17271 2011-01-20 Richard Guenther <rguenther@suse.de>
17273 PR tree-optimization/47167
17274 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17275 Revert previous change, only avoid enumeral type changes.
17277 2011-01-19 Mike Stump <mikestump@comcast.net>
17279 * doc/tm.texi.in (BRANCH_COST): Englishify.
17280 * doc/tm.texi (BRANCH_COST): Likewise.
17282 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17285 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17286 (gen_scheduled_generic_parms_dies): New functions.
17287 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17288 generation for the end of CU compilation.
17289 (dwarf2out_finish): Generate template parameters DIEs here.
17291 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17294 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17295 debug bind stmt on merge edges.
17297 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17301 * function.c (instantiate_expr): Instantiate incoming rtl of
17302 implicit arguments, and recurse on VALUE_EXPRs.
17303 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17304 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17306 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17308 * c-parser.c (c_parser_for_statement): Initialize
17309 collection_expression.
17311 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17313 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17315 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17317 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17318 (LINK_SHLIB_SPEC): Don't use %(link_path).
17319 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17321 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17323 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17324 (NO_SHARED_LIB_SUPPORT): Remove.
17325 (LINK_SHLIB_SPEC): Remove one conditional definition.
17327 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17329 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17331 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17332 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17333 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17334 %{call_shared} and conditionals on these options not being passed.
17335 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17338 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17340 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17343 * ipa-split.c: Spelling fixes.
17345 2011-01-19 Richard Henderson <rth@redhat.com>
17347 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17348 (*mulsi3): Likewise.
17350 * longlong.h [__mn10300__] (count_leading_zeros): New.
17351 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17352 [__mn10300__] (add_ssaaaa, subddmmss): New.
17353 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17354 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17356 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17358 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17360 2011-01-19 Richard Henderson <rth@redhat.com>
17362 * config/mn10300/mn10300.md (addsi3_flags): New.
17363 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17364 (subsi3_flags, subc_internal, subdi3): New.
17365 (subdi3_internal, *subdi3_degenerate): New.
17366 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17368 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17369 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17370 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17371 * config/mn10300/mn10300-protos.h: Update.
17372 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17373 (return_ret): Likewise. Rename from return_internal_regs.
17374 (return_internal): Remove.
17376 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17377 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17378 (mn10300_legitimate_constant_p): Likewise.
17379 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17380 (mn10300_frame_size): New.
17381 (mn10300_expand_prologue): Use it.
17382 (mn10300_expand_epilogue): Likewise.
17383 (mn10300_initial_offset): Likewise.
17384 * config/mn10300/mn10300-protos.h: Update.
17385 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17386 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17387 (prologue, epilogue, return_internal): Tidy output code.
17388 (mn10300_store_multiple_operation, return): Likewise.
17389 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17390 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17391 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17392 (load_pic, am33_load_pic): New.
17393 (mn10300_load_pic0, mn10300_load_pic1): New.
17395 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17396 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17397 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17398 (cc_flags_for_mode, cc_flags_for_code): New.
17399 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17400 overflow flag is not valid. Validate that the flags we need
17401 for the comparison are valid.
17402 (mn10300_output_cmp): Remove.
17403 (mn10300_output_add): New.
17404 (mn10300_select_cc_mode): Use cc_flags_for_code.
17405 (mn10300_split_cbranch): New.
17406 (mn10300_match_ccmode): New.
17407 (mn10300_split_and_operand_count): New.
17408 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17410 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17411 (addsi3): ... here. Use mn10300_output_add.
17412 (*addsi3_flags): New.
17413 (*am33_subsi3, *mn10300_subsi3): Merge...
17414 (subsi3): ... here. Use attribute isa.
17415 (*subsi3_flags): New.
17416 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17418 (*am33_andsi3, *mn10300_andsi3): Merge...
17419 (andsi3): ... here.
17420 (*andsi3_flags): New.
17421 (andsi3 splitters): New.
17422 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17423 (iorsi3): ... here.
17424 (*iorsi3_flags): New.
17425 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17426 (xorsi3): ... here.
17427 (*xorsi3_flags): New.
17428 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17429 (one_cmplsi2): ... here.
17430 (*one_cmplsi2_flags): New.
17431 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17432 instead of "dax" in constraints. Use mn10300_split_cbranch.
17433 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17434 use matching constraints to eliminate a self-comparison.
17435 (*integer_conditional_branch): Rename from integer_conditional_branch.
17436 Use int_mode_flags to match CC_REG.
17437 (*cbranchsi4_btst, *btstsi): New.
17438 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17439 mn10300_split_cbranch.
17440 (*am33_cmpsf): Rename from am33_cmpsf.
17441 (*float_conditional_branch): Rename from float_conditional_branch.
17442 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17443 (zero_extendqisi2): ... here.
17444 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17445 (zero_extendhisi2): ... here.
17446 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17447 (extendqisi2): ... here.
17448 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17449 (extendhisi2): ... here.
17450 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17451 (ashlsi3): ... here.
17452 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17453 (lshrsi3): ... here.
17454 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17455 (ashrsi3): ... here.
17456 (consecutive add peephole): Remove.
17457 * config/mn10300/predicates.md (label_ref_operand): New.
17458 (int_mode_flags): New.
17459 (CCZN_comparison_operator): New.
17461 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17462 (throughput_42_latency_43): New reservation.
17463 (mulsidi3, umulsidi3): New expanders.
17464 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17465 the MDR register to allocation; separately allocate the low and
17466 high parts of the DImode result.
17467 (umulsidi3_internal): Similarly.
17468 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17469 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17470 (udivsi3, umodsi3): Remove.
17471 (udivmodsi4, divmodsi4): New expanders.
17472 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17473 (*divmodsi4): Simiarly.
17474 (ext_internal): New.
17476 * config/mn10300/constraints.md ("z"): New constraint.
17477 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17478 (FIXED_REGISTERS): Don't fix MDR.
17479 (CALL_USED_REGSITERS): Reformat nicely.
17480 (REG_ALLOC_ORDER): Add MDR.
17481 (enum regclass): Add MDR_REGS.
17482 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17483 (IRA_COVER_CLASSES): Add MDR_REGS.
17484 (REGNO_REG_CLASS): Handle MDR_REG.
17485 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17486 (mn10300_register_move_cost): Likewise.
17487 * config/mn10300/mn10300.md (MDR_REG): New.
17488 (*movsi_internal): Handle moves to/from MDR_REGS.
17490 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17492 (mn10300_secondary_reload): Tidy combination reload classes.
17493 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17494 addresses for AM33. Allow symbolic offsets for reg+imm.
17495 (mn10300_regno_in_class_p): New.
17496 (mn10300_legitimize_reload_address): New.
17497 * config/mn10300/mn10300.h (enum reg_class): Remove
17498 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17499 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17500 SP_OR_GENERAL_REGS.
17501 (REG_CLASS_NAMES): Update to match.
17502 (REG_CLASS_CONTENTS): Likewise.
17503 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17504 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17505 (REGNO_IN_RANGE_P): Remove.
17506 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17507 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17508 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17509 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17510 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17511 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17512 (REGNO_GENERAL_P): New.
17513 (HAVE_POST_MODIFY_DISP): New.
17514 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17515 (LEGITIMIZE_RELOAD_ADDRESS): New.
17516 * config/mn10300/mn10300-protos.h: Update.
17518 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17519 DATA_REGS for AM33 stack-pointer destination.
17520 (mn10300_preferred_output_reload_class): Likewise.
17521 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17522 into a form appropriate for ...
17523 (TARGET_SECONDARY_RELOAD): New.
17524 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17525 * config/mn10300/mn10300-protos.h: Update.
17526 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17527 reload_insi; use the "A" constraint for the scratch; handle AM33
17528 moves of sp to non-address registers.
17530 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17531 (*movqi_internal): ... here.
17532 (*am33_movhi, *mn10300_movhi): Merge into...
17533 (*movhi_internal): ... here.
17534 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17535 as the source/destination of moves from/to SP.
17536 (movsf): Only allow for AM33-2.
17537 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17538 any integer constant constraint. Only allow for AM33-2. Tidy
17539 all of the alternative outputs.
17540 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17541 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17543 (udivsi3, umodsi3): New patterns for MN103 only.
17545 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17547 * doc/tm.texi.in: Spell out that a lack of register class unions
17549 * doc/tm.texi: Regenerate.
17551 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17553 PR rtl-optimization/47337
17554 * dce.c (check_argument_store): New function.
17555 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17557 PR tree-optimization/47290
17558 * tree-eh.c (infinite_empty_loop_p): New function.
17559 (cleanup_empty_eh): Use it.
17561 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17564 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17565 (a64_expand_widen_sum): Ditto.
17566 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17567 (vec_extract_evenodd_help): Ditto.
17568 (vec_extract_evenv4hi): Ditto.
17569 (vec_extract_oddv4hi): Ditto.
17570 (vec_extract_evenv2si): Ditto.
17571 (vec_extract_oddv2si): Ditto.
17572 (vec_extract_evenv2sf): Ditto.
17573 (vec_extract_oddv2sf): Ditto.
17574 (vec_pack_trunc_v4hi: Ditto.
17575 (vec_pack_trunc_v2si): Ditto.
17576 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17577 (vec_interleave_highv8qi): Ditto.
17579 (vec_extract_oddv8qi): Ditto.
17580 (vec_interleave_lowv4hi): Ditto.
17581 (vec_interleave_highv4hi): Ditto.
17582 (vec_interleave_lowv2si): Ditto.
17583 (vec_interleave_highv2si): Ditto.
17585 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17587 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17588 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17589 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17590 (pa_c_mode_for_suffix): New.
17591 (TARGET_EXPAND_BUILTIN): Define.
17592 (TARGET_C_MODE_FOR_SUFFIX): Define.
17593 (pa_builtins): Define.
17594 (pa_init_builtins): Register __float128 type and init new support
17596 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17597 * config/pa/quadlib.c (_U_Qfcopysign): New.
17599 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17601 PR middle-end/46894
17602 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17603 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17606 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17608 PR tree-optimization/47179
17609 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17610 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17612 2011-01-18 Richard Guenther <rguenther@suse.de>
17614 PR rtl-optimization/47216
17615 * emit-rtl.c: Include tree-flow.h.
17616 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17617 of replicating it with different semantics.
17618 * Makefile.in (emit-rtl.o): Adjust.
17620 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17622 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17623 (cortex_a9_dp): Handle neon types correctly.
17625 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17627 PR rtl-optimization/47299
17628 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17629 subtarget. Use normal multiplication if both operands are constants.
17630 * expmed.c (expand_widening_mult): Don't try to optimize constant
17631 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17634 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17636 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17637 spacing after 'e.g.', typos, comma, hyphenation.
17639 2011-01-17 Richard Henderson <rth@redhat.com>
17641 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17642 (rx_restricted_mem_operand): New.
17643 (rx_shift_operand): Use register_operand.
17644 (rx_source_operand, rx_compare_operand): Likewise.
17645 * config/rx/rx.md (addsi3_flags): New expander.
17646 (adddi3): Rewrite as expander.
17647 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17648 (subsi3_flags): New expander.
17649 (subdi3): Rewrite as expander.
17650 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17652 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17653 (rx_init_builtins): Remove sat builtin.
17654 (rx_expand_builtin): Likewise.
17655 * config/rx/rx.md (ssaddsi3): New.
17656 (*sat): Rename from sat. Represent the CC_REG input.
17658 * config/rx/predicates.md (rshift_operator): New.
17659 * config/rx/rx.c (rx_expand_insv): Remove.
17660 * config/rx/rx-protos.h: Update.
17661 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17662 operand to the canonical position.
17663 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17664 (*bitclr, *bitclr_in_memory): Similarly.
17665 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17666 (insv): Retain the zero_extract in the expansion.
17668 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17669 (bswaphi2, bitinvert, revw): Likewise.
17671 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17672 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17673 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17674 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17675 (bitset, bitset_in_memory): Likewise.
17676 (bitinvert, bitinvert_in_memory): Likewise.
17677 (bitclr, bitclr_in_memory): Likewise.
17678 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17679 (rx_strend, rx_cmpstrn): Likewise.
17680 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17681 (bitop peep2 patterns): Remove.
17683 * config/rx/rx.c (rx_match_ccmode): New.
17684 * config/rx/rx-protos.h: Update.
17685 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17686 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17687 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17688 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17689 (fix_truncsfsi2, floatsisf2): Likewise.
17690 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17691 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17692 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17693 (*subsi3_flags, *xorsi3_flags): New.
17695 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17697 * config/rx/rx.c (rx_print_operand): Remove workaround for
17698 unsplit comparison operations.
17700 * config/rx/rx.md (movsicc): Split after reload.
17701 (*movsicc): Merge *movsieq and *movsine via match_operator.
17702 (*stcc): New pattern.
17704 * config/rx/rx.c (rx_float_compare_mode): Remove.
17705 * config/rx/rx.h (rx_float_compare_mode): Remove.
17706 * config/rx/rx.md (cstoresi4): Split after reload.
17707 (*sccc): New pattern.
17709 * config/rx/predicates.md (label_ref_operand): New.
17710 (rx_z_comparison_operator): New.
17711 (rx_zs_comparison_operator): New.
17712 (rx_fp_comparison_operator): New.
17713 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17714 Validate that the flags are set properly for the comparison.
17715 (rx_gen_cond_branch_template): Remove.
17716 (rx_cc_modes_compatible): Remove.
17717 (mode_from_flags): New.
17718 (flags_from_code): Rename from flags_needed_for_conditional.
17719 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17720 (rx_select_cc_mode): Likewise.
17721 (rx_split_fp_compare): New.
17722 (rx_split_cbranch): New.
17723 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17724 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17725 (*cbranchsf4): Similarly.
17726 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17727 match_operator and rx_split_cbranch.
17728 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17729 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17730 (*cmpsi): Rename from cmpsi.
17731 (*tstsi): Rename from tstsi.
17732 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17733 (*conditional_branch): Rename from conditional_branch.
17734 (*reveresed_conditional_branch): Remove.
17735 (b<code>): Remove expander.
17736 * config/rx/rx-protos.h: Update.
17738 * config/rx/rx.c (rx_compare_redundant): Remove.
17739 * config/rx/rx.md (cmpsi): Don't use it.
17740 * config/rx/rx-protos.h: Update.
17742 * config/rx/rx-modes.def (CC_F): New mode.
17743 * config/rx/rx.c (rx_select_cc_mode): New.
17744 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17745 * config/rx/rx-protos.h: Update.
17747 2011-01-17 Richard Henderson <rth@redhat.com>
17749 * except.c (dump_eh_tree): Fix stray ; after for statement.
17751 2011-01-17 Richard Guenther <rguenther@suse.de>
17753 PR tree-optimization/47313
17754 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17755 handling before copying the body. Properly deal with
17756 by-reference result in SSA form.
17758 2011-01-17 Ian Lance Taylor <iant@google.com>
17761 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17762 (struct_value_alias_set): Don't define.
17763 (sparc_option_override): Don't set sparc_sr_alias_set and
17764 struct_value_alias_set.
17765 (save_or_restore_regs): Use gen_frame_mem rather than calling
17767 (sparc_struct_value_rtx): Likewise.
17769 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17772 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17773 (_mm_maskstore_pd): Likewise.
17774 (_mm_maskload_ps): Likewise.
17775 (_mm_maskstore_ps): Likewise.
17776 (_mm256_maskload_pd): Change mask to __m256i.
17777 (_mm256_maskstore_pd): Likewise.
17778 (_mm256_maskload_ps): Likewise.
17779 (_mm256_maskstore_ps): Likewise.
17781 * config/i386/i386-builtin-types.def: Updated.
17782 (ix86_expand_special_args_builtin): Likewise.
17784 * config/i386/i386.c (bdesc_special_args): Update
17785 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17786 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17787 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17788 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17790 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17791 Use <avxpermvecmode> on mask register.
17792 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17794 2011-01-17 Olivier Hainque <hainque@adacore.com>
17795 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17796 Eric Botcazou <ebotcazou@adacore.com>
17799 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17800 if <= USHRT_MAX in 32-bit mode.
17802 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17804 * doc/install.texi (Configuration, Specific): Wrap long
17805 lines in examples. Allow line wrapping in long options
17806 and URLs where beneficial for PDF output.
17808 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17810 * config/mips/mips.c (mips_classify_symbol): Don't return
17811 SYMBOL_PC_RELATIVE for nonlocal labels.
17813 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17815 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17817 2011-01-15 Jan Hubicka <jh@suse.cz>
17819 PR tree-optimization/47276
17820 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17821 declarations as needed.
17823 2011-01-15 Martin Jambor <mjambor@suse.cz>
17825 * common.opt (fdevirtualize): New flag.
17826 * doc/invoke.texi (Option Summary): Document it.
17827 * opts.c (default_options_table): Add devirtualize flag.
17828 * ipa-prop.c (detect_type_change): Return immediately if
17829 devirtualize flag is not set.
17830 (detect_type_change_ssa): Likewise.
17831 (compute_known_type_jump_func): Likewise.
17832 (ipa_analyze_virtual_call_uses): Likewise.
17834 2011-01-14 Martin Jambor <mjambor@suse.cz>
17836 PR tree-optimization/45934
17837 PR tree-optimization/46302
17838 * ipa-prop.c (type_change_info): New type.
17839 (stmt_may_be_vtbl_ptr_store): New function.
17840 (check_stmt_for_type_change): Likewise.
17841 (detect_type_change): Likewise.
17842 (detect_type_change_ssa): Likewise.
17843 (compute_complex_assign_jump_func): Check for dynamic type change.
17844 (compute_complex_ancestor_jump_func): Likewise.
17845 (compute_known_type_jump_func): Likewise.
17846 (compute_scalar_jump_functions): Likewise.
17847 (ipa_analyze_virtual_call_uses): Likewise.
17848 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17850 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17852 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17853 * config/i386/i386.opt (msse5): New Alias.
17855 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17857 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17858 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17859 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17860 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17862 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17864 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17866 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17867 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17868 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17869 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17871 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17873 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17875 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17877 2011-01-14 Mike Stump <mikestump@comcast.net>
17879 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17880 * config/fr30/fr30.md: Likweise
17881 (movsi_push): Likewise.
17882 (movsi_pop): Likewise.
17883 (enter_func): Likewise.
17884 * config/moxie/moxie.md (movsi_push): Likewise.
17885 (movsi_pop): Likewise.
17887 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17889 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17890 %{no_archive} %{exact_version}.
17891 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17892 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17893 %{no_archive} %{exact_version}.
17894 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17895 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17896 * config/mips/vxworks.h: Likewise.
17898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17900 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17904 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17905 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17907 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17909 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17912 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17914 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17916 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17917 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17919 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17920 Don't handle -shlib.
17922 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17924 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17925 (CC1_SPEC): Don't handle -profile.
17927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17929 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17930 * config/mips/mips.h (CC1_SPEC): Likewise.
17932 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17934 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17935 * config/mips/mips.h (CC1_SPEC): Likewise.
17937 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17939 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17940 * config/m32r/linux.h (LINK_SPEC): Likewise.
17941 * config/mips/linux.h (LINK_SPEC): Likewise.
17942 * config/mips/linux64.h (LINK_SPEC): Likewise.
17943 * config/sparc/linux.h (LINK_SPEC): Likewise.
17944 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17945 LINK_SPEC): Likewise.
17946 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17948 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17950 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17952 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17954 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17956 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17957 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17959 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17961 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17963 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17965 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17966 supports -Bstatic/-Bdynamic.
17967 * configure: Regenerate.
17969 2011-01-14 Jan Hubicka <jh@suse.cz>
17970 Jack Howarth <howarth@bromo.med.uc.edu>
17973 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17974 when checking debug_info_level. Test write_symbols instead of
17975 debug_hooks->var_location when setting flag_var_tracking_uninit.
17977 2011-01-14 Richard Guenther <rguenther@suse.de>
17979 PR tree-optimization/47179
17980 * target.def (ref_may_alias_errno): New target hook.
17981 * targhooks.h (default_ref_may_alias_errno): Declare.
17982 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17983 (default_ref_may_alias_errno): New function.
17984 * target.h (struct ao_ref_s): Declare.
17985 * tree-ssa-alias.c: Include target.h.
17986 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17987 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17988 (targhooks.o): Likewise.
17989 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17990 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17992 2011-01-14 Richard Guenther <rguenther@suse.de>
17994 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17996 2011-01-14 Richard Guenther <rguenther@suse.de>
17998 PR tree-optimization/47280
17999 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18000 return CFG changes.
18001 (tree_ssa_forward_propagate_single_use_vars): Deal with
18002 CFG changes from associate_plusminus.
18004 2011-01-14 Richard Guenther <rguenther@suse.de>
18006 PR middle-end/47281
18008 2011-01-11 Richard Guenther <rguenther@suse.de>
18010 PR tree-optimization/46076
18011 * tree-ssa.c (useless_type_conversion_p): Conversions from
18012 unprototyped to empty argument list function types are useless.
18014 2011-01-14 Richard Guenther <rguenther@suse.de>
18016 PR tree-optimization/47286
18017 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18019 2011-01-14 Martin Jambor <mjambor@suse.cz>
18021 PR middle-end/46823
18022 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18024 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18026 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18027 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18028 * config/xtensa/xtensa.c (xtensa_libcall_value,
18029 xtensa_function_value_regno_p): New functions.
18030 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18032 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18035 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18037 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18038 New function prototype.
18039 * config/i386/winnt.c (i386_pe_assemble_visibility):
18040 Warn only if attribute was specified by user.
18042 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18045 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18047 (floatunsdidf2_fcfidu): Ditto.
18049 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18051 * config/s390/s390.c (print_operand_address): Replace 'error' with
18052 'output_operand_lossage'.
18053 (print_operand): Likewise.
18055 2011-01-13 Jeff Law <law@redhat.com>
18057 PR rtl-optimization/39077
18058 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18059 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18060 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18061 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18062 * gcse.c (prune_insertions_deletions): New function.
18063 (compute_pre_data): Use it.
18065 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18068 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18070 (prune_unused_types_mark): Use it.
18072 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18074 PR rtl-optimization/45352
18075 * sel-sched.c: Update copyright years.
18076 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18077 in the advancing loop when we have issued issue_rate insns.
18079 2011-01-12 Richard Henderson <rth@redhat.com>
18081 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18082 (TARGET_MD_ASM_CLOBBERS): New.
18084 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18085 (TARGET_DELEGITIMIZE_ADDRESS): New.
18087 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18088 (clzsi2, *bsch): New patterns.
18090 * config/mn10300/mn10300.md (INT): New mode iterator.
18091 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18093 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18094 flag_split_wide_types.
18096 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18097 (mn10300_trampoline_init): Rewrite without a template, an immediate
18098 load and a direct branch.
18099 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18101 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18103 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18104 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18105 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18106 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18108 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18111 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18114 2011-01-12 Jan Hubicka <jh@suse.cz>
18117 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18118 (PLUGIN_COND_CLOSE): New macro.
18119 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18121 2011-01-12 Richard Guenther <rguenther@suse.de>
18124 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18125 register variables in a MEM_REF.
18127 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18129 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18130 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18131 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18132 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18133 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18134 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18135 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18136 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18137 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18138 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18139 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18140 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18141 * config/gnu-user.h: New. Copied from linux.h.
18142 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18143 GNU_USER_TARGET_STARTFILE_SPEC.
18144 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18145 GNU_USER_TARGET_ENDFILE_SPEC.
18146 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18147 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18148 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18149 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18150 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18151 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18152 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18153 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18154 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18155 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18156 * config/arm/linux-eabi.h (CC1_SPEC): Use
18157 GNU_USER_TARGET_CC1_SPEC.
18158 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18159 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18160 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18161 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18162 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18163 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18164 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18165 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18167 2011-01-12 Richard Guenther <rguenther@suse.de>
18170 * doc/invoke.texi (ffast-math): Document it is turned on
18173 2011-01-12 Jan Hubicka <jh@suse.cz>
18175 PR tree-optimization/47233
18176 * opts.c (common_handle_option): Disable ipa-reference with profile
18179 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18181 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18184 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18186 * c-parser.c (c_lex_one_token): Updated and reindented some
18187 comments. No changes in code.
18189 2011-01-11 Ian Lance Taylor <iant@google.com>
18191 * godump.c (go_output_var): Don't output the variable if there is
18192 already a type with the same name.
18194 2011-01-11 Ian Lance Taylor <iant@google.com>
18196 * godump.c (go_format_type): Don't generate float80.
18198 2011-01-11 Richard Henderson <rth@redhat.com>
18200 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18201 declaration. Rewrite for both speed and size.
18202 (mn10300_address_cost_1): Remove.
18203 (mn10300_register_move_cost): New.
18204 (mn10300_memory_move_cost): New.
18205 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18206 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18207 extensions, shifts, BSWAP, CLZ.
18208 (mn10300_wide_const_load_uses_clr): Remove.
18209 (TARGET_REGISTER_MOVE_COST): New.
18210 (TARGET_MEMORY_MOVE_COST): New.
18211 * config/mn10300/mn10300-protos.h: Update.
18212 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18214 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18215 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18216 * config/mn10300/mn10300-protos.h: Update.
18217 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18218 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18219 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18220 (*test_int_bitfield, *test_byte_bitfield): Remove.
18221 (*bit_test, *subreg_bit_test): Remove.
18222 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18224 * config/mn10300/constraints.md ("c"): Rename from "A".
18225 ("A", "D"): New constraint letters.
18226 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18227 (fmssf4, fnmasf4, fnmssf4): Likewise.
18229 * config/mn10300/mn10300.md (isa): New attribute.
18230 (enabled): New attribute.
18232 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18233 (abssf2, negsf2): Define only for hardware fp.
18234 (sqrtsf2): Reformat.
18235 (addsf3, subsf3, mulsf3): Merge expander and insn.
18237 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18238 (DEBUGGER_AUTO_OFFSET): Remove.
18239 (DEBUGGER_ARG_OFFSET): Remove.
18241 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18242 Emit register stores with the same offsets as the hardware.
18243 (mn10300_store_multiple_operation): Don't check that the register
18244 save offsets are monotonic.
18245 * config/mn10300/mn10300-protos.h: Update.
18247 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18249 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18250 in terms of the value on the stack, not the MDR register.
18252 2011-01-11 Jan Hubicka <jh@suse.cz>
18256 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18257 (symbol_alias_set_destroy, symbol_alias_set_contains,
18258 propagate_aliases_backward): Declare.
18259 * lto-streamer-out.c (struct sets): New sturcture.
18260 (trivally_defined_alias): New function.
18261 (output_alias_pair_p): Rewrite.
18262 (output_unreferenced_globals): Fix output of alias pairs.
18263 (produce_symtab): Likewise.
18264 * ipa.c (function_and_variable_visibility): Set weak alias destination
18266 * varasm.c (symbol_alias_set_t): Remove.
18267 (symbol_alias_set_destroy): Export.
18268 (propagate_aliases_forward, propagate_aliases_backward): New functions
18270 (compute_visible_aliases): ... this one; remove.
18271 (trivially_visible_alias): New
18272 (trivially_defined_alias): New.
18273 (remove_unreachable_alias_pairs): Rewrite.
18274 (finish_aliases_1): Reorganize code checking if alias is defined.
18275 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18278 2011-01-11 Richard Guenther <rguenther@suse.de>
18280 PR tree-optimization/46076
18281 * tree-ssa.c (useless_type_conversion_p): Conversions from
18282 unprototyped to empty argument list function types are useless.
18284 2011-01-11 Richard Guenther <rguenther@suse.de>
18286 PR middle-end/45235
18287 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18288 volatile MEMs as MEM_READONLY_P.
18290 2011-01-11 Richard Guenther <rguenther@suse.de>
18292 PR tree-optimization/47239
18293 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18295 2011-01-11 Jeff Law <law@redhat.com>
18297 PR tree-optimization/47086
18298 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18299 IVs from statements that might throw.
18301 2011-01-10 Jan Hubicka <jh@suse.cz>
18304 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18306 2011-01-10 Jan Hubicka <jh@suse.cz>
18309 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18310 when correcting profile.
18312 2011-01-10 Jan Hubicka <jh@suse.cz>
18315 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18316 DECL_FINI_PRIORITY.
18317 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18318 Restore DECL_FINI_PRIORITY.
18320 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18322 * doc/gimple.texi: Fix quoting of multi-word return values in
18323 @deftypefn statements. Ensure presence of return value. Wrap
18324 overlong @deftypefn lines.
18325 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18326 descriptions of removed functions.
18327 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18328 of multi-word return value in @deftypefn statement.
18330 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18332 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18333 (Conditional Expressions, Logical Operators)
18334 (Statement and operand traversals): Do not indent smallexample
18335 code. Fix duplicate function argument in example.
18337 2011-01-10 Jeff Law <law@redhat.com>
18339 PR tree-optimization/47141
18340 * ipa-split.c (split_function): Handle case where we are
18341 returning a value and the return block has a virtual operand phi.
18343 2011-01-10 Jan Hubicka <jh@suse.cz>
18345 PR tree-optimization/47234
18346 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18347 (pass_feedback_split_functions): Declare.
18348 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18350 * ipa-split.c (gate_split_functions): Update comments; disable
18351 split-functions for profile_arc_flag and branch_probabilities.
18352 (gate_feedback_split_functions): New function.
18353 (execute_feedback_split_functions): New function.
18354 (pass_feedback_split_functions): New global var.
18356 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18359 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18360 calling gimple_call_set_cannot_inline.
18362 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18364 * config/darwin-sections.def: Remove unused section.
18366 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18369 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18371 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18374 * c-parser.c (c_parser_declaration_or_fndef): Improved
18377 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18379 * config/i386/winnt.c (i386_pe_start_function): Make sure
18380 to switch back to function's section.
18382 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18386 * plugin.c: Move include of dlfcn.h from here...
18387 * system.h: ... to here.
18389 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18391 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18393 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18394 two extra empty pages in PDF output.
18396 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18399 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18400 for error recovery purposes behave as if it was not specified so
18401 that the default type is usd.
18403 2011-01-07 Jan Hubicka <jh@suse.cz>
18405 PR tree-optmization/46469
18406 * ipa.c (function_and_variable_visibility): Clear needed flags on
18407 nodes with external decls; handle weakrefs merging correctly.
18409 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18411 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18414 2011-01-07 Jan Hubicka <jh@suse.cz>
18416 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18417 and no longer claim that gold is required for linker plugin.
18418 * configure: Regenerate.
18419 * gcc.c (PLUGIN_COND): New macro.
18420 (LINK_COMMAND_SPEC): Use it.
18421 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18422 * config.in (HAVE_LTO_PLUGIN): New.
18423 * configure.ac (--with-lto-plugin): New parameter; autodetect
18426 2011-01-07 Jan Hubicka <jh@suse.cz>
18428 PR tree-optimization/46367
18429 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18430 when we can update original.
18431 (cgraph_mark_inline_edge): Sanity check.
18432 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18434 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18436 * config/spu/spu.h (ASM_COMMENT_START): Define.
18438 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18441 * gcc.c (%>S): New.
18442 (SWITCH_KEEP_FOR_GCC): Likewise.
18443 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18444 (do_spec_1): Handle "%>".
18446 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18448 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18451 * config/i386/i386.c (ix86_delegitimize_address): If
18452 simplify_gen_subreg fails, return orig_x.
18455 * value-prof.c (gimple_stringop_fixed_value): Handle
18456 lhs of the call properly.
18458 2011-01-07 Jan Hubicka <jh@suse.cz>
18461 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18463 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18465 * target.def (function_switched_text_sections): New hook.
18466 * doc/tm.texi: Regenerated.
18467 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18468 * final.c (default_function_switched_text_sections): New.
18469 (final_scan_insn): Call function_switched_text_sections when a
18470 mid-function section change occurs.
18471 * output.h (default_function_switched_text_sections): Declare.
18472 * config/darwin-protos.h (darwin_function_switched_text_sections):
18474 * config/darwin.c (darwin_function_switched_text_sections): New.
18475 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18477 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18479 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18480 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18481 the secondary code fragment when outputting for DWARF == 2.
18483 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18485 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18486 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18488 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18489 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18491 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18494 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18495 when it is not empty.
18497 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18500 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18501 (case ${target}): Add btver1.
18502 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18503 -march=native recognize btver1 processors.
18504 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18505 btver1 def_and_undef
18506 * config/i386/i386.c (struct processor_costs btver1_cost): New
18508 (m_BTVER1): New definition.
18509 (m_AMD_MULTIPLE): Includes m_BTVER1.
18510 (initial_ix86_tune_features): Add btver1 tune.
18511 (processor_target_table): Add btver1 entry.
18512 (static const char *const cpu_names): Add btver1 entry.
18513 (software_prefetching_beneficial_p): Add btver1.
18514 (ix86_option_override_internal): Add btver1 instruction sets.
18515 (ix86_issue_rate): Add btver1.
18516 (ix86_adjust_cost): Add btver1.
18517 * config/i386/i386.h (TARGET_BTVER1): New definition.
18518 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18519 (enum processor_type): Add PROCESSOR_BTVER1.
18520 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18522 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18525 * config/i386/i386.c (legitimize_tls_address)
18526 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18527 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18528 (tls_initial_exec_64_sun): New pattern.
18530 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18532 * doc/invoke.texi (Overall Options): Improve wording and markup
18533 of the description of -wrapper.
18535 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18537 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18538 rdynamic, threads): New Driver options.
18540 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18543 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18544 if coming from .tdata.
18545 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18547 2011-01-06 Jan Hubicka <jh@suse.cz>
18550 * collect2.c (main): Do not enable LTOmode when plugin is active.
18552 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18555 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18556 --version output if supported.
18557 * configure: Regenerate.
18559 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18561 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18564 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18567 * c-convert.c (convert): When converting a complex expression
18568 other than COMPLEX_EXPR to a different complex type, ensure
18569 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18570 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18571 when converting COMPLEX_TYPE.
18573 2011-01-06 Ira Rosen <irar@il.ibm.com>
18575 PR tree-optimization/47139
18576 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18577 only the last reduction value is used outside the loop. Update
18580 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18582 * config/rtems.opt: New.
18583 * config.gcc (*-*-rtems*): Use rtems.opt.
18585 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18587 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18588 processors do not support 3DNow instructions.
18590 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18592 * config/spu/spu.c (spu_option_override): Set parameter
18593 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18595 2011-01-05 Jan Hubicka <jh@suse.cz>
18597 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18598 at the command line.
18600 2011-01-05 Martin Jambor <mjambor@suse.cz>
18603 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18604 deltas on streamed outgoing edges.
18605 (output_node_opt_summary): Output info for outgoing edges only when
18606 the node is in new parameter set.
18607 (output_cgraph_opt_summary): New parameter set, passed to the two
18608 aforementioned functions. Update its forward declaration and its
18611 2011-01-05 Tom Tromey <tromey@redhat.com>
18613 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18614 operator to c_finish_omp_atomic.
18615 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18616 (build_unary_op): Update.
18617 (build_modify_expr): Update.
18618 (build_asm_expr): Update.
18620 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18622 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18623 newly inserted insns.
18624 (pad_bb): Likewise.
18625 (spu_emit_branch_hint): Likewise.
18626 (insert_hbrp_for_ilb_runout): Likewise.
18627 (spu_machine_dependent_reorg): Call df_finish_pass after
18628 schedule_insns returns.
18630 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18632 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18634 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18636 PR tree-optimization/47005
18637 * tree-sra.c (struct access): Add 'non_addressable' bit.
18638 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18639 (decide_one_param_reduction): Return 0 if the parameter is passed by
18640 reference and one of the accesses in the group is non_addressable.
18642 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18644 PR tree-optimization/47056
18645 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18646 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18647 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18649 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18651 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18652 initializer. Skip view conversions from aggregate types.
18654 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18657 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18659 2011-01-04 Philipp Thomas <pth@suse.de>
18661 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18664 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18666 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18667 on empty epilogue sequences.
18669 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18671 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18672 non-static): New Driver options.
18674 2011-01-04 Jie Zhang <jie@codesourcery.com>
18677 * gcc.c (default_compilers[]): Set combinable field to 0
18678 for all assembly languages.
18680 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18682 * config/mips/loongson3a.md: New file.
18683 * config/mips/mips.md: Include loongson3a.md.
18684 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18687 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18689 PR middle-end/47017
18690 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18691 instead of convert_memory_address_addr_space on the base expression.
18693 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18695 * config/spu/spu.c (spu_option_override): Update error text
18696 for bad -march= / -mtune= values.
18698 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18700 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18701 if branch-hint optimization will be performed.
18703 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18705 PR tree-optimization/47148
18706 * ipa-split.c (split_function): Convert arguments to
18707 DECL_ARG_TYPE if possible.
18709 PR tree-optimization/47155
18710 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18711 when computing uns.
18713 PR rtl-optimization/47157
18714 * combine.c (try_combine): If undobuf.other_insn becomes
18715 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18716 and set *new_direct_jump_p too.
18718 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18720 PR tree-optimization/47021
18721 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18723 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18725 * gcc.c (process_command): Update copyright notice dates.
18726 * gcov.c (print_version): Likewise.
18727 * gcov-dump.c (print_version): Likewise.
18728 * mips-tfile.c (main): Likewise.
18729 * mips-tdump.c (main): Likewise.
18731 2011-01-03 Martin Jambor <mjambor@suse.cz>
18733 PR tree-optimization/46801
18734 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18735 aggregate fields start at byte boundary instead of the bit-field flag.
18737 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18740 * gcc.c (main): Revert revision 168407.
18742 2011-01-03 Martin Jambor <mjambor@suse.cz>
18744 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18746 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18748 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18749 vector optab to expand vector/scalar shift, update gimple to vector.
18751 2011-01-03 Martin Jambor <mjambor@suse.cz>
18753 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18756 2011-01-03 Martin Jambor <mjambor@suse.cz>
18758 PR tree-optimization/46984
18759 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18761 (cgraph_create_indirect_edge): Fixed line length.
18762 (cgraph_indirect_call_info): Declare.
18763 (cgraph_make_edge_direct) Update declaration.
18764 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18765 (cgraph_create_indirect_edge): Use it.
18766 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18768 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18769 the new thunk_delta representation.
18770 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18772 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18773 (ipa_read_indirect_edge_info): Likewise.
18774 * lto-cgraph.c (output_edge_opt_summary): New function.
18775 (output_node_opt_summary): Call it on all outgoing edges.
18776 (input_edge_opt_summary): New function.
18777 (input_node_opt_summary): Call it on all outgoing edges.
18779 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18782 * gcc.c (main): Don't check have_o when settting combine_inputs.
18784 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18786 * regrename.c: Add general comment describing the pass.
18787 (struct du_head): Remove 'length' field.
18788 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18789 (regrename_optimize): Do not sort chains. Rework comments, add others.
18790 Force renaming to the preferred class (if any) in the first pass and do
18791 not consider registers that belong to it in the second pass.
18792 (create_new_chain): Do not set 'length' field.
18793 (scan_rtx_reg): Likewise.
18795 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18797 PR tree-optimization/47140
18798 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18799 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18800 to bit_value_binop.
18802 PR rtl-optimization/47028
18803 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18804 parm_birth_insn instead of at the beginning of first bb.
18806 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18808 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18809 Remove the word "see" before "@pxref".
18810 * doc/rtl.texi: Remove the word "see" before "@pxref".
18812 2011-01-01 Jan Hubicka <jh@suse.cz>
18814 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18817 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18820 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18823 Copyright (C) 2011 Free Software Foundation, Inc.
18825 Copying and distribution of this file, with or without modification,
18826 are permitted in any medium without royalty provided the copyright
18827 notice and this notice are preserved.