builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
[gcc.git] / gcc / ChangeLog
1 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2
3 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
5 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8 (evaluate_stmt, execute_fold_all_builtins): Handle
9 BUILT_IN_ASSUME_ALIGNED.
10 * tree-ssa-dce.c (propagate_necessity): Likewise.
11 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12 call_may_clobber_ref_p_1): Likewise.
13 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
14 (expand_builtin_assume_aligned): New function.
15 * doc/extend.texi (__builtin_assume_aligned): Document.
16
17 PR debug/49544
18 * cselib.c (promote_debug_loc): If cselib_preserve_constants
19 and l has two DEBUG_INSN owned locs instead of just one, adjust
20 the second location's setting_insn too.
21
22 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 PR libmudflap/38738
25 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
26
27 2011-06-27 Nick Clifton <nickc@redhat.com>
28
29 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
30 convert bit position of highest bit set into a count of the high
31 zero bits.
32
33 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
34
35 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
36
37 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
38
39 PR lto/48492
40 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
41 to a NULL parent.
42
43 2011-06-27 Richard Guenther <rguenther@suse.de>
44
45 PR tree-optimization/49394
46 * passes.c (execute_one_pass): Restore current_pass after
47 applying IPA transforms.
48
49 2011-06-27 Kai Tietz <ktietz@redhat.com>
50
51 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
52 out of type precision after operation.
53 (find_bswap): Take for limit value the integer auto-
54 promotion into account.
55
56 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
57
58 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
59 forward scan as well.
60
61 2011-06-27 Tristan Gingold <gingold@adacore.com>
62
63 PR target/44241
64 * config/vms/vms-protos.h: New file.
65 * config/vms/vms-crtlmap.map: New file.
66 * config/vms/vms.c: New file.
67 * config/vms/make-crtlmap.awk: New file.
68 * config/vms/vms-crtl.h: File removed.
69 * config/vms/vms-crtl-64.h: File removed.
70 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
71 * config/alpha/vms64.h: Do not include vms-crtl-64.h
72 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
73 clear some builtins on VMS. Calls vms_patch_builtins.
74 (avms_asm_output_external): Remove.
75 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
76 (struct crtl_name_spec): Remove
77 (DO_CTRL_NAMES): Remove.
78 * config/ia64/vms.h (struct crtl_name_spec): Remove
79 (DO_CTRL_NAMES): Remove.
80 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
81 clear some builtins on VMS. Calls vms_patch_builtins.
82 (ia64_asm_output_external): Remove DO_CRTL_NAME.
83 * config/ia64/vms64.h: Do not include vms-crtl-64.h
84 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
85 tm_p_file.
86
87 2011-06-27 Tristan Gingold <gingold@adacore.com>
88
89 * config/alpha/alpha.c (alpha_end_function): Always generate .end
90 directive on VMS.
91
92 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
93
94 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
95 the function receives nonlocal gotos.
96
97 2011-06-27 Richard Guenther <rguenther@suse.de>
98
99 PR tree-optimization/49536
100 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
101 For non-scalar inner types use a scalar type according to
102 the scalar inner mode.
103
104 2011-06-27 Richard Guenther <rguenther@suse.de>
105
106 PR tree-optimization/49365
107 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
108
109 2011-06-27 Richard Guenther <rguenther@suse.de>
110
111 PR tree-optimization/49169
112 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
113 the alignment of function decls.
114
115 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
116
117 PR target/47997
118 * config/darwin.c (darwin_mergeable_string_section): Place string
119 constants in '.cstring' rather than '.const' when CF/NSStrings are
120 active.
121
122 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
123
124 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
125 (emit_save_register_window): Likewise.
126 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
127 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
128 Swap back %o7/%i7 in register naming.
129
130 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
131
132 PR driver/49371
133 * config/darwin.c (darwin_override_options): Improve warning when
134 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
135 is given with fpie/fPIE.
136 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
137 * config/darwin9.h (PIE_SPEC): New.
138
139 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
140
141 * timevar.c (timevar_print): Increase width for display of timevar
142 name.
143
144 2011-06-24 Jakub Jelinek <jakub@redhat.com>
145
146 PR c++/46400
147 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
148 instead of TYPE_CHAIN for chain_next for types.
149
150 2011-06-24 Richard Henderson <rth@redhat.com>
151
152 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
153 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
154 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
155 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
156 (sparc_flat_expand_prologue): Emit individual instructions
157 instead of one of the above.
158
159 2011-06-24 Easwaran Raman <eraman@google.com>
160
161 PR rtl-optimization/49429
162 PR target/49454
163 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
164 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
165 used to copy y into x.
166 * calls.c (initialize_argument_information): Mark
167 an argument addressable if it is passed by invisible reference.
168 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
169 if it is passed by reference.
170
171 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
172
173 PR rtl-optimization/49504
174 * rtlanal.c (nonzero_bits1): Properly handle addition or
175 subtraction of a pointer in Pmode if pointers extend unsigned.
176 (num_sign_bit_copies1): Likewise.
177
178 2011-06-24 Martin Jambor <mjambor@suse.cz>
179
180 PR tree-optimizations/49516
181 * tree-sra.c (sra_modify_assign): Choose the safe path for
182 aggregate copies if we also did scalar replacements.
183
184 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
185
186 PR target/49335
187 * config/arm/predicates.md (add_operator): New.
188 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
189 in Thumb2.
190
191 2011-06-24 Andi Kleen <ak@linux.intel.com>
192
193 * tree-sra.c (type_internals_preclude_sra_p): Add msg
194 parameter. Split up ifs and report reason in *msg.
195 (reject): Add.
196 (find_var_candiate): Add msg variable.
197 Split up ifs and report reason to reject.
198 (find_param_candidates): Add msg variable.
199 Pass msg to type_internals_preclude_sra_p.
200
201 2011-06-23 Jeff Law <law@redhat.com>
202
203 PR middle-end/48770
204 * reload.h (reload): Change to return a bool.
205 * ira.c (ira): If requested by reload, run a fast DCE pass after
206 reload has completed. Fix comment typo.
207 * reload1.c (need_dce): New file scoped static.
208 (reload): Set reload_completed here. Return whether or not a DCE
209 pass after reload is needed.
210 (delete_dead_insn): Set need_dce as needed.
211
212 PR middle-end/49465
213 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
214 to detect threading through joiner block. If there was already
215 an edge to the new target, then do not change the PHI nodes.
216
217 2011-06-23 Jakub Jelinek <jakub@redhat.com>
218
219 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
220 get_pointer_alignment to see if base isn't sufficiently aligned.
221
222 2011-06-23 Jan Hubicka <jh@suse.cz>
223
224 PR tree-optimize/49373
225 * tree-pass.h (all_late_ipa_passes): Declare.
226 * cgraphunit.c (init_lowered_empty_function): Fix properties.
227 (cgraph_optimize): Execute late passes; remove unreachable funcions after
228 materialization.
229 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
230 * passes.c (all_late_ipa_passes): Declare.
231 (dump_passes, register_pass): Handle late ipa passes.
232 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
233 at beggining of all_passes.
234 (apply_ipa_transforms): New function.
235 (execute_one_pass): When doing simple ipa pass, apply all transforms.
236
237 2011-06-23 Joseph Myers <joseph@codesourcery.com>
238
239 * params.c: Include common/common-target.h. Don't include tm.h.
240 (lang_independent_params): Move from toplev.c.
241 (global_init_params): New.
242 * params.h (global_init_params): Declare.
243 * target.def (default_params): Move to common-target.def.
244 * toplev.c (lang_independent_options): Remove.
245 (lang_independent_params): Move to params.c.
246 (general_init): Use global_init_params.
247 * common/common-target.def (option_default_params): Move from
248 target.def.
249 * common/config/ia64/ia64-common.c: Include params.h.
250 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
251 from ia64.c.
252 * common/config/rs6000/rs6000-common.c: Include params.h.
253 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
254 from rs6000.c.
255 * common/config/sh/sh-common.c: Include params.h.
256 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
257 from sh.c.
258 * common/config/spu/spu-common.c: Include params.h.
259 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
260 from spu.c.
261 * config/ia64/ia64.c (ia64_option_default_params,
262 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
263 * config/rs6000/rs6000.c (rs6000_option_default_params,
264 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
265 * config/sh/sh.c (sh_option_default_params,
266 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
267 * config/spu/spu.c (spu_option_default_params,
268 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
269 * Makefile.in (OBJS): Remove params.o.
270 (OBJS-libcommon-target): Add params.o.
271 (params.o, $(common_out_object_file)): Update dependencies.
272 * doc/tm.texi: Regenerate.
273
274 2011-06-23 Alan Modra <amodra@gmail.com>
275
276 PR bootstrap/49383
277 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
278 invocation for 2011-06-09 changes.
279
280 2011-06-22 Jakub Jelinek <jakub@redhat.com>
281
282 PR libgomp/49490
283 * omp-low.c (expand_omp_for_static_nochunk): Only
284 use n ceil/ nthreads size for the first
285 n % nthreads threads in the team instead of
286 all threads except for the last few ones which
287 get less work or none at all.
288
289 PR debug/49496
290 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
291 uses.
292
293 2011-06-22 Richard Guenther <rguenther@suse.de>
294
295 PR tree-optimization/49493
296 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
297 Refer to the alias target of variables.
298 (associate_varinfo_to_alias_1): Remove.
299 (ipa_pta_execute): Do not associate aliases with anything.
300 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
301 (cgraph_function_node): Likewise.
302 (cgraph_function_or_thunk_node): Likewise.
303 (varpool_variable_node): Likewise.
304
305 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
306
307 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
308 typo.
309 * config.gcc (arm*-*-linux*): Default to gnu tls.
310 (arm*-*-*): Add --with-tls option.
311 (all_defaults): Add 'tls'.
312
313 2011-06-22 Richard Henderson <rth@redhat.com>
314
315 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
316 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
317 (dwarf2out_frame_debug_cfa_window_save): Rename from
318 dwarf2out_window_save; make static.
319 * tree.h (dwarf2out_window_save): Don't declare.
320
321 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
322 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
323 (emit_save_register_window): Rename from gen_save_register_window;
324 emit the insn and add REG_CFA_* notes.
325 (sparc_expand_prologue): Update to match.
326 * config/sparc/sparc.md (save_register_window_1): Simplify from
327 save_register_window<P:mode>.
328
329 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
330
331 PR target/49497
332 * config/i386/i386.md (*lea_general_2): Always allow SImode.
333 (*lea_general_2_zext): Likewise.
334 (imul to lea peepholes): Use const359_operand and check
335 TARGET_PARTIAL_REG_STALL.
336
337 * config/i386/predicates.md (const359_operand): New.
338
339 2011-06-22 Michael Matz <matz@suse.de>
340
341 * cgraphunit.c (assemble_thunk): Use correct return type.
342
343 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
344 Dmitry Melnik <dm@ispras.ru>
345
346 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
347 (neon_output_shift_immediate): Ditto.
348 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
349 prototype.
350 (neon_output_shift_immediate): Ditto.
351 * config/arm/neon.md (vashl<mode>3): Modified constraint.
352 (vashr<mode>3_imm): New insn pattern.
353 (vlshr<mode>3_imm): Ditto.
354 (vashr<mode>3): Modified constraint.
355 (vlshr<mode>3): Ditto.
356 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
357 predicate.
358 (imm_for_neon_rshift_operand): Ditto.
359 (imm_lshift_or_reg_neon): Ditto.
360 (imm_rshift_or_reg_neon): Ditto.
361
362 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
363
364 2011-06-22 Jakub Jelinek <jakub@redhat.com>
365
366 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
367 builtin calls even if likelyvalue is not CONSTANT.
368 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
369 Return get_value_for_expr of first operand
370 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
371 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
372 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
373 their non-checking counterparts.
374 (call_may_clobber_ref_p_1): Likewise.
375 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
376 like their non-checking counterparts.
377 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
378 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
379 like their non-checking counterparts.
380 (find_func_clobbers): Likewise.
381 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
382 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
383
384 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
385 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
386 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
387 of base type reference as argument.
388 (resolve_addr_in_expr): Likewise. Fix keep computation.
389 (convert_descriptor_to_signed): Renamed to...
390 (convert_descriptor_to_mode): ... this. For wider types convert
391 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
392 untyped.
393 (typed_binop): New function.
394 (scompare_loc_descriptor, ucompare_loc_descriptor,
395 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
396 default to unsigned type instead of signed.
397
398 PR debug/47858
399 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
400 (gimple_build_debug_source_bind_stat): New prototype.
401 (gimple_build_debug_source_bind): Define.
402 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
403 gimple_debug_source_bind_get_value,
404 gimple_debug_source_bind_get_value_ptr,
405 gimple_debug_source_bind_set_var,
406 gimple_debug_source_bind_set_value): New inlines.
407 * gimple.c (gimple_build_debug_source_bind_stat): New function.
408 * gimple-pretty-print.c (dump_gimple_debug): Handle
409 GIMPLE_DEBUG_SOURCE_BIND.
410 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
411 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
412 * tree-parloops.c (eliminate_local_variables,
413 separate_decls_in_region): Likewise.
414 (separate_decls_in_region_debug): Renamed from
415 separate_decls_in_region_debug_bind. Handle
416 gimple_debug_source_bind_p.
417 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
418 prototypes.
419 (DECL_HAS_DEBUG_ARGS_P): Define.
420 (struct tree_function_decl): Add has_debug_args_flag field.
421 * tree.c (debug_args_for_decl): New variable.
422 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
423 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
424 (rewrite_debug_stmt_uses): New function.
425 (rewrite_stmt): Use it to rewrite debug stmt uses.
426 * rtl.def (DEBUG_PARAMETER_REF): New.
427 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
428 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
429 DEBUG_PARAMETER_REF.
430 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
431 * print-rtl.c (print_rtx): Likewise.
432 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
433 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
434 debug stmts in the first bb.
435 * tree-inline.c (remap_ssa_name): If remapping default def
436 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
437 a source bind debug stmt.
438 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
439 (maybe_move_debug_stmts_to_successors): Likewise.
440 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
441 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
442 debug args vector from old_decl to new_decl.
443 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
444 or modified parameters, add debug bind stmts before call
445 setting DEBUG_EXPR_DECL which is remembered in debug args
446 vector.
447 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
448 on DECL_DEBUG_EXPRs from debug args vector.
449 (expand_debug_source_expr): New function.
450 (expand_debug_locations): Use it for source bind insns.
451 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
452 * var-tracking.c (prepare_call_arguments): Add debug args
453 to call_arguments if any.
454 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
455 output_loc_operands, output_loc_operands_raw,
456 resolve_addr_in_expr, compare_loc_operands): Handle
457 DW_OP_GNU_parameter_ref.
458 (get_ref_die_offset, parameter_ref_descriptor): New functions.
459 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
460 (gen_subprogram_die): Handle parameters identified by
461 DEBUG_PARAMETER_REF.
462
463 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
464
465 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
466 * doc/install.texi (Configuration): Document --with-tls.
467 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
468 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
469 (arm_tls_descseq_addr): New.
470 (legitimize_tls_address): Add tlsdesc support.
471 (arm_cannot_copy_insn_p): Check for tlscall.
472 (arm_emit_tls_decoration): Likewise.
473 * config/arm/arm.h (TARGET_GNU2_TLS): New.
474 (OPTION_DEFAULT_SPECS): Add with-tls support.
475 * config/arm/arm.md (R1_REGNUM): Define.
476 (tlscall): New.
477 * config/arm/arm.opt (tls_type): New enumeration type and values.
478 (mtls-dialect): New switch.
479 * config/arm/arm-opts.h (enum tls_type): New.
480
481 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
482
483 * attribs.c (register_attribute): Added assert to check that all
484 attribute specs are registered with a name that is not empty and
485 does not start with '_'.
486 (decl_attributes): Avoid the lookup of the "naked" attribute spec
487 if the function has no attributes.
488 * tree.c (is_attribute_with_length_p): Removed.
489 (is_attribute_p): Removed.
490 (private_is_attribute_p): New.
491 (private_lookup_attribute): New.
492 (lookup_attribute): Removed.
493 (lookup_ident_attribute): New.
494 (remove_attribute): Require the first argument to be in the form
495 'text', not '__text__'. Updated asserts.
496 (merge_attributes): Use lookup_ident_attributes instead of
497 lookup_attribute.
498 (merge_dllimport_decl_attributes): Use remove_attribute.
499 (attribute_list_contained): Likewise.
500 (attribute_list_equal): Immediately return 1 if the arguments are
501 identical pointers.
502 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
503 'int'. Require the first argument to be in the form 'text', not
504 '__text__'. Require the second argument to be an identifier.
505 (lookup_attribute): Made inline. Require the first argument to be
506 in the form 'text', not '__text__'.
507 (private_is_attribute_p, private_lookup_attribute): New.
508 Updated comments.
509
510 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
511
512 * builtins.c: Add sync_ or SYNC__ to builtin names.
513 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
514 * omp-low.c: Add sync_ or SYNC__ to builtin names.
515
516 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
517
518 PR target/33049
519 * config/avr/avr.md (extzv): New expander.
520 (*extzv): New insn.
521 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
522 * config/avr/constraints.md (C04): New constraint.
523 * doc/md.texi (Machine Constraints): Document it.
524
525 2011-06-21 Jakub Jelinek <jakub@redhat.com>
526
527 PR middle-end/49489
528 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
529 unsignedp argument instead of 1 for clrsb_optab.
530 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
531 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
532 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
533 * optabs.c (widen_leading): Call widen_operand and expand_unop
534 with 0 as unsignedp argument instead of 1 for clrsb_optab.
535 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
536
537 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
538
539 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
540
541 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
542
543 * gensupport.c (add_define_attr): New static function.
544 (is_predicable): Allow multi-alternative lists for the "predicable"
545 attribute.
546 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
547 (process_one_cond_exec): Call alter_attrs_for_insn.
548 * doc/md.texi (Defining Attributes): Mention some standard names.
549 (Conditional Execution): Update documentation for "predicable".
550
551 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
552 __builtin_clrsbll): Document.
553 * doc/rtl.texi (clrsb): New entry.
554 * optabs.c (widen_leading): Renamed from widen_clz. New argument
555 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
556 (expand_unop): Handle clrsb_optab.
557 (init_optabs): Initialize it.
558 * optabs.h (enum optab_index): New entry OTI_clrsb.
559 (clrsb_optab): Define.
560 * genopinit.c (optabs): Add an entry for it.
561 * builtins.c (expand_builtin): Handle clrsb builtin functions.
562 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
563 BUILT_IN_CLRSBLL): New.
564 * rtl.def (CLRSB): New code.
565 * dwarf2out.c (mem_loc_descriptor): Handle it.
566 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
567 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
568 and popcount.
569 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
570 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
571 (__ctzDI2): Move declaration.
572 * config/bfin/bfin.md (clrsbsi2): New expander.
573 (signbitssi2): Use the CLRSB rtx.
574 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
575 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
576
577 2011-06-21 Richard Guenther <rguenther@suse.de>
578
579 * ipa-inline-transform.c (inline_transform): Fix previous change.
580
581 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
582
583 PR tree-optimization/49478
584 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
585 with constant operand.
586
587 2011-06-21 Richard Guenther <rguenther@suse.de>
588
589 * ipa-inline-transform.c (inline_transform): Fix typo.
590
591 2011-06-21 Richard Guenther <rguenther@suse.de>
592
593 PR tree-optimization/49483
594 * tree-vect-stmts.c (vectorizable_assignment): Also handle
595 VIEW_CONVERT_EXPR conversions.
596
597 2011-06-21 Joseph Myers <joseph@codesourcery.com>
598
599 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
600 * config/avr/avr-tables.opt: New file (generated).
601 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
602 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
603 avr-mcus.def.
604 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
605 (avr_option_override): Don't process -mmcu= argument here. Set
606 avr_current_device using avr_mcu_index.
607 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
608 * config/avr/avr.opt (mmcu=): Use Enum.
609 * config/avr/t-avr (avr-devices.o): Update dependencies.
610 ($(srcdir)/config/avr/avr-tables.opt): New.
611 * target.def (help): Remove.
612 * doc/tm.texi.in (TARGET_HELP): Remove.
613 * doc/tm.texi: Regenerate.
614 * opts.c: Don't include target.h.
615 (common_handle_option): Don't call targetm.help.
616 * system.h (TARGET_HELP): Poison.
617 * Makefile.in (opts.o): Update dependencies.
618
619 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620
621 * config/usegld.h: New file.
622 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
623 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
624 (LIB_SPEC): Likewise. Search /lib.
625 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
626 (RDYNAMIC_SPEC): Handle GNU ld.
627 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
628 Define.
629 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
630 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
631 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
632 (STACK_CHECK_STATIC_BUILTIN): Define.
633 * config/sol2.opt (compat-bsd): Remove.
634 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
635 * config/sol2-bi.h: New file.
636 * config/sol2-gld.h: Remove.
637 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
638 (NO_DBX_BNSYM_ENSYM): Remove.
639 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
640 (STACK_CHECK_STATIC_BUILTIN): Remove.
641 Test USE_GLD instead of TARGET_GNU_LD.
642 * config/i386/sol2-10.h: Rename to ...
643 * config/i386/sol2-bi.h .. this.
644 (SUBTARGET_EXTRA_SPECS): Redefine.
645 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
646 (MULTILIB_DEFAULTS): Remove.
647 (DEFAULT_ARCH32_P): Define.
648 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
649 (ARCH64_SUBDIR): Define.
650 Test USE_GLD instead of TARGET_GNU_LD.
651 (I386_EMULATION): Rename to ...
652 (ARCH32_EMULATION): ... this.
653 (X86_64_EMULATION): Rename to ...
654 (ARCH64_EMULATION): ... this.
655 (TARGET_LD_EMULATION): Remove.
656 (LINK_ARCH_SPEC): Remove.
657 * config/i386/sol2-gas.h: Remove.
658 * config/i386/t-sol2-10: Rename to ...
659 * config/i386/t-sol2-64: ... this.
660 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
661 (AS_SPARC64_FLAG): Define.
662 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
663 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
664 depending on TARGET_CPU_DEFAULT.
665 (CPP_CPU_SPEC): Redefine.
666 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
667 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
668 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
669 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
670 ASM_ARCH_DEFAULT_SPEC): Redefine.
671 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
672 LINK_ARCH_DEFAULT_SPEC.
673 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
674 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
675 (ARCH64_SUBDIR): Define.
676 (LINK_ARCH64_SPEC): Redefine.
677 (CC1_SPEC): Redefine.
678 (OPTION_DEFAULT_SPECS): Redefine.
679 (MULTILIB_DEFAULTS): Define.
680 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
681 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
682 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
683 (NO_DBX_BNSYM_ENSYM): Remove.
684 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
685 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
686 (TARGET_ASM_NAMED_SECTION): Likewise.
687 (STACK_CHECK_STATIC_BUILTIN): Remove.
688 * config/sparc/sol2-bi.h: Remove.
689 * config/sparc/sol2-gas-bi.h: Remove.
690 * config/sparc/sol2-gas.h: Remove.
691 * config/sparc/sol2-gld-bi.h: Remove.
692 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
693 common parts ...
694 (*-*-solaris2*): ... here.
695
696 2011-06-21 Christian Bruel <christian.bruel@st.com>
697
698 PR other/43564
699 * ipa-inline.c (can_inline_edge_p): Check
700 !DECL_DISREGARD_INLINE_LIMITS.
701
702 2011-06-21 Christian Bruel <christian.bruel@st.com>
703
704 PR middle-end/49139
705 * cgraphunit.c (process_function_and_variable_attributes): warn when
706 always_inline functions that are not inline.
707 * ipa-inline-transform.c (inline_transform): Always call
708 optimize_inline.
709 * tree-inline.c (tree_inlinable_function_p): Use error instead
710 of sorry.
711 (expand_call_inline): Likewise.
712
713 2011-06-21 Jakub Jelinek <jakub@redhat.com>
714
715 * Makefile.in (dg_target_exps): Set.
716 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
717 instead of 7, try to divide it more evenly.
718
719 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
720
721 PR i386/49089
722 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
723 (avx256_split_unaligned_store): New definition.
724 (ix86_option_override_internal): Enable avx256 unaligned load/store
725 splitting only when avx256_split_unaligned_load/store is set.
726
727 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
728
729 * regrename.c (scan_rtx_reg): Handle the case where we write to an
730 open chain in a smaller mode without failing the entire block.
731
732 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
733
734 PR middle-end/47725
735 * combine.c (cant_combine_insn_p): Don't check zero/sign
736 extended hard registers.
737
738 2011-06-21 Alan Modra <amodra@gmail.com>
739
740 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
741 CONST high part large-toc address.
742 (rs6000_tls_referenced_p): Make static.
743 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
744
745 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
746
747 PR middle-end/47725
748 * combine.c (cant_combine_insn_p): Check zero/sign extended
749 hard registers.
750
751 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
752
753 PR target/49385
754 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
755 one of the operands is a register.
756
757 2011-06-20 Kai Tietz <ktietz@redhat.com>
758
759 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
760 operations in combination with binary and.
761
762 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
763
764 * regrename.c (do_replace): Don't update notes.
765
766 2011-06-20 Alan Modra <amodra@gmail.com>
767
768 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
769 of toc-relative address in CONST.
770 (rs6000_delegitimize_address): Recognize changed address.
771 (rs6000_legitimize_reload_address): Likewise.
772 (rs6000_emit_move): Don't force these constants to memory.
773 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
774 toc-relative address in CONST.
775 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
776 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
777
778 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
779
780 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
781 (count_trailing_zeros): Likewise.
782
783 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
784
785 PR other/49325
786 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
787 .init_array can be used with .ctors on targets.
788 * configure: Regenerated.
789
790 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
791
792 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
793 if the element type is volatile.
794
795 2011-06-18 Jan Hubicka <jh@suse.cz>
796
797 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
798 extra name aliases.
799 (lto_symtab_resolve_can_prevail_p): Likewise.
800 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
801 * cgraphbuild.c (record_reference): Remove extra body alias code.
802 (mark_load): Likewise.
803 (mark_store): Likewise.
804 * cgraph.h (varpool_node): Remove extra_name filed;
805 add alias_of and extraname_alias.
806 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
807 (varpool_alias_aliased_node): New inline function.
808 (varpool_variable_node): New function.
809 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
810 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
811 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
812 (input_varpool_node): Likewise.
813 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
814 (varpool_externally_visible_p): Remove extra body alias code.
815 (function_and_variable_visibility): Likewise.
816 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
817 (ipa_pta_execute): Use it.
818 * varpool.c (varpool_remove_node): Remove extra name alias code.
819 (varpool_mark_needed_node): Likewise.
820 (varpool_analyze_pending_decls): Analyze aliases.
821 (assemble_aliases): New functoin.
822 (varpool_assemble_decl): Use it.
823 (varpool_create_variable_alias): New function.
824 (varpool_extra_name_alias): Rewrite.
825 (varpool_for_node_and_aliases): New function.
826
827 2011-06-18 Jakub Jelinek <jakub@redhat.com>
828
829 PR target/49411
830 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
831 last_arg_constant and last argument doesn't match its predicate,
832 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
833 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
834 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
835 spelling of error message.
836 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
837 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
838 const_0_to_255_operand instead of const_int_operand.
839
840 Revert:
841 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
842
843 * config/i386/sse.md (blendbits): Remove mode attribute.
844 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
845 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
846 Check integer value of operand 3 in insn constraint.
847
848 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
849
850 PR rtl-optimization/48542
851 * reload.c (find_equiv_reg): Stop looking when finding a
852 setjmp-type call.
853 * reload1.c (reload_as_needed): Invalidate all reload
854 registers when crossing a setjmp-type call.
855
856 2011-06-16 Jeff Law <law@redhat.com>
857
858 * tree-ssa-threadupdate.c (struct redirection_data): New field
859 intermediate_edge.
860 (THREAD_TARGET2): Define.
861 (redirection_data_eq): Also check that the intermediate edge is equal.
862 (lookup_redirection_data): Drop useless argument. Extract the
863 outgoing_edge and intermediate edge from E. Callers updated.
864 (copy_phi_args, update_destination_phis): New functions.
865 (fix_duplicate_block_edges): Likewise.
866 (create_edge_and_update_destination_phis): Duplicate all the edges
867 hung off e->aux. Use copy_phi_args.
868 (create_duplicates): Use fix_duplicate_block_edges.
869 (fixup_template_block): Likewise.
870 (redirect_edges): If necessary, redirect the joiner block's incoming
871 edge to the duplicate of the joiner block.
872 (thread_block): Don't muck up loops when threading through a joiner
873 block.
874 (thread_through_loop_header): Handle threading through a joiner block.
875 (mark_threaded_blocks, register_jump_thread): Likewise.
876 * tree-flow.h (register_jump_thread): Add new argument. Callers
877 updated.
878 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
879 (thread_across_edge): Handle threading through a joiner block.
880
881 2011-06-16 Martin Jambor <mjambor@suse.cz>
882
883 PR tree-optimization/49343
884 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
885 calculate offset, provide 2nd operand for the new COMPONENT_REF.
886
887 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
888
889 * config/darwin-protos.h (machopic_select_rtx_section): Move to
890 inside RTX_CODE ifdef.
891
892 2011-06-16 Tom de Vries <tom@codesourcery.com>
893
894 PR target/45098
895 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
896 Disallow NULL pointer for pointer arithmetic.
897
898 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
899
900 PR target/49398
901 Revert.
902 2011-06-10 Wei Guozhi <carrot@google.com>
903
904 PR target/45335
905 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
906 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
907 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
908 related peephole2.
909 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
910 related peephole2.
911 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
912 (arm_legitimate_ldrd_p): New prototype.
913 (arm_output_ldrd): New prototype.
914 * config/arm/arm.c (arm_check_ldrd_operands): New function.
915 (arm_legitimate_ldrd_p): New function.
916 (arm_output_ldrd): New function.
917
918 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
919
920 PR middle-end/46500
921 * doc/tm.texi.in: Update Copyright date.
922 * doc/tm.texi: Regenerate.
923 * targhooks.c (default_setup_incoming_varargs): Replace
924 CUMULATIVE_ARGS* argument type with cumulative_args_t.
925 (default_pretend_outgoing_varargs_named): Likewise.
926 (hook_pass_by_reference_must_pass_in_stack): Likewise.
927 (hook_callee_copies_named): Likewise.
928 (default_function_arg_advance): Likewise.
929 (default_function_arg): Likewise.
930 (default_function_incoming_arg): Likewise.
931 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
932 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
933 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
934 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
935 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
936 * targhooks.h (default_setup_incoming_varargs): Likewise.
937 (default_pretend_outgoing_varargs_named): Likewise.
938 (hook_pass_by_reference_must_pass_in_stack): Likewise.
939 (hook_callee_copies_named): Likewise.
940 (default_function_arg_advance): Likewise.
941 (default_function_arg): Likewise.
942 (default_function_incoming_arg): Likewise.
943 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
944 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
945 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
946 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
947 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
948 * target.def (pass_by_reference): Likewise.
949 (setup_incoming_varargs, strict_argument_naming): Likewise.
950 (pretend_outgoing_varargs_named, callee_copies): Likewise.
951 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
952 (function_incoming_arg): Likewise.
953 * target.h: Don't include "tm.h" .
954 (cumulative_args_t): New typedef.
955 [GCC_TM_H] (get_cumulative_args): New static inline function.
956 [GCC_TM_H] (pack_cumulative_args): Likewise.
957 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
958 argument type with cumulative_args_t.
959 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
960 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
961 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
962 (frv_arg_partial_bytes, frv_function_arg): Likewise.
963 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
964 (frv_function_arg_1): Likewise.
965 * config/s390/s390.c (s390_pass_by_reference): Likewise.
966 (s390_function_arg_advance, s390_function_arg): Likewise.
967 * config/m32c/m32c.c (m32c_function_arg): Likewise.
968 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
969 (m32c_strict_argument_naming): Likewise.
970 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
971 (spu_function_arg_advance): Likewise.
972 (spu_setup_incoming_varargs): Likewise. Make static.
973 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
974 Remove prototype.
975 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
976 CUMULATIVE_ARGS* argument type with cumulative_args_t.
977 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
978 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
979 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
980 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
981 (mep_pass_by_reference, mep_function_arg): Likewise.
982 (mep_function_arg_advance): Likewise.
983 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
984 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
985 (m32r_function_arg, m32r_function_arg_advance): Likewise.
986 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
987 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
988 (ix86_function_arg, ix86_pass_by_reference): Likewise.
989 (ix86_setup_incoming_varargs): Likewise.
990 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
991 (sh_strict_argument_naming): Likewise.
992 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
993 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
994 (sh_function_arg_advance, sh_function_arg): Likewise.
995 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
996 (pdp11_function_arg_advance): Likewise.
997 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
998 Likewise.
999 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1000 * config/avr/avr.c (avr_function_arg): Likewise.
1001 (avr_function_arg_advance): Likewise.
1002 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1003 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1004 (xtensa_function_arg_1): Likewise.
1005 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1006 Likewise.
1007 (xstormy16_function_arg): Likewise.
1008 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1009 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1010 (fr30_function_arg_advance): Likewise.
1011 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1012 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1013 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1014 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1015 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1016 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1017 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1018 (cris_function_arg, cris_function_incoming_arg): Likewise.
1019 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1020 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1021 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1022 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1023 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1024 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1025 (mn10300_arg_partial_bytes): Likewise.
1026 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1027 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1028 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1029 (ia64_function_arg_1): Likewise.
1030 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1031 (m68k_function_arg): Likewise.
1032 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1033 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1034 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1035 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1036 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1037 (picochip_arg_advance): Likewise.
1038 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1039 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1040 (mcore_function_arg_advance): Likewise.
1041 * config/score/score.c (score_pass_by_reference): Likewise.
1042 (score_function_arg_advance): Likewise.
1043 (score_arg_partial_bytes): Likewise. Make static.
1044 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1045 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1046 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1047 (arm_function_arg, arm_function_arg_advance): Likewise.
1048 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1049 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1050 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1051 (pa_function_arg): Likewise.
1052 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1053 (mips_function_arg, mips_function_arg_advance): Likewise.
1054 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1055 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1056 * config/vax/vax.c (vax_function_arg): Likewise.
1057 (vax_function_arg_advance): Likewise.
1058 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1059 (h8300_function_arg_advance): Likewise.
1060 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1061 (v850_strict_argument_naming, v850_function_arg): Likewise.
1062 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1063 (v850_setup_incoming_varargs): Likewise.
1064 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1065 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1066 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1067 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1068 with const void *.
1069 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1070 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1071 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1072 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1073 * calls.c (emit_call_1): Change type of args_so_far to
1074 cumulative_args_t. Changed all callers.
1075 (initialize_argument_information): Likewise.
1076 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1077 * dse.c (get_call_args): Likewise.
1078 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1079 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1080 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1081 New member args_so_far_v. Changed all users.
1082 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1083 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1084 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1085 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1086 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1087 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1088 Likewise.
1089 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1090 m32r_pass_by_reference.
1091
1092 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1093
1094 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1095 argument to be a VEC of statements.
1096 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1097 assert that pattern statements have to have their vector type set.
1098 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1099 Change the first argument to be a VEC of statements. Update
1100 documentation.
1101 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1102 (vect_handle_widen_mult_by_const): New function.
1103 (vect_recog_widen_mult_pattern): Change the first argument to be a
1104 VEC of statements. Update documentation. Check that the constant is
1105 INTEGER_CST. Support multiplication by a constant that fits an
1106 intermediate type - call vect_handle_widen_mult_by_const.
1107 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1108 call. Handle additional pattern statements if necessary.
1109
1110 2011-06-16 Nick Clifton <nickc@redhat.com>
1111
1112 PR target/49427
1113 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1114 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1115 md_file, extra_modes, out_file and extra_options are these are all
1116 deduced from cpu_type.
1117
1118 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1119
1120 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1121 truncation mask to 63.
1122
1123 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1124
1125 PR target/49313
1126 PR target/29524
1127 * longlong.h: Add AVR support:
1128 (count_leading_zeros): New macro.
1129 (count_trailing_zeros): New macro.
1130 (COUNT_LEADING_ZEROS_0): New macro.
1131 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1132 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1133 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1134 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1135 (LIB2FUNCS_EXCLUDE): Add _clz.
1136 * config/avr/libgcc.S (XCALL): Move up in file.
1137 (XJMP): New C Macro.
1138 (DEFUN): New asm macro.
1139 (ENDF): New asm macro.
1140 (__ffssi2): New function.
1141 (__ffshi2): New function.
1142 (__loop_ffsqi2): New function.
1143 (__ctzsi2): New function.
1144 (__ctzhi2): New function.
1145 (__clzdi2): New function.
1146 (__clzsi2): New function.
1147 (__clzhi2): New function.
1148 (__paritydi2): New function.
1149 (__paritysi2): New function.
1150 (__parityhi2): New function.
1151 (__parityqi2): New function.
1152 (__popcounthi2): New function.
1153 (__popcountsi2): New function.
1154 (__popcountdi2): New function.
1155 (__popcountqi2): New function.
1156 (__bswapsi2): New function.
1157 (__bswapdi2): New function.
1158 (__ashldi3): New function.
1159 (__ashrdi3): New function.
1160 (__lshrdi3): New function.
1161 Fix suspicous lines.
1162
1163 2011-06-16 Richard Guenther <rguenther@suse.de>
1164
1165 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1166 the same as x != 0.
1167 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1168 to (bool) X & 1.
1169 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1170 equality compares against zero for the lower bit.
1171
1172 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1173
1174 PR tree-optimization/49419
1175 * tree-vrp.c (execute_vrp): Call init_range_assertions
1176 before estimate_numbers_of_iterations, call
1177 free_number_of_iterations_estimates before calling
1178 remove_range_assertions.
1179
1180 2011-06-16 Revital Eres <revital.eres@linaro.org>
1181
1182 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1183 (struct partial_schedule): Add rows_length field.
1184 (verify_partial_schedule): Check rows_length.
1185 (ps_insert_empty_row): Handle rows_length.
1186 (create_partial_schedule): Likewise.
1187 (free_partial_schedule): Likewise.
1188 (reset_partial_schedule): Likewise.
1189 (create_ps_insn): Remove rest_count argument.
1190 (remove_node_from_ps): Update rows_length.
1191 (add_node_to_ps): Update rows_length and call create_ps_insn
1192 without passing row_rest_count.
1193 (rotate_partial_schedule): Update rows_length.
1194
1195 2011-06-16 Revital Eres <revital.eres@linaro.org>
1196
1197 * ddg.c (add_intra_loop_mem_dep): New function.
1198 (build_intra_loop_deps): Call it.
1199
1200 2011-06-13 Jeff Law <law@redhat.com>
1201
1202 * df-problems.c (df_lr_local_compute): Manually CSE
1203 PIC_OFFSET_TABLE_REGNUM.
1204 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1205 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1206
1207 2011-06-13 Jan Hubicka <jh@suse.cz>
1208
1209 * cgraphunit.c (handle_alias_pairs): New function.
1210 (cgraph_finalize_compilation_unit): Use it.
1211 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1212 as externally visible.
1213
1214 2011-06-15 Richard Guenther <rguenther@suse.de>
1215
1216 * expr.c (expand_expr_real_2): Reduce all integral types to
1217 bitfield precision.
1218 (expand_expr_real_1): Likewise.
1219
1220 2011-06-15 Martin Jambor <mjambor@suse.cz>
1221
1222 PR tree-optimization/48613
1223 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1224 ipa_node_params_vector is NULL.
1225
1226 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR debug/49382
1229 * dwarf2out.c (dw_loc_list_node): Add force field.
1230 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1231 location in the list, even if it is modified before first real insn.
1232 (output_loc_list): Emit empty ranges with force flag set.
1233 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1234
1235 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1236
1237 PR target/49349
1238 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1239 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1240 above a fence. Update comments.
1241 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1242 placed just above it. Do not allow NULL place_to_insert.
1243
1244 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1245
1246 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1247 (slpeel_tree_peel_loop_to_edge): Don't call
1248 remove_dead_stmts_from_loop.
1249 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1250 remove irrelevant pattern statements. For irrelevant statements
1251 check if it is the last statement of a detected pattern, use
1252 corresponding pattern statement instead.
1253 (destroy_loop_vec_info): No need to remove pattern statements,
1254 only free stmt_vec_info.
1255 (vect_transform_loop): For irrelevant statements check if it is
1256 the last statement of a detected pattern, use corresponding
1257 pattern statement instead.
1258 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1259 pattern statements. Set basic block for the new statement.
1260 (vect_pattern_recog): Update documentation.
1261 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1262 operands of pattern statements.
1263 (vectorizable_call): Fix printing. In case of a pattern statement
1264 use the lhs of the original statement when creating a dummy
1265 statement to replace the original call.
1266 (vect_analyze_stmt): For irrelevant statements check if it is
1267 the last statement of a detected pattern, use corresponding
1268 pattern statement instead.
1269 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1270 statements use gsi of the original statement.
1271
1272 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1273
1274 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1275 common/common-target-def.h.
1276 * target.def (default_target_flags, handle_option,
1277 supports_split_stack, optimization_table, init_struct,
1278 except_unwind_info, unwind_tables_default, have_named_sections):
1279 Move to common/common-target.def.
1280 * target.h (enum opt_levels, struct default_options): Move to
1281 common/common-target.h.
1282 * targhooks.c (default_except_unwind_info,
1283 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1284 default_target_handle_option, empty_optimization_table): Move to
1285 common/common-targhooks.c.
1286 * targhooks.h (default_except_unwind_info,
1287 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1288 default_target_handle_option, empty_optimization_table): Move to
1289 common/common-targhooks.h.
1290 * common/common-target-def.h: Include common/common-targhooks.h.
1291 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1292 defined.
1293 * common/common-target.def (handle_option, option_init_struct,
1294 option_optimization_table, default_target_flags,
1295 except_unwind_info, supports_split_stack, unwind_tables_default,
1296 have_named_sections): Move from target.def.
1297 (HOOK_PREFIX): Undefine at end of file.
1298 * common/common-target.h: Include input.h.
1299 (enum opt_levels, struct default_options): Move from target.h.
1300 * common/common-targhooks.c, common/common-targhooks.h: New.
1301 * config.gcc (target_has_targetm_common): Default to yes.
1302 (moxie*): Set target_has_targetm_common=no.
1303 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1304 * doc/tm.texi: Regenerate.
1305 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1306 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1307 (GCC_OBJS): Remove vec.o.
1308 (OBJS): Remove hooks.o and vec.o.
1309 (OBJS-libcommon-target): Add vec.o, hooks.o and
1310 common/common-targhooks.o.
1311 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1312 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1313 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1314 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1315 Update dependencies.
1316 (common/common-targhooks.o): New.
1317 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1318 * common/config/pa/pa-common.c: Include more headers. Take
1319 copyright dates from pa.c.
1320 (pa_option_optimization_table, pa_handle_option,
1321 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1322 TARGET_HANDLE_OPTION): Move from pa.c.
1323 * common/config/alpha/alpha-common.c,
1324 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1325 common/config/bfin/bfin-common.c,
1326 common/config/cris/cris-common.c,
1327 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1328 common/config/h8300/h8300-common.c,
1329 common/config/i386/i386-common.c,
1330 common/config/ia64/ia64-common.c,
1331 common/config/iq2000/iq2000-common.c,
1332 common/config/lm32/lm32-common.c,
1333 common/config/m32c/m32c-common.c,
1334 common/config/m32r/m32r-common.c,
1335 common/config/m68k/m68k-common.c,
1336 common/config/mcore/mcore-common.c,
1337 common/config/mep/mep-common.c,
1338 common/config/microblaze/microblaze-common.c,
1339 common/config/mips/mips-common.c,
1340 common/config/mmix/mmix-common.c,
1341 common/config/mn10300/mn10300-common.c,
1342 common/config/pdp11/pdp11-common.c,
1343 common/config/picochip/picochip-common.c,
1344 common/config/rs6000/rs6000-common.c,
1345 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1346 common/config/score/score-common.c, common/config/sh/sh-common.c,
1347 common/config/sparc/sparc-common.c,
1348 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1349 common/config/vax/vax-common.c,
1350 common/config/xstormy16/xstormy16-common.c,
1351 common/config/xtensa/xtensa-common.c: New.
1352 * config/alpha/alpha.c: Include common/common-target.h.
1353 (alpha_option_optimization_table, alpha_handle_option,
1354 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1355 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1356 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1357 * config/arm/arm.c (arm_option_optimization_table,
1358 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1359 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1360 arm-common.c.
1361 * config/avr/avr.c (avr_option_optimization_table,
1362 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1363 to avr-common.c.
1364 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1365 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1366 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1367 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1368 * config/cris/cris.c (cris_option_optimization_table,
1369 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1370 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1371 cris-common.c.
1372 * config/fr30/fr30.c (fr30_option_optimization_table,
1373 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1374 to fr30-common.c.
1375 * config/frv/frv.c (frv_option_optimization_table,
1376 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1377 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1378 * config/h8300/h8300.c (h8300_option_optimization_table,
1379 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1380 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1381 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1382 * config/i386/i386.c: Include common/common-target.h.
1383 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1384 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1385 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1386 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1387 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1388 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1389 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1390 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1391 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1392 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1393 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1394 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1395 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1396 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1397 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1398 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1399 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1400 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1401 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1402 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1403 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1404 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1405 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1406 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1407 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1408 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1409 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1410 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1411 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1412 ix86_option_optimization_table, ix86_option_init_struct,
1413 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1414 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1415 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1416 i386-common.c.
1417 * config/i386/t-i386 (i386.o): Update dependencies.
1418 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1419 * config/ia64/ia64.c (ia64_option_optimization_table,
1420 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1421 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1422 ia64_handle_option): Move to ia64-common.c.
1423 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1424 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1425 * config/lm32/lm32.c (lm32_option_optimization_table,
1426 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1427 to lm32-common.c.
1428 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1429 m32c-common.c.
1430 * config/m32r/m32r.c (m32r_option_optimization_table,
1431 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1432 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1433 m32r_handle_option): Move to m32r-common.c.
1434 (m32r_memory_move_cost): Remove comment referring to
1435 TARGET_HANDLE_OPTION.
1436 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1437 Move to m68k-common.c.
1438 * config/mcore/mcore.c (mcore_option_optimization_table,
1439 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1440 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1441 * config/mep/mep.c (mep_option_optimization_table,
1442 mep_handle_option, TARGET_HANDLE_OPTION,
1443 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1444 Move to mep-common.c.
1445 * config/microblaze/microblaze.c
1446 (microblaze_option_optimization_table,
1447 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1448 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1449 * config/mips/mips.c (mips_handle_option,
1450 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1451 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1452 mips-common.c.
1453 * config/mmix/mmix.c (mmix_option_optimization_table,
1454 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1455 Move to mmix-common.c.
1456 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1457 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1458 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1459 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1460 * config/pa/pa.c: Include common/common-target.h.
1461 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1462 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1463 pa_handle_option): Move to pa-common.c.
1464 (pa_option_override): Use targetm_common.except_unwind_info.
1465 (pa_asm_output_mi_thunk, pa_function_section): Use
1466 targetm_common.have_named_sections.
1467 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1468 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1469 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1470 pdp11_handle_option, pdp11_option_init_struct): Move to
1471 pdp11-common.c.
1472 * config/picochip/picochip.c (picochip_option_optimization_table,
1473 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1474 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1475 * config/rs6000/rs6000.c: Include common/common-target.h.
1476 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1477 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1478 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1479 rs6000_handle_option): Move to rs6000-common.c.
1480 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1481 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1482 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1483 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1484 * config/s390/s390.c (processor_flags_table,
1485 s390_option_optimization_table, s390_option_init_struct,
1486 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1487 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1488 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1489 * config/s390/s390.h (processor_flags_table): Declare.
1490 * config/score/score.c (score_option_optimization_table,
1491 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1492 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1493 score_handle_option): Move to score-common.c.
1494 * config/sh/sh.c (sh_option_optimization_table,
1495 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1496 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1497 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1498 * config/sparc/sparc.c: Include common/common-target.h.
1499 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1500 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1501 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1502 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1503 spu_option_init_struct): Move to spu-common.c.
1504 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1505 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1506 * config/v850/v850.c (small_memory_physical_max,
1507 v850_handle_memory_optionn v850_handle_option,
1508 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1509 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1510 v850-common.c.
1511 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1512 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1513 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1514 Move to xtensa-common.c.
1515 * cfglayout.c: Include common/common-target.h.
1516 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1517 * cfgrtl.c: Include common/common-target.h.
1518 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1519 targetm_common.have_named_sections.
1520 * dbxout.c: Include common/common-target.h.
1521 (dbxout_function_end): Use targetm_common.have_named_sections.
1522 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1523 targetm_common.except_unwind_info.
1524 * dwarf2out.c: Include common/common-target.h.
1525 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1526 dwarf2out_begin_prologue, dwarf2out_frame_init,
1527 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1528 targetm_common.except_unwind_info.
1529 * except.c: Include common/common-target.h.
1530 (init_eh, finish_eh_generation,
1531 output_one_function_exception_table): Use
1532 targetm_common.except_unwind_info.
1533 (switch_to_exception_section): Use targetm_common.have_named_sections.
1534 * explow.c: Include common/common-target.h.
1535 * expr.c: Include common/common-target.h.
1536 (build_personality_function): Use targetm_common.except_unwind_info.
1537 * function.c: Include common/common-target.h.
1538 (expand_function_end): Use targetm_common.except_unwind_info.
1539 * haifa-sched.c: Include common/common-target.h.
1540 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1541 * lto-opts.c: Include common/common-target.h instead of target.h.
1542 (lto_reissue_options): Use targetm_common.handle_option.
1543 * opts.c: Include common/common-target.h.
1544 (target_handle_option): Use targetm_common.handle_option.
1545 (init_options_struct): Update comment referring to
1546 targetm.target_option.optimization. Use
1547 targetm_common.default_target_flags,
1548 targetm_common.unwind_tables_default and
1549 targetm_common.option_init_struct.
1550 (default_options_optimization): Use
1551 targetm_common.option_optimization_table.
1552 (finish_options): Use targetm_common.except_unwind_info,
1553 targetm_common.unwind_tables_default,
1554 targetm_common.have_named_sections and
1555 targetm_common.supports_split_stack.
1556 * toplev.c: Include common/common-target.h.
1557 (process_options): Use targetm_common.have_named_sections.
1558 * tree-tailcall.c: Include common/common-target.h.
1559 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1560 * tree.c: Include common/common-target.h.
1561 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1562 * varasm.c: Include common/common-target.h.
1563 (resolve_unique_section, hot_function_section,
1564 default_function_section): Use targetm_common.have_named_sections.
1565
1566 2011-06-14 Easwaran Raman <eraman@google.com>
1567
1568 PR rtl-optimization/44194
1569 * dse.c: Include tree-flow.h
1570 (insn_info): Add new field non_frame_wild_read.
1571 (group_info): Add new fields escaped_n and escaped_p.
1572 (kill_on_calls): New variable.
1573 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1574 (dse_step0): Initialize kill_on_calls.
1575 (can_escape): New function.
1576 (set_usage_bits): Add additional parameter; record information
1577 about escaped locations.
1578 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1579 (dse_step2_nospill): Set kill_on_calls based on
1580 group->escaped_n and group->escaped_n.
1581 (add_wild_read): Refactor into...
1582 (reset_active_stores): ... New function, and
1583 (free_read_records): ... New function.
1584 (add_non_frame_wild_read): New function.
1585 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1586 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1587 (dse_step5_nospill): Call scan_reads_nospill for instructions
1588 marked as non_frame_wild_read.
1589 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1590
1591 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1592
1593 * common/common-target-def.h, common/common-target.def,
1594 common/common-target.h, common/config/default-common.c,
1595 common/config/pa/pa-common.c: New files.
1596 * Makefile.in (common_out_file, common_out_object_file,
1597 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1598 (OBJS-libcommon-target): Include $(common_out_object_file).
1599 (prefix.o): Update dependencies.
1600 ($(common_out_object_file), common/common-target-hooks-def.h,
1601 s-common-target-hooks-def-h): New.
1602 (s-tm-texi): Also check timestamp on common-target.def.
1603 (build/genhooks.o): Update dependencies.
1604 * config.gcc (common_out_file, target_has_targetm_common): Define.
1605 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1606 TARGET_ALWAYS_STRIP_DOTDOT.
1607 * configure.ac (common_out_object_file): Define.
1608 (common_out_file, common_out_object_file): Substitute.
1609 (common): Create directory.
1610 * configure: Regenerate.
1611 * doc/tm.texi.in (targetm_common): Document.
1612 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1613 * doc/tm.texi: Regenerate.
1614 * genhooks.c (hook_array): Also include common/common-target.def.
1615 * prefix.c (tm.h): Don't include.
1616 (common/common-target.h): Include.
1617 (ALWAYS_STRIP_DOTDOT): Don't define.
1618 (update_path): Use targetm_common.always_strip_dotdot instead of
1619 ALWAYS_STRIP_DOTDOT.
1620 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1621
1622 2011-06-14 David Li <davidxl@google.com>
1623
1624 * passes.c (execute_function_todo): Remove TODO_dump_func.
1625 (execute_one_pass): Remove TODO_dump_func.
1626 (execute_function_dump): New function.
1627 * tree-vrp.c: Remove TODO_dump_func.
1628 * regrename.c: Remove TODO_dump_func.
1629 * fwprop.c: Remove TODO_dump_func.
1630 * tree-into-ssa.c: Remove TODO_dump_func.
1631 * tree-complex.c: Remove TODO_dump_func.
1632 * tracer.c: Remove TODO_dump_func.
1633 * tree-loop-distribution.c: Remove TODO_dump_func.
1634 * postreload-gcse.c: Remove TODO_dump_func.
1635 * postreload.c: Remove TODO_dump_func.
1636 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1637 * tree-tailcall.c: Remove TODO_dump_func.
1638 * ipa-cp.c: Remove TODO_dump_func.
1639 * final.c: Remove TODO_dump_func.
1640 * tree-emutls.c: Remove TODO_dump_func.
1641 * omp-low.c: Remove TODO_dump_func.
1642 * tree-ssa-dse.c: Remove TODO_dump_func.
1643 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1644 * auto-inc-dec.c: Remove TODO_dump_func.
1645 * reorg.c: Remove TODO_dump_func.
1646 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1647 * tree-ssa-ccp.c: Remove TODO_dump_func.
1648 * compare-elim.c: Remove TODO_dump_func.
1649 * mode-switching.c: Remove TODO_dump_func.
1650 * modulo-sched.c: Remove TODO_dump_func.
1651 * tree-call-cdce.c: Remove TODO_dump_func.
1652 * cse.c: Remove TODO_dump_func.
1653 * web.c: Remove TODO_dump_func.
1654 * tree-stdarg.c: Remove TODO_dump_func.
1655 * lto-streamer-out.c: Remove TODO_dump_func.
1656 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1657 * tree-ssa-dom.c: Remove TODO_dump_func.
1658 * tree-nrv.c: Remove TODO_dump_func.
1659 * loop-init.c: Remove TODO_dump_func.
1660 * gimple-low.c: Remove TODO_dump_func.
1661 * ipa-inline.c: Remove TODO_dump_func.
1662 * tree-ssa-sink.c: Remove TODO_dump_func.
1663 * jump.c: Remove TODO_dump_func.
1664 * ifcvt.c: Remove TODO_dump_func.
1665 * tree-ssa-loop.c: Remove TODO_dump_func.
1666 * recog.c: Remove TODO_dump_func.
1667 * dse.c: Remove TODO_dump_func.
1668 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1669 * matrix-reorg.c: Remove TODO_dump_func.
1670 * tree-eh.c: Remove TODO_dump_func.
1671 * regmove.c: Remove TODO_dump_func.
1672 * function.c: Remove TODO_dump_func.
1673 * tree-vectorizer.c: Remove TODO_dump_func.
1674 * ipa-split.c: Remove TODO_dump_func.
1675 * gcse.c: Remove TODO_dump_func.
1676 * tree-if-conv.c: Remove TODO_dump_func.
1677 * init-regs.c: Remove TODO_dump_func.
1678 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1679 * implicit-zee.c: Remove TODO_dump_func.
1680 * lower-subreg.c: Remove TODO_dump_func.
1681 * bt-load.c: Remove TODO_dump_func.
1682 * tree-dfa.c: Remove TODO_dump_func.
1683 * except.c: Remove TODO_dump_func.
1684 * emit-rtl.c: Remove TODO_dump_func.
1685 * store-motion.c: Remove TODO_dump_func.
1686 * cfgexpand.c: Remove TODO_dump_func.
1687 * tree-cfgcleanup.c: Remove TODO_dump_func.
1688 * cfgcleanup.c: Remove TODO_dump_func.
1689 * tree-ssa-pre.c: Remove TODO_dump_func.
1690 * tree-sra.c: Remove TODO_dump_func.
1691 * tree-mudflap.c: Remove TODO_dump_func.
1692 * tree-ssa-copy.c: Remove TODO_dump_func.
1693 * cfglayout.c: Remove TODO_dump_func.
1694 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1695 * tree-ssa-dce.c: Remove TODO_dump_func.
1696 * ira.c: Remove TODO_dump_func.
1697 * tree-ssa.c: Remove TODO_dump_func.
1698 * integrate.c: Remove TODO_dump_func.
1699 * tree-optimize.c: Remove TODO_dump_func.
1700 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1701 * tree-object-size.c: Remove TODO_dump_func.
1702 * combine.c: Remove TODO_dump_func.
1703 * bb-reorder.c: Remove TODO_dump_func.
1704 * cprop.c: Remove TODO_dump_func.
1705 * var-tracking.c: Remove TODO_dump_func.
1706 * tree-profile.c: Remove TODO_dump_func.
1707 * tree-vect-generic.c: Remove TODO_dump_func.
1708 * reg-stack.c: Remove TODO_dump_func.
1709 * sched-rgn.c: Remove TODO_dump_func.
1710 * tree-ssa-structalias.c: Remove TODO_dump_func.
1711 * tree-switch-conversion.c: Remove TODO_dump_func.
1712 * tree-cfg.c: Remove TODO_dump_func.
1713 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1714 * combine-stack-adj.c: Remove TODO_dump_func.
1715 * dce.c: Remove TODO_dump_func.
1716 * tree-ssanames.c: Remove TODO_dump_func.
1717 * regcprop.c: Remove TODO_dump_func.
1718
1719 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 PR middle-end/47364
1722 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1723 and properly handle result not in Pmode.
1724
1725 2011-06-14 Robert Millan <rmh@gnu.org>
1726
1727 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1728 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1729 `config/linux.h'.
1730
1731 * config/i386/kfreebsd-gnu64.h: New file.
1732 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1733 with `i386/kfreebsd-gnu64.h'.
1734
1735 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1736 (GNU_USER_LINK_EMULATION64): New macros.
1737 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1738 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1739 of hardcoding `elf_i386' and `elf_x86_64'.
1740
1741 2011-06-14 Nick Clifton <nickc@redhat.com>
1742
1743 PR target/49403
1744 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1745
1746 PR target/49402
1747 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1748
1749 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1750
1751 PR fortran/49103
1752 * tree.h (DECL_NONSHAREABLE): Define.
1753 (struct tree_decl_common): Change decl_common_unused to
1754 decl_nonshareable_flag.
1755 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1756 Ignore vars with DECL_NONSHAREABLE bit set.
1757 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1758 on stores to automatic aggregate vars.
1759
1760 PR rtl-optimization/49390
1761 Revert:
1762 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1763
1764 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1765 MEM_ALIAS_SET.
1766
1767 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1768 Tom de Vries <tom@codesourcery.com>
1769
1770 PR target/45098
1771 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1772 Document changed semantics.
1773 (max_stmt_executions, max_stmt_executions_int): Declare.
1774 * tree-data-ref.c (estimated_loop_iterations)
1775 (estimated_loop_iterations_int): Move functions...
1776 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1777 (estimated_loop_iterations_int): here.
1778 (record_estimate): Change nb_iterations_upper_bound and
1779 nb_iterations_estimate semantics.
1780 (max_stmt_executions, max_stmt_executions_int): New function.
1781 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1782 (max_stmt_executions_tree): this.
1783 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1784 estimated_loop_iterations_tree.
1785 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1786 max_stmt_executions_int instead of estimated_loop_iterations_int.
1787 * predict.c (predict_loops): Idem.
1788 * tree-parloops.c (parallelize_loops): Idem.
1789 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1790 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1791 (init_omega_for_ddr_1): Idem.
1792 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1793 (loop_prefetch_arrays): Idem
1794 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1795 max_stmt_executions instead of estimated_loop_iterations.
1796 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1797 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1798 instead of nb_iterations_upper_bound.
1799
1800 2011-06-13 Jan Hubicka <jh@suse.cz>
1801
1802 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1803
1804 2011-06-14 Richard Henderson <rth@redhat.com>
1805
1806 PR debug/48459
1807 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1808 (based_loc_descr): Assert it's true.
1809 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1810 aborting immediately.
1811
1812 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1813 Mingfeng Wu <mingfeng@faraday-tech.com>
1814
1815 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1816
1817 2011-06-13 Jan Hubicka <jh@suse.cz>
1818
1819 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1820
1821 2011-06-13 Jan Hubicka <jh@suse.cz>
1822
1823 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1824 similarly to DECL_COMDAT.
1825 * cgraphunit.c (cgraph_analyze_function): Likewise.
1826 * ipa.c (function_and_variable_visibility): Likewise.
1827
1828 2011-06-13 Jan Hubicka <jh@suse.cz>
1829
1830 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1831 BINFO_VIRTUALS when streaming for ltrans unit.
1832
1833 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1834
1835 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1836 (movdi_internal64): Same.
1837
1838 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1839
1840 PR target/44618
1841 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1842 a set of similar patterns, where the MATCH_OPERAND for the function
1843 argument is replaced with individual references to hardware registers.
1844 (save_fpregs_<mode>): Ditto
1845 (restore_gpregs_<mode>): Ditto
1846 (return_and_restore_gpregs_<mode>): Ditto
1847 (return_and_restore_fpregs_<mode>): Ditto
1848 (return_and_restore_fpregs_aix_<mode>): Ditto
1849
1850 2011-06-13 Jan Hubicka <jh@suse.cz>
1851
1852 * ipa-utils.c (postorder_stack): New structure.
1853 (ipa_reverse_postorder): Handle aliases.
1854
1855 2011-06-13 Jan Hubicka <jh@suse.cz>
1856
1857 * ipa-inline.c (reset_edge_caches): Walk aliases.
1858 (update_caller_keys): Do not test inlinability of aliases.
1859 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1860 (do_estimate_growth): Fix typo.
1861
1862 2011-06-13 Jan Hubicka <jh@suse.cz>
1863
1864 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1865 (can_remove_node_now_p): ... here; handle same comdat groups.
1866 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1867 (inline_call): Update use of can_remove_node_now_p.
1868
1869 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1870
1871 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1872 condition to disallow non-identical memory locations.
1873 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1874 preference to bit manipulation instructions.
1875
1876 2011-06-13 Jan Hubicka <jh@suse.cz>
1877
1878 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1879 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1880 (nonremovable_p): New function.
1881 (cgraph_can_remove_if_no_direct_calls_p): New function.
1882 (used_from_object_file_p): New functoin.
1883 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1884 references from aliases.
1885 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1886 * ipa-inline.c (check_caller_edge): New function.
1887 (want_inline_function_called_once_p): Use it; accept aliases called
1888 once, too.
1889 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1890
1891 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1892
1893 PR target/48454
1894 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1895 correctly for the case with Quad vectors.
1896
1897 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1898 Ira Rosen <ira.rosen@linaro.org>
1899
1900 PR tree-optimization/49352
1901 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1902 all, make sure loop_use_stmt after the loop is a def stmt of a used
1903 SSA_NAME that is the only one defined inside of the loop. Don't
1904 check for COND_EXPR and GIMPLE_BINARY_RHS.
1905 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1906 check_reduction is true.
1907
1908 2011-06-11 Jan Hubicka <jh@suse.cz>
1909
1910 PR middle-end/49373
1911 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1912
1913 2011-06-11 Jan Hubicka <jh@suse.cz>
1914
1915 PR middle-end/48836
1916 * ipa-inline-transform.c: Include tree-pass.h
1917 (inline_transform): Set TODO_update_ssa_only_virtuals.
1918 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1919
1920 2011-06-11 Jan Hubicka <jh@suse.cz>
1921
1922 PR middle-end/49378
1923 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1924 aliases and thunks.
1925
1926 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1927
1928 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1929 Take number of iterations to peel into account for equally frequent
1930 misalignment values.
1931
1932 2011-06-11 Jan Hubicka <jh@suse.cz>
1933
1934 * lto-streamer-out.c (produce_symtab): Stream out the newly
1935 represented aliases.
1936
1937 2011-06-11 Jan Hubicka <jh@suse.cz>
1938
1939 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1940 varying args.
1941 (ipa_update_after_lto_read): Likewise.
1942 (ipa_write_node_info): Do not sream call_with_var_arguments.
1943 (ipa_read_node_info): Likewise.
1944
1945 2011-06-11 Jan Hubicka <jh@suse.cz>
1946
1947 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1948
1949 2011-06-11 Jan Hubicka <jh@suse.cz>
1950
1951 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1952 (lto_symtab_resolve_can_prevail_p): Likewise.
1953 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1954 * cgraph.c (same_body_aliases_done): New global var.
1955 (cgraph_same_body_alias_1): Rename to ...
1956 (cgraph_create_function_alias): ... this one; reorg to new
1957 representation.
1958 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1959 record references when asked to.
1960 (cgraph_add_thunk): Fix formating.
1961 (cgraph_get_node): Kill same body alias code.
1962 (cgraph_node_for_asm): Likewise.
1963 (cgraph_remove_same_body_alias): Remove.
1964 (cgraph_remove_node): Kill same body alias code.
1965 (cgraph_mark_address_taken_node): Mark also the aliased function
1966 as having address taken.
1967 (dump_cgraph_node): Dump same body aliases.
1968 (cgraph_for_node_thunks_and_aliases): Update for new alias
1969 representation.
1970 (cgraph_for_node_and_aliases): Likewise.
1971 * cgraph.h (same_body): Kll pointer.
1972 (same_body_alias): Update comment.
1973 (same_body_aliases_done): Declare.
1974 (cgraph_remove_same_body_alias): Remove declaration.
1975 (cgraph_create_function_alias): Declare.
1976 (cgraph_process_same_body_aliases): Declare.
1977 (cgraph_function_with_gimple_body_p): Check for alias.
1978 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1979 (cgraph_alias_aliased_node): New function.
1980 (cgraph_function_node): Update for new aliases.
1981 (cgraph_function_or_thunk_node): Likewise.
1982 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1983 (inline_call): Remove dead aliases.
1984 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1985 name hack for same body aliases.
1986 (clone_of_p): Look through aliases.
1987 (verify_cgraph_node): Verify aliases.
1988 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1989 (cgraph_process_same_body_aliases): New function.
1990 (process_function_and_variable_attributes): Disable weakref warning on
1991 alias.
1992 (cgraph_analyze_functions): Handle aliases.
1993 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1994 (assemble_thunks): Rename to ...
1995 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1996 (cgraph_expand_function): Remove alias output code.
1997 (cgraph_output_in_order): Skip aliases.
1998 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1999 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2000 (ipa_record_reference): Do not assert on alias references.
2001 (ipa_ref_has_aliases_p): New function.
2002 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2003 (ipa_ref_has_aliases_p): Declare.
2004 * lto-cgraph.c (lto_output_node): Handle aliases.
2005 (input_node): Likewise.
2006 * lto-streamer-out.c (lto_output): Skip aliases.
2007 (produce_symtab): Kill same_body_alias code.
2008 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2009 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2010 * ipa-inline.c (update_caller_keys): Walk aliases.
2011 (inline_small_functions): Fix thinko in previous patch.
2012 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2013 (function_and_variable_visibility): Do not walk same body aliases.
2014 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2015 (ipa_pta_execute): Use it.
2016
2017 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2018
2019 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2020 (*vec_dupv2df): Rename from vec_dupv2df.
2021 (vec_dupv2df): New expander.
2022
2023 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2024
2025 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2026
2027 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2028
2029 * config/i386/i386.md: Use default value in "isa" attribute.
2030 * config/i386/sse.md: Ditto.
2031 * config/i386/mmx.md: Ditto.
2032
2033 2011-06-10 Wei Guozhi <carrot@google.com>
2034
2035 PR target/45335
2036 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2037 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2038 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2039 related peephole2.
2040 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2041 related peephole2.
2042 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2043 (arm_legitimate_ldrd_p): New prototype.
2044 (arm_output_ldrd): New prototype.
2045 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2046 (arm_legitimate_ldrd_p): New function.
2047 (arm_output_ldrd): New function.
2048
2049 2011-06-10 David Li <davidxl@google.com>
2050
2051 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2052 * passes.c (passr_eq): New function.
2053 (create_pass_tab): New function.
2054 (pass_traverse): New function.
2055 (dump_one_pass): New function.
2056 (dump_pass_list): New function.
2057 (dump_passes): New function.
2058
2059 2011-06-10 Jan Hubicka <jh@suse.cz>
2060
2061 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2062 setting the nothrow flag.
2063 * ipa-reference.c (propagate): Skip aliases.
2064 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2065 (propagate_nothrow): Skip aliases; do not update cgraph.
2066 (local_pure_const): Do not update cgraph.
2067 * tree-profile.c (tree_profiling): Do fixup_cfg.
2068
2069 2011-06-10 Jan Hubicka <jh@suse.cz>
2070
2071 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2072 (cgraph_local_node_p): ... here; handle aliases.
2073 (has_addr_references_p): Break out from ...;
2074 (cgraph_remove_unreachable_nodes) ... here.
2075
2076 2011-06-10 Jan Hubicka <jh@suse.cz>
2077
2078 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2079 * common.opt (flag_inline_functions_called_once): Do not
2080 initialize to 1.
2081
2082 2011-06-10 Jan Hubicka <jh@suse.cz>
2083
2084 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2085 (ipcp_initialize_node_lattices): Do not deal with aliases;
2086 Do not try to propagate through thunks.
2087 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2088
2089 2011-06-10 Jan Hubicka <jh@suse.cz>
2090
2091 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2092 for indirect calls.
2093 (ipa_read_node_info): Likewise.
2094
2095 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2096
2097 PR lto/49302
2098 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2099 (build_and_insert_call): Likewise.
2100 (build_and_insert_ref): New.
2101 (gimple_expand_builtin_pow): Minor cleanup.
2102 (gimple_expand_builtin_cabs): New.
2103 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2104
2105 2011-06-10 Jan Hubicka <jh@suse.cz>
2106
2107 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2108 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2109 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2110 (ipcp_propagate_stage): Skip aliases when propagating.
2111 (ipcp_need_redirect_p): Skip aliases.
2112 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2113 collect_callers_of_node.
2114 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2115 for aliases.
2116 (ipa_compute_jump_functions): Look through aliases.
2117
2118 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2119
2120 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2121
2122 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2123
2124 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2125 Adjust comments.
2126 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2127
2128 2011-06-10 Jan Hubicka <jh@suse.cz>
2129
2130 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2131 Update call of gimple_get_virt_method_for_binfo.
2132 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2133 refuse_thunks parameter.
2134 (gimple_fold_call): Update.
2135 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2136
2137 2011-06-10 Jan Hubicka <jh@suse.cz>
2138
2139 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2140 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2141 worker for cgraph_for_node_and_aliases.
2142 (convert_callers_for_node): Break out from ...
2143 (convert_callers): ... here.
2144 (modify_function): Use collect_callers_of_node.
2145 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2146
2147 2011-06-10 Richard Guenther <rguenther@suse.de>
2148
2149 PR tree-optimization/49361
2150 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2151 when not already in gimple form.
2152
2153 2011-06-10 Richard Guenther <rguenther@suse.de>
2154
2155 PR bootstrap/49344
2156 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2157 FOR_EACH_PHI_OR_STMT_USE.
2158
2159 2011-06-10 Jan Hubicka <jh@suse.cz>
2160
2161 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2162 (clone_inlined_nodes): ... here.
2163 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2164 to real destination prior inlining.
2165 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2166 can_early_inline_edge_p, want_early_inline_function_p,
2167 want_early_inline_function_p, want_inline_small_function_p,
2168 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2169 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2170 add_new_edges_to_heap, inline_small_functions, flatten_function,
2171 inline_always_inline_functions, early_inline_small_functions): Use
2172 cgraph_function_or_thunk_node.
2173 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2174 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2175 (do_estimate_edge_growth_1): Break out from ...
2176 (do_estimate_growth) ... here; walk aliases.
2177 (inline_generate_summary): Skip aliases.
2178
2179 2011-06-10 Richard Guenther <rguenther@suse.de>
2180
2181 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2182 forward when combining, visit inserted stmts when a stmt was changed.
2183
2184 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2185
2186 * tree.h (error_operand_p): Add.
2187 * dbxout.c (dbxout_type_fields): Use the latter.
2188 * c-decl.c (add_stmt): Likewise.
2189 * gimplify.c (omp_add_variable, omp_notice_variable,
2190 gimplify_scan_omp_clauses): Likewise.
2191
2192 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2193
2194 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2195 when a value is actually passed in regs.
2196
2197 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2198 Laurent Rougé <laurent.rouge@menta.fr>
2199
2200 * doc/invoke.texi (SPARC options): Add -mflat.
2201 * config/sparc/sparc.opt: Likewise.
2202 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2203 (sparc_flat_expand_prologue): Declare.
2204 (sparc_flat_expand_epilogue): Likewise.
2205 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2206 (CPP_ENDIAN_SPEC): Replace with...
2207 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2208 (CPP_SPEC): Adjust to above change.
2209 (EXTRA_SPECS): Likewise.
2210 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2211 (INCOMING_REGNO): Likewise.
2212 (OUTGOING_REGNO): Likewise.
2213 (LOCAL_REGNO): Likewise.
2214 (SETUP_FRAME_ADDRESSES): Likewise.
2215 (FIXED_REGISTERS): Set 0 for %fp.
2216 (CALL_USED_REGISTERS): Likewise.
2217 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2218 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2219 (RETURN_ADDR_REGNUM): Define.
2220 (RETURN_ADDR_RTX): Use it.
2221 (INCOMING_RETURN_ADDR_REGNUM): Define.
2222 (INCOMING_RETURN_ADDR_RTX): Use it.
2223 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2224 (EH_RETURN_REGNUM): Define.
2225 (EH_RETURN_STACKADJ_RTX): Use it.
2226 (EH_RETURN_HANDLER_RTX): Delete.
2227 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2228 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2229 Delete.
2230 (struct machine_function): Add frame_size, apparent_frame_size,
2231 frame_base_reg, frame_base_offset, n_global_fp_regs and
2232 save_local_in_regs_p fields.
2233 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2234 sparc_frame_base_offset, sparc_n_global_fp_regs,
2235 sparc_save_local_in_regs_p): New macros.
2236 (sparc_option_override): Error out if -fcall-saved-REG is specified
2237 for Out registers.
2238 (eligible_for_restore_insn): Fix formatting.
2239 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2240 (eligible_for_sibcall_delay): Likewise.
2241 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2242 (sparc_legitimate_address_p): Adjust to above change.
2243 (save_global_or_fp_reg_p): New predicate.
2244 (return_addr_reg_needed_p): Likewise.
2245 (save_local_or_in_reg_p): Likewise.
2246 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2247 (SORR_SAVE, SORR_RESTORE): Delete.
2248 (sorr_pred_t): New typedef.
2249 (sorr_act_t): New enum.
2250 (save_or_restore_regs): Rename to...
2251 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2252 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2253 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2254 mechanism. Add CFI information for double-word saves in 32-bit mode.
2255 (emit_adjust_base_to_offset): New function extracted from...
2256 (emit_save_or_restore_regs): ...this. Rename the rest to...
2257 (emit_save_or_restore_regs_global_fp_regs): ...this.
2258 (emit_save_or_restore_regs_local_in_regs): New function.
2259 (gen_create_flat_frame_[123]): New functions.
2260 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2261 (sparc_flat_expand_prologue): New function.
2262 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2263 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2264 (sparc_flat_expand_epilogue): New function.
2265 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2266 (output_return): Likewise.
2267 (output_sibcall): Likewise.
2268 (sparc_output_mi_thunk): Likewise.
2269 (sparc_frame_pointer_required): Likewise.
2270 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2271 function optimization.
2272 * config/sparc/sparc.md (flat): New attribute.
2273 (prologue): Add TARGET_FLAT handling.
2274 (save_register_window): Disable if TARGET_FLAT.
2275 (create_flat_frame_[123]): New patterns.
2276 (epilogue): Add TARGET_FLAT handling.
2277 (sibcall_epilogue): Likewise.
2278 (eh_return): New expander.
2279 (eh_return_internal): New insn and splitter.
2280 (return_internal): Add TARGET_FLAT handling.
2281 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2282 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2283 (nonlocal_goto): Add TARGET_FLAT handling.
2284 * config/sparc/t-elf: Add -mflat multilib.
2285 * config/sparc/t-leon: Likewise.
2286
2287 2011-06-10 Jan Hubicka <jh@suse.cz>
2288
2289 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2290 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2291 (self_recursive_p): Use cgraph_function_node.
2292 (propagate_pure_const): Likewise.
2293 (propagate_nothrow): Likewise.
2294 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2295 cgraph_function_node.
2296 (propagate_bits): Likewise.
2297 (propagate): Likewise.
2298
2299 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2300 Richard Earnshaw <rearnsha@arm.com>
2301
2302 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2303 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2304 (*thumb2_movdi_vfp): Delete.
2305 (*arm_movdi_vfp_cortexa8): Delete.
2306 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2307 (*movdi_vfp_cortexa8): Likewise.
2308
2309 2011-06-10 Richard Guenther <rguenther@suse.de>
2310
2311 * stor-layout.c (initialize_sizetypes): Give names to all
2312 sizetype kinds.
2313
2314 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2315
2316 PR tree-optimization/49318
2317 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2318 irrelevant pattern statements.
2319
2320 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2321
2322 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2323
2324 PR bootstrap/49354
2325 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2326 to last assignment.
2327
2328 2011-06-09 Jan Hubicka <jh@suse.cz>
2329
2330 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2331 do not recompute reachable flag.
2332 (cgraph_finalize_function, cgraph_analyze_functions): Set
2333 redefined_extern_inline here.
2334
2335 2011-06-09 Jan Hubicka <jh@suse.cz>
2336
2337 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2338 (cgraph_only_called_directly_p): ... this one; bring offline.
2339 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2340 varpool_used_from_object_file_p): Drop names from the declaratoin.
2341 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2342 collect_callers_of_node): New.
2343 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2344 (cgraph_edge_recursive_p): Use cgraph_function_node.
2345 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2346 (cgraph_node_cannot_be_local_p_1): Break out from ...
2347 (cgraph_node_can_be_local_p): ... here; walk aliases.
2348 (cgraph_for_node_thunks_and_aliases): New function.
2349 (cgraph_for_node_and_aliases): New function.
2350 (cgraph_make_node_local_1): Break out from ...
2351 (cgraph_make_node_local) ... here; use
2352 cgraph_for_node_thunks_and_aliases.
2353 (cgraph_set_nothrow_flag_1): Break out from ...
2354 (cgraph_set_nothrow_flag) ... here;
2355 use cgraph_for_node_thunks_and_aliases.
2356 (cgraph_set_const_flag_1): Break out from ...
2357 (cgraph_set_const_flag) ... here;
2358 use cgraph_for_node_thunks_and_aliases.
2359 (cgraph_set_pure_flag_1): Break out from ...
2360 (cgraph_set_pure_flag) ... here;
2361 use cgraph_for_node_thunks_and_aliases.
2362 (cgraph_propagate_frequency_1): Break out from ...
2363 (cgraph_propagate_frequency) ... here; use
2364 cgraph_for_node_thunks_and_aliases.
2365 (cgraph_used_from_object_file_p): Do not care about aliases.
2366 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2367 New functions.
2368 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2369
2370 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2371
2372 PR rtl-optimization/49154
2373 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2374 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2375 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2376 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2377 * config/cris/cris.h (cris_register_move_cost): Remove
2378 !TARGET_V32 code. Tweak comments.
2379
2380 2011-06-09 Jan Hubicka <jh@suse.cz>
2381
2382 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2383 address taken.
2384
2385 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2386
2387 PR rtl-optimization/49154
2388 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2389 is a matching slot in the hashtable, assign it to classes_ptr.
2390
2391 PR rtl-optimization/49154
2392 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2393 register classes.
2394 * doc/tm.texi: Regenerate.
2395
2396 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2397
2398 PR target/49307
2399 * config/sh/sh.md (UNSPEC_CHKADD): New.
2400 (chk_guard_add): New define_insn_and_split.
2401 (symGOT_load): Use chk_guard_add instead of blockage.
2402
2403 2011-06-09 Kai Tietz <ktietz@redhat.com>
2404
2405 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2406
2407 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2408
2409 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2410
2411 2011-06-09 Wei Guozhi <carrot@google.com>
2412
2413 PR target/46975
2414 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2415 (peephole2 for conditional move): Generate 16 bit instructions.
2416
2417 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2418
2419 * config/i386/i386.md (*movdi_internal_rex64): Merge
2420 alternatives 6 and 8.
2421
2422 2011-06-09 David Li <davidxl@google.com>
2423
2424 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2425 * passes.c (passr_eq): New function.
2426 (create_pass_tab): New function.
2427 (pass_traverse): New function.
2428 (dump_one_pass): New function.
2429 (dump_pass_list): New function.
2430 (dump_passes): New function.
2431
2432 2011-06-09 David Li <davidxl@google.com>
2433
2434 * tree-complex.c (tree_lower_complex): Gate cleanup.
2435 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2436 (execute_optimize_stdarg): Ditto.
2437 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2438 (execute_cleanup_eh_1): Ditto.
2439 (execute_cleanup_eh): Ditto.
2440 * gcse.c (gate_rtl_pre): Ditto.
2441 (execute_rtl_pre): Ditto.
2442 * except.c (finish_eh_generation): Ditto.
2443 (convert_to_eh_region_ranges): Ditto.
2444 * cprop.c (one_cprop_pass): Ditto.
2445
2446 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2447
2448 PR target/48673
2449 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2450 in all basic blocks.
2451
2452 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2453
2454 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2455 (HAVE_ENABLE_EXECUTE_STACK): Define.
2456 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2457 (HAVE_ENABLE_EXECUTE_STACK): Define.
2458 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2459 (HAVE_ENABLE_EXECUTE_STACK): Define.
2460 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2461 (ENABLE_EXECUTE_STACK): Remove.
2462 (HAVE_ENABLE_EXECUTE_STACK): Define.
2463 [IN_LIBGCC2]: Don't include <windows.h>.
2464 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2465 (HAVE_ENABLE_EXECUTE_STACK): Define.
2466 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2467 (HAVE_ENABLE_EXECUTE_STACK): Define.
2468 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2469 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2470 (HAVE_ENABLE_EXECUTE_STACK): Define.
2471 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2472 (HAVE_ENABLE_EXECUTE_STACK): Define.
2473 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2474 (HAVE_ENABLE_EXECUTE_STACK): Define.
2475 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2476 (HAVE_ENABLE_EXECUTE_STACK): Define.
2477 * config/alpha/alpha.c (alpha_trampoline_init): Test
2478 HAVE_ENABLE_EXECUTE_STACK.
2479 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2480 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2481 (sparc64_initialize_trampoline): Likewise.
2482 * libgcc2.c [L_enable_execute_stack]: Remove.
2483 * system.h (ENABLE_EXECUTE_STACK): Poison.
2484 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2485 * doc/tm.texi: Regenerate.
2486 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2487
2488 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2489
2490 PR middle-end/49308
2491 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2492 variable. After resetting and rescanning insn continue with previous
2493 statement.
2494
2495 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2496
2497 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2498 (gcc_cv_ld_hidden): Likewise.
2499 * configure: Regenerate.
2500 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2501 (ix86_stack_protect_fail): Mark unused.
2502 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2503 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2504 [TARGET_MACHO]: Don't define.
2505 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2506 (TARGET_STACK_PROTECT_FAIL): Likewise.
2507 (rs6000_stack_protect_fail): Mark unused.
2508 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2509 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2510
2511 2011-06-08 Andi Kleen <ak@linux.intel.com>
2512
2513 * varasm.c (get_section): Print location of other conflict
2514 for section conflicts.
2515
2516 2011-06-08 Andi Kleen <ak@linux.intel.com>
2517
2518 * config/i386/driver-i386.c (host_detect_local_cpu):
2519 Add model 0x2d Intel CPU.
2520
2521 2011-06-08 Andi Kleen <ak@linux.intel.com>
2522
2523 * reginfo.c (global_regs_decl): Add.
2524 (globalize_reg): Add decl parameter. Compute location. Pass location
2525 to warnings and add inform. Store decl in global_regs_decl.
2526 * rtl.h (globalize_reg): Update prototype.
2527 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2528
2529 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2530
2531 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2532
2533 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2534
2535 PR target/49305
2536 * config/sh/predicates.md (general_movsrc_operand): Check
2537 mode for memory with indexed address for QI and HImode.
2538 (general_movdst_operand): Likewise.
2539
2540 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2541
2542 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2543
2544 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2545
2546 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2547 (num_ssa_operands): Likewise.
2548 (op_iter_init_phiuse): Forward-declare.
2549 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2550
2551 2011-06-08 Nick Clifton <nickc@redhat.com>
2552
2553 * doc/invoke.texi (ARM Options): Update description of
2554 -mthumb-interwork.
2555
2556 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2557
2558 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2559 unknown Intel family 0x6 CPUs.
2560
2561 2011-06-08 Martin Jambor <mjambor@suse.cz>
2562
2563 * tree-sra.c (mark_rw_status): Removed.
2564 (analyze_access_subtree): New parameter parent instead of
2565 mark_read and mark_write, propagate from that.
2566
2567 2011-06-08 Julian Brown <julian@codesourcery.com>
2568
2569 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2570 for double-precision helper functions in hard-float mode if only
2571 single-precision arithmetic is supported in hardware.
2572
2573 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2574
2575 PR rtl-optimization/49303
2576 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2577 code_motion_path_driver returned 0 or 1.
2578 (sel_region_finish): Clear h_d_i_d.
2579
2580 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2581
2582 * config/sh/sh.c (prepare_move_operands): Set pic register
2583 appropriately for global and local dynamic tls models even
2584 if flag_pic is unset.
2585
2586 2011-06-07 Jason Merrill <jason@redhat.com>
2587
2588 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2589
2590 2011-06-07 Xinliang David Li <davidxl@google.com>
2591 * passes.c (enable_disable_pass): Handle assembler name.
2592 (is_pass_explicitly_enabled_or_disabled): Ditto.
2593
2594 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2595
2596 PR tree-optimization/48497
2597 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2598
2599 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2600
2601 PR tree-optimization/46728
2602 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2603 to use gimple_val_nonnegative_real_p.
2604 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2605 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2606
2607 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2608
2609 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2610
2611 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2612
2613 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2614 constant vectors.
2615
2616 2011-06-07 Richard Guenther <rguenther@suse.de>
2617
2618 * stor-layout.c (initialize_sizetypes): Initialize all
2619 sizetypes based on target definitions.
2620 (set_sizetype): Remove.
2621 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2622 * tree.h (set_sizetype): Remove.
2623
2624 2011-06-07 Nick Clifton <nickc@redhat.com>
2625
2626 * config.gcc: Unify V850 architecture options and add support for
2627 newer V850 architectures.
2628 * config/v850/t-v850e: Delete.
2629
2630 2011-06-07 Richard Guenther <rguenther@suse.de>
2631
2632 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2633 Call set_sizetype from here.
2634
2635 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2636
2637 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2638 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2639
2640 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2641 Andrew Stubbs <ams@codesourcery.com>
2642
2643 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2644 multiplies.
2645 * doc/md.texi (Canonicalization of Instructions): Document widening
2646 multiply canonicalization.
2647
2648 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2649
2650 PR gcov-profile/49299
2651 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2652
2653 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2654
2655 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2656 a pointer.
2657 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2658 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2659 vect_recog_pow_pattern): Likewise.
2660 (vect_pattern_recog_1): Remove declaration.
2661 (widened_name_p): Remove declaration. Add new argument to specify
2662 whether to check that both types are either signed or unsigned.
2663 (vect_recog_widen_mult_pattern): Update documentation. Handle
2664 unsigned patterns and multiplication by constants.
2665 (vect_pattern_recog_1): Update vect_recog_func references. Use
2666 statement information from the statement returned from pattern
2667 detection functions.
2668 (vect_pattern_recog): Update vect_recog_func reference.
2669 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2670 multiplication by a constant use the type of the other operand.
2671
2672 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2673
2674 PR rtl-optimization/49145
2675 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2676
2677 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR debug/49262
2680 * dwarf2out.c (native_encode_initializer): Decrement count in each
2681 iteration.
2682
2683 PR debug/49294
2684 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2685 non-MODE_INT modes.
2686
2687 PR c++/49264
2688 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2689 if stmt folded into nothing.
2690 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2691 a bb folded into nothing, just update cgraph edges and move to next bb.
2692 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2693 to be NULL. Don't compute count and frequency if new_call is NULL.
2694
2695 2011-06-04 Diego Novillo <dnovillo@google.com>
2696
2697 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2698 (cgraph.o): Likewise.
2699 (cgraphunit.o): Likewise.
2700 * cgraphunit.c: Include lto-streamer.h
2701 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2702 if LTO is enabled.
2703 * lto-streamer-in.c (unpack_value_fields): Call
2704 streamer_hooks.unpack_value_fields if set.
2705 (lto_materialize_tree): For unhandled nodes, first try to
2706 call lto_streamer_hooks.alloc_tree, if it exists.
2707 (lto_input_ts_decl_common_tree_pointers): Move reading of
2708 DECL_INITIAL to lto_streamer_read_tree.
2709 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2710 (lto_streamer_read_tree): New.
2711 (lto_reader_init): Rename from lto_init_reader.
2712 Move initialization code to lto/lto.c.
2713 * lto-streamer-out.c (pack_value_fields): Call
2714 streamer_hooks.pack_value_fields if set.
2715 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2716 call streamer_hooks.indexable_with_decls_p before giving up.
2717 (lto_output_ts_decl_common_tree_pointers): Move handling
2718 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2719 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2720 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2721 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2722 (lto_streamer_write_tree): New.
2723 (lto_output): Call lto_streamer_init directly.
2724 (lto_writer_init): Remove.
2725 * lto-streamer.c (streamer_hooks): New.
2726 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2727 instead of lto_preload_common_nodes.
2728 (lto_is_streamable): Move from lto-streamer.h
2729 (lto_streamer_hooks_init): New.
2730 (streamer_hooks): New.
2731 (streamer_hooks_init): New.
2732 * lto-streamer.h (struct output_block): Forward declare.
2733 (struct lto_input_block): Likewise.
2734 (struct data_in): Likewise.
2735 (struct bitpack_d): Likewise.
2736 (struct streamer_hooks): Declare.
2737 (streamer_hooks): Declare.
2738 (lto_streamer_hooks_init): Declare.
2739 (lto_streamer_write_tree): Declare.
2740 (lto_streamer_read_tree): Declare.
2741 (streamer_hooks_init): Declare.
2742 (lto_is_streamable): Move to lto-streamer.c
2743
2744 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2745
2746 * longlong.h (smul_ppmm): The resulting register pair contains the
2747 higher order word first.
2748
2749 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2750
2751 PR tree-optimization/46728
2752 * builtins.c (powi_table): Remove.
2753 (powi_lookup_cost): Remove.
2754 (powi_cost): Remove.
2755 (expand_powi_1): Remove.
2756 (expand_powi): Remove.
2757 (expand_builtin_pow_root): Remove.
2758 (expand_builtin_pow): Remove.
2759 (expand_builtin_powi): Eliminate handling of constant exponent.
2760 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2761
2762 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2763
2764 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2765
2766 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2767
2768 * dce.c (reset_unmarked_insns_debug_uses): New.
2769 (delete_unmarked_insns): Skip debug insns.
2770 (prescan_insns_for_dce): Likewise.
2771 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2772 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2773 active reg can be found.
2774 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2775 (convert_regs_1): Use it.
2776
2777 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2778
2779 * tree-pretty-print.c (dump_function_header): Add flags.
2780 Don't dump decl_uid with nouid.
2781 * tree-pretty-print.h (dump_function_header): Adjust.
2782 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2783 * passes.c (pass_init_dump_file): Pass dump_flags on.
2784 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2785
2786 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2787
2788 PR bootstrap/49270
2789 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2790
2791 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2792
2793 PR tree-optimization/49243
2794 * calls.c (setjmp_call_p): Also check if fndecl has the
2795 returns_twice attribute.
2796
2797 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2798
2799 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2800 -ffast-math etc.
2801
2802 2011-06-06 Richard Henderson <rth@redhat.com>
2803 Georg-Johann Lay <avr@gjlay.de>
2804
2805 PR target/42210
2806 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2807 New predicates.
2808 * config/avr/avr.md ("insv"): New insn expander.
2809 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2810 "*insv.not.io", "*insv.reg"): New insns.
2811
2812 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2813
2814 PR target/49285
2815 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2816 to nonimmediate_operand from memory_operand for the operand that is to
2817 be forced to memory by the expander. Lose the constraints.
2818
2819 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2820
2821 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2822 EH return when delayed branches are disabled.
2823
2824 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2825
2826 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2827 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2828 calculation.
2829 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2830 Simplify MODE_V1DF and MODE_V2SF handling.
2831 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2832 Simplify MODE_SF handling.
2833
2834 2011-06-04 Jan Hubicka <jh@suse.cz>
2835
2836 PR tree-optimization/48893
2837 PR tree-optimization/49091
2838 PR tree-optimization/49179
2839 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2840 Bounds check.
2841
2842 2011-06-04 Jan Hubicka <jh@suse.cz>
2843
2844 PR lto/48954
2845 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2846 bitmaps.
2847
2848 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2849
2850 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2851
2852 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2853
2854 PR target/49281
2855 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2856 to be strictly smaller than 1 << shiftcount.
2857
2858 2011-06-04 Jan Hubicka <jh@suse.cz>
2859
2860 PR tree-optimize/48929
2861 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2862 of empty predicate.
2863
2864 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2865
2866 PR debug/48333
2867 * calls.c (emit_call_1): Prefer the __builtin declaration of
2868 builtin functions.
2869
2870 2011-06-03 Diego Novillo <dnovillo@google.com>
2871
2872 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2873 (lto_input_tree_pointers): Likewise.
2874 * lto-streamer-out.c (pack_value_fields): Likewise.
2875 (lto_output_tree_pointers): Likewise.
2876 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2877 and OPTIMIZATION_NODE.
2878
2879 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2880
2881 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2882 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2883 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2884 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2885 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2886 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2887 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2888 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2889 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2890 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2891 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2892 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2893 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2894 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2895 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2896 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2897 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2898 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2899 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2900 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2901 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2902 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2903 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2904 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2905 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2906 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2907 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2908 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2909 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2910 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2911 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2912 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2913 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2914 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2915 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2916 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2917 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2918 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2919 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2920 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2921 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2922 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2923 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2924 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2925 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2926 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2927 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2928 * system.h (MD_UNWIND_SUPPORT): Poison.
2929 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2930 * doc/tm.texi: Regenerate.
2931 * unwind-dw2.c: Include md-unwind-support.h instead of
2932 MD_UNWIND_SUPPORT.
2933 * config/ia64/unwind-ia64.c: Likewise.
2934 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2935
2936 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2937
2938 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2939
2940 2011-06-03 Richard Henderson <rth@redhat.com>
2941 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2942
2943 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2944 (sigill_hdlr): Correct insn, insn size.
2945 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2946
2947 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2948
2949 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2950 t-slibgcc-dummy.
2951 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2952 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2953 * config/mips/t-iris: Remove.
2954 * config/mips/t-irix6: New file.
2955 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2956
2957 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2958
2959 * Makefile.in (LIB2ADDEHDEP): Remove.
2960 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2961 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2962 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2963 * config/t-darwin (LIB2ADDEHDEP): Remove.
2964 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2965 * config/t-linux (LIB2ADDEHDEP): Remove.
2966
2967 2011-06-03 Diego Novillo <dnovillo@google.com>
2968
2969 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2970 (lto_register_var_decl_in_symtab): Likewise.
2971 (lto_register_function_decl_in_symtab): Likewise.
2972 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2973 logic to uniquify_nodes.
2974
2975 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2976
2977 * config/alpha/t-osf5: Remove.
2978 * config/alpha/t-osf-pthread: Remove.
2979 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2980 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2981
2982 2011-06-03 Julian Brown <julian@codesourcery.com>
2983
2984 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2985 (strongarm1110): Use strongarm tuning.
2986 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2987 * config/arm/arm.c (arm_strongarm_tune): New.
2988 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2989 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2990 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2991 setting, using previous defaults or 1 for Cortex-A5.
2992 (arm_option_override): Set max_insns_skipped from current tuning.
2993
2994 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2995
2996 * doc/install.texi (Options specification): Document --with-specs.
2997
2998 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2999
3000 * config/arm/neon.md (orndi3_neon): Actually split it.
3001
3002 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3003
3004 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3005 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3006
3007 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3008
3009 PR debug/47590
3010 * target.def (delay_sched2, delay_vartrack): New.
3011 * doc/tm.texi.in: Update.
3012 * doc/tm.texi: Rebuild.
3013 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3014 * var-tracking.c (gate_handle_var_tracking): Likewise.
3015 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3016 (bfin_flag_var_tracking): Drop.
3017 (output_file_start): Don't save and override flag_var_tracking.
3018 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3019 (bfin_reorg): Test original variables.
3020 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3021 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3022 (ia64_flag_var_tracking): Drop.
3023 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3024 (ia64_file_start): Don't save and override flag_var_tracking.
3025 (ia64_override_options_after_change): Ditto
3026 flag_schedule_insns_after_reload.
3027 (ia64_reorg): Test original variables.
3028 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3029 (picochip_flag_var_tracking): Drop.
3030 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3031 (picochip_option_override): Don't save and override
3032 flag_schedule_insns_after_reload.
3033 (picochip_asm_file_start): Ditto flag_var_tracking.
3034 (picochip_reorg): Test original variables.
3035 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3036 (TARGET_DELAY_VARTRACK): Define.
3037 (spu_var_tracking): New.
3038 (spu_machine_dependent_reorg): Call it.
3039 (asm_file_start): Don't save and override flag_var_tracking.
3040
3041 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3042
3043 PR target/49163
3044 * config/sh/predicates.md (general_movsrc_operand): Return 0
3045 for memory and memory subreg of which address is an invalid
3046 indexed address for QI and HImode.
3047 (general_movdst_operand): Likewise.
3048
3049 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3050
3051 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3052 edges only, when there is a non-local label in the function.
3053 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3054
3055 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3056
3057 * config/i386/constraints.md (Y3): New register constraint.
3058 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3059 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3060 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3061 *sse2_interleave_lowv2df.
3062
3063 2011-06-02 Julian Brown <julian@codesourcery.com>
3064
3065 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3066 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3067 (arm_cortex_a5_tune): New.
3068
3069 2011-06-02 Julian Brown <julian@codesourcery.com>
3070
3071 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3072 * config/arm/arm.c (arm_default_branch_cost): New.
3073 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3074 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3075 (arm_fa726_tune): Set branch_cost field using
3076 arm_default_branch_cost.
3077 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3078 current_tune structure.
3079 * dojump.c (tm_p.h): Include file.
3080
3081 2011-06-02 Julian Brown <julian@codesourcery.com>
3082
3083 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3084 tuning.
3085 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3086 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3087 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3088 field.
3089 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3090 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3091 (arm_fa726te_tune): Add prefer_constant_pool setting.
3092 (arm_v6t2_tune, arm_cortex_tune): New.
3093 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3094 prefer_constant_pool setting.
3095
3096 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3097
3098 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3099 switch statement.
3100 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3101 (*movdf_internal) <case 6,7,8>: Ditto.
3102
3103 * config/i386/constraints.md (Y4): New register constraint.
3104 * config/i386/sse.md (vec_set<mode>_0): Merge with
3105 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3106 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3107 *vec_extractv2di_1_sse.
3108 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3109 and *vec_concatv2di_rex64_sse.
3110
3111 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3112
3113 PR target/48807
3114 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3115 of cgraph_local_info for null before attempting to use it.
3116
3117 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3118
3119 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3120 (current_function_dynamic_alloc_count): Delete.
3121 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3122 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3123 (expand_builtin_update_setjmp_buf): Remove dead code.
3124 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3125 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3126 support.
3127 * function.c (instantiate_virtual_regs): Likewise.
3128 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3129 for a block with a single abnormal incoming edge.
3130 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3131 (SETJMP_VIA_SAVE_AREA): Delete.
3132 * config/sparc/sparc-protos.h (load_got_register): Declare.
3133 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3134 (load_got_register): Make global.
3135 (sparc_frame_pointer_required): Add 'static'.
3136 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3137 (sparc_builtin_setjmp_frame_value): New function.
3138 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3139 (save_stack_nonlocal): New expander.
3140 (restore_stack_nonlocal): Likewise.
3141 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3142 (nonlocal_goto_internal): New insn.
3143 (goto_handler_and_restore): Delete.
3144 (builtin_setjmp_setup): Likewise.
3145 (do_builtin_setjmp_setup): Likewise.
3146 (setjmp): Likewise.
3147 (builtin_setjmp_receiver): New expander.
3148
3149 2011-06-01 David Li <davidxl@google.com>
3150
3151 PR middle-end/49261
3152 * tree-pretty-print.c (dump_function_header): Format cleanup.
3153
3154 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3155
3156 PR target/49238
3157 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3158 needed when original operands are used for msw_skip comparison.
3159
3160 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3161
3162 PR debug/49250
3163 * var-tracking.c (add_uses, add_stores): Don't call
3164 cselib_subst_to_values on ENTRY_VALUE.
3165
3166 2011-06-01 Diego Novillo <dnovillo@google.com>
3167
3168 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3169 output_record_start with LTO_null instead of output_zero.
3170 (lto_output_ts_binfo_tree_pointers): Likewise.
3171 (lto_output_tree): Likewise.
3172 (output_eh_try_list): Likewise.
3173 (output_eh_region): Likewise.
3174 (output_eh_lp): Likewise.
3175 (output_eh_regions): Likewise.
3176 (output_bb): Likewise.
3177 (output_function): Likewise.
3178 (output_unreferenced_globals): Likewise.
3179 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3180 instead of NUM_TREE_CODES.
3181 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3182 (lto_output_int_in_range): Change << to >> when shifting VAL.
3183
3184 2011-06-01 Diego Novillo <dnovillo@google.com>
3185
3186 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3187 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3188
3189 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3190
3191 PR target/45074
3192 * optabs.h (valid_multiword_target_p): Declare.
3193 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3194 doing multi-word operations.
3195 * optabs.c (expand_binop): Likewise.
3196 (expand_doubleword_bswap): Likewise.
3197 (expand_absneg_bit): Likewise.
3198 (expand_unop): Likewise.
3199 (expand_copysign_bit): Likewise.
3200 (multiword_target_p): New function.
3201
3202 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3203
3204 PR rtl-optimization/48830
3205 PR rtl-optimization/48808
3206 PR rtl-optimization/48792
3207 * reload.c (push_reload): Check contains_reg_of_mode.
3208 * reload1.c (strip_paradoxical_subreg): New function.
3209 (gen_reload_chain_without_interm_reg_p): Use it to handle
3210 paradoxical subregs.
3211 (emit_output_reload_insns, gen_reload): Likewise.
3212
3213 2011-06-01 David Li <davidxl@google.com>
3214
3215 * predict.c : Change pass name
3216 * ipa.c: Ditto.
3217 * dce.c: Ditto.
3218 * tree-profile.c: Ditto.
3219 * except.c: Ditto.
3220
3221 2011-06-01 David Li <davidxl@google.com>
3222
3223 * tree-pretty-print.c (dump_function_header): New function.
3224 * final.c (rest_of_clean_state): Use header dumper.
3225 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3226 * passes.c (pass_init_dump_file): Use header dumper.
3227
3228 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3229
3230 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3231 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3232 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3233 New functions.
3234 (mem_loc_descriptor): Use them.
3235
3236 * var-tracking.c (create_entry_value): New function.
3237 (vt_add_function_parameter): Use it.
3238
3239 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3240
3241 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3242 Include <signal.h>, <ucontext.h>.
3243 (sigill_caught): Define.
3244 (sigill_hdlr): New function.
3245 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3246 insns can be executed.
3247 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3248 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3249
3250 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3251
3252 * config/t-slibgcc-darwin: Move to ...
3253 * config/t-slibgcc-dummy: ... this. Clarify comments.
3254 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3255 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3256 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3257 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3258 Remove i386/t-crtstuff from tmake_file.
3259 (i[34567]86-*-solaris2*): Remove t-svr4,
3260 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3261 t-slibgcc-dummy.
3262 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3263 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3264 sparc/t-crtfm from tmake_file.
3265 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3266 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3267 Remove extra_parts.
3268 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3269 * config/i386/t-nwld (SHLIB_LINK): Remove.
3270 * config/i386/t-rtems-i386: Rename to ...
3271 * config/i386/t-rtems: ... this.
3272 ($(T)crti.o, $(T)crtn.o): Remove.
3273 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3274 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3275 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3276 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3277 EXTRA_MULTILIB_PARTS): Remove.
3278 * config/sparc/t-sol2-64: Likewise.
3279 * config/sparc/t-sol2: Remove.
3280 * config/sparc/t-crtin: Remove.
3281 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3282 * config/i386/gmon-sol2.c: Remove.
3283 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3284 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3285 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3286 * config/i386/sol2-gc1.asm: Remove.
3287 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3288 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3289 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3290 * config/t-slibgcc-sld: Remove.
3291
3292 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3293
3294 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3295 base_type_for_mode with op_mode instead of mode.
3296
3297 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3298
3299 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3300 Cortex-A15.
3301 * config/arm/arm-tune.md: Regenerate.
3302 * config/arm/arm-tables.opt: Regenerate.
3303 * config/arm/arm.c (FL_DIV): Rename...
3304 (FL_THUMB_DIV): ... to this.
3305 (FL_ARM_DIV): Define.
3306 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3307 (arm_arch_hwdiv): Remove.
3308 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3309 (arm_issue_rate): Add cortexr5.
3310 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3311 __ARM_ARCH_EXT_IDIV__.
3312 (TARGET_IDIV): Define.
3313 (arm_arch_hwdiv): Remove.
3314 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3315 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3316 (divsi3, udivsi3): New patterns.
3317 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3318 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3319
3320 2011-06-01 Martin Jambor <mjambor@suse.cz>
3321
3322 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3323 * ipa-utils.c (searchc): Set scc_no.
3324
3325 2011-06-01 Martin Jambor <mjambor@suse.cz>
3326
3327 * ipa-utils.c (searchc_env): New field allow_overwritable.
3328 (searchc): do not ignore edges to overwritable nodes if indicated
3329 by env->allow_overwritable.
3330 (ipa_reduced_postorder): Set env.allow_overwritable.
3331
3332 2011-06-01 Richard Guenther <rguenther@suse.de>
3333
3334 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3335 char_type_node.
3336 * lto-streamer.c (lto_record_common_node): Take node pointer,
3337 do not register types.
3338 (lto_preload_common_nodes): Explicitly skip preloading nodes
3339 that differ between frontends.
3340
3341 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3342
3343 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3344 NON_FLOAT_REGS.
3345
3346 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3347
3348 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3349 parameter value for dump. Dump cost on outermost call only.
3350 (rs6000_memory_move_cost): Dump cost on outermost call only.
3351
3352 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3353
3354 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3355 DW_OP_GNU_convert ops.
3356
3357 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3358 cselib_preserve_constants.
3359 (cselib_lookup_1): If cselib_preserve_constants,
3360 a new VALUE is being created for REG and there is a VALUE for the
3361 same register in wider mode, add another loc with lowpart SUBREG of
3362 the wider VALUE.
3363 (cselib_subst_to_values): Handle ENTRY_VALUE.
3364 * var-tracking.c (replace_expr_with_values): Return NULL for
3365 ENTRY_VALUE too.
3366 * dwarf2out.c (convert_descriptor_to_signed): New function.
3367 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3368 instead of two shifts.
3369 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3370 the right mode if needed.
3371 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3372 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3373 convert_descriptor_to_signed.
3374 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3375 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3376
3377 PR target/48688
3378 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3379
3380 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3381
3382 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3383 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3384 (SWI248x): New mode iterator, rename from X87MODEI.
3385 (X87MODEI): Remove mode iterator.
3386 (X87MODEI12): Ditto.
3387 (SSEMODEI24): Ditto.
3388
3389 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3390
3391 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3392 * doc/invoke.texi: Document max-vartrack-expr-depth.
3393 * var-tracking.c (EXPR_DEPTH): New.
3394 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3395
3396 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3397
3398 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3399 * config/i386/sse.md: Add n to negated FMA pattern names.
3400
3401 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3402
3403 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3404
3405 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3406
3407 * gengtype-state.c (read_state_params_structs): Initialize previous.
3408
3409 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3410
3411 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3412 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3413
3414 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3415
3416 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3417 registers. Penalize F*r->o alternative to prevent partial memory
3418 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3419 CONST_DOUBLE immediates when optimizing function for size. Do not move
3420 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3421 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3422 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3423 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3424 alternatives.
3425 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3426
3427 (fp_register_operand splitters): Use fp_register_operand
3428 constraint. Do not use FP_REG_P in insn condition.
3429 (any_fp_register_operand splitters): Use any_fp_register_operand
3430 constraint. Do not use ANY_FP_REG_P in insn condition.
3431
3432 2011-05-31 Jan Hubicka <jh@suse.cz>
3433
3434 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3435 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3436 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3437 (lto_output_edge): Use output_enum and var_len_unsigned.
3438 (lto_output_varpool_node): Likewise.
3439 (input_overwrite_node): Do not take resolution parameter;
3440 extract it from a bitpack.
3441 (input_node): Do not read resolution; use input_enum and
3442 var_len_unsigned.
3443 (input_varpool_node): Likewise.
3444 (input_edge): Likewise.
3445 (input_cgraph_1): Likewise.
3446
3447 2011-05-31 Richard Guenther <rguenther@suse.de>
3448
3449 * gimple.c (gimple_register_canonical_type): Do not register
3450 any types via gimple_register_type.
3451
3452 2011-05-31 Jan Hubicka <jh@suse.cz>
3453
3454 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3455 of thunks.
3456
3457 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR rtl-optimization/49235
3460 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3461 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3462
3463 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3464
3465 PR tree-optimization/49093
3466 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3467 data references.
3468
3469 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3470
3471 PR debug/49047
3472 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3473 for concrete functions containing the code of cloned functions.
3474
3475 2011-05-31 Richard Guenther <rguenther@suse.de>
3476
3477 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3478 to ...
3479 (forward_propagate_into_comparison_1): ... this.
3480 (forward_propagate_comparison): Rename to ...
3481 (forward_propagate_into_comparison): ... this. Split out
3482 real forward propagation code to ...
3483 (forward_propagate_comparison): ... this.
3484 (forward_propagate_into_gimple_cond): Remove looping.
3485 (forward_propagate_into_cond): Likewise.
3486 (simplify_not_neg_expr): Return whether we have done something.
3487 (simplify_gimple_switch): Likewise.
3488 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3489 (ssa_forward_propagate_and_combine): ... this. Re-structure
3490 to do a forward forward-propagation walk on BBs and a backward
3491 stmt combining walk on BBs. Consistently re-scan changed statements.
3492 (pass_forwprop): Adjust.
3493
3494 2011-05-30 Ian Lance Taylor <iant@google.com>
3495
3496 * godump.c (go_format_type): Correct length of name added to
3497 obstack for anonymous field.
3498
3499 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3500
3501 PR target/49186
3502 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3503 part of the second operand is 0.
3504
3505 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3506
3507 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3508 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3509 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3510 (*movdf_internal_rex64): Do not penalize F->r alternative.
3511 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3512 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3513 when optimizing function for size. Do not move CONST_DOUBLEs
3514 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3515 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3516 SUBREGs. Do not check for MEM_P operands in the insn condition,
3517 check for ANY_FP_REGNO_P instead.
3518 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3519 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3520 function for speed.
3521 * config/i386/i386.c (ix86_option_override_internal): Do not
3522 set TARGET_INTEGER_DFMODE_MOVES here.
3523
3524 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3525
3526 PR target/49168
3527 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3528
3529 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3530
3531 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3532 DW_TAG_rvalue_reference_type even for
3533 -gdwarf-4 -fno-debug-types-section.
3534
3535 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3536
3537 PR tree-optimization/46728
3538 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3539 (build_and_insert_binop): New.
3540 (gimple_expand_builtin_pow): Reorder args for
3541 build_and_insert_call; use build_and_insert_binop; add more
3542 optimizations for fractional exponents.
3543
3544 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3545
3546 PR bootstrap/49190
3547
3548 Revert:
3549 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3550
3551 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3552 tree_common.
3553 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3554 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3555 TS_BASE instead of TS_COMMON.
3556 * varasm.c (assemble_name): Remove assert.
3557
3558 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3559
3560 * config.gcc: Keep obselete list sorted.
3561
3562 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3563 Eric Botcazou <ebotcazou@adacore.com>
3564
3565 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3566 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3567 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3568 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3569 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3570
3571 2011-05-30 Richard Guenther <rguenther@suse.de>
3572
3573 * gimple.c (gimple_types_compatible_p_1): Compare record
3574 and union type members properly.
3575
3576 2011-05-30 Richard Guenther <rguenther@suse.de>
3577
3578 PR tree-optimization/49210
3579 * ipa-split.c (split_function): Care for the case where the call
3580 result is not trivially convertible to the result holding variable.
3581
3582 2011-05-30 Richard Guenther <rguenther@suse.de>
3583
3584 PR tree-optimization/49218
3585 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3586 overflow occured.
3587
3588 2011-05-30 Richard Guenther <rguenther@suse.de>
3589
3590 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3591 New function split out from ...
3592 (forward_propagate_into_gimple_cond): ... here. Adjust.
3593 (forward_propagate_into_cond): Likewise.
3594 (forward_propagate_comparison): Also propagate into
3595 comparisons on assignment RHS. Change return value to
3596 behave similar to forward_propagate_into_cond.
3597 (tree_ssa_forward_propagate_single_use_vars): Handle
3598 strict-overflow warnings properly for forward_propagate_comparison.
3599
3600 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3601
3602 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3603 from plugin linker.
3604 * configure: Regenerate.
3605
3606 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3607
3608 PR tree-optimization/49199
3609 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3610 non-reduction operands are either defined in the loop or by induction.
3611
3612 2011-05-29 Xinliang David Li <davidxl@google.com>
3613
3614 * opts-global.c (handle_common_deferred_options): Handle new options.
3615 * passes.c (register_one_dump_file): Call register_pass_name.
3616 (execute_one_pass): Check explicit enable/disable flag.
3617 (passr_hash): New function.
3618 (passr_eq): Ditto.
3619 (register_pass_name): Ditto.
3620 (get_pass_by_name): Ditto.
3621 (pass_hash): Ditto.
3622 (pass_eq): Ditto.
3623 (enable_pass): Ditto.
3624 (disable_pass): Ditto.
3625 (is_pass_explicitly_enabled_or_disabled): Ditto.
3626
3627 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3628
3629 * config/i386/i386.md (*movoi_internal_avx): Use
3630 standard_sse_constant_opcode for alternative 0.
3631 (*movti_internal_sse): Ditto.
3632 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3633 alternative 2.
3634 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3635 sselog1 type moves.
3636 (*movsi_internal): Ditto.
3637 (*movdi_internal): Ditto. Add ssecvt type moves.
3638
3639 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3640
3641 PR target/48830
3642 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3643
3644 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3645
3646 PR rtl-optimization/49095
3647 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3648 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3649
3650 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3651
3652 PR target/43995
3653 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3654 recurse_p argument. Only follow register copies if it is set,
3655 and prevent mips_find_pic_call_symbol from recursing.
3656 (mips_find_pic_call_symbol): Add a recurse_p argument.
3657 Pass it to mips_pic_call_symbol_from_set.
3658 (mips_annotate_pic_calls): Update accordingly.
3659
3660 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3661
3662 * emit-rtl.c (try_split): Use a loop to search for
3663 NOTE_INSN_CALL_ARG_LOCATIONs.
3664
3665 2011-05-29 Richard Guenther <rguenther@suse.de>
3666
3667 PR tree-optimization/49217
3668 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3669
3670 2011-05-28 Jan Hubicka <jh@suse.cz>
3671
3672 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3673 length.
3674 (string_slot_free): Remove
3675 (create_output_block): Initialize obstack.
3676 (destroy_output_block): Free obstack.
3677 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3678 the string unless it needs to be added into the hash.
3679 (lto_output_string_with_length): Add persistent attribute;
3680 handle NULL strings.
3681 (lto_output_string): Add PERSISTENT parameter.
3682 (output_string_cst, output_identifier): Simplify.
3683 (lto_output_location_bitpack): Update.
3684 (lto_output_builtin_tree): Update.
3685 * lto-streamer.h (struct output_block): Add obstack.
3686 (lto_output_string, lto_output_string_with_length): Remove
3687 declarations; functions are static now.
3688
3689 2011-05-28 Jan Hubicka <jh@suse.cz>
3690
3691 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3692 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3693 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3694 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3695 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3696 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3697 unpack_ts_decl_with_vis_value_fields,
3698 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3699 lto_get_builtin_tree): Use enum and variable length i/o.
3700 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3701 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3702 New functions.
3703 (bp_pack_enum, bp_unpack_enum): New macros.
3704
3705 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3706
3707 * genrecog.c: Remove redundant forward declarations.
3708
3709 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3710
3711 * config.gcc: Deprecate mips*-*-openbsd*.
3712
3713 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3714
3715 PR bootstrap/49195
3716 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3717 for match_op_dup.
3718
3719 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3720
3721 PR middle-end/48981
3722 * gengtype.c (vec_prefix_type): New function.
3723 (note_def_vec): Use vec_prefix_type and change the length
3724 attribute to be based on the prefix.
3725 * vec.c: Include coretypes.h before vec.h.
3726 (struct vec_prefix): Remove.
3727 (vec_gc_p_reserve): Change the offsetof to sizeof.
3728 (vec_gc_p_reserve_exact): Likewise.
3729 (vec_heap_p_reserve): Likewise.
3730 (vec_heap_p_reserve_exact): Likewise.
3731 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3732 (vec_stack_p_reserve): Change the offsetof to sizeof.
3733 (vec_stack_p_reserve_exact): Likewise.
3734 * vec.h (struct vec_prefix): New struct definition.
3735 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3736 (VEC_T_GTY(T,B)): Likewise.
3737 (DEF_VEC_FUNC_P(T)): Use prefix field.
3738 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3739 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3740
3741 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3742
3743 PR tree-optimization/46728
3744 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3745 (powi_as_mults): Add gimple_set_location.
3746 (build_and_insert_call): New.
3747 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3748 0.5, 0.25, 0.75, 1./3., or 1./6.
3749
3750 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3751
3752 * doc/contrib.texi: Update copyright years.
3753 (Contributors): Add Zdenek Sojka.
3754
3755 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3756
3757 * c-decl.c (c_push_function_context): Copy the current statement
3758 list stack.
3759 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3760 (finish_struct): Call building_stmt_list_p instead of checking
3761 cur_stmt_list.
3762 * c-parser.c (c_parser_postfix_expression): Likewise.
3763 * c-typeck.c (c_end_compound_stmt): Likewise.
3764 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3765 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3766 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3767 (free_stmt_list): Likewise.
3768 * tree.h (struct tree_statement_list): Include typed_tree instead
3769 of tree_common.
3770 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3771 as TS_TYPED instead of TS_COMMON.
3772
3773 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3774 Uros Bizjak <ubizjak@gmail.com>
3775
3776 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3777 (HAVE_AS_IX86_TLSGDPTL): Define.
3778 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3779 (HAVE_AS_IX86_TLSLDMPLT): Define.
3780 * configure: Regenerate.
3781 * config.in: Regenerate.
3782 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3783 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3784 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3785 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3786 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3787 @tlsldmplt or @plt.
3788 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3789
3790 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3791
3792 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3793 and reverse_cond.
3794 (INSN_COND, INSN_REVERSE_COND): New macros.
3795 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3796 once.
3797 (sched_get_condition_with_rev): Cache the results, and look them up
3798 if possible.
3799 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3800 are clobbered by the current insn.
3801 * target.def (exposed_pipline): New sched data hook.
3802 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3803 * doc/tm.texi: Regenerate.
3804
3805 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3806
3807 PR tree-optimization/49170
3808 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3809 sincos or cexp.
3810
3811 2011-05-27 Richard Guenther <rguenther@suse.de>
3812
3813 PR middle-end/49189
3814 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3815 of comparisons.
3816
3817 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3818
3819 * haifa-sched.c (sched_scan_info): Remove.
3820 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3821 with NULL args.
3822 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3823 Remove functions.
3824 (sched_scan): Remove.
3825 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3826 static. All callers changed.
3827 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3828 static. All callers changed.
3829 (sched_init_luids): Remove all arguments except the first. All
3830 callers changed. Don't use sched_scan.
3831 (haifa_init_h_i_d): Likewise.
3832 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3833 manually rather than using sched_init_luids. Likewise with
3834 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3835 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3836 rather than sched_init_luids with NULL args.
3837 * sel-sched-ir.c (new_insns): Remove variable.
3838 (sched_scan): New static function, previously in haifa-sched.c. Remove
3839 all arguments but the first two; all callers changed.
3840 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3841 rather than sched_init_luids.
3842 (sel_init_bbs): Remove second argument. All callers changed.
3843 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3844 with NULL arguments.
3845 (create_insn_rtx_from_pattern): Likewise.
3846 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3847 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3848 (sched_init_insn_luid, sched_extend_luids): Declare.
3849 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3850 declarations.
3851
3852 2011-05-27 Richard Guenther <rguenther@suse.de>
3853
3854 PR middle-end/49177
3855 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3856 A CMP B ? (T) true : (T) false for non-integral types T again.
3857
3858 2011-05-27 Jan Hubicka <jh@suse.cz>
3859
3860 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3861 so 0 means NULL string.
3862 (lto_output_string_with_length): ... here.
3863 (lto_output_string, output_string_cst, output_identifier): Update
3864 handling of NULL strings.
3865 (lto_output_location_bitpack): New function.
3866 (lto_output_location): Use it.
3867 (lto_output_tree_ref): Use output_record_start.
3868 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3869 len values.
3870 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3871 values by 1.
3872 (input_string_internal): ... here;
3873 (input_string_cst, input_identifier, lto_input_string): Update handling
3874 of NULL strings.
3875 (lto_input_location_bitpack): New function
3876 (lto_input_location): Use it.
3877 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3878 values.
3879 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3880 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3881 (bp_pack_value): Sanity check the value range.
3882 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3883 New functions.
3884 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3885 New functions.
3886
3887 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3888
3889 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3890 call_arg_location instructions down the floor.
3891
3892 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3893
3894 PR rtl-optimization/49154
3895 * ira.c (setup_pressure_classes): Process class without sublcasses
3896 as a candidate for pressure classes.
3897
3898 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3899
3900 PR rtl-optimization/48575
3901 * genrecog.c (position_type): New enum.
3902 (position): New structure.
3903 (decision): Use position structure instead of a string.
3904 (root_pos, peep2_insn_pos_list): New variables.
3905 (next_position, compare_positions): New functions.
3906 (new_decision): Use position structures instead of strings.
3907 (maybe_both_true): Likewise.
3908 (change_state): Likewise.
3909 (write_tree): Likewise.
3910 (make_insn_sequence): Likewise.
3911
3912 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3913
3914 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3915 TS_BASE instead of TS_COMMON.
3916 (find_decls_types_r): Check for TS_TYPED structure before looking at
3917 TREE_TYPE.
3918 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3919 Add chain field.
3920 (BLOCK_CHAIN): Use new chain field.
3921
3922 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3923
3924 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3925 moves expensive on Power7 also.
3926
3927 2011-05-26 Richard Guenther <rguenther@suse.de>
3928
3929 * fold-const.c (fold_unary_loc): Remove bogus code.
3930
3931 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3932
3933 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3934 tree_common.
3935 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3936 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3937 TS_BASE instead of TS_COMMON.
3938 * varasm.c (assemble_name): Remove assert.
3939
3940 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3941
3942 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3943 substituted first.
3944 * libgcc-std.ver: Delete file.
3945
3946 2011-05-26 Richard Guenther <rguenther@suse.de>
3947
3948 PR tree-optimization/48702
3949 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3950 only when we know the base address is within bounds.
3951 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3952 assume the base address of TARGET_MEM_REFs is in bounds.
3953
3954 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3955
3956 PR target/49099
3957 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3958 declaration in TARGET_SOLARIS.
3959
3960 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3961
3962 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3963 The instruction is then expanded explicitly.
3964 (supported_compare): Callable instruction.
3965 (compare): Likewise.
3966
3967 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3968
3969 PR c++/49165
3970 * gimplify.c (shortcut_cond_r): Don't special case
3971 COND_EXPRs if they have void type on one of their arms.
3972
3973 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3974
3975 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3976 to reduce duplication, and to achieve a slightly more logical order
3977 of operations.
3978
3979 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR tree-optimization/49161
3982 * tree-vrp.c (struct case_info): New type.
3983 (compare_case_labels): Sort case_info structs instead of
3984 trees, and not primarily by CASE_LABEL uids but by
3985 label_for_block indexes.
3986 (find_switch_asserts): Put case labels into struct case_info
3987 array instead of TREE_VEC, adjust sorting, compare label_for_block
3988 values instead of CASE_LABELs.
3989
3990 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3991
3992 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3993 ("orndi3_neon"): Likewise.
3994 ("bic<mode>3_neon"): Likewise.
3995
3996 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3997
3998 PR tree-optimization/49038
3999 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4000 Ensure at least one epilogue iteration if required by data
4001 accesses with gaps.
4002 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4003 to mark loops that require peeling for gaps.
4004 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4005 (vect_get_known_peeling_cost): Take peeling for gaps into
4006 account.
4007 (vect_transform_loop): Generate epilogue if required by data
4008 access with gaps.
4009 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4010 loop as requiring an epilogue if there are gaps in the end of
4011 the strided group.
4012
4013 2011-05-25 Ian Lance Taylor <iant@google.com>
4014
4015 * godump.c (go_format_type): Output the first field with a usable
4016 Go type, if any.
4017
4018 2011-05-25 Ian Lance Taylor <iant@google.com>
4019
4020 * godump.c (go_format_type): Check for invalid type names, pointer
4021 target types, and struct field types.
4022
4023 2011-05-25 Jason Merrill <jason@redhat.com>
4024
4025 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4026
4027 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4028
4029 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4030
4031 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4032
4033 * config/i386/i386.md (*movqi_extv_1)): Put back
4034 "register_operand" check in "type" calculation.
4035 (*movqi_extzv_2): Likewise.
4036
4037 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4038
4039 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4040
4041 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4042
4043 PR bootstrap/49160
4044 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4045 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4046 __divxc3, __divtc3): Wrap definitions in #ifndef.
4047
4048 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4049
4050 PR target/49142
4051 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4052 "register_operand" check and replace q_regs_operand with
4053 QIreg_operand in "type" calculation.
4054 (*movqi_extv_1): Likewise.
4055 (*movqi_extzv_2_rex64): Likewise.
4056 (*movqi_extzv_2): Likewise.
4057
4058 * config/i386/predicates.md (QIreg_operand): New.
4059
4060 2011-05-25 Richard Guenther <rguenther@suse.de>
4061
4062 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4063 type-based offset disambiguation, streamline MEM_REF and
4064 TARGET_MEM_REF handling.
4065
4066 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4067
4068 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4069 (bdesc_special_args): Add pause intrinsic.
4070
4071 * config/i386/i386.md (UNSPEC_PAUSE): New.
4072 (pause): Likewise.
4073 (*pause): Likewise.
4074 * config/i386/ia32intrin.h (__pause): Likewise.
4075
4076 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4077 pause intrinsic.
4078
4079 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4080
4081 PR tree-optimization/46728
4082 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4083 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4084
4085 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4086
4087 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4088 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4089 instead of TS_COMMON.
4090
4091 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4092
4093 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4094 LIBGCC2_GNU_PREFIX is defined.
4095 (__N): New macro.
4096 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4097 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4098 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4099 __clz_tab): Define using __N.
4100 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4101 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4102 * target.def (libfunc_gnu_prefix): New hook.
4103 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4104 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4105 * doc/tm.texi: Regenerate.
4106 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4107 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4108 account.
4109 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4110 (init_optabs): Likewise for the bswap libfuncs.
4111 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4112 and divide.
4113 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4114 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4115 * libgcc-std.ver: Remove.
4116 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4117 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4118 libgcc-std.ver.
4119 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4120 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4121 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4122 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4123 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4124 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4125 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4126 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4127 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4128 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4129
4130 2011-05-25 Jan Hubicka <jh@suse.cz>
4131
4132 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4133 (lto_output_tree): Use output_record_start.
4134 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4135 (lto_get_pickled_tree): Use input_record_start.
4136 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4137 (lto_value_range_error): New function.
4138 * lto-streamer.h (lto_value_range_error): Declare.
4139 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4140 (lto_output_enum, lto_input_enum): New macros.
4141
4142 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 * common.opt (flag_stack_usage_info): New variable.
4145 (-Wstack-usage): New option.
4146 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4147 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4148 <OPT_fstack_usage>: Likewise.
4149 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4150 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4151 of flag_stack_usage.
4152 (emit_library_call_value_1): Likewise.
4153 * explow.c (allocate_dynamic_stack_space): Likewise.
4154 * function.c (instantiate_virtual_regs ): Likewise.
4155 (prepare_function_start): Likewise.
4156 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4157 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4158 * config/arm/arm.c (arm_expand_prologue): Likewise.
4159 (thumb1_expand_prologue): Likewise.
4160 * config/avr/avr.c (expand_prologue): Likewise.
4161 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4162 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4163 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4164 * config/mips/mips.c (mips_expand_prologue): Likewise.
4165 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4166 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4167 * config/s390/s390.c (s390_emit_prologue): Likewise.
4168 * config/sh/sh.c (sh_expand_prologue): Likewise.
4169 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4170 * config/spu/spu.c (spu_expand_prologue): Likewise.
4171
4172 2011-05-25 Richard Guenther <rguenther@suse.de>
4173
4174 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4175 (gimple_canonical_types_compatible_p): Likewise.
4176
4177 2011-05-25 Jan Hubicka <jh@suse.cz>
4178
4179 PR middle-end/49062
4180 * ipa.c (function_and_variable_visibility): Only add to same
4181 comdat group list if DECL_ONE_ONLY.
4182
4183 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4184
4185 PR rtl-optimization/49014
4186 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4187
4188 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4189
4190 PR target/49128
4191 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4192
4193 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4194
4195 PR rtl-optimization/48757
4196 * ira-build.c (loop_with_eh_edge_p): Rename to
4197 loop_with_complex_edge_p, check edges on complexity, make function
4198 conditional.
4199 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4200 conditional.
4201
4202 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4203
4204 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4205 force flag_ira_share_save_slots to 0.
4206
4207 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4208
4209 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4210 (vt_initialize): Set PROLOGUE_BB unconditionally.
4211 Add block comment about CFA_BASE_RTX machinery.
4212 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4213 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4214
4215 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4216
4217 PR objc/48187
4218 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4219 parsing of syntax error in ObjC instance variable lists. In
4220 particular, avoid an infinite loop if there is a stray ']'.
4221 Updated error message.
4222
4223 2011-05-24 Ian Lance Taylor <iant@google.com>
4224
4225 * godump.c (go_define): Don't accept a string immediately after
4226 another operand.
4227
4228 2011-05-24 Ian Lance Taylor <iant@google.com>
4229
4230 * godump.c (struct godump_container): Add invalid_hash field.
4231 (go_format_type): Return false if type is found in invalid_hash.
4232 (go_output_typedef): Add invalid type to invalid_hash.
4233 (go_finish): Create and delete invalid_hash.
4234
4235 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4236
4237 PR tree-optimization/46728
4238 * tree-ssa-math-opts.c (powi_table): New.
4239 (powi_lookup_cost): New.
4240 (powi_cost): New.
4241 (powi_as_mults_1): New.
4242 (powi_as_mults): New.
4243 (gimple_expand_builtin_powi): New.
4244 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4245 (gate_cse_sincos): Remove sincos/cexp restriction.
4246
4247 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4248
4249 PR target/3746
4250 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4251 mips-tdump native.
4252 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4253 * mips-tdump.c: Likewise.
4254
4255 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4256
4257 PR target/49128
4258 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4259 add -mno-XXX. Handle FMA.
4260
4261 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4262
4263 PR rtl-optimization/48633
4264 * ira-build.c (loop_with_eh_edge_p): New function.
4265 (mark_loops_for_removal): Use it.
4266
4267 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4268
4269 PR rtl-optimization/48971
4270 * ira.c (setup_pressure_classes): Don't check register move cost
4271 for classes with one registers. Don't add pressure class if there
4272 is a pressure class with the same available hard registers.
4273 Check contains_reg_of_mode. Fix a typo in collecting
4274 temp_hard_regset. Ignore hard registers not belonging to a class.
4275
4276 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4277
4278 PR target/49133
4279 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4280
4281 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4282 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4283
4284 PR gcov-profile/48845
4285 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4286
4287 2011-05-24 Richard Guenther <rguenther@suse.de>
4288
4289 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4290 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4291 (gimple_types_compatible_p_1): Adjust.
4292 (iterative_hash_canonical_type): Do not bother about complete vs.
4293 incomplete types.
4294 (gimple_canonical_types_compatible_p): Likewise.
4295
4296 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4297
4298 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4299
4300 2011-05-24 Richard Guenther <rguenther@suse.de>
4301
4302 PR bootstrap/49078
4303 * gimple.c (gimple_register_canonical_type): Revert
4304 previous change.
4305 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4306 does not for a tree for the case where it matters. Cache
4307 pointer-type alias-sets.
4308
4309 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4310
4311 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4312 (OBJS): Remove options.o, opts-common.o and prefix.o.
4313 (OBJS-libcommon-target): New.
4314 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4315 (BACKEND): Include libcommon-target.a.
4316 (MOSTLYCLEANFILES): Include libcommon-target.a.
4317 (libcommon-target.a): New.
4318 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4319 prefix.o.
4320
4321 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4322
4323 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4324 parts of output shared with the driver.
4325 * optc-gen.awk: Don't generate parts of output not shared with the
4326 driver.
4327 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4328 * doc/options.texi (SourcerInclude): Mention options-save.c.
4329 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4330 (OBJS): Add options-save.o.
4331 (options-save.c, options-save.o): New.
4332 (options.o): Update dependencies.
4333 (gcc-options.o): Remove.
4334 (mostlyclean): Remove options-save.c.
4335
4336 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4337
4338 PR debug/49032
4339 * dbxout.c: Include cgraph.h.
4340 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4341 and without value expr, return NULL if no varpool node exists for
4342 it or if it is not needed.
4343 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4344
4345 PR c/49120
4346 * c-decl.c (start_decl): Convert expr to void_type_node.
4347
4348 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4349
4350 PR rtl-optimization/48826
4351 * emit-rtl.c (try_split): When splitting a call that is followed
4352 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4353
4354 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4355
4356 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4357 parameters passed in memory prefer using DECL_INCOMING_RTL over
4358 the pseudos it will be copied into.
4359
4360 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4361
4362 PR target/47315
4363 * config/i386/i386.c (ix86_option_override_internal): Save the
4364 initial options after checking vzeroupper.
4365
4366 2011-05-23 David Li <davidxl@google.com>
4367
4368 PR tree-optimization/48988
4369 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4370 Initialize has_valid_pred for each pred chain.
4371
4372 2011-05-23 Richard Guenther <rguenther@suse.de>
4373
4374 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4375 (iterative_hash_gimple_type): Always hash type names.
4376
4377 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4378
4379 * c-typeck.c (build_function_call_vec): Tweak call to
4380 check_function_arguments.
4381
4382 2011-05-23 Richard Guenther <rguenther@suse.de>
4383
4384 PR tree-optimization/49115
4385 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4386 is not necessarily carried out, do not claim it kills the ref.
4387 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4388
4389 2011-05-23 Richard Guenther <rguenther@suse.de>
4390
4391 PR middle-end/15419
4392 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4393 what pointer types we accept for folding.
4394
4395 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4396
4397 * gthr-gnat.c: Remove.
4398 * gthr-gnat.h: Remove.
4399 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4400 * config/t-freebsd (LIB2ADDEH): Likewise.
4401 * config/t-linux (LIB2ADDEH): Likewise.
4402 * config/t-sol2 (LIB2ADDEH): Likewise.
4403 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4404 * configure.ac (target_thread_file): Remove gnat handling.
4405 * configure: Regenerate.
4406 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4407
4408 2011-05-23 Tristan Gingold <gingold@adacore.com>
4409 Eric Botcazou <ebotcazou@adacore.com>
4410
4411 * gcov.c (create_file_names): If no object directory is specified,
4412 keep the directory of the file.
4413
4414 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4415
4416 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4417 * configure: Regenerate.
4418
4419 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4420
4421 PR middle-end/48973
4422 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4423 failed and the comparison has a single bit signed type, use
4424 constm1_rtx instead of const1_rtx for true value.
4425 (do_store_flag): If ops->type is single bit signed type, disable
4426 signel bit test optimization and pass -1 instead of 1 as last
4427 parameter to emit_store_flag_force.
4428
4429 2011-05-23 Tom de Vries <tom@codesourcery.com>
4430
4431 PR target/45098
4432 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4433 function.
4434 (infer_loop_bounds_from_undefined): Use new function.
4435
4436 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4437
4438 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4439 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4440 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4441 and -O0 otherwise.
4442 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4443
4444 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4445
4446 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4447 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4448 returns true.
4449
4450 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4451
4452 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4453
4454 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4455
4456 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4457 UNSPEC_MOVE_PIC pattern.
4458
4459 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4460
4461 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4462 (sparc-*-rtems*): Likewise.
4463 (sparc64-*-elf*): Likewise.
4464 (sparc64-*-rtems*): Likewise.
4465 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4466 * config/sparc/t-crtin: New file.
4467 * config/sparc/t-sol2 (crti.o): Delete rule.
4468 (crtn.o): Likewise.
4469 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4470 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4471 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4472 (ENDFILE_SPEC): Add crtn.o.
4473
4474 2011-05-22 Tom de Vries <tom@codesourcery.com>
4475
4476 PR middle-end/48689
4477 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4478 CODE_CONTAINS_STRUCT (TS_COMMON).
4479
4480 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4481
4482 PR middle-end/49029
4483 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4484 only after deciding which mode to use.
4485
4486 2011-05-22 Tom de Vries <tom@codesourcery.com>
4487
4488 PR target/45098
4489 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4490 for call to get_shiftadd_cost.
4491
4492 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4493
4494 PR target/49104
4495 * config/i386/cpuid.h (bit_MMXEXT): New define.
4496
4497 2011-05-22 Nick Clifton <nickc@redhat.com>
4498
4499 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4500 initialisation of non-existant args[2] element. Use args[] array
4501 not arg[] array to pass arguments to build_function_type_list.
4502
4503 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4504
4505 PR tree-optimization/49087
4506 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4507
4508 2011-05-21 Jason Merrill <jason@redhat.com>
4509
4510 PR c++/49092
4511 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4512 static storage duration.
4513
4514 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4515
4516 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4517 frame pointer.
4518
4519 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4520
4521 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4522 false if there are call-saved registers here...
4523 (sparc_can_use_return_insn_p): ...but here instead.
4524 (save_or_restore_regs): Fix thinko.
4525 (sparc_expand_prologue): Use current_function_is_leaf.
4526 (sparc_frame_pointer_required): Likewise.
4527
4528 2011-05-21 Nick Clifton <nickc@redhat.com>
4529
4530 PR target/49098
4531 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4532
4533 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4534
4535 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4536 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4537
4538 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4539
4540 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4541 * optc-gen.awk: Move common code to opt-read.awk.
4542 * opth-gen.awk: Likewise.
4543 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4544
4545 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4546
4547 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4548
4549 2011-05-20 Tom de Vries <tom@codesourcery.com>
4550
4551 PR target/45098
4552 * tree-ssa-loop-ivopts.c: Include expmed.h.
4553 (get_shiftadd_cost): New function.
4554 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4555
4556 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4557
4558 PR bootstrap/49086
4559 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4560 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4561
4562 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4563
4564 * Makefile.in: Update comment referring to $(OBJS-common).
4565
4566 2011-05-20 Ian Lance Taylor <iant@google.com>
4567
4568 * godump.c (go_output_typedef): Put enum constants in the macro
4569 hash table to avoid duplicate Go const definitions.
4570
4571 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4572
4573 * Makefile.in (LIBDEPS): Add libcommon.a.
4574 (LIBS): Likewise.
4575 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4576 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4577 pretty-print.o and version.o.
4578 (OBJS-libcommon): New.
4579 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4580 (BACKEND): Add libcommon.a.
4581 (MOSTLYCLEANFILES): Likewise.
4582 (libcommon.a): New.
4583 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4584 (cpp$(exeext)): Likewise.
4585 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4586 pretty-print.o and input.o.
4587 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4588 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4589 (errors.o): Remove.
4590 (mips-tfile): Don't explicitly use version.o.
4591 (mips-tdump): Likewise.
4592 (gcov.o): Depend on $(DIAGNOSTIC_H).
4593 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4594 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4595 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4596 * gcov-dump.c: Include intl.h and diagnostic.h.
4597 (main): Initialize diagnostics.
4598 * gcov.c: Include diagnostic.h.
4599 (fnotice): Remove.
4600 (main): Initialize diagnostics.
4601 * lto-wrapper.c: Include diagnostic.h.
4602 (main): Initialize diagnostics.
4603
4604 2011-05-20 Michael Matz <matz@suse.de>
4605
4606 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4607
4608 2011-05-20 Michael Matz <matz@suse.de>
4609 Richard Guenther <rguenther@suse.de>
4610
4611 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4612 use lto_streamer_cache_append directly instead of returning a VEC.
4613 (preload_common_node): Remove.
4614 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4615 track seen nodes.
4616 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4617
4618 2011-05-20 Richard Guenther <rguenther@suse.de>
4619
4620 PR tree-optimization/49079
4621 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4622 MEM_REFs correctly for the trailing array access detection.
4623 Special case constants the same way as decls for overall size
4624 constraining.
4625
4626 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4627
4628 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4629 argument expansion.
4630
4631 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4632
4633 PR tree-optimization/49073
4634 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4635 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4636 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4637
4638 2011-05-20 Richard Guenther <rguenther@suse.de>
4639
4640 PR middle-end/48849
4641 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4642 of pointer types the same way the middle-end does.
4643
4644 2011-05-20 Richard Guenther <rguenther@suse.de>
4645
4646 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4647 or pointer-to chains. Delay all fixup to uniquify_nodes.
4648
4649 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4650
4651 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4652 (fma4_fmaddsub): Likewise
4653
4654 2011-05-19 Jan Hubicka <jh@suse.cz>
4655
4656 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4657 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4658 (type_pair_cache): New static var.
4659 (lookup_type_pair): Use fixed sized custom hash; make inline.
4660 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4661 calls of lookup_type_pair.
4662 (print_gimple_types_stats): Remove cache stats.
4663 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4664 and gtc_ob.
4665
4666 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4667
4668 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4669 when TARGET_RDRND is active.
4670 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4671 Generate dummy SImode target register when target is NULL.
4672
4673 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4674
4675 * config/arm/arm-fpus.def: New.
4676 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4677 arm-fpus.def.
4678 * config/arm/arm-tables.opt: Regenerate.
4679 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4680 (arm_option_override): Don't decode FPU name to string here.
4681 * config/arm/arm.opt (mfpu=): Use Enum.
4682 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4683 Update dependencies.
4684
4685 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4686
4687 * collect2.c: Include diagnostic.h.
4688 (fatal_perror, fatal, error, fancy_abort): Remove.
4689 (main): Set progname. Call xmalloc_set_program_name and
4690 diagnostic_initialize.
4691 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4692 scan_libraries, resolve_lib_name): Call fatal_error instead of
4693 fatal and fatal_perror.
4694 * collect2.h (error, fatal, fatal_perror): Don't declare.
4695 * tlink.c: Include diagnostic-core.h.
4696 (recompile_files): Call fatal_error instead of fatal_perror.
4697 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4698 pretty-print.o and input.o.
4699 (collect2.o, tlink.o): Update dependencies.
4700
4701 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4702
4703 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4704
4705 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4706
4707 PR target/40483
4708 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4709 COMDAT group syntax, both SPARC and x86 variants.
4710 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4711 * configure: Regenerate.
4712 * config/sol2.h (TARGET_SOLARIS): Define.
4713 (PUSHSECTION_FORMAT): Remove.
4714 (SECTION_NAME_FORMAT): Define.
4715 * config/sol2.c: Include hashtab.h.
4716 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4717 expansion, using SECTION_NAME_FORMAT.
4718 (solaris_comdat_htab): New variable.
4719 (struct comdat_entry): Define.
4720 (comdat_hash): New function.
4721 (comdat_eq): New function.
4722 (solaris_elf_asm_comdat_section): New function.
4723 (solaris_define_comdat_signature): New function.
4724 (solaris_code_end): New function.
4725 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4726 (solaris_code_end): Declare.
4727 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4728 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4729 solaris_code_end.
4730 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4731 Remove ATTRIBUTE_UNUSED.
4732 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4733 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4734 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4735 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4736 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4737 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4738 (PUSHSECTION_FORMAT): Remove.
4739 (SECTION_NAME_FORMAT): Redefine.
4740
4741 2011-05-19 Kai Tietz <ktietz@redhat.com>
4742
4743 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4744 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4745 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4746
4747 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4748 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4749
4750 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4751
4752 2011-05-19 Richard Guenther <rguenther@suse.de>
4753
4754 PR middle-end/48985
4755 * tree-object-size.c (addr_object_size): If the pointed-to
4756 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4757
4758 2011-05-19 Richard Guenther <rguenther@suse.de>
4759
4760 * gimple.c (gimple_types_compatible_p_1): Compare names of
4761 the types themselves.
4762 (iterative_hash_gimple_type): And hash them that way.
4763 (gimple_register_type_1): If we register a main variant properly
4764 initialize the leader to ourselves.
4765
4766 2011-05-19 Tom de Vries <tom@codesourcery.com>
4767
4768 PR target/45098
4769 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4770 get_loop_invariant_expr_id.
4771 (get_loop_invariant_expr_id): Use get_expr_id.
4772 (parm_decl_cost): New function.
4773 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4774 Improve bound cost estimation. Use different inv_expr_id for elim and
4775 express cases.
4776
4777 2011-05-19 Tom de Vries <tom@codesourcery.com>
4778
4779 PR target/45098
4780 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4781 cost_base.cost == 0.
4782
4783 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4784
4785 PR target/49002
4786 * config/i386/sse.md
4787 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4788 load cast.
4789
4790 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4791
4792 PR tree-optimization/49039
4793 * tree-vrp.c (extract_range_from_binary_expr): For
4794 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4795 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4796
4797 2011-05-18 Tom de Vries <tom@codesourcery.com>
4798
4799 PR target/45098
4800 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4801
4802 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4803
4804 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4805 (*tls_global_dynamic_64): Ditto.
4806 (*tls_local_dynamic_base_32_gnu): Ditto.
4807 (*tls_local_dynamic_base_64): Ditto.
4808 (tls_initial_exec_64_sun): Ditto.
4809
4810 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4811
4812 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4813 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4814 bf592-none.
4815 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4816 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4817 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4818 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4819 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4820 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4821 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4822
4823 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4824
4825 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4826 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4827 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4828 target_thread_pointer, arm_structure_size_boundary, struct
4829 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4830 struct abi_name, arm_all_abis): Remove.
4831 (arm_option_override) Don't process most enumerated option values here.
4832 Don't process target_fpe_name here. Work with integer not string for
4833 structure size boundary; use separate diagnostics for each case.
4834 * config/arm/arm.h (enum float_abi_type, enum
4835 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4836 to arm-opts.h.
4837 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4838 arm_structure_size_boundary): Remove.
4839 * config/arm/arm.opt (mabi=): Use Enum and Init.
4840 (arm_abi_type): New Enum and EnumValue entries.
4841 (mfloat-abi=): Use Enum and Init.
4842 (float_abi_type): New Enum and EnumValue entries.
4843 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4844 (mfp16-format=): Use Enum and Init.
4845 (arm_fp16_format_type): New Enum and EnumValue entries.
4846 (mstructure-size-boundary=): Use UInteger and Init.
4847 (mtp=): Use Enum and Init.
4848 (arm_tp_type): New Enum and EnumValue entries.
4849
4850 2011-05-18 Richard Guenther <rguenther@suse.de>
4851
4852 PR tree-optimization/49018
4853 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4854 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4855 gimple_has_side_effects.
4856
4857 2011-05-18 Richard Guenther <rguenther@suse.de>
4858
4859 * gimple.c (gimple_register_type_1): New function, split out from ...
4860 (gimple_register_type): ... here. Avoid infinite recursion.
4861
4862 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4863
4864 PR tree-optimization/41881
4865 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4866 reduction_chains along with a macro for its access.
4867 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4868 (destroy_loop_vec_info): Free reduction chains.
4869 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4870 (vect_is_slp_reduction): New function.
4871 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4872 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4873 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4874 definition types for reduction chains.
4875 (vect_supported_load_permutation_p): Don't allow permutations for
4876 reduction chains.
4877 (vect_analyze_slp_instance): Support reduction chains.
4878 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4879 (vect_get_constant_vectors): Handle reduction chains.
4880 (vect_schedule_slp_instance): Mark the first statement of the
4881 reduction chain as reduction.
4882
4883 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4884
4885 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4886 names for group elements access.
4887 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4888 reduction chains as well. Remove data reference and interleaving
4889 related words from the fields names.
4890 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4891 elements access.
4892 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4893 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4894 vect_update_interleaving_chain, vect_same_range_drs,
4895 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4896 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4897 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4898 vect_analyze_group_access, vect_analyze_data_ref_access,
4899 vect_create_data_ref_ptr, vect_transform_strided_load,
4900 vect_record_strided_load_vectors): Likewise.
4901 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4902 vect_model_load_cost, vectorizable_store, vectorizable_load,
4903 vect_remove_stores, new_stmt_vec_info): Likewise.
4904 * tree-vect-slp.c (vect_build_slp_tree,
4905 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4906
4907 2011-05-18 Richard Guenther <rguenther@suse.de>
4908
4909 PR middle-end/48989
4910 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4911 operand verification.
4912 (verify_gimple_assign_binary): Likewise.
4913 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4914 to non-1-precision BOOLEAN_TYPEs.
4915
4916 2011-05-18 Tom de Vries <tom@codesourcery.com>
4917
4918 PR target/45098
4919 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4920
4921 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR tree-optimization/49000
4924 * tree-ssa.c (execute_update_addresses_taken): Call
4925 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4926 be rewritten and decl has been marked for renaming, reset
4927 the debug stmt.
4928
4929 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4930
4931 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4932 enum_opts_set when testing if attributes have set -mfpmath=.
4933
4934 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4935
4936 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4937
4938 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4939
4940 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4941 info->entry with 0
4942 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4943 id.transform_lang_insert_block with NULL.
4944
4945 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4946
4947 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4948 (output_fp_compare): Change args 3 and 4 to bool.
4949 (ix86_expand_call): Change arg 6 to bool.
4950 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4951 (ix86_attr_length_vex_default): Change arg 3 to bool.
4952 * config/i386/i386.md: Update all uses.
4953 * config/i386/i386.c: Ditto.
4954 (ix86_flags_dependent): Change return type to bool.
4955
4956 2011-05-17 Richard Guenther <rguenther@suse.de>
4957
4958 * gimple.c (type_hash_pair_compare): Fix comparison.
4959
4960 2011-05-17 Richard Guenther <rguenther@suse.de>
4961
4962 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4963 case some more, fix final hash value of the non-singleton case.
4964
4965 2011-05-17 Richard Guenther <rguenther@suse.de>
4966
4967 PR bootstrap/49013
4968 Revert
4969 2011-05-16 Richard Guenther <rguenther@suse.de>
4970
4971 * gimple.c (gimple_types_compatible_p_1): Use names of the
4972 type itself, not its main variant.
4973 (iterative_hash_gimple_type): Likewise.
4974
4975 2011-05-17 Richard Guenther <rguenther@suse.de>
4976
4977 * gimple.c (gimple_register_canonical_type): Use the main-variant
4978 leader for computing the canonical type.
4979
4980 2011-05-17 Nick Clifton <nickc@redhat.com>
4981
4982 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4983 moves.
4984
4985 * config/rx/rx.md: Add peephole to remove redundant extensions
4986 after loads.
4987 (bitset_in_memory): Use rx_restricted_mem_operand.
4988 (bitinvert_in_memory): Likewise.
4989 (bitclr_in_memory): Likewise.
4990
4991 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4992 Nick Clifton <nickc@redhat.com>
4993
4994 * config/rx/rx.md: Add peepholes to match a register move followed
4995 by a comparison of the moved register. Replace these with an
4996 addition of zero that does both actions in one instruction.
4997
4998 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4999
5000 PR target/48986
5001 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5002 predicate to allow CONST_INT.
5003 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5004
5005 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5006
5007 * opts-common.c (opt_enum_arg_to_value): New.
5008 * opts.h (opt_enum_arg_to_value): Declare.
5009 * config/i386/i386.opt (fpmath): Remove.
5010 (mfpmath=): Use Enum, Init and Save.
5011 (fpmath_unit): New Enum and EnumValue entries.
5012 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5013 name for function fpmath state.
5014 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5015 * config/i386/i386.c: Include diagnostic.h.
5016 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5017 (ix86_target_string): Take enum fpmath_unit value instead of string.
5018 (ix86_debug_options): Update call to ix86_target_string.
5019 (ix86_option_override_internal): Don't process fpmath strings here.
5020 (x86_function_specific_save, ix86_function_specific_restore):
5021 Don't handle fpmath state specially.
5022 (ix86_function_specific_print): Pass fpmath state to
5023 ix86_target_string instead of printing in this function.
5024 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5025 Handle enum attributes.
5026 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5027 (ix86_valid_target_attribute_tree): Update option_strings
5028 handling. Handle fpmath as enum option.
5029 (ix86_can_inline_p): Update field names for function fpmath state.
5030 (ix86_expand_builtin): Update call to ix86_target_string.
5031 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5032 (ix86_fpmath): Remove.
5033 * config/i386/t-i386 (i386.o): Update dependencies.
5034
5035 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5036
5037 PR preprocessor/48677
5038 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5039 from decoded_options[0], not from itself.
5040
5041 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5042
5043 * config/i386/constraints.md (z): New constraint.
5044 * config/i386/i386.c (c): New mode attribute.
5045 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5046 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5047 constraint for operand 0.
5048 (*call_vzeroupper): Ditto.
5049 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5050 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5051 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5052 Use "lzm" constraint for operand 0.
5053 (*call_pop_vzeroupper): Ditto.
5054 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5055 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5056 constraint for operand 0.
5057 (*sibcall_vzeroupper): Ditto.
5058 (*sibcall_rex64_ms_sysv): Ditto.
5059 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5060 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5061 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5062 (*sibcall_pop_vzeroupper): Ditto.
5063 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5064 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5065 mode iterator. Use "<c>zm" constraint for operand 1.
5066 (*call_value_vzeroupper): Ditto.
5067 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5068 for operand 1.
5069 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5070 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5071 *call_value_pop_1. Use "lzm" constraint for operand 1.
5072 (*call_value_pop_vzeroupper): Ditto.
5073 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5074 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5075 mode iterator. Use "Uz" constraint for operand 1.
5076 (*sibcall_value_vzeroupper): Ditto.
5077 (*sibcall_value_rex64_ms_sysv): Ditto.
5078 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5079 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5080 constraint for operand 1.
5081 (*sibcall_value_pop_vzeroupper): Ditto.
5082 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5083 and "z" constraint for operand 2.
5084 (*tls_global_dynamic_32_gnu): Ditto.
5085 (*tls_local_dynamic_base_32_gnu): Ditto.
5086 (*tls_local_dynamic_base_64): Ditto.
5087 (*tls_local_dynamic_32_once): Ditto.
5088 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5089 Update all callers.
5090 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5091
5092 2011-05-16 Richard Guenther <rguenther@suse.de>
5093
5094 * gimple.c (gimple_types_compatible_p_1): Use names of the
5095 type itself, not its main variant.
5096 (iterative_hash_gimple_type): Likewise.
5097
5098 2011-05-16 Richard Guenther <rguenther@suse.de>
5099
5100 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5101 always visit pointer target and function result and argument types.
5102
5103 2011-05-16 Jason Merrill <jason@redhat.com>
5104
5105 PR c++/48999
5106 * tree-inline.c (copy_statement_list): Put back recursion.
5107
5108 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5109
5110 PR target/27663
5111 PR target/41076
5112 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5113 * config/avr/avr.md ("*ior<mode>qi.byte0",
5114 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5115
5116 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5117
5118 PR target/45099
5119 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5120 register is needed for a function argument.
5121
5122 2011-05-16 Richard Guenther <rguenther@suse.de>
5123
5124 * gimple.c (struct type_hash_pair): New type.
5125 (type_hash_pair_compare): New function.
5126 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5127
5128 2011-05-16 Revital Eres <revital.eres@linaro.org>
5129
5130 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5131
5132 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5133
5134 * config/i386/i386.md (floating point move splitters): Fix
5135 usage of standard_80387_constant_p.
5136 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5137
5138 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5139
5140 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5141
5142 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5143
5144 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5145 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5146 (tree_ssa_lim_finalize): Likewise.
5147
5148 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5149
5150 * config/i386/constraint.md (Yd, Yx): New register constraints.
5151 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5152 Yd conditional register constraint.
5153 (*movtf_internal): Use standard_sse_constant_opcode.
5154 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5155 Yx conditional register constraint.
5156 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5157 Yd conditional register constraint. Use standard_sse_constant_p to
5158 check for valid SSE constants and call standard_sse_constant_opcode to
5159 output SSE insn.
5160 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5161 constants and call standard_sse_constant_opcode to output SSE insn.
5162 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5163 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5164 optimize_size is set.
5165 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5166
5167 2011-05-14 Tobias Burnus <burnus@net-b.de>
5168
5169 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5170
5171 2011-05-13 Martin Jambor <mjambor@suse.cz>
5172
5173 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5174 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5175 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5176 (evaluate_conditions_for_ipcp_clone): Removed.
5177 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5178 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5179 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5180
5181 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5182
5183 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5184 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5185 lieu of MAY_HAVE_DEBUG_STMTS.
5186 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5187 debug statements if !MAY_HAVE_DEBUG_STMTS.
5188
5189 2011-05-13 Martin Thuresson <martint@google.com>
5190
5191 PR gcov-profile/47793
5192 * libgcov.c (gcov_exit): Support relative profile paths.
5193 * doc/invoke.texi (-fprofile-dir): Update for above change.
5194
5195 2011-05-13 Richard Guenther <rguenther@suse.de>
5196
5197 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5198 type-pair caching, do not compare hashes.
5199
5200 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5201
5202 PR middle-end/48965
5203 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5204 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5205
5206 2011-05-13 Kai Tietz <ktietz@redhat.com>
5207
5208 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5209 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5210 compatible type for TRUTH_NOT_EXPR.
5211
5212 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5213
5214 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5215 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5216 can_create_pseudo_p ().
5217
5218 2011-05-13 Richard Guenther <rguenther@suse.de>
5219
5220 PR lto/48978
5221 * gimple.c (iterative_hash_gimple_type): Revert change in
5222 pointer target and function result and argument hashing.
5223
5224 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5225
5226 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5227 (*movxf_internal_nointeger): Ditto.
5228 (*movdf_internal_rex64): Ditto.
5229 (*movdf_internal): Ditto.
5230 (*movdf_internal_nointeger): Ditto.
5231 (*movsf_internal): Ditto.
5232 (sincos splitters): Use can_create_pseudo ().
5233
5234 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5235
5236 * config/i386/i386-opts.h: New.
5237 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5238 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5239 ix86_section_threshold): Remove.
5240 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5241 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5242 OPT_mbranch_cost_.
5243 (ix86_option_override_internal): Don't decode strings for options
5244 other than -march=, -mtune= and -mfpmath=. Don't allow for
5245 __attribute__ uses in remaining diagnostics for options with
5246 string arguments. Don't check for integer arguments being negative.
5247 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5248 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5249 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5250 ix86_branch_cost, ix86_section_threshold): Remove.
5251 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5252 HeaderInclude.
5253 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5254 but not Var.
5255 (masm=): Use Enum and Init.
5256 (asm_dialect): New Enum and EnumValue entries.
5257 (mbranch-cost=): Use UInteger.
5258 (mlarge-data-threshold=): Use UInteger and Init.
5259 (mcmodel=): Use Enum and Init.
5260 (cmodel): New Enum and EnumValue entries.
5261 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5262 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5263 mregparm=): Use UInteger.
5264 (mstringop-strategy=): Use Enum and Init.
5265 (stringop_alg): New Enum and EnumValue entries.
5266 (mtls-dialect=): Use Enum and Init.
5267 (tls_dialect): New Enum and EnumValue entries.
5268 (mabi=): Use Enum and Init.
5269 (calling_abi): New Enum and EnumValue entries.
5270 (mveclibabi=): Use Enum and Init.
5271 (ix86_veclibabi): New Enum and EnumValue entries.
5272
5273 2011-05-13 Nick Clifton <nickc@redhat.com>
5274
5275 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5276 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5277
5278 2011-05-13 Kai Tietz <ktietz@redhat.com>
5279
5280 PR middle-end/48984
5281 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5282 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5283 (gimple_boolify): Check for cast for boolean_type_node instead for
5284 BOOLEAN_TYPE.
5285
5286 2011-05-13 Richard Guenther <rguenther@suse.de>
5287
5288 PR tree-optimization/48172
5289 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5290 multiplying by number of iterations for equal step.
5291 (vect_create_cond_for_alias_checks): Likewise.
5292
5293 2011-05-13 Andreas Schwab <schwab@redhat.com>
5294
5295 * configure.ac: Use AS_HELP_STRING throughout.
5296 * configure: Regenerate.
5297
5298 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5299
5300 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5301 (ix86_emit_restore_regs_using_mov): Likewise.
5302 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5303
5304 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5305
5306 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5307 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5308 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5309 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5310 RTX_OK_FOR_OLO10_P): ...here.
5311 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5312 SYMBOLIC_CONST.
5313
5314 2011-05-12 Kai Tietz <ktietz@redhat.com>
5315
5316 * gimplify.c (gimple_boolify): Re-boolify expression
5317 arguments even if expression type is of kind BOOLEAN_TYPE.
5318 (gimplify_boolean_expr): Removed.
5319 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5320 and XOR. Additional take care that we keep expression's type.
5321 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5322 of TRUTH_AND|OR|XOR_EXPR.
5323
5324 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5325
5326 PR tree-optimization/48975
5327 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5328 on all bbs here and free and clear ifc_bbs at the end.
5329
5330 2011-05-12 Richard Guenther <rguenther@suse.de>
5331
5332 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5333 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5334 until after simple checks.
5335 (gimple_types_compatible_p): Likewise.
5336 (iterative_hash_gimple_type): Always hash pointer targets
5337 and function return and argument types.
5338 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5339 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5340 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5341 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5342 completely in the simple compare section.
5343 (gimple_register_canonical_type): Query the cache again after
5344 registering.
5345
5346 2011-05-12 Richard Guenther <rguenther@suse.de>
5347
5348 PR tree-optimization/48172
5349 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5350 the number of iterations from the segment size calculation.
5351 (vect_create_cond_for_alias_checks): Adjust.
5352
5353 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5354
5355 PR debug/48967
5356 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5357 if validate_subreg fails.
5358
5359 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5360
5361 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5362 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5363 early.
5364
5365 2011-05-12 DJ Delorie <dj@redhat.com>
5366
5367 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5368 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5369 created builtin into rx_builtins array.
5370 (rx_builtin_decl): New function.
5371 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5372
5373 2011-05-12 DJ Delorie <dj@redhat.com>
5374 Nick Clifton <nickc@redhat.com>
5375
5376 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5377 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5378 (rx_is_legitimate_address): Add pre-decrement and post-increment
5379 addressing in HImode and QImode. Fix test for out of range
5380 REG+INT addressing.
5381 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5382 (rx_align_for_label): Test label before extracting its usage count.
5383 (rx_adjust_insn_lengths): Fix selection of insn codes.
5384 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5385
5386 2011-05-11 Jason Merrill <jason@redhat.com>
5387
5388 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5389
5390 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5391
5392 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5393 reindent the subsequent block.
5394
5395 2011-05-11 Satoru Takabayashi <satorux@google.com>
5396 Paul Pluzhnikov <ppluzhnikov@google.com>
5397
5398 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5399 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5400 * config.in: Add LINKER_HASH_STYLE.
5401 * configure.ac: Add --with-linker-hash-style.
5402 * configure: Regenerate.
5403
5404 2011-05-11 Richard Guenther <rguenther@suse.de>
5405
5406 PR middle-end/48964
5407 * gimple.c (iterative_hash_canonical_type): Fix typo.
5408
5409 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5410
5411 * config/i386/i386.c (legitimize_tls_address)
5412 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5413 expanders directly for TARGET_GNU2_TLS. Determine pic and
5414 __tls_get_addr symbol reference here. Update call to
5415 gen_tls_global_dynamic_{32,64} for added arguments.
5416 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5417 expanders directly for TARGET_GNU2_TLS. Determine
5418 __tls_get_addr symbol reference here. Update call to
5419 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5420 unique UNSPEC REG_EQUIV to libcall block.
5421 (ix86_tls_get_addr): Declare static.
5422 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5423 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5424 Do not determine pic and __tls_get_addr symbol reference here. Do not
5425 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5426 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5427 (tls_global_dynamic_64): Add operand 2. Do not determine
5428 __tls_get_addr symbol reference here. Do not call
5429 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5430 (tls_local_dynamic_base64): Ditto for operand 1.
5431
5432 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5433
5434 * function.c (expand_function_start): Initialize stack_check_probe_note
5435 only if the generic stack checking mechanism is used.
5436
5437 2011-05-11 Richard Guenther <rguenther@suse.de>
5438
5439 PR tree-optimization/15256
5440 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5441 (A & B) | C, combine (A op CST1) op CST2.
5442 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5443 visit assigns that have uses.
5444
5445 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5446
5447 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5448 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5449 (unpack_ts_type_common_value_fields): ...this. Update comment.
5450 (unpack_value_fields): Adjust for renaming.
5451 (lto_input_ts_type_tree_pointers): Split into...
5452 (lto_input_ts_type_common_tree_pointer): ...this and...
5453 (lto_input_ts_type_non_common_tree_pointers): ...this.
5454 (lto_input_tree_pointers): Adjust for above split.
5455 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5456 (pack_ts_type_common_value_fields): ...this. Update comment.
5457 (lto_output_ts_type_tree_pointers): Split into...
5458 (lto_output_ts_type_common_tree_pointers): ...this and...
5459 (lto_output_ts_type_non_common_tree_pointers): ...this.
5460 (lto_output_tree_pointers): Adjust for above split.
5461 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5462 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5463 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5464 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5465 Define.
5466 (struct tree_type): Split into...
5467 (struct tree_type_common: ...this and...
5468 (struct tree_type_with_lang_specific): ...this and...
5469 (struct tree_type_non_common): ...this. Adjust accessor macros
5470 accordingly.
5471 (TYPE_VALUES_RAW): Define.
5472 (union tree_node): Update for above changes.
5473 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5474 TS_TYPE_NON_COMMON.
5475 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5476 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5477 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5478 * treestructu.def (TS_TYPE): Remove.
5479 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5480 Define.
5481
5482 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5483
5484 PR debug/48159
5485 * tree-ssa.c (reset_debug_uses): New function.
5486 * tree-flow.h (reset_debug_uses): New prototype.
5487 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5488 * tree-loop-distribution.c (generate_loops_for_partition): Call
5489 reset_debug_uses on the stmts that will be removed. Keep around
5490 all debug stmts, don't count them as bits in partition bitmap.
5491 (generate_builtin): Don't count debug stmts or labels as bits in
5492 partition bitmap.
5493
5494 2011-05-11 Richard Guenther <rguenther@suse.de>
5495
5496 * gimple.c (gimple_type_hash_1): Merge with ...
5497 (gimple_type_hash): ... this.
5498 (gtc_visit): Remove mode parameter and simplify accordingly.
5499 (gimple_types_compatible_p_1): Likewise.
5500 (gimple_types_compatible_p): Likewise.
5501 (iterative_hash_gimple_type): Likewise.
5502 (visit): Likewise.
5503 (gimple_type_eq): Adjust.
5504
5505 2011-05-11 Revital Eres <revital.eres@linaro.org>
5506
5507 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5508 enters the branch create an anti edge in the opposite direction
5509 to prevent the creation of reg-moves.
5510 * modulo-sched.c: Adjust comment to reflect the fact we are
5511 scheduling closing branch.
5512 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5513 (stage_count): New field in struct partial_schedule.
5514 (calculate_stage_count): New function.
5515 (normalize_sched_times): Rename to reset_sched_times and handle
5516 incrementing the sched time of the nodes by a constant value
5517 passed as parameter.
5518 (duplicate_insns_of_cycles): Skip closing branch.
5519 (sms_schedule_by_order): Schedule closing branch.
5520 (ps_insn_find_column): Handle closing branch.
5521 (sms_schedule): Call reset_sched_times and adjust the code to
5522 support scheduling of the closing branch.
5523 (ps_insert_empty_row): Update calls to normalize_sched_times
5524 and rotate_partial_schedule functions.
5525
5526 2011-05-11 Richard Guenther <rguenther@suse.de>
5527
5528 PR middle-end/48953
5529 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5530
5531 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5532
5533 * opts.c (finish_options): Move warning settings from process_options.
5534 * toplev.c (process_options): Move warning settings to finish_options.
5535
5536 2011-05-11 Richard Guenther <rguenther@suse.de>
5537
5538 PR tree-optimization/18041
5539 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5540 (simplify_bitwise_binary): ... this. Handle operand conversions
5541 by applying them to the result instead.
5542 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5543
5544 2011-05-11 Richard Guenther <rguenther@suse.de>
5545
5546 * gimple.c (gimple_canonical_types_compatible_p): Split out
5547 from gimple_types_compatible_p and friends. Do not recurse
5548 to pointed-to types.
5549 (gimple_canonical_type_eq): Use it.
5550 (iterative_hash_canonical_type): Split out from
5551 iterative_hash_gimple_type and friends. Do not recurse
5552 to pointed-to types.
5553 (gimple_canonical_type_hash): Use it, allocate the hash here.
5554
5555 2011-05-11 Revital Eres <revital.eres@linaro.org>
5556
5557 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5558 recognizing doloop.
5559
5560 2011-05-11 Revital Eres <revital.eres@linaro.org>
5561
5562 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5563 instead of PREV_INSN.
5564
5565 2011-05-11 Revital Eres <revital.eres@linaro.org>
5566
5567 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5568 * loop-doloop.c (doloop_condition_get): Likewise.
5569 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5570 (doloop_end): New.
5571 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5572
5573 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5574
5575 * tree.def (CASE_LABEL_EXPR): Add an operand.
5576 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5577
5578 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5579
5580 * c-decl.c (c_override_global_bindings_to_false): Remove.
5581 (global_bindings_p): Don't check
5582 c_override_global_bindings_to_false.
5583 * c-tree.h (c_override_global_bindings_to_false): Remove.
5584 * c-typeck.c (composite_type): Don't set
5585 c_override_global_bindings_to_false.
5586
5587 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5588
5589 PR target/48857, 48495
5590 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5591 (VSX_MODE): Ditto.
5592 (VSX_MOVE_MODE): Ditto.
5593 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5594 VSX vector types. Add V2DImode.
5595 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5596 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5597 (MODES_TIEABLE_P): Ditto.
5598
5599 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5600 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5601 VSX_VECTOR_MODE.
5602 (init_cumulative_args): Ditto.
5603 (rs6000_function_arg_boundary): Ditto.
5604 (rs6000_function_arg_advance_1): Ditto.
5605 (rs6000_function_arg): Ditto.
5606 (rs6000_function_ok_for_sibcall): Ditto.
5607 (emit_frame_save): Ditto.
5608 (rs6000_function_value): Ditto.
5609 (rs6000_libcall_value): Ditto.
5610
5611 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5612
5613 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5614 i386/darwin-lib.h to $libgcc_tm_file.
5615 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5616
5617 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5618
5619 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5620
5621 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5622
5623 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5624 * config/rs6000/rs6000-tables.opt: New file (generated).
5625 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5626 rs6000/rs6000-tables.opt to extra_options.
5627 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5628 * config/rs6000/rs6000.c (rs6000_select): Remove.
5629 (processor_target_table): Move contents to rs6000-cpus.def.
5630 (darwin_rs6000_override_options): Check
5631 global_options_set.x_rs6000_cpu_index instead of
5632 rs6000_select[1].string.
5633 (rs6000_option_override_internal): Likewise.
5634 (rs6000_handle_option): Don't assert that global structures are in
5635 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5636 (rs6000_default_cpu): New variable.
5637 (rs6000_file_start): Set it instead of local default_cpu. Check
5638 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5639 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5640 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5641 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5642 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5643 rs6000_select): Remove.
5644 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5645 Remove.
5646 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5647 * config/rs6000/t-rs6000
5648 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5649 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5650 global_options_set.x_rs6000_cpu_index instead of
5651 rs6000_select[1].string.
5652 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5653 global_options_set.x_rs6000_cpu_index instead of
5654 rs6000_select[1].string.
5655
5656 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5657
5658 * config.gcc (libgcc_tm_file): Define instead of including files
5659 from ../../libgcc/config/ in tm_file.
5660 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5661 * configure: Regenerate.
5662 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5663 libgcc_tm.h, cs-libgcc_tm.h): New.
5664 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5665 (clean): Remove libgcc_tm.h.
5666 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5667 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5668 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5669
5670 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5671
5672 PR target/48896
5673 * config/avr/avr.c (avr_ret_register): Return unsigned int
5674 instead of int.
5675 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5676 it to avr_libcall_value.
5677 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5678 expand_expr.
5679 (avr_expand_binop_builtin): Ditto.
5680 (avr_expand_unop_builtin): Ditto.
5681
5682 2011-05-10 DJ Delorie <dj@redhat.com>
5683
5684 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5685 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5686 * config/rx/rx.c (rx_align_for_label): Add label and
5687 uses_threshold parameters. Do not align when the label is not
5688 used enough.
5689 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5690
5691 2011-05-10 Richard Guenther <rguenther@suse.de>
5692
5693 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5694 a series of conversions and apply foldings similar to what
5695 fold-const does.
5696 (tree_ssa_forward_propagate_single_use_vars): Call it.
5697
5698 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR tree-optimization/48611
5701 PR tree-optimization/48794
5702 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5703 referenced from RESX or EH_DISPATCH arguments.
5704
5705 PR debug/48928
5706 * dfp.c (decimal_to_decnumber): Handle conversion from
5707 dconst{1,2,m1,half}.
5708
5709 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5710
5711 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5712 for !flag_prefer_avx128.
5713 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5714
5715 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5716
5717 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5718 (fold_ternary_loc): Use expr_location_or.
5719
5720 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5721
5722 PR debug/48853
5723 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5724 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5725 Pmode and mem_mode is not VOIDmode.
5726
5727 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5728
5729 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5730 TYPE_QUAL_RESTRICT): Convert to enum.
5731
5732 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5733
5734 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5735 (const_pow2_1_to_8_operand): Ditto.
5736 (const_pow2_1_to_128_operand): Ditto.
5737 (const_pow2_1_to_32768_operand): Ditto.
5738 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5739 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5740 in insn constraint to check integer value of operand 3.
5741 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5742
5743 (PINSR_MODE): New mode iterator.
5744 (sse2p4_1): New mode attribute.
5745 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5746 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5747 iterator. Use const_int_operand instead of
5748 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5749 exact_log2 in insn constraint to check integer value of operand 3.
5750
5751 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5752
5753 * config/i386/sse.md (blendbits): Remove mode attribute.
5754 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5755 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5756 Check integer value of operand 3 in insn constraint.
5757
5758 2011-05-09 Richard Guenther <rguenther@suse.de>
5759
5760 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5761 for diagnostics.
5762 (lto_symtab_merge): Likewise. Do not register types here.
5763 (lto_symtab_merge_decls_2): Likewise.
5764 (lto_symtab_merge_decls_1): Likewise.
5765 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5766 * gimple.c (enum gtc_mode): Declare.
5767 (gimple_types_compatible_p): Make static.
5768
5769 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5770
5771 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5772 temporary register to match Pmode.
5773
5774 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5775
5776 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5777 and *vec_concatv4si_1_avx.
5778
5779 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5780
5781 PR rtl-optimization/48927
5782 * ira-conflicts.c (commutative_constraint_p): Use
5783 recog_data.alternative_enabled_p to disable alternatives where
5784 "enabled" attribute is false.
5785 (get_dup_num): Ditto.
5786 * ira-lives.c (single_reg_class): Ditto.
5787 (ira_implicitly_set_insn_hard_regs): Ditto.
5788
5789 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5790
5791 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5792 (dataflow_set_preserve_mem_locs): Likewise.
5793
5794 2011-05-09 Philipp Thomas <pth@suse.de>
5795
5796 * config/mep/mep.c (mep_validate_vliw): Syntax description
5797 should not be translated.
5798
5799 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5800
5801 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5802 * config/mips/mips-tables.opt: New file (generated).
5803 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5804 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5805 MIPS_ARCH_OPTION_NATIVE): Define.
5806 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5807 mips-cpus.def.
5808 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5809 mips_parse_cpu): Remove.
5810 (mips_cpu_info_from_opt, mips_default_arch): New.
5811 (mips_handle_option): Don't assert that global structures are in
5812 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5813 (mips_option_override): Use new variables and functions to set
5814 state of these options. Use strcmp to check for individual CPU names.
5815 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5816 definition.
5817 * config/mips/mips.opt (march=): Use ToLower and Enum.
5818 (mips): Use ToLower, Enum and Var.
5819 (mtune=): Use ToLower and Enum.
5820 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5821
5822 2011-05-08 Jan Hubicka <jh@suse.cz>
5823
5824 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5825 Arrange type pairs to be UID ordered.
5826 (gimple_lookup_type_leader): Make inline.
5827
5828 2011-05-09 Nick Clifton <nickc@redhat.com>
5829
5830 PR target/48899
5831 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5832 PROCESSOR_DEFAULT.
5833
5834 PR target/48897
5835 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5836 variable 's'.
5837
5838 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5839
5840 * combine.c (simplify_comparison): Abstract out parts into...
5841 (simplify_compare_const): ... new function.
5842 (try_combine): Generalize parallel arithmetic/compare combining
5843 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5844
5845 2011-05-08 Jan Hubicka <jh@suse.cz>
5846
5847 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5848 (cgraph_create_virtual_clone): Call hooks once virtual clone
5849 is finished.
5850 * cgraph.h (cgraph_clone_node): Update prototype.
5851 * ipa-cp.c (ipcp_estimate_growth): Use
5852 estimate_ipcp_clone_size_and_time.
5853 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5854 * lto-cgraph.c (input_node): Update.
5855 * ipa-inline.c (recursive_inlining): Update.
5856 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5857 (evaluate_conditions_for_known_args): Break out from ...
5858 (evaluate_conditions_for_edge): ... here.
5859 (evaluate_conditions_for_ipcp_clone): New function.
5860 (inline_node_duplication_hook): Update clone summary based
5861 on parameter map.
5862 (estimate_callee_size_and_time): Rename to ...
5863 (estimate_node_size_and_time): take NODE instead of EDGE;
5864 take POSSIBLE_TRUTHS as argument.
5865 (estimate_callee_size_and_time): Update.
5866 (estimate_ipcp_clone_size_and_time): New function.
5867 (do_estimate_edge_time): Update.
5868
5869 2011-05-08 Richard Guenther <rguenther@suse.de>
5870
5871 PR middle-end/48908
5872 PR middle-end/48905
5873 * expmed.c (expand_shift_1): Compute adjusted constant shift
5874 amount manually.
5875
5876 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5877
5878 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5879
5880 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5881
5882 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5883
5884 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5885
5886 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5887
5888 2011-05-07 Jan Hubicka <jh@suse.cz>
5889
5890 * ipa-inline-transform.c (inline_call): Account when program size
5891 decreases.
5892 * ipa-inline.c (relative_time_benefit): New function.
5893 (edge_badness): Reorganize to be power 2 based; fix thinko when
5894 computing badness for negative growth; update comments to match
5895 reality; better dumps.
5896
5897 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5898
5899 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5900 type to bool and adjust comment.
5901 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5902 (fold_mathfn_compare): Remove calls to global_bindings_p.
5903 (fold_inf_compare): Likewise.
5904 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5905 * c-tree.h (global_bindings_p): Adjust prototype.
5906 * c-decl.c (global_bindings_p): Return bool and simplify.
5907
5908 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5909
5910 PR tree-optimization/48837
5911 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5912 when accumulator transformation is performed.
5913
5914 2011-05-06 Jan Hubicka <jh@suse.cz>
5915
5916 * i386.h (ix86_tune_indices): Add
5917 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5918 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5919 * i386.c (initial_ix86_tune_features): Add
5920 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5921 (software_prefetching_beneficial_p): Remove predicate.
5922 (ix86_option_override_internal): Use new macro.
5923
5924 2011-05-06 Jan Hubicka <jh@suse.cz>
5925
5926 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5927
5928 2011-05-06 Jan Hubicka <jh@suse.cz>
5929
5930 * cgraph.c (cgraph_add_thunk): Create real function node instead
5931 of alias node; finalize it and mark needed/reachale; arrange visibility
5932 to be right and add it into the corresponding same comdat group list.
5933 (dump_cgraph_node): Dump thunks.
5934 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5935 cgraph_function_with_gimple_body_p,
5936 cgraph_first_function_with_gimple_body,
5937 cgraph_next_function_with_gimple_body): New functions.
5938 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5939 New macros.
5940 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5941 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5942 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5943 devirtualization when optimizing.
5944 (verify_cgraph_node): Verify thunks.
5945 (cgraph_analyze_function): Analyze thunks.
5946 (cgraph_mark_functions_to_output): Output thunks only in combination
5947 with function they are assigned to.
5948 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5949 alias into normal node.
5950 (assemble_thunks): New functoin.
5951 (cgraph_expand_function): Use it.
5952 * lto-cgraph.c (lto_output_node): Stream thunks.
5953 (input_overwrite_node): Stream in thunks.
5954 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5955 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5956 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5957 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5958 (inline_analyze_function): Do not care about thunk jump functions.
5959 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5960 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5961 cgraph_function_with_gimple_body_p.
5962 * passes.c (do_per_function_toporder): Use
5963 cgraph_function_with_gimple_body_p.
5964 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5965 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5966 (function_called_by_processed_nodes_p): Likewise.
5967
5968 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5969
5970 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5971 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5972 entries.
5973 (mabi=): Replace with separate entries for mabi=altivec,
5974 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5975 mabi=ieeelongdouble and mabi=ibmlongdouble.
5976 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5977 check for -mabi=spe without SPE ABI support here.
5978 (rs6000_handle_option): Replace OPT_mabi_ handling with
5979 OPT_mabi_altivec and OPT_mabi_spe handling.
5980
5981 2011-05-06 Cary Coutant <ccoutant@google.com>
5982
5983 * dwarf2out.c (contains_subprogram_definition): New function.
5984 (should_move_die_to_comdat): Call it.
5985
5986 2011-05-06 Jeff Law <law@redhat.com>
5987
5988 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5989 remove_ctrl_stmt_and_useless_edges.
5990 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5991 (fixup_template_block, thread_single_edge): Likewise.
5992 (mark_threaded_blocks): Use THREAD_TARGET.
5993
5994 2011-05-06 Alan Modra <amodra@gmail.com>
5995
5996 PR target/48900
5997 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5998 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5999
6000 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6001
6002 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6003 constraint modifier to "r".
6004
6005 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6006
6007 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6008 fall through for OPT_mcmodel_.
6009
6010 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6011
6012 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6013 instruction sizes.
6014 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6015
6016 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6017
6018 PR target/47930
6019 * config/arm/arm.opt (marm): Document it.
6020 (mthumb): Reject negative variant.
6021
6022 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6023
6024 PR target/48898
6025 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6026 Fix typo in "ccvt" variable name.
6027
6028 2011-05-06 Tristan Gingold <gingold@adacore.com>
6029
6030 PR target/48895
6031 * config/vms/vms-ar.c (main): Remove cwd variable.
6032
6033 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6034
6035 PR debug/48902
6036 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6037
6038 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6039
6040 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6041 * gimplify.c (gimplify_switch_expr): Likewise.
6042 * omp-low.c (expand_omp_sections): Likewise.
6043 * tree-eh.c (lower_try_finally_switch): Likewise.
6044 (lower_eh_dispatch): Likewise.
6045 * tree.h (build_case_label): Declare.
6046 * tree.c (build_case_label): Define.
6047
6048 2011-05-05 Jason Merrill <jason@redhat.com>
6049
6050 PR c++/40975
6051 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6052 (copy_statement_list): Don't recurse.
6053 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6054 STATEMENT_LIST.
6055
6056 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6057
6058 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6059 through from -mfpu= handling.
6060 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6061
6062 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6063
6064 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6065 POST_MODIFY.
6066
6067 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6068
6069 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6070 for 11.31.
6071 (hppa[12]*-*-hpux11*): Ditto.
6072 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6073 * config/ia64/hpux-unix2003.h: New.
6074 * config/pa/pa-hpux1131.opt: New.
6075 * config/pa/pa-hpux1131.h: New.
6076 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6077 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6078 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6079
6080 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR debug/48853
6083 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6084 instead of mode as 3rd argument to recursive call.
6085 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6086 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6087 VOIDmode.
6088 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6089 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6090 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6091 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6092
6093 2011-05-05 Julian Brown <julian@codesourcery.com>
6094
6095 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6096 parenthesis in D-register case.
6097
6098 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6099
6100 * opt-functions.awk (var_type_struct): Handle Enum options.
6101 * optc-gen.awk: Don't check range of variables of character type.
6102 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6103 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6104 rs6000_sdata_name, rs6000_explicit_options): Remove.
6105 (rs6000_option_override_internal): Check for -malign-power here.
6106 Use global_options_set instead of rs6000_explicit_options.
6107 (rs6000_parse_fpu_option): Remove.
6108 (rs6000_handle_option): Access variables via opts and opts_set
6109 pointers. Use error_at and warning_at. Add fall-through
6110 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6111 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6112 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6113 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6114 here. Don't use rs6000_parse_fpu_option.
6115 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6116 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6117 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6118 (mrecip=): Use Var.
6119 (mspe): Use Var and Save.
6120 (mtraceback=): Use Enum and Var.
6121 (rs6000_traceback_type): New Enum and EnumValue entries.
6122 (mfloat-gprs=): Use Enum, Var and Save.
6123 (rs6000_float_gprs): New Enum and EnumValue entries.
6124 (mlong-double-): use Var and Save.
6125 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6126 (malign-): Use Enum and Var.
6127 (rs6000_alignment_flags): New Enum and EnumValue entries.
6128 (mfpu=): Use Enum.
6129 (fpu_type_t): New Enum and EnumValue entries.
6130 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6131 global_options_set instead of rs6000_explicit_options.
6132 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6133 global_options_set instead of rs6000_explicit_options.
6134 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6135 global_options_set instead of rs6000_explicit_options.
6136 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6137 global_options_set instead of rs6000_explicit_options.
6138 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6139 global_options_set instead of rs6000_explicit_options.
6140 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6141 global_options_set instead of rs6000_explicit_options.
6142 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6143 definition.
6144 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6145 global_options_set instead of rs6000_explicit_options.
6146 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6147 (rs6000_cmodel): New Enum and EnumValue entries.
6148 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6149 global_options_set instead of rs6000_explicit_options.
6150 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6151 (mtls-size=): Use Enum and Var.
6152 (rs6000_tls_size): New Enum and EnumValue entries.
6153
6154 2011-05-05 Michael Matz <matz@suse.de>
6155
6156 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6157 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6158 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6159 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6160 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6161 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6162 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6163 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6164 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6165 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6166 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6167 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6168 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6169 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6170 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6171 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6172
6173 2011-05-05 Richard Guenther <rguenther@suse.de>
6174
6175 * expmed.c (expand_variable_shift): Rename to ...
6176 (expand_shift_1): ... this. Take an expanded shift amount.
6177 For rotates recurse directly not building trees for the shift amount.
6178 (expand_variable_shift): Wrap around expand_shift_1.
6179 (expand_shift): Adjust.
6180
6181 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6182
6183 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6184
6185 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6186
6187 * tree.h (get_pending_sizes): Remove prototype.
6188 (put_pending_size): Likewise.
6189 (put_pending_sizes): Likewise.
6190 * stor-layout.c (pending_sizes): Delete.
6191 (get_pending_sizes): Likewise.
6192 (put_pending_size): Likewise.
6193 (put_pending_sizes): Likewise.
6194 (variable_size): Do not call put_pending_size and tidy up.
6195 * function.h (struct function): Remove dont_save_pending_sizes_p.
6196 * lto-streamer-in.c (input_function): Do not stream it.
6197 * lto-streamer-out.c (output_function): Likewise.
6198 * tree-inline.c (initialize_cfun): Do not copy it.
6199 * c-decl.c (store_parm_decls): Do not set it.
6200 * omp-low.c (create_task_copyfn): Likewise.
6201 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6202
6203 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6204
6205 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6206 conditions.
6207 (*movdf_internal): Ditto.
6208 (*movdf_internal_nointeger): Ditto.
6209 (*movsf_internal): Ditto.
6210
6211 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6212
6213 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6214 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6215 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6216 (c_variable_size): Remove.
6217 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6218 call put_pending_sizes.
6219 (get_parm_info): Add parameter expr. Use it to set
6220 arg_info->pending_sizes.
6221 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6222 get_pending_sizes.
6223 * c-parser.c (c_parser_parms_declarator): Update call to
6224 c_parser_parms_list_declarator.
6225 (c_parser_parms_list_declarator): Take parameter expr. Update
6226 call to push_parm_decl. Update recursive call. Don't call
6227 get_pending_sizes. Update calls to get_parm_info.
6228 (c_parser_objc_method_definition): Update calls to
6229 c_parser_objc_method_decl and objc_start_method_definition.
6230 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6231 (c_parser_objc_method_decl): Add parameter expr. Update call to
6232 grokparm.
6233 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6234 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6235 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6236
6237 2011-05-05 Michael Hope <michael.hope@linaro.org>
6238
6239 PR pch/45979
6240 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6241 __ARM_EABI__ hosts.
6242
6243 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6244
6245 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6246 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6247 (spu_output_mi_thunk): New function.
6248
6249 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6250
6251 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6252 targetm.asm_out.print_operand.
6253 * config/sol2.c: Include target.h.
6254
6255 2011-05-04 Jan Hubicka <jh@suse.cz>
6256
6257 * ipa-inline.c (reset_edge_caches): New function.
6258 (update_caller_keys): Add check_inlinablity_for; do not
6259 reset edge caches; remove now unnecesary loop.
6260 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6261 (update_all_callee_keys): Likewise.
6262 (inline_small_functions): Sanity check cache; update code
6263 recomputing it.
6264
6265 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6266
6267 PR rtl-optimization/47612
6268 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6269 as the last insn of the sequence to be moved.
6270
6271 2011-05-04 Tobias Burnus <burnus@net-b.de>
6272
6273 PR fortran/48864
6274 * doc/invoke.texi (Ofast): Document that it
6275 enables Fortran's -fno-protect-parens.
6276
6277 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6278
6279 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6280
6281 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6282
6283 * stor-layout.c (variable_size): Do not issue errors.
6284
6285 2011-05-04 Richard Guenther <rguenther@suse.de>
6286
6287 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6288 for array-ref indices.
6289 (tree_coverage_counter_addr): Likewise.
6290 (build_fn_info_type): Use size_int for index types.
6291 (build_gcov_info): Likewise.
6292
6293 2011-05-04 Richard Guenther <rguenther@suse.de>
6294
6295 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6296 to build_int_cst.
6297 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6298 for constructor indices.
6299 (push_init_level): Likewise.
6300
6301 2011-05-04 Richard Guenther <rguenther@suse.de>
6302
6303 * explow.c (promote_mode): Move variable declarations before code.
6304
6305 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6306
6307 * tree.h (build_function_type_array): Declare.
6308 (build_varargs_function_type_array): Declare.
6309 (build_function_type_vec, build_varargs_function_type_vec): Define.
6310 * tree.c (build_function_type_array_1): New function.
6311 (build_function_type_array): New function.
6312 (build_varargs_function_type_array): New function.
6313
6314 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6315
6316 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6317 before setting STMT_VINFO_TYPE.
6318
6319 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6320
6321 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6322 instead of spu_pass_by_reference.
6323
6324 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6325
6326 * calls.c (emit_library_call_value_1): Invoke
6327 promote_function_mode hook on libcall arguments.
6328 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6329 argument being NULL.
6330 * targhooks.c (default_promote_function_mode): Lisewise.
6331 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6332 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6333
6334 * doc/tm.texi: Document that TYPE argument might be NULL.
6335
6336 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6337
6338 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6339
6340 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6341
6342 From Bernd Schmidt
6343 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6344
6345 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6346
6347 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6348 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6349 Move ...
6350 * mips-tfile.c: ... here.
6351 Don't include coretypes.h, tm.h, filenames.h.
6352 (saber_stop): Remove definition and all calls.
6353 [__SABER__]: Remove.
6354 (__LINE__): Remove default.
6355 (Size_t, Ptrdiff_t): Remove definitions.
6356 Replace by size_t, ptrdiff_t.
6357 [!MIPS_DEBUGGING_INFO]: Remove.
6358 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6359 (progname): Add const.
6360 (STATIC): Remove.
6361 Replace all uses by static.
6362 (ALIGN_SYMTABLE_OFFSET): Remove default.
6363 * mips-tdump.c: Don't include coretypes.h, tm.h.
6364 Remove !MIPS_IS_STAB guard.
6365 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6366 $(TM_H), filenames.h dependencies.
6367 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6368
6369 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6370
6371 From Jie Zhang
6372 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6373 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6374
6375 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6376
6377 From Bernd Schmidt
6378 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6379 account and save/restore RETS.
6380 (PROFILE_BEFORE_PROLOGUE): Define.
6381 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6382 the push insn to use predecrement.
6383
6384 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6385
6386 From Jie Zhang
6387 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6388
6389 2011-05-04 Nick Clifton <nickc@redhat.com>
6390
6391 * config/mn10300/mn10300.c: Include cfgloop.h.
6392 (DUMP): New macro.
6393 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6394 Lcc or a FLcc insn into the instruction stream.
6395 (mn10300_block_contains_call): New function. Returns true if the
6396 given basic block contains a CALL insn.
6397 (mn10300_loop_contains_call_insn): New function. Returns true if
6398 the given loop contains a CALL insn.
6399 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6400 to use the SETLB and Lcc or FLcc insns.
6401 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6402 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6403 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6404 disable the SETLB optimization.
6405 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6406 __SETLB__ or __NO_SETLB__.
6407 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6408 (movsf_internal): Handle MDR register.
6409 (cmpsi): Make visible.
6410 (setlb): New pattern.
6411 (Lcc): New pattern.
6412 (FLcc): New pattern.
6413
6414 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6415
6416 PR target/48860
6417 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6418 for reg<->xmm moves.
6419 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6420 (vec_concatv2di_rex64_sse): Ditto.
6421 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6422 (*vec_extractv2di_1_rex64): Ditto.
6423
6424 Revert:
6425 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6426
6427 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6428 reg<->xmm moves.
6429 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6430
6431 2011-05-04 Richard Guenther <rguenther@suse.de>
6432
6433 * tree.h (int_const_binop): Remove notrunc argument.
6434 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6435 create integer constants that are properly truncated.
6436 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6437 (const_binop): Remove zero notrunc argument to int_const_binop.
6438 (size_binop_loc): Likewise.
6439 (fold_div_compare): Likewise.
6440 (maybe_canonicalize_comparison_1): Likewise.
6441 (fold_comparison): Likewise.
6442 (fold_binary_loc): Likewise.
6443 (multiple_of_p): Likewise.
6444 * expr.c (store_constructor): Likewise.
6445 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6446 (maybe_fold_stmt_addition): Likewise.
6447 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6448 * stor-layout.c (layout_type): Likewise.
6449 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6450 * tree-sra.c (build_ref_for_offset): Likewise.
6451 (build_user_friendly_ref_for_offset): Likewise.
6452 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6453 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6454 * tree-ssa-loop-niter.c (inverse): Likewise.
6455 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6456 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6457 * tree-switch-conversion.c (check_range): Likewise.
6458 (build_constructors): Likewise.
6459 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6460 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6461 (extract_range_from_assert): Likewise.
6462 (vrp_int_const_binop): Likewise.
6463 (extract_range_from_binary_expr): Likewise.
6464 (extract_range_from_unary_expr): Likewise.
6465 (check_array_ref): Likewise.
6466 (find_case_label_range): Likewise.
6467 (simplify_div_or_mod_using_ranges): Likewise.
6468 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6469 comparing case labels for merging.
6470
6471 2011-05-03 Mark Wielaard <mjw@redhat.com>
6472
6473 * dwarf2out.c (debug_str_hash_forced): Removed.
6474 (gen_label_for_indirect_string): Removed.
6475 (get_debug_string_label): Removed.
6476 (AT_string_form): Generate label directly.
6477 (output_indirect_string): Test indirect_string_node for
6478 DW_FORM_strp instead of checking label and refcount.
6479 (prune_indirect_string): Removed.
6480 (prune_unused_types): Don't check debug_str_hash_forced or
6481 call prune_indirect_string.
6482
6483 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6484
6485 PR other/48093
6486 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6487
6488 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6489
6490 PR debug/47994
6491 PR debug/47919
6492 * combine.c (try_combine): Skip debug insns at m_split tests.
6493
6494 2011-04-26 Mark Wielaard <mjw@redhat.com>
6495
6496 PR42288
6497 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6498 when info_section_emitted.
6499
6500 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6501
6502 * config/mips/mips-opts.h: New.
6503 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6504 to mips-opts.h.
6505 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6506 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6507 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6508 via opts pointer.
6509 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6510 mips-opts.h.
6511 (mips_abi, mips_code_readable): Don't declare.
6512 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6513 (mabi=): Use Enum and Var.
6514 (mips_abi): New Enum and EnumValue entries.
6515 (mcode-readable=): Use Enum and Var.
6516 (mips_code_readable_setting): New Enum and EnumValue entries.
6517 (mr10k-cache-barrier=): Use Enum and Var.
6518 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6519
6520 2011-05-03 Jan Hubicka <jh@suse.cz>
6521
6522 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6523 replace hash by pointer map.
6524 (cgraph_node_set_element_def, cgraph_node_set_element,
6525 const_cgraph_node_set_element, varpool_node_set_element_def,
6526 varpool_node_set_element, const_varpool_node_set_element): Remove.
6527 (free_cgraph_node_set, free_varpool_node_set): New function.
6528 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6529 * tree-emutls.c: Free varpool node set.
6530 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6531 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6532 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6533 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6534 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6535 Move here from ipa.c; implement using pointer_map
6536 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6537 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6538 debug_cgraph_node_set, varpool_node_set_new,
6539 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6540 dump_varpool_node_set, debug_varpool_node_set):
6541 Move to ipa-uitls.c.
6542 * passes.c (ipa_write_summaries): Update.
6543
6544 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6545
6546 From Mike Frysinger:
6547 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6548 bf542/bf544/bf547/bf548/bf549.
6549
6550 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6551
6552 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6553
6554 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6555
6556 From Bernd Schmidt:
6557 * config/bfin/bfin.md (MOVCC): New mode_macro.
6558 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6559 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6560 comments from generated assembly.
6561
6562 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6563
6564 From Bernd Schmidt
6565 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6566 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6567 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6568 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6569 * config/bfin/lib1funcs.asm (___muldi3): New function.
6570
6571 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6572
6573 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6574 build_function_type_list instead of build_function_type.
6575 Rearrange initialization of `args' to do so.
6576
6577 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6578
6579 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6580 instead of build_function_type.
6581
6582 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6583
6584 * config/rs6000/rs6000.c (spe_init_builtins): Call
6585 build_function_type_list instead of build_function_type.
6586 (paired_init_builtins, altivec_init_builtins): Likewise.
6587 (builtin_function_type): Likewise.
6588
6589 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6590
6591 * config/sh/sh.c (sh_media_init_builtins): Call
6592 build_function_type_list instead of build_function_type.
6593
6594 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6595
6596 * config/sparc/sparc.c (sparc_file_end): Call
6597 build_function_type_list instead of build_function_type.
6598
6599 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6600
6601 * config/alpha/alpha.c (alpha_init_builtins): Call
6602 build_function_type_list instead of build_function_type.
6603
6604 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6605
6606 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6607 build_function_type_list instead of build_function_type.
6608
6609 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6610
6611 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6612 build_function_type_list instead of build_function_type.
6613 Delete `endlink' variable.
6614
6615 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6616
6617 * config/avr/avr.c (avr_init_builtins): Call
6618 build_function_type_list instead of build_function_type.
6619
6620 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6621
6622 * config/picochip/picochip.c (picochip_init_builtins): Call
6623 build_function_type_list instead of build_function_type.
6624 Delete `endlink' variable.
6625
6626 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6627
6628 * config/bfin/bfin.c (bfin_init_builtins): Call
6629 build_function_type_list instead of build_function_type.
6630
6631 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6632
6633 From Bernd Schmidt
6634 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6635 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6636
6637 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6638
6639 From Jie Zhang:
6640 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6641 libbffastfp overrides libgcc when -mfast-fp.
6642
6643 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6644
6645 Originally from Bernd Schmidt
6646 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6647 * config/bfin/bfin.c (override_options): Test it and error if
6648 TARGET_FDPIC.
6649
6650 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6651
6652 Originally From Bernd Schmidt
6653 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6654 FD-PIC.
6655
6656 2011-05-03 Jeff Law <law@redhat.com>
6657
6658 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6659 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6660 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6661 than accessing AUX field directly. Free the AUX field before
6662 clearing it.
6663 (thread_block, thread_through_loop_header): Likewise.
6664 (thread_single_edge, mark_threaded_blocks): Likewise.
6665 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6666 (register_jump_thread): Do not attempt to thread to a NULL edge.
6667
6668 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6669
6670 * function.c (init_function_start): Call decide_function_section.
6671 * varasm.c (decide_function_section): New function.
6672 (assemble_start_function): When not using
6673 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6674 or first_function_block_is_cold.
6675 * rtl.h (decide_function_section): Declare.
6676
6677 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6678 Jakub Jelinek <jakub@redhat.com>
6679
6680 PR target/48774
6681 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6682 only succeed if req_mode is the same as set_mode.
6683
6684 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6685
6686 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6687 * genemit.c (gen_exp): Handle RETURN.
6688 * emit-rtl.c (verify_rtx_sharing): Likewise.
6689 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6690 * rtl.c (copy_rtx): RETURN is shared.
6691 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6692 (ret_rtx): New.
6693 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6694 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6695 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6696 * config/cris/cris.c (cris_expand_return): Likewise.
6697 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6698 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6699 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6700 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6701 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6702 Likewise.
6703 * config/v850/v850.c (expand_epilogue): Likewise.
6704 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6705 * config/arm/arm.md (epilogue): Likewise.
6706 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6707 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6708 variable to ret_reg.
6709
6710 2011-05-03 Richard Guenther <rguenther@suse.de>
6711
6712 PR lto/48846
6713 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6714 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6715 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6716
6717 2011-05-03 Richard Guenther <rguenther@suse.de>
6718
6719 * c-decl.c (grokdeclarator): Instead of looking at
6720 TREE_OVERFLOW check if the constant fits in the index type.
6721
6722 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6723
6724 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6725 (vec_store_lanes<mode><mode>): Likewise.
6726
6727 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6728
6729 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6730 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6731 convert_optab_index values.
6732 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6733 * genopinit.c (optabs): Initialize the new optabs.
6734 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6735 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6736 (expand_STORE_LANES): New functions.
6737 * tree.h (build_array_type_nelts): Declare.
6738 * tree.c (build_array_type_nelts): New function.
6739 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6740 (vect_model_load_cost): Likewise.
6741 (vect_store_lanes_supported, vect_load_lanes_supported)
6742 (vect_record_strided_load_vectors): Declare.
6743 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6744 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6745 (vect_transform_strided_load): Split out statement recording into...
6746 (vect_record_strided_load_vectors): ...this new function.
6747 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6748 (write_vector_array, create_array_ref): New functions.
6749 (vect_model_store_cost): Add store_lanes_p argument.
6750 (vect_model_load_cost): Add load_lanes_p argument.
6751 (vectorizable_store): Try to use store-lanes functions for
6752 interleaved stores.
6753 (vectorizable_load): Likewise load-lanes and loads.
6754 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6755 to vect_model_store_cost.
6756 (vect_build_slp_tree): Likewise vect_model_load_cost.
6757
6758 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6759
6760 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6761 * hooks.c (hook_bool_mode_uhwi_false): New function.
6762 * target.def (array_mode_supported_p): New hook.
6763 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6764 * doc/tm.texi: Regenerate.
6765 * stor-layout.c (mode_for_array): New function.
6766 (layout_type): Use it.
6767 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6768 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6769
6770 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6771
6772 PR target/48723
6773 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6774 for -fstack-check if the size to allocate is negative.
6775
6776 2011-05-02 Lawrence Crowl <crowl@google.com>
6777
6778 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6779 (timevar_cond_start): New for starting a timer only when it is not
6780 already running.
6781 (timevar_cond_stop): New for stopping a timer when it was not already
6782 running.
6783
6784 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6785 (timevar_cond_start): New as above.
6786 (timevar_cond_stop): New as above.
6787
6788 * timevar.def: Add start/stop timers for compiler phases,
6789 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6790 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6791 and TV_PHASE_FINALIZE.
6792 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6793 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6794 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6795 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6796 Make unused TV_OVERLOAD into a start/stop timer.
6797
6798 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6799 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6800 to indicate that they are start/stop timers.
6801
6802 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6803 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6804 Move initialization to do_compile.
6805 (do_compile): Add initialization from above.
6806 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6807
6808 * c-decl.c (c_write_global_declarations): Add start/stop of
6809 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6810
6811 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6812 or TV_PARSE_INLINE, as appropriate.
6813 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6814 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6815
6816 2011-05-02 Jason Merrill <jason@redhat.com>
6817
6818 PR c++/40975
6819 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6820
6821 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6822
6823 PR c/35445
6824 * c-decl.c (finish_decl): Only create a composite if the types are
6825 compatible.
6826
6827 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6828
6829 * config/fr30/fr30-protos.h (Mmode): Don't define.
6830 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6831 definition where used.
6832 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6833 define. Expand definitions where used.
6834 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6835 Expand definitions where used.
6836 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6837 rx_function_arg, rx_function_arg_advance,
6838 rx_function_arg_boundary): Expand definitions of those macros.
6839 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6840 definition where used.
6841
6842 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6843
6844 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6845 reg<->xmm moves.
6846 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6847 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6848 with *movv2sf_internal_rex64_avx.
6849 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6850 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6851 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6852 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6853 "vex" in "prefix" attribute calculation.
6854 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6855
6856 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6857
6858 PR target/47951
6859 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6860 inputs match the output.
6861
6862 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6863
6864 PR target/47955
6865 * config/m68k/m68k.c (m68k_expand_prologue): Set
6866 current_function_static_stack_size.
6867
6868 2011-05-02 Jan Hubicka <jh@suse.cz>
6869
6870 * lto-streamer.c (lto_streamer_cache_insert_1,
6871 lto_streamer_cache_lookup, lto_streamer_cache_create,
6872 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6873 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6874
6875 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6876
6877 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6878 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6879 config/m68k/t-opts: New files.
6880 * config/m68k/m68k-tables.opt: New file (generated).
6881 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6882 extra_options and m68k/t-opts to tmake_file.
6883 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6884 (all_isas): Initialize using m68k-isas.def.
6885 (all_microarchs): Initialize using m68k-microarchs.def.
6886 (m68k_find_selection): Remove.
6887 (m68k_handle_option): Don't assert that global structures are in
6888 use. Use error_at. Access variables via opts pointer. Don't
6889 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6890 directly for -m68020-40 and -m68020-60.
6891 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6892 m68k_tune_entry here.
6893 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6894 to m68k-opts.h.
6895 (m68k_library_id_string): Remove declaration.
6896 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6897 (m68k_library_id_string): New Variable.
6898 (march=, mcpu=, mtune=): Use Enum and Var.
6899
6900 2011-05-02 Richard Guenther <rguenther@suse.de>
6901
6902 * varasm.c (output_constructor_regular_field): Compute zero-based
6903 index with double-ints. Make sure to ICE instead of producing
6904 wrong code.
6905 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6906 in asserts. Properly use a signed type.
6907
6908 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6909
6910 * config/i386/sse.md (V): New mode iterator.
6911 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6912 TARGET_SSE2.
6913 (V_256): Rename from AVX256MODE.
6914 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6915 condition to all users.
6916 (VF1): Ditto.
6917 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6918 condition to all users.
6919 (VF_128): Make V4SF mode unconditional.
6920 (VF_256): Rename from AVX256MODEF2P.
6921 (VI4F_128): Rename from SSEMODE4S.
6922 (VI8F_128): Rename from SSEMODE2D.
6923 (VI4F_256): Rename from AVX256MODE8P.
6924 (VI8F_256): Rename from AVX256MODE4P.
6925 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6926 (ssescalarmodesuffix): Remove SF and DF modes.
6927 (SSEMODE124): Remove.
6928 (SSEMODE1248): Ditto.
6929 (SSEMODEF2P): Ditto.
6930 (AVXMODEF2P): Ditto.
6931 (AVXMODEFDP): Ditto.
6932 (AVXMODEFSP): Ditto.
6933 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6934 unconditional.
6935 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6936 unconditional.
6937 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6938 xop_pcmov_<mode>256. Use V mode iterator.
6939
6940 Adjust RTX patterns globally for renamed mode attributes.
6941
6942 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6943
6944 * haifa-sched.c (sched_emit_insn): Emit insn before first
6945 non-scheduled insn. Inform back-end about new insn. Add
6946 new insn to scheduled_insns list.
6947
6948 2011-05-02 Richard Guenther <rguenther@suse.de>
6949
6950 PR tree-optimization/48822
6951 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6952 (process_scc): Indicate which iteration we start.
6953
6954 2011-05-02 Jan Hubicka <jh@suse.cz>
6955
6956 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6957 (lto_section_overrun): New.
6958 * lto-section-out.c (append_block): Rename to ...
6959 (lto_append_block): ... this one; export.
6960 (lto_output_1_stream): Move lto lto-streamer.h
6961 (lto_output_data_stream): Update.
6962 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6963 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6964 functions.
6965
6966 2011-05-02 Richard Guenther <rguenther@suse.de>
6967
6968 * tree.c (tree_code_counts): New global array.
6969 (record_node_allocation_statistics): Count individual tree codes.
6970 (dump_tree_statistics): Dump individual code stats.
6971
6972 2011-05-01 Jan Hubicka <jh@suse.cz>
6973
6974 * ipa-inline.c (caller_growth_limits): Fix thinko when
6975 looking for largest stack frame.
6976 * ipa-inline.h (dump_inline_summary): Declare.
6977 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6978 on stack usage.
6979 (dump_inline_summary): Export.
6980 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6981
6982 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6983
6984 * reginfo.c (memory_move_cost): Change rclass argument type form
6985 'enum reg_class' to reg_class_t.
6986 * reload.h (memory_move_cost): Update prototype.
6987 * postreload.c reload_cse_simplify_set): Change type dclass var to
6988 reg_class_t.
6989 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6990 Update prototype.
6991 (ira_allocate_and_set_costs): Change aclass argument type form
6992 'enum reg_class' to reg_class_t.
6993 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6994 Change aclass argument type to reg_class_t.
6995 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6996 to reg_class_t.
6997 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6998 memory_move_cost call.
6999
7000 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7001 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7002 Change type tmp var to reg_class_t.
7003
7004 2011-04-30 Jan Hubicka <jh@suse.cz>
7005
7006 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7007 inlining into function with flatten attribute.
7008 (want_inline_small_function_p): Be more realistic about inlining
7009 cold calls where callee size grows.
7010
7011 2011-04-30 Jan Hubicka <jh@suse.cz>
7012
7013 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7014 flags.
7015
7016 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7017
7018 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7019 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7020 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7021 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7022 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7023 (print_operand): Rename to...
7024 (sparc_print_operand): ...this. Make static. Adjust
7025 sparc_print_operand function call.
7026 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7027 functions.
7028
7029 2011-04-30 Jan Hubicka <jh@suse.cz>
7030
7031 PR middle-end/48752
7032 * ipa-inline.c (early_inliner): Disable when doing late
7033 addition of function.
7034
7035 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7036
7037 * dwarf2out.c (get_address_mode): New inline.
7038 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7039 if not dwarf_strict emit
7040 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7041 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7042 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7043 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7044 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7045 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7046 mem_loc_descriptor callers.
7047 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7048 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7049 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7050 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7051 (base_types): New variable.
7052 (get_base_type_offset, calc_base_type_die_sizes,
7053 base_type_for_mode, mark_base_types, base_type_cmp,
7054 move_marked_base_types): New functions.
7055 (calc_die_sizes): Assert that die_offset is 0 or equal to
7056 next_die_offset.
7057 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7058 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7059 callers. If not dwarf_strict, call mem_loc_descriptor even for
7060 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7061 (gen_subprogram_die): Don't give up on call site parameters
7062 with non-integral or large integral modes. Adjust
7063 mem_loc_descriptor callers.
7064 (prune_unused_types): Call prune_unused_types_mark on base_types
7065 vector entries.
7066 (resolve_addr): Call mark_base_types.
7067 (dwarf2out_finish): Call move_marked_base_types.
7068
7069 PR tree-optimization/48809
7070 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7071 type.
7072 (gen_inbound_check): Don't compute index_expr - range_min in utype
7073 again, instead reuse SSA_NAME initialized in build_arrays.
7074 Remove two useless gsi_for_stmt calls.
7075
7076 2011-04-29 Jeff Law <law@redhat.com>
7077
7078 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7079
7080 2011-04-29 Martin Jambor <mjambor@suse.cz>
7081
7082 * cgraph.h (cgraph_postorder): Remove declaration.
7083 * ipa-utils.h (ipa_free_postorder_info): Declare.
7084 (ipa_reverse_postorder): Likewise.
7085 * cgraphunit.c: Include ipa-utils.h.
7086 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7087 * ipa-inline.c: Include ipa-utils.h.
7088 (ipa_inline): Update call to ipa_reverse_postorder.
7089 * ipa-pure-const.c (propagate_pure_const): Update call to
7090 ipa_reduced_postorder and ipa_print_order. Call
7091 ipa_free_postorder_info to clean up.
7092 (propagate_nothrow): Likewise.
7093 * ipa-reference.c (propagate): Removed a useless call to
7094 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7095 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7096 * ipa.c: Include ipa-utils.h.
7097 (ipa_profile): Update call to ipa_reverse_postorder.
7098 (cgraph_postorder): Moved to...
7099 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7100 (ipa_utils_print_order): Renamed to ipa_print_order.
7101 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7102 comments.
7103 (ipa_free_postorder_info): New function.
7104 * passes.c: Include ipa-utils.h.
7105 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7106 (ipa_write_summaries): Likewise.
7107 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7108 (cgraphunit.o): Likewise.
7109 (ipa.o): Likewise.
7110 (ipa-inline.o): Likewise.
7111
7112 2011-04-29 Jan Hubicka <jh@suse.cz>
7113
7114 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7115 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7116 * ipa-inline.h (clause_t): Turn into unsigned int.
7117 * ipa-inline-analysis.c (add_clause): Do more simplification.
7118 (and_predicates): Shortcut more cases.
7119 (predicates_equal_p): Move forward; check that clauses are properly
7120 ordered.
7121 (or_predicates): Shortcut more cases.
7122 (edge_execution_predicate): Rewrite as...
7123 (set_cond_stmt_execution_predicate): ... this function; handle
7124 __builtin_constant_p.
7125 (set_switch_stmt_execution_predicate): New .
7126 (compute_bb_predicates): New.
7127 (will_be_nonconstant_predicate): Update TODO.
7128 (estimate_function_body_sizes): Use compute_bb_predicates
7129 and free them later, always try to estimate if stmt is constant.
7130 (estimate_time_after_inlining, estimate_size_after_inlining):
7131 Gracefully handle optimized out edges.
7132 (read_predicate): Fix off by one error.
7133
7134 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7135
7136 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7137
7138 2011-04-27 Xinliang David Li <davidxl@google.com>
7139
7140 * tree-profile.c (init_ic_make_global_vars): Set
7141 tls attribute on ic vars.
7142 * coverage.c (coverage_end_function): Initialize
7143 function_list with zero.
7144
7145 2011-04-29 Richard Guenther <rguenther@suse.de>
7146
7147 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7148 for the type of the result.
7149 (fold_builtin_isascii): Likewise.
7150 (fold_builtin_toascii): Use integer_type_node where appropriate.
7151 (fold_builtin_logb): Likewise.
7152 (fold_builtin_frexp): Likewise.
7153 (fold_builtin_strstr): Likewise.
7154 (fold_builtin_strpbrk): Likewise.
7155 (fold_builtin_fputs): Likewise.
7156 (fold_builtin_sprintf): Likewise.
7157 (fold_builtin_snprintf): Likewise.
7158 (fold_builtin_printf): Likewise.
7159 (do_mpfr_remquo): Use a proper type for the assigned constant.
7160 (do_mpfr_lgamma_r): Likewise.
7161 * dwarf2out.c (resolve_one_addr): Use size_int.
7162 * except.c (init_eh): Likewise.
7163 (assign_filter_values): Use integer_type_node for filter values.
7164 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7165 indices.
7166 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7167 for EH region numbers.
7168 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7169 for the shift amount.
7170
7171 2011-04-29 Richard Guenther <rguenther@suse.de>
7172
7173 * expr.h (expand_shift): Rename to ...
7174 (expand_variable_shift): ... this.
7175 (expand_shift): Take a constant shift amount.
7176 * expmed.c (expand_shift): Rename to ...
7177 (expand_variable_shift): ... this.
7178 (expand_shift): New wrapper around expand_variable_shift.
7179 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7180 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7181 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7182 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7183 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7184 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7185 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7186 emit_store_flag_1, emit_store_flag): Likewise.
7187 * builtins.c (expand_builtin_signbit): Likewise.
7188 * calls.c (load_register_parameters): Likewise.
7189 * function.c (assign_parm_setup_block): Likewise.
7190 * lower-subreg.c (resolve_shift_zext): Likewise.
7191 * optabs.c (widen_bswap, expand_abs_nojump,
7192 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7193 * spu/spu.c (spu_expand_extv): Likewise.
7194 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7195
7196 2011-04-29 Richard Guenther <rguenther@suse.de>
7197
7198 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7199 for the remapped region number.
7200 * predict.c (build_predict_expr): Use integer_type_node for the
7201 predict kind.
7202 * fold-const.c (fold_binary_loc): Use integer_type_node for
7203 the shift amount. Use a proper type for the PLUS_EXPR operand.
7204
7205 2011-04-29 Michael Matz <matz@suse.de>
7206
7207 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7208 other trees that just builtins.
7209 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7210
7211 2011-04-29 Richard Guenther <rguenther@suse.de>
7212
7213 * tree-nested.c (get_trampoline_type): Use size_int.
7214 (get_nl_goto_field): Likewise.
7215 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7216 for all indexes.
7217 (lower_eh_constructs_2): Likewise.
7218 (lower_resx): Likewise.
7219 (lower_eh_dispatch): Likewise.
7220 * tree-mudflap.c (mf_build_string): Use size_int.
7221 (mudflap_register_call): Use integer_type_node for the flag.
7222 (mudflap_enqueue_constant): Use size_int.
7223 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7224 instead of rebuilding it.
7225
7226 2011-04-29 Richard Guenther <rguenther@suse.de>
7227
7228 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7229 Handle OBJ_TYPE_REF.
7230 (find_func_aliases_for_call): Use it more consistently.
7231
7232 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7233
7234 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7235 (rank_for_schedule): Use it.
7236 (schedule_block): Set it.
7237
7238 2011-04-28 David Li <davidxl@google.com>
7239
7240 * tree.c (crc32_string): Use crc32_byte.
7241 (crc32_byte): New function.
7242 * tree.h (crc32_byte): New function.
7243 * gcov.c (read_graph_file): Handle new cfg_cksum.
7244 (read_count_file): Ditto.
7245 * profile.c (instrument_values): Ditto.
7246 (get_exec_counts): Ditto.
7247 (read_profile_edge_counts): Ditto.
7248 (compute_branch_probabilities): Ditto.
7249 (compute_value_histograms): Ditto.
7250 (branch_prob): Ditto.
7251 (end_branch_prob): Ditto.
7252 * coverage.c (read_counts_file): Ditto.
7253 (get_coverage_counts): Ditto.
7254 (tree_coverage_counter_addr): Ditto.
7255 (coverage_checksum_string): Ditto.
7256 (coverage_begin_output): Ditto.
7257 (coverage_end_function): Ditto.
7258 (build_fn_info_type): Ditto.
7259 (build_fn_info_value): Ditto.
7260 * libgcov.c (gcov_exit): Ditto.
7261 * gcov-dump.c (tag_function): Ditto.
7262 (compute_checksum): Remove.
7263
7264 2011-04-29 Alan Modra <amodra@gmail.com>
7265
7266 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7267 unspec plus offset. Tidy macho code.
7268
7269 2011-04-29 Martin Jambor <mjambor@suse.cz>
7270
7271 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7272 node instead of a decl. Update all callers.
7273 * cgraph.h: Update declaration.
7274
7275 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7276
7277 PR tree-optimization/48765
7278 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7279 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7280 to indicate if loop aware SLP is being used. Scan the statements
7281 and update the vectorization factor according to the type of
7282 vectorization before statement analysis.
7283 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7284 pass it to vect_analyze_loop_operations.
7285 (vectorizable_reduction): Set number of copies to 1 in case of pure
7286 SLP statement.
7287 * tree-vect-stmts.c (vectorizable_conversion,
7288 vectorizable_assignment, vectorizable_shift,
7289 vectorizable_operation, vectorizable_type_demotion,
7290 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7291 Likewise.
7292 (vectorizable_condition): Move the check that it is not SLP
7293 vectorization before the number of copies check.
7294 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7295 to vectorize the loop using SLP.
7296
7297 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7298
7299 PR middle-end/48597
7300 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7301 inline asm.
7302
7303 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7304
7305 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7306 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7307 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7308 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7309 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7310 linux*.h headers.
7311 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7312 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7313 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7314 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7315 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7316 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7317 REG_NAME.
7318 * config/i386/linux.h (REG_NAME): Don't define.
7319 * config/i386/linux64.h (REG_NAME): Don't define.
7320 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7321 Undefine before defining.
7322
7323 2011-04-28 Jan Hubicka <jh@suse.cz>
7324
7325 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7326 nonconstant_names array.
7327 (estimate_function_body_sizes): Build nonconstant_names array; handle
7328 BUILT_IN_CONSTANT_P.
7329
7330 2011-04-28 Richard Guenther <rguenther@suse.de>
7331
7332 PR bootstrap/48804
7333 Revert
7334 2011-04-28 Richard Guenther <rguenther@suse.de>
7335
7336 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7337 as late as possible.
7338
7339 2011-04-28 Richard Guenther <rguenther@suse.de>
7340
7341 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7342 (debug_constraint): Do it here.
7343 (dump_constraints): And here.
7344 (rewrite_constraints): And here.
7345 (dump_constraint_edge): Remove.
7346 (dump_constraint_graph): Rewrite to produce DOT output.
7347 (solve_constraints): Build succ graph as late as possible.
7348 Dump constraint graphs before and after solving.
7349
7350 2011-04-28 Richard Guenther <rguenther@suse.de>
7351
7352 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7353 New function split out from ...
7354 (find_func_aliases): ... here. Call it.
7355 (find_func_aliases_for_call): Likewise.
7356
7357 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7358
7359 * internal-fn.h (internal_fn_name_array): Declare.
7360 (internal_fn_flags_array): Likewise.
7361
7362 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7363
7364 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7365 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7366 Move from sse.md.
7367 (ssemodefsuffix): Remove.
7368 (ssevecmodesuffix): New mode attribute.
7369 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7370 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7371 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7372 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7373 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7374 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7375 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7376 ssemodesuffix mode attribute.
7377 (float splitters): Use ssevecmodesuffix mode attribute.
7378 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7379 (sseinsmode): Rename from avxvecmode.
7380 (avxsizesuffix): Rename from avxmodesuffix.
7381 (sseintvecmode): Rename from avxpermvecmode.
7382 (ssedoublevecmode): Rename from ssedoublesizemode.
7383 (ssehalfvecmode): Rename from avxhalfvecmode.
7384 (ssescalarmode): Rename from avxscalarmode.
7385 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7386 templates for ssemodesuffix mode attribute.
7387 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7388 mode attribute.
7389
7390 Adjust RTX patterns globally for renamed mode attributes.
7391
7392 2011-04-27 Jan Hubcika <jh@suse.cz>
7393
7394 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7395 * ipa-inline-analysis.c: Include alloc-pool.h.
7396 (edge_predicate_pool): New.
7397 (trye_predicate_p): New function
7398 (false_predicate_p): New function.
7399 (add_clause): Sanity check that false clauses are "optimized";
7400 never add clauses to predicate that is already known to be false.
7401 (and_predicate): Use flase_predicate_p.
7402 (evaulate_predicate): Rename to ...
7403 (evaluate_predicate): ... this one; update all callers; assert
7404 that false is not listed among possible truths.
7405 (dump_predicate): Use true_predicate_p.
7406 (account_size_time): Use false_predicate_p.
7407 (evaulate_conditions_for_edge): Rename to ...
7408 (evaluate_conditions_for_edge) ... this one.
7409 (edge_set_predicate): New function.
7410 (inline_edge_duplication_hook): Duplicate edge predicates.
7411 (inline_edge_removal_hook): Free edge predicates.
7412 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7413 (dump_inline_summary): Update.
7414 (estimate_function_body_sizes): Set edge predicates.
7415 (estimate_calls_size_and_time): Handle predicates.
7416 (estimate_callee_size_and_time): Update.
7417 (remap_predicate): Add toplev_predicate; update comment.
7418 (remap_edge_predicates): New function.
7419 (inline_merge_summary): Compute toplev predicate; update.
7420 (read_predicate): New function.
7421 (read_inline_edge_summary): Use it.
7422 (inline_read_section): Likewise.
7423 (write_predicate): New function.
7424 (write_inline_edge_summary): Use it.
7425 (inline_write_summary): Likewise.
7426 (inline_free_summary): Free alloc pool and edge summary vec.
7427
7428 2011-04-27 Richard Guenther <rguenther@suse.de>
7429
7430 * tree-ssa-structalias.c (changed_count): Remove.
7431 (changed): Use a bitmap.
7432 (unify_nodes): Adjust.
7433 (do_sd_constraint): Likewise.
7434 (do_ds_constraint): Likewise.
7435 (do_complex_constraint): Likewise.
7436 (solve_graph): Likewise.
7437
7438 2011-04-27 Jan Hubicka <jh@suse.cz>
7439
7440 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7441
7442 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7443
7444 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7445 (avx_vperm2f128_*_operand): Ditto.
7446 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7447 Use avx_vpermilp_parallel in insn condition.
7448 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7449 Use avx_vperm2f128_parallel in insn condition.
7450
7451 2011-04-27 Richard Guenther <rguenther@suse.de>
7452
7453 * Makefile.in (tree-ssa-structalias.o): Remove
7454 gt-tree-ssa-structalias.h dependency.
7455 (GTFILES): Remove tree-ssa-structalias.c.
7456 * tree.c (allocate_decl_uid): New function.
7457 (make_node_stat): Use it.
7458 (copy_node_stat): Likewise.
7459 * tree.h (allocate_decl_uid): Declare.
7460 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7461 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7462 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7463 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7464 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7465 (struct heapvar_map): Likewise.
7466 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7467 heapvar_insert): Likewise.
7468 (make_heapvar_for): Rename to ...
7469 (make_heapvar): ... this. Simplify.
7470 (fake_var_decl_obstack): New global var.
7471 (build_fake_var_decl): New function.
7472 (make_constraint_from_heapvar): Adjust.
7473 (handle_lhs_call): Likewise.
7474 (create_function_info_for): Likewise.
7475 (intra_create_variable_infos): Likewise.
7476 (init_alias_vars): Allocate fake_var_decl_obstack.
7477 (init_alias_heapvars, delete_alias_heapvars): Remove.
7478 (compute_points_to_sets): Do not call init_alias_heapvars.
7479 (ipa_pta_execute): Likewise.
7480 (delete_points_to_sets): Free fake_var_decl_obstack.
7481
7482 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7483
7484 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7485 (si_from_UTItype, si_to_UTItype): New functions.
7486 (__udivmodti4): Use them to implement type-punning.
7487 * config/spu/multi3.c (union qword_TItype): New data type.
7488 (si_from_TItype, si_to_TItype): New functions.
7489 (__multi3): Use them to implement type-punning.
7490
7491 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7492
7493 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7494
7495 2011-04-27 Jan Hubicka <jh@suse.cz>
7496
7497 * ipa-prop.c (function_insertion_hook_holder): New holder.
7498 (ipa_add_new_function): New function.
7499 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7500 Register/deregister holder.
7501
7502 2011-04-27 Richard Guenther <rguenther@suse.de>
7503
7504 PR tree-optimization/48772
7505 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7506
7507 2011-04-27 Richard Guenther <rguenther@suse.de>
7508
7509 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7510 TARGET_MEM_REF handling.
7511
7512 2011-04-27 Nick Clifton <nickc@redhat.com>
7513
7514 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7515 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7516 (REG_CLASS_NAMES): Likewise.
7517 (REG_CLASS_CONTENTS): Likewise.
7518 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7519 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7520 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7521 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7522 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7523 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7524 duplicate register classes.
7525 (frv_class_likely_spilled_p): Likewise.
7526 (frv_register_move_cost): Likewise.
7527
7528 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7529 end of the regno_reg_class array.
7530
7531 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7532
7533 PR c/48742
7534 * c-typeck.c (build_binary_op): Don't wrap arguments if
7535 int_operands is true.
7536
7537 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7538
7539 PR target/48767
7540 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7541 targetm.calls.must_pass_in_stack for void type.
7542
7543 2011-04-26 Jan Hubicka <jh@suse.cz>
7544
7545 * cgraphbuild.c (build_cgraph_edges): Update call
7546 of cgraph_create_edge and cgraph_create_indirect_edge.
7547 * cgraph.c (cgraph_create_edge_including_clones,
7548 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7549 cgraph_update_edges_for_call_stmt_node): Do not take nest
7550 argument; do not initialize call_stmt_size/time.
7551 (dump_cgraph_node): Do not dump nest.
7552 (cgraph_clone_edge): Do not take loop_nest argument;
7553 do not propagate it; do not clone call_stmt_size/time.
7554 (cgraph_clone_node): Likewise.
7555 (cgraph_create_virtual_clone): Update.
7556 * cgraph.h (struct cgraph_edge): Remove
7557 call_stmt_size/call_stmt_time/loop_nest.
7558 (cgraph_create_edge, cgraph_create_indirect_edge,
7559 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7560 prototype.
7561 * tree-emutls.c (gen_emutls_addr): Update.
7562 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7563 loop_nest; handle indirect calls, too.
7564 (clone_inlined_nodes): Do not care about updating inline summaries.
7565 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7566 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7567 stream call_stmt_size/call_stmt_time/loop_nest.
7568 * ipa-inline.c (edge_badness): Update.
7569 (ipa_inline): dump summaries after inlining.
7570 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7571 New.
7572 (inline_edge_summary): New function.
7573 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7574 (inline_edge_removal_hook): Handle edge summaries.
7575 (inline_edge_duplication_hook): New hook.
7576 (inline_summary_alloc): Alloc hooks.
7577 (initialize_growth_caches): Do not register removal hooks.
7578 (free_growth_caches); Do not free removal hook.
7579 (dump_inline_edge_summary): New function.
7580 (dump_inline_summary): Use it.
7581 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7582 (inline_update_callee_summaries): New function.
7583 (inline_merge_summary): Use it.
7584 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7585 (read_inline_edge_summary): New function.
7586 (inline_read_section): Use it.
7587 (write_inline_edge_summary): New function.
7588 (inline_write_summary): Use it.
7589 (inline_free_summary): Free edge new holders.
7590 * tree-inline.c (copy_bb): Update.
7591
7592 2011-04-26 Jason Merrill <jason@redhat.com>
7593
7594 * tree-eh.c (lower_try_finally_switch): Create the label along with
7595 the CASE_LABEL_EXPR.
7596
7597 2011-04-26 David S. Miller <davem@davemloft.net>
7598 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7599
7600 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7601 * configure: Regenerate.
7602
7603 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7604
7605 PR target/48258
7606 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7607 reduction.
7608 (VEC_reduc): New code iterator and splitters for vector reduction.
7609 (VEC_reduc_name): Ditto.
7610 (VEC_reduc_rtx): Ditto.
7611 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7612 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7613
7614 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7615 support for extracting SF on VSX.
7616
7617 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7618 generating xscvspdp.
7619 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7620 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7621 double add, minimum, maximum vector reduction.
7622 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7623 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7624 optimize double vector reduction.
7625 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7626
7627 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7628
7629 * config/fr30/fr30.h (inhibit_libc): Don't define.
7630 * config/m32r/m32r-protos.h: Correct comment.
7631 * config/v850/v850.h (GHS_default_section_names,
7632 GHS_current_section_names): Use tree, not union tree_node *.
7633
7634 2011-04-26 Xinliang David Li <davidxl@google.com>
7635
7636 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7637 * c-family/c-opts.c (c_common_handle_option): Set
7638 warn_maybe_uninitialized.
7639 * opts.c (common_handle_option): Ditto.
7640 * common.opt: New option.
7641 * tree-ssa.c (warn_uninit): Add one more parameter.
7642 (warn_uninitialized_var): Pass warning code.
7643 * tree-flow.h: Interface change.
7644
7645 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7646
7647 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7648 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7649 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7650
7651 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7652
7653 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7654 * config/mips/mips.opt (mmips-tfile): Remove.
7655
7656 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7657 mips-tdump reference to ...
7658 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7659 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7660 reference by Tru64 UNIX.
7661
7662 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7663
7664 PR debug/48768
7665 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7666 is error_mark_node, set value to NULL.
7667
7668 PR tree-optimization/48734
7669 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7670 if return value from maybe_fold_*_comparsions isn't something
7671 the code is prepared to handle.
7672
7673 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7674
7675 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7676 mode check.
7677 (ext_QIreg_nomode_operands): Remove.
7678 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7679 (*andsi_1): Ditto.
7680 (*andhi_1): Ditto.
7681
7682 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7683
7684 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7685
7686 2011-04-26 Richard Guenther <rguenther@suse.de>
7687
7688 * c-typeck.c (build_unary_op): Do not expand array-refs via
7689 pointer arithmetic. Only adjust qualifiers for function types.
7690
7691 2011-04-26 Richard Guenther <rguenther@suse.de>
7692
7693 PR middle-end/48694
7694 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7695 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7696 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7697 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7698
7699 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7700
7701 * doc/extend.texi: Document __underlying_type.
7702
7703 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7704
7705 * config/rs6000/titan.md (automata_option "progress"): Remove.
7706
7707 2011-04-25 Jeff Law <law@redhat.com>
7708
7709 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7710
7711 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7712
7713 * system.h (ENUM_BITFIELD): Remove.
7714
7715 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7716 Eric Botcazou <ebotcazou@adacore.com>
7717
7718 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7719 for STORE_FLAG_VALUE==-1 case.
7720
7721 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7722
7723 PR target/43804
7724 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7725 LEGITIMATE_PIC_OPERAND_P.
7726
7727 2011-04-24 Jan Hubicka <jh@suse.cz>
7728
7729 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7730 WPA hack.
7731 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7732 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7733 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7734 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7735 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7736 Sanity check predicate length.
7737 (remap_predicate): Likewise; sanity check jump functions.
7738 (inline_read_section, inline_write_summary): Sanity check
7739 predicate length.
7740
7741 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7742
7743 PR other/48748
7744 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7745 __is_literal_type, and __is_trivial; update throughout about
7746 possibly cv-qualified void types.
7747
7748 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7749
7750 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7751 testsuite and make it version agnostic.
7752
7753 2011-04-22 Jan Hubicka <jh@suse.cz>
7754
7755 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7756
7757 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7758
7759 PR c/48685
7760 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7761 to VOID_TYPE even around MODIFY_EXPR.
7762
7763 2011-04-22 Mike Stump <mikestump@comcast.net>
7764
7765 * gensupport.c (read_md_rtx): Fix typo in comment.
7766 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7767 comment.
7768
7769 2011-04-22 Jan Hubicka <jh@suse.cz>
7770
7771 * gengtype.c (open_base_files): Add ipa-inline.h include.
7772 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7773 ipa-prop.c; update all uses.
7774 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7775 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7776 merge summary of inlined function into former caller.
7777 * ipa-inline.c (max_benefit): Remove.
7778 (edge_badness): Compensate for removal of benefits.
7779 (update_caller_keys): Use
7780 reset_node_growth_cache/reset_edge_growth_cache.
7781 (update_callee_keys): Likewise.
7782 (update_all_callee_keys): Likewise.
7783 (inline_small_functions): Do not collect max_benefit; do not reset
7784 estimated_growth; call free_growth_caches and initialize_growth_caches.
7785 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7786 struct size_time_entry): New structures.
7787 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7788 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7789 and estimated_growth.
7790 (edge_growth_cache_entry): New structure.
7791 (node_growth_cache, edge_growth_cache): New global vars.
7792 (estimate_growth): Turn into inline.
7793 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7794 initialize_growth_caches, free_growth_caches): Declare.
7795 (estimate_edge_growth): Rewrite.
7796 (estimate_edge_time): Implement as inline cache lookup.
7797 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7798 functions.
7799 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7800 (NUM_CONDITIONS): New constant.
7801 (predicate_conditions): New enum.
7802 (IS_NOT_CONSTANT): New constant.
7803 (edge_removal_hook_holder): New var.
7804 (node_growth_cache, edge_growth_cache): New global vars.
7805 (true_predicate, single_cond_predicate, false_predicate,
7806 not_inlined_predicate, add_condition, add_clause, and_predicates,
7807 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7808 dump_clause, dump_predicate, account_size_time,
7809 evaulate_conditions_for_edge): New functions.
7810 (inline_summary_alloc): Move to heap.
7811 (inline_node_removal_hook): Clear condition and entry vectors.
7812 (inline_edge_removal_hook): New function.
7813 (initialize_growth_caches, free_growth_caches): New function.
7814 (dump_inline_summary): Update.
7815 (edge_execution_predicate): New function.
7816 (will_be_nonconstant_predicate): New function.
7817 (estimate_function_body_sizes): Compute BB and constantness predicates.
7818 (compute_inline_parameters): Do not clear estimated_growth.
7819 (estimate_edge_size_and_time): New function.
7820 (estimate_calls_size_and_time): New function.
7821 (estimate_callee_size_and_time): New function.
7822 (remap_predicate): New function.
7823 (inline_merge_summary): New function.
7824 (do_estimate_edge_time): New function based on...
7825 (estimate_edge_time): ... this one.
7826 (do_estimate_edge_growth): New function.
7827 (do_estimate_growth): New function based on....
7828 (estimate_growth): ... this one.
7829 (inline_analyze_function): Analyze after deciding on jump functions.
7830 (inline_read_section): New function.
7831 (inline_read_summary): Use it.
7832 (inline_write_summary): Write all the new data.
7833 * ipa-prop.c (ipa_get_param_decl_index): Export.
7834 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7835 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7836 Declare.
7837 (ipa_get_lattice): Move here from ipa-cp.c
7838 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7839 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7840 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7841 cgraph_edge_inlinable_p): Remove.
7842 * cgraphunit.c: Include ipainline.h
7843 (cgraph_process_new_functions): Update call of
7844 compute_inline_parameters.
7845
7846 2011-04-22 Richard Guenther <rguenther@suse.de>
7847
7848 * tree.c (build_int_cst): Properly create canonicalized integer
7849 constants.
7850 (build_int_cst_type): Remove scary comments.
7851
7852 2011-04-22 Xinliang David Li <davidxl@google.com>
7853
7854 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7855 by default when -Wno-error is not specified.
7856 * opts-global.c (decode_options): Remove call to
7857 control_warning_options.
7858
7859 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7860
7861 PR tree-optimization/48717
7862 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7863 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7864
7865 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7866
7867 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7868 definition where used.
7869
7870 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7871
7872 PR c/48716
7873 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7874 TREE_STATIC variables declared inside of some OpenMP construct.
7875
7876 2011-04-22 Martin Jambor <mjambor@suse.cz>
7877
7878 PR middle-end/48585
7879 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7880
7881 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7882
7883 PR c/36750
7884 * c-typeck.c (pop_init_level): Do not warn about initializing
7885 with ` = {0}'.
7886
7887 2011-04-22 Alan Modra <amodra@gmail.com>
7888
7889 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7890 when returning call_cookie.
7891 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7892 pointers, to functions with no more vector args than the current
7893 function, and some non-local calls for ABI_V4.
7894 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7895 sibcall_nonlocal_aix64): Combine to ..
7896 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7897 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7898 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7899 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7900 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7901 operand.
7902 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7903 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7904 sibcall_value_symbolic_64): Delete.
7905
7906 2011-04-21 Xinliang David Li <davidxl@google.com>
7907
7908 * cgraph.h: Remove pid.
7909 * cgraph.c: Remove pid.
7910 * value-prof.c (init_node_map): New function.
7911 (del_node_map): New function.
7912 (find_func_by_funcdef_no): New function.
7913 (gimple_ic_transform): Call new function.
7914 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7915 * function.c (get_last_funcdef_no): New function.
7916 * function.h (get_last_funcdef_no): New function.
7917 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7918 to libgcov function.
7919 (tree-profiling): Call node map init and delete function.
7920
7921 2011-04-21 Ian Lance Taylor <iant@google.com>
7922
7923 * godump.c (go_format_type): Use exported Go name for anonymous
7924 field name.
7925
7926 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7927
7928 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7929 Call builtin_function_type_list instead of builtin_function_type.
7930 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7931
7932 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7933
7934 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7935 build_function_type_list instead of build_function_type.
7936 Delete variable `endlink'.
7937
7938 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7939
7940 * config/s390/s390.c (s390_init_builtins): Call
7941 build_function_type_list instead of build_function_type.
7942
7943 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7944
7945 * config/ia64/ia64.c (ia64_init_builtins): Call
7946 build_function_type_list instead of builtin_function_type.
7947
7948 2011-04-21 Easwaran Raman <eraman@google.com>
7949
7950 * cfgexpand.c (stack_var): Remove OFFSET...
7951 (add_stack_var): ...and its reference here...
7952 (expand_stack_vars): ...and here.
7953 (stack_var_cmp): Sort by descending order of size.
7954 (partition_stack_vars): Change heuristic.
7955 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7956 (dump_stack_var_partition): Add newline after each partition.
7957
7958 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7959 Jeff Law <law@redhat.com>
7960
7961 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7962 * gengtype.c (matching_file_name_substitute): Likewise.
7963
7964 2011-04-21 Richard Guenther <rguenther@suse.de>
7965
7966 PR lto/48703
7967 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7968
7969 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7970
7971 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7972
7973 2011-04-21 Richard Guenther <rguenther@suse.de>
7974
7975 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7976 file name.
7977
7978 2011-04-21 Richard Guenther <rguenther@suse.de>
7979
7980 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7981 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7982 Use DECL_P, not SSA_VAR_P.
7983 (ptr_derefs_may_alias_p): Likewise.
7984 (ptr_deref_may_alias_ref_p_1): Likewise.
7985 (decl_refs_may_alias_p): Likewise.
7986 (refs_may_alias_p_1): Likewise.
7987 (ref_maybe_used_by_call_p_1): Likewise.
7988 (call_may_clobber_ref_p_1): Likewise.
7989 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7990 are either MEM_REF or TARGET_MEM_REF.
7991 (indirect_refs_may_alias_p): Likewise.
7992 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7993 for MEM_EXPR of indirect calls.
7994
7995 2011-04-21 Tristan Gingold <gingold@adacore.com>
7996
7997 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7998 (dst_file_info_struct): Remove flen field.
7999 (lookup_filename): Remove code that set flen field.
8000
8001 2011-04-21 Tristan Gingold <gingold@adacore.com>
8002
8003 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8004
8005 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8006
8007 PR target/48708
8008 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8009 vec_extract and vec_concat for non-SSE4_1 targets.
8010
8011 2011-04-21 Richard Guenther <rguenther@suse.de>
8012
8013 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8014 return statements.
8015
8016 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8017
8018 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8019 undefine.
8020 (FILE): Don't undefine.
8021
8022 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8023
8024 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8025 struct rtx_def *.
8026 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8027 struct rtx_def *.
8028 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8029 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8030 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8031 rtx_def *.
8032 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8033 definitions where used.
8034 * config/microblaze/microblaze.h (struct microblaze_args): Use
8035 rtx, not struct rtx_def *.
8036 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8037 rtx_def *.
8038 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8039 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8040 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8041 not struct rtx_def *.
8042 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8043 struct rtx_def *.
8044 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8045 rtx_def *.
8046 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8047
8048 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8049
8050 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8051 operand_equal_p to compare DR_BASE_ADDRESSes.
8052 (vect_check_interleaving): Likewise.
8053
8054 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8055
8056 PR target/46329
8057 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8058 for all Neon struct constants.
8059
8060 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8061
8062 * target.def (legitimate_constant_p): New hook.
8063 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8064 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8065 * doc/tm.texi: Regenerate.
8066 * hooks.h (hook_bool_mode_rtx_true): Declare.
8067 * hooks.c (hook_bool_mode_rtx_true): Define.
8068 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8069 * calls.c (precompute_register_parameters): Replace uses of
8070 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8071 (emit_library_call_value_1): Likewise.
8072 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8073 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8074 * ira-costs.c (scan_one_insn): Likewise.
8075 * recog.c (general_operand, immediate_operand): Likewise.
8076 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8077 * reload1.c (init_eliminable_invariants): Likewise.
8078
8079 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8080 mode argument.
8081 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8082 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8083 argument.
8084 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8085 * config/alpha/predicates.md (input_operand): Update call to
8086 alpha_legitimate_constant_p.
8087
8088 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8089 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8090 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8091 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8092 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8093 (arm_legitimate_constant_p): New functions.
8094 (arm_cannot_force_const_mem): Make static.
8095
8096 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8097
8098 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8099 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8100 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8101 instead of bfin_legitimate_constant_p.
8102 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8103 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8104
8105 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8106
8107 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8108
8109 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8110 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8111 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8112 (frv_legitimate_constant_p): Make static. Add a mode argument.
8113
8114 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8115 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8116 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8117
8118 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8119 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8120 * config/i386/i386.c (legitimate_constant_p): Rename to...
8121 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8122 argument.
8123 (ix86_cannot_force_const_mem): Update accordingly.
8124 (ix86_legitimate_address_p): Likewise.
8125 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8126 * config/i386/i386.md: Update commentary.
8127
8128 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8129 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8130 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8131 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8132
8133 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8134
8135 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8136 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8137 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8138 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8139
8140 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8141 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8142 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8143
8144 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8145 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8146 (m32r_legitimate_constant_p): New function.
8147
8148 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8149 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8150 LEGITIMATE_CONSTANT_P.
8151 (LEGITIMATE_CONSTANT_P): Delete.
8152 * config/m68k/m68k.c (m68k_expand_prologue): Call
8153 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8154 (m68k_legitimate_constant_p): New function.
8155 * config/m68k/m68k.md: Update comments.
8156
8157 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8158 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8159 (mcore_legitimate_constant_p): New function.
8160
8161 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8162 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8163 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8164 Add a mode argument.
8165 (mep_legitimate_address): Update accordingly.
8166 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8167
8168 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8169 Delete.
8170 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8171 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8172 static. Check OP's mode for VOIDmode.
8173 (microblaze_legitimate_constant_p): New function.
8174 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8175
8176 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8177 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8178 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8179 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8180 * config/mips/predicates.md: Update comments.
8181
8182 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8183 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8184 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8185 (mmix_legitimate_constant_p): Make static, return a bool, and take
8186 a mode argument.
8187 (mmix_print_operand_address): Update accordingly.
8188
8189 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8190 Delete.
8191 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8192 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8193 static. Add a mode argument.
8194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8195
8196 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8197
8198 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8199 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8200 (pa_legitimate_constant_p): New function.
8201
8202 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8203
8204 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8205 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8206 (pdp11_legitimate_constant_p): New function.
8207
8208 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8209 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8210 (rs6000_legitimate_constant_p): New function.
8211
8212 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8213 (rx_legitimate_constant_p): ...this.
8214 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8215 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8216 (rx_legitimate_constant_p): ...this.
8217 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8218 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8219
8220 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8221 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8222 * config/s390/s390.c (legitimate_constant_p): Rename to...
8223 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8224 and add a mode argument.
8225 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8226
8227 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8228
8229 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8230 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8231 (sh_legitimate_constant_p): New function.
8232
8233 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8234 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8235 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8236 (legitimate_constant_p): Rename to...
8237 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8238 argument.
8239 (constant_address_p): Update accordingly.
8240
8241 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8242 argument and return a bool.
8243 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8244 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8245 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8246 (spu_rtx_costs): Update accordingly.
8247 * config/spu/predicates.md (vec_imm_operand): Likewise.
8248
8249 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8250
8251 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8252 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8253 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8254
8255 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8256 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8257 * config/vax/vax.c (legitimate_constant_p): Likewise.
8258
8259 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8260 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8261 (xtensa_legitimate_constant_p): New function.
8262
8263 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8264
8265 * target.def (cannot_force_const_mem): Add a mode argument.
8266 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8267 * doc/tm.texi: Regenerate.
8268 * hooks.h (hook_bool_mode_rtx_false): Declare.
8269 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8270 (hook_bool_mode_const_rtx_true): Likewise.
8271 (hook_bool_mode_rtx_false): New function.
8272 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8273 to be non-VOID. Update call to cannot_force_const_mem.
8274 (find_reloads): Update accordingly.
8275 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8276 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8277 argument.
8278 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8279 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8280 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8281 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8282 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8283 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8284 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8285 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8286 (m68k_cannot_force_const_mem): ...this new function.
8287 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8288 argument.
8289 (mips_const_insns, mips_legitimize_const_move): Update calls.
8290 (mips_secondary_reload_class): Likewise.
8291 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8292 (pa_cannot_force_const_mem): ...this new function.
8293 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8294 (rs6000_cannot_force_const_mem): ...this new function.
8295 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8296 argument.
8297 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8298 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8299 to...
8300 (xtensa_cannot_force_const_mem): ...this new function.
8301
8302 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8303
8304 * config/mips/mips.c (mips16_build_function_stub): Call
8305 build_function_type_list instead of build_function_type.
8306 (mips16_build_call_stub): Likewise.
8307
8308 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8309
8310 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8311 instead of build_function_type.
8312
8313 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8314
8315 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8316 instead of build_function_type.
8317
8318 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8319
8320 PR target/48678
8321 * config/i386/i386.md (insv): Change operand 0 constraint to
8322 "register_operand". Change operand 1 and 2 constraint to
8323 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8324 * config/i386/sse.md (sse4_1_pinsrb): Export.
8325 (sse2_pinsrw): Ditto.
8326 (sse4_1_pinsrd): Ditto.
8327 (sse4_1_pinsrq): Ditto.
8328 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8329 * config/i386/i386.c (ix86_expand_pinsr): New.
8330
8331 2011-04-20 Easwaran Raman <eraman@google.com>
8332
8333 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8334 containing union type only with -fstrict-aliasing.
8335
8336 2011-04-20 Jim Meyering <meyering@redhat.com>
8337
8338 Remove useless if-before-free tests.
8339 * calls.c (expand_call, save_area): Likewise.
8340 * cfgcleanup.c (try_forward_edges): Likewise.
8341 * collect2.c (collect_execute): Likewise.
8342 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8343 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8344 * coverage.c (coverage_checksum_string): Likewise.
8345 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8346 * cselib.c (cselib_init): Likewise.
8347 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8348 (df_set_clean_cfg): Likewise.
8349 * function.c (free_after_compilation): Likewise.
8350 * gcc.c (do_spec_1, main): Likewise.
8351 * gcov.c (create_file_names): Likewise.
8352 * gensupport.c (identify_predicable_attribute): Likewise.
8353 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8354 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8355 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8356 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8357 * ipa-pure-const.c (local_pure_const): Likewise.
8358 * ipa-reference.c (propagate): Likewise.
8359 * ira-costs.c (free_ira_costs): Likewise.
8360 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8361 * matrix-reorg.c (mat_free): Likewise.
8362 * prefix.c (get_key_value): Likewise.
8363 * profile.c (compute_value_histograms): Likewise.
8364 * reload1.c (free_reg_equiv): Likewise.
8365 * sched-deps.c (free_deps): Likewise.
8366 * sel-sched-ir.c (fence_clear): Likewise.
8367 * sese.c (set_rename, if_region_set_false_region): Likewise.
8368 * tree-data-ref.c (free_rdg): Likewise.
8369 * tree-eh.c (lower_try_finally): Likewise.
8370 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8371 * tree-ssa-live.c (delete_var_map): Likewise.
8372 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8373 * tree-ssa-pre.c (phi_trans_add): Likewise.
8374
8375 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8376
8377 PR tree-optimization/48611
8378 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8379 beyond ERT_MUST_NOT_THROW region.
8380
8381 2011-04-20 Catherine Moore <clm@codesourcery.com>
8382
8383 * config/mips/mips.opt (mfix-24k): New.
8384 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8385 * config/mips/mips.md (length): Increase by 4 for stores if
8386 fixing 24K errata.
8387 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8388 all noreorder if fixing 24K errata.
8389 * doc/invoke.texi: Document mfix-24k.
8390
8391 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8392
8393 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8394 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8395
8396 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8397
8398 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8399 (const_ok_for_op): ... to here.
8400
8401 2011-04-20 Kai Tietz <ktietz@redhat.com>
8402
8403 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8404 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8405
8406 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8407
8408 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8409
8410 2011-04-20 Richard Guenther <rguenther@suse.de>
8411
8412 PR tree-optimization/47892
8413 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8414 are if-convertible.
8415
8416 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8417
8418 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8419
8420 2011-04-20 Tristan Gingold <gingold@adacore.com>
8421
8422 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8423
8424 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8425
8426 PR target/18145
8427
8428 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8429 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8430 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8431 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8432 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8433
8434 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8435 New prototype.
8436
8437 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8438 (avr_asm_named_section, avr_asm_output_aligned_common,
8439 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8440 New functions to update...
8441 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8442 (avr_asm_init_sections): Overwrite section callbacks for
8443 data_section, bss_section.
8444 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8445 from here to...
8446 (avr_file_end): ...here.
8447
8448 2011-04-20 Richard Guenther <rguenther@suse.de>
8449
8450 PR middle-end/48695
8451 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8452 objects and types here. Adjust for their offset before comparing.
8453
8454 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8455
8456 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8457 statement per copy.
8458
8459 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8460
8461 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8462 (GIMPLE_H): Include $(INTERNAL_FN_H).
8463 (OBJS-common): Add internal-fn.o.
8464 (internal-fn.o): New rule.
8465 * internal-fn.def: New file.
8466 * internal-fn.h: Likewise.
8467 * internal-fn.c: Likewise.
8468 * gimple.h: Include internal-fn.h.
8469 (GF_CALL_INTERNAL): New gf_mask.
8470 (gimple_statement_call): Put fntype into a union with a new
8471 internal_fn field.
8472 (gimple_build_call_internal): Declare.
8473 (gimple_build_call_internal_vec): Likewise.
8474 (gimple_call_same_target_p): Likewise.
8475 (gimple_call_internal_p): New function.
8476 (gimple_call_internal_fn): Likewise.
8477 (gimple_call_fntype): Return null for internal calls.
8478 (gimple_call_set_fntype): Assert that the function is not internal.
8479 (gimple_call_set_fn): Likewise.
8480 (gimple_call_set_fndecl): Likewise.
8481 (gimple_call_set_internal_fn): New function.
8482 (gimple_call_addr_fndecl): Handle null functions.
8483 (gimple_call_return_type): Likewise null types.
8484 * gimple.c (gimple_build_call_internal_1): New function.
8485 (gimple_build_call_internal): Likewise.
8486 (gimple_build_call_internal_vec): Likewise.
8487 (gimple_call_same_target_p): Likewise.
8488 (gimple_call_flags): Handle calls to internal functions.
8489 (gimple_call_fnspec): New function.
8490 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8491 (gimple_has_side_effects): Handle null functions.
8492 (gimple_rhs_has_side_effects): Likewise.
8493 (gimple_call_copy_skip_args): Handle calls to internal functions.
8494 * cfgexpand.c (expand_call_stmt): Likewise.
8495 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8496 * gimple-fold.c (gimple_fold_call): Handle null functions.
8497 (gimple_fold_stmt_to_constant_1): Don't fold
8498 calls to internal functions.
8499 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8500 functions.
8501 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8502 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8503 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8504 (do_warn_unused_result): Likewise.
8505 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8506 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8507 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8508 the target of a call.
8509 (initialize_hash_element): Update accordingly.
8510 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8511 (iterative_hash_hashable_expr): Handle calls to internal functions.
8512 (print_expr_hash_elt): Likewise.
8513 * tree-ssa-pre.c (can_value_number_call): Likewise.
8514 (eliminate): Handle null functions.
8515 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8516 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8517 (find_func_aliases): Likewise.
8518 * value-prof.c (gimple_ic_transform): Likewise.
8519 (gimple_indirect_call_to_profile): Likewise.
8520 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8521 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8522
8523 2011-04-19 Jan Hubicka <jh@suse.cz>
8524
8525 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8526 * ipa-inline.c (inline_small_functions): Compute summaries first,
8527 populate heap later.
8528
8529 2011-04-19 Jan Hubicka <jh@suse.cz>
8530
8531 * cgraph.h (save_inline_function_body): Remove.
8532 * ipa-inline-transform.c: New file, broke out of...
8533 * ipa-inline.c: ... this one; Update toplevel comment.
8534 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8535 make global.
8536 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8537 (cgraph_mark_inline_edge): Rename to inline_call; move to
8538 ipa-inline-transform.c.
8539 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8540 move to ipa-inline-transform.c
8541 (recursive_inlining, inline_small_functions, flatten_function,
8542 ipa_inline, inline_always_inline_functions,
8543 early_inline_small_functions): Update.
8544 (inline_transform): Move to ipa-inline-transform.c.
8545 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8546 Declare.
8547 * Makefile.in (ipa-inline-transform.o): New file.
8548 * cgraphunit.c (save_inline_function_body): Move to
8549 ipa-inline-transform.c
8550
8551 2011-04-19 DJ Delorie <dj@redhat.com>
8552
8553 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8554 registers if we already know there aren't any.
8555 (m32c_emit_epilogue): Don't emit a barrier here.
8556 (m32c_emit_eh_epilogue): Likewise.
8557 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8558 operands at expand time.
8559 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8560 int" wchar type.
8561 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8562 duplicates. Provide aliases instead.
8563 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8564 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8565 the compiler.
8566
8567 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8568
8569 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8570 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8571 (general_or_i64_p, sparc_register_move_cost): New function.
8572
8573 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8574
8575 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8576 Add lynx, mipssde. Sort table.
8577
8578 2011-04-19 Xinliang David Li <davidxl@google.com>
8579
8580 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8581 not negative.
8582
8583 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8584
8585 PR target/48678
8586 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8587 is a SUBREG with non-MODE_INT mode inside of it.
8588
8589 2011-04-19 Martin Jambor <mjambor@suse.cz>
8590
8591 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8592 also according to actual contants.
8593 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8594 (gimple_fold_call): Use it.
8595 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8596
8597 2011-04-19 Martin Jambor <mjambor@suse.cz>
8598
8599 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8600 non-pointer assignments.
8601
8602 2011-04-19 Martin Jambor <mjambor@suse.cz>
8603
8604 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8605 account anc_offset and otr_type from the indirect edge info.
8606 * ipa-prop.c (get_ancestor_addr_info): New function.
8607 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8608 get_ancestor_addr_info, call it.
8609 (ipa_note_param_call): Do not initialize information about polymorphic
8610 calls, return the indirect call graph edge. Remove the last
8611 parameter, adjust all callers.
8612 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8613 parameters. Initialize polymorphic information in the indirect edge.
8614
8615 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8616
8617 PR lto/48148
8618 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8619 the types if they have different enumeration identifiers.
8620
8621 2011-04-19 Jan Hubicka <jh@suse.cz>
8622
8623 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8624 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8625 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8626 (optimize_function_for_size_p) ... here.
8627
8628 2011-04-19 Richard Guenther <rguenther@suse.de>
8629
8630 PR lto/48207
8631 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8632 langhook.
8633
8634 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8635
8636 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8637 if DECL_NO_INLINE_WARNING_P is set on the function.
8638
8639 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8640
8641 PR fortran/47976
8642 * reload1.c (inc_for_reload): Return void. All callers changed.
8643 (emit_input_reload_insns): Don't try to delete previous output
8644 reloads to a register, or record spill_reg_store for autoincs.
8645
8646 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8647
8648 * gengtype.h: Updated copyright year.
8649 (struct input_file_st): Add inpisplugin field.
8650 (type_fileloc): New function.
8651 * gengtype.c
8652 (write_typed_struct_alloc_def): Add gcc_assert.
8653 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8654 (write_typed_alloc_defns): Don't output for plugin files.
8655 (input_file_by_name): Clear inpisplugin field.
8656 (main): Set inpisplugin field for plugin files.
8657
8658 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8659
8660 * gengtype-state.c (string_eq): New.
8661 (read_state): Use string_eq instead of strcmp when creating the
8662 state_ident_tab.
8663
8664 2011-04-19 Wei Guozhi <carrot@google.com>
8665
8666 PR target/47855
8667 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8668 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8669 linkage.
8670 * config/arm/constraints.md (Uu): New constraint.
8671 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8672
8673 2011-04-19 Tristan Gingold <gingold@adacore.com>
8674
8675 * config.gcc (-*-*-*vms): Added.
8676 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8677 definitions moved.
8678 * config/vms/vms-ld.c: New file.
8679 * config/vms/vms-ar.c: New file.
8680 * config/vms/t-vmsnative: New file.
8681
8682 2011-04-18 Xinliang David Li <davidxl@google.com>
8683
8684 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8685
8686 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8687
8688 PR middle-end/48661
8689 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8690 if TREE_TYPE (v) is non-NULL.
8691
8692 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8693 gimple_get_virt_mehtod_for_binfo.
8694 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8695 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8696 callers.
8697 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8698
8699 2011-04-18 Michael Matz <matz@suse.de>
8700 Steve Ellcey <sje@cup.hp.com>
8701
8702 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8703 use its mode as source mode if it isn't VOIDmode.
8704
8705 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8706
8707 * doc/passes.texi: Fill crossref nodes.
8708
8709 2011-04-18 Jim Meyering <meyering@redhat.com>
8710
8711 Fix doubled-word typos in comments and strings
8712 * config/alpha/vms-unwind.h: s/for for/for/
8713 * config/arm/unwind-arm.h: Likewise.
8714 * config/microblaze/microblaze.c: Likewise.
8715 * config/sh/constraints.md: s/in in/in/
8716 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8717
8718 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8719
8720 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8721 (AVX_FLOAT_MODE_P): Ditto.
8722 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8723 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8724 (AVX_VEC_FLOAT_MODE_P): Ditto.
8725 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8726 (UNSPEC_MASKSTORE): Ditto.
8727 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8728 Merge from <sse>_movmsk<ssemodesuffix> and
8729 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8730 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8731 iterator.
8732 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8733 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8734 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8735
8736 2011-04-18 Jan Hubicka <jh@suse.cz>
8737
8738 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8739
8740 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8741 (want_inline_function_called_once_p): Break out the logic from
8742 ipa_inline.
8743 (edge_badness): Ensure that profile is not misupdated.
8744 (lookup_recursive_calls): Prioritize by call frequencies.
8745 (inline_small_functions): Move program size estimates here;
8746 actually process whole queue even when unit growth has been
8747 met. (to properly compute inline_failed reasons and for the
8748 case unit size decrease.) Revisit comments on recursive inlining.
8749 (ipa_inline): Remove unit summary code; first inline hot calls
8750 of functions called once, cold calls next.
8751 (order, nnodes): Remove unused variables.
8752 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8753 (GTFILES): Remove ipa-inline.c
8754 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8755
8756 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8757
8758 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8759
8760 2011-04-18 Jie Zhang <jie@codesourcery.com>
8761 Richard Earnshaw <rearnsha@arm.com>
8762
8763 * arm.c (neon_builtin_type_bits): Remove.
8764 (typedef enum neon_builtin_mode): New.
8765 (T_MAX): Don't define.
8766 (typedef enum neon_builtin_datum): Remove bits, codes[],
8767 num_vars and base_fcode. Add mode, code and fcode.
8768 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8769 VAR10): Change accordingly.
8770 (neon_builtin_data[]): Change accordingly
8771 (arm_init_neon_builtins): Change accordingly.
8772 (neon_builtin_compare): Remove.
8773 (locate_neon_builtin_icode): Remove.
8774 (arm_expand_neon_builtin): Change accordingly.
8775
8776 * arm.h (enum arm_builtins): Move to ...
8777 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8778
8779 * arm.c (arm_builtin_decl): Declare.
8780 (TARGET_BUILTIN_DECL): Define.
8781 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8782 (arm_builtin_decls[]): New.
8783 (arm_init_neon_builtins): Store builtin declarations in
8784 arm_builtin_decls[].
8785 (arm_init_tls_builtins): Likewise.
8786 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8787 (arm_builtin_decl): New.
8788
8789 2011-04-18 Richard Guenther <rguenther@suse.de>
8790
8791 * tree.c (upper_bound_in_type): Build properly canonicalized
8792 INTEGER_CSTs.
8793 (lower_bound_in_type): Likewise.
8794
8795 2011-04-18 Richard Guenther <rguenther@suse.de>
8796
8797 * gimple.h (gimple_call_addr_fndecl): New function.
8798 (gimple_call_fndecl): Use it.
8799 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8800 for direct calls.
8801 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8802 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8803
8804 2011-04-18 Richard Guenther <rguenther@suse.de>
8805
8806 PR middle-end/48650
8807 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8808
8809 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8810
8811 PR lto/48492
8812 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8813 DECL_IN_CONSTANT_POOL without RTL.
8814
8815 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8816 Ira Rosen <ira.rosen@linaro.org>
8817
8818 PR target/48252
8819 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8820 to match neon_vzip/vuzp/vtrn_internal.
8821 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8822 outputs explicitly dependent on both inputs.
8823 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8824
8825 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8826
8827 PR tree-optimization/48616
8828 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8829 whether the shift is by scalar or vector based on whether all SLP
8830 scalar stmts have the same rhs.
8831
8832 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8833
8834 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8835 memory operands.
8836
8837 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8838
8839 PR target/43700
8840 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8841 registers.
8842
8843 2011-04-17 Jan Hubicka <jh@suse.cz>
8844
8845 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8846 * cgrpahunit.c (cgraph_finalize_function): Do not set
8847 finalized_by_frontend.
8848 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8849 finalized_by_frontend.
8850
8851 2011-04-17 Jan Hubicka <jh@suse.cz>
8852
8853 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8854 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8855 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8856 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8857 method.
8858 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8859 gimple-fold.c
8860 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8861
8862 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8863
8864 PR lto/48538
8865 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8866 is non-null before accessing it.
8867 (input_cgraph): Remove trailing spaces.
8868
8869 2011-04-17 Revital Eres <revital.eres@linaro.org>
8870
8871 * params.def (sms-min-sc): New param flag.
8872 * modulo-sched.c (sms_schedule): Use it.
8873 * doc/invoke.texi (sms-min-sc): Document it.
8874
8875 2011-04-17 Jan Hubicka <jh@suse.cz>
8876
8877 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8878 present, also set gimple_call_set_cannot_inline.
8879 * ipa-inline.c: Update toplevel comment.
8880 (MAX_TIME): Remove.
8881 (cgraph_clone_inlined_nodes): Fix linebreaks.
8882 (cgraph_check_inline_limits): Restructure to ...
8883 (caller_growth_limits): ... this one; be more tolerant
8884 on growth in nested inline chains; add explanatory comment;
8885 fix stack accounting thinko introduced by previous patch.
8886 (cgraph_default_inline_p): Remove.
8887 (report_inline_failed_reason): New function.
8888 (can_inline_edge_p): New function.
8889 (can_early_inline_edge_p): New function.
8890 (leaf_node_p): Move upwards in file.
8891 (want_early_inline_function_p): New function.
8892 (want_inline_small_function_p): New function.
8893 (want_inline_self_recursive_call_p): New function.
8894 (cgraph_edge_badness): Rename to ...
8895 (edge_badness) ... this one; fix linebreaks.
8896 (update_edge_key): Update call of edge_baddness; add
8897 detailed dump about queue updates.
8898 (update_caller_keys): Use can_inline_edge_p and
8899 want_inline_small_function_p.
8900 (cgraph_decide_recursive_inlining): Rename to...
8901 (recursive_inlining): Use can_inline_edge_p and
8902 want_inline_self_recursive_call_p; simplify and remove no longer
8903 valid FIXME.
8904 (cgraph_set_inline_failed): Remove.
8905 (add_new_edges_to_heap): Use can_inline_edge_p and
8906 want_inline_small_function_p.
8907 (cgraph_decide_inlining_of_small_functions): Rename to ...
8908 (inline_small_functions): ... this one; cleanup; use
8909 can/want predicates; cleanup debug ouput; work edges till fibheap
8910 is exhausted and do not stop once unit growth is reached; remove
8911 later loop processing remaining edges.
8912 (cgraph_flatten): Rename to ...
8913 (flatten_function): ... this one; use can_inline_edge_p
8914 and can_early_inline_edge_p predicates.
8915 (cgraph_decide_inlining): Rename to ...
8916 (ipa_inline): ... this one; remove unreachable nodes before
8917 inlining functions called once; simplify the pass.
8918 (cgraph_perform_always_inlining): Rename to ...
8919 (inline_always_inline_functions): ... this one; use
8920 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8921 (cgraph_decide_inlining_incrementally): Rename to ...
8922 (early_inline_small_functions): ... this one; simplify
8923 using new predicates; cleanup; make dumps prettier.
8924 (cgraph_early_inlining): Rename to ...
8925 (early_inliner): newer inline regular functions into always-inlines;
8926 fix updating of call stmt summaries.
8927 (pass_early_inline): Update for new names.
8928 (inline_transform): Fix formating.
8929 (gate_cgraph_decide_inlining): Rename to ...
8930 (pass_ipa_inline): ... this one.
8931 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8932 * ipa-inline-analysis.c (dump_inline_summary): Update.
8933 (compute_inline_parameters): Do not compute disregard_inline_limits;
8934 look for mismatching arguments.
8935 (estimate_growth): Fix handlig of non-trivial self recursion.
8936 (inline_read_summary): Do not read info->disregard_inline_limits.
8937 (inline_write_summary): Do not write info->disregard_inline_limits.
8938 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8939 and move all checks into can_inline_edge_p predicate; re-enable code
8940 comparing optimization levels.
8941 (expand_call_inline): Do not test inline_forbidden_into_p.
8942 * Makefile.in (ipa-inline.o): Update arguments.
8943
8944 2011-04-17 Revital Eres <revital.eres@linaro.org>
8945
8946 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8947
8948 2011-04-17 Revital Eres <revital.eres@linaro.org>
8949
8950 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8951
8952 2011-04-17 Michael Matz <matz@suse.de>
8953
8954 PR tree-optimization/48622
8955 PR lto/48645
8956 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8957 in same order as they're written.
8958
8959 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8960
8961 * config/pa/predicates.md: Reorganize and simplify predicates.
8962 Eliminate duplicate code checks.
8963 (arith_operand): Rename to arith14_operand
8964 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8965 * config/pa/pa.md: Use renamed operands.
8966 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8967 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8968 arith11_operand, adddi3_operand, indexed_memory_operand,
8969 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8970 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8971 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8972 move_dest_operand, move_src_operand, prefetch_cc_operand,
8973 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8974 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8975 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8976 div_operand, int5_operand, movb_comparison_operator,
8977 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8978 arith_double_operand, ireg_operand, lhs_lshift_operand,
8979 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8980 integer_store_memory_operand): Likewise.
8981 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8982 (integer_store_memory_operand, read_only_operand,
8983 function_label_operand, borx_reg_operand,
8984 non_hard_reg_operand): Likewise.
8985 (eq_neq_comparison_operator): Delete unused operator.
8986 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8987 function_label_operand.
8988 (emit_move_sequence): Likewise.
8989
8990 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8991
8992 * config/i386/sse.md (sseunpackmode): New mode attribute.
8993 (ssepackmode): Ditto.
8994 (vec_pack_trunc_<mode>): Macroize expander from
8995 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8996 (vec_unpacks_lo_<mode>): Macroize expander from
8997 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8998 (vec_unpacks_hi_<mode>): Macroize expander from
8999 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9000 (vec_unpacku_lo_<mode>): Macroize expander from
9001 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9002 (vec_unpacku_hi_<mode>): Macroize expander from
9003 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9004 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9005 ix86_expand_sse4_unpack.
9006 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9007
9008 2011-04-16 Jan Hubicka <jh@suse.cz>
9009
9010 * cgraphbuild.c: Include ipa-inline.h.
9011 (reset_inline_failed): Use initialize_inline_failed.
9012 * cgraph.c: Include ipa-inline.h.
9013 (cgraph_create_node_1): Do not initialize estimated_growth.
9014 (initialize_inline_failed): More to ipa-inline-analysis.c
9015 (dump_cgraph_node): Do not dump inline flags.
9016 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9017 and disregard_inline_limits flags.
9018 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9019 time, size, estimated_growth.
9020 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9021 Update.
9022 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9023 DECL_DISREGARD_INLINE_LIMITS.
9024 (cgraph_analyze_function): Do not initialize
9025 node->local.disregard_inline_limits.
9026 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9027 inlinable, versionable and disregard_inline_limits.
9028 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9029 cgraph_check_inline_limits, cgraph_default_inline_p,
9030 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9031 add_new_edges_to_heap): Update.
9032 (cgraph_decide_inlining_of_small_function): Update; set
9033 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9034 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9035 cgraph_decide_inlining_incrementally): Update.
9036 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9037 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9038 time, size and estimated_growth parameters.
9039 (estimate_edge_growth): Update.
9040 (initialize_inline_failed): Declare.
9041 * ipa-split.c: Include ipa-inline.h
9042 (execute_split_functions): Update.
9043 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9044 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9045 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9046 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9047 estimated_growth to INT_MIN.
9048 (inline_node_duplication_hook): Likewise.
9049 (dump_inline_summary): Dump new fields.
9050 (compute_inline_parameters): Update.
9051 (estimate_edge_time, estimate_time_after_inlining,
9052 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9053 inline_write_summary):
9054 (initialize_inline_failed): Move here from cgraph.c.
9055 * tree-sra.c: Include ipa-inline.h.
9056 (ipa_sra_preliminary_function_checks): Update.
9057 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9058 ipa-inline.h.
9059
9060 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9061
9062 * config/i386/sse.md (V16): New mode iterator.
9063 (VI1, VI8): Ditto.
9064 (AVXMODEQI, AVXMODEDI): Remove.
9065 (sse2, sse3): New mode attribute.
9066 (mov<mode>): Use V16 mode iterator.
9067 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9068 (push<mode>1): Use V16 mode iterator.
9069 (movmisalign<mode>): Ditto.
9070 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9071 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9072 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9073 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9074 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9075 avx_movdqu<avxmodesuffix>.
9076 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9077 *avx_movdqu<avxmodesuffix>.
9078 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9079 avx_lddqu<avxmodesuffix>.
9080 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9081 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9082 avx_movnt<AVXMODEDI:mode>.
9083 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9084 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9085
9086 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9087
9088 PR target/48629
9089 * haifa-sched.c (prune_ready_list, schedule_block): Use
9090 sched_pressure_p rather than flag_sched_pressure.
9091
9092 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9093
9094 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9095 cgraph_get_node instead of cgraph_get_create_node.
9096
9097 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9098
9099 * cfgexpand.c (expand_debug_expr): Use
9100 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9101
9102 2011-04-15 Michael Matz <matz@suse.de>
9103
9104 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9105 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9106 * function.c (gimplify_parameters): Ditto.
9107 * gimplify.c (gimplify_vla_decl): Ditto.
9108
9109 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9110 (gimple_call_set_alloca_for_var): New inline function.
9111 (gimple_call_alloca_for_var_p): Ditto.
9112 * gimple.c (gimple_build_call_from_tree): Remember
9113 CALL_ALLOCA_FOR_VAR_P state.
9114 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9115
9116 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9117 calls if they were for VLA objects.
9118
9119 2011-04-15 Martin Jambor <mjambor@suse.cz>
9120
9121 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9122 of ADR_EXPRs.
9123
9124 2011-04-15 Martin Jambor <mjambor@suse.cz>
9125
9126 PR middle-end/48601
9127 * tree-emutls.c (lower_emutls_function_body): Call
9128 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9129 result is non-NULL.
9130
9131 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9132
9133 * c-decl.c (detect_field_duplicates): Call
9134 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9135
9136 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9137
9138 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9139 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9140 * ipa-pure-const.c (check_stmt): Call it.
9141 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9142
9143 2011-04-15 Richard Guenther <rguenther@suse.de>
9144
9145 PR tree-optimization/48290
9146 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9147 Properly decide inhibiting propagation based on the valueized
9148 operand. Do loop-closed SSA form preserving here ...
9149 (init_copy_prop): ... not here.
9150
9151 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9152
9153 PR target/48612
9154 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9155 (*ieee_smax<mode>3): Likewise.
9156
9157 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9158
9159 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9160 Replace match_operand with match_dup for the third operand in
9161 these expanders.
9162
9163 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9164
9165 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9166 to track processing of conditionals. Update all callers.
9167 (try_combine, simplify_if_then_else): Update.
9168
9169 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9170
9171 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9172 -fsched-pressure.
9173
9174 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9175
9176 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9177 instead of match_operand for operand 3.
9178
9179 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9180
9181 * recog.h (insn_operand_data): Add an "allows_mem" field.
9182 * genoutput.c (output_operand_data): Initialize it.
9183 * optabs.c (maybe_legitimize_operand_same_code): New function.
9184 (maybe_legitimize_operand): Use it when matching the original
9185 op->value.
9186
9187 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9188
9189 * gimplify.c: Fix issues in comments throughout.
9190 (voidify_wrapper_expr): Fix long line.
9191 (build_stack_save_restore): Likewise.
9192 (gimplify_loop_expr): Likewise.
9193 (gimplify_compound_lval): Likewise.
9194 (gimplify_init_ctor_eval): Likewise.
9195 (gimplify_modify_expr_rhs): Likewise.
9196 (omp_notice_threadprivate_variable): Likewise.
9197
9198 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9199
9200 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9201 original one if this is not a builtin function.
9202
9203 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9204
9205 PR target/48605
9206 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9207 offset it as needed based on top 2 bits in operands[3], change
9208 MEM mode to SFmode and mask those 2 bits away from operands[3].
9209
9210 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9211
9212 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9213 change from objc_declare_protocols() to objc_declare_protocol().
9214
9215 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9216
9217 * config/i386/sse.md (sse4_1): New mode attribute.
9218 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9219 avx_blend<ssemodesuffix><avxmodesuffix> and
9220 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9221 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9222 avx_blendv<ssemodesuffix><avxmodesuffix> and
9223 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9224 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9225 avx_dp<ssemodesuffix><avxmodesuffix> and
9226 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9227 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9228 (sse4_1_packusdw): Merge with *avx_packusdw.
9229 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9230 (sse4_1_pblendw): Merge with *avx_pblendw.
9231 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9232 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9233 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9234 VF mode iterator.
9235 (sse4_1_round<ssescalarmodesuffix>): Merge with
9236 *avx_round<ssescalarmodesuffix>.
9237 (aesenc): Merge with *avx_aesenc.
9238 (aesenclast): Merge with *avx_aesenclast.
9239 (aesdec): Merge with *avx_aesdec.
9240 (aesdeclast): Merge with *avx_aesdeclast.
9241 (pclmulqdq): Merge with *pclmulqdq.
9242 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9243 New predicate.
9244 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9245
9246 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9247
9248 PR middle-end/48608
9249 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9250 (align_local_variable): This. Update DECL_ALIGN.
9251 (add_stack_var): Updated.
9252 (expand_one_stack_var): Likewise.
9253
9254 2011-04-14 Richard Guenther <rguenther@suse.de>
9255
9256 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9257 Remove.
9258 (dse_initialize_block_local_data, dse_leave_block,
9259 record_voperand_set, get_stmt_uid): Likewise.
9260 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9261 (dse_optimize_stmt): Remove voperand set handling code.
9262 Simplify and improve to handle any kind of killing stmt.
9263 (dse_record_phi): Remove.
9264 (dse_enter_block): Simplify.
9265 (tree_ssa_dse): Likewise.
9266 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9267
9268 2011-04-14 Jan Hubicka <jh@suse.cz>
9269
9270 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9271 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9272 (cgraph_local_info): Remove inline_summary.
9273 * ipa-cp.c: Include ipa-inline.h.
9274 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9275 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9276 accesor.
9277 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9278 (input_overwrite_node): Do not set inline summary.
9279 (input_node): Do not stream inline summary.
9280 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9281 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9282 growth; we do not have inline parameters computed for that anyway.
9283 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9284 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9285 (inline_summary_t): New type and VECtor.
9286 (debug_inline_summary, dump_inline_summaries): Declare.
9287 (inline_summary): Use VOCtor.
9288 (estimate_edge_growth): Kill hack computing call stmt size directly.
9289 * lto-section-in.c (lto_section_name): Add inline section.
9290 * ipa-inline-analysis.c: Include lto-streamer.h
9291 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9292 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9293 (inline_summary_vec): Define.
9294 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9295 dump_inline_summaries): New functions.
9296 (estimate_function_body_sizes): Properly compute size/time of outgoing
9297 calls.
9298 (compute_inline_parameters): Alloc inline_summary; do not compute
9299 size/time of incomming calls.
9300 (estimate_edge_time): Avoid missing time summary hack.
9301 (inline_read_summary): Read inline summary info.
9302 (inline_write_summary): Write inline summary info.
9303 (inline_free_summary): Free all hooks and inline summary vector.
9304 * lto-streamer.h: Add LTO_section_inline_summary section.
9305 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9306 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9307
9308 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9309
9310 * tree-vectorizer.h (vect_strided_store_supported): Add a
9311 HOST_WIDE_INT argument.
9312 (vect_strided_load_supported): Likewise.
9313 (vect_permute_store_chain): Return void.
9314 (vect_transform_strided_load): Likewise.
9315 (vect_permute_load_chain): Delete.
9316 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9317 count argument. Check that the count is a power of two.
9318 (vect_strided_load_supported): Likewise.
9319 (vect_permute_store_chain): Return void. Update after above changes.
9320 Assert that the access is supported.
9321 (vect_permute_load_chain): Likewise.
9322 (vect_transform_strided_load): Return void.
9323 * tree-vect-stmts.c (vectorizable_store): Update calls after
9324 above interface changes.
9325 (vectorizable_load): Likewise.
9326 (vect_analyze_stmt): Don't check for strided powers of two here.
9327
9328 2011-04-14 Richard Guenther <rguenther@suse.de>
9329
9330 PR tree-optimization/48590
9331 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9332 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9333 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9334 BUILT_IN_STACK_SAVE.
9335 * tree-ssa-dce.c (propagate_necessity): Handle
9336 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9337
9338 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9339
9340 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9341 objc_declare_class.
9342
9343 2011-04-14 Richard Guenther <rguenther@suse.de>
9344
9345 * tree.h (get_object_alignment_1): Declare.
9346 * builtins.c (get_object_alignment_1): Split out worker from ...
9347 (get_object_alignment): ... here.
9348 * fold-const.c (get_pointer_modulus_and_residue): Use
9349 get_object_alignment_1.
9350
9351 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9352
9353 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9354 type parameter.
9355 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9356 parameter. Generalise code to handle arrays as well as vectors.
9357 (vect_setup_realignment): Update accordingly.
9358 * tree-vect-stmts.c (vectorizable_store): Likewise.
9359 (vectorizable_load): Likewise.
9360
9361 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9362
9363 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9364 within the per-copy loop.
9365
9366 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9367
9368 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9369 in the dump file.
9370
9371 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9372
9373 * doc/options.texi (Negative): Explicitly mention that the
9374 Negative chain must be circular.
9375
9376 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9377
9378 * function.h (block_chainon): Declare.
9379 * function.c (block_chainon): Define.
9380
9381 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9382 Eric Weddington <eric.weddington@atmel.com>
9383 Georg-Johann Lay <avr@gjlay.de>
9384
9385 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9386 New Includes
9387 (avr_init_builtins, avr_expand_builtin,
9388 avr_expand_delay_cycles, avr_expand_unop_builtin,
9389 avr_expand_binop_builtin ): New functions.
9390 (avr_builtin_id): New enum
9391 (struct avr_builtin_description): New struct
9392 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9393 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9394
9395 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9396 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9397 UNSPECV_DELAY_CYCLES): new enumeration values
9398 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9399 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9400 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9401 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9402 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9403 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9404 "fmulsu"): New insns
9405
9406 * config/avr/avr-c.c: fix line endings
9407 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9408 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9409 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9410 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9411 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9412
9413 * doc/extend.texi (AVR Built-in Functions): New node
9414 (Target Builtins): Add documentation of AVR
9415 built-in functions.
9416
9417 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9418
9419 PR target/44643
9420 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9421 alone. Error if non-const data has attribute progmem.
9422
9423 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9424
9425 * tree.h (struct tree_constructor): Include tree_typed instead of
9426 tree_common.
9427 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9428 TS_TYPED instead of TS_COMMON.
9429
9430 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9431
9432 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9433 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9434 (sse2_psadbw): Merge with *avx_psadbw.
9435 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9436 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9437 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9438 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9439 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9440 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9441 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9442 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9443 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9444 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9445 (ssse3_palignrti): Merge with *avx_palignrti.
9446
9447 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9448
9449 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9450 * tree-ssanames.c (fini_ssanames): VEC_free it.
9451 (make_ssa_name_fn): Update for VECness of free_ssanames.
9452 (release_ssa_name, release_dead_ssa_names): Likewise.
9453 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9454 tree_common.
9455 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9456 TS_TYPED instead of TS_COMMON.
9457
9458 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9459
9460 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9461 statistics_counter_event.
9462 * tree-ssa-copyrename.c (stats): Define.
9463 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9464 statistics_counter_event.
9465 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9466 (bswap_stats, widen_mul_stats): Define.
9467 (insert_reciprocals): Increment rdivs_inserted.
9468 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9469 rfuncs_inserted. Add calls to statistics_counter_event.
9470 (execute_cse_sincos_1): Increment inserted.
9471 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9472 statistics_counter_event.
9473 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9474 of bswap_stats. Add calls to statistics_counter_event.
9475 (convert_mult_to_widen): Increment widen_mults_inserted.
9476 (convert_plusminus_to_widen): Increment maccs_inserted.
9477 (convert_mult_to_fma): Increment fmas_inserted.
9478 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9479 calls to statistics_counter_event.
9480
9481 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9482
9483 PR rtl-optimization/48455
9484 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9485 `temp_costs->mem_cost'.
9486
9487 2011-04-13 Jan Hubicka <jh@suse.cz>
9488
9489 * ipa-inline.h: New file.
9490 * ipa-inline-analysis.c: New file. Broken out of ...
9491 * ipa-inline.c: ... this file; update toplevel comment;
9492 include ipa-inline.h
9493 (inline_summary): Move to ipa-inline.h
9494 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9495 ipa-inline-analysis.c.
9496 (cgraph_estimate_time_after_inlining): Rename to
9497 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9498 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9499 to estimate_edge_growth.
9500 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9501 rename to estimate_size_after_inlining.
9502 (cgraph_mark_inline_edge): Update for new naming convention.
9503 (cgraph_check_inline_limits): Likewise.
9504 (cgraph_edge_badness): Likewise.
9505 (cgraph_decide_recursive_inlining): Likewise.
9506 (cgraph_decide_inlining_of_small_functions): Likewise.
9507 (cgraph_decide_inlining_incrementally): Likewise.
9508 (cgraph_estimate_growth): Rename to estimate_growth; move to
9509 ipa-inline-analysis.c.
9510 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9511 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9512 (compute_inline_parameters): Likewise.
9513 (compute_inline_parameters_for_current): Likewise.
9514 (pass_inline_parameters): Likewise.
9515 (inline_indirect_intraprocedural_analysis): Likewise.
9516 (analyze_function): Rename to inline_analyze_function; likewise.
9517 (add_new_function): Move to ipa-inline-analysis.c.
9518 (inline_generate_summary): Likewise.
9519 (inline_read_summary): Likewise.
9520 (inline_write_summary): Likewise.
9521 * Makefile.in (ipa-inline-analysis.c): New file.
9522
9523 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9524
9525 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9526 * configure: Regenerate.
9527
9528 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9529
9530 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9531 instead of tree_common.
9532 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9533 Likewise.
9534 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9535 TS_TYPED rather than TS_COMMON.
9536 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9537
9538 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9539
9540 PR target/45263
9541 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9542 r20 around calls of __tablejump_elpm__
9543
9544 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9545
9546 PR middle-end/48591
9547 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9548 NULL.
9549 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9550
9551 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9552
9553 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9554 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9555 (cfi_vec): New typedef.
9556 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9557 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9558 (cie_cfi_vec): New static variable.
9559 (cie_cfi_head): Delete.
9560 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9561 declaration changed. Use vector rather than list operations.
9562 (new_cfi): Don't initialize the dw_cfi_next field.
9563 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9564 rather than list operations.
9565 (lookup_cfa): Use vector rather than list operations.
9566 (output_cfis): New argument upto. Accept a cfi_vec rather than
9567 a dw_cfi_ref list head as argument. All callers changed.
9568 Iterate over the vector using upto as a maximum index.
9569 (output_all_cfis): New static function.
9570 (output_fde): Use vector rather than list operations. Use the
9571 new upto argument for output_cfis rather than manipulating a
9572 list.
9573 (dwarf2out_begin_prologue): Change initializations to match
9574 new struct members.
9575 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9576 from the vector length rather than searching for the end of a list.
9577 Use output_all_cfis.
9578 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9579
9580 2011-04-13 Nick Clifton <nickc@redhat.com>
9581
9582 * config/rx/rx.md (movmemsi): Do not use this pattern when
9583 volatile pointers are involved.
9584
9585 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9586
9587 * config/i386/sse.md (pinsrbits): Remove.
9588 (sse2_packsswb): Merge with *avx_packsswb.
9589 (sse2_packssdw): Merge with *avx_packssdw.
9590 (sse2_packuswb): Merge with *avx_packuswb.
9591 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9592 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9593 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9594 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9595 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9596 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9597 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9598 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9599 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9600 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9601 (sse2_loadld): Merge with *avx_loadld.
9602 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9603 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9604 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9605 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9606 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9607
9608 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9609
9610 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9611 calling TREE_CHAIN.
9612 * print-tree.c (print_node): Likewise.
9613 * tree-inline.c (copy_tree_r): Likewise.
9614 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9615 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9616 instead of TS_COMMON.
9617 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9618 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9619 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9620 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9621 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9622 ...and these...
9623 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9624 * tree.h: ...here.
9625 (TREE_CHAIN): Check for a TS_COMMON structure.
9626 (TREE_TYPE): Check for a TS_TYPED structure.
9627
9628 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9629
9630 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9631 cgraph_get_create_node instead of cgraph_node.
9632
9633 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9634
9635 * c-parser.c (c_parser_initelt): Updated call to
9636 objc_build_message_expr.
9637 (c_parser_postfix_expression): Likewise.
9638
9639 2011-04-12 Kai Tietz <ktietz@redhat.com>
9640
9641 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9642 MASK_MS_BITFIELD_LAYOUT bit.
9643
9644 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9645
9646 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9647 assert it is always true.
9648 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9649 moves.
9650
9651 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9652
9653 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9654 compiling Objective-C to be more efficient.
9655
9656 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9657
9658 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9659 argv_copied.
9660
9661 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9662
9663 * recog.h, genoutput.c, optabs.c: Revert last patch.
9664
9665 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9666
9667 PR target/48090
9668 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9669
9670 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9671
9672 * recog.h (insn_operand_data): Add an "allows_mem" field.
9673 * genoutput.c (output_operand_data): Initialize it.
9674 * optabs.c (maybe_legitimize_operand_same_code): New function.
9675 (maybe_legitimize_operand): Use it when matching the original
9676 op->value.
9677
9678 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9679
9680 * genpreds.c (process_define_predicate): Move most processing
9681 to gensupport.c. Continue to validate the expression.
9682 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9683 (process_define_predicate): Move processing to gensupport.c.
9684 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9685 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9686 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9687 argument.
9688 (valid_predicate_name_p): New function, split out from old
9689 genpreds.c:process_define_predicate.
9690 (process_define_predicate): New function, combining code from
9691 old genpreds.c and genrecog.c functions.
9692 (process_rtx): Call it for DEFINE_PREDICATE and
9693 DEFINE_SPECIAL_PREDICATE.
9694
9695 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9696
9697 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9698 size of a '%A' memory reference.
9699 (T_DREG, T_QREG): New neon_builtin_type_bits.
9700 (arm_init_neon_builtins): Assert that the load and store operands
9701 are neon_struct_operands.
9702 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9703 (NEON_ARG_MEMORY): New builtin_arg.
9704 (neon_dereference_pointer): New function.
9705 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9706 Handle NEON_ARG_MEMORY.
9707 (arm_expand_neon_builtin): Update after above interface changes.
9708 Use NEON_ARG_MEMORY for loads and stores.
9709 * config/arm/predicates.md (neon_struct_operand): New predicate.
9710 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9711 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9712 (V_four_elem): Tweak formatting.
9713 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9714 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9715 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9716 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9717 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9718 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9719 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9720 Use %A in the output template.
9721 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9722 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9723 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9724 the width of the memory access. Remove post-increment.
9725 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9726
9727 2011-04-12 Nick Clifton <nickc@redhat.com>
9728
9729 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9730 instruction for interrupt handlers if the target is the basic V850
9731 architecture.
9732 (expand_epilogue): Likewise.
9733
9734 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9735
9736 PR rtl-optimization/48549
9737 * combine.c (propagate_for_debug): Also stop after BB_END of
9738 this_basic_block. Process LAST and just stop processing after it.
9739 (combine_instructions): If last_combined_insn has been deleted,
9740 set last_combined_insn to its PREV_INSN.
9741
9742 2011-04-12 Richard Guenther <rguenther@suse.de>
9743
9744 PR tree-optimization/46076
9745 * gimple.h (struct gimple_statement_call): Add fntype field.
9746 (gimple_call_fntype): Adjust.
9747 (gimple_call_set_fntype): New function.
9748 * gimple.c (gimple_build_call_1): Set the call function type.
9749 * gimplify.c (gimplify_call_expr): Preserve the function
9750 type the frontend used for the call.
9751 (gimplify_modify_expr): Likewise.
9752 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9753 function type.
9754 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9755 function type.
9756 * tree-ssa.c (useless_type_conversion_p): Function pointer
9757 conversions are useless.
9758
9759 2011-04-12 Martin Jambor <mjambor@suse.cz>
9760
9761 * cgraph.h (cgraph_node): Remove function declaration.
9762 (cgraph_create_node): Declare.
9763 (cgraph_get_create_node): Likewise.
9764 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9765 Updated all callers.
9766 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9767 the decl does not already exist. Call cgraph_get_create_node instead
9768 of cgraph_node.
9769 (cgraph_get_create_node): New function.
9770 (cgraph_same_body_alias): Update comment.
9771 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9772 assert it does not return NULL.
9773 (cgraph_update_edges_for_call_stmt): Likewise.
9774 (cgraph_clone_edge): Likewise.
9775 (cgraph_create_virtual_clone): Likewise.
9776 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9777 instead of cgraph_node.
9778 (cgraph_add_new_function): Call cgraph_create_node or
9779 cgraph_get_create_node instead of cgraph_node.
9780 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9781 instead of cgraph_node.
9782 (record_eh_tables): Likewise.
9783 (mark_address): Likewise.
9784 (mark_load): Likewise.
9785 (build_cgraph_edges): Call cgraph_get_create_node instead
9786 of cgraph_node.
9787 (rebuild_cgraph_edges): Likewise.
9788 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9789 instead of cgraph_node.
9790 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9791 cgraph_node.
9792 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9793 cgraph_create_node instead of cgraph_node.
9794 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9795 of cgraph_node.
9796 * lto-cgraph.c (input_node): Likewise.
9797 * lto-streamer-in.c (input_function): Likewise.
9798 * varasm.c (mark_decl_referenced): Likewise.
9799 (assemble_alias): Likewise.
9800
9801 2011-04-12 Martin Jambor <mjambor@suse.cz>
9802
9803 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9804 instead of cgraph_node and assert it does not return NULL.
9805 * lto-streamer-in.c (lto_read_body): Likewise.
9806 * omp-low.c (new_omp_context): Likewise.
9807 (create_task_copyfn): Likewise.
9808 * tree-emutls.c (lower_emutls_function_body): Likewise.
9809 * matrix-reorg.c (transform_allocation_sites): Likewise.
9810
9811 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9812
9813 PR c/48552
9814 * c-typeck.c (build_asm_expr): Error out on attempts to use
9815 void type outputs or inputs for constraints that allow reg or
9816 don't allow memory.
9817
9818 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9819 Richard Earnshaw <rearnsha@arm.com>
9820
9821 PR target/48250
9822 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9823 to use sign-magnitude offsets. Reject unsupported unaligned
9824 cases. Add detailed description in comments.
9825 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9826 condition from TARGET_32BIT to TARGET_ARM.
9827
9828 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9829
9830 * tree.h (struct typed_tree): New.
9831 (struct tree_common): Include it instead of tree_base.
9832 (TREE_TYPE): Update for new location of type field.
9833 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9834 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9835 (union tree_node): Add typed field.
9836 * treestruct.def (TS_TYPED): New.
9837 * lto-streamer.c (check_handled_ts_structures): Handle it.
9838 * tree.c (MARK_TS_TYPED): New macro.
9839 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9840
9841 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9842
9843 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9844 (force_nonfallthru): Do not alter the loop nest if no basic block
9845 was created.
9846
9847 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9848
9849 * config/i386/sse.md (VI): New mode iterator.
9850 (SSEMODEI): Remove.
9851 (AVX256MODEI): Ditto.
9852 (AVXMODEF4P): Ditto.
9853 (avxvecpsmode): Ditto.
9854 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9855 (sse2_andnot<mode>3): New expander.
9856 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9857 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9858 (<any_logic:code><mode>3): Use VI mode iterator.
9859 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9860 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9861 (*andnottf3): Handle AVX three-operand constraints.
9862 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9863
9864 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9865 Robert Millan <rmh@gnu.org>
9866
9867 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9868 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9869 GNU_USER_DYNAMIC_LINKER64): Define.
9870 (REG_NAME): Don't undefine.
9871 (MD_UNWIND_SUPPORT): Undefine.
9872 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9873 (REG_NAME): Don't undefine.
9874 (MD_UNWIND_SUPPORT): Undefine.
9875 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9876
9877 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9878
9879 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9880 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9881
9882 2011-04-11 Xinliang David Li <davidxl@google.com>
9883
9884 * value-profile.c (check_ic_target): New function.
9885 (gimple_ic_transform): Sanity check indirect call target.
9886 * gimple-low.c (gimple_check_call_args): Interface change.
9887 (gimple_check_call_matching_types): New function.
9888 * tree-inline.c (tree_can_inline_p): Call new function.
9889
9890 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9891
9892 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9893 tree-pretty-print.h & realmpfr.h.
9894
9895 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9896
9897 PR middle-end/48464
9898 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9899 (setup_allocno_and_important_classes): Ditto.
9900
9901 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9902
9903 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9904 GNU_USER_DYNAMIC_LINKER.
9905 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9906 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9907 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9908 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9909 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9910 GNU_USER_TARGET_OS_CPP_BUILTINS.
9911 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9912 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9913 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9914 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9915 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9916 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9917 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9918 GNU_USER_TARGET_OS_CPP_BUILTINS.
9919 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9920 GNU_USER_DYNAMIC_LINKER.
9921 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9922 GNU_USER_TARGET_OS_CPP_BUILTINS.
9923 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9924 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9925 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9926 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9927 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9928 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9929 GNU_USER_DYNAMIC_LINKER64): Remove.
9930 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9931 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9932 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9933 GNU_USER_DYNAMIC_LINKER.
9934 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9935 GNU_USER_TARGET_OS_CPP_BUILTINS.
9936 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9937 GNU_USER_TARGET_OS_CPP_BUILTINS.
9938 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9939 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9940 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9941 GNU_USER_TARGET_OS_CPP_BUILTINS.
9942 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9943 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9944 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9945 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9946 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9947 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9948 GNU_USER_DYNAMIC_LINKER.
9949 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9950 GNU_USER_TARGET_OS_CPP_BUILTINS.
9951 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9952 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9953 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9954 GNU_USER_DYNAMIC_LINKER.
9955 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9956 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9957 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9958 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9959 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9960 GNU_USER_DYNAMIC_LINKER.
9961 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9962 GNU_USER_DYNAMIC_LINKERN32.
9963 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9964 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9965 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9966 GNU_USER_DYNAMIC_LINKER32.
9967 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9968 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9969 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9970 GNU_USER_DYNAMIC_LINKER.
9971 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9973 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9975 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9976 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9977 GNU_USER_DYNAMIC_LINKER32.
9978 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9979 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9980 GNU_USER_DYNAMIC_LINKER.
9981 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9983 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9984 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9985 GNU_USER_DYNAMIC_LINKER64.
9986 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9987 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9988 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9989 GNU_USER_DYNAMIC_LINKER.
9990 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9993 GNU_USER_DYNAMIC_LINKER.
9994 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9995 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9996 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9997 GNU_USER_DYNAMIC_LINKER32.
9998 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9999 GNU_USER_DYNAMIC_LINKER64.
10000 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10001 GNU_USER_DYNAMIC_LINKER64.
10002 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10004 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10006 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10007
10008 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10009
10010 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10011 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10012 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10013 GNU_USER_DYNAMIC_LINKER.
10014 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10015 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10016 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10017 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10018 GNU_USER_DYNAMIC_LINKER64.
10019 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10020 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10021 GNU_USER_LINK_EMULATION.
10022 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10023 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10024 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10025 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10026 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10027 CPP_SPEC, CC1_SPEC): Remove.
10028 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10029 (GNU_USER_DYNAMIC_LINKER): Define.
10030 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10031 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10032 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10033 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10034 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10035 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10036 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10037 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10038 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10039 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10040 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10041 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10042 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10043 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10044 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10045 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10046 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10047 GNU_USER_DYNAMIC_LINKER.
10048 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10049 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10050 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10051 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10052 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10053 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10054 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10055 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10056 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10057 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10058
10059 2011-04-11 Kai Tietz <ktietz@redhat.com>
10060
10061 PR target/9601
10062 PR target/11772
10063 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10064 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10065 comment.
10066 (ix86_is_msabi_thiscall): Removed.
10067 (ix86_is_type_thiscall): Likewise.
10068 (ix86_get_callcvt): New function.
10069 (ix86_comp_type_attributes): Simplify check.
10070 (ix86_function_regparm): Use ix86_get_callcvt for calling
10071 convention attribute checks.
10072 (ix86_return_pops_args): Likewise.
10073 (ix86_static_chain): Likewise.
10074 (x86_this_parameter): Likewise.
10075 (x86_output_mi_thunk): Likewise.
10076 (ix86_function_type_abi): Optimize check for types without attributes.
10077 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10078 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10079 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10080 by flag-values.
10081 (IX86_BASE_CALLCVT): Helper macro.
10082 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10083 Use ix86_get_callcvt for calling convention attribute checks and avoid
10084 symbol-decoration for stdcall in TARGET_RTD case.
10085 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10086 Likewise.
10087 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10088 for declaration.
10089
10090 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10091
10092 * config/i386/sse.md (VI_128): New mode iterator.
10093 (VI12_128): Rename from SSEMODE12.
10094 (VI14_128): Rename from SSEMODE14.
10095 (VI124_128): New mode iterator.
10096 (VI24_128): Rename from SSEMODE248.
10097 (VI248_128): Rename from SSEMODE248.
10098 (SSEMODE124C8): Remove.
10099 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10100 (*sse2_<plusminus_insn><mode>3): Merge with
10101 *avx_<plusminus_insn><mode>3.
10102 (*mulv8hi3): Merge with *avx_mulv8hi3.
10103 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10104 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10105 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10106 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10107 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10108 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10109 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10110 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10111 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10112 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10113 (*<smaxmin:code>v8hi3): Ditto.
10114 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10115 (*<smaxmin:code>v16qi3): Ditto.
10116 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10117 (*sse2_eq<mode>3): Ditto.
10118 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10119 (*sse2_gt<mode>3): Ditto.
10120 (vcondv2di): Split out of vcond<mode>.
10121 (vconduv2di): Split out of vcondu<mode>.
10122
10123 2011-04-11 Richard Guenther <rguenther@suse.de>
10124
10125 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10126 before calling tree_low_cst.
10127
10128 2011-04-11 Richard Guenther <rguenther@suse.de>
10129
10130 * stor-layout.c (layout_type): Compute all array index size operations
10131 in the original type.
10132 (initialize_sizetypes): Add comment.
10133 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10134
10135 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10136
10137 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10138
10139 2011-04-11 Martin Jambor <mjambor@suse.cz>
10140
10141 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10142 of cgraph_node, handle NULL return value.
10143 (cgraph_global_info): Likewise.
10144 (cgraph_rtl_info): Likewise.
10145 * tree-inline.c (estimate_num_insns): Likewise.
10146 * gimplify.c (unshare_body): Likewise.
10147 (unvisit_body): Likewise.
10148 (gimplify_body): Likewise.
10149 * predict.c (optimize_function_for_size_p): Likewise.
10150 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10151 (call_may_clobber_ref_p_1): Likewise.
10152 * varasm.c (function_section_1): Likewise.
10153 (assemble_start_function): Likewise.
10154
10155 2011-04-11 Martin Jambor <mjambor@suse.cz>
10156
10157 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10158 of cgraph_node.
10159 * final.c (rest_of_clean_state): Likewise.
10160 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10161 * passes.c (pass_init_dump_file): Likewise.
10162 (execute_all_ipa_transforms): Likewise.
10163 (function_called_by_processed_nodes_p): Likewise.
10164 * predict.c (maybe_hot_frequency_p): Likewise.
10165 (probably_never_executed_bb_p): Likewise.
10166 (compute_function_frequency): Likewise.
10167 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10168 (unnest_nesting_tree_1): Likewise.
10169 (lower_nested_functions): Likewise.
10170 * tree-optimize.c (execute_fixup_cfg): Likewise.
10171 (tree_rest_of_compilation): Likewise.
10172 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10173 * tree-sra.c (ipa_early_sra): Likewise.
10174 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10175 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10176 * ipa.c (record_cdtor_fn): Likewise.
10177 * ipa-inline.c (cgraph_early_inlining): Likewise.
10178 (compute_inline_parameters_for_current): Likewise.
10179 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10180 * ipa-pure-const.c (local_pure_const): Likewise.
10181 * ipa-split.c (split_function): Likewise.
10182 (execute_split_functions): Likewise.
10183 * cgraphbuild.c (build_cgraph_edges): Likewise.
10184 (rebuild_cgraph_edges): Likewise.
10185 (cgraph_rebuild_references): Likewise.
10186 (remove_cgraph_callee_edges): Likewise.
10187 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10188 (verify_cgraph_node): Likewise.
10189 (cgraph_analyze_functions): Likewise.
10190 (cgraph_preserve_function_body_p): Likewise.
10191 (save_inline_function_body): Likewise.
10192 (save_inline_function_body): Likewise.
10193 * tree-inline.c (copy_bb): Likewise.
10194 (optimize_inline_calls): Likewise.
10195
10196 2011-04-11 Martin Jambor <mjambor@suse.cz>
10197
10198 PR tree-optimization/48195
10199 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10200 ipa_check_create_edge_args.
10201 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10202 ipa_check_create_edge_args.
10203 * ipa-inline.c (inline_generate_summary): Do not call
10204 ipa_check_create_node_params and ipa_check_create_edge_args.
10205 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10206 ipa_check_create_edge_args.
10207
10208 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10209
10210 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10211 instead of loop.
10212 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10213 * function.c (record_hard_reg_sets): Likewise.
10214 * ira.c (compute_regs_asm_clobbered): Likewise.
10215 * sched-deps.c (sched_analyze_1): Likewise.
10216 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10217
10218 2011-04-09 Xinliang David Li <davidxl@google.com>
10219
10220 PR tree-optimization/PR48484
10221 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10222 has_valid_pred lazily
10223
10224 2011-04-09 Duncan Sands <baldrick@free.fr>
10225
10226 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10227
10228 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10229
10230 * combine.c (combine_validate_cost): Adjust comments. Set registered
10231 cost of I0 to zero at the end, if any.
10232
10233 2011-04-08 Xinliang David Li <davidxl@google.com>
10234
10235 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10236 to insane profile data.
10237
10238 2011-04-08 Xinliang David Li <davidxl@google.com>
10239
10240 * ipa-cp.c (ipcp_update_profiling): Correct
10241 negative scale factor due to insane profile data.
10242
10243 2011-04-08 Xinliang David Li <davidxl@google.com>
10244
10245 * final.c (dump_basic_block_info): New function.
10246 (final): Dump basic block.
10247 (final_scan_insn): Remove old dump.
10248
10249 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10250
10251 PR target/47829
10252 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10253 crtbegin/crtend.
10254
10255 2011-04-08 Michael Matz <matz@suse.de>
10256
10257 PR middle-end/48389
10258 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10259 functions.
10260 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10261 * rtl.h (rebuild_jump_labels_chain): Declare.
10262 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10263 insns inserted on edges.
10264
10265 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10266
10267 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10268 * config/arm/arm-arches.def: New.
10269 * config/arm/arm-opts.h: New.
10270 * config/arm/genopt.sh: New.
10271 * config/arm/arm-tables.opt: New (generated).
10272 * config/arm/arm.c (arm_handle_option, arm_target_help,
10273 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10274 (all_architectures): Get most table contents from arm-arches.def.
10275 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10276 arm_selected_tune here.
10277 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10278 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10279 (march=, mcpu=, mtune=): Use Enum and Var.
10280 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10281 (arm.o): Update dependencies.
10282
10283 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10284
10285 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10286 of header_file.
10287 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10288 (write_typed_alloc_defns): Likewise.
10289 (main): Calls write_typed_alloc_defns with output_header.
10290
10291 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10292
10293 PR inline-asm/48435
10294 * ira-color.c (setup_profitable_hard_regs): Add comments.
10295 Don't take prohibited hard regs into account.
10296 (setup_conflict_profitable_regs): Rename to
10297 get_conflict_profitable_regs.
10298 (check_hard_reg_p): Check prohibited hard regs.
10299
10300 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10301
10302 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10303 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10304 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10305
10306 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10307
10308 PR target/48366
10309 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10310 move from floating point to shift amount register.
10311 (emit_move_sequence): Remove secondary reload support for floating
10312 point to shift amount amount register copies.
10313 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10314 amount register copies.
10315 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10316 register, return false if mode isn't a scalar integer mode.
10317 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10318
10319 2011-04-08 Richard Guenther <rguenther@suse.de>
10320
10321 * gimple.c (gimple_call_flags): Remove kludge.
10322
10323 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10324
10325 * sel-sched.c (sel_region_init): Move call to
10326 sel_setup_region_sched_flags after setup_current_loop_nest.
10327
10328 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10329
10330 PR rtl-optimization/48272
10331 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10332 init_insn_reg_pressure_info. Adjust a caller.
10333 * sched-int.h (init_insn_reg_pressure_info): Declare.
10334 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10335 when sched-pressure is enabled.
10336
10337 2011-04-08 Richard Guenther <rguenther@suse.de>
10338
10339 * gimple.c (gimple_set_modified): Do not queue calls to
10340 MODIFIED_NORETURN_CALLS here ...
10341 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10342
10343 2011-04-08 Richard Guenther <rguenther@suse.de>
10344
10345 PR lto/48467
10346 * toplev.c (lang_dependent_init): Do not open asm_out_file
10347 in WPA mode, nor perform debug machinery initialization.
10348 (finalize): Do not unlink asm_out_file in WPA mode.
10349
10350 2011-04-08 Richard Guenther <rguenther@suse.de>
10351
10352 * gimple.h (gimple_call_fntype): New function.
10353 (gimple_call_return_type): Use it.
10354 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10355 * gimple-low.c (gimple_check_call_args): Likewise.
10356 * gimple.c (gimple_call_flags): Likewise.
10357 (gimple_call_arg_flags): Likewise.
10358 (gimple_call_return_flags): Likewise.
10359 * tree-cfg.c (verify_gimple_call): Likewise.
10360 (do_warn_unused_result): Likewise.
10361 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10362 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10363
10364 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10365
10366 PR rtl-optimization/48235
10367 * sel-sched.c (code_motion_process_successors): Recompute the last
10368 insn in basic block if control flow changed.
10369 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10370 Update condition for ilist_remove.
10371
10372 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10373
10374 PR rtl-optimization/48302
10375 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10376 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10377 it to record added preheader blocks.
10378 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10379 on to sel_add_loop_preheaders.
10380 (sel_region_init): Move call to setup_current_loop_nest after
10381 sel_init_bbs.
10382
10383 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10384
10385 PR target/48273
10386 * cfgloop.h (loop_has_exit_edges): New helper.
10387 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10388 non-clonable.
10389 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10390 that have no exit edges.
10391
10392 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10393
10394 PR rtl-optimization/48442
10395 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10396 all callers. Adjust assert.
10397
10398 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10399
10400 PR tree-optimization/48377
10401 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10402 is_packed to true even for types with smaller TYPE_ALIGN than
10403 TYPE_SIZE.
10404
10405 2011-04-08 Richard Guenther <rguenther@suse.de>
10406
10407 PR bootstrap/48513
10408 * doc/tm.texi: Re-generate.
10409
10410 2011-04-08 Wei Guozhi <carrot@google.com>
10411
10412 PR target/47855
10413 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10414 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10415 * config/arm/arm.md (*push_multi): Change the length computation to
10416 call a C function.
10417
10418 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10419
10420 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10421 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10422 * doc/tm.texi: Regenerate.
10423 * system.h (ASM_OUTPUT_BSS): Poison.
10424 * varasm.c (asm_output_bss): Remove function.
10425 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10426
10427 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10428 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10429 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10430 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10431 Likewise.
10432 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10433 Likewise.
10434 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10435 Likewise.
10436 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10437
10438 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10439
10440 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10441 EnumValue lines.
10442
10443 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10444
10445 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10446 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10447 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10448 OPT_mcpu32.
10449 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10450 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10451 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10452 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10453 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10454 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10455 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10456 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10457 options. Don't map other m68k options manually. Don't handle
10458 old-style options as canonical.
10459 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10460 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10461
10462 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10463
10464 * basic-block.h (force_nonfallthru): Move to...
10465 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10466 (force_nonfallthru): ...here.
10467 * cfghooks.c (force_nonfallthru): New function.
10468 * cfgrtl.c (force_nonfallthru): Rename into...
10469 (rtl_force_nonfallthru): ...this.
10470 (commit_one_edge_insertion): Do not set AUX field.
10471 (commit_edge_insertions): Do not discover new basic blocks.
10472 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10473 (cfg_layout_rtl_cfg_hooks): Likewise.
10474 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10475 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10476 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10477
10478 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10479
10480 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10481 Remove macros.
10482
10483 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10484
10485 * config/i386/sse.md: Update copyright year.
10486 (avxcvtvecmode): Remove.
10487 (sse_movhlps): Merge with *avx_movhlps.
10488 (sse_movlhps): Merge with *avx_movlhps.
10489 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10490 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10491 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10492 (sse_loadhps): Merge with *avx_loadhps.
10493 (sse_storelps): Merge with *avx_storelps.
10494 (sse_loadlps): Merge with *avx_loadlps.
10495 (sse_movss): Merge with *avx_movss.
10496 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10497 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10498 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10499 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10500 (vec_set<mode>_0): Ditto.
10501 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10502 (sse4_1_insertps): Merge with *avx_insertps.
10503 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10504 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10505 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10506 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10507 (sse2_storehpd): Merge with *avx_storehpd.
10508 (sse2_loadhpd): Merge with *avx_loadhpd.
10509 (sse2_loadlpd): Merge with *avx_loadlpd.
10510 (sse2_movsd): Merge with *avx_movsd.
10511 (*vec_concatv2df): Merge with *vec_concatv2df.
10512
10513 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10514
10515 PR debug/48343
10516 * combine.c (combine_instructions): Add last_combined_insn,
10517 update it if insn is after it, pass it to all try_combine calls.
10518 (try_combine): Add last_combined_insn parameter, pass it instead of
10519 i3 to propagate_for_debug.
10520
10521 2011-04-07 Nick Clifton <nickc@redhat.com>
10522
10523 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10524 to handle MDR <-> data register transfers.
10525 (movhi_internal): Likewise.
10526
10527 2011-04-07 Alan Modra <amodra@gmail.com>
10528
10529 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10530 previous stack info.
10531
10532 2011-04-07 Tom de Vries <tom@codesourcery.com>
10533
10534 PR target/43920
10535 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10536 flow_find_cross_jump. Swap variables to implement backward replacement.
10537 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10538
10539 2011-04-07 Tom de Vries <tom@codesourcery.com>
10540
10541 PR target/43920
10542 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10543 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10544 and bb2.
10545 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10546 src1 or src2. Redirect edges to the last basic block. Update
10547 frequency and count on multiple basic blocks in case of fallthru.
10548
10549 2011-04-07 Tom de Vries <tom@codesourcery.com>
10550
10551 PR target/43920
10552 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10553 function.
10554 (old_insns_match_p): Change return type. Replace return false/true
10555 with return dir_none/dir_both. Use can_replace_by.
10556 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10557 direction from dir_p. Register replacement direction in dir, last_dir
10558 and afterlast_dir. Handle new return type of old_insns_match_p using
10559 merge_dir. Return replacement direction in dir_p.
10560 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10561 return type of old_insns_match_p.
10562 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10563 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10564 flow_find_cross_jump.
10565 * basic-block.h (enum replace_direction): New type.
10566 (flow_find_cross_jump): Add parameter to declaration.
10567
10568 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10569
10570 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10571 (AVXMODEDCVTPS2DQ): Ditto.
10572 (VEC_FLOAT_MODE): Ditto.
10573 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10574 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10575 (<any_logic:code><mode>3): Use VF mode iterator.
10576 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10577 Use VF mode iterator.
10578 (copysign<mode>3): Use VF mode iterator.
10579 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10580 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10581 (*<any_logic:code><MODEF:mode>3): Merge with
10582 *avx_<any_logic:code><MODEF:mode>3.
10583 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10584 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10585 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10586 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10587 (sse2_cvtdq2ps): Use %v modifier.
10588 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10589 (avx_cvtps2dq<avxmodesuffix>): Remove.
10590 (sse2_cvtps2dq): Use %v modifier.
10591 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10592 (avx_cvttps2dq<avxmodesuffix>): Remove.
10593 (sse2_cvttps2dq): Use %v modifier.
10594 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10595 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10596 (sse2_cvtsd2siq): Fix insn template.
10597 (sse2_cvtsd2siq_2): Ditto.
10598 (sse2_cvttsd2siq): Ditto.
10599 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10600 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10601
10602 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10603
10604 * gcov-io.c: Use GCC Runtime Library Exception.
10605
10606 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10607
10608 PR debug/48466
10609 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10610 as base_reg whatever register reg has been eliminated to, instead
10611 of hardcoding STACK_POINTER_REGNUM.
10612
10613 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10614
10615 * doc/tm.texi.in: Document C target hooks as separate from general
10616 target hooks.
10617 * doc/tm.texi: Regenerate.
10618 * genhooks.c (struct hook_desc): Add docname field.
10619 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10620 docname field.
10621 (hook_array): Include c-target.def.
10622 (emit_documentation): Use docname field in output.
10623 (emit_init_macros): Take docname argument. Only emit definitions
10624 for hooks matching docname.
10625 (main): Expect additional arguments in all cases. Pass argument
10626 to emit_init_macros.
10627 * target.def: Move initial macro definitions and comments to
10628 target-hooks-macros.h.
10629 (gcc_targetcm): Move to c-family/c-target.def.
10630 * target.h (targetcm): Move declaration to c-family/c-target.h.
10631 * targhooks.c (default_handle_c_option): Move to
10632 c-family/c-opts.c.
10633 * targhooks.h (default_handle_c_option): Move declaration to
10634 c-family/c-common.h.
10635 * target-hooks-macros.h: New file.
10636 * config.gcc (target_has_targetcm): Define and use to add to
10637 c_target_objs and cxx_target_objs.
10638 * config/default-c.c: New file.
10639 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10640 of target.h and target-def.h.
10641 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10642 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10643 darwin_check_cfstring_format_arg): Make static.
10644 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10645 TARGET_STRING_OBJECT_REF_TYPE_P,
10646 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10647 * config/darwin-protos.h (darwin_objc_construct_string,
10648 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10649 declare.
10650 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10651 TARGET_STRING_OBJECT_REF_TYPE_P,
10652 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10653 * config/t-darwin (darwin-c.o): Update dependencies.
10654 * system.h (TARGET_HAS_TARGETCM): Poison.
10655 * Makefile.in (TARGET_H): Update.
10656 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10657 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10658 (default-c.o): New target.
10659 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10660 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10661 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10662 c-target.def.
10663 (build/genhooks.o): Update dependencies.
10664
10665 2011-04-06 Richard Guenther <rguenther@suse.de>
10666
10667 * ipa-inline.c (enum inlining_mode): Remove.
10668 (cgraph_flatten): Use some other token.
10669 (cgraph_edge_early_inlinable_p): New function, split out from ...
10670 (cgraph_perform_always_inlining): New function, split out from ...
10671 (cgraph_decide_inlining_incrementally): ... here.
10672 (cgraph_mark_inline_edge): Adjust.
10673 (cgraph_early_inlining): Re-structure.
10674 (pass_early_inline): Require SSA form.
10675
10676 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10677 Julian Brown <julian@codesourcery.com>
10678 Mark Shinwell <shinwell@codesourcery.com>
10679
10680 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10681 LO_REGS only for Thumb-1.
10682 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10683 be used in short instructions when optimising for size on Thumb-2.
10684
10685 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10686
10687 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10688 associated with user returns to be preserved.
10689
10690 2011-04-06 Tristan Gingold <gingold@adacore.com>
10691
10692 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10693 symbol_queue_size, DBXOUT_DECR_NESTING,
10694 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10695 if XCOFF_DEBUGGING_INFO.
10696
10697 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10698
10699 * config/i386/i386.md (attribute isa): New.
10700 (attribute enabled): New.
10701 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10702 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10703 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10704 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10705 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10706 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10707 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10708 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10709
10710 * config/i386/sse.md (VF): New mode iterator.
10711 (VF1): Ditto.
10712 (VF2): Ditto.
10713 (VF_128): Ditto.
10714 (SSEMODEF4): Remove.
10715 (attribute sse): Handle V8SF and V4DF modes.
10716 (<absneg:code><mode>2): Use VF mode iterator.
10717 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10718 mode iterator.
10719 (<plusminus_insn><mode>3): Use VF mode iterator.
10720 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10721 Use VF mode iterator.
10722 (<sse>_vm<plusminus_insn><mode>3): Merge with
10723 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10724 (mul<mode>3): Use VF mode iterator.
10725 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10726 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10727 mode iterator.
10728 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10729 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10730 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10731 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10732 mode iterator.
10733 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10734 Use VF1 mode iterator.
10735 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10736 (sqrt<VF2:mode>2): New expander.
10737 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10738 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10739 and sqrtv2df2. Use VF mode iterator.
10740 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10741 mode iterator.
10742 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10743 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10744 Use VF1 mode iterator.
10745 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10746 (<smaxmin:code><mode>3): Use VF mode iterator.
10747 (*<smaxmin:code><mode>3_finite): Merge with
10748 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10749 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10750 (<sse>_vm<smaxmin:code><mode>2): Merge with
10751 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10752 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10753 mode iterator.
10754 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10755 mode iterator.
10756 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10757 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10758 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10759 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10760 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10761 VF mode iterator.
10762 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10763 Use VF_128 mode iterator.
10764 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10765 mode iterator.
10766 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10767 VF_128 mode iterator.
10768 (vcond<mode>): Use VF mode iterator.
10769 * config/i386/predicates.md (sse_comparison_operator): Merge with
10770 avx_comparison_float_operator. Do not declare as special_predicate.
10771 * config/i386/i386.c (struct builtin_description): Update for renamed
10772 compare patterns.
10773 (ix86_expand_args_builtin): Ditto.
10774 (ix86_expand_sse_compare_mask): Ditto.
10775
10776 2011-04-06 Richard Guenther <rguenther@suse.de>
10777
10778 * tree-inline.c (estimate_num_insns): For calls simply account
10779 for all passed arguments and a used return value.
10780
10781 2011-04-06 Richard Guenther <rguenther@suse.de>
10782
10783 PR tree-optimization/47663
10784 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10785 call_stmt_time fields.
10786 (cgraph_edge_inlinable_p): Declare.
10787 (cgraph_edge_recursive_p): New inline function.
10788 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10789 (cgraph_clone_edge): Copy it.
10790 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10791 Account for call stmt time.
10792 (cgraph_estimate_time_after_inlining): Take edge argument.
10793 (cgraph_estimate_edge_growth): Account call stmt size.
10794 (cgraph_estimate_size_after_inlining): Take edge argument.
10795 (cgraph_mark_inline_edge): Adjust.
10796 (cgraph_check_inline_limits): Likewise.
10797 (cgraph_recursive_inlining_p): Remove.
10798 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10799 (cgraph_decide_recursive_inlining): Take edge argument and
10800 adjust.
10801 (cgraph_decide_inlining_of_small_functions): Do not avoid
10802 diags for recursive inlining here.
10803 (cgraph_flatten): Adjust.
10804 (cgraph_decide_inlining_incrementally): Likewise.
10805 (estimate_function_body_sizes): Remove call cost handling.
10806 (compute_inline_parameters): Initialize caller edge call costs.
10807 (cgraph_estimate_edge_growth): New function.
10808 (cgraph_estimate_growth): Use it.
10809 (cgraph_edge_badness): Likewise.
10810 (cgraph_check_inline_limits): Take an edge argument.
10811 (cgraph_decide_inlining_of_small_functions): Adjust.
10812 (cgraph_decide_inlining): Likewise.
10813 * tree-inline.c (estimate_num_insns): Only account for call
10814 return value if it is used.
10815 (expand_call_inline): Avoid diagnostics on recursive inline
10816 functions here.
10817 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10818 (input_edge): Input edge call costs.
10819
10820 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10821
10822 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10823
10824 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10825
10826 * doc/invoke.texi (Spec Files): Fix typo.
10827
10828 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10829
10830 * profile.c (branch_prob): Move declaration of local variable. Remove
10831 obsolete ??? comment. Expand the location explicitly instead of using
10832 the LOCATION_FILE and LOCATION_LINE macros.
10833
10834 2011-04-06 Wei Guozhi <carrot@google.com>
10835
10836 PR target/47855
10837 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10838 (arm_cond_branch): Likewise.
10839 (arm_cond_branch_reversed): Likewise.
10840 (arm_jump): Likewise.
10841 (push_multi): Likewise.
10842 * config/arm/constraints.md (Py): New constraint.
10843
10844 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10845
10846 PR bootstrap/48471
10847 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10848 Move these...
10849 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10850 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10851 #ifdef DBX_DEBUGGING_INFO.
10852
10853 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10854
10855 PR bootstrap/48403
10856 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10857 if old and new states differ.
10858
10859 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10860
10861 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10862 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10863 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10864 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10865 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10866 mcfv4e): Use Alias.
10867 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10868 ColdFire options to -mcpu= options.
10869
10870 2011-04-05 Jeff Law <law@redhat.com>
10871
10872 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10873 check if BB is a successor of LOOP->header and return
10874 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10875
10876 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10877
10878 * cprop.c (struct reg_use): Remove.
10879 (reg_use_table): Make an array of RTX.
10880 (find_used_regs, constprop_register, local_cprop_pass,
10881 bypass_block): Simplify users of reg_use_table.
10882 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10883 on one of the uses found by find_used_regs.
10884
10885 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10886
10887 PR bootstrap/48469
10888 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10889 declaration.
10890
10891 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10892
10893 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10894 as an rtx.
10895 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10896
10897 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10898
10899 PR middle-end/48441
10900 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10901
10902 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10903
10904 * combine.c: Include obstack.h.
10905 (struct insn_link): Define.
10906 (uid_log_links): Adjust type.
10907 (FOR_EACH_LOG_LINK): New macro.
10908 (insn_link_obstack): Declare.
10909 (alloc_insn_link): Define.
10910 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10911 type of link variables.
10912 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10913 (try_combine, record_promoted_values, distribute_notes): Likewise.
10914 (distribute_links): Likewise. Tweak prototype.
10915 (clear_log_links): Delete.
10916 (adjust_for_new_dest): Call alloc_insn_link.
10917 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10918
10919 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10920
10921 * gcse.c (modify_mem_list): Convert to an array of VECs.
10922 (canon_modify_mem_list, compute_transp): Tweak formatting.
10923 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10924 (load_killed_in_block_p): Likewise.
10925 (record_last_mem_set_info): Likewise.
10926 (clear_modify_mem_tables): Likewise.
10927
10928 2011-04-05 Tom de Vries <tom@codesourcery.com>
10929
10930 PR middle-end/48461
10931 * function.c (emit_use_return_register_into_block): Only define if
10932 HAVE_return.
10933
10934 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10935
10936 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10937
10938 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10939
10940 * config/rx/rx-opts.h: New.
10941 * config/rx/rx.c (rx_cpu_type): Remove.
10942 (rx_handle_option): Don't assert that global structures are in
10943 use. Access variables via opts pointer. Defer most handling of
10944 OPT_mint_register_. Use error_at.
10945 (rx_option_override): Handle deferred OPT_mint_register_ here.
10946 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10947 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10948 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10949 (rx_cpu_types): New Enum and EnumValue entries.
10950 (mint-register=): Use Defer and use Var accordingly.
10951
10952 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10953
10954 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10955 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10956 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10957 Move these...
10958 (debug_free_queue, debug_nesting, symbol_queue_index):
10959 ...and these...
10960 * dbxout.c: ...to here. Make static.
10961
10962 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10963
10964 * gcse.c (modify_pair): Define. Define a VEC of it.
10965 (canon_modify_mem_list): Convert to an array of VECs.
10966 (free_insn_expr_list_list): Delete.
10967 (clear_modify_mem_tables): Call VEC_free instead.
10968 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10969 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10970 (canon_list_insert, compute_transp): Likewise.
10971
10972 2011-04-05 Tom de Vries <tom@codesourcery.com>
10973
10974 PR target/43920
10975 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10976 for size.
10977
10978 2011-04-05 Tom de Vries <tom@codesourcery.com>
10979
10980 PR target/43920
10981 * function.c (emit_use_return_register_into_block): New function.
10982 (thread_prologue_and_epilogue_insns): Use
10983 emit_use_return_register_into_block.
10984
10985 2011-04-05 Tom de Vries <tom@codesourcery.com>
10986
10987 PR target/43920
10988 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10989 insn.
10990
10991 2011-04-05 Tom de Vries <tom@codesourcery.com>
10992
10993 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10994
10995 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10996
10997 * config/arm/arm.md (define_constants for unspec): Replace with
10998 define_c_enum.
10999 (define_constants for unspecv): Replace with define_c_enum.
11000 * config/arm/neon.md (define_constants for unspec): Replace with
11001 define_c_enum.
11002
11003 2011-04-04 Richard Henderson <rth@redhat.com>
11004
11005 PR bootstrap/48400
11006 * dwarf2out.c (output_line_info): Always emit line info from
11007 at least one section.
11008 (dwarf2out_init): Create text_section_line_info here ...
11009 (set_cur_line_info_table): ... not here.
11010
11011 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11012
11013 PR target/48380
11014 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11015 not called.
11016
11017 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11018
11019 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11020
11021 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11022 (expr_equiv_p): Remove.
11023 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11024 (hash_scan_set): Update call to insert_set_in_table.
11025 (dump_hash_table): Dump <dest, src> pair.
11026 (lookup_set): Simplify. Lookup <dest, src> pair.
11027 (compute_transp): Remove, fold heavily simplified code into...
11028 (compute_local_properties): ...here. Expect COMP and TRANSP
11029 unconditionally.
11030 (find_avail_set): Take set directly from struct expr.
11031 (find_bypass-set): Likewise.
11032 (bypass_block): Likewise.
11033 (cprop_insn): Likewise. Remove redundant INSN_P test.
11034
11035 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11036 checks on form of COND from find_implicit_sets to here.
11037 (find_implicit_sets): Cleanup control flow. Split critical edges
11038 if it exposes implicit sets. Allocate/resize implicit_sets as
11039 necessary.
11040 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11041 changed something. Run df_analyze after find_implicit_sets if any
11042 edges were split. Do not allocate implicit_sets here.
11043
11044 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11045 (gcse_obstack): Renamed to cprop_obstack.
11046 (GNEW, GNEWVEC, GNEWVAR): Remove.
11047 (gmalloc): Remove.
11048 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11049 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11050 (gcse_alloc): Likewise, and rename to cprop_alloc.
11051 (alloc_gcse_men, free_gcse_mem): Remove.
11052 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11053 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11054 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11055
11056 * cprop.c (oprs_not_set_p): Remove.
11057 (mark_set, mark_clobber): Remove.
11058 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11059 (reg_not_set_p): New function.
11060 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11061 (cprop_insn): Likewise.
11062 (cprop_jump): Use FOR_EACH_EDGE.
11063
11064 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11065
11066 PR bootstrap/48403
11067 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11068 (rank_for_schedule): Use scheduled_insns vector instead of
11069 last_scheduled_insn.
11070 (ok_for_early_queue_removal): Likewise.
11071 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11072 we have a dbg_cnt.
11073 (choose_ready): Likewise.
11074 (commit_schedule): Use VEC_iterate.
11075 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11076 a dbg_cnt, use it and ensure the first insn is in the ready list.
11077 (haifa_sched_init): Allocate scheduled_insns.
11078 (sched_extend_ready_list): Don't allocate it; reserve space.
11079 (haifa_sched_finish): Free it.
11080
11081 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11082
11083 * optc-gen.awk: Always remove type from Variable entry before
11084 recording in var_seen.
11085
11086 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11087
11088 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11089 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11090 call to tidy_fallthru_edges.
11091
11092 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11093
11094 * doc/options.texi (ToLower): Document.
11095 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11096 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11097 * opts.h (cl_option): Add cl_tolower field.
11098 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11099 arguments with lowercase strings.
11100 * config/rx/rx.opt (mcpu=): Add ToLower.
11101 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11102 argument.
11103
11104 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11105
11106 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11107
11108 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11109
11110 * config/vax/vax.c: Include reload.h.
11111
11112 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11113
11114 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11115 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11116 (sparc_preferred_reload_class): New function.
11117
11118 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11119
11120 PR debug/48401
11121 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11122 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11123
11124 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11125
11126 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11127 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11128
11129 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11130
11131 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11132 (ASM_OUTPUT_ALIGNED_BSS): Define.
11133
11134 2011-04-03 Michael Matz <matz@suse.de>
11135
11136 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11137 and next_slot members.
11138 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11139 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11140 (lto_streamer_cache_append): Declare.
11141 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11142 unsigned index, remove offset parameter, ensure that we append
11143 or update existing entries.
11144 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11145 parameter, update next_slot for append.
11146 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11147 parameter.
11148 (lto_streamer_cache_insert_at): Likewise.
11149 (lto_streamer_cache_append): New function.
11150 (lto_streamer_cache_lookup): Use unsigned index.
11151 (lto_streamer_cache_get): Likewise.
11152 (lto_record_common_node): Don't test tree_node_can_be_shared.
11153 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11154 (lto_streamer_cache_delete): Don't free offsets member.
11155 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11156 (lto_output_string_with_length): Use lto_output_data_stream.
11157 (lto_output_tree_header): Remove ix parameter, don't write it.
11158 (lto_output_builtin_tree): Likewise.
11159 (lto_write_tree): Adjust callers to above, don't track and write
11160 offset, write unsigned index.
11161 (output_unreferenced_globals): Don't emit all global vars.
11162 (write_global_references): Use unsigned indices.
11163 (lto_output_decl_state_refs): Likewise.
11164 (write_symbol): Likewise.
11165 * lto-streamer-in.c (lto_input_chain): Move earlier.
11166 (input_function): Use unsigned index.
11167 (input_alias_pairs): Don't read and then ignore all global vars.
11168 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11169 don't pass it back, use lto_streamer_cache_append.
11170 (lto_register_var_decl_in_symtab): Use unsigned index.
11171 (lto_register_function_decl_in_symtab): Likewise.
11172 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11173 index.
11174 (lto_get_builtin_tree): Don't read index, use
11175 lto_streamer_cache_append.
11176 (lto_read_tree): Adjust call to lto_materialize_tree.
11177
11178 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11179 don't use function calls in arguments to MIN.
11180
11181 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11182 twice.
11183
11184 * gimple.c (gimple_type_leader_entry): Mark deletable.
11185
11186 2011-04-03 Alan Modra <amodra@gmail.com>
11187
11188 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11189
11190 2011-04-03 Michael Matz <matz@suse.de>
11191
11192 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11193 an integer.
11194 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11195
11196 2011-04-03 Michael Matz <matz@suse.de>
11197
11198 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11199 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11200 without function context.
11201 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11202 current_function_decl and cfun.
11203
11204 2011-04-03 Michael Matz <matz@suse.de>
11205
11206 * tree.c (decl_init_priority_insert): Don't create entry for
11207 default priority.
11208 (decl_fini_priority_insert): Ditto.
11209 (fields_compatible_p, find_compatible_field): Remove.
11210 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11211 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11212
11213 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11214
11215 * combine.c (try_combine): Remove useless local variable.
11216
11217 2011-04-03 Richard Guenther <rguenther@suse.de>
11218 Ira Rosen <ira.rosen@linaro.org>
11219
11220 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11221 non-variable offsets and compare the remaining bases of the two
11222 accesses instead of looking for exact same data-ref.
11223
11224 2011-04-02 Kai Tietz <ktietz@redhat.com>
11225
11226 PR target/48416
11227 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11228
11229 * i386.c (ix86_is_msabi_thiscall): New helper function.
11230 (ix86_is_type_thiscall): New helper function.
11231 (ix86_comp_type_attributes): Handle thiscall for method-functions
11232 special.
11233 (init_cumulative_args): Likewise.
11234 (find_drap_reg): Likewise.
11235 (ix86_static_chain): Likewise.
11236 (x86_this_parameter): Likewise.
11237 (x86_output_mi_thunk): Likewise.
11238
11239 2011-04-01 Olivier Hainque <hainque@adacore.com>
11240 Nicolas Setton <setton@adacore.com>
11241 Eric Botcazou <ebotcazou@adacore.com>
11242
11243 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11244 (add_gnat_descriptive_type_attribute): New function.
11245 (gen_array_type_die): Call it.
11246 (gen_enumeration_type_die): Likewise.
11247 (gen_struct_or_union_type_die): Likewise.
11248 (modified_type_die): Likewise.
11249 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11250 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11251 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11252
11253 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11254
11255 PR bootstrap/48148
11256 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11257 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11258
11259 Revert:
11260 2011-03-17 Richard Guenther <rguenther@suse.de>
11261
11262 PR bootstrap/48148
11263 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11264 origin for decls in other ltrans units.
11265 (input_varpool_node): Likewise.
11266
11267 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11268
11269 PR middle-end/48335
11270 * expr.c (expand_assignment): Handle all possibilities
11271 if TO_RTX is CONCAT.
11272 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11273 (store_split_bit_field): If SUBREG_REG (op0) or
11274 op0 itself has smaller mode than word, return it
11275 for offset 0 and const0_rtx for out-of-bounds stores.
11276 If word is const0_rtx, skip it.
11277
11278 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11279
11280 * config/h8300/h8300.c (print_operand_address): Rename to...
11281 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11282 Call h8300_print_operand and h8300_print_operand_address instead of
11283 print_operand and print_operand_address. Declare.
11284 (print_operand): Renake to...
11285 (h8300_print_operand): ...this. Make static. Adjust comments.
11286 Call h8300_print_operand instead of print_operand. Declare.
11287 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11288 (h8300_register_move_cost): Likewise.
11289 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11290 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11291 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11292 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11293 * config/h8300/h8300-protos.h (print_operand): Delete.
11294 (print_operand_address): Delete.
11295
11296 2011-04-01 Richard Henderson <rth@redhat.com>
11297
11298 PR 48400
11299 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11300 in strict mode before dwarf4. Re-order tests to early out
11301 before switching sections.
11302
11303 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11304
11305 * config/h8300/constraints.md: New file.
11306 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11307 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11308 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11309 * config/h8300/predicates.md (bit_operand): Likewise.
11310 (incdec_operand): Use satisfies_constraint_M and
11311 satisfies_constraint_O. Don't use C code block.
11312 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11313 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11314 (compute_mov_length): Use satisfies_constraint_G.
11315 (fix_bit_operand): Use satisfies_constraint_U.
11316 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11317 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11318 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11319 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11320 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11321 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11322 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11323 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11324 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11325 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11326 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11327 (EXTRA_MEMORY_CONSTRAINT): Delete.
11328
11329 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11330 Michael Meissner <meissner@linux.vnet.ibm.com>
11331
11332 PR target/48262
11333 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11334 operands, as per the specifications.
11335
11336 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11337 (vec_extract_evenv4sf): Ditto.
11338 (vec_extract_evenv8hi): Ditto.
11339 (vec_extract_evenv16qi): Ditto.
11340 (vec_extract_oddv4si): Ditto.
11341
11342 2011-03-31 Mark Wielaard <mjw@redhat.com>
11343
11344 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11345 high_pc attribute if the CU has no associated code. Only output
11346 DW_AT_entry_pc for CU if not generating strict dwarf and
11347 dwarf_version < 4.
11348
11349 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11350
11351 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11352 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11353 out of ...
11354 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11355 * final.c (final_start_function): Call the new function rather
11356 than using a NULL argument for dwarf2out_frame_debug.
11357
11358 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11359 that contains the prologue.
11360
11361 * haifa-sched.c (queue_insn): New arg REASON. All callers
11362 changed. Print it in debugging output.
11363
11364 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11365
11366 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11367 Split most of the code into...
11368 (begin_move_insn): ... here. New function.
11369 (ebb_sched_info): Add a pointer to it.
11370 * haifa-sched.c (scheduled_insns): New static variable.
11371 (sched_extend_ready_list): Allocate it.
11372 (schedule_block): Use it to record the order of scheduled insns.
11373 Perform RTL changes to move insns only after all scheduling
11374 decisions have been made.
11375 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11376 begin_move_insn field.
11377 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11378 * sched-int.h (struct haifa_sched_info): Remove second argument
11379 from begin_schedule_ready hook. Add new member begin_move_insn.
11380 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11381 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11382
11383 * haifa-sched.c (prune_ready_list): New function, broken out of
11384 schedule_block.
11385 (schedule_block): Use it.
11386
11387 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11388
11389 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11390
11391 2011-04-01 Kai Tietz <ktietz@redhat.com>
11392
11393 * config.gcc (*-*-mingw*): Allow as option the
11394 posix threading model.
11395 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11396 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11397 definition.
11398 (CPP_SPEC): Add pthread/no-pthread handling.
11399 (LIB_SPEC): Likewise.
11400 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11401 (LIB_SPEC): Likewise.
11402 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11403 flag to pass -pthread option for shared libgcc build.
11404 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11405 for shared libgcc build.
11406 * config/i386/t-mingw-pthread: New file.
11407 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11408 New define to enable use of library pthread by default.
11409 * config/i386/mingw.opt (pthread): New driver option.
11410 (no-pthread): New driver option.
11411 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11412 * config/i386/mingw-w64.opt: Likewise.
11413
11414 2011-04-01 Gary Funck <gary@intrepid.com>
11415
11416 * c-decl.c (grokdeclarator): Fix formatting.
11417
11418 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11419
11420 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11421 instead of n_operands.
11422 (set_storage_via_setmem): Likewise.
11423 * optabs.c (maybe_gen_insn): Likewise.
11424 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11425 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11426 (mips_expand_builtin_direct): Likewise.
11427 * config/spu/spu.c (expand_builtin_args): Likewise.
11428
11429 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11430
11431 * recog.h (insn_data_d): Add n_generator_args.
11432 * genoutput.c (data): Likewise.
11433 (output_insn_data): Print it.
11434 (max_opno, num_dups): Delete.
11435 (scan_operands): Just fill in "d->operand[...]".
11436 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11437
11438 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11439
11440 * gensupport.h (pattern_stats): New structure.
11441 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11442 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11443 (max_operand_1, max_operand_vec): Delete.
11444 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11445
11446 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11447
11448 * emit-rtl.c (emit_pattern_after_setloc): New function.
11449 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11450 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11451 (emit_pattern_after): New function.
11452 (emit_insn_after, emit_jump_insn_after): Call it.
11453 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11454 (emit_pattern_before_setloc): New function.
11455 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11456 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11457 Likewise.
11458 (emit_pattern_before): New function.
11459 (emit_insn_before, emit_jump_insn_before): Call it.
11460 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11461
11462 2011-03-31 Richard Henderson <rth@redhat.com>
11463
11464 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11465 (dw_separate_line_info_entry): Remove.
11466 (enum dw_line_info_opcode): New.
11467 (dw_line_info_entry): Use it.
11468 (dw_line_info_table, dw_line_info_table_p): New.
11469 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11470 (line_info_table, line_info_label_num): Remove.
11471 (line_info_table_in_use): Remove.
11472 (separate_line_info_table): Remove.
11473 (separate_line_info_table_allocated): Remove.
11474 (separate_line_info_table_in_use): Remove.
11475 (LINE_INFO_TABLE_INCREMENT): Remove.
11476 (line_info_label_num): New.
11477 (cur_line_info_table): New.
11478 (text_section_line_info, cold_text_section_line_info): New.
11479 (separate_line_info): New.
11480 (SEPARATE_LINE_CODE_LABEL): Remove.
11481 (print_dwarf_line_table): Remove.
11482 (debug_dwarf): Don't dump it.
11483 (output_one_line_info_table): New.
11484 (output_line_info): Use it.
11485 (new_line_info_table): New.
11486 (set_cur_line_info_table): New.
11487 (dwarf2out_switch_text_section): Use it.
11488 (dwarf2out_begin_function): Likewise.
11489 (push_dw_line_info_entry): New.
11490 (dwarf2out_source_line): Rewrite for new line info tables.
11491 (dwarf2out_init): Remove dead initailizations.
11492
11493 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11494
11495 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11496 various flags.
11497 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11498 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11499 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11500 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11501 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11502 * opt-functions.awk (flag_init, switch_bit_fields): New.
11503 (switch_flags): Don't handle flags moved to bit-fields. Don't
11504 generate CL_MISSING_OK or CL_SAVE.
11505 * optc-gen.awk: Update to generate bit-field output as well as
11506 flags field.
11507 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11508 bit-field instead of CL_REJECT_DRIVER flag.
11509 * opts-common.c (generate_canonical_option,
11510 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11511 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11512 instead of CL_REJECT_NEGATIVE flag.
11513 * toplev.c (print_switch_values): Use cl_report bit-field instead
11514 of CL_REPORT flag.
11515
11516 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11517
11518 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11519 a zero minimum index only if it is redundant.
11520
11521 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11522
11523 PR rtl-optimization/48381
11524 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11525 instead of ira_class_hard_reg_index for calculating conflicting
11526 hard registers.
11527
11528 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11529
11530 * cprop.c: Clean up hash table building.
11531 (reg_avail_info): Remove.
11532 (oprs_available_p): Remove.
11533 (record_last_reg_set_info): Remove.
11534 (record_last_set_info): Remove.
11535 (reg_available_p): New function.
11536 (gcse_constant_p): Do not treat unfolded conditions as constants.
11537 (make_set_regs_unavailable): New function.
11538 (hash_scan_set): Simplify with new reg_available_p.
11539 (compute_hash_table_work): Traverse insns stream only once.
11540 Do not compute reg_avail_info. Traverse insns in reverse order.
11541 Record implicit sets after recording explicit sets from the block.
11542
11543 2011-03-31 Michael Matz <matz@suse.de>
11544
11545 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11546
11547 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11548
11549 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11550 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11551 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11552 (h8300_mode_dependent_address_p): New function.
11553 (h8300_get_index): Make static.
11554
11555 2011-03-31 Jeff Law <law@redhat.com>
11556
11557 * reload1.c (elimination_effects): Fix typo in recent change.
11558
11559 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11560 typo potentially leading to null pointer dereference.
11561
11562 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11563 (setup_save_areas): Corresponding changes to avoid useless
11564 assignments.
11565
11566 * jump.c (reversed_comparison_code_parts): Avoid successive return
11567 statements when REVERSE_CONDITION is defined.
11568
11569 * expr.c (expand_assignment): Avoid useless assignments.
11570 (expand_expr_real_1): Likewise.
11571 (expand_expr_real_2): Avoid useless statements.
11572
11573 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11574
11575 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11576
11577 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11578 statements.
11579
11580 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11581
11582 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11583
11584 PR target/47109
11585 * doc/tm.texi.in (TARGET_VERSION): Remove.
11586 * doc/tm.texi: Regenerate.
11587 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11588 * collect2.c (main): Don't use TARGET_VERSION.
11589 * mips-tdump.c (main): Don't use TARGET_VERSION.
11590 * mips-tfile.c (main): Don't use TARGET_VERSION.
11591 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11592 * config/rs6000/vxworksae.h: Remove.
11593 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11594 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11595 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11596 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11597 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11598 * config/arm/arm.h (TARGET_VERSION): Remove.
11599 * config/arm/coff.h (TARGET_VERSION): Remove.
11600 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11601 * config/arm/elf.h (TARGET_VERSION): Remove.
11602 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11603 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11604 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11605 * config/arm/pe.h (TARGET_VERSION): Remove.
11606 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11607 * config/arm/semi.h (TARGET_VERSION): Remove.
11608 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11609 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11610 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11611 * config/avr/avr.h (TARGET_VERSION): Remove.
11612 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11613 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11614 * config/frv/frv.h (TARGET_VERSION): Remove.
11615 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11616 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11617 * config/i386/darwin.h (TARGET_VERSION): Remove.
11618 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11619 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11620 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11621 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11622 * config/i386/gnu.h (TARGET_VERSION): Remove.
11623 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11624 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11625 * config/i386/linux.h (TARGET_VERSION): Remove.
11626 * config/i386/linux64.h (TARGET_VERSION): Remove.
11627 * config/i386/lynx.h (TARGET_VERSION): Remove.
11628 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11629 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11630 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11631 * config/i386/netware.h (TARGET_VERSION): Remove.
11632 * config/i386/nto.h (TARGET_VERSION): Remove.
11633 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11634 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11635 * config/ia64/elf.h (TARGET_VERSION): Remove.
11636 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11637 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11638 * config/ia64/linux.h (TARGET_VERSION): Remove.
11639 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11640 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11641 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11642 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11643 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11644 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11645 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11646 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11647 * config/m68k/linux.h (TARGET_VERSION): Remove.
11648 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11649 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11650 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11651 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11652 * config/mep/mep.h (TARGET_VERSION): Remove.
11653 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11654 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11655 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11656 * config/mips/linux.h (TARGET_VERSION): Remove.
11657 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11658 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11659 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11660 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11661 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11662 * config/pa/pa.h (TARGET_VERSION): Remove.
11663 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11664 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11665 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11666 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11667 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11668 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11669 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11670 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11671 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11672 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11673 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11674 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11675 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11676 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11677 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11678 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11679 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11680 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11681 * config/s390/linux.h (TARGET_VERSION): Remove.
11682 * config/s390/s390.h (TARGET_VERSION): Remove.
11683 * config/s390/tpf.h (TARGET_VERSION): Remove.
11684 * config/score/score.h (TARGET_VERSION): Remove.
11685 * config/sh/linux.h (TARGET_VERSION): Remove.
11686 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11687 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11688 * config/sh/sh.h (TARGET_VERSION): Remove.
11689 * config/sh/sh64.h (TARGET_VERSION): Remove.
11690 * config/sh/superh.h (TARGET_VERSION): Remove.
11691 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11692 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11693 * config/sparc/linux.h (TARGET_VERSION): Remove.
11694 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11695 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11696 TARGET_NAME32, TARGET_NAME): Remove.
11697 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11698 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11699 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11700 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11701 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11702 * config/spu/spu.h (TARGET_VERSION): Remove.
11703 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11704 * config/v850/v850.h (TARGET_VERSION): Remove.
11705 * config/vax/linux.h (TARGET_VERSION): Remove.
11706 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11707 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11708 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11709
11710 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11711
11712 PR target/48142
11713 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11714 frame-related from frame-unrelated adjustments to the stack pointer.
11715
11716 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11717
11718 * common.opt (fdebug-types-section): Move earlier.
11719 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11720
11721 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11722
11723 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11724 var.
11725
11726 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11727
11728 * tree.h (CASE_CHAIN): Define.
11729 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11730 (gimple_redirect_edge_and_branch): Likewise.
11731
11732 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11733
11734 PR middle-end/48367
11735 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11736 calculation.
11737
11738 2011-03-30 Jeff Law <law@redhat.com>
11739
11740 * PR bootstrap/48371
11741 * reload1.c (reload): Fix botch in last change.
11742
11743 * reload.h (struct reload): Fix typo introduced in last change.
11744
11745 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11746
11747 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11748 Undocumented. Remove help text.
11749 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11750 -mhard-float.
11751
11752 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11753
11754 * doc/options.texi (NegativeAlias): Document.
11755 (Alias): Mention NegativeAlias.
11756 * opt-functions.awk: Handle NegativeAlias.
11757 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11758 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11759 * opts.h (CL_NEGATIVE_ALIAS): Define.
11760 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11761 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11762 OPT_mspe_.
11763 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11764 Alias entries.
11765 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11766 mno-spe and mno-isel instead of mspe=no and -misel=no.
11767
11768 2011-03-29 Mark Wielaard <mjw@redhat.com>
11769
11770 * common.opt (fdebug-types-section): New flag.
11771 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11772 * dwarf2out.c (use_debug_types): New define.
11773 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11774 (print_die): Guard output of type unit signatures using
11775 use_debug_types.
11776 (build_abbrev_table): Replace assert of dwarf_version >= 4
11777 with assert on use_debug_types.
11778 (size_of_die): Likewise.
11779 (unmark_dies): Likewise.
11780 (value_format): Decide AT_ref_external form on use_debug_types.
11781 (output_die): Replace dwarf_version version check guard with
11782 use_debug_types where appropriate.
11783 (modified_type_die): Likewise.
11784 (gen_reference_type_die): Likewise.
11785 (dwarf2out_start_source_file): Likewise.
11786 (dwarf2out_end_source_file): Likewise.
11787 (prune_unused_types_walk_attribs): Likewise.
11788 (dwarf2out_finish): Likewise.
11789
11790 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11791
11792 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11793
11794 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11795
11796 PR rtl-optimization/48332
11797 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11798 mode of input operand N and modeN to its actual mode.
11799
11800 2011-03-30 Jeff Law <law@redhat.com>
11801
11802 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11803 define accessor macro.
11804 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11805 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11806 (reg_equiv_init): Likewise.
11807 (reg_equivs_size): New variable.
11808 (reg_equiv_init_size): Remove.
11809 (allocate_initial_values): Move prototype to here from....
11810 * integrate.h (allocate_initial_values): Remove prototype.
11811 * integrate.c: Include reload.h.
11812 (allocate_initial_values): Corresponding changes.
11813 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11814 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11815 (update_equiv_regs): Corresponding changes.
11816 (ira): Corresponding changes.
11817 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11818 (push_secondary_reload): Corresponding changes.
11819 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11820 (make_memloc, find_reloads_address): Corresponding changes.
11821 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11822 (find_reloads_address_1): Corresponding changes.
11823 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11824 (refers_to_regno_for_reload_p): Corresponding changes.
11825 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11826 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11827 * reload1.c: Include ggc.h.
11828 (grow_reg_equivs): New function.
11829 (replace_pseudos_in, reload): Corresponding changes.
11830 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11831 (eliminate_regs_1, elimination_effects): Corresponding changes.
11832 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11833 (delete_output_reload): Likewise.
11834 * caller-save.c (mark_referenced_regs): Corresponding changes.
11835 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11836 * frv/predicates.md (frv_load_operand): Corresponding changes.
11837 * microblaze/microblaze.c (double_memory_operand): Corresponding
11838 changes.
11839 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11840 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11841 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11842 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11843 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11844 changes.
11845 * pa/pa.c (emit_move_sequence): Corresponding changes.
11846 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11847
11848 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11849
11850 PR target/47551
11851 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11852 structure modes. Don't check neon_vector_mem_operand for
11853 vector or structure modes.
11854
11855 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11856 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11857
11858 PR target/43590
11859 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11860 operand 1 and reshuffle the operands to match.
11861 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11862
11863 2011-03-30 Christian Schüler <cschueler@gmx.de>
11864
11865 PR driver/48208
11866 * config/c.opt (F): Added 'Driver' to -F option.
11867
11868 PR driver/48260
11869 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11870 handler function.
11871 * config/darwin.opt: Added '-arch' option.
11872
11873 2011-03-30 Nick Clifton <nickc@redhat.com>
11874
11875 * config/rx/rx.md: Add peepholes and patterns to combine
11876 extending loads and simple arithmetic instructions.
11877 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11878 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11879 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11880 modes to use pre-decrement and post-increment addressing.
11881 (rx_is_restricted_memory_address): Add range checking of REG+INT
11882 addresses.
11883 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11884 (rx_memory_move_cost): Adjust cost of stores.
11885 (rx_adjust_insn_length): New function.
11886
11887 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11888
11889 PR c/48305
11890 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11891 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11892 matching arg00/arg01 types.
11893
11894 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11895
11896 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11897 last_location to UNKNOWN_LOCATION.
11898
11899 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11900
11901 PR target/48349
11902 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11903 FLOAT_SSE_REGS.
11904
11905 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11906 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11907
11908 PR bootstrap/48337
11909 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11910 Init(PROCESSOR_V7).
11911 (sparc_cpu): Likewise.
11912 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11913 PROCESSOR_V7.
11914
11915 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11916
11917 PR target/48336
11918 PR middle-end/48342
11919 PR rtl-optimization/48345
11920 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11921 hard regs for given mode from profitable regs when doing secondary
11922 allocation.
11923
11924 2011-03-29 Jeff Law <law@redhat.com>
11925
11926 PR bootstrap/48327
11927 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11928 do_not_duplicate field.
11929 (lookup_redirection_data): Corresponding changes.
11930 (create_duplicates): Always create a template block.
11931 (redirect_edges): Remove code which reused the original block
11932 when it was going to become unreachable code.
11933 (thread_block): Don't set do_not_duplicate field.
11934
11935 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11936
11937 * lto-opts.c (register_user_option_p, lto_register_user_option):
11938 Make type argument unsigned.
11939 * lto-streamer.h (lto_register_user_option): Make type argument
11940 unsigned.
11941 * opth-gen.awk: Make CL_* macros unsigned.
11942 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11943 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11944 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11945 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11946 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11947 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11948 (find_opt): Make lang_mask argument unsigned.
11949
11950 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11951
11952 PR rtl-optimization/48331
11953 PR rtl-optimization/48334
11954 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11955 for any used algorithm.
11956
11957 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11958
11959 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11960 to parent_max.
11961
11962 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11963
11964 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11965 (alpha_option_override): Don't set alpha_sr_alias_set.
11966 (emit_frame_store_1): Use gen_frame_mem rather than calling
11967 set_mem_alias_set.
11968 (alpha_expand_epilogue): Ditto.
11969
11970 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11971
11972 PR tree-optimization/48290
11973 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11974 vectorization, check that relevant phis in the basic block after
11975 the inner loop are really inner loop's exit phis.
11976
11977 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11978
11979 PR debug/48190
11980 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11981 (cached_dw_loc_list_def): New structure.
11982 (cached_dw_loc_list): New typedef.
11983 (cached_dw_loc_list_table): New variable.
11984 (cached_dw_loc_list_table_hash): New function.
11985 (cached_dw_loc_list_table_eq): Likewise.
11986 (add_location_or_const_value_attribute): Take a bool cache_p.
11987 Cache the list when the parameter is true.
11988 (gen_formal_parameter_die): Update caller.
11989 (gen_variable_die): Likewise.
11990 (dwarf2out_finish): Likewise.
11991 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11992 while generating debug info for the decl.
11993 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11994 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11995 (resolve_addr): Cache the result of resolving a chain of
11996 location lists.
11997
11998 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11999
12000 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12001 conflict object hard regset nodes have intersecting hard reg sets.
12002
12003 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12004 after regstat_init_n_sets_and_refs.
12005
12006 * ira.c: Add more comments at the top.
12007 (setup_stack_reg_pressure_class, setup_pressure_classes):
12008 Add comments how we compute the register pressure classes.
12009 (setup_allocno_and_important_classes): Add more comments.
12010 (setup_class_translate_array, reorder_important_classes)
12011 (setup_reg_class_relations): Add comments.
12012
12013 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12014 start of the file.
12015
12016 * ira-color.c: Add 2011 to the Copyright line.
12017 (assign_hard_reg): Add more comments.
12018 (improve_allocation): Ditto.
12019
12020 * ira-costs.c: Add 2011 to the Copyright line.
12021 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12022 comments.
12023 (setup_regno_cost_classes_by_mode): Ditto.
12024
12025 Initial patches from ira-improv branch:
12026
12027 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12028
12029 * ira-build.c (ira_create_object): Remove initialization of
12030 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12031 (ira_create_allocno): Remove initialization of
12032 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12033 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12034 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12035 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12036 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12037 Initialize ALLOCNO_ADD_DATA.
12038 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12039 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12040 ALLOCNO_REG.
12041 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12042 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12043
12044 * ira.c (ira_reallocate): Remove.
12045 (setup_pressure_classes): Call
12046 ira_init_register_move_cost_if_necessary. Use
12047 ira_register_move_cost instead of ira_get_register_move_cost.
12048 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12049 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12050
12051 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12052 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12053 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12054 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12055 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12056 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12057 Fix formatting.
12058 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12059 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12060 (struct allocno_color_data): New.
12061 (allocno_color_data_t): New typedef.
12062 (allocno_color_data): New definition.
12063 (ALLOCNO_COLOR_DATA): New macro.
12064 (struct object_color_data): New.
12065 (object_color_data_t): New typedef.
12066 (object_color_data): New definition.
12067 (OBJECT_COLOR_DATA): New macro.
12068 (update_copy_costs, calculate_allocno_spill_cost): Call
12069 ira_init_register_move_cost_if_necessary. Use
12070 ira_register_move_cost instead of ira_get_register_move_cost.
12071 (move_spill_restore, update_curr_costs): Ditto.
12072 (allocno_spill_priority): Make it inline.
12073 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12074 (struct coalesce_data, coalesce_data_t): New.
12075 (allocno_coalesce_data): New definition.
12076 (ALLOCNO_COALESCE_DATA): New macro.
12077 (merge_allocnos, coalesced_allocno_conflict_p): Use
12078 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12079 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12080 (coalesce_allocnos): Ditto.
12081 (setup_coalesced_allocno_costs_and_nums): Ditto.
12082 (collect_spilled_coalesced_allocnos): Ditto.
12083 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12084 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12085 (coalesce_spill_slots): Ditto.
12086 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12087 free allocno_coalesce_data.
12088
12089 * ira-conflicts.c: Fix formatting.
12090 (process_regs_for_copy): Call
12091 ira_init_register_move_cost_if_necessary. Use
12092 ira_register_move_cost instead of ira_get_register_move_cost.
12093 (build_object_conflicts): Optimize.
12094
12095 * ira-costs.c (record_reg_classes): Optimize. Call
12096 ira_init_register_move_cost_if_necessary. Use
12097 ira_register_move_cost, ira_may_move_in_cost, and
12098 ira_may_move_out_cost instead of ira_get_register_move_cost and
12099 ira_get_may_move_cost.
12100 (record_address_regs): Ditto.
12101 (scan_one_insn): Optimize.
12102 (find_costs_and_classes): Optimize.
12103 (process_bb_node_for_hard_reg_moves): Call
12104 ira_init_register_move_cost_if_necessary. Use
12105 ira_register_move_cost instead of ira_get_register_move_cost.
12106
12107 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12108 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12109 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12110 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12111 definitions.
12112 (ira_initiate_emit_data, ira_finish_emit_data)
12113 (create_new_allocno): New functions.
12114 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12115 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12116 Use ira_register_move_cost instead of ira_get_register_move_cost.
12117
12118 * ira-int.h: Fix some comments.
12119 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12120 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12121 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12122 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12123 add_data.
12124 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12125 bitfield after mode. Make hard_regno a short int. Make
12126 hard_regno short. Remove first_coalesced_allocno and
12127 next_coalesced_allocno. Move mem_optimized_dest_p,
12128 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12129 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12130 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12131 temp, colorable_p. Add new member add_data.
12132 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12133 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12134 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12135 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12136 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12137 (ALLOCNO_ADD_DATA): New macro.
12138 (ira_emit_data_t): New typedef.
12139 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12140 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12141 from struct ira_allocno.
12142 (ALLOCNO_EMIT_DATA): New macro.
12143 (ira_allocno_emit_data, allocno_emit_reg): New.
12144 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12145 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12146 (OBJECT_ADD_DATA): New macro.
12147 (ira_reallocate): Remove.
12148 (ira_initiate_emit_data, ira_finish_emit_data): New.
12149 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12150 (ira_init_register_move_cost_if_necessary): New.
12151 (ira_object_conflict_iter_next): Merge into
12152 ira_object_conflict_iter_cond.
12153 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12154
12155 * ira-live.c (process_single_reg_class_operands): Call
12156 ira_init_register_move_cost_if_necessary. Use
12157 ira_register_move_cost instead of ira_get_register_move_cost.
12158
12159 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12160
12161 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12162
12163 * ira-costs.c: Fix formatting.
12164 (cost_classes, cost_classes_num): Remove.
12165 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12166 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12167 (cost_classes_del, cost_classes_htab): New.
12168 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12169 (initiate_regno_cost_classes, setup_cost_classes): New.
12170 (setup_regno_cost_classes_by_aclass): New.
12171 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12172 (record_reg_classes): Use regno_cost_classes instead of
12173 cost_classes. Move checking opposite operand up.
12174 (record_address_regs): Use regno_cost_classes
12175 instead of cost_classes.
12176 (scan_one_insn): Ditto. Use always general register.
12177 (print_allocno_costs): Use regno_cost_classes instead of
12178 cost_classes.
12179 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12180 (find_costs_and_classes): Set up cost classes for each registers.
12181 Use also their mode for this. Use regno_cost_classes instead of
12182 cost_classes.
12183 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12184 cost_classes.
12185 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12186 (ira_costs, ira_set_pseudo_classes): Call
12187 initiate_regno_cost_classes and finish_regno_cost_classes.
12188
12189 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12190
12191 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12192
12193 * target.def (ira_cover_classes): Remove.
12194
12195 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12196
12197 * doc/tm.texi.in: Ditto.
12198
12199 * ira-conflicts.c: Remove mentioning cover classes from the file.
12200 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12201 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12202
12203 * targhooks.c (default_ira_cover_classes): Remove.
12204
12205 * targhooks.h (default_ira_cover_classes): Ditto.
12206
12207 * haifa-sched.c: Remove mentioning cover classes from the file.
12208 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12209 ira_pressure_classes and ira_pressure_classes_num instead of
12210 ira_reg_class_cover_size and ira_reg_class_cover. Use
12211 sched_regno_pressure_class instead of sched_regno_cover_class.
12212 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12213 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12214
12215 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12216 classes from the file.
12217 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12218 (struct object_hard_regs, struct object_hard_regs_node): New.
12219 (struct ira_object): New members profitable_hard_regs,
12220 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12221 (struct ira_allocno): Rename cover_class to aclass. Rename
12222 cover_class_cost and updated_cover_class_cost to class_cost and
12223 updated_class_cost. Remove splay_removed_p and
12224 left_conflict_size. Add new members colorable_p.
12225 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12226 (ALLOCNO_COLORABLE_P): New macro.
12227 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12228 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12229 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12230 (OBJECT_...): Rename parameter C to O.
12231 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12232 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12233 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12234 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12235 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12236 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12237 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12238 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12239 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12240 x_ira_reg_class_subunion.
12241 (ira_max_memory_move_cost, ira_max_register_move_cost)
12242 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12243 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12244 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12245 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12246 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12247 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12248 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12249 (ira_tune_allocno_costs_and_cover_classes): Rename to
12250 ira_tune_allocno_costs.
12251 (ira_debug_hard_regs_forest): New.
12252 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12253 (ira_object_conflict_iter_next): Fix comments.
12254 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12255 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12256 cover_class to aclass.
12257 (ira_allocate_and_accumulate_costs): Ditto.
12258 (ira_allocate_and_set_or_copy_costs): Ditto.
12259
12260 * opts.c (decode_options): Remove ira_cover_class check.
12261
12262 * ira-color.c: Remove mentioning cover classes from the file. Use
12263 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12264 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12265 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12266 (splay-tree.h): Remove include.
12267 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12268 before copy_freq_compare_func.
12269 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12270 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12271 New definitions.
12272 (hard_regs_roots, hard_regs_node_vec): Ditto.
12273 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12274 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12275 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12276 (create_new_object_hard_regs_node): Ditto.
12277 (add_new_object_hard_regs_node_to_forest): Ditto.
12278 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12279 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12280 Ditto.
12281 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12282 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12283 (remove_unused_object_hard_regs_nodes): Ditto.
12284 (enumerate_object_hard_regs_nodes): Ditto.
12285 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12286 (object_hard_regs_subnode_t): Ditto.
12287 (struct object_hard_regs_subnode): Ditto.
12288 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12289 (setup_object_hard_regs_subnode_index): Ditto.
12290 (get_object_hard_regs_subnodes_num): Ditto.
12291 (form_object_hard_regs_nodes_forest): Ditto.
12292 (finish_object_hard_regs_nodes_tree): Ditto.
12293 (finish_object_hard_regs_nodes_forest): Ditto.
12294 (allocnos_have_intersected_live_ranges_p): Rename to
12295 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12296 (pseudos_have_intersected_live_ranges_p): Rename to
12297 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12298 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12299 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12300 (update_copy_costs): Remove assert. Skip cost update if the hard
12301 reg does not belong the class.
12302 (assign_hard_reg): Process only profitable hard regs.
12303 (uncolorable_allocnos_num): Make it scalar.
12304 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12305 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12306 and ira_reg_class_max_nregs.
12307 (bucket_allocno_compare_func): Check frequency first.
12308 (sort_bucket): Add compare function as a parameter.
12309 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12310 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12311 (push_allocno_to_stack): Rewrite for checking new allocno
12312 colorability.
12313 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12314 (push_only_colorable): Pass new parameter to sort_bucket.
12315 (push_allocno_to_spill): Remove.
12316 (allocno_spill_priority_compare): Make it inline and rewrite.
12317 (splay_tree_allocate, splay_tree_free): Remove.
12318 (allocno_spill_sort_compare): New function.
12319 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12320 build and use splay tree. Choose first allocno in uncolorable
12321 allocno bucket to spill. Remove setting spill cost.
12322 (all_conflicting_hard_regs): Remove.
12323 (setup_allocno_available_regs_num): Check only profitable hard
12324 regs. Print info about hard regs nodes.
12325 (setup_allocno_left_conflicts_size): Remove.
12326 (put_allocno_into_bucket): Don't call
12327 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12328 (improve_allocation): New.
12329 (color_allocnos): Call setup_profitable_hard_regs,
12330 form_object_hard_regs_nodes_forest, improve_allocation,
12331 finish_object_hard_regs_nodes_forest. Setup spill cost.
12332 (print_loop_title): Use pressure classes.
12333 (color_allocnso): Ditto.
12334 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12335 and allocnos_for_spilling.
12336 (ira_sort_regnos_for_alter_reg): Don't setup members
12337 {first,next}_coalesced_allocno.
12338 (color): Remove allocating and freeing removed_splay_allocno_vec.
12339 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12340 prohibited_class_mode_regs.
12341
12342 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12343 formatting.
12344 (update_allocno_pressure_excess_length): Use pressure classes.
12345 (inc_register_pressure, dec_register_pressure): Check for pressure
12346 class.
12347 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12348 pressure class. Use ira_reg_class_nregs instead of
12349 ira_reg_class_max_nregs.
12350 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12351 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12352 (single_reg_class): Use ira_reg_class_nregs instead of
12353 ira_reg_class_max_nregs.
12354 (process_bb_node_lives): Use pressure classes.
12355
12356 * ira-emit.c: Remove mentioning cover classes from the file. Use
12357 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12358 (change_loop): Use pressure classes.
12359 (modify_move_list): Call ira_set_allocno_class instead of
12360 ira_set_allocno_cover_class.
12361
12362 * ira-build.c: Remove mentioning cover classes from the file. Use
12363 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12364 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12365 ALLOCNO_UPDATED_CLASS_COST instead of
12366 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12367 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12368 (ira_create_allocno): Remove initialization of
12369 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12370 ALLOCNO_COLORABLE_P.
12371 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12372 Update conflict regs for the objects.
12373 (create_cap_allocno): Remove assert. Don't propagate
12374 ALLOCNO_AVAILABLE_REGS_NUM.
12375 (ira_free_allocno_costs): New function.
12376 (finish_allocno): Change a part of code into call of
12377 ira_free_allocno_costs.
12378 (low_pressure_loop_node_p): Use pressure classes.
12379 (object_range_compare_func): Don't compare classes.
12380 (setup_min_max_conflict_allocno_ids): Ditto.
12381
12382 * loop-invariant.c: Remove mentioning cover classes from the file.
12383 Use ira_pressure_classes and ira_pressure_classes_num instead of
12384 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12385 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12386 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12387 Use reg_allocno_class instead of reg_cover_class.
12388 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12389 STACK_REG_COVER_CLASS.
12390 (get_regno_cover_class): Rename to get_regno_pressure_class.
12391 (move_loop_invariants): Initialize and finalize regstat.
12392
12393 * ira.c: Remove mentioning cover classes from the file. Add
12394 comments about coloring without cover classes. Use ALLOCNO_CLASS
12395 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12396 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12397 setup_class_subset_and_memory_move_costs.
12398 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12399 (setup_cover_and_important_classes): Rename to
12400 setup_allocno_and_important_classes.
12401 (setup_class_translate_array): New.
12402 (setup_class_translate): Call it for allocno and pressure classes.
12403 (cover_class_order): Rename to allocno_class_order.
12404 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12405 of ira_class_translate.
12406 (reorder_important_classes): Set up ira_important_class_nums.
12407 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12408 (print_class_cover): Rename to print_classes. Add parameter.
12409 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12410 Print pressure classes too.
12411 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12412 setup_reg_subclasses.
12413 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12414 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12415 (setup_prohibited_class_mode_regs): Use
12416 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12417 (clarify_prohibited_class_mode_regs): New function.
12418 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12419 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12420 (ira_init_once): Initialize them.
12421 (free_register_move_costs): Process them.
12422 (ira_init): Move calls of find_reg_classes and
12423 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12424 Call clarify_prohibited_class_mode_regs.
12425 (ira_no_alloc_reg): Remove.
12426 (too_high_register_pressure_p): Use pressure classes.
12427
12428 * sched-deps.c: Remove mentioning cover classes from the file.
12429 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12430 ira_pressure_classes and ira_pressure_classes_num instead of
12431 ira_reg_class_cover_size and ira_reg_class_cover.
12432 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12433 sched_regno_pressure_class instead of sched_regno_cover_class.
12434 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12435 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12436
12437 * ira.h: Add 2010 to Copyright.
12438 (ira_no_alloc_reg): Remove external.
12439 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12440 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12441 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12442 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12443 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12444 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12445 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12446 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12447 x_ira_no_alloc_regs.
12448 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12449 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12450 ira_allocno_classes_num and ira_allocno_classes.
12451 (ira_class_translate): Rename to ira_allocno_class_translate.
12452 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12453 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12454 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12455 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12456 (ira_no_alloc_regs): New.
12457
12458 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12459 classes from the file. Use ALLOCNO_CLASS instead of
12460 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12461 ALLOCNO_COVER_CLASS_COST.
12462 (regno_cover_class): Rename to regno_aclass.
12463 (record_reg_classes): Use ira_reg_class_subunion instead of
12464 ira_reg_class_union.
12465 (record_address_regs): Check overflow.
12466 (scan_one_insn): Ditto.
12467 (print_allocno_costs): Print total mem cost fore regional allocation.
12468 (print_pseudo_costs): Use REG_N_REFS.
12469 (find_costs_and_classes): Use classes intersected with them on the
12470 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12471 ira_reg_class_union. Use ira_allocno_class_translate and
12472 regno_aclass instead of ira_class_translate and regno_cover_class.
12473 Modify code for finding regno_aclass. Setup preferred classes for
12474 the next pass.
12475 (setup_allocno_cover_class_and_costs): Rename to
12476 setup_allocno_class_and_costs. Use regno_aclass instead of
12477 regno_cover_class. Use ira_set_allocno_class instead of
12478 ira_set_allocno_cover_class.
12479 (init_costs, finish_costs): Use regno_aclass instead of
12480 regno_cover_class.
12481 (ira_costs): Use setup_allocno_class_and_costs instead of
12482 setup_allocno_cover_class_and_costs.
12483 (ira_tune_allocno_costs_and_cover_classes): Rename to
12484 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12485 by processing objects. Use ira_reg_class_max_nregs instead of
12486 ira_reg_class_nregs.
12487
12488 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12489
12490 * sched-int.h: Remove mentioning cover classes from the file.
12491 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12492
12493 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12494 classes from the file.
12495 (struct reg_pref): Rename coverclass into allocnoclass.
12496 (reg_cover_class): Rename to reg_allocno_class.
12497
12498 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12499
12500 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12501
12502 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12503
12504 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12505
12506 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12507
12508 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12509
12510 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12511
12512 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12513
12514 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12515
12516 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12517
12518 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12519 (i386_ira_cover_classes): Ditto.
12520
12521 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12522
12523 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12524
12525 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12526
12527 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12528
12529 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12530
12531 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12532
12533 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12534 (mips_ira_cover_classes): Ditto.
12535
12536 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12537
12538 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12539
12540 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12541
12542 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12543
12544 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12545
12546 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12547 (IRA_COVER_CLASSES_VSX): Ditto.
12548
12549 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12550 (rs6000_ira_cover_classes): Ditto.
12551
12552 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12553
12554 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12555
12556 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12557
12558 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12559
12560 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12561
12562 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12563
12564 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12565
12566 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12567
12568 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12569
12570 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12571
12572 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12573
12574 PR debug/48253
12575 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12576 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12577 dw_fde_unlikely_section_end_label, cold_in_std_section,
12578 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12579 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12580 fields.
12581 (output_fde): Use dw_fde_second_{begin,end} if second is
12582 true, otherwise dw_fde_{begin,end}.
12583 (output_call_frame_info): Test dw_fde_second_begin != NULL
12584 instead of dw_fde_switched_sections.
12585 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12586 fields, initialize new fields. Initialize in_std_section
12587 unconditionally from the first partition.
12588 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12589 dw_fde_second_begin is non-NULL.
12590 (dwarf2out_switch_text_section): Stop initializing removed
12591 dw_fde_struct fields, initialize new fields, initialize
12592 also dw_fde_end here. Set dw_fde_switch_cfi even when
12593 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12594 (struct var_loc_list_def): Add last_before_switch field.
12595 (arange_table, arange_table_allocated, arange_table_in_use,
12596 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12597 (size_of_aranges): Count !in_std_section and !second_in_std_section
12598 hunks in fdes, instead of looking at arange_table_in_use.
12599 (output_aranges): Add aranges_length argument, don't call
12600 size_of_aranges here. Instead of using aranges_table*
12601 emit ranges for fdes when !in_std_section resp.
12602 !second_in_std_section.
12603 (dw_loc_list): Break ranges crossing section switch.
12604 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12605 use dw_fde_second_end instead of dw_fde_end as end of last range.
12606 (gen_subprogram_die): Don't call add_arange. Use
12607 dw_fde_{begin,end} for first partition and if switched
12608 section dw_fde_second_{begin,end} for the second.
12609 (var_location_switch_text_section_1,
12610 var_location_switch_text_section): New functions.
12611 (dwarf2out_begin_function): Initialize cold_text_section even
12612 when function_section () isn't text_section.
12613 (prune_unused_types): Don't walk arange_table.
12614 (dwarf2out_finish): Don't needlessly test
12615 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12616 If info_section_emitted, call size_of_aranges and if it indicates
12617 non-empty .debug_aranges, call output_aranges with the computed
12618 size. Stop using removed dw_fde_struct fields, use
12619 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12620 for second.
12621
12622 PR debug/48203
12623 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12624 create ENTRY_VALUE if incoming or address of incoming's MEM
12625 is a hard REG.
12626 * dwarf2out.c (mem_loc_descriptor): Don't emit
12627 DW_OP_GNU_entry_value of DW_OP_fbreg.
12628 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12629 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12630 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12631 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12632 ENTRY_VALUE_EXPs.
12633 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12634 is a REG_P or MEM_P with REG_P address, compute hash directly
12635 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12636 (preserve_only_constants): Don't clear VALUES forwaring
12637 ENTRY_VALUE to some other VALUE.
12638
12639 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12640
12641 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12642 instead of GEN_INT.
12643
12644 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12645
12646 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12647 block before expanding the statement.
12648 (expand_gimple_stmt_1): Likewise. Set them here...
12649 (expand_gimple_stmt): ...and not here. Tidy.
12650 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12651 unknown.
12652
12653 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12654
12655 * Makefile.in: New rule for cprop.o.
12656 * gcse.c: Move constant/copy propagation to cprop.c.
12657 (compute_local_properties): Only handle expression tables.
12658 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12659 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12660 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12661 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12662 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12663 compute_cprop_data, find_used_regs, try_replace_reg,
12664 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12665 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12666 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12667 find_bypass_set, reg_killed_on_edge, bypass_block,
12668 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12669 execute_rtl_cprop, pass_rtl_cprop): Move to...
12670 * cprop.c: ...here. New file, constant/copy propagation for RTL
12671 moved from gcse.c to here with minor cleanups in duplicated code.
12672
12673 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12674
12675 * config/i386/i386.c (flag_opts): Fix a typo in
12676 -mavx256-split-unaligned-store.
12677
12678 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12679
12680 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12681 LIBCALL_VALUE): Remove macros.
12682 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12683 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12684 (h8300_function_value, h8300_libcall_value,
12685 h8300_function_value_regno_p): New functions.
12686
12687 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12688
12689 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12690
12691 2011-03-28 Jeff Law <law@redhat.com>
12692
12693 * tree-ssa-threadupdate.c (redirect_edges): Call
12694 create_edge_and_update_destination_phis as needed.
12695 (create_edge_and_update_destination_phis): Accept new BB argument.
12696 All callers updated.
12697 (thread_block): Do not update the profile when threading around
12698 intermediate blocks.
12699 (thread_single_edge): Likewise.
12700 (determine_bb_domination_status): If BB is not a successor of the
12701 loop header, return NONDOMINATING.
12702 (register_jump_thread): Note when we register a jump thread around
12703 an intermediate block.
12704 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12705 (thread_across_edge): Use it.
12706
12707 2011-03-28 Tristan Gingold <gingold@adacore.com>
12708
12709 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12710 when for_return is 2.
12711
12712 2011-03-28 Jeff Law <law@redhat.com>
12713
12714 * var-tracking.c (canonicalize_values_mark): Delete unused
12715 lhs assignment.
12716 (canonicalize_values_star, set_variable_part): Likewise.
12717 (clobber_variable_part, delete_variable_part): Likewise.
12718
12719 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12720
12721 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12722
12723 2011-03-28 Martin Jambor <mjambor@suse.cz>
12724
12725 * tree-inline.c (expand_call_inline): Do not check that destination
12726 node is analyzed.
12727 (optimize_inline_calls): Assert that destination node is analyzed.
12728 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12729 not call tree_lowering_passes.
12730 * cgraph.h (cgraph_analyze_function): Declare.
12731 * cgraphunit.c (cgraph_analyze_function): Make public.
12732
12733 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12734
12735 * config/sparc/sparc-opts.h: New.
12736 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12737 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12738 (sparc_option_override): Store processor_type enumeration rather
12739 than string in cpu_default. Remove name and enumeration from
12740 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12741 without using sparc_select. Use target_flags_explicit instead of
12742 fpu_option_set.
12743 * config/sparc/sparc.h (enum processor_type): Move to
12744 sparc-opts.h.
12745 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12746 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12747 HeaderInclude entry.
12748 (mcpu=, mtune=): Use Var and Enum.
12749 (sparc_processor_type): New Enum and EnumValue entries.
12750
12751 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12752 Iain Sandoe <iains@gcc.gnu.org>
12753
12754 PR target/48245
12755 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12756
12757 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12758
12759 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12760 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12761 Insert new statements at it in lieu of STMT.
12762 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12763 * tree-vect-stmts.c (vectorizable_store): Likewise.
12764 (vectorizable_load): Likewise.
12765
12766 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12767
12768 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12769 (divtf3): Ditto.
12770 (multf3): Ditto.
12771 (subtf3): Ditto.
12772
12773 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12774
12775 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12776 unaligned 256bit load/store.
12777 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12778 (*avx_movdqu<avxmodesuffix>): Likewise.
12779
12780 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12781
12782 PR target/48288
12783 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12784 * config/pa/pa.md (iordi3): Use new predicate in expander.
12785 (iorsi3): Likewise.
12786
12787 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12788
12789 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12790 FUNCTION_VALUE_REGNO_P): Remove macros.
12791 * config/mips/mips-protos.h (mips_function_value): Remove.
12792 * config/mips/mips.c (mips_function_value): Rename to...
12793 (mips_function_value_1): ... this. Make static. Handle receiving
12794 the function type in 'fn_decl_or_type' argument.
12795 (mips_function_value, mips_libcall_value,
12796 mips_function_value_regno_p): New function.
12797 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12798 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12799
12800 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12801
12802 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12803 and -mavx256-split-unaligned-store.
12804 (ix86_option_override_internal): Split 32-byte AVX unaligned
12805 load/store by default.
12806 (ix86_avx256_split_vector_move_misalign): New.
12807 (ix86_expand_vector_move_misalign): Use it.
12808
12809 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12810 -mavx256-split-unaligned-store.
12811
12812 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12813 256bit load/store. Generate unaligned store on misaligned memory
12814 operand.
12815 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12816 256bit load/store.
12817 (*avx_movdqu<avxmodesuffix>): Likewise.
12818
12819 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12820 -mavx256-split-unaligned-store.
12821
12822 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12823
12824 PR target/38598
12825 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12826 Update commentary.
12827
12828 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12829
12830 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12831 opno arguments with an expand_operand. Use create_input_operand.
12832 (mips_prepare_builtin_target): Delete.
12833 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12834 functions.
12835 (mips_expand_builtin_direct): Use create_output_operand and
12836 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12837 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12838 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12839
12840 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12841
12842 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12843 function.
12844 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12845
12846 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12847
12848 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12849 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12850 basic blocks and call commit_edge_insertions directly.
12851 (fixup_abnormal_edges): Move from here to...
12852 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12853 on the edges and return whether some have actually been inserted.
12854 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12855 compensation code.
12856
12857 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12858
12859 PR rtl-optimization/48144
12860 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12861 (merge_expr_data): ... here.
12862 (av_set_intersect): Rename to av_set_code_motion_filter.
12863 Update all callers. Call merge_history_vect when an expression
12864 is found in both sets.
12865 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12866
12867 2011-03-26 Alan Modra <amodra@gmail.com>
12868
12869 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12870 cmodel medium addresses.
12871 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12872 64-bit gpr loads and stores.
12873 (rs6000_secondary_reload_ppc64): New function.
12874 * config/rs6000/rs6000-protos.h: Declare it.
12875 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12876
12877 2011-03-26 Alan Modra <amodra@gmail.com>
12878
12879 PR target/47487
12880 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12881 GNU Go in traceback table.
12882
12883 2011-03-25 Richard Henderson <rth@redhat.com>
12884
12885 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12886 if there are exactly 6 operands.
12887 (set_storage_via_setmem): Similarly.
12888
12889 2011-03-25 Kai Tietz <ktietz@redhat.com>
12890
12891 * collect2.c (write_c_file_stat): Handle backslash
12892 as right-hand directory separator.
12893 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12894 checking just for slash.
12895 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12896 instead of checking for trailing slash.
12897 * gcc.c (record_temp_file): Use filename_cmp instead
12898 of strcmp.
12899 (do_spec_1): Likewise.
12900 (replace_outfile_spec_function): Likewise.
12901 (is_directory): Use filename_ncmp instead of strncmp.
12902 (print_multilib_info): Likewise.
12903 * gcov.c (find_source): Use filename_cmp instead
12904 instead of strcmp.
12905 (make_gcov_file_name): Fix order of slash/backslash
12906 checks.
12907 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12908 (add_standard_paths): Likewise.
12909 * mips-tfile.c (saber_stop): Handle backslash.
12910 * prefix.c (update_path): Use filename_ncmp instead of
12911 strncmp.
12912 * profile.c (output_location): Use filename_cmp instead
12913 of strcmp.
12914 * read-md.c (handle_toplevel_file): Handle backslash.
12915 * tlink.c (frob_extension): Likewise.
12916 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12917 strcmp.
12918 * tree-dump.c (dequeue_and_dump): Handle backslash.
12919 * tree.c (get_file_function_name): Likewise.
12920 * gengtype.c (read_input_list): Likewise.
12921 (get_file_realbasename): Likewise.
12922 (get_output_file_with_visibility): Use filename_cmp
12923 instead of strcmp.
12924
12925 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12926
12927 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12928 case to VFPv1.
12929
12930 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12931
12932 * fold-const.c (expr_location_or): New function.
12933 (fold_truth_not_expr): Call it.
12934
12935 2011-03-25 Jeff Law <law@redhat.com>
12936
12937 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12938 va_end.
12939 * c-family/c-common.c (def_fn_type): Likewise.
12940 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12941 * emit-rtl.c (gen_rtvec): Likewise.
12942 * lto/lto-lang.c (def_fn_type): Likewise.
12943
12944 2011-03-25 Richard Guenther <rguenther@suse.de>
12945
12946 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12947 also generate copies.
12948 (fini_copy_prop): Handle constant values properly.
12949
12950 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12951
12952 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12953 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12954 (hash_loc_operands, compare_loc_operands): Handle
12955 DW_OP_GNU_entry_value.
12956
12957 2011-03-25 Kai Tietz <ktietz@redhat.com>
12958
12959 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12960 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12961 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12962 comment and use macro TARGET_64BIT_MS_ABI instead.
12963 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12964 and change default behavior for 32-bit MS_ABI.
12965 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12966 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12967 32-bit, too.
12968 (ix86_cfun_abi): Likewise.
12969 (ix86_maybe_switch_abi): Adjust comment.
12970 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12971 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12972 instead of checking for SYSV_ABI.
12973 (ix86_nsaved_sseregs): Likewise.
12974 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12975 to 16 bytes.
12976 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12977 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12978 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12979 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12980 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12981
12982 2011-03-25 Richard Guenther <rguenther@suse.de>
12983
12984 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12985 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12986 (verify_gimple): Remove.
12987 * tree-cfg.c (verify_gimple_call): Merge verification
12988 from verify_stmts.
12989 (verify_gimple_phi): Merge verification from verify_stmts.
12990 (verify_gimple_label): New function.
12991 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12992 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12993 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12994 (verify_stmts): Rename to verify_gimple_in_cfg.
12995 (verify_gimple_in_cfg): New function.
12996 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12997 * tree-ssa.c (verify_ssa): Likewise.
12998 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12999
13000 2011-03-25 Richard Guenther <rguenther@suse.de>
13001
13002 * passes.c (init_optimization_passes): Add FRE pass after
13003 early SRA.
13004
13005 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13006 Andrew Stubbs <ams@codesourcery.com>
13007
13008 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13009 for Cortex-A8.
13010 (arm_movdi_vfp_cortexa8): New pattern.
13011 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13012 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13013 instructions when tuning for Cortex-A8. Set attribute "arch".
13014 * config/arm/arm.md: Move include arm-tune.md up a bit.
13015 (define_attr "arch"): Add "onlya8" and "nota8" values.
13016 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13017
13018 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13019
13020 PR bootstrap/48282
13021 Revert:
13022 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13023
13024 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13025 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13026 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13027 * passes.c (init_optimization_passes): Move
13028 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13029
13030 2011-03-25 Kai Tietz <ktietz@redhat.com>
13031
13032 * c-typeck.c (comptypes_internal): Replace target
13033 hook call of comp_type_attributes by version in tree.c file.
13034 * gimple.c (gimple_types_compatible_p_1): Likewise.
13035 * tree-ssa.c (useless_type_conversion_p): Likewise.
13036 * tree.c (build_type_attribute_qual_variant): Likewise.
13037 (attribute_value_equal): New static helper function.
13038 (comp_type_attributes): New function.
13039 (merge_attributes): Use attribute_value_equal for comparison.
13040 (attribute_list_contained): Likewise.
13041 * tree.h (comp_type_attributes): New prototype.
13042
13043 2011-03-25 Richard Guenther <rguenther@suse.de>
13044
13045 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13046 of complex types at -O0.
13047 (verify_gimple_assign_binary): Likewise.
13048 (verify_gimple_assign_ternary): Likewise.
13049
13050 2011-03-24 Mark Wielaard <mjw@redhat.com>
13051
13052 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13053 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13054
13055 2011-03-24 Mark Wielaard <mjw@redhat.com>
13056
13057 PR debug/48041
13058 * dwarf2out.c (output_abbrev_section): Only write table when
13059 abbrev_die_table_in_use > 1.
13060
13061 2011-02-24 Richard Henderson <rth@redhat.com>
13062
13063 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13064 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13065 (alpha_expand_unaligned_load_words): Use extql.
13066 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13067 (emit_insxl): Handle all modes for consistency.
13068
13069 2011-02-24 Richard Henderson <rth@redhat.com>
13070
13071 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13072 (alpha_expand_unaligned_load): Likewise.
13073 (alpha_expand_unaligned_store): Likewise.
13074 (alpha_expand_unaligned_load_words): Likewise.
13075 (alpha_expand_unaligned_store_words): Likewise.
13076 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13077 (alpha_split_lock_test_and_set_12): Likewise.
13078 (print_operand, alpha_fold_builtin_extxx): Likewise.
13079 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13080 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13081 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13082 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13083 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13084 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13085 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13086 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13087 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13088 (extwl, extll, extql): Similarly.
13089 (inswh, inslh, insqh): Similarly.
13090 (mskbl, mskwl, mskll, mskql): Similarly.
13091 (mskwh, msklh, mskqh): Similarly.
13092
13093 2011-02-24 Richard Henderson <rth@redhat.com>
13094
13095 * config/alpha/alpha.md (attribute isa): Add er, ner.
13096 (attribute enabled): Handle them.
13097 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13098
13099 2011-02-24 Richard Henderson <rth@redhat.com>
13100
13101 * config/alpha/alpha.md (attribute isa): Add vms.
13102 (attribute enabled): Handle it.
13103 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13104 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13105 (*movtf): Rename from *movtf_internal for consistency.
13106 (*movsi): Merge with *movsi_nt_vms.
13107 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13108 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13109 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13110 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13111
13112 2011-02-24 Richard Henderson <rth@redhat.com>
13113
13114 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13115 (extendqisi2, extendhisi2): Likewise.
13116 (extendqidi2): Simplify BWX/non-BWX expansions.
13117 (extendhidi2): Similarly.
13118
13119 2011-02-24 Richard Henderson <rth@redhat.com>
13120
13121 * config/alpha/alpha.md (attribute isa): New.
13122 (attribute enabled): New.
13123 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13124 (zero_extendqisi2, zero_extendqidi2): Similarly.
13125 (zero_extendhisi2, zero_extendhidi2): Similarly.
13126 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13127
13128 2011-02-24 Richard Henderson <rth@redhat.com>
13129
13130 * config/alpha/predicates.md (input_operand): Revert last change;
13131 update comment to mention 32-bit VMS rather than Windows.
13132
13133 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13134
13135 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13136 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13137 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13138 * passes.c (init_optimization_passes): Move
13139 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13140
13141 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13142
13143 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13144
13145 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13146
13147 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13148 correctly.
13149
13150 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13151
13152 PR debug/48204
13153 * simplify-rtx.c (simplify_const_unary_operation): Call
13154 real_convert when changing mode class with FLOAT_EXTEND.
13155
13156 2011-03-24 Nick Clifton <nickc@redhat.com>
13157
13158 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13159 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13160 * config/rx/rx.c (rx_option_override): Set align_jumps,
13161 align_loops and align_labels if not set by the user.
13162 (rx_align_for_label): New function.
13163 (rx_max_skip_for_label): New function.
13164 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13165 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13166 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13167 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13168 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13169
13170 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13171
13172 PR rtl-optimization/48263
13173 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13174 and original commutative_p handling. Use maybe_gen_insn.
13175
13176 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13177
13178 * reload.c (find_reloads_subreg_address): Add address_reloaded
13179 parameter and return true there if the full address has been
13180 reloaded.
13181 (find_reloads_toplev): Pass address_reloaded flag.
13182 (find_reloads_address_1): Don't use address_reloaded parameter.
13183
13184 2011-03-24 Jeff Law <law@redhat.com>
13185
13186 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13187 unused variable "ann".
13188 (remove_unused_locals): Likewise.
13189
13190 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13191 statement.
13192
13193 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13194 after it is freed.
13195
13196 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13197
13198 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13199 for invalid symbolic addresses.
13200 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13201 larl operands.
13202
13203 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13204
13205 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13206 the argument in calls to fold_truth_not_expr.
13207
13208 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13209
13210 * tree.c (record_node_allocation_statistics): New function.
13211 (make_node_stat, copy_node_stat, build_string): Call it.
13212 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13213 (build1_stat, build_omp_clause): Likewise.
13214
13215 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13216
13217 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13218 last commit.
13219
13220 2011-03-24 Richard Guenther <rguenther@suse.de>
13221
13222 PR tree-optimization/48271
13223 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13224 blocks that still exist.
13225
13226 2011-03-24 Richard Guenther <rguenther@suse.de>
13227
13228 PR tree-optimization/48270
13229 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13230 not free datarefs before ddrs.
13231
13232 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13233
13234 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13235 from the address built for a reference with variable offset.
13236
13237 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13238
13239 PR target/48237
13240 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13241 alternatives that can be handled with movq or movabsq insn.
13242 (*movdf_internal): Disable for !TARGET_64BIT.
13243 (*movdf_internal_nointeger): Ditto.
13244 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13245
13246 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13247
13248 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13249 (FUNCTION_ARG_ADVANCE): Likewise.
13250 * tm.texi.in: Change references to them to hook references.
13251 * tm.texi: Regenerate.
13252 * targhooks.c (default_function_arg): Eliminate check for target macro.
13253 (default_function_incoming_arg): Likewise.
13254 (default_function_arg_advance): Likewise.
13255 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13256 (function_arg_advance): Likewise.
13257 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13258
13259 2011-03-24 Richard Guenther <rguenther@suse.de>
13260
13261 PR middle-end/48269
13262 * tree-object-size.c (addr_object_size): Do not double-account
13263 for MEM_REF offsets.
13264
13265 2011-03-24 Diego Novillo <dnovillo@google.com>
13266
13267 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13268 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13269 (lto_input_data_block): Move from lto-opts.c. Make extern.
13270 Update all users.
13271 (lto_input_string): Rename from input_string. Make extern.
13272 Update all users.
13273 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13274 output_string_with_length.
13275 Output 0 to indicate a non-NULL string. Update all callers to
13276 not emit 0.
13277 (lto_output_string): Rename from output_string. Make extern.
13278 Update all users.
13279 (lto_output_decl_state_streams): Make extern.
13280 (lto_output_decl_state_refs): Make extern.
13281 * lto-streamer.h (lto_input_string): Declare.
13282 (lto_input_data_block): Declare.
13283 (lto_output_string): Declare.
13284 (lto_output_string_with_length): Declare.
13285 (lto_output_decl_state_streams): Declare.
13286 (lto_output_decl_state_refs): Declare.
13287
13288 2011-03-24 Richard Guenther <rguenther@suse.de>
13289
13290 PR tree-optimization/46562
13291 * tree.c (build_invariant_address): New function.
13292 * tree.h (build_invariant_address): Declare.
13293 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13294 a renamed function moved ...
13295 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13296 Take valueization callback parameter.
13297 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13298 * gimple-fold.h: New file.
13299 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13300 (ccp_fold, fold_const_aggregate_ref,
13301 fold_ctor_reference, fold_nonarray_ctor_reference,
13302 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13303 get_base_constructor): Move ...
13304 * gimple-fold.c: ... here.
13305 (gimple_fold_stmt_to_constant_1): New function
13306 split out from ccp_fold. Take a valueization callback parameter.
13307 Valueize all operands.
13308 (gimple_fold_stmt_to_constant): New wrapper function.
13309 (fold_const_aggregate_ref_1): New function split out from
13310 fold_const_aggregate_ref. Take a valueization callback parameter.
13311 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13312 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13313 invariant POINTER_PLUS_EXPRs to invariant form.
13314 (vn_valueize): New function.
13315 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13316 * tree-vrp.c (vrp_valueize): New function.
13317 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13318 to fold statements to constants.
13319 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13320 function declarations.
13321 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13322 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13323
13324 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13325
13326 * config/h8300/predicates.md (jump_address_operand): Fix register
13327 mode check.
13328
13329 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13330
13331 * doc/invoke.texi (max-stores-to-sink): Document.
13332 * params.h (MAX_STORES_TO_SINK): Define.
13333 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13334 if either vectorization or if-conversion is disabled.
13335 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13336 tree-vect-data-refs.c vect_equal_offsets.
13337 (dr_equal_offsets_p): New function.
13338 (find_data_references_in_bb): Remove static.
13339 * tree-data-ref.h (find_data_references_in_bb): Declare.
13340 (dr_equal_offsets_p): Likewise.
13341 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13342 (vect_drs_dependent_in_basic_block): Update calls to
13343 vect_equal_offsets.
13344 (vect_check_interleaving): Likewise.
13345 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13346 (cond_if_else_store_replacement): Rename to...
13347 (cond_if_else_store_replacement_1): ... this. Change arguments and
13348 documentation.
13349 (cond_if_else_store_replacement): New function.
13350 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13351 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13352
13353 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13354
13355 PR target/46934
13356 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13357 to subtract lower bound instead of GEN_INT().
13358
13359 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13360
13361 PR other/48179
13362 PR other/48221
13363 PR other/48234
13364 * doc/extend.texi (Alignment): Move section to match order in TOC.
13365 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13366 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13367
13368 2011-03-23 Jeff Law <law@redhat.com>
13369
13370 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13371 before removing the edge.
13372
13373 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13374 it may have been freed by redirect_branch_edge or
13375 redirect_edge_succ_nodup.
13376
13377 2011-03-23 Richard Guenther <rguenther@suse.de>
13378
13379 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13380 (check_va_list_escapes): Likewise.
13381 (check_all_va_list_escapes): Likewise.
13382
13383 2011-03-23 Richard Guenther <rguenther@suse.de>
13384
13385 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13386 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13387 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13388 (alias.o): Likewise.
13389 (ipa-type-escape.o): Remove.
13390 (ipa-struct-reorg.o): Likewise.
13391 (GTFILES): Remove ipa-struct-reorg.c.
13392 * alias.c: Do not include ipa-type-escape.h.
13393 * tree-ssa-alias.c: Likewise.
13394 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13395 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13396 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13397 and ipa-type-escape passes.
13398 * tree-pass.h (pass_ipa_type_escape): Remove.
13399 (pass_ipa_struct_reorg): Likewise.
13400 * ipa-struct-reorg.h: Remove.
13401 * ipa-struct-reorg.c: Likewise.
13402 * ipa-type-escape.h: Likewise.
13403 * ipa-type-escape.c: Likewise.
13404 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13405 (--param struct-reorg-cold-struct-ratio): Likewise.
13406 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13407 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13408 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13409
13410 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13411
13412 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13413 cpu attribute value.
13414 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13415 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13416 * config/s390/s390.c (processor_flags_table): New constant array.
13417 (s390_handle_arch_option): Remove.
13418 (s390_handle_option): Remove s390_handle_arch_option invocations
13419 and OPT_mwarn_framesize_ handling.
13420 (s390_option_override): Remove s390_handle_arch_option invocation.
13421 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13422 warnings.
13423 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13424 * config/s390/s390.opt (s390_tune, s390_arch)
13425 (march=): Replace s390_arch_option enum and values with
13426 processor_type. Set variable name to s390_arch. Set
13427 initialization value.
13428 (mtune=): Replace s390_arch_option with processor_type. Set
13429 variable name to s390_tune. Set initialization value.
13430
13431 2011-03-23 Julian Brown <julian@codesourcery.com>
13432
13433 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13434 accesses which are not naturally aligned.
13435
13436 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13437
13438 PR target/47553
13439 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13440
13441 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13442
13443 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13444 parameter from "int" to "enum insn_code".
13445 (expand_operand_type): New enum.
13446 (expand_operand): New structure.
13447 (create_expand_operand): New function.
13448 (create_fixed_operand, create_output_operand): Likewise
13449 (create_input_operand, create_convert_operand_to): Likewise.
13450 (create_convert_operand_from, create_address_operand): Likewise.
13451 (create_integer_operand): Likewise.
13452 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13453 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13454 (expand_insn, expand_jump_insn): Likewise.
13455 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13456 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13457 (expand_movstr, expand_builtin___clear_cache): Likewise.
13458 (expand_builtin_lock_release): Likewise.
13459 * explow.c (allocate_dynamic_stack_space): Likewise.
13460 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13461 and use the default handling in that case.
13462 * expmed.c (check_predicate_volatile_ok): Delete.
13463 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13464 (emit_cstore): Likewise.
13465 * expr.c (emit_block_move_via_movmem): Likewise.
13466 (set_storage_via_setmem, expand_assignment): Likewise.
13467 (emit_storent_insn, try_casesi): Likewise.
13468 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13469 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13470 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13471 (expand_twoval_unop, expand_twoval_binop): Likewise.
13472 (expand_unop_direct, emit_indirect_jump): Likewise.
13473 (emit_conditional_move, vector_compare_rtx): Likewise.
13474 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13475 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13476 (expand_sync_lock_test_and_set): Likewise.
13477 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13478 (emit_unop_insn): Likewise.
13479 (expand_copysign_absneg): Change icode to an insn_code.
13480 (create_convert_operand_from_type): New function.
13481 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13482 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13483 (expand_insn, expand_jump_insn): Likewise.
13484 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13485 than const_int_operand for operand 2.
13486
13487 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13488
13489 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13490 if possible.
13491
13492 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13493
13494 * emit-rtl.c (emit_pattern_before_noloc): New function.
13495 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13496 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13497 (emit_pattern_after_noloc): New function.
13498 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13499 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13500
13501 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13502
13503 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13504 (__ffsDI2): Likewise.
13505
13506 2011-03-22 Richard Henderson <rth@redhat.com>
13507
13508 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13509 of !TARGET_ABI_OPEN_VMS.
13510 (alpha_trampoline_init, alpha_start_function): Likewise.
13511 (alpha_expand_epilogue, alpha_file_start): Likewise.
13512 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13513 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13514 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13515 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13516 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13517
13518 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13519
13520 * config/s390/s390-opts.h: New.
13521 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13522 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13523 s390_stack_guard): Remove.
13524 (s390_handle_arch_option): Return void. Take enum
13525 s390_arch_option value instead of string and searching array.
13526 (s390_handle_option): Don't assert that global structures are in
13527 use. Access variables via opts pointer. Use error_at. Don't use
13528 sscanf for -mstack-guard= or -mstack-size=. Update call to
13529 s390_handle_arch_option.
13530 (s390_option_override): Update call to s390_handle_arch_option.
13531 (s390_emit_prologue): Use %d format for s390_stack_size in
13532 diagnostic. Use %wd for HOST_WIDE_INT.
13533 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13534 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13535 * config/s390/s390.opt (config/s390/s390-opts.h): New
13536 HeaderInclude entry.
13537 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13538 s390_arch_flags, s390_warn_framesize): New Variable entries.
13539 (s390_arch_option): New Enum and EnumValue entries.
13540 (march=): Use Enum instead of Var.
13541 (mstack-guard=, mstack-size=): Use UInteger and Var.
13542 (mtune=): Use Enum.
13543
13544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13545
13546 * config/score/score.c (score_handle_option): Don't assert that
13547 global structures are in use. Access target_flags via opts
13548 pointer. Use value of -march= option to determine target_flags
13549 settings.
13550 * config/score/score.opt (march=): Use Enum.
13551 (score_arch): New Enum and EnumValue entries.
13552
13553 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13554
13555 * config/mep/mep.c (option_mtiny_specified): Remove.
13556 (mep_option_override): Move register handling for -mivc2 from
13557 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13558 instead of option_mtiny_specified.
13559 (mep_handle_option): Access target_flags via opts pointer. Don't
13560 assert that global structures are in use. Defer part of -mivc2
13561 handling and move it to mep_option_override.
13562 * config/mep/mep.opt (IVC2): New Mask entry.
13563 (mivc2): Use Var and Defer instead of Mask.
13564
13565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13566
13567 * config/v850/v850-opts.h: New.
13568 * config/v850/v850.c (small_memory): Replace with
13569 small_memory_physical_max array. Make that array static const.
13570 (v850_handle_memory_option): Take integer value of argument. Take
13571 gcc_options pointer, option text and location. Return void.
13572 Update for changes to small memory structures.
13573 (v850_handle_option): Access target_flags via opts pointer. Don't
13574 assert that global structures are in use. Update calls to
13575 v850_handle_memory_option.
13576 (v850_encode_data_area): Update references to small memory settings.
13577 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13578 (enum small_memory_type): Move to v850-opts.h.
13579 * config/v850/v850.opt (config/v850/v850-opts.h): New
13580 HeaderInclude entry.
13581 (small_memory_max): New Variable entry.
13582 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13583 (mtda, mzda): Likewise.
13584
13585 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13586
13587 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13588 pointer. Don't assert that global structures are in use.
13589
13590 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13591
13592 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13593 via opts pointer. Don't assert that global structures are in use.
13594
13595 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13596
13597 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13598 (munix=93): Use Var.
13599 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13600 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13601 * config/pa/pa-opts.h: New.
13602 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13603 (pa_handle_option): Don't assert that global structures are in
13604 use. Access target_flags via opts pointer. Don't handle
13605 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13606 OPT_munix_98 here.
13607 (pa_option_override): Handle deferred OPT_mfixed_range_.
13608
13609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13610
13611 * config/mn10300/mn10300-opts.h: New.
13612 * config/mn10300/mn10300.c (mn10300_processor,
13613 mn10300_tune_string): Remove.
13614 (mn10300_handle_option): Don't assert that global structures are
13615 in use. Access mn10300_processor via opts pointer. Don't handle
13616 OPT_mtune_ here.
13617 * config/mn10300/mn10300.h (enum processor_type): Move to
13618 mn10300-opts.h.
13619 (mn10300_processor): Remove.
13620 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13621 HeaderInclude entry.
13622 (mn10300_processor): New Variable entry.
13623 (mtune=): Use Var.
13624
13625 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13626
13627 * config/microblaze/microblaze.c: Don't include opts.h.
13628 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13629 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13630 (mno-clearbss): Use Var and Warn.
13631
13632 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13633
13634 * config/m32r/m32r-opts.h: New.
13635 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13636 (m32r_handle_option): Don't assert that global structures are in
13637 use. Access target_flags and m32r_cache_flush_func via opts
13638 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13639 OPT_mno_flush_trap here.
13640 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13641 include of m32r-opts.h.
13642 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13643 HeaderInclude entry.
13644 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13645 (mmodel=): Use Enum and Var.
13646 (m32r_model): New Enum and EnumValue entries.
13647 (mno-flush-trap): Use Var.
13648 (msdata=): Use Enum and Var.
13649 (m32r_sdata): New Enum and EnumValue entries.
13650
13651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13652
13653 * config/m32c/m32c.c: Don't include opts.h.
13654 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13655 m32c_handle_option): Remove.
13656 (m32c_option_override): Check global_options_set.x_target_memregs
13657 instead of target_memregs_set.
13658 * config/m32c/m32c.h (target_memregs): Remove.
13659 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13660 variable.
13661
13662 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13663
13664 * config/iq2000/iq2000-opts.h: New.
13665 * config/iq2000/iq2000.c: Don't include opts.h.
13666 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13667 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13668 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13669 HeaderInclude entry.
13670 (iq2000_tune): New Variable entry.
13671 (march=): Add comment. Use Enum.
13672 (iq2000_arch): New Enum and EnumValue entries.
13673 (mcpu=): Use Enum and Var.
13674 (iq2000_tune): New Enum and EnumValue entries.
13675
13676 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13677
13678 * config/ia64/ia64-opts.h: New.
13679 * config/ia64/ia64.c (ia64_tune): Remove.
13680 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13681 here. Use error_at.
13682 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13683 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13684 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13685 HeaderInclude entry.
13686 (ia64_tune): New Variable entry.
13687 (mfixed-range=): Use Defer and Var.
13688 (mtune=): Use Enum and Var.
13689 (ia64_tune): New Enum and EnumValue entries.
13690
13691 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13692
13693 * config/frv/frv-opts.h: New.
13694 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13695 frv-opts.h.
13696 (frv_cpu_type): Remove.
13697 * config/frv/frv.c: Don't include opts.h.
13698 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13699 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13700 (frv_cpu_type): New Variable entry.
13701 (frv_cpu): New Enum and EnumValue entries.
13702
13703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13704
13705 * config/cris/cris.c (cris_handle_option): Access target_flags via
13706 opts pointer. Don't assert that global structures are in use.
13707 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13708 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13709
13710 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13711
13712 * config/bfin/bfin-opts.h: New.
13713 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13714 bfin_si_revision, bfin_workarounds): Remove.
13715 (bfin_cpus): Make static const.
13716 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13717 not bfin_lib_id_given.
13718 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13719 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13720 pointer. Use error_at. Don't assert that global structures are in use.
13721 * config/bfin/bfin.h: Include bfin-opts.h.
13722 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13723 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13724 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13725 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13726 entries.
13727
13728 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13729
13730 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13731 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13732 or -msoft-float here.
13733 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13734 -msoft-float and -mhard-float.
13735 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13736 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13737 msoft-float.
13738 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13739 -msoft-float.
13740 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13741 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13742 not mhard-float.
13743 (LIBGCC_SPEC): Don't handle -msoft-float.
13744 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13745 -mhard-float.
13746 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13747 msoft-float.
13748 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13749 -mfloat-abi=*, not -msoft-float and -mhard-float.
13750 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13751 -msoft-float.
13752 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13753 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13754 mhard-float and msoft-float.
13755 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13756 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13757 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13758 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13759 mhard-float.
13760 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13761 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13762 msoft-float.
13763 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13764 not mhard-float.
13765 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13766 not msoft-float.
13767
13768 2011-03-22 Richard Henderson <rth@redhat.com>
13769
13770 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13771 TARGET_ABI_WINDOWS_NT.
13772 (alpha_output_function_end_prologue): Likewise.
13773 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13774 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13775 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13776 (trap, *movsi_nt_vms): Likewise.
13777 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13778 (*tablejump_osf_nt_internal): Remove.
13779 * config/alpha/predicates.md (input_operand): Only test Pmode.
13780
13781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13782
13783 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13784 via opts pointer. Use error_at. Don't assert that global
13785 structures are in use.
13786
13787 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13788
13789 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13790 (ix86_handle_option): Access ix86_isa_flags and
13791 ix86_isa_flags_explicit via opts pointer. Don't assert that
13792 global structures are in use.
13793 (ix86_function_specific_save, ix86_function_specific_restore):
13794 Update ix86_isa_flags_explicit field name.
13795 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13796 (ix86_isa_flags_explicit): Rename TargetSave entry to
13797 x_ix86_isa_flags_explicit.
13798
13799 2011-03-22 Richard Henderson <rth@redhat.com>
13800
13801 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13802 (alpha_option_override, direct_return): Likewise.
13803 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13804 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13805 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13806 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13807 (alpha_expand_epilogue, alpha_end_function): Likewise.
13808 (alpha_init_libfuncs): Likewise.
13809 (struct machine_function): Remove unicosmk members.
13810 (print_operand) ['t']: Remove.
13811 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13812 unicosmk_output_module_name, unicosmk_output_common,
13813 current_section_align, unicosmk_output_text_section_asm_op,
13814 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13815 unicosmk_section_type_flags, unicosmk_unique_section,
13816 unicosmk_asm_named_section, unicosmk_insert_attributes,
13817 unicosmk_output_align, unicosmk_defer_case_vector,
13818 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13819 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13820 unicosmk_output_ssib, unicosmk_add_call_info_word,
13821 unicosmk_extern_head, unicosmk_output_default_externs,
13822 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13823 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13824 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13825 * config/alpha/alpha-protos.h: Update.
13826 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13827 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13828 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13829 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13830 (*mulsi_se, mulvsi3): Likewise.
13831 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13832 (*divmodsi_internal, call, call_value, realign): Likewise.
13833 (moddi3, umoddi3): Likewise; remove duplicate expander.
13834 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13835 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13836 (*movdi_nofix): Remove r/U alternative.
13837 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13838 * config/alpha/constraints.md ("U"): Remove.
13839 * config/alpha/predicates.md (call_operand"): Don't test
13840 TARGET_ABI_UNICOSMK.
13841
13842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13843
13844 * target.def (handle_option): Take gcc_options and
13845 cl_decoded_option pointers and location_t.
13846 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13847 * doc/tm.texi: Regenerate.
13848 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13849 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13850 * lto-opts.c (lto_reissue_options): Generate option structure for
13851 targetm.handle_option call.
13852 * opts.c (target_handle_option): Update call to
13853 targetm.handle_option. Remove assertions about values now passed
13854 down to hook.
13855 * targhooks.c (default_target_handle_option): New.
13856 * targhooks.h (default_target_handle_option): Declare.
13857 * config/alpha/alpha.c: Include opts.h.
13858 (alpha_handle_option): Update to new hook interface.
13859 * config/arm/arm.c: Include opts.h.
13860 (arm_handle_option): Update to new hook interface.
13861 * config/arm/t-arm (arm.o): Update dependencies.
13862 * config/bfin/bfin.c: Include opts.h.
13863 (bfin_handle_option): Update to new hook interface.
13864 * config/cris/cris.c: Include opts.h.
13865 (cris_handle_option): Update to new hook interface.
13866 * config/frv/frv.c: Include opts.h.
13867 (frv_handle_option): Update to new hook interface.
13868 * config/i386/i386.c: Include opts.h.
13869 (ix86_handle_option): Update to new hook interface.
13870 (ix86_valid_target_attribute_inner_p): Generate option structure
13871 for call to ix86_handle_option.
13872 * config/i386/t-i386 (i386.o): Update dependencies.
13873 * config/ia64/ia64.c: Include opts.h.
13874 (ia64_handle_option): Update to new hook interface.
13875 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13876 * config/iq2000/iq2000.c: Include opts.h.
13877 (iq2000_handle_option): Update to new hook interface.
13878 * config/m32c/m32c.c: Include opts.h.
13879 (m32c_handle_option): Update to new hook interface.
13880 * config/m32r/m32r.c: Include opts.h.
13881 (m32r_handle_option): Update to new hook interface.
13882 * config/m68k/m68k.c: Include opts.h.
13883 (m68k_handle_option): Update to new hook interface.
13884 * config/mep/mep.c: Include opts.h.
13885 (mep_handle_option): Update to new hook interface.
13886 * config/microblaze/microblaze.c: Include opts.h.
13887 (microblaze_handle_option): Update to new hook interface.
13888 * config/mips/mips.c: Include opts.h.
13889 (mips_handle_option): Update to new hook interface.
13890 * config/mn10300/mn10300.c: Include opts.h.
13891 (mn10300_handle_option): Update to new hook interface.
13892 * config/pa/pa.c: Include opts.h.
13893 (pa_handle_option): Update to new hook interface.
13894 * config/pdp11/pdp11.c: Include opts.h.
13895 (pdp11_handle_option): Update to new hook interface.
13896 * config/rs6000/rs6000.c: Include opts.h.
13897 (rs6000_handle_option): Update to new hook interface.
13898 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13899 * config/rx/rx.c: Include opts.h.
13900 (rx_handle_option): Update to new hook interface.
13901 * config/s390/s390.c: Include opts.h.
13902 (s390_handle_option): Update to new hook interface.
13903 * config/score/score.c: Include opts.h.
13904 (score_handle_option): Update to new hook interface.
13905 * config/sh/sh.c: Include opts.h.
13906 (sh_handle_option): Update to new hook interface.
13907 * config/sparc/sparc.c: Include opts.h.
13908 (sparc_handle_option): Update to new hook interface.
13909 * config/v850/v850.c: Include opts.h.
13910 (v850_handle_option): Update to new hook interface.
13911
13912 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13913
13914 * gcc.c (driver_unknown_option_callback): Only permit and save
13915 unknown -Wno- options.
13916 (driver_wrong_lang_callback): Save options directly instead of via
13917 driver_unknown_option_callback.
13918
13919 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13920
13921 * combine.c (simplify_set): Try harder to find the best CC mode when
13922 simplifying a nested COMPARE on the RHS.
13923
13924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13925
13926 * config/alpha/gnu.h: Remove.
13927 * config/arc: Remove directory.
13928 * config/arm/netbsd.h: Remove.
13929 * config/arm/t-pe: Remove.
13930 * config/crx: Remove directory.
13931 * config/i386/netbsd.h: Remove.
13932 * config/m68hc11: Remove directory.
13933 * config/m68k/uclinux-oldabi.h: Remove.
13934 * config/mcore/mcore-pe.h: Remove.
13935 * config/mcore/t-mcore-pe: Remove.
13936 * config/netbsd-aout.h: Remove.
13937 * config/rs6000/gnu.h: Remove.
13938 * config/sh/sh-symbian.h: Remove.
13939 * config/sh/symbian-base.c: Remove.
13940 * config/sh/symbian-c.c: Remove.
13941 * config/sh/symbian-cxx.c: Remove.
13942 * config/sh/symbian-post.h: Remove.
13943 * config/sh/symbian-pre.h: Remove.
13944 * config/sh/t-symbian: Remove.
13945 * config/svr3.h: Remove.
13946 * config/vax/netbsd.h: Remove.
13947 * config.build: Don't handle i[34567]86-*-pe.
13948 * config.gcc: Remove handling of deprecations for most deprecated
13949 targets.
13950 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13951 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13952 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13953 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13954 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13955 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13956 Remove cases.
13957 * config.host: Don't handle i[34567]86-*-pe.
13958 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13959 (ASM_SPEC32): Don't handle -mcall-gnu.
13960 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13961 -mcall-gnu.
13962 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13963 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13964 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13965 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13966 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13967 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13968 conditional on SYMBIAN.
13969 * configure.ac: Don't handle powerpc*-*-gnu*.
13970 * configure: Regenerate.
13971 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13972 * doc/install-old.texi (m6811, m6812): Don't mention.
13973 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13974 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13975 (m68k-uclinuxoldabi): Don't mention.
13976 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13977 Remove.
13978 (-mcall-gnu): Remove.
13979 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13980 families): Remove constraint documentation.
13981
13982 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13983
13984 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13985 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13986 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13987
13988 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13989
13990 PR target/48226
13991 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13992 vector when peeking at the next token for vector, don't expand the
13993 keywords.
13994
13995 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13996
13997 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13998 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13999 * config/avr/avr.c (init_cumulative_args)
14000 (avr_function_arg_advance): Use it.
14001 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14002 sibcall epilogues.
14003 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14004 (avr_function_ok_for_sibcall): ...this new function.
14005 (avr_lookup_function_attribute1): New static Function.
14006 (avr_naked_function_p, interrupt_function_p)
14007 (signal_function_p, avr_OS_task_function_p)
14008 (avr_OS_main_function_p): Use it.
14009 * config/avr/avr.md ("sibcall", "sibcall_value")
14010 ("sibcall_epilogue"): New expander.
14011 ("*call_insn", "*call_value_insn"): New insn.
14012 ("call_insn", "call_value_insn"): Remove
14013 ("call", "call_value", "epilogue"): Change expander to handle
14014 sibling calls.
14015
14016 2011-03-21 Nick Clifton <nickc@redhat.com>
14017
14018 * doc/invoke.texi (Overall Options): Move closing brace to end of
14019 options list.
14020 (Optimization Options): Add missing @gol.
14021 (Directory Options): Likewise.
14022 (i386 and x86-64 Options): Likewise.
14023 (RS6000 and PowerPC Options): Likewise.
14024 (i386 and x86-64 Windows Options): Likewise.
14025 (V850 Options): Add text missing from descriptions.
14026
14027 2011-03-22 Richard Henderson <rth@redhat.com>
14028
14029 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14030 (avr_incoming_return_addr_rtx): New.
14031 (emit_push_byte): New.
14032 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14033 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14034 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14035 (emit_pop_byte): New.
14036 (expand_epilogue): Use it. Pop frame pointer by bytes.
14037 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14038 (INCOMING_RETURN_ADDR_RTX): New.
14039 (INCOMING_FRAME_SP_OFFSET): New.
14040 (ARG_POINTER_CFA_OFFSET): New.
14041 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14042 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14043 (pophi): Remove.
14044
14045 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14046
14047 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14048
14049 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14050 (FUNCTION_ARG_ADVANCE): Likewise.
14051 * tm.texi.in: Change references to them to hook references.
14052 * tm.texi: Regenerate.
14053 * targhooks.c (default_function_arg): Eliminate check for target
14054 macro.
14055 (default_function_incoming_arg): Likewise.
14056 (default_function_arg_advance): Likewise.
14057 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14058 (function_arg_advance): Likewise.
14059 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14060
14061 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14062
14063 * tree.c (build_call_1): New function.
14064 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14065
14066 2011-03-22 Richard Guenther <rguenther@suse.de>
14067
14068 PR tree-optimization/48228
14069 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14070 for single-arg PHIs.
14071
14072 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14073
14074 PR rtl-optimization/48143
14075 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14076 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14077 sse2_cvtps2pd): Likewise.
14078
14079 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14080
14081 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14082
14083 2011-03-22 Richard Guenther <rguenther@suse.de>
14084
14085 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14086 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14087 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14088 and REALIGN_LOAD_EXPR.
14089 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14090 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14091 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14092 DOT_PROD_EXPR case ...
14093 (expand_expr_real_2): ... here.
14094 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14095 and REALIGN_LOAD_EXPR.
14096 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14097 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14098 (vect_create_epilog_for_reduction): Likewise.
14099 (vectorizable_reduction): Likewise.
14100 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14101 * tree-vect-stmts.c (vectorizable_load): Likewise.
14102
14103 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14104
14105 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14106
14107 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14108
14109 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14110 handling for PLTOFF/GOTOFF.
14111
14112 2011-03-22 Nick Clifton <nickc@redhat.com>
14113
14114 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14115 trailing backslash from the end of the macro definition.
14116
14117 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14118
14119 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14120 and PLT unspecs.
14121
14122 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14123
14124 * expr.h (prepare_operand): Move to...
14125 * optabs.h (prepare_operand): ...here and change the insn code
14126 parameter from "int" to "enum insn_code".
14127 (insn_operand_matches): Declare.
14128 * expr.c (init_expr_target): Use insn_operand_matches.
14129 (compress_float_constant): Likewise.
14130 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14131 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14132 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14133 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14134 Likewise.
14135 (gen_cond_trap): Likewise.
14136 (prepare_operand): Likewise. Change icode to an insn_code.
14137 (insn_operand_matches): New function.
14138 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14139 * reload1.c (gen_reload): Likewise.
14140 * targhooks.c (default_secondary_reload): Likewise.
14141
14142 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14143
14144 * config/alpha/alpha.md (unspec): New define_c_enum.
14145 (unspecv): Ditto.
14146
14147 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14148
14149 PR debug/48214
14150 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14151 between a call and its CALL_ARG_LOCATION note.
14152
14153 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14154
14155 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14156
14157 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14158
14159 PR c/42544
14160 PR c/48197
14161 * c-common.c (shorten_compare): If primopN is first sign-extended
14162 to opN and then zero-extended to result type, set primopN to opN.
14163
14164 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14165
14166 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14167 for barrier handlers.
14168
14169 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14170
14171 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14172 UNSPEC constants to be in the unspec enumeration, and redefine
14173 all UNSPECV constants to be in the unspecv enumeration, so that
14174 dumps print which unspec/unspec_volatile this is.
14175 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14176 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14177 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14178 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14179 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14180
14181 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14182 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14183 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14184 * config/rs6000/sync.md (isync, lwsync): Ditto.
14185
14186 2011-03-21 Richard Guenther <rguenther@suse.de>
14187
14188 * params.def (lto-min-partition): Fix typo.
14189
14190 2011-03-21 Richard Guenther <rguenther@suse.de>
14191
14192 PR c/47939
14193 * c-decl.c (grokdeclarator): Drop to the main variant only
14194 for array types. Drop flag_gen_aux_info check.
14195
14196 2011-03-21 Richard Guenther <rguenther@suse.de>
14197
14198 PR translation/47911
14199 * params.def (lto-partitions): Fix typo.
14200 (lto-min-partition): Fix wording.
14201
14202 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14203
14204 * config/rs6000/t-freebsd: Remove duplication from file.
14205
14206 2011-03-21 Richard Guenther <rguenther@suse.de>
14207
14208 PR middle-end/47661
14209 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14210
14211 2011-03-21 Richard Guenther <rguenther@suse.de>
14212
14213 PR lto/48210
14214 * params.def (lto-partitions): Require at least 1 partition.
14215
14216 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14217
14218 * gthr-solaris.h: Remove.
14219 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14220 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14221 (LIB_SPEC): Likewise.
14222 * config/sol2.opt (threads): Remove.
14223 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14224 (sparc*-*-solaris2*): Likewise.
14225 * configure.ac (enable_threads): Enable solaris support.
14226 * configure: Regenerate.
14227 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14228 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14229 solaris.
14230
14231 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14232
14233 * config.gcc: Obsolete *-*-solaris2.8*.
14234 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14235
14236 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14237
14238 PR bootstrap/48135
14239 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14240 reference. Solaris 8 perl works.
14241
14242 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14243
14244 PR bootstrap/48135
14245 * doc/install.texi (Prerequisites): Move jar etc. up.
14246 Explain support library version requirements.
14247
14248 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14249
14250 PR bootstrap/48135
14251 * doc/install.texi (Prerequisites): Move Perl to build
14252 requirements. Always necessary on Solaris 2 with Sun ld.
14253
14254 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14255
14256 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14257 binutils 2.21.
14258 (Specific, i?86-*-solaris2.[89]): Likewise.
14259 (Specific, i?86-*-solaris2.10): Likewise.
14260 (Specific, mips-sgi-irix6): Likewise.
14261 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14262 Update for binutils 2.21.
14263
14264 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14265
14266 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14267 Allow -fuse-linker-plugin for non-default plugin linker.
14268 * configure: Regenerate.
14269
14270 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14271
14272 PR bootstrap/48167
14273 * gengtype.c (files_rules): Added rule for cp/parser.h.
14274
14275 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14276
14277 PR target/48213
14278 * config/s390/s390.c (s390_delegitimize_address): Don't call
14279 lowpart_subreg if orig_x has BLKmode.
14280
14281 2011-03-21 Kai Tietz <ktietz@redhat.com>
14282
14283 PR target/12171
14284 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14285 * tree.h (attribute_spec): Add new member affects_type_identity.
14286 * attribs.c (empty_attribute_table): Adjust attribute_spec
14287 initializers.
14288 * config/alpha/alpha.c: Likewise.
14289 * config/arc/arc.c: Likewise.
14290 * config/arm/arm.c: Likewise.
14291 * config/avr/avr.c: Likewise.
14292 * config/bfin/bfin.c: Likewise.
14293 * config/crx/crx.c: Likewise.
14294 * config/darwin.h: Likewise.
14295 * config/h8300/h8300.c: Likewise.
14296 * config/i386/cygming.h: Likewise.
14297 * config/i386/i386.c: Likewise.
14298 * config/ia64/ia64.c: Likewise.
14299 * config/m32c/m32c.c: Likewise.
14300 * config/m32r/m32r.c: Likewise.
14301 * config/m68hc11/m68hc11.c: Likewise.
14302 * config/m68k/m68k.c: Likewise.
14303 * config/mcore/mcore.c: Likewise.
14304 * config/mep/mep.c: Likewise.
14305 * config/microblaze/microblaze.c: Likewise.
14306 * config/mips/mips.c: Likewise.
14307 * config/rs6000/rs6000.c: Likewise.
14308 * config/rx/rx.c: Likewise.
14309 * config/sh/sh.c: Likewise.
14310 * config/sol2.h: Likewise.
14311 * config/sparc/sparc.c: Likewise.
14312 * config/spu/spu.c: Likewise.
14313 * config/stormy16/stormy16.c: Likewise.
14314 * config/v850/v850.c: Likewise.
14315
14316 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14317
14318 * simplify-rtx.c (simplify_binary_operation_1): Handle
14319 (xor (and A B) C) case when B and C are both constants.
14320
14321 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14322
14323 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14324
14325 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14326
14327 PR bootstrap/48168
14328 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14329
14330 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14331
14332 PR rtl-optimization/48156
14333 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14334 assume df and df_lr are not NULL.
14335
14336 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14337
14338 PR debug/48023
14339 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14340 between a call and its CALL_ARG_LOCATION note.
14341
14342 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14343
14344 PR debug/48178
14345 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14346 between a call and its corresponding CALL_ARG_LOCATION note.
14347
14348 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14349
14350 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14351 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14352 * haifa-sched.c (setup_ref_regs): Ditto.
14353 * caller-save.c (add_used_regs_1): Ditto.
14354 * dse.c (look_for_hardregs): Ditto.
14355 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14356 * sched-rgn.c (check_live_1): Ditto.
14357
14358 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14359
14360 * c-decl.c (diagnose_mismatched_decls): Give an error for
14361 redefining a typedef with variably modified type.
14362
14363 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14364
14365 * c-decl.c (grokfield): Don't allow typedefs for structures or
14366 unions with no tag by default.
14367 * doc/extend.texi (Unnamed Fields): Update.
14368
14369 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14370
14371 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14372 Rewrite using indirect functions.
14373 (lwp_slwpcb): Ditto.
14374 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14375 (avx_vinsertf128<mode>): Ditto.
14376
14377 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14378
14379 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14380 unspecs.
14381
14382 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14383
14384 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14385 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14386
14387 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14388
14389 PR rtl-optimization/48170
14390 * gcse.c (hoist_code): Remove bogus asserts.
14391
14392 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14393
14394 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14395 computation for prologue/epilogue.
14396
14397 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14398
14399 * Makefile.in (check-consistency): Remove.
14400
14401 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14402
14403 PR debug/48176
14404 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14405 arange_table_in_use is 0, but either text_section_used or
14406 cold_text_section_used is true. Don't call it if
14407 !info_section_emitted.
14408
14409 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14410
14411 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14412 FUNCTION_VALUE_REGNO_P): Remove.
14413 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14414 Remove.
14415 * config/avr/avr.c (avr_ret_register): Make static inline.
14416 (avr_function_value_regno_p): New function.
14417 (avr_libcall_value): Make static. Add 'func' argument.
14418 (avr_function_value): Make static. Rename 'func' argument to
14419 'fn_decl_or_type', forward it to avr_libcall_value. Call
14420 avr_ret_register function instead of RET_REGISTER macro.
14421 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14422
14423 2011-03-18 Jason Merrill <jason@redhat.com>
14424
14425 PR c++/23372
14426 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14427
14428 2011-03-18 Richard Guenther <rguenther@suse.de>
14429
14430 * doc/install.texi (--enable-gold): Remove.
14431 (--with-plugin-ld): Document.
14432 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14433
14434 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14435
14436 PR middle-end/47790
14437 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14438 again after expansion changes.
14439
14440 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14441
14442 * combine.c (try_combine): Do simplification only call of
14443 subst() on i2 even when i1 is present. Update comments.
14444
14445 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14446
14447 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14448 and UNSPEC_PCREL_SYMOFF.
14449
14450 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14451
14452 * config/s390/s390.md: Use define_c_enum for the unspec constant
14453 definitions.
14454
14455 2011-03-18 Richard Henderson <rth@redhat.com>
14456 Jakub Jelinek <jakub@redhat.com>
14457
14458 PR bootstrap/48161
14459 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14460 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14461
14462 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14463
14464 PR middle-end/47725
14465 * combine.c (cant_combine_insn_p): Don't check zero/sign
14466 extended hard registers.
14467
14468 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14469
14470 PR middle-end/47725
14471 * combine.c (cant_combine_insn_p): Check zero/sign extended
14472 hard registers.
14473
14474 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14475
14476 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14477 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14478 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14479 Change return type to bool.
14480 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14481
14482 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR debug/48163
14485 * var-tracking.c (prepare_call_arguments): If CALL target
14486 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14487 pc instead of looking it up using cselib_lookup and use
14488 Pmode for it if x has VOIDmode.
14489 * dwarf2out.c (gen_subprogram_die): If also both first and
14490 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14491
14492 PR debug/48163
14493 * function.c (assign_parms): For data.passed_pointer parms
14494 use MEM of data.entry_parm instead of data.entry_parm itself
14495 as DECL_INCOMING_RTL.
14496 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14497 also when passed and declared mode is the same, DECL_RTL
14498 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14499 a MEM too.
14500
14501 2011-03-16 Jeff Law <law@redhat.com>
14502
14503 PR rtl-optimization/37273
14504 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14505 handle them like argument loads from stack slots. Do not double
14506 count memory for memory constants and argument loads from stack slots.
14507
14508 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 PR debug/48160
14511 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14512
14513 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 PR target/48171
14516 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14517
14518 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14519
14520 PR bootstrap/48153
14521 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14522 if dwarf_strict.
14523 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14524 Clear call_arg_locations and call_arg_loc_last always.
14525
14526 PR middle-end/48152
14527 * var-tracking.c (prepare_call_arguments): If argument needs to be
14528 passed by reference, adjust argtype and mode.
14529
14530 2011-03-17 Richard Guenther <rguenther@suse.de>
14531
14532 PR middle-end/48134
14533 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14534 a value make sure to fold the statement.
14535
14536 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14537
14538 PR target/43872
14539 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14540 return condition with !cfun->calls_alloca.
14541
14542 2011-03-17 Richard Guenther <rguenther@suse.de>
14543
14544 PR bootstrap/48148
14545 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14546 origin for decls in other ltrans units.
14547 (input_varpool_node): Likewise.
14548
14549 2011-03-17 Richard Guenther <rguenther@suse.de>
14550
14551 PR middle-end/48165
14552 * tree-object-size.c (compute_object_offset): Properly return
14553 the offset operand of MEM_REFs as sizetype.
14554
14555 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14556
14557 PR rtl-optimization/48141
14558 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14559 * dse.c: Include params.h.
14560 (active_local_stores_len): New variable.
14561 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14562 to NULL.
14563 (record_store, check_mem_read_rtx): Decrease it when removing
14564 from the chain.
14565 (scan_insn): Likewise. Increase it when adding to chain, if it
14566 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14567 set active_local_stores to NULL before the addition.
14568 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14569
14570 PR rtl-optimization/48141
14571 * dse.c (record_store): If no positions are needed in an insn
14572 that cannot be deleted, at least unchain it from active_local_stores.
14573
14574 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14575
14576 PR debug/47510
14577 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14578 (lookup_type_die_strip_naming_typedef): ... here.
14579 (get_context_die): Use it.
14580 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14581 the anonymous struct named by the naming typedef.
14582
14583 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14584
14585 PR target/48154
14586 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14587 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14588
14589 2011-03-16 Jeff Law <law@redhat.com>
14590
14591 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14592 check for operands of conditional. Allow type to be a pointer.
14593
14594 2011-03-16 Richard Guenther <rguenther@suse.de>
14595
14596 PR tree-optimization/48149
14597 * fold-const.c (fold_binary_loc): Fold
14598 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14599
14600 2011-03-16 Richard Guenther <rguenther@suse.de>
14601
14602 PR tree-optimization/26134
14603 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14604 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14605 (non_rewritable_mem_ref_base): Handle complex type component
14606 accesses, constrain offsets for vector and complex extracts
14607 more properly.
14608
14609 2011-03-16 Richard Guenther <rguenther@suse.de>
14610
14611 PR tree-optimization/48146
14612 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14613 operands avoiding the need for renaming.
14614
14615 2011-03-16 Richard Guenther <rguenther@suse.de>
14616
14617 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14618 constant folding. Move MEM_REF canonicalization first.
14619 Rely on fold_const_aggregate_ref for initializer folding.
14620 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14621
14622 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14623
14624 PR middle-end/48136
14625 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14626 arg0/arg1 or their arguments are always fold converted to matching
14627 types.
14628
14629 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14630 to nargs.
14631
14632 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14633
14634 PR lto/46944
14635 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14636 Handle in-tree gold.
14637 (ld_vers): Extract binutils version for gold.
14638 (gcc_cv_ld_hidden): Handle gold here.
14639 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14640 * configure: Regenerate.
14641 * config.in: Regenerate.
14642 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14643 -fuse-linker-plugin otherwise.
14644 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14645 (LINK_COMMAND_SPEC): Use it.
14646 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14647
14648 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14649
14650 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14651 * calls.c: Remove debug.h include.
14652 (emit_call_1): Don't call virtual_call_token debug hook.
14653 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14654 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14655 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14656 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14657 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14658 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14659 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14660 dwarf2out_virtual_call): Remove.
14661 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14662 copy_call_info and virtual_call hooks.
14663 (dwarf2out_init): Don't initialize vcall_insn_table,
14664 debug_dcall_section and debug_vcall_section.
14665 (prune_unused_types): Don't mark nodes from dcall_table.
14666 (dwarf2out_finish): Don't output dcall or vcall tables.
14667 * final.c (final_scan_insn): Don't call direct_call or
14668 virtual_call debug hooks.
14669 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14670 virtual_call_token, copy_call_info and virtual_call hooks.
14671 (debug_nothing_uid): Remove prototype.
14672 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14673 copy_call_info and virtual_call hooks.
14674 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14675 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14676 * debug.c (do_nothing_debug_hooks): Likewise.
14677 (debug_nothing_uid): Remove.
14678 * doc/invoke.texi (-fenable-icf-debug): Remove.
14679 * common.opt (-fenable-icf-debug): Likewise.
14680
14681 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14682 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14683 call's MEM. Handle functions returning aggregate through a hidden
14684 first pointer. For virtual calls add clobbered pc to call arguments
14685 chain.
14686 * dwarf2out.c (gen_subprogram_die): Emit
14687 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14688 can't be emitted.
14689
14690 PR debug/45882
14691 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14692 * rtl.h (ENTRY_VALUE_EXP): Define.
14693 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14694 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14695 * print-rtl.c (print_rtx): Likewise.
14696 * gengtype.c (adjust_field_rtx_def): Likewise.
14697 * var-tracking.c (vt_add_function_parameter): Adjust
14698 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14699 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14700 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14701 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14702 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14703
14704 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14705 Call var_location debug hook even on CALL_INSNs.
14706 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14707 * rtl.def (ENTRY_VALUE): New.
14708 * dwarf2out.c: Include cfglayout.h.
14709 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14710 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14711 (struct call_arg_loc_node): New type.
14712 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14713 tail_call_site_count): New variables.
14714 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14715 DW_TAG_GNU_call_site_parameter.
14716 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14717 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14718 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14719 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14720 and DW_AT_GNU_all_source_call_sites.
14721 (mem_loc_descriptor): Handle ENTRY_VALUE.
14722 (add_src_coords_attributes): Don't add enything if
14723 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14724 (dwarf2out_abstract_function): Save and clear call_arg_location,
14725 call_site_count and tail_call_site_count around dwarf2out_decl call.
14726 (gen_call_site_die): New function.
14727 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14728 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14729 (dwarf2out_function_decl): Clear call_arg_locations,
14730 call_arg_loc_last, set call_site_count and tail_call_site_count
14731 to -1 and free block_map.
14732 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14733 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14734 followed by any real instructions.
14735 (dwarf2out_begin_function): Set call_site_count and
14736 tail_call_site_count to 0.
14737 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14738 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14739 attempt to force a DIE for it and worst case remove the attribute.
14740 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14741 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14742 the decl itself.
14743 * var-tracking.c: Include tm_p.h.
14744 (vt_stack_adjustments): For calls call note_register_arguments.
14745 (argument_reg_set): New variable.
14746 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14747 ensure the VALUE is resolved.
14748 (call_arguments): New variable.
14749 (prepare_call_arguments): New function.
14750 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14751 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14752 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14753 always use the best expression.
14754 (vt_expand_loc): Add ignore_cur_loc argument.
14755 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14756 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14757 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14758 note for all calls.
14759 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14760 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14761 argument. Don't call cselib_preserve_only_values and
14762 cselib_reset_table.
14763 (note_register_arguments): New function.
14764 (vt_initialize): Compute argument_reg_set. Call
14765 vt_add_function_parameters before processing basic blocks instead of
14766 afterwards. For calls call prepare_call_arguments before calling
14767 cselib_process_insn.
14768 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14769 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14770 (var-tracking.o): Depend on $(TM_P_H).
14771 * cfglayout.h (insn_scope): New prototype.
14772 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14773 * cfglayout.c (insn_scope): No longer static.
14774 * insn-notes.def (CALL_ARG_LOCATION): New.
14775 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14776 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14777 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14778 nothing for DECL_EXTERNAL BLOCK_VARS.
14779
14780 2011-03-16 Alan Modra <amodra@gmail.com>
14781
14782 PR target/45844
14783 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14784 create invalid offset address for vsx splat insn.
14785 * config/rs6000/predicates.md (splat_input_operand): New.
14786 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14787
14788 2011-03-15 Xinliang David Li <davidxl@google.com>
14789
14790 PR c/47837
14791 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14792 (normalize_preds): New function.
14793 (is_use_properly_guarded): Normalize def predicates.
14794
14795 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14796
14797 PR target/46788
14798 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14799 in the output template.
14800
14801 2011-03-15 Richard Guenther <rguenther@suse.de>
14802
14803 PR middle-end/47650
14804 * tree-pretty-print.c (dump_function_declaration): Properly
14805 dump unprototyped and varargs function types.
14806
14807 2011-03-15 Richard Guenther <rguenther@suse.de>
14808
14809 PR tree-optimization/13954
14810 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14811 and friends.
14812
14813 2011-03-15 Richard Guenther <rguenther@suse.de>
14814
14815 PR tree-optimization/48037
14816 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14817 selects into BIT_FIELD_REFs.
14818 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14819 vector select.
14820
14821 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14822
14823 PR tree-optimization/48129
14824 * builtins.c (fold_builtin_snprintf): Convert to type of
14825 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14826 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14827
14828 2011-03-15 Richard Guenther <rguenther@suse.de>
14829
14830 PR tree-optimization/41490
14831 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14832 value but with VUSE.
14833 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14834 return statements.
14835 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14836 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14837 * tree-tailcall.c (find_tail_calls): Ignore returns.
14838
14839 2011-03-15 Richard Guenther <rguenther@suse.de>
14840
14841 PR middle-end/48031
14842 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14843 or variable-indexed array accesses when in gimple form.
14844
14845 2011-03-15 Richard Guenther <rguenther@suse.de>
14846
14847 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14848
14849 2011-03-15 Alan Modra <amodra@gmail.com>
14850
14851 PR target/48032
14852 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14853 presume symbol_refs without a symbol_ref_decl are suitably
14854 aligned, nor other trees we may see here. Handle anchor symbols.
14855 (legitimate_constant_pool_address_p): Comment. Add mode param.
14856 Check cmodel=medium addresses. Adjust all calls.
14857 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14858 creating cmodel=medium optimized access to locals.
14859 * config/rs6000/constraints.md (R): Pass QImode to
14860 legitimate_constant_pool_address_p.
14861 * config/rs6000/predicates.md (input_operand): Pass mode to
14862 legitimate_constant_pool_address_p.
14863 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14864 Update prototype.
14865
14866 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14867
14868 PR target/48053
14869 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14870 64-bit constants being loaded into registers other than GPRs such
14871 as loading 0 into a VSX register.
14872
14873 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14874
14875 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14876
14877 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14878
14879 PR middle-end/47917
14880 * builtins.c (fold_builtin_snprintf): New function.
14881 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14882 (fold_builtin_4): Likewise.
14883
14884 PR middle-end/38878
14885 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14886 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14887 and C - X == X also strip nops from +/-/p+ operand.
14888 When optimizing -X == C, fold C to arg0's type.
14889
14890 PR debug/47946
14891 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14892 emit it as add_AT_int instead of add_AT_unsigned.
14893
14894 2011-03-14 Tom Tromey <tromey@redhat.com>
14895
14896 * unwind-dw2.c: Include sys/sdt.h if it exists.
14897 (_Unwind_DebugHook): Use STAP_PROBE2.
14898 * config.in, configure: Rebuild.
14899 * configure.ac: Check for sys/sdt.h.
14900
14901 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14902
14903 * config/i386/i386.md (ROUND_FLOOR): New constant.
14904 (ROUND_CEIL): Ditto.
14905 (ROUND_TRUNC): Ditto.
14906 (ROUND_MXCSR): Ditto.
14907 (ROUND_NO_EXC): Ditto.
14908 (rint<mode>2): Use new defines instead of numerical constants.
14909 (floor<mode>2): Ditto.
14910 (ceil<mode>2): Ditto.
14911 (btrunc<mode>2): Ditto.
14912 * config/i386/i386-builtin-types.def: Define ROUND function type
14913 aliases.
14914 * config/i386/i386.c (enum ix86_builtins): Add
14915 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14916 (struct builtin_description): Add
14917 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14918 (ix86_expand_sse_round): New static function.
14919 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14920 function types.
14921 (ix86_builtin_vectorized_function): Handle
14922 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14923
14924 2011-03-14 Tom Tromey <tromey@redhat.com>
14925
14926 * c-parser.c (c_parser_asm_string_literal): Clear
14927 warn_overlength_strings.
14928
14929 2011-03-14 Tom Tromey <tromey@redhat.com>
14930
14931 * c-parser.c (disable_extension_diagnostics): Save
14932 warn_overlength_strings.
14933 (restore_extension_diagnostics): Restore warn_overlength_strings.
14934
14935 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14936
14937 * BASE-VER: Change to 4.7.0.
14938
14939 2011-03-14 Richard Guenther <rguenther@suse.de>
14940
14941 PR middle-end/48098
14942 * tree.c (build_vector_from_val): Adjust assert to requirements
14943 and reality.
14944
14945 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14946
14947 PR bootstrap/48102
14948 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14949
14950 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14951
14952 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14953 terms of target_flags_explicit. Adjust copyright year.
14954
14955 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14956 * config/rs6000/t-freebsd: New file. Add override for
14957 LIB2FUNCS_EXTRA.
14958
14959 2011-03-13 Chris Demetriou <cgd@google.com>
14960
14961 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14962 (-fno-diagnostics-show-option): this, to reflect current default.
14963 (-Werror=): Update text about -fno-diagnostics-show-option.
14964
14965 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14966
14967 PR target/48053
14968 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14969 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14970 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14971 mode is not V2DImode or V2DFmode.
14972 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14973 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14974 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14975 registers to 0.
14976 (movdi_internal64): Likewise.
14977
14978 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14979
14980 PR tree-optimization/47127
14981 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14982 parameter.
14983 (set_cloog_options): Same.
14984 (scop_to_clast): Same.
14985 (print_clast_stmt): Do not call cloog_state_malloc and
14986 cloog_state_free.
14987 (print_generated_program): Same.
14988 (gloog): Same.
14989 * graphite-clast-to-gimple.h (cloog_state): Declared.
14990 (scop_to_clast): Adjust declaration.
14991 * graphite.c (cloog_state): Defined here.
14992 (graphite_initialize): Call cloog_state_malloc.
14993 (graphite_finalize): Call cloog_state_free.
14994
14995 2011-03-11 Jason Merrill <jason@redhat.com>
14996
14997 * attribs.c (lookup_attribute_spec): Take const_tree.
14998 * tree.h: Adjust.
14999
15000 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15001
15002 * config/sparc/sparc.c (sparc_option_override): Use
15003 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15004
15005 2011-03-11 Richard Guenther <rguenther@suse.de>
15006
15007 PR tree-optimization/48067
15008 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15009 multiplication result will be only used once on the target
15010 stmt.
15011
15012 2011-03-11 Richard Guenther <rguenther@suse.de>
15013
15014 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15015
15016 2011-03-11 Richard Guenther <rguenther@suse.de>
15017
15018 PR lto/48073
15019 * tree.c (find_decls_types_r): Do not walk types only reachable
15020 from IDENTIFIER_NODEs.
15021
15022 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR middle-end/48044
15025 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15026 all vnode->force_output nodes as needed.
15027
15028 2011-03-11 Jason Merrill <jason@redhat.com>
15029
15030 PR c++/48069
15031 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15032 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15033
15034 2011-03-11 Martin Jambor <mjambor@suse.cz>
15035
15036 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15037 cgraph_node.
15038
15039 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15040
15041 PR tree-optimization/48063
15042 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15043 inline functions called once if !tree_can_inline_p (node->callers).
15044
15045 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15046
15047 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15048 extra_objs.
15049 * config/score/score3.c: Delete.
15050 * config/score/score3.h: Delete.
15051 * config/score/mul-div.S: Delete.
15052 * config/score/sfp-machine.h: Add new file.
15053 * config/score/constraints.md: Add new file.
15054 * config/score/t-score-softfp: Add new file.
15055 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15056 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15057 (score7_extra_constraint): Delete.
15058 (score7_option_override): Remove unused code.
15059 * config/score/score.c: Remove score3 and score5 define and code.
15060 * config/score/score.h: Remove score3 and score5 define and code.
15061 * config/score/score.md: Remove score3 template and unusual insn.
15062 * config/score/score.opt: Remove score3 and score5 options.
15063
15064 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15065
15066 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15067 when _HPUX_SOURCE is defined.
15068 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15069
15070 2011-03-10 Jason Merrill <jason@redhat.com>
15071
15072 PR c++/48029
15073 * stor-layout.c (layout_type): Don't set structural equality
15074 on arrays of incomplete type.
15075 * tree.c (type_hash_eq): Handle comparing them properly.
15076
15077 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15078
15079 PR debug/48043
15080 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15081 result mode matches original rtl mode.
15082
15083 2011-03-10 Nick Clifton <nickc@redhat.com>
15084
15085 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15086 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15087
15088 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15089
15090 PR rtl-optimization/47866
15091 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15092 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15093 if target wasn't scalar.
15094 * function.c (assign_stack_temp_for_type): Assert that neither
15095 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15096 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15097 macro.
15098 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15099
15100 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15101
15102 * config/s390/s390-protos.h (s390_label_align): New prototype.
15103 * config/s390/s390.c (s390_label_align): New function.
15104 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15105
15106 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15107
15108 PR target/47755
15109 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15110 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15111 (output_vec_const_move): Ditto.
15112
15113 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15114
15115 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15116 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15117 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15118 Change 'rclass' argument and result type to reg_class_t.
15119 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15120
15121 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15122
15123 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15124 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15125 (TARGET_MEMORY_MOVE_COST): Define.
15126 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15127
15128 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15129
15130 PR debug/47881
15131 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15132 removed anything.
15133
15134 PR tree-optimization/48022
15135 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15136 for EQ/NE_EXPR.
15137
15138 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15139
15140 PR debug/47991
15141 * var-tracking.c (find_use_val): Return NULL for
15142 cui->sets && cui->store_p BLKmode MEMs.
15143
15144 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15145
15146 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15147 Remove.
15148 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15149 xstormy16_print_operand_address): Remove.
15150 * config/stormy16/stormy16.c (xstormy16_print_operand,
15151 xstormy16_print_operand_address): Make static.
15152 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15153
15154 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15155
15156 PR target/47862
15157 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15158 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15159 before definition.
15160
15161 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15162
15163 PR bootstrap/48000
15164 * cfgloopmanip.c (fix_bb_placements): Return immediately
15165 if FROM is BASE_LOOP's header.
15166
15167 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15168
15169 * gimplify.c (gimplify_function_tree): Fix building calls
15170 to __builtin_return_address.
15171
15172 2011-03-07 Alan Modra <amodra@gmail.com>
15173
15174 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15175 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15176 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15177 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15178 return_mode args.
15179 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15180 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15181 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15182 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15183 * config/rs6000/rs6000.c
15184 (rs6000_elf_end_indicate_exec_stack): Rename to..
15185 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15186 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15187 (rs6000_file_start): ..here.
15188 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15189 file scope variables.
15190 (call_ABI_of_interest): New function.
15191 (init_cumulative_args): Set above vars when function return value
15192 is a float, vector, or small struct.
15193 (rs6000_function_arg_advance_1): Likewise for function args.
15194 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15195 references float args.
15196
15197 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15198
15199 * doc/cfg.texi: Remove "See" before @ref.
15200 * doc/invoke.texi: Likewise.
15201
15202 2011-03-05 Jason Merrill <jason@redhat.com>
15203
15204 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15205
15206 2011-03-05 Anthony Green <green@moxielogic.com>
15207
15208 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15209
15210 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15211
15212 PR rtl-optimization/47899
15213 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15214 to flow_loop_nested_p when moving the loop upward.
15215
15216 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15217
15218 PR target/47719
15219 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15220
15221 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15222
15223 PR tree-optimization/47967
15224 * ipa-cp.c (build_const_val): Return NULL instead of creating
15225 VIEW_CONVERT_EXPR for mismatching sizes.
15226 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15227 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15228 give up on versioning.
15229
15230 2011-03-05 Alan Modra <amodra@gmail.com>
15231
15232 PR target/47986
15233 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15234 full cmodel medium/large lo_sum + high addresses.
15235
15236 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15237
15238 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15239 pool references in UNSPEC_LTREL_OFFSET.
15240
15241 2011-03-04 Jan Hubicka <jh@suse.cz>
15242
15243 PR lto/47497
15244 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15245 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15246 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15247 Add node pointers.
15248 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15249 cgraph_add_thunk): Add node pointers.
15250 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15251 associated to right node.
15252 (input_node): Update use of cgraph_same_body_alias
15253 and cgraph_add_thunk.
15254
15255 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15256
15257 * config/i386/i386.opt (mprefer-avx128): New flag.
15258 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15259 modes when the flag -mprefer-avx128 is on.
15260
15261 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15262
15263 * dwarf2out.c (compare_loc_operands): Fix address handling.
15264
15265 2011-03-04 Alan Modra <amodra@gmail.com>
15266
15267 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15268
15269 2011-03-04 Richard Guenther <rguenther@suse.de>
15270
15271 PR middle-end/47968
15272 * expmed.c (extract_bit_field_1): Prefer vector modes that
15273 vec_extract patterns can handle.
15274
15275 2011-03-04 Richard Guenther <rguenther@suse.de>
15276
15277 PR middle-end/47975
15278 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15279
15280 2011-03-04 Richard Henderson <rth@redhat.com>
15281
15282 * explow.c (emit_stack_save): Remove 'after' parameter.
15283 (emit_stack_restore): Likewise.
15284 * expr.h: Update to match.
15285 * builtins.c, calls.c, stmt.c: Likewise.
15286 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15287 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15288 * function.c (expand_function_end): Insert the emit_stack_save
15289 sequence before parm_birth_insn instead of after.
15290
15291 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15292
15293 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15294 (ssse3_pmaddubsw128): Ditto.
15295 (ssse3_pmaddubsw): Ditto.
15296
15297 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15298
15299 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15300
15301 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15302
15303 PR c/47963
15304 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15305 on TYPE_SIZE_UNIT if it is a DECL.
15306
15307 PR debug/47283
15308 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15309 first operand is not is_gimple_mem_ref_addr, try to fold it.
15310 If the operand still isn't is_gimple_mem_ref_addr, clear
15311 MEM_EXPR on op0.
15312
15313 2011-03-03 Richard Guenther <rguenther@suse.de>
15314
15315 PR middle-end/47283
15316 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15317 match comment.
15318 (refs_may_alias_p_1): For release branches return true if
15319 we are confused by our input.
15320
15321 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15322
15323 * config/s390/s390.c (s390_function_value): Rename to ...
15324 (s390_function_and_libcall_value): ... this.
15325 (s390_function_value): New function.
15326 (s390_libcall_value): New function.
15327 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15328 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15329 target macro definitions.
15330 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15331
15332 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15333
15334 * config/i386/freebsd64.h (CC1_SPEC): Define.
15335 * config/i386/linux64.h (CC1_SPEC): Define.
15336 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15337
15338 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15339
15340 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15341 Remove.
15342 * config/stormy16/stormy16.c: Include reload.h.
15343 (xstormy16_memory_move_cost): New function.
15344 (TARGET_MEMORY_MOVE_COST): Define.
15345
15346 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15347
15348 PR rtl-optimization/47925
15349 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15350 with side effects. Remove the more-specific check for volatile asms.
15351
15352 2011-03-02 Alan Modra <amodra@gmail.com>
15353
15354 PR target/47935
15355 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15356 toc relative addresses for valid offsets.
15357
15358 2011-03-01 Richard Guenther <rguenther@suse.de>
15359
15360 PR tree-optimization/47890
15361 * tree-vect-loop.c (get_initial_def_for_induction): Set
15362 related stmt properly.
15363
15364 2011-03-01 Richard Guenther <rguenther@suse.de>
15365
15366 PR lto/47924
15367 * lto-streamer.c (lto_record_common_node): Also register
15368 the canonical type.
15369
15370 2011-03-01 Richard Guenther <rguenther@suse.de>
15371
15372 PR lto/46911
15373 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15374 Do not stream DECL_ABSTRACT_ORIGIN.
15375 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15376 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15377 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15378 Do not stream DECL_ABSTRACT_ORIGIN.
15379 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15380 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15381
15382 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15383
15384 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15385 FUNCTION_VALUE_REGNO_P): Remove.
15386 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15387 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15388 Add 'outgoing' argument.
15389 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15390 function.
15391 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15392 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15393
15394 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15395
15396 PR debug/28047
15397 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15398 (lookup_filename): Likewise.
15399 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15400
15401 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15402 Jakub Jelinek <jakub@redhat.com>
15403
15404 PR middle-end/47893
15405 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15406 (assign_stack_local_1): Change last argument type to int.
15407 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15408 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15409 don't record padding space into frame_space_list nor use those areas.
15410 (assign_stack_local): Adjust caller.
15411 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15412 of assign_stack_local, pass 0 as last argument.
15413 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15414 callers.
15415
15416 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15417
15418 PR debug/47283
15419 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15420 Use target address_mode and pointer_mode hooks instead of hardcoded
15421 Pmode and ptr_mode. Handle some simple cases of extending if
15422 POINTERS_EXTEND_UNSIGNED < 0.
15423 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15424 Call convert_debug_memory_address.
15425 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15426 convert_debug_memory_address.
15427
15428 PR middle-end/46790
15429 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15430 * configure: Regenerated.
15431 * config.in: Regenerated.
15432 * varasm.c (default_function_section): Return NULL
15433 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15434
15435 2011-02-28 Martin Jambor <mjambor@suse.cz>
15436
15437 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15438 the description to match the printed values.
15439
15440 2011-02-28 Richard Guenther <rguenther@suse.de>
15441
15442 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15443 of the copied scope tree.
15444
15445 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15446
15447 * doc/extend.texi (Function Attributes): Avoid deeply (and
15448 wrongly) nested tables.
15449
15450 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15451
15452 PR middle-end/47903
15453 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15454 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15455 r isn't op0 nor op1.
15456
15457 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15458
15459 * config/avr/avr.md: Remove magic comment for emacs.
15460
15461 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15462
15463 PR target/45261
15464 * config/avr/avr.c (avr_option_override): Use error on bad options.
15465 (avr_help): New function.
15466 (TARGET_HELP): Define.
15467
15468 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15469
15470 PR target/42240
15471 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15472 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15473
15474 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15475
15476 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15477 (ARM Options): Ditto.
15478 (i386 and x86-64 Options): Ditto.
15479 (RX Options): Ditto.
15480 (SPARC Options): Ditto.
15481
15482 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15483
15484 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15485 FreeBSD 6 and later. Generally use cpu generic.
15486
15487 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15488
15489 * doc/cpp.texi: Update copyright years.
15490
15491 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15492
15493 PR target/46898
15494 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15495
15496 2011-02-25 Jon Beniston <jon@beniston.com>
15497
15498 PR target/46898
15499 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15500 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15501 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15502 (lm32_block_move_inline): Add type cast to remove warning.
15503 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15504 (gen_int_relational): Move declarations to start of function.
15505
15506 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15507
15508 PR tree-optimization/45470
15509 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15510 can throw internally only.
15511 * tree-vect-stmts.c (vectorizable_call): Likewise.
15512
15513 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15514
15515 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15516 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15517 * config/stormy16/stormy16-protos.h
15518 (xstormy16_preferred_reload_class): Remove.
15519 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15520 static. Change 'rclass' argument and return type to reg_class_t.
15521 (TARGET_PREFERRED_RELOAD_CLASS,
15522 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15523
15524 2011-02-24 Richard Guenther <rguenther@suse.de>
15525
15526 * lto-streamer-in.c (input_bb): Do not find referenced vars
15527 in debug statements.
15528
15529 2011-02-23 Jason Merrill <jason@redhat.com>
15530
15531 * common.opt (fabi-version): Document v5 and v6.
15532
15533 2011-02-23 Richard Guenther <rguenther@suse.de>
15534
15535 PR tree-optimization/47849
15536 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15537
15538 2011-02-23 Jie Zhang <jie@codesourcery.com>
15539
15540 * opts-common.c (decode_cmdline_option): Print empty string
15541 argument as "" in decoded->orig_option_with_args_text.
15542 * gcc.c (execute): Print empty string argument as ""
15543 in the verbose output.
15544 (do_spec_1): Keep empty string argument.
15545
15546 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15547
15548 * config.gcc: Declare score-* and crx-* obsolete.
15549
15550 2011-02-23 Jie Zhang <jie@codesourcery.com>
15551
15552 PR rtl-optimization/47763
15553 * web.c (web_main): Ignore naked clobber when replacing register.
15554
15555 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15556
15557 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15558 Remove.
15559
15560 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15561
15562 PR doc/47848
15563 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15564
15565 2011-02-22 Mike Stump <mikestump@comcast.net>
15566
15567 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15568 assembler.
15569 * configure: Regenerate.
15570
15571 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15572
15573 PR rtl-optimization/46002
15574 * ira-color.c (update_copy_costs): Change class intersection
15575 test to reg_class_contents[] test of 'hard_regno'.
15576
15577 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15578
15579 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15580 than Driver option.
15581 * config/hpux11.opt (mt): Likewise.
15582 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15583 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15584 * config/vax/elf.opt (mno-asm-pic): Likewise.
15585 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15586
15587 2011-02-21 Mike Stump <mikestump@comcast.net>
15588
15589 PR target/47822
15590 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15591 tree so we can get save the type.
15592 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15593 for CFString instead of trying to use past the end of the builtins.
15594 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15595 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15596 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15597 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15598 Rename to darwin_builtin_cfstring.
15599 (darwin_init_cfstring_builtins): Return the built type.
15600
15601 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15602
15603 PR target/47840
15604 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15605 (_mm256_insert_epi64): Use _mm_insert_epi64.
15606
15607 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15608
15609 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15610 * config/stormy16/stormy16-protos.h
15611 (xstormy16_mode_dependent_address_p): Remove.
15612 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15613 Make static. Change return type to bool. Change argument type to
15614 const_rtx. Remove dead code.
15615 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15616
15617 2011-02-21 Richard Guenther <rguenther@suse.de>
15618
15619 PR lto/47820
15620 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15621 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15622 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15623 TUs context.
15624 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15625 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15626
15627 2011-02-20 Richard Guenther <rguenther@suse.de>
15628
15629 PR lto/47822
15630 * tree.c (free_lang_data_in_decl): Clean builtins from
15631 the TU decl BLOCK_VARS.
15632
15633 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15634
15635 PR debug/47620
15636 PR debug/47630
15637 * haifa-sched.c (fix_tick_ready): Skip tick computation
15638 for debug insns.
15639
15640 2011-02-19 Richard Guenther <rguenther@suse.de>
15641
15642 PR lto/47647
15643 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15644 Remove lazy BLOCK_VARS streaming.
15645 (lto_input_ts_block_tree_pointers): Likewise.
15646 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15647
15648 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15649
15650 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15651
15652 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15653
15654 * config/i386/biarch32.h, config/i386/mach.h,
15655 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15656
15657 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15658
15659 PR target/47800
15660 * config/i386/i386.md (peephole2 for shift and plus): Use
15661 operands[1] original mode in the first insn.
15662
15663 2011-02-18 Mike Stump <mikestump@comcast.net>
15664
15665 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15666
15667 2011-02-18 Jan Hubicka <jh@suse.cz>
15668
15669 PR middle-end/47788
15670 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15671 to zero when the function is not inlinable at all.
15672
15673 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15674
15675 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15676 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15677 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15678 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15679 * config/pa/t-pa64: Likewise.
15680 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15681
15682 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15683
15684 PR driver/47787
15685 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15686
15687 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15688
15689 PR target/47792
15690 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15691
15692 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15693
15694 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15695 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15696 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15697 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15698 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15699 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15700 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15701 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15702 m32r_legitimate_address_p): New functions.
15703 * config/m32r/constraints.md (constraint "S"): Don't use
15704 STORE_PREINC_PREDEC_P.
15705 (constraint "U"): Don't use LOAD_POSTINC_P.
15706
15707 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15708
15709 PR rtl-optimization/46178
15710 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15711 compute ira_hard_regno_cover_class[].
15712
15713 2011-02-18 Richard Guenther <rguenther@suse.de>
15714
15715 PR lto/47798
15716 * lto-streamer.h (lto_global_var_decls): Declare.
15717 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15718 statics for global var processing.
15719
15720 2011-02-18 Richard Guenther <rguenther@suse.de>
15721
15722 PR tree-optimization/47737
15723 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15724 edge dominance check.
15725
15726 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15727
15728 PR debug/47780
15729 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15730 avoid invalid rtx sharing.
15731
15732 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15733
15734 * doc/cpp.texi (Obsolete Features): Add background on the
15735 origin of assertions.
15736
15737 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15738
15739 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15740 objc_abi == 2.
15741 * config/darwin.c (output_objc_section_asm_op): Added support for
15742 ABI v1 and v2.
15743 (is_objc_metadata): New.
15744 (darwin_objc2_section): New.
15745 (darwin_objc1_section): New.
15746 (machopic_select_section): Added support for ABI v1 and v2.
15747 (darwin_emit_objc_zeroed): New.
15748 (darwin_output_aligned_bss): Detect objc metadata and treat it
15749 appropriately.
15750 (darwin_asm_output_aligned_decl_common): Same.
15751 (darwin_asm_output_aligned_decl_local): Same.
15752 * config/darwin-sections.def: Updated for ABI v1 and v2.
15753 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15754 compiling Objective-C code for the NeXT runtime, default to using
15755 ABI version 0 for 32-bit, and version 2 for 64-bit.
15756
15757 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15758
15759 * common.opt (optimize_fast): New Variable.
15760 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15761 instead of local variable ofast.
15762
15763 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15764
15765 * doc/invoke.texi (fobjc-abi-version): Documented.
15766 (fobjc-nilcheck): Documented.
15767 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15768 version.
15769
15770 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15771
15772 PR driver/47390
15773 * common.opt (export-dynamic): New Driver option.
15774 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15775
15776 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15777
15778 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15779
15780 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15781 Jan Hubicka <jh@suse.cz>
15782
15783 PR debug/47106
15784 PR debug/47402
15785 * cfgexpand.c (account_used_vars_for_block): Remove.
15786 (estimated_stack_frame_size): Use referenced vars.
15787 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15788 that were referenced in the original function. Test src_fn
15789 rather than cfun. Drop redundant get_var_ann.
15790 (setup_one_parameter): Drop redundant get_var_ann.
15791 (declare_return_variable): Likewise.
15792 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15793 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15794 * ipa-inline.c (compute_inline_parameters): Do not compute
15795 disregard_inline_limits here.
15796 (compute_inlinable_for_current, pass_inlinable): New.
15797 (pass_inline_parameters): Require PROP_referenced_vars.
15798 * cgraphunit.c (cgraph_process_new_functions): Don't run
15799 compute_inline_parameters explicitly unless function is in SSA form.
15800 (cgraph_analyze_function): Set .disregard_inline_limits.
15801 * tree-sra.c (convert_callers): Compute inliner parameters
15802 only for functions already in SSA form.
15803
15804 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15805
15806 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15807 -mlittle-endian-data.
15808
15809 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15810
15811 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15812 -mno-fpu, not -fpu and -no-fpu.
15813 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15814 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15815
15816 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15817
15818 PR target/43653
15819 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15820 input reload with PLUS RTX.
15821
15822 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15823
15824 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15825 of InverseVar(MDMX).
15826
15827 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15828
15829 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15830 --m4-340.
15831
15832 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15833
15834 * config/mn10300/mn10300.opt (mno-crt0): New.
15835
15836 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15837
15838 * config/m68k/uclinux.opt (static-libc): New Driver option.
15839
15840 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15841
15842 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15843
15844 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15845
15846 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15847 %{muser-extend-enabled}.
15848
15849 2011-02-16 Richard Guenther <rguenther@suse.de>
15850
15851 PR tree-optimization/47738
15852 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15853 the TODO from tree_predictive_commoning.
15854
15855 2011-02-15 Jeff Law <law@redhat.com>
15856
15857 Revert
15858 2011-01-25 Jeff Law <law@redhat.com>
15859
15860 PR rtl-optimization/37273
15861 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15862 handle them like argument loads from stack slots. Do not double
15863 count memory for memory constants and argument loads from stack slots.
15864
15865 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15866
15867 PR middle-end/47725
15868 * combine.c (cant_combine_insn_p): Revert the last change.
15869
15870 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15871
15872 PR target/47755
15873 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15874 mode for vector constants. Remove code that checks for TImode.
15875
15876 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15877
15878 PR debug/47106
15879 PR debug/47402
15880 * cgraph.h (compute_inline_parameters): Return void.
15881 * ipa-inline.c (compute_inline_parameters): Adjust.
15882
15883 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15884
15885 PR debug/47106
15886 PR debug/47402
15887 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15888 rather than decl.
15889 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15890 * ipa-inline.c (compute_inline_parameters): Adjust.
15891
15892 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15893
15894 PR debug/47106
15895 PR debug/47402
15896 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15897 Adjust all users. Pass FN to...
15898 * tree-flow-inline.h (first_referenced_var): ... this. Add
15899 fn argument.
15900 * ipa-struct-reorg.c: Adjust.
15901 * tree-dfa.c: Adjust.
15902 * tree-into-ssa.c: Adjust.
15903 * tree-sra.c: Adjust.
15904 * tree-ssa-alias.c: Adjust.
15905 * tree-ssa-live.c: Adjust.
15906 * tree-ssa.c: Adjust.
15907 * tree-ssanames.c: Adjust.
15908 * tree-tailcall.c: Adjust.
15909
15910 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15911
15912 PR debug/47106
15913 PR debug/47402
15914 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15915 Adjust all callers.
15916 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15917 * tree-flow-inline.h: Adjust.
15918 * gimple-pretty-print.c: Adjust.
15919 * tree-into-ssa.c: Adjust.
15920 * tree-ssa.c: Adjust.
15921 * cfgexpand.c: Adjust.
15922
15923 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15924
15925 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15926 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15927 (EXTRA_CONSTRAINT): Delete.
15928 * config/iq2000/constraints.md: New file.
15929 * config/iq2000/iq2000.md: Include it.
15930 (define_insn ""): Delete.
15931 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15932 unsupported constraint letters from patterns.
15933 (call_value, call_value_internal1): Likewise.
15934 (call_value_multiple_internal1): Likewise.
15935
15936 2011-02-15 Nick Clifton <nickc@redhat.com>
15937
15938 * config/mn10300/mn10300.c: Include tm-constrs.h.
15939 (struct liw_data): New data structure describing an LIW candidate
15940 instruction.
15941 (extract_bundle): Use struct liw_data. Allow small integer
15942 operands for some instructions.
15943 (check_liw_constraints): Use struct liw_data. Remove swapped
15944 parameter. Add comments describing the checks. Fix bug when
15945 assigning the source of liw1 to the source of liw2.
15946 (liw_candidate): Delete. Code moved into extract_bundle.
15947 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15948 before swapping.
15949 * config/mn10300/predicates.md (liw_operand): New predicate.
15950 Allows registers and small integer constants.
15951 * config/mn10300/constraints.md (O): New constraint. Accetps
15952 integers in the range -8 to +7 inclusive.
15953 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15954 for moving a small integer into a register. Give this alternative
15955 LIW attributes.
15956 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15957 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15958 using the J,K,L and M constraints,
15959 (liw): Remove SI mode on second operands to allow for HI and QI
15960 mode values.
15961 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15962 instruction.
15963
15964 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15965
15966 PR middle-end/47725
15967 * combine.c (cant_combine_insn_p): Check zero/sign extended
15968 hard registers.
15969
15970 2011-02-15 Richard Guenther <rguenther@suse.de>
15971
15972 PR tree-optimization/47743
15973 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15974 for a non-type-compatible VN lookup bail out.
15975
15976 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15977
15978 * config/fr30/constraints.md: New file.
15979 * config/fr30/fr30.md: Include it.
15980 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15981 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15982 (EXTRA_CONSTRAINT): Delete.
15983
15984 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15985
15986 * config/frv/constraints.md: New file.
15987 * config/frv/predicates.md: Include it.
15988 * config/frv/frv.c (reg_class_from_letter): Delete.
15989 (frv_option_override): Don't initialize it.
15990 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15991 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15992 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15993 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15994 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15995 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15996 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15997 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15998 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15999 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16000 (REG_CLASS_FROM_CONSTRAINT): Delete.
16001
16002 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16003
16004 PR middle-end/47581
16005 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16006 if frame size is 0 in a leaf function.
16007
16008 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16009
16010 PR pch/14940
16011 * config/alpha/host-osf.c: New file.
16012 * config/alpha/x-osf: New file.
16013 * config.host (alpha*-dec-osf*): Use it.
16014
16015 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16016
16017 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16018 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16019 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16020 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16021 type to const_rtx.
16022 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16023
16024 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16025
16026 * config/stormy16/constraints.md: New file.
16027 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16028 Use satisfies_constraint_Q and satisfies_constraint_R.
16029 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16030 Delete.
16031 (xstormy16_legitiamte_address_p): Declare.
16032 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16033 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16034 (EXTRA_CONSTRAINT): Delete.
16035 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16036 Un-staticize.
16037 (xstormy16_extra_constraint_p): Delete.
16038
16039 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16040
16041 PR tree-optimization/46494
16042 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16043 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16044 (pass_rtl_loop_done): Add TODO_verify_flow.
16045 * fwprop.c (pass_rtl_fwprop): Likewise.
16046 * modulo-sched.c (pass_sms): Likewise.
16047 * tree-ssa-dom.c (pass_dominator): Likewise.
16048 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16049 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16050 (pass_tree_loop_done): Likewise.
16051 * tree-ssa-pre.c (execute_pre): Likewise.
16052 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16053 * tree-ssa-sink.c (pass_sink_code): Likewise.
16054 * tree-vrp.c (pass_vrp): Likewise.
16055
16056 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16057
16058 * config/v850/constraints.md: New file.
16059 * config/v850/v850.md: Include it.
16060 * config/v850/predicates.md (reg_or_0_operand): Use
16061 satisfies_constraint_G.
16062 (special_symbolref_operand): Use satisfies_constraint_K.
16063 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16064 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16065 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16066 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16067 (EXTRA_CONSTRAINT): Delete.
16068 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16069 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16070 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16071
16072 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16073
16074 PR target/47696
16075 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16076 description.
16077
16078 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16079
16080 * config/mcore/constraints.md: New file.
16081 * config/mcore/mcore.md: Include it.
16082 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16083 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16084 (REG_CLASS_FROM_LETTER): Delete.
16085 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16086 insn_const_int_ok_for_constraint.
16087 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16088 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16089 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16090 (EXTRA_CONSTRAINT): Delete.
16091
16092 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16093
16094 PR ada/41929
16095 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16096 (IS_SIGHANDLER): Define.
16097 (sparc64_is_sighandler): New function, split off from
16098 sparc64_fallback_frame_state.
16099 (sparc_is_sighandler): New function, split off from
16100 sparc_fallback_frame_state.
16101 (sparc64_fallback_frame_state): Merge with ...
16102 (sparc_fallback_frame_state): ... this into ...
16103 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16104 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16105 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16106 stack instead of hardcoded offsets.
16107
16108 2011-02-14 Andriy Gapon <avg@freebsd.org>
16109
16110 PR target/45808
16111 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16112
16113 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16114
16115 * configure: Regenerate.
16116
16117 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16118
16119 PR driver/45731
16120 * gcc.c (asm_options): Correct spec matching --target-help.
16121
16122 2011-02-12 Martin Jambor <mjambor@suse.cz>
16123
16124 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16125 to gimple call error.
16126
16127 2011-02-12 Mike Stump <mikestump@comcast.net>
16128
16129 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16130 comments in backslash regions.
16131
16132 2011-02-12 Mike Stump <mikestump@comcast.net>
16133 Jakub Jelinek <jakub@redhat.com>
16134 Iain Sandoe <iains@gcc.gnu.org>
16135
16136 PR target/47324
16137 * dwarf2out.c (output_cfa_loc): When required, apply the
16138 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16139 (output_loc_sequence): Likewise.
16140 (output_loc_operands_raw): Likewise.
16141 (output_loc_sequence_raw): Likewise.
16142 (output_cfa_loc): Likewise.
16143 (output_loc_list): Suppress register number adjustment when
16144 calling output_loc_sequence()
16145 (output_die): Likewise.
16146
16147 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16148
16149 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16150 Remove macros.
16151 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16152 xtensa_memory_move_cost): New functions.
16153 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16154
16155 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16156
16157 PR lto/47225
16158 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16159 in the current directory.
16160 * configure: Rebuilt.
16161
16162 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16163
16164 * config/darwin.c (darwin_override_options): Add a hunk missed
16165 from the commit of r168571. Trim comment line lengths and
16166 correct indents of the preceding block.
16167
16168 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16169
16170 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16171 the switch.
16172
16173 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16174
16175 * common.opt (nostartfiles): New Driver option.
16176
16177 2011-02-11 Xinliang David Li <davidxl@google.com>
16178
16179 PR tree-optimization/47707
16180 * tree-chrec.c (convert_affine_scev): Keep type precision.
16181
16182 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16183
16184 PR tree-optimization/47420
16185 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16186
16187 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16188
16189 PR rtl-optimization/47614
16190 * rtl.h (check_for_inc_dec): Declare.
16191 * dse.c (check_for_inc_dec): Externalize...
16192 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16193 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16194
16195 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16196
16197 PR driver/47678
16198 * gcc.c (main): Do not compile inputs if there were errors in
16199 option handling.
16200 * opts-common.c (read_cmdline_option): Check for wrong language
16201 after other error checks.
16202
16203 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16204
16205 * cgraph.c: Fix comment typos.
16206 * cgraph.h: Likewise.
16207 * cgraphunit.c: Likewise.
16208 * ipa-cp.c: Likewise.
16209 * ipa-inline.c: Likewise.
16210 * ipa-prop.c: Likewise.
16211 * ipa-pure-const.c: Likewise.
16212 * ipa-ref.c: Likewise.
16213 * ipa-reference.c: Likewise.
16214
16215 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16216
16217 PR debug/47684
16218 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16219
16220 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16221
16222 PR testsuite/47400
16223 * doc/sourcebuild.texi (Require Support): Document
16224 dg-require-ascii-locale.
16225
16226 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16227
16228 * doc/lto.texi (Write summary): Fix missing parentheses.
16229
16230 2011-02-10 DJ Delorie <dj@redhat.com>
16231
16232 * config/m32c/m32c.c (m32c_option_override): Disable
16233 -fcombine-stack-adjustments until flag value tracking and compare
16234 optimization can be rewritten.
16235
16236 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16237
16238 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16239 PROCESSOR_POWER7.
16240 (PROCESSOR_DEFAULT64): Likewise.
16241
16242 2011-02-10 Richard Henderson <rth@redhat.com>
16243
16244 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16245 change from 2011-02-03.
16246 * config/rx/rx.c (flags_from_code): Likewise.
16247 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16248 is valid, n/pz otherwise.
16249 (rx_select_cc_mode): Return CCmode if Y is not zero.
16250
16251 2011-02-10 Richard Guenther <rguenther@suse.de>
16252
16253 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16254
16255 2011-02-10 Richard Guenther <rguenther@suse.de>
16256
16257 PR tree-optimization/47677
16258 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16259
16260 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16261
16262 PR target/47665
16263 * combine.c (make_compound_operation): Only change shifts into
16264 multiplication for SCALAR_INT_MODE_P.
16265
16266 2011-02-10 Jie Zhang <jie@codesourcery.com>
16267
16268 PR testsuite/47622
16269 Revert
16270 2011-02-05 Jie Zhang <jie@codesourcery.com>
16271 PR debug/42631
16272 * web.c (entry_register): Don't clobber the number of the
16273 first uninitialized reference in used[].
16274
16275 2011-02-09 Richard Guenther <rguenther@suse.de>
16276
16277 PR tree-optimization/47664
16278 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16279 all edges again.
16280
16281 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16282
16283 PR target/46481
16284 PR target/47032
16285 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16286 PROCESSOR_POWER7.
16287 (PROCESSOR_DEFAULT64): Same.
16288 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16289
16290 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16291
16292 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16293
16294 2011-02-09 Martin Jambor <mjambor@suse.cz>
16295
16296 PR middle-end/45505
16297 * tree-sra.c (struct access): New flags grp_scalar_read and
16298 grp_scalar_write. Changed description of assignment read and write
16299 flags.
16300 (dump_access): Dump new flags, reorder all of them.
16301 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16302 to detect multiple scalar reads.
16303 (analyze_access_subtree): Use the new scalar read write flags instead
16304 of the old flags. Adjusted comments.
16305
16306 2011-02-08 DJ Delorie <dj@redhat.com>
16307
16308 PR target/47548
16309 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16310 patterns.
16311
16312 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16313
16314 * config/m68k/uclinux.opt: New.
16315 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16316
16317 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16318
16319 * config/cris/elf.opt (sim): New Driver option.
16320
16321 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16322
16323 * config/xtensa/elf.opt: New.
16324 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16325
16326 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config/vax/elf.opt: New.
16329 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16330
16331 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16332
16333 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16334
16335 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16336
16337 * config/gnu-user.opt: New.
16338 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16339 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16340 *-*-uclinux*): Use gnu-user.opt.
16341
16342 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16343
16344 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16345 * config/i386/gnu.h (CPP_SPEC): Likewise.
16346
16347 2011-02-08 Ian Lance Taylor <iant@google.com>
16348
16349 * common.opt (fcx-limited-range): Add SetByCombined flag.
16350 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16351 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16352 (fassociative-math, freciprocal-math): Likewise.
16353 (funsafe-math-optimizations): Likewise.
16354 * opth-gen.awk: Handle SetByCombined.
16355 * optc-gen.awk: Likewise.
16356 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16357 (set_unsafe_math_optimizations_flags): Likewise.
16358 * doc/options.texi (Option properties): Document SetByCombined.
16359
16360 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16361
16362 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16363 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16364 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16365 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16366 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16367
16368 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16369
16370 PR tree-optimization/46834
16371 PR tree-optimization/46994
16372 PR tree-optimization/46995
16373 * graphite-sese-to-poly.c (used_outside_reduction): New.
16374 (detect_commutative_reduction): Call used_outside_reduction.
16375 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16376 translate_scalar_reduction_to_array only when at least one
16377 loop-phi/close-phi tuple has been detected.
16378
16379 2011-02-08 Richard Guenther <rguenther@suse.de>
16380
16381 PR middle-end/47639
16382 * tree-vect-generic.c (expand_vector_operations_1): Update
16383 stmts here ...
16384 (expand_vector_operations): ... not here. Cleanup EH info
16385 and the CFG if required.
16386
16387 2011-02-08 Richard Guenther <rguenther@suse.de>
16388
16389 PR tree-optimization/47641
16390 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16391 require type compatibility.
16392
16393 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16394
16395 * gimple-low.c (lower_function_body): Don't remove the location of
16396 the return statement here.
16397 (lower_gimple_return): Do it here instead but only if the return
16398 statement is actually used twice.
16399
16400 2011-02-08 Richard Guenther <rguenther@suse.de>
16401
16402 PR tree-optimization/47632
16403 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16404 unused up_to_stmt parameter, return whether cfg-cleanup is
16405 necessary, remove EH info properly.
16406 (forward_propagate_into_gimple_cond): Adjust caller.
16407 (forward_propagate_into_cond): Likewise.
16408 (forward_propagate_comparison): Likewise.
16409 (tree_ssa_forward_propagate_single_use_vars): Make
16410 forward_propagate_comparison case similar to the two others.
16411
16412 2011-02-08 Nick Clifton <nickc@redhat.com>
16413
16414 * config/mn10300/mn10300.opt (mliw): New command line option.
16415 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16416 (liw_bundling): New automaton.
16417 (liw): New attribute.
16418 (liw_op): New attribute.
16419 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16420 (movsi_internal): Add LIW attributes.
16421 (andsi3): Likewise.
16422 (iorsi3): Likewise.
16423 (xorsi3): Likewise.
16424 (addsi3): Separate register and immediate alternatives.
16425 Add LIW attributes.
16426 (subsi3): Likewise.
16427 (cmpsi): Likewise.
16428 (aslsi3): Likewise.
16429 (lshrsi3): Likewise.
16430 (ashrsi3): Likewise.
16431 (liw): New pattern.
16432 * config/mn10300/mn10300.c (liw_op_names): New
16433 (mn10300_print_operand): Handle 'W' operand descriptor.
16434 (extract_bundle): New function.
16435 (check_liw_constraints): New function.
16436 (liw_candidate): New function.
16437 (mn10300_bundle_liw): New function.
16438 (mn10300_reorg): New function.
16439 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16440 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16441 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16442 __LIW__ or __NO_LIW__.
16443 * doc/invoke.texi: Describe the -mliw command line option.
16444
16445 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16446
16447 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16448 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16449 pthread_mutex_unlock): Remove.
16450 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16451 * config/pa/t-pa64: Likewise.
16452 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16453 shared libc if not linking against libpthread.
16454 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16455
16456 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16457
16458 PR target/47558
16459 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16460 on 10.6 and later to ensure that we always use the unwinder from
16461 the system. Only add -no_compact_unwind when tarteting darwin
16462 10.6 or later.
16463
16464 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16465
16466 PR target/46997
16467 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16468 (vec_interleave_lowv2sf): Ditto.
16469 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16470 (vec_extract_oddv2sf): Ditto.
16471
16472 2011-02-07 Mike Stump <mikestump@comcast.net>
16473
16474 PR target/42333
16475 Add __ieee_divdc3 entry point.
16476 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16477 entry point.
16478 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16479 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16480 * config/darwin.c (darwin_rename_builtins): Add.
16481 * config/darwin-protos.h (darwin_rename_builtins): Add.
16482
16483 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16484
16485 PR target/47636
16486 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16487 for the condition.
16488
16489 2011-02-07 Mike Stump <mikestump@comcast.net>
16490
16491 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16492
16493 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16494
16495 PR target/47534
16496 * config/avr/libgcc.S (exit): Move .endfunc
16497
16498 2011-02-07 Richard Guenther <rguenther@suse.de>
16499
16500 PR tree-optimization/47615
16501 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16502 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16503 (run_scc_vn): Initialize it.
16504 (visit_reference_op_load): Use it.
16505 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16506
16507 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16508
16509 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16510 DImode trapping arithmetic libfuncs.
16511
16512 2011-02-07 Richard Guenther <rguenther@suse.de>
16513
16514 PR tree-optimization/47621
16515 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16516 two duplicates ...
16517 (execute_update_addresses_taken): ... here. Make it more
16518 conservative in what we accept.
16519
16520 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16521
16522 * config/sparc/freebsd.h (ASM_SPEC): Define.
16523 * config/sparc/vxworks.h (ASM_SPEC): Define.
16524
16525 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16526
16527 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16528
16529 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16530
16531 * doc/invoke.texi: Remove reference to compiler internals from
16532 user documentation.
16533
16534 * reg-notes.def: Remove REG_VALUE_PROFILE.
16535 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16536
16537 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16538
16539 PR middle-end/47610
16540 * varasm.c (default_section_type_flags): If decl is NULL,
16541 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16542
16543 2011-02-05 Jie Zhang <jie@codesourcery.com>
16544
16545 PR debug/42631
16546 * web.c (entry_register): Don't clobber the number of the
16547 first uninitialized reference in used[].
16548
16549 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16550
16551 PR tree-optimization/46194
16552 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16553 (build_classic_dist_vector_1): Do not represent classic distance
16554 vectors when the access functions are variating in different loops.
16555
16556 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16557
16558 * config/mips/iris6.opt: New.
16559 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16560
16561 2011-02-04 Richard Henderson <rth@redhat.com>
16562 Steve Ellcey <sje@cup.hp.com>
16563
16564 PR target/46997
16565 * config/ia64/predicates.md (mux1_brcst_element): New.
16566 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16567 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16568 (ia64_unpack_sign): New.
16569 (ia64_expand_unpack): Rewrite using new routines.
16570 (ia64_expand_widen_sum): Ditto.
16571 (ia64_expand_dot_prod_v8qi): Ditto.
16572 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16573 routines, add endian check.
16574 (pmpy2_even): Rename from pmpy2_r, add endian check.
16575 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16576 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16577 (vec_widen_smult_hi_v4hi): Ditto.
16578 (vec_widen_umult_lo_v4hi): Ditto.
16579 (vec_widen_umult_hi_v4hi): Ditto.
16580 (mulv2si3): Change endian checks.
16581 (sdot_prodv4hi): Rewrite with new calls.
16582 (udot_prodv4hi): New.
16583 (vec_pack_ssat_v4hi): Add endian check.
16584 (vec_pack_usat_v4hi): Ditto.
16585 (vec_pack_ssat_v2si): Ditto.
16586 (max1_even): Rename from max1_r, add endian check.
16587 (max1_odd): Rename from max1_l, add endian check.
16588 (*mux1_rev): Format change.
16589 (*mux1_mix): Ditto.
16590 (*mux1_shuf): Ditto.
16591 (*mux1_alt): Ditto.
16592 (*mux1_brcst_v8qi): Use new predicate.
16593 (vec_extract_evenv8qi): Remove endian check.
16594 (vec_extract_oddv8qi): Ditto.
16595 (vec_interleave_lowv4hi): Format change.
16596 (vec_interleave_highv4hi): Ditto.
16597 (mix2_even): Rename from mix2_r, add endian check.
16598 (mix2_odd): Rename from mux2_l, add endian check.
16599 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16600 (vec_extract_evenodd_helper): Format change.
16601 (vec_extract_evenv4hi): Remove endian check.
16602 (vec_extract_oddv4hi): Remove endian check.
16603 (vec_interleave_lowv2si): Format change.
16604 (vec_interleave_highv2si): Format change.
16605 (vec_initv2si): Remove endian check.
16606 (vecinit_v2si): Add endian check.
16607 (reduc_splus_v2sf): Add endian check.
16608 (reduc_smax_v2sf): Ditto.
16609 (reduc_smin_v2sf): Ditto.
16610 (vec_initv2sf): Remove endian check.
16611 (fpack): Add endian check.
16612 (fswap): Add endian check.
16613 (vec_interleave_highv2sf): Add endian check.
16614 (vec_interleave_lowv2sf): Add endian check.
16615 (fmix_lr): Add endian check.
16616 (vec_setv2sf): Format change.
16617 (*vec_extractv2sf_0_be): Use shift to extract operand.
16618 (*vec_extractv2sf_1_be): New.
16619 (vec_pack_trunc_v4hi): Add endian check.
16620 (vec_pack_trunc_v2si): Format change.
16621
16622 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16623
16624 PR inline-asm/23200
16625 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16626 do bb, locus and block comparison and disallow loads if it is not set.
16627 (stmt_is_replaceable_p): New function.
16628 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16629 callers.
16630 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16631 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16632 SSA_NAME_DEF_STMT.
16633 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16634
16635 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16636
16637 * config/rs6000/xilinx.opt: New.
16638 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16639
16640 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16641
16642 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16643
16644 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16645
16646 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16647 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16648 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16649 secondary_reload_info, xtensa_secondary_reload): Remove.
16650 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16651 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16652 (xtensa_preferred_reload_class): Make static. Change return and
16653 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16654 Use CONST_DOUBLE_P predicate.
16655 (xtensa_preferred_output_reload_class): New function.
16656 (xtensa_secondary_reload): Make static.
16657
16658 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16659
16660 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16661 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16662 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16663
16664 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16665
16666 PR middle-end/31490
16667 * output.h (SECTION_RELRO): Define.
16668 (SECTION_MACH_DEP): Adjust.
16669 (get_variable_section): New prototype.
16670 * varpool.c (varpool_finalize_named_section_flags): New function.
16671 (varpool_assemble_pending_decls): Call it.
16672 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16673 * cgraphunit.c (cgraph_output_in_order): Call
16674 varpool_finalize_named_section_flags.
16675 * varasm.c (get_section): Allow section flags conflicts between
16676 relro and read-only sections if the section hasn't been declared yet.
16677 Set SECTION_OVERRIDE after diagnosing section type conflict.
16678 (get_variable_section): No longer static.
16679 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16680 readonly sections that need relocations.
16681 (decl_readonly_section_1): New function.
16682 (decl_readonly_section): Use it.
16683
16684 Revert:
16685 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16686 Steve Ellcey <sje@cup.hp.com>
16687
16688 PR middle-end/31490
16689 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16690 if section attribute used.
16691
16692 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16693
16694 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16695 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16696 (darwin_init_sections): Remove assertion.
16697
16698 2011-02-03 Nick Clifton <nickc@redhat.com>
16699
16700 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16701 lt and ge.
16702 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16703 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16704 instead of "n" and "pz".
16705 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16706 CC_FLAG_S.
16707
16708 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16709
16710 PR target/47312
16711 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16712 fma, expand FMA_EXPR as fma{,f,l} call.
16713
16714 PR lto/47274
16715 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16716 copy them into a unsigned char variable and pass address of it to
16717 lto_output_data_stream.
16718
16719 PR target/47564
16720 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16721 around backend_init_target and lang_dependent_init_target calls.
16722 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16723 (verify_cgraph_node): Don't call set_cfun here. Use
16724 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16725 Set error_found for incorrectly represented calls to thunks.
16726
16727 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16728
16729 PR debug/43092
16730 PR rtl-optimization/43494
16731 * rtl.h (for_each_inc_dec_fn): New type.
16732 (for_each_inc_dec): Declare.
16733 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16734 (for_each_inc_dec_find_inc_dec): New fn.
16735 (for_each_inc_dec_find_mem): New fn.
16736 (for_each_inc_dec): New fn.
16737 * dse.c (struct insn_size): Remove.
16738 (replace_inc_dec, replace_inc_dec_mem): Remove.
16739 (emit_inc_dec_insn_before): New fn.
16740 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16741 (canon_address): Pass mem modes to cselib_lookup.
16742 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16743 (cselib_lookup_from_insn): Likewise.
16744 (cselib_subst_to_values): Likewise.
16745 * cselib.c (find_slot_memmode): New var.
16746 (cselib_find_slot): New fn. Use it instead of
16747 htab_find_slot_with_hash everywhere.
16748 (entry_and_rtx_equal_p): Use find_slot_memmode.
16749 (autoinc_split): New fn.
16750 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16751 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16752 Deal with autoinc. Special-case recursion into MEMs.
16753 (cselib_hash_rtx): Likewise.
16754 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16755 address and MEM modes.
16756 (cselib_subst_to_values): Add memmode, pass it on.
16757 Deal with autoinc.
16758 (cselib_lookup): Add memmode argument, pass it on.
16759 (cselib_lookup_from_insn): Add memmode.
16760 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16761 (struct cselib_record_autoinc_data): New.
16762 (cselib_record_autoinc_cb): New fn.
16763 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16764 mode to cselib_lookup. Reset autoinced REGs here instead of...
16765 (cselib_process_insn): ... here.
16766 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16767 to cselib_lookup.
16768 (add_uses): Likewise, also to cselib_subst_to_values.
16769 (add_stores): Likewise.
16770 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16771 cselib_subst_to_values.
16772 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16773 * gcse.c (do_local_cprop): Adjusted.
16774 * postreload.c (reload_cse_simplify_set): Adjusted.
16775 (reload_cse_simplify_operands): Adjusted.
16776 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16777
16778 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16779
16780 PR tree-optimization/45122
16781 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16782 unsafe assumptions when there's more than one loop exit.
16783
16784 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16785
16786 PR target/47272
16787 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16788 Document using vector double with the load/store builtins, and
16789 that the load/store builtins always use Altivec instructions.
16790
16791 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16792 to use altivec memory instructions, even on VSX.
16793 (vector_altivec_store_<mode>): Ditto.
16794
16795 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16796 function.
16797
16798 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16799 V2DF, V2DI support to load/store overloaded builtins.
16800
16801 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16802 altivec load/store builtins for V2DF/V2DI types.
16803
16804 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16805 set avoid indexed addresses on power6 if -maltivec.
16806 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16807 vector_altivec_load/vector_altivec_store builtins.
16808 (altivec_expand_st_builtin): Ditto.
16809 (altivec_expand_builtin): Add VSX memory builtins.
16810 (rs6000_init_builtins): Add V2DI types to internal types.
16811 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16812 load/store builtins.
16813 (rs6000_address_for_altivec): Insure memory address is appropriate
16814 for Altivec.
16815
16816 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16817 vec_vsx_ld and vec_vsx_st.
16818 (vsx_store_<mode>): Ditto.
16819
16820 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16821 variables to hold long long types for VSX vector memory builtins.
16822 (RS6000_BTI_unsigned_long_long): Ditto.
16823 (long_long_integer_type_internal_node): Ditti.
16824 (long_long_unsigned_type_internal_node): Ditti.
16825
16826 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16827 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16828 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16829
16830 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16831 short cuts.
16832 (vec_vsx_st): Ditto.
16833
16834 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16835
16836 * config/pa/pa-hpux10.opt: New.
16837 * config/hpux11.opt (pthread): New Driver option.
16838 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16839 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16840
16841 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16842
16843 * config/ia64/vms.opt: New.
16844 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16845
16846 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16847
16848 PR target/47580
16849 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16850 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16851 generator functions.
16852 (vsx_floatuns<VSi><mode>2): Ditto.
16853 (vsx_fix_trunc<mode><VSi>2): Ditto.
16854 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16855
16856 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16857
16858 * config/i386/djgpp.opt (posix): New Driver option.
16859
16860 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16861
16862 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16863 Move to the unsupported targets list.
16864
16865 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16866
16867 PR rtl-optimization/47525
16868 * df-scan.c: Update copyright years.
16869 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16870 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16871
16872 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16873
16874 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16875 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16876 (ASM_OUTPUT_ASCII): Remove.
16877 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16878
16879 2011-02-02 Jeff Law <law@redhat.com>
16880
16881 PR middle-end/47543
16882 * reload.c (find_reloads_address): Handle reg+d address where both
16883 components are invalid by reloading the entire address.
16884
16885 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16886 Richard Guenther <rguenther@suse.de>
16887
16888 PR tree-optimization/40979
16889 PR bootstrap/47044
16890 * passes.c (init_optimization_passes): After LIM call copy_prop
16891 and DCE to clean up.
16892 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16893
16894 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16895
16896 PR tree-optimization/47576
16897 PR tree-optimization/47555
16898 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16899 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16900 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16901 * tree-scalar-evolution.c (follow_ssa_edge): Use
16902 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16903
16904 2011-02-02 Richard Guenther <rguenther@suse.de>
16905
16906 PR tree-optimization/47566
16907 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16908
16909 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16910
16911 PR debug/47106
16912 PR debug/47402
16913 * tree-inline.c (declare_return_variable): Remove unused caller
16914 variable.
16915
16916 PR debug/47106
16917 PR debug/47402
16918 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16919 * cfgexpand.c (account_used_vars_for_block): Use them.
16920 * tree-nrv.c (tree_nrv): Likewise.
16921 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16922 (dump_scope_block): Likewise.
16923 (remove_unused_locals): Likewise.
16924
16925 PR debug/47106
16926 PR debug/47402
16927 * tree-inline.c (declare_return_variable): Add result decl to
16928 local decls only once.
16929 * gimple-low.c (record_vars_into): Mark newly-created variables
16930 as referenced.
16931
16932 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16933
16934 PR debug/47498
16935 PR debug/47501
16936 PR debug/45136
16937 PR debug/45130
16938 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16939 debug insns.
16940 (no_real_insns_p, schedule_block, set_priorities): Drop special
16941 treatment of boundary debug insns.
16942 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16943 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16944 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16945 (BOUNDARY_DEBUG_INSN_P): Likewise.
16946 (SCHEDULE_DEBUG_INSN_P): Likewise.
16947 * sched-rgn.c (init_ready_list): Drop special treatment of
16948 boundary debug insns.
16949 * final.c (rest_of_clean_state): Clear notes' BB.
16950
16951 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16952
16953 * config/openbsd.opt (assert=): New Driver option.
16954
16955 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16956
16957 * config/i386/nto.opt: New.
16958 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16959
16960 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16961
16962 * config/i386/netware.opt: New.
16963 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16964
16965 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16966
16967 * config/interix.opt (posix): New Driver option.
16968
16969 2011-02-01 DJ Delorie <dj@redhat.com>
16970
16971 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16972
16973 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16974 class for A0/A1.
16975
16976 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16977
16978 PR tree-optimization/47561
16979 * toplev.c (process_options): Print the Graphite flags. Add
16980 flag_loop_flatten to the list of options requiring Graphite.
16981
16982 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16983
16984 * config/i386/cygming.opt (posix): New Driver option.
16985
16986 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16987
16988 * config/arm/vxworks.opt: New.
16989 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16990
16991 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16992
16993 * config/alpha/elf.opt: New.
16994 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16995 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16996
16997 2011-02-01 Richard Guenther <rguenther@suse.de>
16998
16999 PR tree-optimization/47559
17000 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17001 store-motion on references that can throw.
17002
17003 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17004
17005 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17006 * tree-pass.h (TDF_CSELIB): New macro.
17007 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17008 cselib_lookup): Check for it rather than for TDF_DETAILS.
17009
17010 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17011
17012 PR driver/47547
17013 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17014 is HOST_BIT_BUCKET.
17015
17016 * opts.c (finish_options): Don't add x_aux_base_name if it is
17017 HOST_BIT_BUCKET.
17018
17019 2011-02-01 Richard Guenther <rguenther@suse.de>
17020
17021 PR tree-optimization/47555
17022 Revert
17023 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17024
17025 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17026
17027 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17028
17029 PR gcc/46692
17030 * config/lm32/t-lm32: Add multilib for all CPU options.
17031
17032 2011-02-01 Richard Guenther <rguenther@suse.de>
17033
17034 PR tree-optimization/47541
17035 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17036 sure to have a field at offset zero.
17037
17038 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17039
17040 * config/arc/arc.opt (EB, EL): New Driver options.
17041
17042 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17043
17044 * config/alpha/osf5.opt: New.
17045 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17046
17047 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17048
17049 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17050
17051 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17052
17053 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17054 -floop-interchange.
17055 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17056 is an alias of -floop-interchange and that it requires the
17057 Graphite infrastructure.
17058 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17059 flag_loop_interchange based on the value of flag_tree_loop_linear.
17060
17061 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17062 Richard Guenther <rguenther@suse.de>
17063
17064 PR tree-optimization/47538
17065 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17066 type instead of r1type, except for comparisons. For right
17067 shifts and comparisons punt if there are mismatches in
17068 sizetype vs. non-sizetype types.
17069
17070 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17071
17072 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17073 avx_runtime.
17074
17075 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17076
17077 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17078 version number.
17079 * configure: Regenerate.
17080
17081 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17082
17083 * configure.ac (gcc_cv_ld_static_option): Define.
17084 (gcc_cv_ld_dynamic_option): Define.
17085 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17086 instead.
17087 (HAVE_LD_STATIC_DYNAMIC): Update message.
17088 (LD_STATIC_OPTION): Define.
17089 (LD_DYNAMIC_OPTION): Define.
17090 * configure: Regenerate.
17091 * config.in: Regenerate.
17092 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17093 HAVE_LD_STATIC_DYNAMIC]: Use them.
17094
17095 2011-01-31 Nick Clifton <nickc@redhat.com>
17096
17097 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17098 registers inside interrupt handlers if the handler is not a leaf
17099 function.
17100
17101 2011-01-31 Nick Clifton <nickc@redhat.com>
17102
17103 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17104 reg_renumber returning an INVALID_REGNUM.
17105
17106 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17107
17108 PR libgcj/44341
17109 * doc/install.texi: Document host options discarded when cross
17110 configuring target libraries.
17111
17112 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17113
17114 Reverted:
17115 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17116 PR debug/45136
17117 PR debug/45130
17118 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17119 debug insns.
17120 (no_real_insns_p, schedule_block, set_priorities): Drop special
17121 treatment of boundary debug insns.
17122 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17123 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17124 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17125 (BOUNDARY_DEBUG_INSN_P): Likewise.
17126 (SCHEDULE_DEBUG_INSN_P): Likewise.
17127 * sched-rgn.c (init_ready_list): Drop special treatment of
17128 boundary debug insns.
17129 * final.c (rest_of_clean-state): Clear notes' BB.
17130
17131 2011-01-31 Alan Modra <amodra@gmail.com>
17132
17133 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17134 toc relative expressions as we do in print_operand_address.
17135
17136 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17137
17138 * doc/extend.texi: Follow spelling conventions.
17139 * doc/invoke.texi: Fix a typo.
17140
17141 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17142
17143 * config/hpux11.opt: New.
17144 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17145 ia64*-*-hpux*): Use hpux11.opt.
17146
17147 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17148
17149 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17150 to tmake_file.
17151
17152 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17153
17154 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17155 support sites.
17156
17157 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17158
17159 * doc/install.texi (Binaries): Remove outdated reference for
17160 Motorola 68HC11/68HC12 downloads.
17161
17162 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17163
17164 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17165 Drepper's paper.
17166
17167 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17168
17169 PR bootstrap/47147
17170 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17171 used by NetBSD.
17172
17173 2011-01-28 Ahmad Sharif <asharif@google.com>
17174
17175 * value-prof.c (check_counter): Corrected error message.
17176
17177 2011-01-29 Jie Zhang <jie@codesourcery.com>
17178
17179 * config/arm/arm.c (arm_legitimize_reload_address): New.
17180 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17181 arm_legitimize_reload_address.
17182 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17183
17184 2011-01-28 Ian Lance Taylor <iant@google.com>
17185
17186 * godump.c (go_define): Ignore macros whose definitions include
17187 two adjacent operands.
17188
17189 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17190
17191 PR target/42894
17192 * varasm.c (force_const_mem): Store copy of x in desc->constant
17193 instead of x itself.
17194 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17195 itself into REG_EQUAL note.
17196
17197 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17198
17199 * config/freebsd.opt (posix, rdynamic): New Driver options.
17200
17201 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17202
17203 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17204 -Bstatic/-Bdynamic.
17205 * configure: Regenerate.
17206
17207 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17208
17209 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17210 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17211
17212 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17213
17214 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17215 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17216 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17217 (s390_preferred_reload_class): Make static. Change return and
17218 'rclass' argument type to reg_class_t.
17219
17220 2011-01-27 Jan Hubicka <jh@suse.cz>
17221
17222 PR middle-end/46949
17223 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17224 (process_function_and_variable_attributes): Check defined weakrefs.
17225
17226 2011-01-27 Martin Jambor <mjambor@suse.cz>
17227
17228 PR tree-optimization/47228
17229 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17230 build_ref_for_offset.
17231
17232 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17233
17234 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17235
17236 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17237
17238 PR rtl-optimization/46856
17239 * postreload.c (reload_combine_recognize_const_pattern): Do not
17240 separate cc0 setter and user on cc0 targets.
17241
17242 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17243
17244 PR c/43082
17245 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17246 passed a VOID_TYPE expression, immediately emit an error and
17247 return error_mark_node.
17248
17249 2011-01-26 Jeff Law <law@redhat.com>
17250
17251 PR rtl-optimization/47464
17252 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17253 rather than may_trap_p as needed.
17254
17255 2011-01-26 DJ Delorie <dj@redhat.com>
17256
17257 PR rtl-optimization/46878
17258 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17259 setter/user dependency as well.
17260
17261 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17262
17263 PR rtl-optimization/44469
17264 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17265 after removing trivially dead basic blocks.
17266
17267 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17268
17269 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17270 * config/frv/frv.h (LINK_SPEC): Likewise.
17271 * config/i386/netware.h (LINK_SPEC): Likewise.
17272 * config/m68k/linux.h (ASM_SPEC): Likewise.
17273 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17274 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17275 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17276 * config/sparc/linux.h (ASM_SPEC): Likewise.
17277 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17278 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17279
17280 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17281
17282 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17283 * config/frv/frv.h (ASM_SPEC): Likewise.
17284 * config/m68k/linux.h (ASM_SPEC): Likewise.
17285 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17286 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17287 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17288 * config/sparc/linux.h (ASM_SPEC): Likewise.
17289 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17290 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17291
17292 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17293
17294 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17295 * config/frv/frv.h (LINK_SPEC): Likewise.
17296 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17297
17298 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17299
17300 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17301 * config/frv/frv.h (ASM_SPEC): Likewise.
17302 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17303 * config/m68k/linux.h (ASM_SPEC): Likewise.
17304 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17305 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17306 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17307 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17308 * config/sparc/linux.h (ASM_SPEC): Likewise.
17309 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17310 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17311 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17312
17313 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17314
17315 PR target/46997
17316 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17317 (*mux2): Ditto.
17318 (vec_extract_evenodd_help): Ditto.
17319 (vec_extract_evenv4hi): Ditto.
17320 (vec_extract_oddv4hi): Ditto.
17321 (vec_interleave_lowv2si): Ditto.
17322 (vec_interleave_highv2si): Ditto.
17323 (vec_extract_evenv2si): Ditto.
17324 (vec_extract_oddv2si: Ditto.
17325 (vec_pack_trunc_v2si): Ditto.
17326
17327 2011-01-22 Jan Hubicka <jh@suse.cz>
17328
17329 PR target/47237
17330 * cgraph.h (cgraph_local_info): New field can_change_signature.
17331 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17332 signature can change.
17333 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17334 can change.
17335 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17336 (cgraph_function_versioning): We can not change signature of functions
17337 that don't allow that.
17338 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17339 (lto_input_node): Likewise.
17340 * ipa-inline.c (compute_inline_parameters): Compute
17341 local.can_change_signature.
17342 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17343 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17344 functions that can not change signature.
17345 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17346 init_cumulative_args): Do not use local calling conventions
17347 for functions that can not change signature.
17348
17349 2011-01-22 Jan Hubicka <jh@suse.cz>
17350
17351 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17352
17353 2011-01-26 Richard Guenther <rguenther@suse.de>
17354
17355 PR tree-optimization/47190
17356 * cgraphunit.c (process_common_attributes): New function.
17357 (process_function_and_variable_attributes): Use it.
17358
17359 2011-01-26 Richard Guenther <rguenther@suse.de>
17360
17361 PR lto/47423
17362 * cgraphbuild.c (record_eh_tables): Record reference to personality
17363 function.
17364
17365 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17366
17367 PR debug/45454
17368 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17369 non-debug insns from moving up.
17370
17371 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17372
17373 PR target/40125
17374 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17375 t-dlldir{,-x} fragment for build and add it to tmake_file.
17376 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17377 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17378 * config/i386/t-dlldir: New file.
17379 (SHLIB_DLLDIR): Define.
17380 * config/i386/t-dlldir-x: New file.
17381 (SHLIB_DLLDIR): Define.
17382 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17383 (SHLIB_INSTALL): Use it.
17384
17385 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17386
17387 PR target/47246
17388 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17389 lower bound of the allowed Thumb-2 coprocessor load/store
17390 index range to -256. Add explaining comment.
17391
17392 2011-01-25 Ian Lance Taylor <iant@google.com>
17393
17394 * godump.c (go_define): Improve lexing of macro expansion to only
17395 accept expressions which match Go spec.
17396
17397 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17398
17399 PR c++/43601
17400 * tree.c (handle_dll_attribute): Handle it.
17401 * doc/extend.texi (@item dllexport): Mention it.
17402 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17403
17404 2011-01-25 Ian Lance Taylor <iant@google.com>
17405
17406 PR tree-optimization/26854
17407 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17408 (decl_jump_unsafe): Move higher in file, with no other change.
17409 (bind): Set has_jump_unsafe_decl if appropriate.
17410 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17411 (check_earlier_gotos): Likewise.
17412 (c_check_switch_jump_warnings): Likewise.
17413
17414 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17415
17416 * doc/invoke.texi (Warning Options): Add missing hyphen.
17417 (-fprofile-dir): Minor grammatical fixes.
17418 (-fbranch-probabilities): Likewise.
17419
17420 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17421
17422 PR debug/45136
17423 PR debug/45130
17424 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17425 debug insns.
17426 (no_real_insns_p, schedule_block, set_priorities): Drop special
17427 treatment of boundary debug insns.
17428 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17429 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17430 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17431 (BOUNDARY_DEBUG_INSN_P): Likewise.
17432 (SCHEDULE_DEBUG_INSN_P): Likewise.
17433 * sched-rgn.c (init_ready_list): Drop special treatment of
17434 boundary debug insns.
17435 * final.c (rest_of_clean-state): Clear notes' BB.
17436
17437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17438
17439 * Makefile.in (LAMBDA_H): Removed.
17440 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17441 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17442 lambda-trans.o, and tree-loop-linear.o.
17443 (lto-symtab.o): Remove dependence on LAMBDA_H.
17444 (tree-loop-linear.o): Remove rule.
17445 (lambda-mat.o): Same.
17446 (lambda-trans.o): Same.
17447 (lambda-code.o): Same.
17448 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17449 (tree-vect-slp.o): Same.
17450 * hwint.h (gcd): Moved here.
17451 (least_common_multiple): Same.
17452 * lambda-code.c: Removed.
17453 * lambda-mat.c: Removed.
17454 * lambda-trans.c: Removed.
17455 * lambda.h: Removed.
17456 * tree-loop-linear.c: Removed.
17457 * lto-symtab.c: Do not include lambda.h.
17458 * omega.c (gcd): Removed.
17459 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17460 * tree-data-ref.c (print_lambda_vector): Moved here.
17461 (lambda_vector_copy): Same.
17462 (lambda_matrix_copy): Same.
17463 (lambda_matrix_id): Same.
17464 (lambda_vector_first_nz): Same.
17465 (lambda_matrix_row_add): Same.
17466 (lambda_matrix_row_exchange): Same.
17467 (lambda_vector_mult_const): Same.
17468 (lambda_vector_negate): Same.
17469 (lambda_matrix_row_negate): Same.
17470 (lambda_vector_equal): Same.
17471 (lambda_matrix_right_hermite): Same.
17472 * tree-data-ref.h: Do not include lambda.h.
17473 (lambda_vector): Moved here.
17474 (lambda_matrix): Same.
17475 (dependence_level): Same.
17476 (lambda_transform_legal_p): Removed declaration.
17477 (lambda_collect_parameters): Same.
17478 (lambda_compute_access_matrices): Same.
17479 (lambda_vector_gcd): Same.
17480 (lambda_vector_new): Same.
17481 (lambda_vector_clear): Same.
17482 (lambda_vector_lexico_pos): Same.
17483 (lambda_vector_zerop): Same.
17484 (lambda_matrix_new): Same.
17485 * tree-flow.h (least_common_multiple): Removed declaration.
17486 * tree-parloops.c (lambda_trans_matrix): Moved here.
17487 (LTM_MATRIX): Same.
17488 (LTM_ROWSIZE): Same.
17489 (LTM_COLSIZE): Same.
17490 (LTM_DENOMINATOR): Same.
17491 (lambda_trans_matrix_new): Same.
17492 (lambda_matrix_vector_mult): Same.
17493 (lambda_transform_legal_p): Same.
17494 * tree-pass.h (pass_linear_transform): Removed declaration.
17495 * tree-ssa-loop.c (tree_linear_transform): Removed.
17496 (gate_tree_linear_transform): Removed.
17497 (pass_linear_transform): Removed.
17498 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17499 flag_loop_interchange.
17500
17501 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17502
17503 PR tree-optimization/47265
17504 PR tree-optimization/47443
17505 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17506 if name still has some uses.
17507
17508 2011-01-25 Martin Jambor <mjambor@suse.cz>
17509
17510 PR tree-optimization/47382
17511 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17512 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17513
17514 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17515
17516 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17517 sjlj_except_unwind_info.
17518
17519 2011-01-25 Richard Guenther <rguenther@suse.de>
17520
17521 PR tree-optimization/47426
17522 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17523 visible functions results escape.
17524
17525 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17526
17527 PR target/45701
17528 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17529 (arm_get_frame_offsets): Use it.
17530
17531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17532 Jakub Jelinek <jakub@redhat.com>
17533
17534 PR tree-optimization/47271
17535 * tree-if-conv.c (bb_postdominates_preds): New.
17536 (if_convertible_bb_p): Call bb_postdominates_preds.
17537 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17538 (predicate_scalar_phi): Call bb_postdominates_preds.
17539
17540 2011-01-25 Nick Clifton <nickc@redhat.com>
17541
17542 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17543 * config/rx/rx.c (rx_function_value): Likewise.
17544 (rx_promote_function_mode): Likewise.
17545 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17546 in order to make it legitimate.
17547 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17548 make sure that the first operand is the same as the result register.
17549 (addsi3_unspec): Delete.
17550 (subdi3): Do not accept immediate operands.
17551 (subdi3_internal): Likewise.
17552
17553 2011-01-25 Jeff Law <law@redhat.com>
17554
17555 PR rtl-optimization/37273
17556 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17557 handle them like argument loads from stack slots. Do not double
17558 count memory for memory constants and argument loads from stack slots.
17559
17560 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17561
17562 PR tree-optimization/47427
17563 PR tree-optimization/47428
17564 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17565 coalesce if the new root var would be TREE_READONLY.
17566
17567 2011-01-25 Richard Guenther <rguenther@suse.de>
17568
17569 PR middle-end/47414
17570 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17571 correct type for TBAA.
17572
17573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17574
17575 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17576 (close_phi_written_to_memory): Call for_each_index with
17577 dr_indices_valid_in_loop.
17578
17579 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17580
17581 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17582 when it is initialized.
17583
17584 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17585
17586 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17587 call to graphite_find_data_references_in_stmt.
17588 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17589 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17590 call to graphite_find_data_references_in_stmt.
17591 (analyze_drs_in_stmts): Same.
17592 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17593 in which the scalar analysis of indices is performed.
17594 (create_data_ref): Same. Update call to dr_analyze_indices.
17595 (find_data_references_in_stmt): Update call to create_data_ref.
17596 (graphite_find_data_references_in_stmt): Same.
17597 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17598 declaration.
17599 (create_data_ref): Same.
17600 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17601 call to create_data_ref.
17602
17603 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17604
17605 * graphite-sese-to-poly.c (build_poly_scop): Move
17606 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17607
17608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17609
17610 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17611 VAR_DECL, PARM_DECL, and RESULT_DECL.
17612
17613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17614
17615 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17616 in a reduction PBB.
17617 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17618 that have already been marked as PBB_IS_REDUCTION.
17619
17620 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17621
17622 * graphite-scop-detection.c (same_close_phi_node): New.
17623 (remove_duplicate_close_phi): New.
17624 (make_close_phi_nodes_unique): New.
17625 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17626
17627 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17628
17629 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17630 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17631 of both data references to be the same.
17632
17633 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17634
17635 * graphite-dependences.c (build_lexicographical_constraint): Remove
17636 the gdim parameter.
17637 (build_lexicographical_constraint): Adjust call to
17638 ppl_powerset_is_empty.
17639 (dependence_polyhedron): Same.
17640 (graphite_legal_transform_dr): Same.
17641 (graphite_carried_dependence_level_k): Same.
17642 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17643 parameter.
17644 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17645
17646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17647
17648 * graphite-sese-to-poly.c
17649 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17650 (close_phi_written_to_memory): New.
17651 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17652 and unshare_expr.
17653
17654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17655
17656 * doc/install.texi: Update the expected version number of PPL to 0.11.
17657 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17658 #if PPL_VERSION_MINOR < 11.
17659
17660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17661
17662 * graphite-dependences.c: Include graphite-cloog-util.h.
17663 (new_poly_ddr): Inlined into dependence_polyhedron.
17664 (free_poly_ddr): Moved close by new_poly_ddr.
17665 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17666 Early return NULL when ppl_powerset_is_empty returns true.
17667 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17668 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17669 (graphite_legal_transform_dr): Call new_poly_ddr.
17670 (graphite_carried_dependence_level_k): Same.
17671 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17672 (dot_transformed_deps_stmt_1): Removed.
17673 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17674 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17675 (dot_deps_1): Call dot_deps_2.
17676 * Makefile.in (graphite-dependences.o): Add missing dependence on
17677 graphite-cloog-util.h.
17678
17679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17680
17681 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17682 (build_lexicographical_constraint): Same.
17683 (dependence_polyhedron_1): Same.
17684 (graphite_legal_transform_dr): Same.
17685 (graphite_carried_dependence_level_k): Same.
17686 * graphite-ppl.c (ppl_powerset_is_empty): New.
17687 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17688 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17689
17690 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17691
17692 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17693 the "a followed by b" relation and document it.
17694
17695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17696
17697 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17698 iteration when the bag of constraints is empty.
17699
17700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17701
17702 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17703
17704 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17705
17706 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17707 nest and two loop depths as parameters.
17708 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17709 lst_perfect_nestify.
17710
17711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17712
17713 * graphite-dependences.c (print_pddr): Call
17714 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17715
17716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17717
17718 * graphite-ppl.c (debug_gmp_value): New.
17719 * graphite-ppl.h (debug_gmp_value): Declared.
17720
17721 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17722
17723 * doc/install.texi: Document availability of cloog-0.16.
17724
17725 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17726
17727 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17728 invalid postdominance info.
17729
17730 2011-01-24 Jan Hubicka <jh@suse.cz>
17731
17732 PR c/21659
17733 * doc/extend.texi (weak pragma): Drop claim that it must
17734 appear before definition.
17735 * varasm.c (merge_weak, declare_weak): Only sanity check
17736 that DECL is not output at a time it is declared weak.
17737
17738 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17739
17740 * machmode.def: Fixed comments.
17741
17742 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17743
17744 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17745
17746 2011-01-24 Paul Koning <ni1d@arrl.net>
17747
17748 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17749 WORDS_BIG_ENDIAN.
17750
17751 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17752
17753 PR target/46519
17754 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17755 (block_info): Add scanned and prev.
17756 (move_or_delete_vzeroupper_2): Return if the basic block
17757 has been scanned and the upper 128bit state is unchanged
17758 from the last scan.
17759 (move_or_delete_vzeroupper_1): Return true if the exit
17760 state is changed.
17761 (move_or_delete_vzeroupper): Visit basic blocks using the
17762 work-list based algorithm based on vt_find_locations in
17763 var-tracking.c.
17764
17765 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17766
17767 2011-01-24 Nick Clifton <nickc@redhat.com>
17768
17769 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17770 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17771 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17772 then define __v850e1__.
17773 * doc/invoke.texi: Document -mv850es.
17774
17775 2011-01-24 Richard Henderson <rth@redhat.com>
17776
17777 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17778 compound unordered comparisons.
17779 * config/rx/rx.c (rx_split_fp_compare): Remove.
17780 * config/rx/rx-protos.h: Update.
17781 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17782 (cbranchsf4): Don't call rx_split_fp_compare.
17783 (*cbranchsf4): Use rx_split_cbranch.
17784 (*cmpsf): Don't accept "i" constraint.
17785 (*conditional_branch): Only valid after reload.
17786 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17787
17788 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17789
17790 PR target/47385
17791 * config/rs6000/altivec.md (vector constant splitters): Add
17792 support for creating vector single precision constants if -mvsx is
17793 used and we would create the constant using Altivec primitives.
17794
17795 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17796 Richard Sandiford <rdsandiford@googlemail.com>
17797
17798 PR rtl-optimization/47166
17799 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17800 mechanism for PRE_MODIFY and POST_MODIFY.
17801 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17802 reloadreg.
17803
17804 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17805
17806 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17807
17808 2011-01-22 Jan Hubicka <jh@suse.cz>
17809
17810 PR lto/47333
17811 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17812
17813 2011-01-22 Jan Hubicka <jh@suse.cz>
17814
17815 PR tree-optimization/43884
17816 PR lto/44334
17817 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17818 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17819
17820 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17821
17822 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17823 * config/s390/s390.c (s390_register_move_cost,
17824 s390_memory_move_cost): New.
17825 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17826
17827 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17828
17829 PR middle-end/47401
17830 * except.c (sjlj_assign_call_site_values): Move setting the
17831 crtl->uses_eh_lsda flag to ...
17832 (sjlj_mark_call_sites): ... here.
17833 (sjlj_emit_function_enter): Support NULL dispatch label.
17834 (sjlj_build_landing_pads): In a function with no landing pads
17835 that still has must-not-throw regions, generate code to register
17836 a personality function with empty LSDA.
17837
17838 2011-01-21 Richard Henderson <rth@redhat.com>
17839
17840 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17841
17842 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17843
17844 * compare-elim.c: New file.
17845 * Makefile.in (OBJS-common): Add it.
17846 (compare-elim.o): New.
17847 * common.opt (fcompare-elim): New.
17848 * opts.c (default_options_table): Add OPT_fcompare_elim.
17849 * tree-pass.h (pass_compare_elim_after_reload): New.
17850 * passes.c (init_optimization_passes): Add it.
17851 * recog.h: Protect against re-inclusion.
17852 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17853 * doc/invoke.texi (-fcompare-elim): Document it.
17854 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17855 * doc/tm.texi: Rebuild.
17856
17857 2011-01-22 Nick Clifton <nickc@redhat.com>
17858
17859 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17860 rx_split_fp_compare.
17861
17862 2011-01-22 Nick Clifton <nickc@redhat.com>
17863
17864 * config/rx/rx.md (UNSPEC_CONST): New.
17865 (deallocate_and_return): Wrap the amount popped off the stack in
17866 an UNSPEC_CONST in order to stop it being rejected by
17867 -mmax-constant-size.
17868 (pop_and_return): Add a "(return)" rtx.
17869 (call): Drop the immediate operand.
17870 (call_internal): Likewise.
17871 (call_value): Likewise.
17872 (call_value_internal): Likewise.
17873 (sibcall_internal): Likewise.
17874 (sibcall_value_internal): Likewise.
17875 (sibcall): Likewise. Generate an explicit call using
17876 sibcall_internal.
17877 (sibcall_value): Likewise.
17878 (mov<>): FAIL if a constant operand is not legitimate.
17879 (addsi3_unpsec): New pattern.
17880
17881 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17882 (ok_for_max_constant): New function.
17883 (gen_safe_add): New function.
17884 (rx_expand_prologue): Use gen_safe_add.
17885 (rx_expand_epilogue): Likewise.
17886 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17887 UNSPEC CONSTs.
17888
17889 2011-01-21 Jeff Law <law@redhat.com>
17890
17891 PR tree-optimization/47053
17892 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17893 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17894 statements are deleted.
17895 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17896 is nonempty, then purge dead edges and cleanup the CFG.
17897
17898 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17899
17900 PR debug/47402
17901 Temporarily revert:
17902 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17903 PR debug/47106
17904 * tree-dfa.c (create_var_ann): Mark variable as used.
17905
17906 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17907
17908 PR middle-end/45566
17909 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17910 notes from other section in hot/cold partitioning even if
17911 last_action is -3. Increment call_site_base.
17912
17913 PR rtl-optimization/47366
17914 * fwprop.c (forward_propagate_into): Return bool. If
17915 any changes are made, -fnon-call-exceptions is used and
17916 REG_EH_REGION note is present, call purge_dead_edges
17917 and return true if it purged anything.
17918 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17919 any EH edges were purged.
17920
17921 2011-01-21 Jeff Law <law@redhat.com>
17922
17923 PR rtl-optimization/41619
17924 * caller-save.c (setup_save_areas): Break out code to determine
17925 which hard regs are live across calls by examining the reload chains
17926 so that it is always used.
17927 Eliminate code which checked REG_N_CALLS_CROSSED.
17928
17929 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17930
17931 PR tree-optimization/47355
17932 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17933 NOP has non-debug uses beyond PHIs in new_bb.
17934
17935 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17936
17937 PR debug/47106
17938 * cfgexpand.c (account_used_vars_for_block): Only account vars
17939 that are annotated as used.
17940 (estimated_stack_frame_size): Don't set TREE_USED.
17941 * tree-dfa.c (create_var_ann): Mark variable as used.
17942
17943 2011-01-21 Richard Guenther <rguenther@suse.de>
17944
17945 PR middle-end/47395
17946 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17947
17948 2011-01-21 Richard Guenther <rguenther@suse.de>
17949
17950 PR tree-optimization/47365
17951 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17952 (vn_reference_lookup_pieces): Adjust.
17953 (vn_reference_lookup): Likewise.
17954 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17955 (vn_reference_lookup_3): Only look through kills if in
17956 VN_WALKREWRITE mode.
17957 (vn_reference_lookup_pieces): Adjust.
17958 (vn_reference_lookup): Likewise.
17959 (visit_reference_op_load): Likewise.
17960 (visit_reference_op_store): Likewise.
17961 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17962 (compute_avail): Likewise.
17963 (eliminate): Likewise.
17964
17965 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17966
17967 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17968 DECL_IGNORED_P non-reg vars if they are used.
17969
17970 PR tree-optimization/47391
17971 * varpool.c (const_value_known_p): Return false if
17972 decl is volatile.
17973
17974 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17975
17976 PR bootstrap/47215
17977 * config/i386/i386.c (ix86_local_alignment): Handle
17978 case for va_list_type_node is nil.
17979 (ix86_canonical_va_list_type): Likewise.
17980
17981 2011-01-21 Alan Modra <amodra@gmail.com>
17982
17983 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17984 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17985
17986 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17987
17988 * config/arm/arm.md (define_attr type): Rename f_load
17989 and f_store to f_fpa_load and f_fpa_store. Update.
17990 (write_conflict): Deal with rename fallout.
17991 (*push_fp_multi): Likewise.
17992 * config/arm/fpa.md (f_load): Use f_fpa_load.
17993 (f_store): Use f_fpa_store.
17994 (*movsf_fpa): Likewise.
17995 (*movdf_fpa): Likewise.
17996 (*movxf_fpa): Likewise.
17997 (*thumb2_movsf_fpa): Likewise.
17998 (*thumb2_movdf_fpa): Likewise.
17999 (*thumb2_movxf_fpa): Likewise.
18000 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18001 f_loadd and f_stored.
18002 (*thumb2_movdi_vfp): Likewise.
18003 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18004 (*thumb2_movsi_vfp): Likewise.
18005 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18006 Use f_loads instead of f_load.
18007 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18008
18009 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18010
18011 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18012 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18013 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18014 (xtensa_mode_dependent_address_p): New function.
18015 (constantpool_address_p): Make static. Change return type to bool.
18016 Change argument type to const_rtx. Use CONST_INT_P predicate.
18017
18018 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18019
18020 PR debug/46583
18021 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18022
18023 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18024
18025 PR debug/47283
18026 * cfgexpand.c (expand_debug_expr): Instead of generating
18027 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18028 etc. handling.
18029
18030 2011-01-20 Richard Guenther <rguenther@suse.de>
18031
18032 PR middle-end/47370
18033 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18034 the pointer operand of MEM_REFs.
18035
18036 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18037
18038 PR tree-optimization/46130
18039 * ipa-split.c (consider_split): If return_bb contains non-virtual
18040 PHIs other than for retval or if split_function would not adjust it,
18041 refuse to split.
18042
18043 2011-01-20 Richard Guenther <rguenther@suse.de>
18044
18045 PR tree-optimization/47167
18046 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18047 Revert previous change, only avoid enumeral type changes.
18048
18049 2011-01-19 Mike Stump <mikestump@comcast.net>
18050
18051 * doc/tm.texi.in (BRANCH_COST): Englishify.
18052 * doc/tm.texi (BRANCH_COST): Likewise.
18053
18054 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18055
18056 PR c++/47291
18057 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18058 (gen_scheduled_generic_parms_dies): New functions.
18059 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18060 generation for the end of CU compilation.
18061 (dwarf2out_finish): Generate template parameters DIEs here.
18062
18063 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18064
18065 PR debug/46240
18066 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18067 debug bind stmt on merge edges.
18068
18069 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18070
18071 PR debug/47079
18072 PR debug/46724
18073 * function.c (instantiate_expr): Instantiate incoming rtl of
18074 implicit arguments, and recurse on VALUE_EXPRs.
18075 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18076 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18077
18078 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18079
18080 * c-parser.c (c_parser_for_statement): Initialize
18081 collection_expression.
18082
18083 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18084
18085 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18086
18087 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18088
18089 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18090 (LINK_SHLIB_SPEC): Don't use %(link_path).
18091 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18092
18093 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18094
18095 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18096 (NO_SHARED_LIB_SUPPORT): Remove.
18097 (LINK_SHLIB_SPEC): Remove one conditional definition.
18098
18099 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18100
18101 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18102 %{call_shared}.
18103 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18104 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18105 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18106 %{call_shared} and conditionals on these options not being passed.
18107 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18108 %{call_shared}.
18109
18110 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18111
18112 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18113 simplify.
18114
18115 * ipa-split.c: Spelling fixes.
18116
18117 2011-01-19 Richard Henderson <rth@redhat.com>
18118
18119 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18120 (*mulsi3): Likewise.
18121
18122 * longlong.h [__mn10300__] (count_leading_zeros): New.
18123 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18124 [__mn10300__] (add_ssaaaa, subddmmss): New.
18125 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18126 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18127
18128 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18129
18130 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18131
18132 2011-01-19 Richard Henderson <rth@redhat.com>
18133
18134 * config/mn10300/mn10300.md (addsi3_flags): New.
18135 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18136 (subsi3_flags, subc_internal, subdi3): New.
18137 (subdi3_internal, *subdi3_degenerate): New.
18138 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18139
18140 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18141 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18142 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18143 * config/mn10300/mn10300-protos.h: Update.
18144 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18145 (return_ret): Likewise. Rename from return_internal_regs.
18146 (return_internal): Remove.
18147
18148 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18149 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18150 (mn10300_legitimate_constant_p): Likewise.
18151 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18152 (mn10300_frame_size): New.
18153 (mn10300_expand_prologue): Use it.
18154 (mn10300_expand_epilogue): Likewise.
18155 (mn10300_initial_offset): Likewise.
18156 * config/mn10300/mn10300-protos.h: Update.
18157 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18158 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18159 (prologue, epilogue, return_internal): Tidy output code.
18160 (mn10300_store_multiple_operation, return): Likewise.
18161 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18162 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18163 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18164 (load_pic, am33_load_pic): New.
18165 (mn10300_load_pic0, mn10300_load_pic1): New.
18166
18167 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18168 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18169 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18170 (cc_flags_for_mode, cc_flags_for_code): New.
18171 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18172 overflow flag is not valid. Validate that the flags we need
18173 for the comparison are valid.
18174 (mn10300_output_cmp): Remove.
18175 (mn10300_output_add): New.
18176 (mn10300_select_cc_mode): Use cc_flags_for_code.
18177 (mn10300_split_cbranch): New.
18178 (mn10300_match_ccmode): New.
18179 (mn10300_split_and_operand_count): New.
18180 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18181 to the function.
18182 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18183 (addsi3): ... here. Use mn10300_output_add.
18184 (*addsi3_flags): New.
18185 (*am33_subsi3, *mn10300_subsi3): Merge...
18186 (subsi3): ... here. Use attribute isa.
18187 (*subsi3_flags): New.
18188 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18189 when possible.
18190 (*am33_andsi3, *mn10300_andsi3): Merge...
18191 (andsi3): ... here.
18192 (*andsi3_flags): New.
18193 (andsi3 splitters): New.
18194 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18195 (iorsi3): ... here.
18196 (*iorsi3_flags): New.
18197 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18198 (xorsi3): ... here.
18199 (*xorsi3_flags): New.
18200 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18201 (one_cmplsi2): ... here.
18202 (*one_cmplsi2_flags): New.
18203 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18204 instead of "dax" in constraints. Use mn10300_split_cbranch.
18205 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18206 use matching constraints to eliminate a self-comparison.
18207 (*integer_conditional_branch): Rename from integer_conditional_branch.
18208 Use int_mode_flags to match CC_REG.
18209 (*cbranchsi4_btst, *btstsi): New.
18210 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18211 mn10300_split_cbranch.
18212 (*am33_cmpsf): Rename from am33_cmpsf.
18213 (*float_conditional_branch): Rename from float_conditional_branch.
18214 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18215 (zero_extendqisi2): ... here.
18216 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18217 (zero_extendhisi2): ... here.
18218 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18219 (extendqisi2): ... here.
18220 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18221 (extendhisi2): ... here.
18222 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18223 (ashlsi3): ... here.
18224 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18225 (lshrsi3): ... here.
18226 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18227 (ashrsi3): ... here.
18228 (consecutive add peephole): Remove.
18229 * config/mn10300/predicates.md (label_ref_operand): New.
18230 (int_mode_flags): New.
18231 (CCZN_comparison_operator): New.
18232
18233 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18234 (throughput_42_latency_43): New reservation.
18235 (mulsidi3, umulsidi3): New expanders.
18236 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18237 the MDR register to allocation; separately allocate the low and
18238 high parts of the DImode result.
18239 (umulsidi3_internal): Similarly.
18240 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18241 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18242 (udivsi3, umodsi3): Remove.
18243 (udivmodsi4, divmodsi4): New expanders.
18244 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18245 (*divmodsi4): Simiarly.
18246 (ext_internal): New.
18247
18248 * config/mn10300/constraints.md ("z"): New constraint.
18249 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18250 (FIXED_REGISTERS): Don't fix MDR.
18251 (CALL_USED_REGSITERS): Reformat nicely.
18252 (REG_ALLOC_ORDER): Add MDR.
18253 (enum regclass): Add MDR_REGS.
18254 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18255 (IRA_COVER_CLASSES): Add MDR_REGS.
18256 (REGNO_REG_CLASS): Handle MDR_REG.
18257 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18258 (mn10300_register_move_cost): Likewise.
18259 * config/mn10300/mn10300.md (MDR_REG): New.
18260 (*movsi_internal): Handle moves to/from MDR_REGS.
18261
18262 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18263 POST_MODIFY.
18264 (mn10300_secondary_reload): Tidy combination reload classes.
18265 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18266 addresses for AM33. Allow symbolic offsets for reg+imm.
18267 (mn10300_regno_in_class_p): New.
18268 (mn10300_legitimize_reload_address): New.
18269 * config/mn10300/mn10300.h (enum reg_class): Remove
18270 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18271 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18272 SP_OR_GENERAL_REGS.
18273 (REG_CLASS_NAMES): Update to match.
18274 (REG_CLASS_CONTENTS): Likewise.
18275 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18276 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18277 (REGNO_IN_RANGE_P): Remove.
18278 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18279 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18280 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18281 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18282 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18283 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18284 (REGNO_GENERAL_P): New.
18285 (HAVE_POST_MODIFY_DISP): New.
18286 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18287 (LEGITIMIZE_RELOAD_ADDRESS): New.
18288 * config/mn10300/mn10300-protos.h: Update.
18289
18290 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18291 DATA_REGS for AM33 stack-pointer destination.
18292 (mn10300_preferred_output_reload_class): Likewise.
18293 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18294 into a form appropriate for ...
18295 (TARGET_SECONDARY_RELOAD): New.
18296 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18297 * config/mn10300/mn10300-protos.h: Update.
18298 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18299 reload_insi; use the "A" constraint for the scratch; handle AM33
18300 moves of sp to non-address registers.
18301
18302 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18303 (*movqi_internal): ... here.
18304 (*am33_movhi, *mn10300_movhi): Merge into...
18305 (*movhi_internal): ... here.
18306 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18307 as the source/destination of moves from/to SP.
18308 (movsf): Only allow for AM33-2.
18309 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18310 any integer constant constraint. Only allow for AM33-2. Tidy
18311 all of the alternative outputs.
18312 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18313 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18314 for MN103.
18315 (udivsi3, umodsi3): New patterns for MN103 only.
18316
18317 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18318
18319 * doc/tm.texi.in: Spell out that a lack of register class unions
18320 can lead to ICEs.
18321 * doc/tm.texi: Regenerate.
18322
18323 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR rtl-optimization/47337
18326 * dce.c (check_argument_store): New function.
18327 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18328
18329 PR tree-optimization/47290
18330 * tree-eh.c (infinite_empty_loop_p): New function.
18331 (cleanup_empty_eh): Use it.
18332
18333 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18334
18335 PR target/46997
18336 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18337 (a64_expand_widen_sum): Ditto.
18338 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18339 (vec_extract_evenodd_help): Ditto.
18340 (vec_extract_evenv4hi): Ditto.
18341 (vec_extract_oddv4hi): Ditto.
18342 (vec_extract_evenv2si): Ditto.
18343 (vec_extract_oddv2si): Ditto.
18344 (vec_extract_evenv2sf): Ditto.
18345 (vec_extract_oddv2sf): Ditto.
18346 (vec_pack_trunc_v4hi: Ditto.
18347 (vec_pack_trunc_v2si): Ditto.
18348 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18349 (vec_interleave_highv8qi): Ditto.
18350 (mix1_r): Ditto.
18351 (vec_extract_oddv8qi): Ditto.
18352 (vec_interleave_lowv4hi): Ditto.
18353 (vec_interleave_highv4hi): Ditto.
18354 (vec_interleave_lowv2si): Ditto.
18355 (vec_interleave_highv2si): Ditto.
18356
18357 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18358
18359 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18360 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18361 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18362 (pa_c_mode_for_suffix): New.
18363 (TARGET_EXPAND_BUILTIN): Define.
18364 (TARGET_C_MODE_FOR_SUFFIX): Define.
18365 (pa_builtins): Define.
18366 (pa_init_builtins): Register __float128 type and init new support
18367 builtins.
18368 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18369 * config/pa/quadlib.c (_U_Qfcopysign): New.
18370
18371 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18372
18373 PR middle-end/46894
18374 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18375 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18376 are defined.
18377
18378 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18379
18380 PR tree-optimization/47179
18381 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18382 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18383
18384 2011-01-18 Richard Guenther <rguenther@suse.de>
18385
18386 PR rtl-optimization/47216
18387 * emit-rtl.c: Include tree-flow.h.
18388 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18389 of replicating it with different semantics.
18390 * Makefile.in (emit-rtl.o): Adjust.
18391
18392 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18393
18394 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18395 (cortex_a9_dp): Handle neon types correctly.
18396
18397 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18398
18399 PR rtl-optimization/47299
18400 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18401 subtarget. Use normal multiplication if both operands are constants.
18402 * expmed.c (expand_widening_mult): Don't try to optimize constant
18403 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18404 before using it.
18405
18406 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18407
18408 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18409 spacing after 'e.g.', typos, comma, hyphenation.
18410
18411 2011-01-17 Richard Henderson <rth@redhat.com>
18412
18413 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18414 (rx_restricted_mem_operand): New.
18415 (rx_shift_operand): Use register_operand.
18416 (rx_source_operand, rx_compare_operand): Likewise.
18417 * config/rx/rx.md (addsi3_flags): New expander.
18418 (adddi3): Rewrite as expander.
18419 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18420 (subsi3_flags): New expander.
18421 (subdi3): Rewrite as expander.
18422 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18423
18424 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18425 (rx_init_builtins): Remove sat builtin.
18426 (rx_expand_builtin): Likewise.
18427 * config/rx/rx.md (ssaddsi3): New.
18428 (*sat): Rename from sat. Represent the CC_REG input.
18429
18430 * config/rx/predicates.md (rshift_operator): New.
18431 * config/rx/rx.c (rx_expand_insv): Remove.
18432 * config/rx/rx-protos.h: Update.
18433 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18434 operand to the canonical position.
18435 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18436 (*bitclr, *bitclr_in_memory): Similarly.
18437 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18438 (insv): Retain the zero_extract in the expansion.
18439
18440 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18441 (bswaphi2, bitinvert, revw): Likewise.
18442
18443 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18444 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18445 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18446 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18447 (bitset, bitset_in_memory): Likewise.
18448 (bitinvert, bitinvert_in_memory): Likewise.
18449 (bitclr, bitclr_in_memory): Likewise.
18450 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18451 (rx_strend, rx_cmpstrn): Likewise.
18452 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18453 (bitop peep2 patterns): Remove.
18454
18455 * config/rx/rx.c (rx_match_ccmode): New.
18456 * config/rx/rx-protos.h: Update.
18457 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18458 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18459 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18460 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18461 (fix_truncsfsi2, floatsisf2): Likewise.
18462 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18463 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18464 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18465 (*subsi3_flags, *xorsi3_flags): New.
18466
18467 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18468
18469 * config/rx/rx.c (rx_print_operand): Remove workaround for
18470 unsplit comparison operations.
18471
18472 * config/rx/rx.md (movsicc): Split after reload.
18473 (*movsicc): Merge *movsieq and *movsine via match_operator.
18474 (*stcc): New pattern.
18475
18476 * config/rx/rx.c (rx_float_compare_mode): Remove.
18477 * config/rx/rx.h (rx_float_compare_mode): Remove.
18478 * config/rx/rx.md (cstoresi4): Split after reload.
18479 (*sccc): New pattern.
18480
18481 * config/rx/predicates.md (label_ref_operand): New.
18482 (rx_z_comparison_operator): New.
18483 (rx_zs_comparison_operator): New.
18484 (rx_fp_comparison_operator): New.
18485 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18486 Validate that the flags are set properly for the comparison.
18487 (rx_gen_cond_branch_template): Remove.
18488 (rx_cc_modes_compatible): Remove.
18489 (mode_from_flags): New.
18490 (flags_from_code): Rename from flags_needed_for_conditional.
18491 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18492 (rx_select_cc_mode): Likewise.
18493 (rx_split_fp_compare): New.
18494 (rx_split_cbranch): New.
18495 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18496 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18497 (*cbranchsf4): Similarly.
18498 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18499 match_operator and rx_split_cbranch.
18500 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18501 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18502 (*cmpsi): Rename from cmpsi.
18503 (*tstsi): Rename from tstsi.
18504 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18505 (*conditional_branch): Rename from conditional_branch.
18506 (*reveresed_conditional_branch): Remove.
18507 (b<code>): Remove expander.
18508 * config/rx/rx-protos.h: Update.
18509
18510 * config/rx/rx.c (rx_compare_redundant): Remove.
18511 * config/rx/rx.md (cmpsi): Don't use it.
18512 * config/rx/rx-protos.h: Update.
18513
18514 * config/rx/rx-modes.def (CC_F): New mode.
18515 * config/rx/rx.c (rx_select_cc_mode): New.
18516 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18517 * config/rx/rx-protos.h: Update.
18518
18519 2011-01-17 Richard Henderson <rth@redhat.com>
18520
18521 * except.c (dump_eh_tree): Fix stray ; after for statement.
18522
18523 2011-01-17 Richard Guenther <rguenther@suse.de>
18524
18525 PR tree-optimization/47313
18526 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18527 handling before copying the body. Properly deal with
18528 by-reference result in SSA form.
18529
18530 2011-01-17 Ian Lance Taylor <iant@google.com>
18531
18532 PR target/47219
18533 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18534 (struct_value_alias_set): Don't define.
18535 (sparc_option_override): Don't set sparc_sr_alias_set and
18536 struct_value_alias_set.
18537 (save_or_restore_regs): Use gen_frame_mem rather than calling
18538 set_mem_alias_set.
18539 (sparc_struct_value_rtx): Likewise.
18540
18541 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18542
18543 PR target/47318
18544 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18545 (_mm_maskstore_pd): Likewise.
18546 (_mm_maskload_ps): Likewise.
18547 (_mm_maskstore_ps): Likewise.
18548 (_mm256_maskload_pd): Change mask to __m256i.
18549 (_mm256_maskstore_pd): Likewise.
18550 (_mm256_maskload_ps): Likewise.
18551 (_mm256_maskstore_ps): Likewise.
18552
18553 * config/i386/i386-builtin-types.def: Updated.
18554 (ix86_expand_special_args_builtin): Likewise.
18555
18556 * config/i386/i386.c (bdesc_special_args): Update
18557 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18558 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18559 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18560 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18561
18562 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18563 Use <avxpermvecmode> on mask register.
18564 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18565
18566 2011-01-17 Olivier Hainque <hainque@adacore.com>
18567 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18568 Eric Botcazou <ebotcazou@adacore.com>
18569
18570 PR target/46655
18571 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18572 if <= USHRT_MAX in 32-bit mode.
18573
18574 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18575
18576 * doc/install.texi (Configuration, Specific): Wrap long
18577 lines in examples. Allow line wrapping in long options
18578 and URLs where beneficial for PDF output.
18579
18580 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18581
18582 * config/mips/mips.c (mips_classify_symbol): Don't return
18583 SYMBOL_PC_RELATIVE for nonlocal labels.
18584
18585 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18586
18587 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18588
18589 2011-01-15 Jan Hubicka <jh@suse.cz>
18590
18591 PR tree-optimization/47276
18592 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18593 declarations as needed.
18594
18595 2011-01-15 Martin Jambor <mjambor@suse.cz>
18596
18597 * common.opt (fdevirtualize): New flag.
18598 * doc/invoke.texi (Option Summary): Document it.
18599 * opts.c (default_options_table): Add devirtualize flag.
18600 * ipa-prop.c (detect_type_change): Return immediately if
18601 devirtualize flag is not set.
18602 (detect_type_change_ssa): Likewise.
18603 (compute_known_type_jump_func): Likewise.
18604 (ipa_analyze_virtual_call_uses): Likewise.
18605
18606 2011-01-14 Martin Jambor <mjambor@suse.cz>
18607
18608 PR tree-optimization/45934
18609 PR tree-optimization/46302
18610 * ipa-prop.c (type_change_info): New type.
18611 (stmt_may_be_vtbl_ptr_store): New function.
18612 (check_stmt_for_type_change): Likewise.
18613 (detect_type_change): Likewise.
18614 (detect_type_change_ssa): Likewise.
18615 (compute_complex_assign_jump_func): Check for dynamic type change.
18616 (compute_complex_ancestor_jump_func): Likewise.
18617 (compute_known_type_jump_func): Likewise.
18618 (compute_scalar_jump_functions): Likewise.
18619 (ipa_analyze_virtual_call_uses): Likewise.
18620 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18621
18622 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18623
18624 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18625 * config/i386/i386.opt (msse5): New Alias.
18626
18627 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18628
18629 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18630 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18631 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18632 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18633
18634 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18635
18636 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18637 -mcpu options.
18638 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18639 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18640 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18641 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18642 Likewise.
18643 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18644
18645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18646
18647 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18648
18649 2011-01-14 Mike Stump <mikestump@comcast.net>
18650
18651 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18652 * config/fr30/fr30.md: Likweise
18653 (movsi_push): Likewise.
18654 (movsi_pop): Likewise.
18655 (enter_func): Likewise.
18656 * config/moxie/moxie.md (movsi_push): Likewise.
18657 (movsi_pop): Likewise.
18658
18659 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18660
18661 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18662 %{no_archive} %{exact_version}.
18663 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18664 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18665 %{no_archive} %{exact_version}.
18666 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18667 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18668 * config/mips/vxworks.h: Likewise.
18669
18670 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18671
18672 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18673
18674 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18675
18676 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18677 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18678
18679 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18680
18681 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18682 -nodefaultlib.
18683
18684 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18685
18686 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18687 for mcpu not cpu.
18688 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18689 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18690 not cpu.
18691 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18692 Don't handle -shlib.
18693
18694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18695
18696 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18697 (CC1_SPEC): Don't handle -profile.
18698
18699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18700
18701 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18702 * config/mips/mips.h (CC1_SPEC): Likewise.
18703
18704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18705
18706 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18707 * config/mips/mips.h (CC1_SPEC): Likewise.
18708
18709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18710
18711 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18712 * config/m32r/linux.h (LINK_SPEC): Likewise.
18713 * config/mips/linux.h (LINK_SPEC): Likewise.
18714 * config/mips/linux64.h (LINK_SPEC): Likewise.
18715 * config/sparc/linux.h (LINK_SPEC): Likewise.
18716 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18717 LINK_SPEC): Likewise.
18718 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18719
18720 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18721
18722 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18723 %{version:-v}.
18724 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18725
18726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18727
18728 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18729 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18730
18731 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18732
18733 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18734
18735 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18736
18737 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18738 supports -Bstatic/-Bdynamic.
18739 * configure: Regenerate.
18740
18741 2011-01-14 Jan Hubicka <jh@suse.cz>
18742 Jack Howarth <howarth@bromo.med.uc.edu>
18743
18744 PR target/46037
18745 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18746 when checking debug_info_level. Test write_symbols instead of
18747 debug_hooks->var_location when setting flag_var_tracking_uninit.
18748
18749 2011-01-14 Richard Guenther <rguenther@suse.de>
18750
18751 PR tree-optimization/47179
18752 * target.def (ref_may_alias_errno): New target hook.
18753 * targhooks.h (default_ref_may_alias_errno): Declare.
18754 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18755 (default_ref_may_alias_errno): New function.
18756 * target.h (struct ao_ref_s): Declare.
18757 * tree-ssa-alias.c: Include target.h.
18758 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18759 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18760 (targhooks.o): Likewise.
18761 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18762 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18763
18764 2011-01-14 Richard Guenther <rguenther@suse.de>
18765
18766 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18767
18768 2011-01-14 Richard Guenther <rguenther@suse.de>
18769
18770 PR tree-optimization/47280
18771 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18772 return CFG changes.
18773 (tree_ssa_forward_propagate_single_use_vars): Deal with
18774 CFG changes from associate_plusminus.
18775
18776 2011-01-14 Richard Guenther <rguenther@suse.de>
18777
18778 PR middle-end/47281
18779 Revert
18780 2011-01-11 Richard Guenther <rguenther@suse.de>
18781
18782 PR tree-optimization/46076
18783 * tree-ssa.c (useless_type_conversion_p): Conversions from
18784 unprototyped to empty argument list function types are useless.
18785
18786 2011-01-14 Richard Guenther <rguenther@suse.de>
18787
18788 PR tree-optimization/47286
18789 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18790
18791 2011-01-14 Martin Jambor <mjambor@suse.cz>
18792
18793 PR middle-end/46823
18794 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18795
18796 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18797
18798 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18799 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18800 * config/xtensa/xtensa.c (xtensa_libcall_value,
18801 xtensa_function_value_regno_p): New functions.
18802 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18803
18804 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18805
18806 PR c++/47213
18807 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18808 PE specific hook.
18809 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18810 New function prototype.
18811 * config/i386/winnt.c (i386_pe_assemble_visibility):
18812 Warn only if attribute was specified by user.
18813
18814 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18815
18816 PR target/47251
18817 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18818 floating point.
18819 (floatunsdidf2_fcfidu): Ditto.
18820
18821 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18822
18823 * config/s390/s390.c (print_operand_address): Replace 'error' with
18824 'output_operand_lossage'.
18825 (print_operand): Likewise.
18826
18827 2011-01-13 Jeff Law <law@redhat.com>
18828
18829 PR rtl-optimization/39077
18830 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18831 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18832 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18833 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18834 * gcse.c (prune_insertions_deletions): New function.
18835 (compute_pre_data): Use it.
18836
18837 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18838
18839 PR debug/PR46973
18840 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18841 static function.
18842 (prune_unused_types_mark): Use it.
18843
18844 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18845
18846 PR rtl-optimization/45352
18847 * sel-sched.c: Update copyright years.
18848 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18849 in the advancing loop when we have issued issue_rate insns.
18850
18851 2011-01-12 Richard Henderson <rth@redhat.com>
18852
18853 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18854 (TARGET_MD_ASM_CLOBBERS): New.
18855
18856 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18857 (TARGET_DELEGITIMIZE_ADDRESS): New.
18858
18859 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18860 (clzsi2, *bsch): New patterns.
18861
18862 * config/mn10300/mn10300.md (INT): New mode iterator.
18863 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18864
18865 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18866 flag_split_wide_types.
18867
18868 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18869 (mn10300_trampoline_init): Rewrite without a template, an immediate
18870 load and a direct branch.
18871 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18872
18873 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18874
18875 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18876 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18877 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18878 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18879
18880 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18881
18882 PR debug/47209
18883 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18884 of type.
18885
18886 2011-01-12 Jan Hubicka <jh@suse.cz>
18887
18888 PR driver/47244
18889 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18890 (PLUGIN_COND_CLOSE): New macro.
18891 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18892
18893 2011-01-12 Richard Guenther <rguenther@suse.de>
18894
18895 PR lto/47259
18896 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18897 register variables in a MEM_REF.
18898
18899 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18900
18901 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18902 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18903 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18904 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18905 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18906 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18907 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18908 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18909 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18910 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18911 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18912 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18913 * config/gnu-user.h: New. Copied from linux.h.
18914 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18915 GNU_USER_TARGET_STARTFILE_SPEC.
18916 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18917 GNU_USER_TARGET_ENDFILE_SPEC.
18918 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18919 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18920 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18921 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18922 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18923 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18924 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18925 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18926 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18927 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18928 * config/arm/linux-eabi.h (CC1_SPEC): Use
18929 GNU_USER_TARGET_CC1_SPEC.
18930 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18931 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18932 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18933 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18934 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18935 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18936 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18937 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18938
18939 2011-01-12 Richard Guenther <rguenther@suse.de>
18940
18941 PR other/46946
18942 * doc/invoke.texi (ffast-math): Document it is turned on
18943 with -Ofast.
18944
18945 2011-01-12 Jan Hubicka <jh@suse.cz>
18946
18947 PR tree-optimization/47233
18948 * opts.c (common_handle_option): Disable ipa-reference with profile
18949 feedback.
18950
18951 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18952
18953 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18954 error message.
18955
18956 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18957
18958 * c-parser.c (c_lex_one_token): Updated and reindented some
18959 comments. No changes in code.
18960
18961 2011-01-11 Ian Lance Taylor <iant@google.com>
18962
18963 * godump.c (go_output_var): Don't output the variable if there is
18964 already a type with the same name.
18965
18966 2011-01-11 Ian Lance Taylor <iant@google.com>
18967
18968 * godump.c (go_format_type): Don't generate float80.
18969
18970 2011-01-11 Richard Henderson <rth@redhat.com>
18971
18972 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18973 declaration. Rewrite for both speed and size.
18974 (mn10300_address_cost_1): Remove.
18975 (mn10300_register_move_cost): New.
18976 (mn10300_memory_move_cost): New.
18977 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18978 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18979 extensions, shifts, BSWAP, CLZ.
18980 (mn10300_wide_const_load_uses_clr): Remove.
18981 (TARGET_REGISTER_MOVE_COST): New.
18982 (TARGET_MEMORY_MOVE_COST): New.
18983 * config/mn10300/mn10300-protos.h: Update.
18984 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18985
18986 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18987 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18988 * config/mn10300/mn10300-protos.h: Update.
18989 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18990 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18991 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18992 (*test_int_bitfield, *test_byte_bitfield): Remove.
18993 (*bit_test, *subreg_bit_test): Remove.
18994 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18995
18996 * config/mn10300/constraints.md ("c"): Rename from "A".
18997 ("A", "D"): New constraint letters.
18998 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18999 (fmssf4, fnmasf4, fnmssf4): Likewise.
19000
19001 * config/mn10300/mn10300.md (isa): New attribute.
19002 (enabled): New attribute.
19003
19004 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19005 (abssf2, negsf2): Define only for hardware fp.
19006 (sqrtsf2): Reformat.
19007 (addsf3, subsf3, mulsf3): Merge expander and insn.
19008
19009 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19010 (DEBUGGER_AUTO_OFFSET): Remove.
19011 (DEBUGGER_ARG_OFFSET): Remove.
19012
19013 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19014 Emit register stores with the same offsets as the hardware.
19015 (mn10300_store_multiple_operation): Don't check that the register
19016 save offsets are monotonic.
19017 * config/mn10300/mn10300-protos.h: Update.
19018
19019 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19020
19021 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19022 in terms of the value on the stack, not the MDR register.
19023
19024 2011-01-11 Jan Hubicka <jh@suse.cz>
19025
19026 PR lto/45721
19027 PR lto/45375
19028 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19029 (symbol_alias_set_destroy, symbol_alias_set_contains,
19030 propagate_aliases_backward): Declare.
19031 * lto-streamer-out.c (struct sets): New sturcture.
19032 (trivally_defined_alias): New function.
19033 (output_alias_pair_p): Rewrite.
19034 (output_unreferenced_globals): Fix output of alias pairs.
19035 (produce_symtab): Likewise.
19036 * ipa.c (function_and_variable_visibility): Set weak alias destination
19037 as needed in lto.
19038 * varasm.c (symbol_alias_set_t): Remove.
19039 (symbol_alias_set_destroy): Export.
19040 (propagate_aliases_forward, propagate_aliases_backward): New functions
19041 based on ...
19042 (compute_visible_aliases): ... this one; remove.
19043 (trivially_visible_alias): New
19044 (trivially_defined_alias): New.
19045 (remove_unreachable_alias_pairs): Rewrite.
19046 (finish_aliases_1): Reorganize code checking if alias is defined.
19047 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19048 in LTO mode.
19049
19050 2011-01-11 Richard Guenther <rguenther@suse.de>
19051
19052 PR tree-optimization/46076
19053 * tree-ssa.c (useless_type_conversion_p): Conversions from
19054 unprototyped to empty argument list function types are useless.
19055
19056 2011-01-11 Richard Guenther <rguenther@suse.de>
19057
19058 PR middle-end/45235
19059 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19060 volatile MEMs as MEM_READONLY_P.
19061
19062 2011-01-11 Richard Guenther <rguenther@suse.de>
19063
19064 PR tree-optimization/47239
19065 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19066
19067 2011-01-11 Jeff Law <law@redhat.com>
19068
19069 PR tree-optimization/47086
19070 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19071 IVs from statements that might throw.
19072
19073 2011-01-10 Jan Hubicka <jh@suse.cz>
19074
19075 PR lto/45375
19076 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19077
19078 2011-01-10 Jan Hubicka <jh@suse.cz>
19079
19080 PR lto/45375
19081 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19082 when correcting profile.
19083
19084 2011-01-10 Jan Hubicka <jh@suse.cz>
19085
19086 PR lto/46083
19087 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19088 DECL_FINI_PRIORITY.
19089 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19090 Restore DECL_FINI_PRIORITY.
19091
19092 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19093
19094 * doc/gimple.texi: Fix quoting of multi-word return values in
19095 @deftypefn statements. Ensure presence of return value. Wrap
19096 overlong @deftypefn lines.
19097 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19098 descriptions of removed functions.
19099 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19100 of multi-word return value in @deftypefn statement.
19101
19102 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19103
19104 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19105 (Conditional Expressions, Logical Operators)
19106 (Statement and operand traversals): Do not indent smallexample
19107 code. Fix duplicate function argument in example.
19108
19109 2011-01-10 Jeff Law <law@redhat.com>
19110
19111 PR tree-optimization/47141
19112 * ipa-split.c (split_function): Handle case where we are
19113 returning a value and the return block has a virtual operand phi.
19114
19115 2011-01-10 Jan Hubicka <jh@suse.cz>
19116
19117 PR tree-optimization/47234
19118 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19119 (pass_feedback_split_functions): Declare.
19120 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19121 tree-profile.
19122 * ipa-split.c (gate_split_functions): Update comments; disable
19123 split-functions for profile_arc_flag and branch_probabilities.
19124 (gate_feedback_split_functions): New function.
19125 (execute_feedback_split_functions): New function.
19126 (pass_feedback_split_functions): New global var.
19127
19128 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19129
19130 PR lto/46760
19131 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19132 calling gimple_call_set_cannot_inline.
19133
19134 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19135
19136 * config/darwin-sections.def: Remove unused section.
19137
19138 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19139
19140 PR c++/47218
19141 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19142
19143 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19144
19145 PR objc/47232
19146 * c-parser.c (c_parser_declaration_or_fndef): Improved
19147 error message.
19148
19149 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19150
19151 * config/i386/winnt.c (i386_pe_start_function): Make sure
19152 to switch back to function's section.
19153
19154 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19155
19156 PR gcc/46902
19157 PR testsuite/46912
19158 * plugin.c: Move include of dlfcn.h from here...
19159 * system.h: ... to here.
19160
19161 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19162
19163 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19164 file name.
19165 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19166 two extra empty pages in PDF output.
19167
19168 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19169
19170 PR objc/47078
19171 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19172 for error recovery purposes behave as if it was not specified so
19173 that the default type is usd.
19174
19175 2011-01-07 Jan Hubicka <jh@suse.cz>
19176
19177 PR tree-optmization/46469
19178 * ipa.c (function_and_variable_visibility): Clear needed flags on
19179 nodes with external decls; handle weakrefs merging correctly.
19180
19181 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19182
19183 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19184 not false.
19185
19186 2011-01-07 Jan Hubicka <jh@suse.cz>
19187
19188 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19189 and no longer claim that gold is required for linker plugin.
19190 * configure: Regenerate.
19191 * gcc.c (PLUGIN_COND): New macro.
19192 (LINK_COMMAND_SPEC): Use it.
19193 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19194 * config.in (HAVE_LTO_PLUGIN): New.
19195 * configure.ac (--with-lto-plugin): New parameter; autodetect
19196 HAVE_LTO_PLUGIN.
19197
19198 2011-01-07 Jan Hubicka <jh@suse.cz>
19199
19200 PR tree-optimization/46367
19201 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19202 when we can update original.
19203 (cgraph_mark_inline_edge): Sanity check.
19204 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19205
19206 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19207
19208 * config/spu/spu.h (ASM_COMMENT_START): Define.
19209
19210 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19211
19212 PR driver/42445
19213 * gcc.c (%>S): New.
19214 (SWITCH_KEEP_FOR_GCC): Likewise.
19215 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19216 (do_spec_1): Handle "%>".
19217
19218 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19219
19220 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19221
19222 PR target/47201
19223 * config/i386/i386.c (ix86_delegitimize_address): If
19224 simplify_gen_subreg fails, return orig_x.
19225
19226 PR bootstrap/47187
19227 * value-prof.c (gimple_stringop_fixed_value): Handle
19228 lhs of the call properly.
19229
19230 2011-01-07 Jan Hubicka <jh@suse.cz>
19231
19232 PR lto/45375
19233 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19234
19235 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19236
19237 * target.def (function_switched_text_sections): New hook.
19238 * doc/tm.texi: Regenerated.
19239 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19240 * final.c (default_function_switched_text_sections): New.
19241 (final_scan_insn): Call function_switched_text_sections when a
19242 mid-function section change occurs.
19243 * output.h (default_function_switched_text_sections): Declare.
19244 * config/darwin-protos.h (darwin_function_switched_text_sections):
19245 Likewise.
19246 * config/darwin.c (darwin_function_switched_text_sections): New.
19247 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19248
19249 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19250
19251 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19252 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19253 the secondary code fragment when outputting for DWARF == 2.
19254
19255 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19256
19257 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19258 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19259 Remove.
19260 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19261 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19262
19263 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19264
19265 PR debug/46704
19266 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19267 when it is not empty.
19268
19269 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19270
19271 Bobcat Enablement
19272 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19273 (case ${target}): Add btver1.
19274 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19275 -march=native recognize btver1 processors.
19276 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19277 btver1 def_and_undef
19278 * config/i386/i386.c (struct processor_costs btver1_cost): New
19279 btver1 cost table.
19280 (m_BTVER1): New definition.
19281 (m_AMD_MULTIPLE): Includes m_BTVER1.
19282 (initial_ix86_tune_features): Add btver1 tune.
19283 (processor_target_table): Add btver1 entry.
19284 (static const char *const cpu_names): Add btver1 entry.
19285 (software_prefetching_beneficial_p): Add btver1.
19286 (ix86_option_override_internal): Add btver1 instruction sets.
19287 (ix86_issue_rate): Add btver1.
19288 (ix86_adjust_cost): Add btver1.
19289 * config/i386/i386.h (TARGET_BTVER1): New definition.
19290 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19291 (enum processor_type): Add PROCESSOR_BTVER1.
19292 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19293
19294 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19295
19296 PR target/43309
19297 * config/i386/i386.c (legitimize_tls_address)
19298 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19299 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19300 (tls_initial_exec_64_sun): New pattern.
19301
19302 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19303
19304 * doc/invoke.texi (Overall Options): Improve wording and markup
19305 of the description of -wrapper.
19306
19307 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19308
19309 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19310 rdynamic, threads): New Driver options.
19311
19312 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19313
19314 PR target/38118
19315 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19316 if coming from .tdata.
19317 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19318
19319 2011-01-06 Jan Hubicka <jh@suse.cz>
19320
19321 PR lto/47188
19322 * collect2.c (main): Do not enable LTOmode when plugin is active.
19323
19324 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19325
19326 PR other/45915
19327 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19328 --version output if supported.
19329 * configure: Regenerate.
19330
19331 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19332
19333 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19334 Driver options.
19335
19336 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19337
19338 PR c/47150
19339 * c-convert.c (convert): When converting a complex expression
19340 other than COMPLEX_EXPR to a different complex type, ensure
19341 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19342 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19343 when converting COMPLEX_TYPE.
19344
19345 2011-01-06 Ira Rosen <irar@il.ibm.com>
19346
19347 PR tree-optimization/47139
19348 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19349 only the last reduction value is used outside the loop. Update
19350 documentation.
19351
19352 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19353
19354 * config/rtems.opt: New.
19355 * config.gcc (*-*-rtems*): Use rtems.opt.
19356
19357 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19358
19359 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19360 processors do not support 3DNow instructions.
19361
19362 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19363
19364 * config/spu/spu.c (spu_option_override): Set parameter
19365 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19366
19367 2011-01-05 Jan Hubicka <jh@suse.cz>
19368
19369 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19370 at the command line.
19371
19372 2011-01-05 Martin Jambor <mjambor@suse.cz>
19373
19374 PR lto/47162
19375 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19376 deltas on streamed outgoing edges.
19377 (output_node_opt_summary): Output info for outgoing edges only when
19378 the node is in new parameter set.
19379 (output_cgraph_opt_summary): New parameter set, passed to the two
19380 aforementioned functions. Update its forward declaration and its
19381 callee too.
19382
19383 2011-01-05 Tom Tromey <tromey@redhat.com>
19384
19385 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19386 operator to c_finish_omp_atomic.
19387 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19388 (build_unary_op): Update.
19389 (build_modify_expr): Update.
19390 (build_asm_expr): Update.
19391
19392 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19393
19394 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19395 newly inserted insns.
19396 (pad_bb): Likewise.
19397 (spu_emit_branch_hint): Likewise.
19398 (insert_hbrp_for_ilb_runout): Likewise.
19399 (spu_machine_dependent_reorg): Call df_finish_pass after
19400 schedule_insns returns.
19401
19402 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19403
19404 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19405
19406 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19407
19408 PR tree-optimization/47005
19409 * tree-sra.c (struct access): Add 'non_addressable' bit.
19410 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19411 (decide_one_param_reduction): Return 0 if the parameter is passed by
19412 reference and one of the accesses in the group is non_addressable.
19413
19414 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19415
19416 PR tree-optimization/47056
19417 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19418 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19419 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19420
19421 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19422
19423 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19424 initializer. Skip view conversions from aggregate types.
19425
19426 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19427
19428 PR bootstrap/47055
19429 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19430
19431 2011-01-04 Philipp Thomas <pth@suse.de>
19432
19433 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19434 obvious typo.
19435
19436 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19437
19438 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19439 on empty epilogue sequences.
19440
19441 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19442
19443 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19444 non-static): New Driver options.
19445
19446 2011-01-04 Jie Zhang <jie@codesourcery.com>
19447
19448 PR driver/47137
19449 * gcc.c (default_compilers[]): Set combinable field to 0
19450 for all assembly languages.
19451
19452 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19453
19454 * config/mips/loongson3a.md: New file.
19455 * config/mips/mips.md: Include loongson3a.md.
19456 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19457 TUNE_LOONGSON_3A.
19458
19459 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19460
19461 PR middle-end/47017
19462 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19463 instead of convert_memory_address_addr_space on the base expression.
19464
19465 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19466
19467 * config/spu/spu.c (spu_option_override): Update error text
19468 for bad -march= / -mtune= values.
19469
19470 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19471
19472 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19473 if branch-hint optimization will be performed.
19474
19475 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19476
19477 PR tree-optimization/47148
19478 * ipa-split.c (split_function): Convert arguments to
19479 DECL_ARG_TYPE if possible.
19480
19481 PR tree-optimization/47155
19482 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19483 when computing uns.
19484
19485 PR rtl-optimization/47157
19486 * combine.c (try_combine): If undobuf.other_insn becomes
19487 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19488 and set *new_direct_jump_p too.
19489
19490 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19491
19492 PR tree-optimization/47021
19493 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19494
19495 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19496
19497 * gcc.c (process_command): Update copyright notice dates.
19498 * gcov.c (print_version): Likewise.
19499 * gcov-dump.c (print_version): Likewise.
19500 * mips-tfile.c (main): Likewise.
19501 * mips-tdump.c (main): Likewise.
19502
19503 2011-01-03 Martin Jambor <mjambor@suse.cz>
19504
19505 PR tree-optimization/46801
19506 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19507 aggregate fields start at byte boundary instead of the bit-field flag.
19508
19509 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19510
19511 PR driver/47137
19512 * gcc.c (main): Revert revision 168407.
19513
19514 2011-01-03 Martin Jambor <mjambor@suse.cz>
19515
19516 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19517
19518 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19519
19520 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19521 vector optab to expand vector/scalar shift, update gimple to vector.
19522
19523 2011-01-03 Martin Jambor <mjambor@suse.cz>
19524
19525 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19526 a thunk.
19527
19528 2011-01-03 Martin Jambor <mjambor@suse.cz>
19529
19530 PR tree-optimization/46984
19531 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19532 HOST_WIDE_INT.
19533 (cgraph_create_indirect_edge): Fixed line length.
19534 (cgraph_indirect_call_info): Declare.
19535 (cgraph_make_edge_direct) Update declaration.
19536 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19537 (cgraph_create_indirect_edge): Use it.
19538 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19539 callees.
19540 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19541 the new thunk_delta representation.
19542 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19543 HOST_WIDE_INT.
19544 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19545 (ipa_read_indirect_edge_info): Likewise.
19546 * lto-cgraph.c (output_edge_opt_summary): New function.
19547 (output_node_opt_summary): Call it on all outgoing edges.
19548 (input_edge_opt_summary): New function.
19549 (input_node_opt_summary): Call it on all outgoing edges.
19550
19551 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19552
19553 PR driver/47137
19554 * gcc.c (main): Don't check have_o when settting combine_inputs.
19555
19556 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19557
19558 * regrename.c: Add general comment describing the pass.
19559 (struct du_head): Remove 'length' field.
19560 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19561 (regrename_optimize): Do not sort chains. Rework comments, add others.
19562 Force renaming to the preferred class (if any) in the first pass and do
19563 not consider registers that belong to it in the second pass.
19564 (create_new_chain): Do not set 'length' field.
19565 (scan_rtx_reg): Likewise.
19566
19567 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19568
19569 PR tree-optimization/47140
19570 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19571 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19572 to bit_value_binop.
19573
19574 PR rtl-optimization/47028
19575 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19576 parm_birth_insn instead of at the beginning of first bb.
19577
19578 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19579
19580 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19581 Remove the word "see" before "@pxref".
19582 * doc/rtl.texi: Remove the word "see" before "@pxref".
19583
19584 2011-01-01 Jan Hubicka <jh@suse.cz>
19585
19586 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19587 memory.
19588
19589 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19590
19591 PR target/38662
19592 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19593
19594 \f
19595 Copyright (C) 2011 Free Software Foundation, Inc.
19596
19597 Copying and distribution of this file, with or without modification,
19598 are permitted in any medium without royalty provided the copyright
19599 notice and this notice are preserved.