]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR fortran/49466 (Memory leak with assignment of extended derived types)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
310e71a8
JH
12011-06-27 Jan Hubicka <jh@suse.cz>
2
3 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
4 instead of references in node.
5
171da07a
RH
62011-06-27 Richard Henderson <rth@redhat.com>
7
8 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10 inside ifdef.
11
dc2a58da
JJ
122011-06-27 Jakub Jelinek <jakub@redhat.com>
13
56300785
JJ
14 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
15
45d439ac
JJ
16 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
17 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
18 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
19 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
20 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
21 (evaluate_stmt, execute_fold_all_builtins): Handle
22 BUILT_IN_ASSUME_ALIGNED.
23 * tree-ssa-dce.c (propagate_necessity): Likewise.
24 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
25 call_may_clobber_ref_p_1): Likewise.
26 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
27 (expand_builtin_assume_aligned): New function.
28 * doc/extend.texi (__builtin_assume_aligned): Document.
29
dc2a58da
JJ
30 PR debug/49544
31 * cselib.c (promote_debug_loc): If cselib_preserve_constants
32 and l has two DEBUG_INSN owned locs instead of just one, adjust
33 the second location's setting_insn too.
34
0d72f628
RO
352011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36
37 PR libmudflap/38738
38 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
39
bebd619e
NC
402011-06-27 Nick Clifton <nickc@redhat.com>
41
42 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
43 convert bit position of highest bit set into a count of the high
44 zero bits.
45
353b39fa
EB
462011-06-27 Eric Botcazou <ebotcazou@adacore.com>
47
48 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
49
a7af037b
EB
502011-06-27 Eric Botcazou <ebotcazou@adacore.com>
51
52 PR lto/48492
53 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
54 to a NULL parent.
55
1c86160a
RG
562011-06-27 Richard Guenther <rguenther@suse.de>
57
58 PR tree-optimization/49394
59 * passes.c (execute_one_pass): Restore current_pass after
60 applying IPA transforms.
61
5da49a9d
KT
622011-06-27 Kai Tietz <ktietz@redhat.com>
63
64 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
65 out of type precision after operation.
66 (find_bswap): Take for limit value the integer auto-
67 promotion into account.
68
9242213f
EB
692011-06-27 Eric Botcazou <ebotcazou@adacore.com>
70
71 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
72 forward scan as well.
73
db8b22ef
TG
742011-06-27 Tristan Gingold <gingold@adacore.com>
75
76 PR target/44241
77 * config/vms/vms-protos.h: New file.
78 * config/vms/vms-crtlmap.map: New file.
79 * config/vms/vms.c: New file.
80 * config/vms/make-crtlmap.awk: New file.
81 * config/vms/vms-crtl.h: File removed.
82 * config/vms/vms-crtl-64.h: File removed.
83 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
84 * config/alpha/vms64.h: Do not include vms-crtl-64.h
85 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
86 clear some builtins on VMS. Calls vms_patch_builtins.
87 (avms_asm_output_external): Remove.
88 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
89 (struct crtl_name_spec): Remove
90 (DO_CTRL_NAMES): Remove.
91 * config/ia64/vms.h (struct crtl_name_spec): Remove
92 (DO_CTRL_NAMES): Remove.
93 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
94 clear some builtins on VMS. Calls vms_patch_builtins.
95 (ia64_asm_output_external): Remove DO_CRTL_NAME.
96 * config/ia64/vms64.h: Do not include vms-crtl-64.h
97 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
98 tm_p_file.
99
b213221d
TG
1002011-06-27 Tristan Gingold <gingold@adacore.com>
101
102 * config/alpha/alpha.c (alpha_end_function): Always generate .end
103 directive on VMS.
104
157b9300
EB
1052011-06-27 Eric Botcazou <ebotcazou@adacore.com>
106
107 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
108 the function receives nonlocal gotos.
109
ccbf5bb4
RG
1102011-06-27 Richard Guenther <rguenther@suse.de>
111
112 PR tree-optimization/49536
113 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
114 For non-scalar inner types use a scalar type according to
115 the scalar inner mode.
116
fe4cd14b
RG
1172011-06-27 Richard Guenther <rguenther@suse.de>
118
119 PR tree-optimization/49365
120 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
121
afc3f22f
RS
1222011-06-27 Richard Guenther <rguenther@suse.de>
123
124 PR tree-optimization/49169
125 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
126 the alignment of function decls.
127
92590751 1282011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
129
130 PR target/47997
131 * config/darwin.c (darwin_mergeable_string_section): Place string
132 constants in '.cstring' rather than '.const' when CF/NSStrings are
133 active.
134
605354f3
EB
1352011-06-26 Eric Botcazou <ebotcazou@adacore.com>
136
137 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
138 (emit_save_register_window): Likewise.
139 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
140 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
141 Swap back %o7/%i7 in register naming.
142
0e9197f5
IS
1432011-06-25 Iain Sandoe <iains@gcc.gnu.org>
144
145 PR driver/49371
146 * config/darwin.c (darwin_override_options): Improve warning when
147 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
148 is given with fpie/fPIE.
149 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
150 * config/darwin9.h (PIE_SPEC): New.
53461199 151
605354f3 1522011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
153
154 * timevar.c (timevar_print): Increase width for display of timevar
155 name.
156
f796c438
JJ
1572011-06-24 Jakub Jelinek <jakub@redhat.com>
158
159 PR c++/46400
160 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
161 instead of TYPE_CHAIN for chain_next for types.
162
a7289eaf
RH
1632011-06-24 Richard Henderson <rth@redhat.com>
164
165 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
166 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
167 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
168 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
169 (sparc_flat_expand_prologue): Emit individual instructions
170 instead of one of the above.
171
c4b9a87e
ER
1722011-06-24 Easwaran Raman <eraman@google.com>
173
174 PR rtl-optimization/49429
175 PR target/49454
176 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
177 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
178 used to copy y into x.
179 * calls.c (initialize_argument_information): Mark
180 an argument addressable if it is passed by invisible reference.
181 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
182 if it is passed by reference.
183
5ac6c59e
L
1842011-06-24 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR rtl-optimization/49504
187 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
188 subtraction of a pointer in Pmode if pointers extend unsigned.
189 (num_sign_bit_copies1): Likewise.
5ac6c59e 190
b807e627
MJ
1912011-06-24 Martin Jambor <mjambor@suse.cz>
192
193 PR tree-optimizations/49516
194 * tree-sra.c (sra_modify_assign): Choose the safe path for
195 aggregate copies if we also did scalar replacements.
196
9a1ea4b9
RR
1972011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
198
199 PR target/49335
200 * config/arm/predicates.md (add_operator): New.
201 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
202 in Thumb2.
203
949cfd0a
AK
2042011-06-24 Andi Kleen <ak@linux.intel.com>
205
206 * tree-sra.c (type_internals_preclude_sra_p): Add msg
207 parameter. Split up ifs and report reason in *msg.
208 (reject): Add.
209 (find_var_candiate): Add msg variable.
210 Split up ifs and report reason to reject.
211 (find_param_candidates): Add msg variable.
212 Pass msg to type_internals_preclude_sra_p.
213
49e9c661 2142011-06-23 Jeff Law <law@redhat.com>
ad3577df 215
b0c11403
JL
216 PR middle-end/48770
217 * reload.h (reload): Change to return a bool.
218 * ira.c (ira): If requested by reload, run a fast DCE pass after
219 reload has completed. Fix comment typo.
220 * reload1.c (need_dce): New file scoped static.
221 (reload): Set reload_completed here. Return whether or not a DCE
222 pass after reload is needed.
223 (delete_dead_insn): Set need_dce as needed.
224
ad3577df
JL
225 PR middle-end/49465
226 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
227 to detect threading through joiner block. If there was already
228 an edge to the new target, then do not change the PHI nodes.
229
7cf64710
JJ
2302011-06-23 Jakub Jelinek <jakub@redhat.com>
231
232 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
233 get_pointer_alignment to see if base isn't sufficiently aligned.
234
febb1302
JH
2352011-06-23 Jan Hubicka <jh@suse.cz>
236
237 PR tree-optimize/49373
238 * tree-pass.h (all_late_ipa_passes): Declare.
239 * cgraphunit.c (init_lowered_empty_function): Fix properties.
240 (cgraph_optimize): Execute late passes; remove unreachable funcions after
241 materialization.
242 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
243 * passes.c (all_late_ipa_passes): Declare.
244 (dump_passes, register_pass): Handle late ipa passes.
245 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
246 at beggining of all_passes.
247 (apply_ipa_transforms): New function.
248 (execute_one_pass): When doing simple ipa pass, apply all transforms.
249
4c77620d
JM
2502011-06-23 Joseph Myers <joseph@codesourcery.com>
251
252 * params.c: Include common/common-target.h. Don't include tm.h.
253 (lang_independent_params): Move from toplev.c.
254 (global_init_params): New.
255 * params.h (global_init_params): Declare.
256 * target.def (default_params): Move to common-target.def.
257 * toplev.c (lang_independent_options): Remove.
258 (lang_independent_params): Move to params.c.
259 (general_init): Use global_init_params.
260 * common/common-target.def (option_default_params): Move from
261 target.def.
262 * common/config/ia64/ia64-common.c: Include params.h.
263 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
264 from ia64.c.
265 * common/config/rs6000/rs6000-common.c: Include params.h.
266 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
267 from rs6000.c.
268 * common/config/sh/sh-common.c: Include params.h.
269 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
270 from sh.c.
271 * common/config/spu/spu-common.c: Include params.h.
272 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
273 from spu.c.
274 * config/ia64/ia64.c (ia64_option_default_params,
275 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
276 * config/rs6000/rs6000.c (rs6000_option_default_params,
277 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
278 * config/sh/sh.c (sh_option_default_params,
279 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
280 * config/spu/spu.c (spu_option_default_params,
281 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
282 * Makefile.in (OBJS): Remove params.o.
283 (OBJS-libcommon-target): Add params.o.
284 (params.o, $(common_out_object_file)): Update dependencies.
285 * doc/tm.texi: Regenerate.
286
6aad1e38
AM
2872011-06-23 Alan Modra <amodra@gmail.com>
288
289 PR bootstrap/49383
290 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
291 invocation for 2011-06-09 changes.
292
4fb489e7
JJ
2932011-06-22 Jakub Jelinek <jakub@redhat.com>
294
fb79f500
JJ
295 PR libgomp/49490
296 * omp-low.c (expand_omp_for_static_nochunk): Only
297 use n ceil/ nthreads size for the first
298 n % nthreads threads in the team instead of
299 all threads except for the last few ones which
300 get less work or none at all.
301
4fb489e7
JJ
302 PR debug/49496
303 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
304 uses.
305
9c7c9f10
RG
3062011-06-22 Richard Guenther <rguenther@suse.de>
307
308 PR tree-optimization/49493
309 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
310 Refer to the alias target of variables.
311 (associate_varinfo_to_alias_1): Remove.
312 (ipa_pta_execute): Do not associate aliases with anything.
313 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
314 (cgraph_function_node): Likewise.
315 (cgraph_function_or_thunk_node): Likewise.
316 (varpool_variable_node): Likewise.
317
7cf13d1f
NS
3182011-06-22 Nathan Sidwell <nathan@codesourcery.com>
319
320 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
321 typo.
322 * config.gcc (arm*-*-linux*): Default to gnu tls.
323 (arm*-*-*): Add --with-tls option.
324 (all_defaults): Add 'tls'.
325
78a8eb4e
RH
3262011-06-22 Richard Henderson <rth@redhat.com>
327
328 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
329 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
330 (dwarf2out_frame_debug_cfa_window_save): Rename from
331 dwarf2out_window_save; make static.
332 * tree.h (dwarf2out_window_save): Don't declare.
333
334 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
335 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
336 (emit_save_register_window): Rename from gen_save_register_window;
337 emit the insn and add REG_CFA_* notes.
338 (sparc_expand_prologue): Update to match.
339 * config/sparc/sparc.md (save_register_window_1): Simplify from
340 save_register_window<P:mode>.
341
3b4c46d7
L
3422011-06-22 H.J. Lu <hongjiu.lu@intel.com>
343
344 PR target/49497
345 * config/i386/i386.md (*lea_general_2): Always allow SImode.
346 (*lea_general_2_zext): Likewise.
347 (imul to lea peepholes): Use const359_operand and check
348 TARGET_PARTIAL_REG_STALL.
349
350 * config/i386/predicates.md (const359_operand): New.
351
4399cf59
MM
3522011-06-22 Michael Matz <matz@suse.de>
353
354 * cgraphunit.c (assemble_thunk): Use correct return type.
355
31a0c825
DP
3562011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
357 Dmitry Melnik <dm@ispras.ru>
358
359 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
360 (neon_output_shift_immediate): Ditto.
361 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
362 prototype.
363 (neon_output_shift_immediate): Ditto.
364 * config/arm/neon.md (vashl<mode>3): Modified constraint.
365 (vashr<mode>3_imm): New insn pattern.
366 (vlshr<mode>3_imm): Ditto.
367 (vashr<mode>3): Modified constraint.
368 (vlshr<mode>3): Ditto.
369 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
370 predicate.
371 (imm_for_neon_rshift_operand): Ditto.
372 (imm_lshift_or_reg_neon): Ditto.
373 (imm_rshift_or_reg_neon): Ditto.
374
375 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
376
ddb555ed
JJ
3772011-06-22 Jakub Jelinek <jakub@redhat.com>
378
36dc1a88
JJ
379 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
380 builtin calls even if likelyvalue is not CONSTANT.
381 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
382 Return get_value_for_expr of first operand
383 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
384 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
385 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
386 their non-checking counterparts.
387 (call_may_clobber_ref_p_1): Likewise.
388 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
389 like their non-checking counterparts.
390 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
391 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
392 like their non-checking counterparts.
393 (find_func_clobbers): Likewise.
394 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
395 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
396
41cd4957
JJ
397 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
398 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
399 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
400 of base type reference as argument.
401 (resolve_addr_in_expr): Likewise. Fix keep computation.
402 (convert_descriptor_to_signed): Renamed to...
403 (convert_descriptor_to_mode): ... this. For wider types convert
404 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
405 untyped.
406 (typed_binop): New function.
407 (scompare_loc_descriptor, ucompare_loc_descriptor,
408 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
409 default to unsigned type instead of signed.
410
ddb555ed
JJ
411 PR debug/47858
412 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
413 (gimple_build_debug_source_bind_stat): New prototype.
414 (gimple_build_debug_source_bind): Define.
415 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
416 gimple_debug_source_bind_get_value,
417 gimple_debug_source_bind_get_value_ptr,
418 gimple_debug_source_bind_set_var,
419 gimple_debug_source_bind_set_value): New inlines.
420 * gimple.c (gimple_build_debug_source_bind_stat): New function.
421 * gimple-pretty-print.c (dump_gimple_debug): Handle
422 GIMPLE_DEBUG_SOURCE_BIND.
423 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
424 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
425 * tree-parloops.c (eliminate_local_variables,
426 separate_decls_in_region): Likewise.
427 (separate_decls_in_region_debug): Renamed from
428 separate_decls_in_region_debug_bind. Handle
429 gimple_debug_source_bind_p.
430 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
431 prototypes.
432 (DECL_HAS_DEBUG_ARGS_P): Define.
433 (struct tree_function_decl): Add has_debug_args_flag field.
434 * tree.c (debug_args_for_decl): New variable.
435 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
436 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
437 (rewrite_debug_stmt_uses): New function.
438 (rewrite_stmt): Use it to rewrite debug stmt uses.
439 * rtl.def (DEBUG_PARAMETER_REF): New.
440 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
441 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
442 DEBUG_PARAMETER_REF.
443 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
444 * print-rtl.c (print_rtx): Likewise.
445 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
446 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
447 debug stmts in the first bb.
448 * tree-inline.c (remap_ssa_name): If remapping default def
449 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
450 a source bind debug stmt.
451 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
452 (maybe_move_debug_stmts_to_successors): Likewise.
453 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
454 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
455 debug args vector from old_decl to new_decl.
456 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
457 or modified parameters, add debug bind stmts before call
458 setting DEBUG_EXPR_DECL which is remembered in debug args
459 vector.
460 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
461 on DECL_DEBUG_EXPRs from debug args vector.
462 (expand_debug_source_expr): New function.
463 (expand_debug_locations): Use it for source bind insns.
464 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
465 * var-tracking.c (prepare_call_arguments): Add debug args
466 to call_arguments if any.
467 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
468 output_loc_operands, output_loc_operands_raw,
469 resolve_addr_in_expr, compare_loc_operands): Handle
470 DW_OP_GNU_parameter_ref.
471 (get_ref_die_offset, parameter_ref_descriptor): New functions.
472 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
473 (gen_subprogram_die): Handle parameters identified by
474 DEBUG_PARAMETER_REF.
475
ccdc2164
NS
4762011-06-22 Nathan Sidwell <nathan@codesourcery.com>
477
478 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
479 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
480 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
481 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
482 (arm_tls_descseq_addr): New.
483 (legitimize_tls_address): Add tlsdesc support.
484 (arm_cannot_copy_insn_p): Check for tlscall.
485 (arm_emit_tls_decoration): Likewise.
486 * config/arm/arm.h (TARGET_GNU2_TLS): New.
487 (OPTION_DEFAULT_SPECS): Add with-tls support.
488 * config/arm/arm.md (R1_REGNUM): Define.
489 (tlscall): New.
490 * config/arm/arm.opt (tls_type): New enumeration type and values.
491 (mtls-dialect): New switch.
492 * config/arm/arm-opts.h (enum tls_type): New.
493
70e41a6a
NP
4942011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
495
496 * attribs.c (register_attribute): Added assert to check that all
497 attribute specs are registered with a name that is not empty and
498 does not start with '_'.
499 (decl_attributes): Avoid the lookup of the "naked" attribute spec
500 if the function has no attributes.
501 * tree.c (is_attribute_with_length_p): Removed.
502 (is_attribute_p): Removed.
503 (private_is_attribute_p): New.
504 (private_lookup_attribute): New.
505 (lookup_attribute): Removed.
506 (lookup_ident_attribute): New.
507 (remove_attribute): Require the first argument to be in the form
508 'text', not '__text__'. Updated asserts.
509 (merge_attributes): Use lookup_ident_attributes instead of
510 lookup_attribute.
511 (merge_dllimport_decl_attributes): Use remove_attribute.
512 (attribute_list_contained): Likewise.
513 (attribute_list_equal): Immediately return 1 if the arguments are
514 identical pointers.
515 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
516 'int'. Require the first argument to be in the form 'text', not
517 '__text__'. Require the second argument to be an identifier.
518 (lookup_attribute): Made inline. Require the first argument to be
519 in the form 'text', not '__text__'.
520 (private_is_attribute_p, private_lookup_attribute): New.
521 Updated comments.
522
e0a8ecf2
AM
5232011-06-21 Andrew MacLeod <amacleod@redhat.com>
524
525 * builtins.c: Add sync_ or SYNC__ to builtin names.
526 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
527 * omp-low.c: Add sync_ or SYNC__ to builtin names.
528
663827d3 5292011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 530
663827d3
GJL
531 PR target/33049
532 * config/avr/avr.md (extzv): New expander.
533 (*extzv): New insn.
534 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
535 * config/avr/constraints.md (C04): New constraint.
536 * doc/md.texi (Machine Constraints): Document it.
537
146aef0b
JJ
5382011-06-21 Jakub Jelinek <jakub@redhat.com>
539
540 PR middle-end/49489
541 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
542 unsignedp argument instead of 1 for clrsb_optab.
543 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
544 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
545 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
546 * optabs.c (widen_leading): Call widen_operand and expand_unop
547 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 548 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 549
c0503294
GJL
5502011-06-21 Georg-Johann Lay <avr@gjlay.de>
551
552 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
553
3801c801
BS
5542011-06-21 Bernd Schmidt <bernds@codesourcery.com>
555
0bddee8e
BS
556 * gensupport.c (add_define_attr): New static function.
557 (is_predicable): Allow multi-alternative lists for the "predicable"
558 attribute.
559 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
560 (process_one_cond_exec): Call alter_attrs_for_insn.
561 * doc/md.texi (Defining Attributes): Mention some standard names.
562 (Conditional Execution): Update documentation for "predicable".
563
3801c801
BS
564 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
565 __builtin_clrsbll): Document.
566 * doc/rtl.texi (clrsb): New entry.
567 * optabs.c (widen_leading): Renamed from widen_clz. New argument
568 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
569 (expand_unop): Handle clrsb_optab.
570 (init_optabs): Initialize it.
571 * optabs.h (enum optab_index): New entry OTI_clrsb.
572 (clrsb_optab): Define.
573 * genopinit.c (optabs): Add an entry for it.
574 * builtins.c (expand_builtin): Handle clrsb builtin functions.
575 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
576 BUILT_IN_CLRSBLL): New.
577 * rtl.def (CLRSB): New code.
578 * dwarf2out.c (mem_loc_descriptor): Handle it.
579 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
580 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
581 and popcount.
582 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
583 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
584 (__ctzDI2): Move declaration.
585 * config/bfin/bfin.md (clrsbsi2): New expander.
586 (signbitssi2): Use the CLRSB rtx.
587 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
588 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
589
55f01229
RG
5902011-06-21 Richard Guenther <rguenther@suse.de>
591
637c11bd 592 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 593
5181cd6a
IR
5942011-06-21 Ira Rosen <ira.rosen@linaro.org>
595
596 PR tree-optimization/49478
597 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
598 with constant operand.
599
e4ee3d70
RG
6002011-06-21 Richard Guenther <rguenther@suse.de>
601
602 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 603
7b7ec6c5
RG
6042011-06-21 Richard Guenther <rguenther@suse.de>
605
606 PR tree-optimization/49483
607 * tree-vect-stmts.c (vectorizable_assignment): Also handle
608 VIEW_CONVERT_EXPR conversions.
609
1b916ca6
JM
6102011-06-21 Joseph Myers <joseph@codesourcery.com>
611
612 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
613 * config/avr/avr-tables.opt: New file (generated).
614 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
615 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
616 avr-mcus.def.
617 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
618 (avr_option_override): Don't process -mmcu= argument here. Set
619 avr_current_device using avr_mcu_index.
637c11bd 620 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
621 * config/avr/avr.opt (mmcu=): Use Enum.
622 * config/avr/t-avr (avr-devices.o): Update dependencies.
623 ($(srcdir)/config/avr/avr-tables.opt): New.
624 * target.def (help): Remove.
625 * doc/tm.texi.in (TARGET_HELP): Remove.
626 * doc/tm.texi: Regenerate.
627 * opts.c: Don't include target.h.
628 (common_handle_option): Don't call targetm.help.
629 * system.h (TARGET_HELP): Poison.
630 * Makefile.in (opts.o): Update dependencies.
631
7ecfa34f
RO
6322011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
633
634 * config/usegld.h: New file.
635 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
636 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 637 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
638 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
639 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
640 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
641 Define.
7ecfa34f
RO
642 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
643 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
644 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
645 (STACK_CHECK_STATIC_BUILTIN): Define.
646 * config/sol2.opt (compat-bsd): Remove.
647 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
648 * config/sol2-bi.h: New file.
649 * config/sol2-gld.h: Remove.
650 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
651 (NO_DBX_BNSYM_ENSYM): Remove.
652 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
653 (STACK_CHECK_STATIC_BUILTIN): Remove.
654 Test USE_GLD instead of TARGET_GNU_LD.
655 * config/i386/sol2-10.h: Rename to ...
656 * config/i386/sol2-bi.h .. this.
657 (SUBTARGET_EXTRA_SPECS): Redefine.
658 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
659 (MULTILIB_DEFAULTS): Remove.
660 (DEFAULT_ARCH32_P): Define.
661 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
662 (ARCH64_SUBDIR): Define.
663 Test USE_GLD instead of TARGET_GNU_LD.
664 (I386_EMULATION): Rename to ...
665 (ARCH32_EMULATION): ... this.
666 (X86_64_EMULATION): Rename to ...
667 (ARCH64_EMULATION): ... this.
668 (TARGET_LD_EMULATION): Remove.
669 (LINK_ARCH_SPEC): Remove.
670 * config/i386/sol2-gas.h: Remove.
671 * config/i386/t-sol2-10: Rename to ...
672 * config/i386/t-sol2-64: ... this.
673 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
674 (AS_SPARC64_FLAG): Define.
675 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
676 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
677 depending on TARGET_CPU_DEFAULT.
678 (CPP_CPU_SPEC): Redefine.
679 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
680 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
681 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
682 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
683 ASM_ARCH_DEFAULT_SPEC): Redefine.
684 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
685 LINK_ARCH_DEFAULT_SPEC.
686 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
687 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
688 (ARCH64_SUBDIR): Define.
689 (LINK_ARCH64_SPEC): Redefine.
690 (CC1_SPEC): Redefine.
691 (OPTION_DEFAULT_SPECS): Redefine.
692 (MULTILIB_DEFAULTS): Define.
693 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
694 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
695 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
696 (NO_DBX_BNSYM_ENSYM): Remove.
697 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
698 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
699 (TARGET_ASM_NAMED_SECTION): Likewise.
700 (STACK_CHECK_STATIC_BUILTIN): Remove.
701 * config/sparc/sol2-bi.h: Remove.
702 * config/sparc/sol2-gas-bi.h: Remove.
703 * config/sparc/sol2-gas.h: Remove.
704 * config/sparc/sol2-gld-bi.h: Remove.
705 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
706 common parts ...
707 (*-*-solaris2*): ... here.
708
4b583c43 7092011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 710
4b583c43 711 PR other/43564
637c11bd
UB
712 * ipa-inline.c (can_inline_edge_p): Check
713 !DECL_DISREGARD_INLINE_LIMITS.
714
3bb556ad 7152011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 716
3bb556ad
CB
717 PR middle-end/49139
718 * cgraphunit.c (process_function_and_variable_attributes): warn when
719 always_inline functions that are not inline.
637c11bd
UB
720 * ipa-inline-transform.c (inline_transform): Always call
721 optimize_inline.
722 * tree-inline.c (tree_inlinable_function_p): Use error instead
723 of sorry.
3bb556ad 724 (expand_call_inline): Likewise.
637c11bd 725
f1ee724c
JJ
7262011-06-21 Jakub Jelinek <jakub@redhat.com>
727
728 * Makefile.in (dg_target_exps): Set.
729 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
730 instead of 7, try to divide it more evenly.
731
7322011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6
CF
733
734 PR i386/49089
735 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
736 (avx256_split_unaligned_store): New definition.
737 (ix86_option_override_internal): Enable avx256 unaligned load/store
738 splitting only when avx256_split_unaligned_load/store is set.
739
998c75b6
BS
7402011-06-20 Bernd Schmidt <bernds@codesourcery.com>
741
742 * regrename.c (scan_rtx_reg): Handle the case where we write to an
743 open chain in a smaller mode without failing the entire block.
744
83a8cbda
L
7452011-06-20 H.J. Lu <hongjiu.lu@intel.com>
746
747 PR middle-end/47725
748 * combine.c (cant_combine_insn_p): Don't check zero/sign
749 extended hard registers.
750
3a769784
AM
7512011-06-21 Alan Modra <amodra@gmail.com>
752
753 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
754 CONST high part large-toc address.
755 (rs6000_tls_referenced_p): Make static.
756 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
757
d1e32c4a
L
7582011-06-20 H.J. Lu <hongjiu.lu@intel.com>
759
760 PR middle-end/47725
761 * combine.c (cant_combine_insn_p): Check zero/sign extended
762 hard registers.
763
c2954af9
RR
7642011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
765
766 PR target/49385
767 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
768 one of the operands is a register.
769
a95015b6
KT
7702011-06-20 Kai Tietz <ktietz@redhat.com>
771
637c11bd
UB
772 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
773 operations in combination with binary and.
a95015b6 774
49a30d00
BS
7752011-06-20 Bernd Schmidt <bernds@codesourcery.com>
776
777 * regrename.c (do_replace): Don't update notes.
778
3bae1d98
AM
7792011-06-20 Alan Modra <amodra@gmail.com>
780
781 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
782 of toc-relative address in CONST.
783 (rs6000_delegitimize_address): Recognize changed address.
784 (rs6000_legitimize_reload_address): Likewise.
785 (rs6000_emit_move): Don't force these constants to memory.
786 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
787 toc-relative address in CONST.
788 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
789 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
790
10937b0c
L
7912011-06-18 H.J. Lu <hongjiu.lu@intel.com>
792
637c11bd 793 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
794 (count_trailing_zeros): Likewise.
795
0c587260
L
7962011-06-18 H.J. Lu <hongjiu.lu@intel.com>
797
798 PR other/49325
799 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
800 .init_array can be used with .ctors on targets.
801 * configure: Regenerated.
802
c020c92b
EB
8032011-06-18 Eric Botcazou <ebotcazou@adacore.com>
804
805 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
806 if the element type is volatile.
807
cd35bcf7
JH
8082011-06-18 Jan Hubicka <jh@suse.cz>
809
810 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
811 extra name aliases.
812 (lto_symtab_resolve_can_prevail_p): Likewise.
813 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
814 * cgraphbuild.c (record_reference): Remove extra body alias code.
815 (mark_load): Likewise.
816 (mark_store): Likewise.
817 * cgraph.h (varpool_node): Remove extra_name filed;
818 add alias_of and extraname_alias.
819 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
820 (varpool_alias_aliased_node): New inline function.
821 (varpool_variable_node): New function.
822 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
823 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
824 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
825 (input_varpool_node): Likewise.
826 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
827 (varpool_externally_visible_p): Remove extra body alias code.
828 (function_and_variable_visibility): Likewise.
829 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
830 (ipa_pta_execute): Use it.
831 * varpool.c (varpool_remove_node): Remove extra name alias code.
832 (varpool_mark_needed_node): Likewise.
833 (varpool_analyze_pending_decls): Analyze aliases.
834 (assemble_aliases): New functoin.
835 (varpool_assemble_decl): Use it.
836 (varpool_create_variable_alias): New function.
837 (varpool_extra_name_alias): Rewrite.
838 (varpool_for_node_and_aliases): New function.
839
c96b4102
JJ
8402011-06-18 Jakub Jelinek <jakub@redhat.com>
841
842 PR target/49411
843 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
844 last_arg_constant and last argument doesn't match its predicate,
845 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
846 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
847 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
848 spelling of error message.
849 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
850 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
851 const_0_to_255_operand instead of const_int_operand.
852
853 Revert:
854 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
855
856 * config/i386/sse.md (blendbits): Remove mode attribute.
857 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
858 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
859 Check integer value of operand 3 in insn constraint.
860
9a2091cd
HPN
8612011-06-17 Hans-Peter Nilsson <hp@axis.com>
862
863 PR rtl-optimization/48542
864 * reload.c (find_equiv_reg): Stop looking when finding a
865 setjmp-type call.
866 * reload1.c (reload_as_needed): Invalidate all reload
867 registers when crossing a setjmp-type call.
868
361b51c0
JL
8692011-06-16 Jeff Law <law@redhat.com>
870
871 * tree-ssa-threadupdate.c (struct redirection_data): New field
872 intermediate_edge.
873 (THREAD_TARGET2): Define.
637c11bd 874 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
875 (lookup_redirection_data): Drop useless argument. Extract the
876 outgoing_edge and intermediate edge from E. Callers updated.
877 (copy_phi_args, update_destination_phis): New functions.
878 (fix_duplicate_block_edges): Likewise.
879 (create_edge_and_update_destination_phis): Duplicate all the edges
880 hung off e->aux. Use copy_phi_args.
881 (create_duplicates): Use fix_duplicate_block_edges.
882 (fixup_template_block): Likewise.
883 (redirect_edges): If necessary, redirect the joiner block's incoming
884 edge to the duplicate of the joiner block.
885 (thread_block): Don't muck up loops when threading through a joiner
886 block.
637c11bd 887 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
888 (mark_threaded_blocks, register_jump_thread): Likewise.
889 * tree-flow.h (register_jump_thread): Add new argument. Callers
890 updated.
891 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
892 (thread_across_edge): Handle threading through a joiner block.
637c11bd 893
ee460e75
MJ
8942011-06-16 Martin Jambor <mjambor@suse.cz>
895
896 PR tree-optimization/49343
897 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
898 calculate offset, provide 2nd operand for the new COMPONENT_REF.
899
a285ba2e
IS
9002011-06-16 Iain Sandoe <iains@gcc.gnu.org>
901
902 * config/darwin-protos.h (machopic_select_rtx_section): Move to
903 inside RTX_CODE ifdef.
904
0703f020
TV
9052011-06-16 Tom de Vries <tom@codesourcery.com>
906
907 PR target/45098
637c11bd
UB
908 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
909 Disallow NULL pointer for pointer arithmetic.
0703f020 910
900c07da
RR
9112011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
912
913 PR target/49398
914 Revert.
915 2011-06-10 Wei Guozhi <carrot@google.com>
916
917 PR target/45335
918 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
919 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
920 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
921 related peephole2.
922 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
923 related peephole2.
924 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
925 (arm_legitimate_ldrd_p): New prototype.
926 (arm_output_ldrd): New prototype.
927 * config/arm/arm.c (arm_check_ldrd_operands): New function.
928 (arm_legitimate_ldrd_p): New function.
929 (arm_output_ldrd): New function.
930
c020c92b 9312011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
932
933 PR middle-end/46500
934 * doc/tm.texi.in: Update Copyright date.
935 * doc/tm.texi: Regenerate.
936 * targhooks.c (default_setup_incoming_varargs): Replace
937 CUMULATIVE_ARGS* argument type with cumulative_args_t.
938 (default_pretend_outgoing_varargs_named): Likewise.
939 (hook_pass_by_reference_must_pass_in_stack): Likewise.
940 (hook_callee_copies_named): Likewise.
941 (default_function_arg_advance): Likewise.
942 (default_function_arg): Likewise.
943 (default_function_incoming_arg): Likewise.
944 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
945 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
946 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
947 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
948 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
949 * targhooks.h (default_setup_incoming_varargs): Likewise.
950 (default_pretend_outgoing_varargs_named): Likewise.
951 (hook_pass_by_reference_must_pass_in_stack): Likewise.
952 (hook_callee_copies_named): Likewise.
953 (default_function_arg_advance): Likewise.
954 (default_function_arg): Likewise.
955 (default_function_incoming_arg): Likewise.
956 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
957 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
958 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
959 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
960 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
961 * target.def (pass_by_reference): Likewise.
962 (setup_incoming_varargs, strict_argument_naming): Likewise.
963 (pretend_outgoing_varargs_named, callee_copies): Likewise.
964 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
965 (function_incoming_arg): Likewise.
966 * target.h: Don't include "tm.h" .
967 (cumulative_args_t): New typedef.
968 [GCC_TM_H] (get_cumulative_args): New static inline function.
969 [GCC_TM_H] (pack_cumulative_args): Likewise.
970 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
971 argument type with cumulative_args_t.
972 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
973 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
974 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
975 (frv_arg_partial_bytes, frv_function_arg): Likewise.
976 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
977 (frv_function_arg_1): Likewise.
978 * config/s390/s390.c (s390_pass_by_reference): Likewise.
979 (s390_function_arg_advance, s390_function_arg): Likewise.
980 * config/m32c/m32c.c (m32c_function_arg): Likewise.
981 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
982 (m32c_strict_argument_naming): Likewise.
983 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
984 (spu_function_arg_advance): Likewise.
985 (spu_setup_incoming_varargs): Likewise. Make static.
986 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
987 Remove prototype.
988 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
989 CUMULATIVE_ARGS* argument type with cumulative_args_t.
990 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
991 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
992 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
993 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
994 (mep_pass_by_reference, mep_function_arg): Likewise.
995 (mep_function_arg_advance): Likewise.
996 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
997 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
998 (m32r_function_arg, m32r_function_arg_advance): Likewise.
999 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1000 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1001 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1002 (ix86_setup_incoming_varargs): Likewise.
1003 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1004 (sh_strict_argument_naming): Likewise.
1005 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1006 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1007 (sh_function_arg_advance, sh_function_arg): Likewise.
1008 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1009 (pdp11_function_arg_advance): Likewise.
1010 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1011 Likewise.
1012 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1013 * config/avr/avr.c (avr_function_arg): Likewise.
1014 (avr_function_arg_advance): Likewise.
1015 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1016 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1017 (xtensa_function_arg_1): Likewise.
637c11bd
UB
1018 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1019 Likewise.
d5cc9181
JR
1020 (xstormy16_function_arg): Likewise.
1021 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1022 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1023 (fr30_function_arg_advance): Likewise.
1024 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1025 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1026 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1027 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1028 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1029 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1030 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1031 (cris_function_arg, cris_function_incoming_arg): Likewise.
1032 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1033 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1034 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1035 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1036 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1037 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1038 (mn10300_arg_partial_bytes): Likewise.
1039 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1040 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1041 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1042 (ia64_function_arg_1): Likewise.
1043 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1044 (m68k_function_arg): Likewise.
1045 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1046 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1047 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1048 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1049 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1050 (picochip_arg_advance): Likewise.
1051 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1052 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1053 (mcore_function_arg_advance): Likewise.
1054 * config/score/score.c (score_pass_by_reference): Likewise.
1055 (score_function_arg_advance): Likewise.
1056 (score_arg_partial_bytes): Likewise. Make static.
1057 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1058 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1059 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1060 (arm_function_arg, arm_function_arg_advance): Likewise.
1061 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1062 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1063 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1064 (pa_function_arg): Likewise.
1065 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1066 (mips_function_arg, mips_function_arg_advance): Likewise.
1067 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1068 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1069 * config/vax/vax.c (vax_function_arg): Likewise.
1070 (vax_function_arg_advance): Likewise.
1071 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1072 (h8300_function_arg_advance): Likewise.
1073 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1074 (v850_strict_argument_naming, v850_function_arg): Likewise.
1075 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1076 (v850_setup_incoming_varargs): Likewise.
1077 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1078 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1079 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1080 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1081 with const void *.
1082 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1083 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1084 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1085 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1086 * calls.c (emit_call_1): Change type of args_so_far to
1087 cumulative_args_t. Changed all callers.
1088 (initialize_argument_information): Likewise.
1089 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1090 * dse.c (get_call_args): Likewise.
1091 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1092 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1093 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1094 New member args_so_far_v. Changed all users.
1095 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1096 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1097 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1098 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1099 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
1100 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1101 Likewise.
d5cc9181
JR
1102 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1103 m32r_pass_by_reference.
1104
51312233
IR
11052011-06-16 Ira Rosen <ira.rosen@linaro.org>
1106
1107 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1108 argument to be a VEC of statements.
637c11bd
UB
1109 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1110 assert that pattern statements have to have their vector type set.
51312233
IR
1111 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1112 Change the first argument to be a VEC of statements. Update
1113 documentation.
1114 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1115 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
1116 (vect_recog_widen_mult_pattern): Change the first argument to be a
1117 VEC of statements. Update documentation. Check that the constant is
1118 INTEGER_CST. Support multiplication by a constant that fits an
1119 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
1120 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1121 call. Handle additional pattern statements if necessary.
1122
fd4df33d
NC
11232011-06-16 Nick Clifton <nickc@redhat.com>
1124
1125 PR target/49427
1126 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1127 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1128 md_file, extra_modes, out_file and extra_options are these are all
1129 deduced from cpu_type.
1130
fbd05da0
GJL
11312011-06-16 Georg-Johann Lay <avr@gjlay.de>
1132
1133 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1134 truncation mask to 63.
1135
0ad8bb3b
GJL
11362011-06-16 Georg-Johann Lay <avr@gjlay.de>
1137
1138 PR target/49313
1139 PR target/29524
1140 * longlong.h: Add AVR support:
1141 (count_leading_zeros): New macro.
1142 (count_trailing_zeros): New macro.
1143 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
1144 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1145 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1146 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1147 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
1148 (LIB2FUNCS_EXCLUDE): Add _clz.
1149 * config/avr/libgcc.S (XCALL): Move up in file.
1150 (XJMP): New C Macro.
1151 (DEFUN): New asm macro.
1152 (ENDF): New asm macro.
1153 (__ffssi2): New function.
1154 (__ffshi2): New function.
1155 (__loop_ffsqi2): New function.
1156 (__ctzsi2): New function.
1157 (__ctzhi2): New function.
1158 (__clzdi2): New function.
1159 (__clzsi2): New function.
1160 (__clzhi2): New function.
1161 (__paritydi2): New function.
1162 (__paritysi2): New function.
1163 (__parityhi2): New function.
59c1e10b 1164 (__parityqi2): New function.
0ad8bb3b
GJL
1165 (__popcounthi2): New function.
1166 (__popcountsi2): New function.
1167 (__popcountdi2): New function.
1168 (__popcountqi2): New function.
1169 (__bswapsi2): New function.
1170 (__bswapdi2): New function.
1171 (__ashldi3): New function.
1172 (__ashrdi3): New function.
1173 (__lshrdi3): New function.
1174 Fix suspicous lines.
1175
12430896
RG
11762011-06-16 Richard Guenther <rguenther@suse.de>
1177
1178 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1179 the same as x != 0.
637c11bd
UB
1180 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1181 to (bool) X & 1.
12430896
RG
1182 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1183 equality compares against zero for the lower bit.
1184
09302442
JJ
11852011-06-16 Jakub Jelinek <jakub@redhat.com>
1186
1187 PR tree-optimization/49419
1188 * tree-vrp.c (execute_vrp): Call init_range_assertions
1189 before estimate_numbers_of_iterations, call
1190 free_number_of_iterations_estimates before calling
1191 remove_range_assertions.
1192
81c41166
RE
11932011-06-16 Revital Eres <revital.eres@linaro.org>
1194
1195 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1196 (struct partial_schedule): Add rows_length field.
1197 (verify_partial_schedule): Check rows_length.
1198 (ps_insert_empty_row): Handle rows_length.
1199 (create_partial_schedule): Likewise.
1200 (free_partial_schedule): Likewise.
1201 (reset_partial_schedule): Likewise.
1202 (create_ps_insn): Remove rest_count argument.
1203 (remove_node_from_ps): Update rows_length.
1204 (add_node_to_ps): Update rows_length and call create_ps_insn
1205 without passing row_rest_count.
1206 (rotate_partial_schedule): Update rows_length.
1207
d24dc7b3
RE
12082011-06-16 Revital Eres <revital.eres@linaro.org>
1209
1210 * ddg.c (add_intra_loop_mem_dep): New function.
1211 (build_intra_loop_deps): Call it.
1212
361b51c0 12132011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
1214
1215 * df-problems.c (df_lr_local_compute): Manually CSE
1216 PIC_OFFSET_TABLE_REGNUM.
1217 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1218 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1219
85ce9375
JH
12202011-06-13 Jan Hubicka <jh@suse.cz>
1221
1222 * cgraphunit.c (handle_alias_pairs): New function.
1223 (cgraph_finalize_compilation_unit): Use it.
1224 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1225 as externally visible.
1226
a577c405
RG
12272011-06-15 Richard Guenther <rguenther@suse.de>
1228
1229 * expr.c (expand_expr_real_2): Reduce all integral types to
1230 bitfield precision.
1231 (expand_expr_real_1): Likewise.
1232
93536c97
MJ
12332011-06-15 Martin Jambor <mjambor@suse.cz>
1234
1235 PR tree-optimization/48613
1236 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1237 ipa_node_params_vector is NULL.
fd4df33d 1238
ba45cfc4
JJ
12392011-06-15 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR debug/49382
1242 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
1243 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1244 location in the list, even if it is modified before first real insn.
ba45cfc4 1245 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 1246 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 1247
6fc5966f
AM
12482011-06-15 Alexander Monakov <amonakov@ispras.ru>
1249
1250 PR target/49349
1251 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1252 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1253 above a fence. Update comments.
1254 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1255 placed just above it. Do not allow NULL place_to_insert.
1256
9d5e7640
IR
12572011-06-15 Ira Rosen <ira.rosen@linaro.org>
1258
1259 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1260 (slpeel_tree_peel_loop_to_edge): Don't call
1261 remove_dead_stmts_from_loop.
1262 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1263 remove irrelevant pattern statements. For irrelevant statements
1264 check if it is the last statement of a detected pattern, use
1265 corresponding pattern statement instead.
1266 (destroy_loop_vec_info): No need to remove pattern statements,
1267 only free stmt_vec_info.
1268 (vect_transform_loop): For irrelevant statements check if it is
1269 the last statement of a detected pattern, use corresponding
1270 pattern statement instead.
1271 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1272 pattern statements. Set basic block for the new statement.
1273 (vect_pattern_recog): Update documentation.
1274 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1275 operands of pattern statements.
1276 (vectorizable_call): Fix printing. In case of a pattern statement
1277 use the lhs of the original statement when creating a dummy
1278 statement to replace the original call.
1279 (vect_analyze_stmt): For irrelevant statements check if it is
1280 the last statement of a detected pattern, use corresponding
1281 pattern statement instead.
1282 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1283 statements use gsi of the original statement.
1284
677f3fa8
JM
12852011-06-14 Joseph Myers <joseph@codesourcery.com>
1286
1287 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1288 common/common-target-def.h.
1289 * target.def (default_target_flags, handle_option,
1290 supports_split_stack, optimization_table, init_struct,
1291 except_unwind_info, unwind_tables_default, have_named_sections):
1292 Move to common/common-target.def.
1293 * target.h (enum opt_levels, struct default_options): Move to
1294 common/common-target.h.
1295 * targhooks.c (default_except_unwind_info,
1296 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1297 default_target_handle_option, empty_optimization_table): Move to
1298 common/common-targhooks.c.
1299 * targhooks.h (default_except_unwind_info,
1300 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1301 default_target_handle_option, empty_optimization_table): Move to
1302 common/common-targhooks.h.
1303 * common/common-target-def.h: Include common/common-targhooks.h.
1304 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1305 defined.
1306 * common/common-target.def (handle_option, option_init_struct,
1307 option_optimization_table, default_target_flags,
1308 except_unwind_info, supports_split_stack, unwind_tables_default,
1309 have_named_sections): Move from target.def.
1310 (HOOK_PREFIX): Undefine at end of file.
1311 * common/common-target.h: Include input.h.
1312 (enum opt_levels, struct default_options): Move from target.h.
1313 * common/common-targhooks.c, common/common-targhooks.h: New.
1314 * config.gcc (target_has_targetm_common): Default to yes.
1315 (moxie*): Set target_has_targetm_common=no.
1316 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1317 * doc/tm.texi: Regenerate.
1318 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1319 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1320 (GCC_OBJS): Remove vec.o.
1321 (OBJS): Remove hooks.o and vec.o.
1322 (OBJS-libcommon-target): Add vec.o, hooks.o and
1323 common/common-targhooks.o.
1324 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1325 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1326 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1327 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1328 Update dependencies.
1329 (common/common-targhooks.o): New.
637c11bd 1330 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
1331 * common/config/pa/pa-common.c: Include more headers. Take
1332 copyright dates from pa.c.
1333 (pa_option_optimization_table, pa_handle_option,
1334 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1335 TARGET_HANDLE_OPTION): Move from pa.c.
1336 * common/config/alpha/alpha-common.c,
1337 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1338 common/config/bfin/bfin-common.c,
1339 common/config/cris/cris-common.c,
1340 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1341 common/config/h8300/h8300-common.c,
1342 common/config/i386/i386-common.c,
1343 common/config/ia64/ia64-common.c,
1344 common/config/iq2000/iq2000-common.c,
1345 common/config/lm32/lm32-common.c,
1346 common/config/m32c/m32c-common.c,
1347 common/config/m32r/m32r-common.c,
1348 common/config/m68k/m68k-common.c,
1349 common/config/mcore/mcore-common.c,
1350 common/config/mep/mep-common.c,
1351 common/config/microblaze/microblaze-common.c,
1352 common/config/mips/mips-common.c,
1353 common/config/mmix/mmix-common.c,
1354 common/config/mn10300/mn10300-common.c,
1355 common/config/pdp11/pdp11-common.c,
1356 common/config/picochip/picochip-common.c,
1357 common/config/rs6000/rs6000-common.c,
1358 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1359 common/config/score/score-common.c, common/config/sh/sh-common.c,
1360 common/config/sparc/sparc-common.c,
1361 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1362 common/config/vax/vax-common.c,
1363 common/config/xstormy16/xstormy16-common.c,
1364 common/config/xtensa/xtensa-common.c: New.
1365 * config/alpha/alpha.c: Include common/common-target.h.
1366 (alpha_option_optimization_table, alpha_handle_option,
1367 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1368 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1369 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1370 * config/arm/arm.c (arm_option_optimization_table,
1371 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1372 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1373 arm-common.c.
1374 * config/avr/avr.c (avr_option_optimization_table,
1375 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1376 to avr-common.c.
1377 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1378 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1379 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1380 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1381 * config/cris/cris.c (cris_option_optimization_table,
1382 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1383 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1384 cris-common.c.
1385 * config/fr30/fr30.c (fr30_option_optimization_table,
1386 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1387 to fr30-common.c.
1388 * config/frv/frv.c (frv_option_optimization_table,
1389 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1390 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1391 * config/h8300/h8300.c (h8300_option_optimization_table,
1392 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1393 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1394 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1395 * config/i386/i386.c: Include common/common-target.h.
1396 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1397 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1398 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1399 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1400 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1401 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1402 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1403 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1404 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1405 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1406 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1407 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1408 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1409 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1410 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1411 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1412 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1413 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1414 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1415 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1416 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1417 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1418 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1419 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1420 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1421 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1422 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1423 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1424 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1425 ix86_option_optimization_table, ix86_option_init_struct,
1426 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1427 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1428 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1429 i386-common.c.
1430 * config/i386/t-i386 (i386.o): Update dependencies.
1431 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1432 * config/ia64/ia64.c (ia64_option_optimization_table,
1433 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1434 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1435 ia64_handle_option): Move to ia64-common.c.
1436 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1437 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1438 * config/lm32/lm32.c (lm32_option_optimization_table,
1439 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1440 to lm32-common.c.
1441 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1442 m32c-common.c.
1443 * config/m32r/m32r.c (m32r_option_optimization_table,
1444 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1445 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1446 m32r_handle_option): Move to m32r-common.c.
1447 (m32r_memory_move_cost): Remove comment referring to
1448 TARGET_HANDLE_OPTION.
1449 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1450 Move to m68k-common.c.
1451 * config/mcore/mcore.c (mcore_option_optimization_table,
1452 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1453 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1454 * config/mep/mep.c (mep_option_optimization_table,
1455 mep_handle_option, TARGET_HANDLE_OPTION,
1456 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1457 Move to mep-common.c.
1458 * config/microblaze/microblaze.c
1459 (microblaze_option_optimization_table,
1460 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1461 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1462 * config/mips/mips.c (mips_handle_option,
1463 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1464 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1465 mips-common.c.
1466 * config/mmix/mmix.c (mmix_option_optimization_table,
1467 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1468 Move to mmix-common.c.
1469 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1470 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1471 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1472 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1473 * config/pa/pa.c: Include common/common-target.h.
1474 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1475 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1476 pa_handle_option): Move to pa-common.c.
1477 (pa_option_override): Use targetm_common.except_unwind_info.
1478 (pa_asm_output_mi_thunk, pa_function_section): Use
1479 targetm_common.have_named_sections.
1480 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1481 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1482 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1483 pdp11_handle_option, pdp11_option_init_struct): Move to
1484 pdp11-common.c.
1485 * config/picochip/picochip.c (picochip_option_optimization_table,
1486 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1487 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1488 * config/rs6000/rs6000.c: Include common/common-target.h.
1489 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1490 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1491 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1492 rs6000_handle_option): Move to rs6000-common.c.
1493 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1494 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1495 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1496 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1497 * config/s390/s390.c (processor_flags_table,
1498 s390_option_optimization_table, s390_option_init_struct,
1499 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1500 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1501 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1502 * config/s390/s390.h (processor_flags_table): Declare.
1503 * config/score/score.c (score_option_optimization_table,
1504 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1505 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1506 score_handle_option): Move to score-common.c.
1507 * config/sh/sh.c (sh_option_optimization_table,
1508 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1509 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1510 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1511 * config/sparc/sparc.c: Include common/common-target.h.
1512 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1513 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1514 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1515 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1516 spu_option_init_struct): Move to spu-common.c.
1517 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1518 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1519 * config/v850/v850.c (small_memory_physical_max,
1520 v850_handle_memory_optionn v850_handle_option,
1521 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1522 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1523 v850-common.c.
637c11bd 1524 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
1525 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1526 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1527 Move to xtensa-common.c.
1528 * cfglayout.c: Include common/common-target.h.
1529 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1530 * cfgrtl.c: Include common/common-target.h.
1531 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1532 targetm_common.have_named_sections.
1533 * dbxout.c: Include common/common-target.h.
1534 (dbxout_function_end): Use targetm_common.have_named_sections.
1535 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1536 targetm_common.except_unwind_info.
1537 * dwarf2out.c: Include common/common-target.h.
1538 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1539 dwarf2out_begin_prologue, dwarf2out_frame_init,
1540 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1541 targetm_common.except_unwind_info.
1542 * except.c: Include common/common-target.h.
1543 (init_eh, finish_eh_generation,
1544 output_one_function_exception_table): Use
1545 targetm_common.except_unwind_info.
637c11bd 1546 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
1547 * explow.c: Include common/common-target.h.
1548 * expr.c: Include common/common-target.h.
637c11bd 1549 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
1550 * function.c: Include common/common-target.h.
1551 (expand_function_end): Use targetm_common.except_unwind_info.
1552 * haifa-sched.c: Include common/common-target.h.
637c11bd 1553 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
1554 * lto-opts.c: Include common/common-target.h instead of target.h.
1555 (lto_reissue_options): Use targetm_common.handle_option.
1556 * opts.c: Include common/common-target.h.
1557 (target_handle_option): Use targetm_common.handle_option.
1558 (init_options_struct): Update comment referring to
1559 targetm.target_option.optimization. Use
1560 targetm_common.default_target_flags,
1561 targetm_common.unwind_tables_default and
1562 targetm_common.option_init_struct.
1563 (default_options_optimization): Use
1564 targetm_common.option_optimization_table.
1565 (finish_options): Use targetm_common.except_unwind_info,
1566 targetm_common.unwind_tables_default,
1567 targetm_common.have_named_sections and
1568 targetm_common.supports_split_stack.
1569 * toplev.c: Include common/common-target.h.
1570 (process_options): Use targetm_common.have_named_sections.
1571 * tree-tailcall.c: Include common/common-target.h.
637c11bd 1572 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 1573 * tree.c: Include common/common-target.h.
637c11bd 1574 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
1575 * varasm.c: Include common/common-target.h.
1576 (resolve_unique_section, hot_function_section,
1577 default_function_section): Use targetm_common.have_named_sections.
1578
d26c7090
ER
15792011-06-14 Easwaran Raman <eraman@google.com>
1580
1581 PR rtl-optimization/44194
1582 * dse.c: Include tree-flow.h
1583 (insn_info): Add new field non_frame_wild_read.
1584 (group_info): Add new fields escaped_n and escaped_p.
1585 (kill_on_calls): New variable.
1586 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1587 (dse_step0): Initialize kill_on_calls.
1588 (can_escape): New function.
1589 (set_usage_bits): Add additional parameter; record information
1590 about escaped locations.
637c11bd 1591 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
1592 (dse_step2_nospill): Set kill_on_calls based on
1593 group->escaped_n and group->escaped_n.
1594 (add_wild_read): Refactor into...
1595 (reset_active_stores): ... New function, and
1596 (free_read_records): ... New function.
1597 (add_non_frame_wild_read): New function.
1598 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 1599 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
1600 (dse_step5_nospill): Call scan_reads_nospill for instructions
1601 marked as non_frame_wild_read.
637c11bd 1602 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 1603
c49a6962
JM
16042011-06-14 Joseph Myers <joseph@codesourcery.com>
1605
1606 * common/common-target-def.h, common/common-target.def,
1607 common/common-target.h, common/config/default-common.c,
1608 common/config/pa/pa-common.c: New files.
1609 * Makefile.in (common_out_file, common_out_object_file,
1610 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1611 (OBJS-libcommon-target): Include $(common_out_object_file).
1612 (prefix.o): Update dependencies.
1613 ($(common_out_object_file), common/common-target-hooks-def.h,
1614 s-common-target-hooks-def-h): New.
1615 (s-tm-texi): Also check timestamp on common-target.def.
1616 (build/genhooks.o): Update dependencies.
1617 * config.gcc (common_out_file, target_has_targetm_common): Define.
1618 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1619 TARGET_ALWAYS_STRIP_DOTDOT.
1620 * configure.ac (common_out_object_file): Define.
1621 (common_out_file, common_out_object_file): Substitute.
1622 (common): Create directory.
1623 * configure: Regenerate.
1624 * doc/tm.texi.in (targetm_common): Document.
1625 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1626 * doc/tm.texi: Regenerate.
1627 * genhooks.c (hook_array): Also include common/common-target.def.
1628 * prefix.c (tm.h): Don't include.
1629 (common/common-target.h): Include.
1630 (ALWAYS_STRIP_DOTDOT): Don't define.
1631 (update_path): Use targetm_common.always_strip_dotdot instead of
1632 ALWAYS_STRIP_DOTDOT.
1633 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1634
22c5fa5f
DL
16352011-06-14 David Li <davidxl@google.com>
1636
1637 * passes.c (execute_function_todo): Remove TODO_dump_func.
1638 (execute_one_pass): Remove TODO_dump_func.
1639 (execute_function_dump): New function.
1640 * tree-vrp.c: Remove TODO_dump_func.
1641 * regrename.c: Remove TODO_dump_func.
1642 * fwprop.c: Remove TODO_dump_func.
1643 * tree-into-ssa.c: Remove TODO_dump_func.
1644 * tree-complex.c: Remove TODO_dump_func.
1645 * tracer.c: Remove TODO_dump_func.
1646 * tree-loop-distribution.c: Remove TODO_dump_func.
1647 * postreload-gcse.c: Remove TODO_dump_func.
1648 * postreload.c: Remove TODO_dump_func.
1649 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1650 * tree-tailcall.c: Remove TODO_dump_func.
1651 * ipa-cp.c: Remove TODO_dump_func.
1652 * final.c: Remove TODO_dump_func.
1653 * tree-emutls.c: Remove TODO_dump_func.
1654 * omp-low.c: Remove TODO_dump_func.
1655 * tree-ssa-dse.c: Remove TODO_dump_func.
1656 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1657 * auto-inc-dec.c: Remove TODO_dump_func.
1658 * reorg.c: Remove TODO_dump_func.
1659 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1660 * tree-ssa-ccp.c: Remove TODO_dump_func.
1661 * compare-elim.c: Remove TODO_dump_func.
1662 * mode-switching.c: Remove TODO_dump_func.
1663 * modulo-sched.c: Remove TODO_dump_func.
1664 * tree-call-cdce.c: Remove TODO_dump_func.
1665 * cse.c: Remove TODO_dump_func.
1666 * web.c: Remove TODO_dump_func.
1667 * tree-stdarg.c: Remove TODO_dump_func.
1668 * lto-streamer-out.c: Remove TODO_dump_func.
1669 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1670 * tree-ssa-dom.c: Remove TODO_dump_func.
1671 * tree-nrv.c: Remove TODO_dump_func.
1672 * loop-init.c: Remove TODO_dump_func.
1673 * gimple-low.c: Remove TODO_dump_func.
1674 * ipa-inline.c: Remove TODO_dump_func.
1675 * tree-ssa-sink.c: Remove TODO_dump_func.
1676 * jump.c: Remove TODO_dump_func.
1677 * ifcvt.c: Remove TODO_dump_func.
1678 * tree-ssa-loop.c: Remove TODO_dump_func.
1679 * recog.c: Remove TODO_dump_func.
1680 * dse.c: Remove TODO_dump_func.
1681 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1682 * matrix-reorg.c: Remove TODO_dump_func.
1683 * tree-eh.c: Remove TODO_dump_func.
1684 * regmove.c: Remove TODO_dump_func.
1685 * function.c: Remove TODO_dump_func.
1686 * tree-vectorizer.c: Remove TODO_dump_func.
1687 * ipa-split.c: Remove TODO_dump_func.
1688 * gcse.c: Remove TODO_dump_func.
1689 * tree-if-conv.c: Remove TODO_dump_func.
1690 * init-regs.c: Remove TODO_dump_func.
1691 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1692 * implicit-zee.c: Remove TODO_dump_func.
1693 * lower-subreg.c: Remove TODO_dump_func.
1694 * bt-load.c: Remove TODO_dump_func.
1695 * tree-dfa.c: Remove TODO_dump_func.
1696 * except.c: Remove TODO_dump_func.
1697 * emit-rtl.c: Remove TODO_dump_func.
1698 * store-motion.c: Remove TODO_dump_func.
1699 * cfgexpand.c: Remove TODO_dump_func.
1700 * tree-cfgcleanup.c: Remove TODO_dump_func.
1701 * cfgcleanup.c: Remove TODO_dump_func.
1702 * tree-ssa-pre.c: Remove TODO_dump_func.
1703 * tree-sra.c: Remove TODO_dump_func.
1704 * tree-mudflap.c: Remove TODO_dump_func.
1705 * tree-ssa-copy.c: Remove TODO_dump_func.
1706 * cfglayout.c: Remove TODO_dump_func.
1707 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1708 * tree-ssa-dce.c: Remove TODO_dump_func.
1709 * ira.c: Remove TODO_dump_func.
1710 * tree-ssa.c: Remove TODO_dump_func.
1711 * integrate.c: Remove TODO_dump_func.
1712 * tree-optimize.c: Remove TODO_dump_func.
1713 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1714 * tree-object-size.c: Remove TODO_dump_func.
1715 * combine.c: Remove TODO_dump_func.
1716 * bb-reorder.c: Remove TODO_dump_func.
1717 * cprop.c: Remove TODO_dump_func.
1718 * var-tracking.c: Remove TODO_dump_func.
1719 * tree-profile.c: Remove TODO_dump_func.
1720 * tree-vect-generic.c: Remove TODO_dump_func.
1721 * reg-stack.c: Remove TODO_dump_func.
1722 * sched-rgn.c: Remove TODO_dump_func.
1723 * tree-ssa-structalias.c: Remove TODO_dump_func.
1724 * tree-switch-conversion.c: Remove TODO_dump_func.
1725 * tree-cfg.c: Remove TODO_dump_func.
1726 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1727 * combine-stack-adj.c: Remove TODO_dump_func.
1728 * dce.c: Remove TODO_dump_func.
1729 * tree-ssanames.c: Remove TODO_dump_func.
1730 * regcprop.c: Remove TODO_dump_func.
1731
fa465762
L
17322011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1733
1734 PR middle-end/47364
1735 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1736 and properly handle result not in Pmode.
1737
7d8d16c3
RM
17382011-06-14 Robert Millan <rmh@gnu.org>
1739
1740 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1741 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1742 `config/linux.h'.
1743
1744 * config/i386/kfreebsd-gnu64.h: New file.
1745 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1746 with `i386/kfreebsd-gnu64.h'.
1747
1748 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1749 (GNU_USER_LINK_EMULATION64): New macros.
1750 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1751 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1752 of hardcoding `elf_i386' and `elf_x86_64'.
1753
0ccef3d2
NC
17542011-06-14 Nick Clifton <nickc@redhat.com>
1755
1756 PR target/49403
1757 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1758
1759 PR target/49402
1760 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1761
8a76c4a0
JJ
17622011-06-14 Jakub Jelinek <jakub@redhat.com>
1763
1ace6185
JJ
1764 PR fortran/49103
1765 * tree.h (DECL_NONSHAREABLE): Define.
1766 (struct tree_decl_common): Change decl_common_unused to
1767 decl_nonshareable_flag.
1768 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1769 Ignore vars with DECL_NONSHAREABLE bit set.
1770 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1771 on stores to automatic aggregate vars.
1772
8a76c4a0
JJ
1773 PR rtl-optimization/49390
1774 Revert:
1775 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1776
1777 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1778 MEM_ALIAS_SET.
1779
b4a9343c
ZD
17802011-06-14 Zdenek Dvorak <ook@ucw.cz>
1781 Tom de Vries <tom@codesourcery.com>
1782
1783 PR target/45098
1784 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1785 Document changed semantics.
1786 (max_stmt_executions, max_stmt_executions_int): Declare.
1787 * tree-data-ref.c (estimated_loop_iterations)
1788 (estimated_loop_iterations_int): Move functions...
1789 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1790 (estimated_loop_iterations_int): here.
1791 (record_estimate): Change nb_iterations_upper_bound and
1792 nb_iterations_estimate semantics.
1793 (max_stmt_executions, max_stmt_executions_int): New function.
1794 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1795 (max_stmt_executions_tree): this.
1796 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1797 estimated_loop_iterations_tree.
1798 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1799 max_stmt_executions_int instead of estimated_loop_iterations_int.
1800 * predict.c (predict_loops): Idem.
1801 * tree-parloops.c (parallelize_loops): Idem.
1802 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1803 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1804 (init_omega_for_ddr_1): Idem.
1805 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1806 (loop_prefetch_arrays): Idem
1807 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1808 max_stmt_executions instead of estimated_loop_iterations.
1809 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1810 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1811 instead of nb_iterations_upper_bound.
1812
d2640c43
JH
18132011-06-13 Jan Hubicka <jh@suse.cz>
1814
1815 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1816
40873cdd
RH
18172011-06-14 Richard Henderson <rth@redhat.com>
1818
1819 PR debug/48459
1820 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1821 (based_loc_descr): Assert it's true.
1822 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1823 aborting immediately.
1824
73e8cb24
SL
18252011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1826 Mingfeng Wu <mingfeng@faraday-tech.com>
1827
1828 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1829
f835f0a7
JH
18302011-06-13 Jan Hubicka <jh@suse.cz>
1831
1832 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1833
ee6f1177
JH
18342011-06-13 Jan Hubicka <jh@suse.cz>
1835
1836 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1837 similarly to DECL_COMDAT.
1838 * cgraphunit.c (cgraph_analyze_function): Likewise.
1839 * ipa.c (function_and_variable_visibility): Likewise.
1840
618abf9a
JH
18412011-06-13 Jan Hubicka <jh@suse.cz>
1842
1843 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1844 BINFO_VIRTUALS when streaming for ltrans unit.
1845
a45fe02f
DE
18462011-06-13 David Edelsohn <dje.gcc@gmail.com>
1847
1848 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1849 (movdi_internal64): Same.
1850
18512011-06-13 Edmar Wienskoski <edmar@freescale.com>
1852
e641e495 1853 PR target/44618
7d8d16c3
RM
1854 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1855 a set of similar patterns, where the MATCH_OPERAND for the function
1856 argument is replaced with individual references to hardware registers.
a45fe02f
DE
1857 (save_fpregs_<mode>): Ditto
1858 (restore_gpregs_<mode>): Ditto
1859 (return_and_restore_gpregs_<mode>): Ditto
1860 (return_and_restore_fpregs_<mode>): Ditto
1861 (return_and_restore_fpregs_aix_<mode>): Ditto
1862
8775a18b
JH
18632011-06-13 Jan Hubicka <jh@suse.cz>
1864
1865 * ipa-utils.c (postorder_stack): New structure.
1866 (ipa_reverse_postorder): Handle aliases.
1867
18682011-06-13 Jan Hubicka <jh@suse.cz>
1869
1870 * ipa-inline.c (reset_edge_caches): Walk aliases.
1871 (update_caller_keys): Do not test inlinability of aliases.
1872 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1873 (do_estimate_growth): Fix typo.
1874
6c69a029
JH
18752011-06-13 Jan Hubicka <jh@suse.cz>
1876
1877 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1878 (can_remove_node_now_p): ... here; handle same comdat groups.
1879 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1880 (inline_call): Update use of can_remove_node_now_p.
1881
10c63ba4 18822011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 1883
10c63ba4 1884 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
1885 condition to disallow non-identical memory locations.
1886 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1887 preference to bit manipulation instructions.
495f8c14 1888
9aa3f5c5
JH
18892011-06-13 Jan Hubicka <jh@suse.cz>
1890
1891 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1892 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1893 (nonremovable_p): New function.
1894 (cgraph_can_remove_if_no_direct_calls_p): New function.
1895 (used_from_object_file_p): New functoin.
10c63ba4
EB
1896 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1897 references from aliases.
9aa3f5c5
JH
1898 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1899 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
1900 (want_inline_function_called_once_p): Use it; accept aliases called
1901 once, too.
9aa3f5c5
JH
1902 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1903
30cecf17
RR
19042011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1905
1906 PR target/48454
1907 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1908 correctly for the case with Quad vectors.
1909
29f85237
JJ
19102011-06-13 Jakub Jelinek <jakub@redhat.com>
1911 Ira Rosen <ira.rosen@linaro.org>
1912
1913 PR tree-optimization/49352
1914 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1915 all, make sure loop_use_stmt after the loop is a def stmt of a used
1916 SSA_NAME that is the only one defined inside of the loop. Don't
1917 check for COND_EXPR and GIMPLE_BINARY_RHS.
1918 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1919 check_reduction is true.
1920
c3e3f090
JH
19212011-06-11 Jan Hubicka <jh@suse.cz>
1922
1923 PR middle-end/49373
1924 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1925
516e0768
JH
19262011-06-11 Jan Hubicka <jh@suse.cz>
1927
1928 PR middle-end/48836
1929 * ipa-inline-transform.c: Include tree-pass.h
1930 (inline_transform): Set TODO_update_ssa_only_virtuals.
1931 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1932
903b0a8b
JH
19332011-06-11 Jan Hubicka <jh@suse.cz>
1934
1935 PR middle-end/49378
1936 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1937 aliases and thunks.
1938
44542f8e
IR
19392011-06-12 Ira Rosen <ira.rosen@linaro.org>
1940
1941 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1942 Take number of iterations to peel into account for equally frequent
1943 misalignment values.
1944
ea89702b
JH
19452011-06-11 Jan Hubicka <jh@suse.cz>
1946
637c11bd
UB
1947 * lto-streamer-out.c (produce_symtab): Stream out the newly
1948 represented aliases.
ea89702b 1949
380ed5ed
JH
19502011-06-11 Jan Hubicka <jh@suse.cz>
1951
637c11bd
UB
1952 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1953 varying args.
380ed5ed
JH
1954 (ipa_update_after_lto_read): Likewise.
1955 (ipa_write_node_info): Do not sream call_with_var_arguments.
1956 (ipa_read_node_info): Likewise.
1957
00cfc363
JH
19582011-06-11 Jan Hubicka <jh@suse.cz>
1959
1960 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1961
39e2db00
JH
19622011-06-11 Jan Hubicka <jh@suse.cz>
1963
1964 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1965 (lto_symtab_resolve_can_prevail_p): Likewise.
1966 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1967 * cgraph.c (same_body_aliases_done): New global var.
1968 (cgraph_same_body_alias_1): Rename to ...
1969 (cgraph_create_function_alias): ... this one; reorg to new
1970 representation.
1971 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1972 record references when asked to.
1973 (cgraph_add_thunk): Fix formating.
1974 (cgraph_get_node): Kill same body alias code.
1975 (cgraph_node_for_asm): Likewise.
1976 (cgraph_remove_same_body_alias): Remove.
1977 (cgraph_remove_node): Kill same body alias code.
1978 (cgraph_mark_address_taken_node): Mark also the aliased function
1979 as having address taken.
1980 (dump_cgraph_node): Dump same body aliases.
1981 (cgraph_for_node_thunks_and_aliases): Update for new alias
1982 representation.
1983 (cgraph_for_node_and_aliases): Likewise.
1984 * cgraph.h (same_body): Kll pointer.
1985 (same_body_alias): Update comment.
1986 (same_body_aliases_done): Declare.
1987 (cgraph_remove_same_body_alias): Remove declaration.
1988 (cgraph_create_function_alias): Declare.
1989 (cgraph_process_same_body_aliases): Declare.
1990 (cgraph_function_with_gimple_body_p): Check for alias.
1991 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1992 (cgraph_alias_aliased_node): New function.
1993 (cgraph_function_node): Update for new aliases.
1994 (cgraph_function_or_thunk_node): Likewise.
1995 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1996 (inline_call): Remove dead aliases.
10c63ba4
EB
1997 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1998 name hack for same body aliases.
39e2db00
JH
1999 (clone_of_p): Look through aliases.
2000 (verify_cgraph_node): Verify aliases.
2001 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2002 (cgraph_process_same_body_aliases): New function.
2003 (process_function_and_variable_attributes): Disable weakref warning on
2004 alias.
2005 (cgraph_analyze_functions): Handle aliases.
2006 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2007 (assemble_thunks): Rename to ...
2008 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2009 (cgraph_expand_function): Remove alias output code.
2010 (cgraph_output_in_order): Skip aliases.
2011 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2012 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2013 (ipa_record_reference): Do not assert on alias references.
2014 (ipa_ref_has_aliases_p): New function.
2015 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2016 (ipa_ref_has_aliases_p): Declare.
2017 * lto-cgraph.c (lto_output_node): Handle aliases.
2018 (input_node): Likewise.
2019 * lto-streamer-out.c (lto_output): Skip aliases.
2020 (produce_symtab): Kill same_body_alias code.
2021 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2022 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2023 * ipa-inline.c (update_caller_keys): Walk aliases.
2024 (inline_small_functions): Fix thinko in previous patch.
2025 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2026 (function_and_variable_visibility): Do not walk same body aliases.
2027 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2028 (ipa_pta_execute): Use it.
2029
9ee65b55
UB
20302011-06-11 Uros Bizjak <ubizjak@gmail.com>
2031
2032 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2033 (*vec_dupv2df): Rename from vec_dupv2df.
2034 (vec_dupv2df): New expander.
2035
20362011-06-11 Uros Bizjak <ubizjak@gmail.com>
2037
2038 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2039
20402011-06-11 Uros Bizjak <ubizjak@gmail.com>
2041
2042 * config/i386/i386.md: Use default value in "isa" attribute.
2043 * config/i386/sse.md: Ditto.
2044 * config/i386/mmx.md: Ditto.
2045
ba68a139
WG
20462011-06-10 Wei Guozhi <carrot@google.com>
2047
2048 PR target/45335
2049 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2050 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2051 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2052 related peephole2.
2053 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2054 related peephole2.
2055 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2056 (arm_legitimate_ldrd_p): New prototype.
2057 (arm_output_ldrd): New prototype.
2058 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2059 (arm_legitimate_ldrd_p): New function.
2060 (arm_output_ldrd): New function.
2061
deced1e2
XDL
20622011-06-10 David Li <davidxl@google.com>
2063
2064 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2065 * passes.c (passr_eq): New function.
2066 (create_pass_tab): New function.
2067 (pass_traverse): New function.
2068 (dump_one_pass): New function.
2069 (dump_pass_list): New function.
2070 (dump_passes): New function.
2071
71fb4f92
JH
20722011-06-10 Jan Hubicka <jh@suse.cz>
2073
2074 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2075 setting the nothrow flag.
2076 * ipa-reference.c (propagate): Skip aliases.
2077 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2078 (propagate_nothrow): Skip aliases; do not update cgraph.
2079 (local_pure_const): Do not update cgraph.
2080 * tree-profile.c (tree_profiling): Do fixup_cfg.
2081
41817394
JH
20822011-06-10 Jan Hubicka <jh@suse.cz>
2083
2084 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2085 (cgraph_local_node_p): ... here; handle aliases.
2086 (has_addr_references_p): Break out from ...;
2087 (cgraph_remove_unreachable_nodes) ... here.
2088
fb37c1de
JH
20892011-06-10 Jan Hubicka <jh@suse.cz>
2090
2091 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
2092 * common.opt (flag_inline_functions_called_once): Do not
2093 initialize to 1.
fb37c1de 2094
0818c24c
JH
20952011-06-10 Jan Hubicka <jh@suse.cz>
2096
2097 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
2098 (ipcp_initialize_node_lattices): Do not deal with aliases;
2099 Do not try to propagate through thunks.
0818c24c
JH
2100 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2101
c8246dbe
JH
21022011-06-10 Jan Hubicka <jh@suse.cz>
2103
9ee65b55
UB
2104 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2105 for indirect calls.
c8246dbe
JH
2106 (ipa_read_node_info): Likewise.
2107
d7e2a1c1
BS
21082011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2109
2110 PR lto/49302
2111 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2112 (build_and_insert_call): Likewise.
2113 (build_and_insert_ref): New.
2114 (gimple_expand_builtin_pow): Minor cleanup.
2115 (gimple_expand_builtin_cabs): New.
2116 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 2117
749f25d8
JH
21182011-06-10 Jan Hubicka <jh@suse.cz>
2119
2120 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2121 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2122 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2123 (ipcp_propagate_stage): Skip aliases when propagating.
2124 (ipcp_need_redirect_p): Skip aliases.
2125 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2126 collect_callers_of_node.
2127 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2128 for aliases.
2129 (ipa_compute_jump_functions): Look through aliases.
2130
8340fbd7
RO
21312011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2132
2133 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2134
9aaa7e47
HPN
21352011-06-10 Hans-Peter Nilsson <hp@axis.com>
2136
2137 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2138 Adjust comments.
2139 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2140
f1724940
JH
21412011-06-10 Jan Hubicka <jh@suse.cz>
2142
2143 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2144 Update call of gimple_get_virt_method_for_binfo.
2145 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2146 refuse_thunks parameter.
2147 (gimple_fold_call): Update.
2148 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2149
a6f834c5
JH
21502011-06-10 Jan Hubicka <jh@suse.cz>
2151
2152 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2153 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2154 worker for cgraph_for_node_and_aliases.
2155 (convert_callers_for_node): Break out from ...
2156 (convert_callers): ... here.
2157 (modify_function): Use collect_callers_of_node.
2158 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2159
7871eee3
RG
21602011-06-10 Richard Guenther <rguenther@suse.de>
2161
2162 PR tree-optimization/49361
2163 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2164 when not already in gimple form.
2165
dae957ae
RG
21662011-06-10 Richard Guenther <rguenther@suse.de>
2167
2168 PR bootstrap/49344
2169 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2170 FOR_EACH_PHI_OR_STMT_USE.
2171
a5b1779f
JH
21722011-06-10 Jan Hubicka <jh@suse.cz>
2173
2174 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2175 (clone_inlined_nodes): ... here.
2176 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2177 to real destination prior inlining.
2178 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2179 can_early_inline_edge_p, want_early_inline_function_p,
2180 want_early_inline_function_p, want_inline_small_function_p,
2181 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2182 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2183 add_new_edges_to_heap, inline_small_functions, flatten_function,
2184 inline_always_inline_functions, early_inline_small_functions): Use
2185 cgraph_function_or_thunk_node.
2186 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2187 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2188 (do_estimate_edge_growth_1): Break out from ...
2189 (do_estimate_growth) ... here; walk aliases.
2190 (inline_generate_summary): Skip aliases.
2191
c1ae3ca5
RG
21922011-06-10 Richard Guenther <rguenther@suse.de>
2193
9ee65b55
UB
2194 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2195 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 2196
b504a918
PC
21972011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2198
2199 * tree.h (error_operand_p): Add.
2200 * dbxout.c (dbxout_type_fields): Use the latter.
2201 * c-decl.c (add_stmt): Likewise.
2202 * gimplify.c (omp_add_variable, omp_notice_variable,
2203 gimplify_scan_omp_clauses): Likewise.
2204
3f5ea9dc 22052011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 2206
3f5ea9dc
GJL
2207 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2208 when a value is actually passed in regs.
2209
b11b0904 22102011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 2211 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
2212
2213 * doc/invoke.texi (SPARC options): Add -mflat.
2214 * config/sparc/sparc.opt: Likewise.
2215 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2216 (sparc_flat_expand_prologue): Declare.
2217 (sparc_flat_expand_epilogue): Likewise.
2218 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2219 (CPP_ENDIAN_SPEC): Replace with...
2220 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2221 (CPP_SPEC): Adjust to above change.
2222 (EXTRA_SPECS): Likewise.
2223 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2224 (INCOMING_REGNO): Likewise.
2225 (OUTGOING_REGNO): Likewise.
2226 (LOCAL_REGNO): Likewise.
2227 (SETUP_FRAME_ADDRESSES): Likewise.
2228 (FIXED_REGISTERS): Set 0 for %fp.
2229 (CALL_USED_REGISTERS): Likewise.
2230 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2231 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2232 (RETURN_ADDR_REGNUM): Define.
2233 (RETURN_ADDR_RTX): Use it.
2234 (INCOMING_RETURN_ADDR_REGNUM): Define.
2235 (INCOMING_RETURN_ADDR_RTX): Use it.
2236 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2237 (EH_RETURN_REGNUM): Define.
2238 (EH_RETURN_STACKADJ_RTX): Use it.
2239 (EH_RETURN_HANDLER_RTX): Delete.
2240 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2241 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2242 Delete.
2243 (struct machine_function): Add frame_size, apparent_frame_size,
2244 frame_base_reg, frame_base_offset, n_global_fp_regs and
2245 save_local_in_regs_p fields.
2246 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2247 sparc_frame_base_offset, sparc_n_global_fp_regs,
2248 sparc_save_local_in_regs_p): New macros.
2249 (sparc_option_override): Error out if -fcall-saved-REG is specified
2250 for Out registers.
2251 (eligible_for_restore_insn): Fix formatting.
2252 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2253 (eligible_for_sibcall_delay): Likewise.
2254 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2255 (sparc_legitimate_address_p): Adjust to above change.
2256 (save_global_or_fp_reg_p): New predicate.
2257 (return_addr_reg_needed_p): Likewise.
2258 (save_local_or_in_reg_p): Likewise.
2259 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2260 (SORR_SAVE, SORR_RESTORE): Delete.
2261 (sorr_pred_t): New typedef.
2262 (sorr_act_t): New enum.
2263 (save_or_restore_regs): Rename to...
2264 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2265 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2266 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2267 mechanism. Add CFI information for double-word saves in 32-bit mode.
2268 (emit_adjust_base_to_offset): New function extracted from...
2269 (emit_save_or_restore_regs): ...this. Rename the rest to...
2270 (emit_save_or_restore_regs_global_fp_regs): ...this.
2271 (emit_save_or_restore_regs_local_in_regs): New function.
2272 (gen_create_flat_frame_[123]): New functions.
2273 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2274 (sparc_flat_expand_prologue): New function.
2275 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2276 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2277 (sparc_flat_expand_epilogue): New function.
2278 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2279 (output_return): Likewise.
2280 (output_sibcall): Likewise.
2281 (sparc_output_mi_thunk): Likewise.
2282 (sparc_frame_pointer_required): Likewise.
2283 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2284 function optimization.
2285 * config/sparc/sparc.md (flat): New attribute.
2286 (prologue): Add TARGET_FLAT handling.
2287 (save_register_window): Disable if TARGET_FLAT.
2288 (create_flat_frame_[123]): New patterns.
2289 (epilogue): Add TARGET_FLAT handling.
2290 (sibcall_epilogue): Likewise.
2291 (eh_return): New expander.
2292 (eh_return_internal): New insn and splitter.
2293 (return_internal): Add TARGET_FLAT handling.
2294 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2295 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2296 (nonlocal_goto): Add TARGET_FLAT handling.
2297 * config/sparc/t-elf: Add -mflat multilib.
2298 * config/sparc/t-leon: Likewise.
2299
fede8efa
JH
23002011-06-10 Jan Hubicka <jh@suse.cz>
2301
2302 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2303 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2304 (self_recursive_p): Use cgraph_function_node.
2305 (propagate_pure_const): Likewise.
2306 (propagate_nothrow): Likewise.
2307 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2308 cgraph_function_node.
2309 (propagate_bits): Likewise.
2310 (propagate): Likewise.
2311
0127c76f
RR
23122011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2313 Richard Earnshaw <rearnsha@arm.com>
2314
9ee65b55 2315 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
2316 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2317 (*thumb2_movdi_vfp): Delete.
2318 (*arm_movdi_vfp_cortexa8): Delete.
2319 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2320 (*movdi_vfp_cortexa8): Likewise.
2321
f93fe5a0
RG
23222011-06-10 Richard Guenther <rguenther@suse.de>
2323
2324 * stor-layout.c (initialize_sizetypes): Give names to all
2325 sizetype kinds.
2326
f2164f87
IR
23272011-06-10 Ira Rosen <ira.rosen@linaro.org>
2328
2329 PR tree-optimization/49318
2330 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2331 irrelevant pattern statements.
2332
3f91c962
HPN
23332011-06-10 Hans-Peter Nilsson <hp@axis.com>
2334
3d223145
HPN
2335 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2336
3f91c962
HPN
2337 PR bootstrap/49354
2338 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2339 to last assignment.
2340
b125ad45
JH
23412011-06-09 Jan Hubicka <jh@suse.cz>
2342
2343 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2344 do not recompute reachable flag.
2345 (cgraph_finalize_function, cgraph_analyze_functions): Set
2346 redefined_extern_inline here.
2347
be330ed4
JH
23482011-06-09 Jan Hubicka <jh@suse.cz>
2349
2350 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2351 (cgraph_only_called_directly_p): ... this one; bring offline.
2352 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2353 varpool_used_from_object_file_p): Drop names from the declaratoin.
2354 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2355 collect_callers_of_node): New.
2356 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2357 (cgraph_edge_recursive_p): Use cgraph_function_node.
2358 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2359 (cgraph_node_cannot_be_local_p_1): Break out from ...
2360 (cgraph_node_can_be_local_p): ... here; walk aliases.
2361 (cgraph_for_node_thunks_and_aliases): New function.
2362 (cgraph_for_node_and_aliases): New function.
2363 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
2364 (cgraph_make_node_local) ... here; use
2365 cgraph_for_node_thunks_and_aliases.
be330ed4 2366 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
2367 (cgraph_set_nothrow_flag) ... here;
2368 use cgraph_for_node_thunks_and_aliases.
be330ed4 2369 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
2370 (cgraph_set_const_flag) ... here;
2371 use cgraph_for_node_thunks_and_aliases.
be330ed4 2372 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
2373 (cgraph_set_pure_flag) ... here;
2374 use cgraph_for_node_thunks_and_aliases.
be330ed4 2375 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
2376 (cgraph_propagate_frequency) ... here; use
2377 cgraph_for_node_thunks_and_aliases.
be330ed4 2378 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
2379 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2380 New functions.
be330ed4
JH
2381 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2382
2ea91d6b
HPN
23832011-06-10 Hans-Peter Nilsson <hp@axis.com>
2384
2385 PR rtl-optimization/49154
2386 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2387 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2388 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2389 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2390 * config/cris/cris.h (cris_register_move_cost): Remove
2391 !TARGET_V32 code. Tweak comments.
2392
9cf4fb5a
JH
23932011-06-09 Jan Hubicka <jh@suse.cz>
2394
2395 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2396 address taken.
2397
6049a4c8
HPN
23982011-06-10 Hans-Peter Nilsson <hp@axis.com>
2399
c577822e 2400 PR rtl-optimization/49154
9ee65b55
UB
2401 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2402 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 2403
54e1e4f7 2404 PR rtl-optimization/49154
6049a4c8
HPN
2405 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2406 register classes.
2407 * doc/tm.texi: Regenerate.
2408
3be68b64
KK
24092011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2410
2411 PR target/49307
2412 * config/sh/sh.md (UNSPEC_CHKADD): New.
2413 (chk_guard_add): New define_insn_and_split.
2414 (symGOT_load): Use chk_guard_add instead of blockage.
2415
bf806a90
KT
24162011-06-09 Kai Tietz <ktietz@redhat.com>
2417
2418 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2419
d5a9738b
EB
24202011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2421
2422 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2423
527e82c2
WG
24242011-06-09 Wei Guozhi <carrot@google.com>
2425
2426 PR target/46975
2427 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2428 (peephole2 for conditional move): Generate 16 bit instructions.
2429
b8bc3a43
UB
24302011-06-09 Uros Bizjak <ubizjak@gmail.com>
2431
2432 * config/i386/i386.md (*movdi_internal_rex64): Merge
2433 alternatives 6 and 8.
2434
4745da6e
DL
24352011-06-09 David Li <davidxl@google.com>
2436
2437 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2438 * passes.c (passr_eq): New function.
2439 (create_pass_tab): New function.
2440 (pass_traverse): New function.
2441 (dump_one_pass): New function.
2442 (dump_pass_list): New function.
2443 (dump_passes): New function.
2444
bdf67bcb
DL
24452011-06-09 David Li <davidxl@google.com>
2446
2447 * tree-complex.c (tree_lower_complex): Gate cleanup.
2448 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2449 (execute_optimize_stdarg): Ditto.
2450 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2451 (execute_cleanup_eh_1): Ditto.
2452 (execute_cleanup_eh): Ditto.
2453 * gcse.c (gate_rtl_pre): Ditto.
2454 (execute_rtl_pre): Ditto.
2455 * except.c (finish_eh_generation): Ditto.
2456 (convert_to_eh_region_ranges): Ditto.
2457 * cprop.c (one_cprop_pass): Ditto.
2458
547fdef8
BS
24592011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2460
2461 PR target/48673
2462 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2463 in all basic blocks.
2464
10e48e39
RO
24652011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2466
2467 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2468 (HAVE_ENABLE_EXECUTE_STACK): Define.
2469 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2470 (HAVE_ENABLE_EXECUTE_STACK): Define.
2471 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2472 (HAVE_ENABLE_EXECUTE_STACK): Define.
2473 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2474 (ENABLE_EXECUTE_STACK): Remove.
2475 (HAVE_ENABLE_EXECUTE_STACK): Define.
2476 [IN_LIBGCC2]: Don't include <windows.h>.
2477 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2478 (HAVE_ENABLE_EXECUTE_STACK): Define.
2479 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2480 (HAVE_ENABLE_EXECUTE_STACK): Define.
2481 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2482 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2483 (HAVE_ENABLE_EXECUTE_STACK): Define.
2484 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2485 (HAVE_ENABLE_EXECUTE_STACK): Define.
2486 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2487 (HAVE_ENABLE_EXECUTE_STACK): Define.
2488 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2489 (HAVE_ENABLE_EXECUTE_STACK): Define.
2490 * config/alpha/alpha.c (alpha_trampoline_init): Test
2491 HAVE_ENABLE_EXECUTE_STACK.
2492 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2493 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2494 (sparc64_initialize_trampoline): Likewise.
2495 * libgcc2.c [L_enable_execute_stack]: Remove.
2496 * system.h (ENABLE_EXECUTE_STACK): Poison.
2497 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2498 * doc/tm.texi: Regenerate.
2499 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2500
8ced31fe
JJ
25012011-06-09 Jakub Jelinek <jakub@redhat.com>
2502
2503 PR middle-end/49308
2504 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2505 variable. After resetting and rescanning insn continue with previous
2506 statement.
2507
ee610fcd
RO
25082011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2509
2510 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2511 (gcc_cv_ld_hidden): Likewise.
2512 * configure: Regenerate.
2513 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2514 (ix86_stack_protect_fail): Mark unused.
2515 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2516 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2517 [TARGET_MACHO]: Don't define.
2518 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2519 (TARGET_STACK_PROTECT_FAIL): Likewise.
2520 (rs6000_stack_protect_fail): Mark unused.
2521 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 2522 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 2523
8f2e22ff
AK
25242011-06-08 Andi Kleen <ak@linux.intel.com>
2525
2526 * varasm.c (get_section): Print location of other conflict
2527 for section conflicts.
2528
815cecbe
AK
25292011-06-08 Andi Kleen <ak@linux.intel.com>
2530
2531 * config/i386/driver-i386.c (host_detect_local_cpu):
2532 Add model 0x2d Intel CPU.
2533
1460ec5c
AK
25342011-06-08 Andi Kleen <ak@linux.intel.com>
2535
2536 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
2537 (globalize_reg): Add decl parameter. Compute location. Pass location
2538 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
2539 * rtl.h (globalize_reg): Update prototype.
2540 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2541
df17530a
MX
25422011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2543
2544 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2545
409fed48
KK
25462011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2547
2548 PR target/49305
2549 * config/sh/predicates.md (general_movsrc_operand): Check
2550 mode for memory with indexed address for QI and HImode.
2551 (general_movdst_operand): Likewise.
2552
87c16a45
NP
25532011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2554
b8bc3a43 2555 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 2556
49931fcb
AO
25572011-06-08 Alexandre Oliva <aoliva@redhat.com>
2558
2559 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2560 (num_ssa_operands): Likewise.
2561 (op_iter_init_phiuse): Forward-declare.
2562 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2563
29494d1f
NC
25642011-06-08 Nick Clifton <nickc@redhat.com>
2565
2566 * doc/invoke.texi (ARM Options): Update description of
2567 -mthumb-interwork.
2568
4ffae7ff
L
25692011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2570
2571 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2572 unknown Intel family 0x6 CPUs.
2573
d9c77712
MJ
25742011-06-08 Martin Jambor <mjambor@suse.cz>
2575
2576 * tree-sra.c (mark_rw_status): Removed.
2577 (analyze_access_subtree): New parameter parent instead of
2578 mark_read and mark_write, propagate from that.
2579
b1def36c
JB
25802011-06-08 Julian Brown <julian@codesourcery.com>
2581
2582 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2583 for double-precision helper functions in hard-float mode if only
2584 single-precision arithmetic is supported in hardware.
2585
6c8e9fc9
AM
25862011-06-08 Alexander Monakov <amonakov@ispras.ru>
2587
2588 PR rtl-optimization/49303
2589 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2590 code_motion_path_driver returned 0 or 1.
2591 (sel_region_finish): Clear h_d_i_d.
2592
c2bbcb0d
KK
25932011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2594
2595 * config/sh/sh.c (prepare_move_operands): Set pic register
2596 appropriately for global and local dynamic tls models even
2597 if flag_pic is unset.
2598
6976ae51
JM
25992011-06-07 Jason Merrill <jason@redhat.com>
2600
2601 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2602
bb5b1f5e
XDL
26032011-06-07 Xinliang David Li <davidxl@google.com>
2604 * passes.c (enable_disable_pass): Handle assembler name.
2605 (is_pass_explicitly_enabled_or_disabled): Ditto.
2606
91ffe356
RO
26072011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2608
2609 PR tree-optimization/48497
2610 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2611
06bc3ec7
BS
26122011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2613
2614 PR tree-optimization/46728
2615 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2616 to use gimple_val_nonnegative_real_p.
2617 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2618 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 2619
c074d740
L
26202011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2621
2622 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2623
8973b112
SG
26242011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2625
2626 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2627 constant vectors.
2628
67b88453
RG
26292011-06-07 Richard Guenther <rguenther@suse.de>
2630
2631 * stor-layout.c (initialize_sizetypes): Initialize all
2632 sizetypes based on target definitions.
2633 (set_sizetype): Remove.
2634 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2635 * tree.h (set_sizetype): Remove.
2636
1dcad079
NC
26372011-06-07 Nick Clifton <nickc@redhat.com>
2638
2639 * config.gcc: Unify V850 architecture options and add support for
2640 newer V850 architectures.
2641 * config/v850/t-v850e: Delete.
2642
009db074
RG
26432011-06-07 Richard Guenther <rguenther@suse.de>
2644
2645 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2646 Call set_sizetype from here.
2647
f373314f
AS
26482011-06-07 Andrew Stubbs <ams@codesourcery.com>
2649
2650 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2651 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2652
c536876e
AS
26532011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2654 Andrew Stubbs <ams@codesourcery.com>
2655
2656 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2657 multiplies.
2658 * doc/md.texi (Canonicalization of Instructions): Document widening
2659 multiply canonicalization.
2660
308dc890
JJ
26612011-06-07 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR gcov-profile/49299
b8bc3a43 2664 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 2665
383d9c83
IR
26662011-06-07 Ira Rosen <ira.rosen@linaro.org>
2667
2668 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2669 a pointer.
2670 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2671 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2672 vect_recog_pow_pattern): Likewise.
2673 (vect_pattern_recog_1): Remove declaration.
2674 (widened_name_p): Remove declaration. Add new argument to specify
2675 whether to check that both types are either signed or unsigned.
2676 (vect_recog_widen_mult_pattern): Update documentation. Handle
2677 unsigned patterns and multiplication by constants.
2678 (vect_pattern_recog_1): Update vect_recog_func references. Use
2679 statement information from the statement returned from pattern
2680 detection functions.
2681 (vect_pattern_recog): Update vect_recog_func reference.
2682 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2683 multiplication by a constant use the type of the other operand.
2684
4de4b0f2
RS
26852011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2686
2687 PR rtl-optimization/49145
2688 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2689
a9d24544
JJ
26902011-06-06 Jakub Jelinek <jakub@redhat.com>
2691
99a5e049
JJ
2692 PR debug/49262
2693 * dwarf2out.c (native_encode_initializer): Decrement count in each
2694 iteration.
2695
04902d4c
JJ
2696 PR debug/49294
2697 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2698 non-MODE_INT modes.
2699
a9d24544
JJ
2700 PR c++/49264
2701 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2702 if stmt folded into nothing.
b8bc3a43
UB
2703 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2704 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
2705 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2706 to be NULL. Don't compute count and frequency if new_call is NULL.
2707
47c79d56
DN
27082011-06-04 Diego Novillo <dnovillo@google.com>
2709
2710 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2711 (cgraph.o): Likewise.
2712 (cgraphunit.o): Likewise.
2713 * cgraphunit.c: Include lto-streamer.h
2714 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2715 if LTO is enabled.
2716 * lto-streamer-in.c (unpack_value_fields): Call
2717 streamer_hooks.unpack_value_fields if set.
2718 (lto_materialize_tree): For unhandled nodes, first try to
2719 call lto_streamer_hooks.alloc_tree, if it exists.
2720 (lto_input_ts_decl_common_tree_pointers): Move reading of
2721 DECL_INITIAL to lto_streamer_read_tree.
2722 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2723 (lto_streamer_read_tree): New.
2724 (lto_reader_init): Rename from lto_init_reader.
2725 Move initialization code to lto/lto.c.
2726 * lto-streamer-out.c (pack_value_fields): Call
2727 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
2728 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2729 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 2730 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
2731 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2732 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2733 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2734 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
2735 (lto_streamer_write_tree): New.
2736 (lto_output): Call lto_streamer_init directly.
2737 (lto_writer_init): Remove.
2738 * lto-streamer.c (streamer_hooks): New.
2739 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2740 instead of lto_preload_common_nodes.
2741 (lto_is_streamable): Move from lto-streamer.h
2742 (lto_streamer_hooks_init): New.
2743 (streamer_hooks): New.
2744 (streamer_hooks_init): New.
2745 * lto-streamer.h (struct output_block): Forward declare.
2746 (struct lto_input_block): Likewise.
2747 (struct data_in): Likewise.
2748 (struct bitpack_d): Likewise.
2749 (struct streamer_hooks): Declare.
2750 (streamer_hooks): Declare.
2751 (lto_streamer_hooks_init): Declare.
2752 (lto_streamer_write_tree): Declare.
2753 (lto_streamer_read_tree): Declare.
2754 (streamer_hooks_init): Declare.
2755 (lto_is_streamable): Move to lto-streamer.c
2756
22afe143
AK
27572011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2758
2759 * longlong.h (smul_ppmm): The resulting register pair contains the
2760 higher order word first.
2761
3906ea1b
BS
27622011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2763
2764 PR tree-optimization/46728
2765 * builtins.c (powi_table): Remove.
2766 (powi_lookup_cost): Remove.
2767 (powi_cost): Remove.
2768 (expand_powi_1): Remove.
2769 (expand_powi): Remove.
2770 (expand_builtin_pow_root): Remove.
2771 (expand_builtin_pow): Remove.
2772 (expand_builtin_powi): Eliminate handling of constant exponent.
2773 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 2774
3598cabd
AO
27752011-06-06 Alexandre Oliva <aoliva@redhat.com>
2776
2777 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2778
a7a110bb
AO
27792011-06-06 Alexandre Oliva <aoliva@redhat.com>
2780
2781 * dce.c (reset_unmarked_insns_debug_uses): New.
2782 (delete_unmarked_insns): Skip debug insns.
2783 (prescan_insns_for_dce): Likewise.
2784 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2785 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2786 active reg can be found.
2787 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2788 (convert_regs_1): Use it.
2789
6d8402ac
AO
27902011-06-06 Alexandre Oliva <aoliva@redhat.com>
2791
2792 * tree-pretty-print.c (dump_function_header): Add flags.
2793 Don't dump decl_uid with nouid.
2794 * tree-pretty-print.h (dump_function_header): Adjust.
2795 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2796 * passes.c (pass_init_dump_file): Pass dump_flags on.
2797 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2798
f75e1f1e
AO
27992011-06-06 Alexandre Oliva <aoliva@redhat.com>
2800
2801 PR bootstrap/49270
2802 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2803
275311c4
MP
28042011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2805
2806 PR tree-optimization/49243
2807 * calls.c (setjmp_call_p): Also check if fndecl has the
2808 returns_twice attribute.
2809
aa4203e7
RO
28102011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2811
2812 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2813 -ffast-math etc.
2814
48f9d59a
RH
28152011-06-06 Richard Henderson <rth@redhat.com>
2816 Georg-Johann Lay <avr@gjlay.de>
2817
2818 PR target/42210
2819 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2820 New predicates.
2821 * config/avr/avr.md ("insv"): New insn expander.
2822 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2823 "*insv.not.io", "*insv.reg"): New insns.
2824
11494830
HPN
28252011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2826
2827 PR target/49285
b8bc3a43
UB
2828 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2829 to nonimmediate_operand from memory_operand for the operand that is to
2830 be forced to memory by the expander. Lose the constraints.
11494830 2831
679e70df
EB
28322011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2833
2834 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2835 EH return when delayed branches are disabled.
2836
4d3d7f15
UB
28372011-06-05 Uros Bizjak <ubizjak@gmail.com>
2838
2839 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2840 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2841 calculation.
2842 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2843 Simplify MODE_V1DF and MODE_V2SF handling.
2844 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2845 Simplify MODE_SF handling.
2846
a45c0557
JH
28472011-06-04 Jan Hubicka <jh@suse.cz>
2848
2849 PR tree-optimization/48893
2850 PR tree-optimization/49091
2851 PR tree-optimization/49179
2852 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2853 Bounds check.
2854
26740835
JH
28552011-06-04 Jan Hubicka <jh@suse.cz>
2856
2857 PR lto/48954
b8bc3a43
UB
2858 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2859 bitmaps.
26740835 2860
014ab419
JW
28612011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2862
2863 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2864
407bcba7
JJ
28652011-06-04 Jakub Jelinek <jakub@redhat.com>
2866
2867 PR target/49281
2868 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2869 to be strictly smaller than 1 << shiftcount.
2870
e3195c52
JH
28712011-06-04 Jan Hubicka <jh@suse.cz>
2872
2873 PR tree-optimize/48929
2874 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2875 of empty predicate.
2876
047d33a0
AO
28772011-06-04 Alexandre Oliva <aoliva@redhat.com>
2878
2879 PR debug/48333
2880 * calls.c (emit_call_1): Prefer the __builtin declaration of
2881 builtin functions.
2882
dc587809
DN
28832011-06-03 Diego Novillo <dnovillo@google.com>
2884
2885 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2886 (lto_input_tree_pointers): Likewise.
2887 * lto-streamer-out.c (pack_value_fields): Likewise.
2888 (lto_output_tree_pointers): Likewise.
2889 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2890 and OPTIMIZATION_NODE.
2891
58cd1d70
RO
28922011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2893
2894 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2895 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2896 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2897 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2898 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2899 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2900 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2901 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2902 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2903 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2904 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2905 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2906 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2907 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2908 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2909 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2910 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2911 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2912 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2913 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2914 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2915 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2916 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2917 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2918 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2919 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2920 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2921 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2922 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2923 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2924 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2925 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2926 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2927 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2928 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2929 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2930 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2931 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2932 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2933 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2934 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2935 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2936 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2937 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2938 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2939 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2940 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2941 * system.h (MD_UNWIND_SUPPORT): Poison.
2942 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2943 * doc/tm.texi: Regenerate.
2944 * unwind-dw2.c: Include md-unwind-support.h instead of
2945 MD_UNWIND_SUPPORT.
2946 * config/ia64/unwind-ia64.c: Likewise.
2947 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2948
10c63ba4 29492011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
2950
2951 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2952
1b7a0148
RH
29532011-06-03 Richard Henderson <rth@redhat.com>
2954 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2955
2956 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2957 (sigill_hdlr): Correct insn, insn size.
2958 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2959
737346fa
RO
29602011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2961
2962 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2963 t-slibgcc-dummy.
2964 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2965 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2966 * config/mips/t-iris: Remove.
2967 * config/mips/t-irix6: New file.
2968 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2969
c192cee6
RO
29702011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2971
2972 * Makefile.in (LIB2ADDEHDEP): Remove.
2973 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2974 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2975 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2976 * config/t-darwin (LIB2ADDEHDEP): Remove.
2977 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2978 * config/t-linux (LIB2ADDEHDEP): Remove.
2979
d5828cc7
DN
29802011-06-03 Diego Novillo <dnovillo@google.com>
2981
2982 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2983 (lto_register_var_decl_in_symtab): Likewise.
2984 (lto_register_function_decl_in_symtab): Likewise.
2985 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 2986 logic to uniquify_nodes.
d5828cc7 2987
ee33b5f0
RO
29882011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2989
2990 * config/alpha/t-osf5: Remove.
2991 * config/alpha/t-osf-pthread: Remove.
2992 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2993 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2994
16868d84
JB
29952011-06-03 Julian Brown <julian@codesourcery.com>
2996
2997 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2998 (strongarm1110): Use strongarm tuning.
4d3d7f15 2999 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
3000 * config/arm/arm.c (arm_strongarm_tune): New.
3001 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3002 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3003 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3004 setting, using previous defaults or 1 for Cortex-A5.
3005 (arm_option_override): Set max_insns_skipped from current tuning.
3006
1cec1285
NS
30072011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3008
3009 * doc/install.texi (Options specification): Document --with-specs.
3010
eed55426
RR
30112011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3012
3013 * config/arm/neon.md (orndi3_neon): Actually split it.
3014
d5b6cc25
AO
30152011-06-02 Alexandre Oliva <aoliva@redhat.com>
3016
3017 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3018 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3019
2ba42841
AO
30202011-06-02 Alexandre Oliva <aoliva@redhat.com>
3021
3022 PR debug/47590
3023 * target.def (delay_sched2, delay_vartrack): New.
3024 * doc/tm.texi.in: Update.
3025 * doc/tm.texi: Rebuild.
3026 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3027 * var-tracking.c (gate_handle_var_tracking): Likewise.
3028 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3029 (bfin_flag_var_tracking): Drop.
3030 (output_file_start): Don't save and override flag_var_tracking.
3031 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3032 (bfin_reorg): Test original variables.
3033 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3034 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3035 (ia64_flag_var_tracking): Drop.
3036 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3037 (ia64_file_start): Don't save and override flag_var_tracking.
3038 (ia64_override_options_after_change): Ditto
3039 flag_schedule_insns_after_reload.
3040 (ia64_reorg): Test original variables.
3041 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3042 (picochip_flag_var_tracking): Drop.
3043 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3044 (picochip_option_override): Don't save and override
3045 flag_schedule_insns_after_reload.
3046 (picochip_asm_file_start): Ditto flag_var_tracking.
3047 (picochip_reorg): Test original variables.
3048 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3049 (TARGET_DELAY_VARTRACK): Define.
3050 (spu_var_tracking): New.
3051 (spu_machine_dependent_reorg): Call it.
3052 (asm_file_start): Don't save and override flag_var_tracking.
3053
a700b5f0
KK
30542011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3055
3056 PR target/49163
3057 * config/sh/predicates.md (general_movsrc_operand): Return 0
3058 for memory and memory subreg of which address is an invalid
3059 indexed address for QI and HImode.
3060 (general_movdst_operand): Likewise.
3061
76015c34
EB
30622011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3063
3064 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3065 edges only, when there is a non-local label in the function.
3066 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3067
4e76acd2
UB
30682011-06-02 Uros Bizjak <ubizjak@gmail.com>
3069
3070 * config/i386/constraints.md (Y3): New register constraint.
3071 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3072 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3073 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3074 *sse2_interleave_lowv2df.
3075
288f605f
JB
30762011-06-02 Julian Brown <julian@codesourcery.com>
3077
3078 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3079 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3080 (arm_cortex_a5_tune): New.
3081
7ec70105
JB
30822011-06-02 Julian Brown <julian@codesourcery.com>
3083
153668ec
JB
3084 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3085 * config/arm/arm.c (arm_default_branch_cost): New.
3086 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3087 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3088 (arm_fa726_tune): Set branch_cost field using
3089 arm_default_branch_cost.
3090 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3091 current_tune structure.
3092 * dojump.c (tm_p.h): Include file.
3093
30942011-06-02 Julian Brown <julian@codesourcery.com>
3095
3096 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3097 tuning.
7ec70105
JB
3098 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3099 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3100 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3101 field.
3102 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3103 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3104 (arm_fa726te_tune): Add prefer_constant_pool setting.
3105 (arm_v6t2_tune, arm_cortex_tune): New.
3106 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3107 prefer_constant_pool setting.
3108
aad61732
UB
31092011-06-02 Uros Bizjak <ubizjak@gmail.com>
3110
4e76acd2
UB
3111 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3112 switch statement.
aad61732
UB
3113 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3114 (*movdf_internal) <case 6,7,8>: Ditto.
3115
4e76acd2 3116 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
3117 * config/i386/sse.md (vec_set<mode>_0): Merge with
3118 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3119 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3120 *vec_extractv2di_1_sse.
3121 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3122 and *vec_concatv2di_rex64_sse.
3123
6e588138
SH
31242011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3125
3126 PR target/48807
3127 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3128 of cgraph_local_info for null before attempting to use it.
3129
bc6d3f91
EB
31302011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3131
3132 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3133 (current_function_dynamic_alloc_count): Delete.
3134 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3135 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3136 (expand_builtin_update_setjmp_buf): Remove dead code.
3137 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3138 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3139 support.
3140 * function.c (instantiate_virtual_regs): Likewise.
3141 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3142 for a block with a single abnormal incoming edge.
3143 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 3144 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
3145 * config/sparc/sparc-protos.h (load_got_register): Declare.
3146 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3147 (load_got_register): Make global.
3148 (sparc_frame_pointer_required): Add 'static'.
3149 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3150 (sparc_builtin_setjmp_frame_value): New function.
3151 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3152 (save_stack_nonlocal): New expander.
3153 (restore_stack_nonlocal): Likewise.
3154 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3155 (nonlocal_goto_internal): New insn.
3156 (goto_handler_and_restore): Delete.
3157 (builtin_setjmp_setup): Likewise.
3158 (do_builtin_setjmp_setup): Likewise.
3159 (setjmp): Likewise.
3160 (builtin_setjmp_receiver): New expander.
3161
69282fee
DL
31622011-06-01 David Li <davidxl@google.com>
3163
3164 PR middle-end/49261
3165 * tree-pretty-print.c (dump_function_header): Format cleanup.
3166
e95873dd
KK
31672011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3168
3169 PR target/49238
3170 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3171 needed when original operands are used for msw_skip comparison.
3172
88c15821
JJ
31732011-06-01 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR debug/49250
3176 * var-tracking.c (add_uses, add_stores): Don't call
3177 cselib_subst_to_values on ENTRY_VALUE.
3178
07233947
DN
31792011-06-01 Diego Novillo <dnovillo@google.com>
3180
3181 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3182 output_record_start with LTO_null instead of output_zero.
3183 (lto_output_ts_binfo_tree_pointers): Likewise.
3184 (lto_output_tree): Likewise.
3185 (output_eh_try_list): Likewise.
3186 (output_eh_region): Likewise.
3187 (output_eh_lp): Likewise.
3188 (output_eh_regions): Likewise.
3189 (output_bb): Likewise.
3190 (output_function): Likewise.
3191 (output_unreferenced_globals): Likewise.
3192 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3193 instead of NUM_TREE_CODES.
3194 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3195 (lto_output_int_in_range): Change << to >> when shifting VAL.
3196
4ee3537a
DN
31972011-06-01 Diego Novillo <dnovillo@google.com>
3198
3199 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3200 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3201
02972eaf
RS
32022011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3203
3204 PR target/45074
3205 * optabs.h (valid_multiword_target_p): Declare.
3206 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3207 doing multi-word operations.
3208 * optabs.c (expand_binop): Likewise.
3209 (expand_doubleword_bswap): Likewise.
3210 (expand_absneg_bit): Likewise.
3211 (expand_unop): Likewise.
3212 (expand_copysign_bit): Likewise.
3213 (multiword_target_p): New function.
3214
4d41c2d1
RS
32152011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3216
3217 PR rtl-optimization/48830
3218 PR rtl-optimization/48808
3219 PR rtl-optimization/48792
3220 * reload.c (push_reload): Check contains_reg_of_mode.
3221 * reload1.c (strip_paradoxical_subreg): New function.
3222 (gen_reload_chain_without_interm_reg_p): Use it to handle
3223 paradoxical subregs.
3224 (emit_output_reload_insns, gen_reload): Likewise.
3225
5f57dccb
DL
32262011-06-01 David Li <davidxl@google.com>
3227
3228 * predict.c : Change pass name
3229 * ipa.c: Ditto.
3230 * dce.c: Ditto.
3231 * tree-profile.c: Ditto.
3232 * except.c: Ditto.
3233
ea6cf778
DL
32342011-06-01 David Li <davidxl@google.com>
3235
3236 * tree-pretty-print.c (dump_function_header): New function.
3237 * final.c (rest_of_clean_state): Use header dumper.
3238 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3239 * passes.c (pass_init_dump_file): Use header dumper.
3240
ebdc0d4b
JJ
32412011-06-01 Jakub Jelinek <jakub@redhat.com>
3242
eeeb9b49
JJ
3243 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3244 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3245 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3246 New functions.
3247 (mem_loc_descriptor): Use them.
3248
ebdc0d4b
JJ
3249 * var-tracking.c (create_entry_value): New function.
3250 (vt_add_function_parameter): Use it.
3251
0699e415
RO
32522011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3253
3254 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3255 Include <signal.h>, <ucontext.h>.
3256 (sigill_caught): Define.
3257 (sigill_hdlr): New function.
3258 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3259 insns can be executed.
aad61732 3260 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
3261 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3262
ca24c5ad
RO
32632011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3264
3265 * config/t-slibgcc-darwin: Move to ...
aad61732 3266 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
3267 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3268 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3269 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 3270 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
3271 Remove i386/t-crtstuff from tmake_file.
3272 (i[34567]86-*-solaris2*): Remove t-svr4,
3273 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3274 t-slibgcc-dummy.
3275 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3276 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3277 sparc/t-crtfm from tmake_file.
3278 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3279 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3280 Remove extra_parts.
3281 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3282 * config/i386/t-nwld (SHLIB_LINK): Remove.
3283 * config/i386/t-rtems-i386: Rename to ...
3284 * config/i386/t-rtems: ... this.
3285 ($(T)crti.o, $(T)crtn.o): Remove.
3286 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3287 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3288 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3289 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3290 EXTRA_MULTILIB_PARTS): Remove.
3291 * config/sparc/t-sol2-64: Likewise.
3292 * config/sparc/t-sol2: Remove.
3293 * config/sparc/t-crtin: Remove.
3294 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3295 * config/i386/gmon-sol2.c: Remove.
3296 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3297 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3298 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3299 * config/i386/sol2-gc1.asm: Remove.
3300 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3301 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3302 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3303 * config/t-slibgcc-sld: Remove.
3304
a78d13c3
JJ
33052011-06-01 Jakub Jelinek <jakub@redhat.com>
3306
3307 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3308 base_type_for_mode with op_mode instead of mode.
3309
572070ef
PB
33102011-06-01 Paul Brook <paul@cpodesourcery.com>
3311
3312 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3313 Cortex-A15.
3314 * config/arm/arm-tune.md: Regenerate.
3315 * config/arm/arm-tables.opt: Regenerate.
3316 * config/arm/arm.c (FL_DIV): Rename...
3317 (FL_THUMB_DIV): ... to this.
3318 (FL_ARM_DIV): Define.
3319 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3320 (arm_arch_hwdiv): Remove.
3321 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3322 (arm_issue_rate): Add cortexr5.
3323 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3324 __ARM_ARCH_EXT_IDIV__.
3325 (TARGET_IDIV): Define.
3326 (arm_arch_hwdiv): Remove.
3327 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3328 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3329 (divsi3, udivsi3): New patterns.
3330 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3331 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3332
11026b51
MJ
33332011-06-01 Martin Jambor <mjambor@suse.cz>
3334
3335 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3336 * ipa-utils.c (searchc): Set scc_no.
3337
b6156cf2
MJ
33382011-06-01 Martin Jambor <mjambor@suse.cz>
3339
3340 * ipa-utils.c (searchc_env): New field allow_overwritable.
3341 (searchc): do not ignore edges to overwritable nodes if indicated
3342 by env->allow_overwritable.
3343 (ipa_reduced_postorder): Set env.allow_overwritable.
3344
6807da97
RG
33452011-06-01 Richard Guenther <rguenther@suse.de>
3346
3347 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3348 char_type_node.
3349 * lto-streamer.c (lto_record_common_node): Take node pointer,
3350 do not register types.
3351 (lto_preload_common_nodes): Explicitly skip preloading nodes
3352 that differ between frontends.
3353
66bd20e7 33542011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
3355
3356 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3357 NON_FLOAT_REGS.
3358
66bd20e7 33592011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
3360
3361 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3362 parameter value for dump. Dump cost on outermost call only.
3363 (rs6000_memory_move_cost): Dump cost on outermost call only.
3364
7351d8da
JJ
33652011-05-31 Jakub Jelinek <jakub@redhat.com>
3366
ead7c399
JJ
3367 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3368 DW_OP_GNU_convert ops.
3369
509f4495
JJ
3370 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3371 cselib_preserve_constants.
3372 (cselib_lookup_1): If cselib_preserve_constants,
3373 a new VALUE is being created for REG and there is a VALUE for the
3374 same register in wider mode, add another loc with lowpart SUBREG of
3375 the wider VALUE.
3376 (cselib_subst_to_values): Handle ENTRY_VALUE.
3377 * var-tracking.c (replace_expr_with_values): Return NULL for
3378 ENTRY_VALUE too.
3379 * dwarf2out.c (convert_descriptor_to_signed): New function.
3380 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3381 instead of two shifts.
3382 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3383 the right mode if needed.
3384 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3385 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3386 convert_descriptor_to_signed.
3387 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3388 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3389
7351d8da
JJ
3390 PR target/48688
3391 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3392
5cc93ee0
UB
33932011-05-31 Uros Bizjak <ubizjak@gmail.com>
3394
3395 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3396 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3397 (SWI248x): New mode iterator, rename from X87MODEI.
3398 (X87MODEI): Remove mode iterator.
3399 (X87MODEI12): Ditto.
3400 (SSEMODEI24): Ditto.
3401
f0686e78
AO
34022011-05-31 Alexandre Oliva <aoliva@redhat.com>
3403
3404 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3405 * doc/invoke.texi: Document max-vartrack-expr-depth.
3406 * var-tracking.c (EXPR_DEPTH): New.
3407 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3408
f3308413
AO
34092011-05-31 Alexandre Oliva <aoliva@redhat.com>
3410
3411 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3412 * config/i386/sse.md: Add n to negated FMA pattern names.
3413
28c14a04
AO
34142011-05-31 Alexandre Oliva <aoliva@redhat.com>
3415
3416 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3417
70efc82d
AO
34182011-05-31 Alexandre Oliva <aoliva@redhat.com>
3419
5cc93ee0 3420 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 3421
6ba5d856
UB
34222011-05-31 Uros Bizjak <ubizjak@gmail.com>
3423
3424 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3425 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3426
34272011-05-31 Uros Bizjak <ubizjak@gmail.com>
3428
3429 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3430 registers. Penalize F*r->o alternative to prevent partial memory
3431 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3432 CONST_DOUBLE immediates when optimizing function for size. Do not move
3433 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3434 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3435 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3436 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3437 alternatives.
3438 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3439
3440 (fp_register_operand splitters): Use fp_register_operand
3441 constraint. Do not use FP_REG_P in insn condition.
3442 (any_fp_register_operand splitters): Use any_fp_register_operand
3443 constraint. Do not use ANY_FP_REG_P in insn condition.
3444
533c07c5
JH
34452011-05-31 Jan Hubicka <jh@suse.cz>
3446
3447 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3448 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3449 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3450 (lto_output_edge): Use output_enum and var_len_unsigned.
3451 (lto_output_varpool_node): Likewise.
3452 (input_overwrite_node): Do not take resolution parameter;
3453 extract it from a bitpack.
3454 (input_node): Do not read resolution; use input_enum and
3455 var_len_unsigned.
3456 (input_varpool_node): Likewise.
3457 (input_edge): Likewise.
3458 (input_cgraph_1): Likewise.
3459
2611db71
RG
34602011-05-31 Richard Guenther <rguenther@suse.de>
3461
3462 * gimple.c (gimple_register_canonical_type): Do not register
3463 any types via gimple_register_type.
3464
b9e57365
JH
34652011-05-31 Jan Hubicka <jh@suse.cz>
3466
3467 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3468 of thunks.
3469
35979cc2
JJ
34702011-05-31 Jakub Jelinek <jakub@redhat.com>
3471
3472 PR rtl-optimization/49235
3473 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3474 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3475
8f7de592
IR
34762011-05-31 Ira Rosen <ira.rosen@linaro.org>
3477
3478 PR tree-optimization/49093
3479 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3480 data references.
3481
8d8a3bda
DS
34822011-05-31 Dodji Seketeli <dodji@redhat.com>
3483
3484 PR debug/49047
3485 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 3486 for concrete functions containing the code of cloned functions.
8d8a3bda 3487
2e87621c
RG
34882011-05-31 Richard Guenther <rguenther@suse.de>
3489
3490 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3491 to ...
3492 (forward_propagate_into_comparison_1): ... this.
3493 (forward_propagate_comparison): Rename to ...
3494 (forward_propagate_into_comparison): ... this. Split out
3495 real forward propagation code to ...
3496 (forward_propagate_comparison): ... this.
3497 (forward_propagate_into_gimple_cond): Remove looping.
3498 (forward_propagate_into_cond): Likewise.
3499 (simplify_not_neg_expr): Return whether we have done something.
3500 (simplify_gimple_switch): Likewise.
3501 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3502 (ssa_forward_propagate_and_combine): ... this. Re-structure
3503 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 3504 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
3505 (pass_forwprop): Adjust.
3506
5a880d5d
ILT
35072011-05-30 Ian Lance Taylor <iant@google.com>
3508
3509 * godump.c (go_format_type): Correct length of name added to
3510 obstack for anonymous field.
3511
5f133038
KK
35122011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3513
3514 PR target/49186
3515 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3516 part of the second operand is 0.
3517
b17d5426
UB
35182011-05-30 Uros Bizjak <ubizjak@gmail.com>
3519
3520 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3521 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3522 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3523 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 3524 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
3525 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3526 when optimizing function for size. Do not move CONST_DOUBLEs
3527 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
3528 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3529 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
3530 check for ANY_FP_REGNO_P instead.
3531 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3532 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3533 function for speed.
3534 * config/i386/i386.c (ix86_option_override_internal): Do not
3535 set TARGET_INTEGER_DFMODE_MOVES here.
3536
a0cd843f
L
35372011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3538
3539 PR target/49168
aad61732 3540 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 3541
006a5f38
JJ
35422011-05-30 Jakub Jelinek <jakub@redhat.com>
3543
3544 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3545 DW_TAG_rvalue_reference_type even for
3546 -gdwarf-4 -fno-debug-types-section.
3547
6e96f98a
BS
35482011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3549
3550 PR tree-optimization/46728
3551 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3552 (build_and_insert_binop): New.
3553 (gimple_expand_builtin_pow): Reorder args for
3554 build_and_insert_call; use build_and_insert_binop; add more
3555 optimizations for fractional exponents.
b17d5426 3556
4f60111f
NF
35572011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3558
3559 PR bootstrap/49190
3560
3561 Revert:
3562 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3563
3564 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3565 tree_common.
3566 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3567 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3568 TS_BASE instead of TS_COMMON.
3569 * varasm.c (assemble_name): Remove assert.
3570
3fd7879d
RS
35712011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3572
3573 * config.gcc: Keep obselete list sorted.
3574
80060f7a
JJ
35752011-05-30 Jakub Jelinek <jakub@redhat.com>
3576 Eric Botcazou <ebotcazou@adacore.com>
3577
3578 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3579 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3580 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3581 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3582 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3583
17e99cdb
RG
35842011-05-30 Richard Guenther <rguenther@suse.de>
3585
3586 * gimple.c (gimple_types_compatible_p_1): Compare record
3587 and union type members properly.
3588
42b05b6e
RG
35892011-05-30 Richard Guenther <rguenther@suse.de>
3590
3591 PR tree-optimization/49210
6ba5d856
UB
3592 * ipa-split.c (split_function): Care for the case where the call
3593 result is not trivially convertible to the result holding variable.
42b05b6e 3594
f3321158
RG
35952011-05-30 Richard Guenther <rguenther@suse.de>
3596
3597 PR tree-optimization/49218
3598 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3599 overflow occured.
3600
d12d8efe
RG
36012011-05-30 Richard Guenther <rguenther@suse.de>
3602
3603 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3604 New function split out from ...
3605 (forward_propagate_into_gimple_cond): ... here. Adjust.
3606 (forward_propagate_into_cond): Likewise.
3607 (forward_propagate_comparison): Also propagate into
3608 comparisons on assignment RHS. Change return value to
3609 behave similar to forward_propagate_into_cond.
3610 (tree_ssa_forward_propagate_single_use_vars): Handle
3611 strict-overflow warnings properly for forward_propagate_comparison.
3612
df33b41f
RO
36132011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3614
3615 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3616 from plugin linker.
3617 * configure: Regenerate.
3618
69940d4d
IR
36192011-05-30 Ira Rosen <ira.rosen@linaro.org>
3620
3621 PR tree-optimization/49199
3622 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 3623 non-reduction operands are either defined in the loop or by induction.
69940d4d 3624
226c52aa
XDL
36252011-05-29 Xinliang David Li <davidxl@google.com>
3626
3627 * opts-global.c (handle_common_deferred_options): Handle new options.
3628 * passes.c (register_one_dump_file): Call register_pass_name.
3629 (execute_one_pass): Check explicit enable/disable flag.
3630 (passr_hash): New function.
3631 (passr_eq): Ditto.
3632 (register_pass_name): Ditto.
3633 (get_pass_by_name): Ditto.
3634 (pass_hash): Ditto.
3635 (pass_eq): Ditto.
3636 (enable_pass): Ditto.
3637 (disable_pass): Ditto.
3638 (is_pass_explicitly_enabled_or_disabled): Ditto.
3639
491d8eed
UB
36402011-05-29 Uros Bizjak <ubizjak@gmail.com>
3641
3642 * config/i386/i386.md (*movoi_internal_avx): Use
3643 standard_sse_constant_opcode for alternative 0.
3644 (*movti_internal_sse): Ditto.
3645 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3646 alternative 2.
3647 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3648 sselog1 type moves.
3649 (*movsi_internal): Ditto.
3650 (*movdi_internal): Ditto. Add ssecvt type moves.
3651
eb93b31f
EB
36522011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3653
3654 PR target/48830
3655 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3656
3f831b7d
JJ
36572011-05-29 Jakub Jelinek <jakub@redhat.com>
3658
3659 PR rtl-optimization/49095
3660 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3661 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3662
ee3ee488
RS
36632011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3664
3665 PR target/43995
3666 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3667 recurse_p argument. Only follow register copies if it is set,
3668 and prevent mips_find_pic_call_symbol from recursing.
3669 (mips_find_pic_call_symbol): Add a recurse_p argument.
3670 Pass it to mips_pic_call_symbol_from_set.
3671 (mips_annotate_pic_calls): Update accordingly.
3672
65f3dedb
RS
36732011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3674
3675 * emit-rtl.c (try_split): Use a loop to search for
3676 NOTE_INSN_CALL_ARG_LOCATIONs.
3677
61e374ab
RG
36782011-05-29 Richard Guenther <rguenther@suse.de>
3679
3680 PR tree-optimization/49217
3681 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3682
fac009a8
JH
36832011-05-28 Jan Hubicka <jh@suse.cz>
3684
3685 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3686 length.
3687 (string_slot_free): Remove
3688 (create_output_block): Initialize obstack.
3689 (destroy_output_block): Free obstack.
3690 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3691 the string unless it needs to be added into the hash.
3692 (lto_output_string_with_length): Add persistent attribute;
3693 handle NULL strings.
3694 (lto_output_string): Add PERSISTENT parameter.
3695 (output_string_cst, output_identifier): Simplify.
3696 (lto_output_location_bitpack): Update.
3697 (lto_output_builtin_tree): Update.
3698 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
3699 (lto_output_string, lto_output_string_with_length): Remove
3700 declarations; functions are static now.
fac009a8 3701
fa766006
JH
37022011-05-28 Jan Hubicka <jh@suse.cz>
3703
3704 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3705 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3706 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3707 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3708 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3709 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3710 unpack_ts_decl_with_vis_value_fields,
3711 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3712 lto_get_builtin_tree): Use enum and variable length i/o.
3713 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3714 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3715 New functions.
3716 (bp_pack_enum, bp_unpack_enum): New macros.
3717
e092158b
RS
37182011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3719
3720 * genrecog.c: Remove redundant forward declarations.
3721
7ca2afa0
RS
37222011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3723
3724 * config.gcc: Deprecate mips*-*-openbsd*.
3725
a601a53a
RS
37262011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3727
3728 PR bootstrap/49195
3729 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3730 for match_op_dup.
3731
fc64b448
AP
37322011-05-27 Andrew Pinski <pinskia@gmail.com>
3733
3734 PR middle-end/48981
3735 * gengtype.c (vec_prefix_type): New function.
3736 (note_def_vec): Use vec_prefix_type and change the length
3737 attribute to be based on the prefix.
3738 * vec.c: Include coretypes.h before vec.h.
3739 (struct vec_prefix): Remove.
3740 (vec_gc_p_reserve): Change the offsetof to sizeof.
3741 (vec_gc_p_reserve_exact): Likewise.
3742 (vec_heap_p_reserve): Likewise.
3743 (vec_heap_p_reserve_exact): Likewise.
3744 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3745 (vec_stack_p_reserve): Change the offsetof to sizeof.
3746 (vec_stack_p_reserve_exact): Likewise.
3747 * vec.h (struct vec_prefix): New struct definition.
3748 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3749 (VEC_T_GTY(T,B)): Likewise.
3750 (DEF_VEC_FUNC_P(T)): Use prefix field.
3751 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3752 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3753
ba869341
BS
37542011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3755
3756 PR tree-optimization/46728
3757 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3758 (powi_as_mults): Add gimple_set_location.
3759 (build_and_insert_call): New.
3760 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3761 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 3762
d296760d
AM
37632011-05-27 Alexander Monakov <amonakov@ispras.ru>
3764
3765 * doc/contrib.texi: Update copyright years.
3766 (Contributors): Add Zdenek Sojka.
3767
38e01f9e
NF
37682011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3769
3770 * c-decl.c (c_push_function_context): Copy the current statement
3771 list stack.
3772 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3773 (finish_struct): Call building_stmt_list_p instead of checking
3774 cur_stmt_list.
3775 * c-parser.c (c_parser_postfix_expression): Likewise.
3776 * c-typeck.c (c_end_compound_stmt): Likewise.
3777 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3778 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3779 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3780 (free_stmt_list): Likewise.
3781 * tree.h (struct tree_statement_list): Include typed_tree instead
3782 of tree_common.
3783 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3784 as TS_TYPED instead of TS_COMMON.
3785
8950516e 37862011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 3787 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
3788
3789 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3790 (HAVE_AS_IX86_TLSGDPTL): Define.
3791 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3792 (HAVE_AS_IX86_TLSLDMPLT): Define.
3793 * configure: Regenerate.
3794 * config.in: Regenerate.
3795 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3796 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3797 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3798 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3799 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3800 @tlsldmplt or @plt.
3801 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3802
b0bd15f7
BS
38032011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3804
3805 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3806 and reverse_cond.
3807 (INSN_COND, INSN_REVERSE_COND): New macros.
3808 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3809 once.
3810 (sched_get_condition_with_rev): Cache the results, and look them up
3811 if possible.
3812 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3813 are clobbered by the current insn.
3814 * target.def (exposed_pipline): New sched data hook.
3815 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3816 * doc/tm.texi: Regenerate.
3817
fa65a9cf
BS
38182011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3819
3820 PR tree-optimization/49170
3821 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3822 sincos or cexp.
b0bd15f7 3823
c2299dfe
RG
38242011-05-27 Richard Guenther <rguenther@suse.de>
3825
3826 PR middle-end/49189
3827 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3828 of comparisons.
3829
a95b23b4
BS
38302011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3831
3832 * haifa-sched.c (sched_scan_info): Remove.
3833 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3834 with NULL args.
3835 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3836 Remove functions.
3837 (sched_scan): Remove.
3838 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3839 static. All callers changed.
3840 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3841 static. All callers changed.
3842 (sched_init_luids): Remove all arguments except the first. All
3843 callers changed. Don't use sched_scan.
3844 (haifa_init_h_i_d): Likewise.
3845 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3846 manually rather than using sched_init_luids. Likewise with
3847 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3848 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3849 rather than sched_init_luids with NULL args.
3850 * sel-sched-ir.c (new_insns): Remove variable.
3851 (sched_scan): New static function, previously in haifa-sched.c. Remove
3852 all arguments but the first two; all callers changed.
3853 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3854 rather than sched_init_luids.
3855 (sel_init_bbs): Remove second argument. All callers changed.
3856 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3857 with NULL arguments.
3858 (create_insn_rtx_from_pattern): Likewise.
3859 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3860 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3861 (sched_init_insn_luid, sched_extend_luids): Declare.
3862 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3863 declarations.
3864
f8f972fc
RB
38652011-05-27 Richard Guenther <rguenther@suse.de>
3866
3867 PR middle-end/49177
3868 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3869 A CMP B ? (T) true : (T) false for non-integral types T again.
3870
51a9ed47
JH
38712011-05-27 Jan Hubicka <jh@suse.cz>
3872
3873 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3874 so 0 means NULL string.
3875 (lto_output_string_with_length): ... here.
f8f972fc
RB
3876 (lto_output_string, output_string_cst, output_identifier): Update
3877 handling of NULL strings.
51a9ed47
JH
3878 (lto_output_location_bitpack): New function.
3879 (lto_output_location): Use it.
3880 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
3881 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3882 len values.
3883 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3884 values by 1.
491d8eed 3885 (input_string_internal): ... here;
f8f972fc
RB
3886 (input_string_cst, input_identifier, lto_input_string): Update handling
3887 of NULL strings.
51a9ed47
JH
3888 (lto_input_location_bitpack): New function
3889 (lto_input_location): Use it.
f8f972fc
RB
3890 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3891 values.
51a9ed47
JH
3892 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3893 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3894 (bp_pack_value): Sanity check the value range.
3895 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3896 New functions.
3897 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3898 New functions.
3899
66bd20e7 39002011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
3901
3902 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3903 call_arg_location instructions down the floor.
3904
574e418a
VM
39052011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3906
3907 PR rtl-optimization/49154
3908 * ira.c (setup_pressure_classes): Process class without sublcasses
3909 as a candidate for pressure classes.
3910
6a1a787e
RS
39112011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3912
3913 PR rtl-optimization/48575
3914 * genrecog.c (position_type): New enum.
3915 (position): New structure.
3916 (decision): Use position structure instead of a string.
3917 (root_pos, peep2_insn_pos_list): New variables.
3918 (next_position, compare_positions): New functions.
3919 (new_decision): Use position structures instead of strings.
3920 (maybe_both_true): Likewise.
3921 (change_state): Likewise.
3922 (write_tree): Likewise.
3923 (make_insn_sequence): Likewise.
3924
92e948a8
NF
39252011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3926
3927 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3928 TS_BASE instead of TS_COMMON.
3929 (find_decls_types_r): Check for TS_TYPED structure before looking at
3930 TREE_TYPE.
3931 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3932 Add chain field.
3933 (BLOCK_CHAIN): Use new chain field.
3934
66bd20e7 39352011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
3936
3937 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3938 moves expensive on Power7 also.
3939
1f498652
RG
39402011-05-26 Richard Guenther <rguenther@suse.de>
3941
3942 * fold-const.c (fold_unary_loc): Remove bogus code.
3943
a2fc3e63
NF
39442011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3945
3946 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3947 tree_common.
3948 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3949 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3950 TS_BASE instead of TS_COMMON.
3951 * varasm.c (assemble_name): Remove assert.
3952
d11bf18f
BS
39532011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3954
3955 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3956 substituted first.
3957 * libgcc-std.ver: Delete file.
3958
ac8e1875
RG
39592011-05-26 Richard Guenther <rguenther@suse.de>
3960
3961 PR tree-optimization/48702
3962 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3963 only when we know the base address is within bounds.
3964 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3965 assume the base address of TARGET_MEM_REFs is in bounds.
3966
7e32e652
RO
39672011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3968
3969 PR target/49099
3970 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3971 declaration in TARGET_SOLARIS.
3972
66bd20e7 39732011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
3974
3975 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 3976 The instruction is then expanded explicitly.
43660e0b
HS
3977 (supported_compare): Callable instruction.
3978 (compare): Likewise.
3979
1537737f
JJ
39802011-05-26 Jakub Jelinek <jakub@redhat.com>
3981
3982 PR c++/49165
3983 * gimplify.c (shortcut_cond_r): Don't special case
3984 COND_EXPRs if they have void type on one of their arms.
3985
7b1ac803
BS
39862011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3987
3988 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3989 to reduce duplication, and to achieve a slightly more logical order
3990 of operations.
3991
1aa9438f
JJ
39922011-05-26 Jakub Jelinek <jakub@redhat.com>
3993
3994 PR tree-optimization/49161
3995 * tree-vrp.c (struct case_info): New type.
3996 (compare_case_labels): Sort case_info structs instead of
3997 trees, and not primarily by CASE_LABEL uids but by
3998 label_for_block indexes.
3999 (find_switch_asserts): Put case labels into struct case_info
4000 array instead of TREE_VEC, adjust sorting, compare label_for_block
4001 values instead of CASE_LABELs.
4002
50fed7bf
RR
40032011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4004
4005 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4006 ("orndi3_neon"): Likewise.
4007 ("bic<mode>3_neon"): Likewise.
4008
48df3fa6
IR
40092011-05-26 Ira Rosen <ira.rosen@linaro.org>
4010
4011 PR tree-optimization/49038
4012 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4013 Ensure at least one epilogue iteration if required by data
4014 accesses with gaps.
4015 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4016 to mark loops that require peeling for gaps.
4017 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4018 (vect_get_known_peeling_cost): Take peeling for gaps into
4019 account.
4020 (vect_transform_loop): Generate epilogue if required by data
4021 access with gaps.
4022 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4023 loop as requiring an epilogue if there are gaps in the end of
4024 the strided group.
4025
53febcba
ILT
40262011-05-25 Ian Lance Taylor <iant@google.com>
4027
4028 * godump.c (go_format_type): Output the first field with a usable
4029 Go type, if any.
4030
dbbc4d4c
ILT
40312011-05-25 Ian Lance Taylor <iant@google.com>
4032
4033 * godump.c (go_format_type): Check for invalid type names, pointer
4034 target types, and struct field types.
4035
f03a5402
JM
40362011-05-25 Jason Merrill <jason@redhat.com>
4037
4038 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4039
c497c412
UB
40402011-05-25 Uros Bizjak <ubizjak@gmail.com>
4041
4042 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4043
e470affe
L
40442011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4045
4046 * config/i386/i386.md (*movqi_extv_1)): Put back
4047 "register_operand" check in "type" calculation.
4048 (*movqi_extzv_2): Likewise.
4049
6c81b2bc
L
40502011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4051
c497c412 4052 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 4053
0c007eb2
BS
40542011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4055
4056 PR bootstrap/49160
4057 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4058 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4059 __divxc3, __divtc3): Wrap definitions in #ifndef.
4060
521ca78e
L
40612011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4062
4063 PR target/49142
4064 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4065 "register_operand" check and replace q_regs_operand with
4066 QIreg_operand in "type" calculation.
4067 (*movqi_extv_1): Likewise.
4068 (*movqi_extzv_2_rex64): Likewise.
4069 (*movqi_extzv_2): Likewise.
4070
4071 * config/i386/predicates.md (QIreg_operand): New.
4072
29f8b844
RG
40732011-05-25 Richard Guenther <rguenther@suse.de>
4074
4075 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4076 type-based offset disambiguation, streamline MEM_REF and
4077 TARGET_MEM_REF handling.
4078
74838de3
L
40792011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4080
4081 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4082 (bdesc_special_args): Add pause intrinsic.
4083
4084 * config/i386/i386.md (UNSPEC_PAUSE): New.
4085 (pause): Likewise.
4086 (*pause): Likewise.
4087 * config/i386/ia32intrin.h (__pause): Likewise.
4088
4089 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4090 pause intrinsic.
4091
d24ad7d6
BS
40922011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4093
4094 PR tree-optimization/46728
4095 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4096 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 4097
d9f8303f
NF
40982011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4099
4100 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4101 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4102 instead of TS_COMMON.
4103
cdbf4541
BS
41042011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4105
4106 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4107 LIBGCC2_GNU_PREFIX is defined.
4108 (__N): New macro.
4109 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4110 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4111 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4112 __clz_tab): Define using __N.
4113 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4114 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4115 * target.def (libfunc_gnu_prefix): New hook.
4116 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4117 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4118 * doc/tm.texi: Regenerate.
4119 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4120 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4121 account.
4122 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4123 (init_optabs): Likewise for the bswap libfuncs.
4124 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4125 and divide.
4126 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4127 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4128 * libgcc-std.ver: Remove.
4129 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4130 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4131 libgcc-std.ver.
4132 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4133 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4134 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4135 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4136 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4137 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4138 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4139 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4140 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4141 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4142
f242c0a5
JH
41432011-05-25 Jan Hubicka <jh@suse.cz>
4144
4145 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4146 (lto_output_tree): Use output_record_start.
4147 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4148 (lto_get_pickled_tree): Use input_record_start.
4149 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4150 (lto_value_range_error): New function.
4151 * lto-streamer.h (lto_value_range_error): Declare.
4152 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4153 (lto_output_enum, lto_input_enum): New macros.
4154
a11e0df4
EB
41552011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4156
4157 * common.opt (flag_stack_usage_info): New variable.
4158 (-Wstack-usage): New option.
4159 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4160 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4161 <OPT_fstack_usage>: Likewise.
4162 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4163 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4164 of flag_stack_usage.
4165 (emit_library_call_value_1): Likewise.
4166 * explow.c (allocate_dynamic_stack_space): Likewise.
4167 * function.c (instantiate_virtual_regs ): Likewise.
4168 (prepare_function_start): Likewise.
4169 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4170 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4171 * config/arm/arm.c (arm_expand_prologue): Likewise.
4172 (thumb1_expand_prologue): Likewise.
4173 * config/avr/avr.c (expand_prologue): Likewise.
4174 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4175 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4176 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4177 * config/mips/mips.c (mips_expand_prologue): Likewise.
4178 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4179 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4180 * config/s390/s390.c (s390_emit_prologue): Likewise.
4181 * config/sh/sh.c (sh_expand_prologue): Likewise.
4182 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4183 * config/spu/spu.c (spu_expand_prologue): Likewise.
4184
e7cfe241
RG
41852011-05-25 Richard Guenther <rguenther@suse.de>
4186
4187 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4188 (gimple_canonical_types_compatible_p): Likewise.
4189
c5235f4c
JH
41902011-05-25 Jan Hubicka <jh@suse.cz>
4191
4192 PR middle-end/49062
4193 * ipa.c (function_and_variable_visibility): Only add to same
4194 comdat group list if DECL_ONE_ONLY.
4195
8242a0f6
AB
41962011-05-25 Andrey Belevantsev <abel@ispras.ru>
4197
4198 PR rtl-optimization/49014
4199 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4200
642a011d
JJ
42012011-05-25 Jakub Jelinek <jakub@redhat.com>
4202
4203 PR target/49128
4204 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4205
30a435d8
VM
42062011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4207
4208 PR rtl-optimization/48757
4209 * ira-build.c (loop_with_eh_edge_p): Rename to
4210 loop_with_complex_edge_p, check edges on complexity, make function
4211 conditional.
4212 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4213 conditional.
4214
24d1bbc7
EB
42152011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4216
4217 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4218 force flag_ira_share_save_slots to 0.
4219
65773087
EB
42202011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4221
4222 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4223 (vt_initialize): Set PROLOGUE_BB unconditionally.
4224 Add block comment about CFA_BASE_RTX machinery.
4225 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4226 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4227
4e26ba90
NP
42282011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4229
4230 PR objc/48187
4231 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4232 parsing of syntax error in ObjC instance variable lists. In
4233 particular, avoid an infinite loop if there is a stray ']'.
4234 Updated error message.
4235
936fd13c
ILT
42362011-05-24 Ian Lance Taylor <iant@google.com>
4237
4238 * godump.c (go_define): Don't accept a string immediately after
4239 another operand.
4240
f17333e3
ILT
42412011-05-24 Ian Lance Taylor <iant@google.com>
4242
4243 * godump.c (struct godump_container): Add invalid_hash field.
4244 (go_format_type): Return false if type is found in invalid_hash.
4245 (go_output_typedef): Add invalid type to invalid_hash.
4246 (go_finish): Create and delete invalid_hash.
4247
d24ad7d6 42482011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 4249
78be79d5
BS
4250 PR tree-optimization/46728
4251 * tree-ssa-math-opts.c (powi_table): New.
4252 (powi_lookup_cost): New.
4253 (powi_cost): New.
4254 (powi_as_mults_1): New.
4255 (powi_as_mults): New.
4256 (gimple_expand_builtin_powi): New.
4257 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4258 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 4259
caee412b
RO
42602011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4261
4262 PR target/3746
4263 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4264 mips-tdump native.
4265 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4266 * mips-tdump.c: Likewise.
4267
5eed4f27
L
42682011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4269
4270 PR target/49128
4271 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4272 add -mno-XXX. Handle FMA.
4273
8c5fdaae
VM
42742011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4275
4276 PR rtl-optimization/48633
4277 * ira-build.c (loop_with_eh_edge_p): New function.
4278 (mark_loops_for_removal): Use it.
4279
42802011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
4281
4282 PR rtl-optimization/48971
4283 * ira.c (setup_pressure_classes): Don't check register move cost
4284 for classes with one registers. Don't add pressure class if there
4285 is a pressure class with the same available hard registers.
4286 Check contains_reg_of_mode. Fix a typo in collecting
4287 temp_hard_regset. Ignore hard registers not belonging to a class.
4288
df1f7315
UB
42892011-05-24 Uros Bizjak <ubizjak@gmail.com>
4290
4291 PR target/49133
4292 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4293
ee0cb37c
EB
42942011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4295 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4296
4297 PR gcov-profile/48845
4298 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4299
6a20ce76
RG
43002011-05-24 Richard Guenther <rguenther@suse.de>
4301
4302 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4303 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4304 (gimple_types_compatible_p_1): Adjust.
4305 (iterative_hash_canonical_type): Do not bother about complete vs.
4306 incomplete types.
4307 (gimple_canonical_types_compatible_p): Likewise.
4308
2fcb858c
RO
43092011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4310
4311 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4312
96d91dcf
RG
43132011-05-24 Richard Guenther <rguenther@suse.de>
4314
4315 PR bootstrap/49078
4316 * gimple.c (gimple_register_canonical_type): Revert
4317 previous change.
4318 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4319 does not for a tree for the case where it matters. Cache
4320 pointer-type alias-sets.
4321
1ed1641d
JM
43222011-05-24 Joseph Myers <joseph@codesourcery.com>
4323
4324 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4325 (OBJS): Remove options.o, opts-common.o and prefix.o.
4326 (OBJS-libcommon-target): New.
4327 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4328 (BACKEND): Include libcommon-target.a.
4329 (MOSTLYCLEANFILES): Include libcommon-target.a.
4330 (libcommon-target.a): New.
4331 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4332 prefix.o.
4333
57dfdff0
JM
43342011-05-23 Joseph Myers <joseph@codesourcery.com>
4335
4336 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4337 parts of output shared with the driver.
4338 * optc-gen.awk: Don't generate parts of output not shared with the
4339 driver.
4340 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4341 * doc/options.texi (SourcerInclude): Mention options-save.c.
4342 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4343 (OBJS): Add options-save.o.
4344 (options-save.c, options-save.o): New.
4345 (options.o): Update dependencies.
4346 (gcc-options.o): Remove.
4347 (mostlyclean): Remove options-save.c.
4348
0e0d82a7
JJ
43492011-05-23 Jakub Jelinek <jakub@redhat.com>
4350
9166988f
JJ
4351 PR debug/49032
4352 * dbxout.c: Include cgraph.h.
4353 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4354 and without value expr, return NULL if no varpool node exists for
4355 it or if it is not needed.
4356 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4357
0e0d82a7
JJ
4358 PR c/49120
4359 * c-decl.c (start_decl): Convert expr to void_type_node.
4360
65712d5c
RS
43612011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4362
4363 PR rtl-optimization/48826
4364 * emit-rtl.c (try_split): When splitting a call that is followed
4365 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4366
9025085e
JJ
43672011-05-23 Jakub Jelinek <jakub@redhat.com>
4368
4369 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4370 parameters passed in memory prefer using DECL_INCOMING_RTL over
4371 the pseudos it will be copied into.
4372
34a061be
L
43732011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4374
4375 PR target/47315
4376 * config/i386/i386.c (ix86_option_override_internal): Save the
4377 initial options after checking vzeroupper.
4378
c375a3a4
DL
43792011-05-23 David Li <davidxl@google.com>
4380
4381 PR tree-optimization/48988
4382 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4383 Initialize has_valid_pred for each pred chain.
4384
e1caba18
RG
43852011-05-23 Richard Guenther <rguenther@suse.de>
4386
4387 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4388 (iterative_hash_gimple_type): Always hash type names.
4389
dde05067
NF
43902011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4391
4392 * c-typeck.c (build_function_call_vec): Tweak call to
4393 check_function_arguments.
4394
094f6ab3
RG
43952011-05-23 Richard Guenther <rguenther@suse.de>
4396
4397 PR tree-optimization/49115
4398 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4399 is not necessarily carried out, do not claim it kills the ref.
4400 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4401
9a9822e1
RG
44022011-05-23 Richard Guenther <rguenther@suse.de>
4403
4404 PR middle-end/15419
4405 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4406 what pointer types we accept for folding.
4407
c8028650
RO
44082011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4409
4410 * gthr-gnat.c: Remove.
4411 * gthr-gnat.h: Remove.
4412 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4413 * config/t-freebsd (LIB2ADDEH): Likewise.
4414 * config/t-linux (LIB2ADDEH): Likewise.
4415 * config/t-sol2 (LIB2ADDEH): Likewise.
4416 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4417 * configure.ac (target_thread_file): Remove gnat handling.
4418 * configure: Regenerate.
4419 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4420
15882fe9
TG
44212011-05-23 Tristan Gingold <gingold@adacore.com>
4422 Eric Botcazou <ebotcazou@adacore.com>
4423
4424 * gcov.c (create_file_names): If no object directory is specified,
4425 keep the directory of the file.
4426
da90c957
RO
44272011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4428
4429 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4430 * configure: Regenerate.
4431
7bba408b
JJ
44322011-05-23 Jakub Jelinek <jakub@redhat.com>
4433
4434 PR middle-end/48973
4435 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4436 failed and the comparison has a single bit signed type, use
4437 constm1_rtx instead of const1_rtx for true value.
4438 (do_store_flag): If ops->type is single bit signed type, disable
4439 signel bit test optimization and pass -1 instead of 1 as last
4440 parameter to emit_store_flag_force.
4441
bc69f7ff
TV
44422011-05-23 Tom de Vries <tom@codesourcery.com>
4443
4444 PR target/45098
4445 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4446 function.
4447 (infer_loop_bounds_from_undefined): Use new function.
4448
29cedf8e
RS
44492011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4450
4451 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4452 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4453 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4454 and -O0 otherwise.
4455 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4456
afe8b6ec
EB
44572011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4458
4459 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4460 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4461 returns true.
4462
872dab53
RS
44632011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4464
4465 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4466
145f6c5b
EB
44672011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4468
4469 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4470 UNSPEC_MOVE_PIC pattern.
4471
8ac79835
EB
44722011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4473
4474 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4475 (sparc-*-rtems*): Likewise.
4476 (sparc64-*-elf*): Likewise.
4477 (sparc64-*-rtems*): Likewise.
4478 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4479 * config/sparc/t-crtin: New file.
4480 * config/sparc/t-sol2 (crti.o): Delete rule.
4481 (crtn.o): Likewise.
4482 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4483 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4484 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4485 (ENDFILE_SPEC): Add crtn.o.
4486
5fb43dd8
TV
44872011-05-22 Tom de Vries <tom@codesourcery.com>
4488
4489 PR middle-end/48689
4490 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4491 CODE_CONTAINS_STRUCT (TS_COMMON).
4492
ccb1b17b
JJ
44932011-05-22 Jakub Jelinek <jakub@redhat.com>
4494
4495 PR middle-end/49029
4496 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4497 only after deciding which mode to use.
4498
50ad7db2
TV
44992011-05-22 Tom de Vries <tom@codesourcery.com>
4500
4501 PR target/45098
dc0a3366 4502 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
4503 for call to get_shiftadd_cost.
4504
ef230b38
UB
45052011-05-22 Uros Bizjak <ubizjak@gmail.com>
4506
4507 PR target/49104
4508 * config/i386/cpuid.h (bit_MMXEXT): New define.
4509
15f072f9
NC
45102011-05-22 Nick Clifton <nickc@redhat.com>
4511
4512 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4513 initialisation of non-existant args[2] element. Use args[] array
4514 not arg[] array to pass arguments to build_function_type_list.
4515
e38fdc94
IR
45162011-05-22 Ira Rosen <ira.rosen@linaro.org>
4517
4518 PR tree-optimization/49087
ef230b38 4519 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 4520
5b018c65
JM
45212011-05-21 Jason Merrill <jason@redhat.com>
4522
4523 PR c++/49092
4524 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4525 static storage duration.
4526
abd9a770
EB
45272011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4528
4529 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4530 frame pointer.
4531
bd9a3248
EB
45322011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4533
4534 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4535 false if there are call-saved registers here...
4536 (sparc_can_use_return_insn_p): ...but here instead.
4537 (save_or_restore_regs): Fix thinko.
4538 (sparc_expand_prologue): Use current_function_is_leaf.
4539 (sparc_frame_pointer_required): Likewise.
4540
a5dfec9a
NC
45412011-05-21 Nick Clifton <nickc@redhat.com>
4542
4543 PR target/49098
4544 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4545
555c3771
NP
45462011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4547
4548 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4549 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4550
86fa5de4
JM
45512011-05-21 Joseph Myers <joseph@codesourcery.com>
4552
4553 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4554 * optc-gen.awk: Move common code to opt-read.awk.
4555 * opth-gen.awk: Likewise.
ef230b38 4556 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 4557
bce33ab2
NF
45582011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4559
4560 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4561
e6450c11
TV
45622011-05-20 Tom de Vries <tom@codesourcery.com>
4563
4564 PR target/45098
4565 * tree-ssa-loop-ivopts.c: Include expmed.h.
4566 (get_shiftadd_cost): New function.
4567 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4568
0e8b84ec
JJ
45692011-05-20 Jakub Jelinek <jakub@redhat.com>
4570
4571 PR bootstrap/49086
4572 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4573 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4574
946bdf67
JM
45752011-05-20 Joseph Myers <joseph@codesourcery.com>
4576
4577 * Makefile.in: Update comment referring to $(OBJS-common).
4578
c53aafdf
ILT
45792011-05-20 Ian Lance Taylor <iant@google.com>
4580
4581 * godump.c (go_output_typedef): Put enum constants in the macro
4582 hash table to avoid duplicate Go const definitions.
4583
2691e6d7
JM
45842011-05-20 Joseph Myers <joseph@codesourcery.com>
4585
4586 * Makefile.in (LIBDEPS): Add libcommon.a.
4587 (LIBS): Likewise.
4588 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4589 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4590 pretty-print.o and version.o.
4591 (OBJS-libcommon): New.
4592 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4593 (BACKEND): Add libcommon.a.
4594 (MOSTLYCLEANFILES): Likewise.
4595 (libcommon.a): New.
4596 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4597 (cpp$(exeext)): Likewise.
4598 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4599 pretty-print.o and input.o.
4600 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4601 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4602 (errors.o): Remove.
4603 (mips-tfile): Don't explicitly use version.o.
4604 (mips-tdump): Likewise.
4605 (gcov.o): Depend on $(DIAGNOSTIC_H).
4606 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4607 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4608 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4609 * gcov-dump.c: Include intl.h and diagnostic.h.
4610 (main): Initialize diagnostics.
4611 * gcov.c: Include diagnostic.h.
4612 (fnotice): Remove.
4613 (main): Initialize diagnostics.
4614 * lto-wrapper.c: Include diagnostic.h.
4615 (main): Initialize diagnostics.
4616
252b3e8c
MM
46172011-05-20 Michael Matz <matz@suse.de>
4618
4619 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4620
2ee36ba6
MM
46212011-05-20 Michael Matz <matz@suse.de>
4622 Richard Guenther <rguenther@suse.de>
4623
4624 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4625 use lto_streamer_cache_append directly instead of returning a VEC.
4626 (preload_common_node): Remove.
4627 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4628 track seen nodes.
4629 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4630
90ff582f
RG
46312011-05-20 Richard Guenther <rguenther@suse.de>
4632
4633 PR tree-optimization/49079
4634 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4635 MEM_REFs correctly for the trailing array access detection.
4636 Special case constants the same way as decls for overall size
4637 constraining.
4638
3cda91d8
UB
46392011-05-20 Uros Bizjak <ubizjak@gmail.com>
4640
4641 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4642 argument expansion.
4643
6c66f733
JJ
46442011-05-20 Jakub Jelinek <jakub@redhat.com>
4645
4646 PR tree-optimization/49073
3cda91d8
UB
4647 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4648 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
4649 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4650
0ea80a16
RG
46512011-05-20 Richard Guenther <rguenther@suse.de>
4652
4653 PR middle-end/48849
4654 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4655 of pointer types the same way the middle-end does.
4656
fb291a1e
RG
46572011-05-20 Richard Guenther <rguenther@suse.de>
4658
3cda91d8
UB
4659 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4660 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 4661
37cb25ed
QN
46622011-05-19 Quentin Neill <quentin.neill@amd.com>
4663
4664 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4665 (fma4_fmaddsub): Likewise
4666
a30726a4
JH
46672011-05-19 Jan Hubicka <jh@suse.cz>
4668
4669 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4670 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4671 (type_pair_cache): New static var.
4672 (lookup_type_pair): Use fixed sized custom hash; make inline.
4673 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4674 calls of lookup_type_pair.
4675 (print_gimple_types_stats): Remove cache stats.
4676 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4677 and gtc_ob.
4678
0955cf61
UB
46792011-05-19 Uros Bizjak <ubizjak@gmail.com>
4680
4681 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4682 when TARGET_RDRND is active.
4683 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4684 Generate dummy SImode target register when target is NULL.
4685
12d844c8
JM
46862011-05-19 Joseph Myers <joseph@codesourcery.com>
4687
4688 * config/arm/arm-fpus.def: New.
4689 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4690 arm-fpus.def.
4691 * config/arm/arm-tables.opt: Regenerate.
4692 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4693 (arm_option_override): Don't decode FPU name to string here.
4694 * config/arm/arm.opt (mfpu=): Use Enum.
4695 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4696 Update dependencies.
4697
9e350e99
JM
46982011-05-19 Joseph Myers <joseph@codesourcery.com>
4699
4700 * collect2.c: Include diagnostic.h.
4701 (fatal_perror, fatal, error, fancy_abort): Remove.
4702 (main): Set progname. Call xmalloc_set_program_name and
4703 diagnostic_initialize.
4704 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4705 scan_libraries, resolve_lib_name): Call fatal_error instead of
4706 fatal and fatal_perror.
4707 * collect2.h (error, fatal, fatal_perror): Don't declare.
4708 * tlink.c: Include diagnostic-core.h.
4709 (recompile_files): Call fatal_error instead of fatal_perror.
4710 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4711 pretty-print.o and input.o.
4712 (collect2.o, tlink.o): Update dependencies.
4713
86ff4081
RO
47142011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4715
4716 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4717
2ca48caa
RO
47182011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4719
4720 PR target/40483
4721 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4722 COMDAT group syntax, both SPARC and x86 variants.
4723 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4724 * configure: Regenerate.
4725 * config/sol2.h (TARGET_SOLARIS): Define.
4726 (PUSHSECTION_FORMAT): Remove.
4727 (SECTION_NAME_FORMAT): Define.
4728 * config/sol2.c: Include hashtab.h.
4729 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4730 expansion, using SECTION_NAME_FORMAT.
4731 (solaris_comdat_htab): New variable.
4732 (struct comdat_entry): Define.
4733 (comdat_hash): New function.
4734 (comdat_eq): New function.
4735 (solaris_elf_asm_comdat_section): New function.
4736 (solaris_define_comdat_signature): New function.
4737 (solaris_code_end): New function.
4738 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4739 (solaris_code_end): Declare.
4740 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4741 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4742 solaris_code_end.
4743 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4744 Remove ATTRIBUTE_UNUSED.
4745 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4746 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 4747 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
4748 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4749 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4750 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4751 (PUSHSECTION_FORMAT): Remove.
4752 (SECTION_NAME_FORMAT): Redefine.
4753
da5fb469
KT
47542011-05-19 Kai Tietz <ktietz@redhat.com>
4755
4756 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4757 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4758 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4759
1651e703 47602011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
4761 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4762
4763 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4764
e497b9bd
RG
47652011-05-19 Richard Guenther <rguenther@suse.de>
4766
4767 PR middle-end/48985
4768 * tree-object-size.c (addr_object_size): If the pointed-to
4769 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4770
31b3ca64
RG
47712011-05-19 Richard Guenther <rguenther@suse.de>
4772
4773 * gimple.c (gimple_types_compatible_p_1): Compare names of
4774 the types themselves.
4775 (iterative_hash_gimple_type): And hash them that way.
4776 (gimple_register_type_1): If we register a main variant properly
4777 initialize the leader to ourselves.
4778
bb8d292d
TV
47792011-05-19 Tom de Vries <tom@codesourcery.com>
4780
4781 PR target/45098
4782 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4783 get_loop_invariant_expr_id.
4784 (get_loop_invariant_expr_id): Use get_expr_id.
4785 (parm_decl_cost): New function.
4786 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4787 Improve bound cost estimation. Use different inv_expr_id for elim and
4788 express cases.
4789
a53c5024
TV
47902011-05-19 Tom de Vries <tom@codesourcery.com>
4791
4792 PR target/45098
4793 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4794 cost_base.cost == 0.
4795
31f9eb59
L
47962011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4797
4798 PR target/49002
66bd20e7
EB
4799 * config/i386/sse.md
4800 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4801 load cast.
31f9eb59 4802
681056ae
JJ
48032011-05-18 Jakub Jelinek <jakub@redhat.com>
4804
4805 PR tree-optimization/49039
4806 * tree-vrp.c (extract_range_from_binary_expr): For
4807 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4808 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4809
b5ee6752
TV
48102011-05-18 Tom de Vries <tom@codesourcery.com>
4811
4812 PR target/45098
4813 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4814
0bda47a3
UB
48152011-05-18 Uros Bizjak <ubizjak@gmail.com>
4816
4817 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4818 (*tls_global_dynamic_64): Ditto.
4819 (*tls_local_dynamic_base_32_gnu): Ditto.
4820 (*tls_local_dynamic_base_64): Ditto.
4821 (tls_initial_exec_64_sun): Ditto.
4822
033b0805
SH
48232011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4824
4825 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4826 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4827 bf592-none.
4828 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4829 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4830 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4831 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 4832 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
4833 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4834 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4835
ba163417
JM
48362011-05-18 Joseph Myers <joseph@codesourcery.com>
4837
4838 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 4839 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
4840 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4841 target_thread_pointer, arm_structure_size_boundary, struct
4842 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4843 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
4844 (arm_option_override) Don't process most enumerated option values here.
4845 Don't process target_fpe_name here. Work with integer not string for
4846 structure size boundary; use separate diagnostics for each case.
ba163417
JM
4847 * config/arm/arm.h (enum float_abi_type, enum
4848 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4849 to arm-opts.h.
4850 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4851 arm_structure_size_boundary): Remove.
4852 * config/arm/arm.opt (mabi=): Use Enum and Init.
4853 (arm_abi_type): New Enum and EnumValue entries.
4854 (mfloat-abi=): Use Enum and Init.
4855 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 4856 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
4857 (mfp16-format=): Use Enum and Init.
4858 (arm_fp16_format_type): New Enum and EnumValue entries.
4859 (mstructure-size-boundary=): Use UInteger and Init.
4860 (mtp=): Use Enum and Init.
4861 (arm_tp_type): New Enum and EnumValue entries.
4862
179184e3
RG
48632011-05-18 Richard Guenther <rguenther@suse.de>
4864
4865 PR tree-optimization/49018
4866 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4867 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4868 gimple_has_side_effects.
4869
93b2a207
RG
48702011-05-18 Richard Guenther <rguenther@suse.de>
4871
4872 * gimple.c (gimple_register_type_1): New function, split out from ...
4873 (gimple_register_type): ... here. Avoid infinite recursion.
4874
b010117a
IR
48752011-05-18 Ira Rosen <ira.rosen@linaro.org>
4876
4877 PR tree-optimization/41881
4878 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4879 reduction_chains along with a macro for its access.
4880 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4881 (destroy_loop_vec_info): Free reduction chains.
4882 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4883 (vect_is_slp_reduction): New function.
4884 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4885 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4886 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4887 definition types for reduction chains.
4888 (vect_supported_load_permutation_p): Don't allow permutations for
4889 reduction chains.
4890 (vect_analyze_slp_instance): Support reduction chains.
4891 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4892 (vect_get_constant_vectors): Handle reduction chains.
4893 (vect_schedule_slp_instance): Mark the first statement of the
4894 reduction chain as reduction.
4895
e14c1050
IR
48962011-05-18 Ira Rosen <ira.rosen@linaro.org>
4897
4898 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4899 names for group elements access.
4900 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4901 reduction chains as well. Remove data reference and interleaving
4902 related words from the fields names.
4903 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4904 elements access.
4905 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4906 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4907 vect_update_interleaving_chain, vect_same_range_drs,
4908 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4909 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4910 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4911 vect_analyze_group_access, vect_analyze_data_ref_access,
4912 vect_create_data_ref_ptr, vect_transform_strided_load,
4913 vect_record_strided_load_vectors): Likewise.
4914 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4915 vect_model_load_cost, vectorizable_store, vectorizable_load,
4916 vect_remove_stores, new_stmt_vec_info): Likewise.
4917 * tree-vect-slp.c (vect_build_slp_tree,
4918 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4919
51c213f7
RG
49202011-05-18 Richard Guenther <rguenther@suse.de>
4921
4922 PR middle-end/48989
4923 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4924 operand verification.
4925 (verify_gimple_assign_binary): Likewise.
4926 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4927 to non-1-precision BOOLEAN_TYPEs.
4928
8f5e5434
TV
49292011-05-18 Tom de Vries <tom@codesourcery.com>
4930
4931 PR target/45098
4932 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4933
116bc3a4
JJ
49342011-05-18 Jakub Jelinek <jakub@redhat.com>
4935
4936 PR tree-optimization/49000
4937 * tree-ssa.c (execute_update_addresses_taken): Call
4938 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4939 be rewritten and decl has been marked for renaming, reset
4940 the debug stmt.
4941
26a8964c
JM
49422011-05-17 Joseph Myers <joseph@codesourcery.com>
4943
4944 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4945 enum_opts_set when testing if attributes have set -mfpmath=.
4946
82bd45d7
RS
49472011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4948
4949 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4950
267ffce3
UB
49512011-05-17 Uros Bizjak <ubizjak@gmail.com>
4952
4953 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4954 info->entry with 0
4955 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4956 id.transform_lang_insert_block with NULL.
4957
49582011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
4959
4960 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4961 (output_fp_compare): Change args 3 and 4 to bool.
4962 (ix86_expand_call): Change arg 6 to bool.
4963 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4964 (ix86_attr_length_vex_default): Change arg 3 to bool.
4965 * config/i386/i386.md: Update all uses.
4966 * config/i386/i386.c: Ditto.
4967 (ix86_flags_dependent): Change return type to bool.
4968
5beaf664
RG
49692011-05-17 Richard Guenther <rguenther@suse.de>
4970
4971 * gimple.c (type_hash_pair_compare): Fix comparison.
4972
008bad7a
RG
49732011-05-17 Richard Guenther <rguenther@suse.de>
4974
4975 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4976 case some more, fix final hash value of the non-singleton case.
4977
36461340
RG
49782011-05-17 Richard Guenther <rguenther@suse.de>
4979
4980 PR bootstrap/49013
4981 Revert
4982 2011-05-16 Richard Guenther <rguenther@suse.de>
4983
4984 * gimple.c (gimple_types_compatible_p_1): Use names of the
4985 type itself, not its main variant.
4986 (iterative_hash_gimple_type): Likewise.
4987
6b6a59f3
RG
49882011-05-17 Richard Guenther <rguenther@suse.de>
4989
4990 * gimple.c (gimple_register_canonical_type): Use the main-variant
4991 leader for computing the canonical type.
4992
4ffc4134
NC
49932011-05-17 Nick Clifton <nickc@redhat.com>
4994
a1d8754e
NC
4995 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4996 moves.
4997
4ffc4134
NC
4998 * config/rx/rx.md: Add peephole to remove redundant extensions
4999 after loads.
39960f7a
NC
5000 (bitset_in_memory): Use rx_restricted_mem_operand.
5001 (bitinvert_in_memory): Likewise.
5002 (bitclr_in_memory): Likewise.
4ffc4134 5003
b3db92ac
KI
50042011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5005 Nick Clifton <nickc@redhat.com>
5006
5007 * config/rx/rx.md: Add peepholes to match a register move followed
5008 by a comparison of the moved register. Replace these with an
5009 addition of zero that does both actions in one instruction.
5010
8637e32a
JJ
50112011-05-17 Jakub Jelinek <jakub@redhat.com>
5012
5013 PR target/48986
5014 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5015 predicate to allow CONST_INT.
5016 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5017
8023568e
JM
50182011-05-16 Joseph Myers <joseph@codesourcery.com>
5019
5020 * opts-common.c (opt_enum_arg_to_value): New.
5021 * opts.h (opt_enum_arg_to_value): Declare.
5022 * config/i386/i386.opt (fpmath): Remove.
5023 (mfpmath=): Use Enum, Init and Save.
5024 (fpmath_unit): New Enum and EnumValue entries.
5025 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5026 name for function fpmath state.
5027 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5028 * config/i386/i386.c: Include diagnostic.h.
5029 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 5030 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 5031 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 5032 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
5033 (x86_function_specific_save, ix86_function_specific_restore):
5034 Don't handle fpmath state specially.
5035 (ix86_function_specific_print): Pass fpmath state to
5036 ix86_target_string instead of printing in this function.
5037 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5038 Handle enum attributes.
5039 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5040 (ix86_valid_target_attribute_tree): Update option_strings
5041 handling. Handle fpmath as enum option.
5042 (ix86_can_inline_p): Update field names for function fpmath state.
5043 (ix86_expand_builtin): Update call to ix86_target_string.
5044 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5045 (ix86_fpmath): Remove.
5046 * config/i386/t-i386 (i386.o): Update dependencies.
5047
9e8d926e
JM
50482011-05-16 Joseph Myers <joseph@codesourcery.com>
5049
5050 PR preprocessor/48677
5051 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5052 from decoded_options[0], not from itself.
5053
f6449011
UB
50542011-05-16 Uros Bizjak <ubizjak@gmail.com>
5055
5056 * config/i386/constraints.md (z): New constraint.
5057 * config/i386/i386.c (c): New mode attribute.
5058 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5059 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5060 constraint for operand 0.
5061 (*call_vzeroupper): Ditto.
5062 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5063 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5064 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5065 Use "lzm" constraint for operand 0.
5066 (*call_pop_vzeroupper): Ditto.
5067 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5068 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5069 constraint for operand 0.
5070 (*sibcall_vzeroupper): Ditto.
5071 (*sibcall_rex64_ms_sysv): Ditto.
5072 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5073 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5074 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5075 (*sibcall_pop_vzeroupper): Ditto.
5076 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5077 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5078 mode iterator. Use "<c>zm" constraint for operand 1.
5079 (*call_value_vzeroupper): Ditto.
5080 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 5081 for operand 1.
f6449011
UB
5082 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5083 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5084 *call_value_pop_1. Use "lzm" constraint for operand 1.
5085 (*call_value_pop_vzeroupper): Ditto.
5086 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5087 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5088 mode iterator. Use "Uz" constraint for operand 1.
5089 (*sibcall_value_vzeroupper): Ditto.
5090 (*sibcall_value_rex64_ms_sysv): Ditto.
5091 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5092 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5093 constraint for operand 1.
5094 (*sibcall_value_pop_vzeroupper): Ditto.
5095 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5096 and "z" constraint for operand 2.
5097 (*tls_global_dynamic_32_gnu): Ditto.
5098 (*tls_local_dynamic_base_32_gnu): Ditto.
5099 (*tls_local_dynamic_base_64): Ditto.
5100 (*tls_local_dynamic_32_once): Ditto.
5101 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5102 Update all callers.
5103 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5104
c11b6902
RG
51052011-05-16 Richard Guenther <rguenther@suse.de>
5106
5107 * gimple.c (gimple_types_compatible_p_1): Use names of the
5108 type itself, not its main variant.
5109 (iterative_hash_gimple_type): Likewise.
5110
1e83b5f1
RG
51112011-05-16 Richard Guenther <rguenther@suse.de>
5112
f6449011
UB
5113 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5114 always visit pointer target and function result and argument types.
1e83b5f1 5115
62e36382
JM
51162011-05-16 Jason Merrill <jason@redhat.com>
5117
5118 PR c++/48999
5119 * tree-inline.c (copy_statement_list): Put back recursion.
5120
687027a4
GJL
51212011-05-16 Georg-Johann Lay <avr@gjlay.de>
5122
5123 PR target/27663
5124 PR target/41076
5125 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5126 * config/avr/avr.md ("*ior<mode>qi.byte0",
5127 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5128
f24a5190
GJL
51292011-05-16 Georg-Johann Lay <avr@gjlay.de>
5130
5131 PR target/45099
5132 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5133 register is needed for a function argument.
5134
3066f593
RG
51352011-05-16 Richard Guenther <rguenther@suse.de>
5136
5137 * gimple.c (struct type_hash_pair): New type.
5138 (type_hash_pair_compare): New function.
f6449011 5139 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 5140
b2ab2cf4
RE
51412011-05-16 Revital Eres <revital.eres@linaro.org>
5142
f6449011 5143 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 5144
dfb737fc
UB
51452011-05-15 Uros Bizjak <ubizjak@gmail.com>
5146
5147 * config/i386/i386.md (floating point move splitters): Fix
5148 usage of standard_80387_constant_p.
f6449011 5149 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 5150
8caa1de0
UB
51512011-05-15 Uros Bizjak <ubizjak@gmail.com>
5152
5153 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5154
8a519095
EB
51552011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5156
5157 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5158 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5159 (tree_ssa_lim_finalize): Likewise.
5160
479fecd3
UB
51612011-05-14 Uros Bizjak <ubizjak@gmail.com>
5162
5163 * config/i386/constraint.md (Yd, Yx): New register constraints.
5164 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5165 Yd conditional register constraint.
5166 (*movtf_internal): Use standard_sse_constant_opcode.
5167 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5168 Yx conditional register constraint.
5169 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5170 Yd conditional register constraint. Use standard_sse_constant_p to
5171 check for valid SSE constants and call standard_sse_constant_opcode to
5172 output SSE insn.
5173 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5174 constants and call standard_sse_constant_opcode to output SSE insn.
5175 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5176 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5177 optimize_size is set.
5178 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5179
2d8c9ad5
TB
51802011-05-14 Tobias Burnus <burnus@net-b.de>
5181
5182 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5183
411a20d6
MJ
51842011-05-13 Martin Jambor <mjambor@suse.cz>
5185
5186 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5187 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5188 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5189 (evaluate_conditions_for_ipcp_clone): Removed.
5190 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5191 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5192 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5193
dc764d10
EB
51942011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5195
5196 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5197 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5198 lieu of MAY_HAVE_DEBUG_STMTS.
5199 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5200 debug statements if !MAY_HAVE_DEBUG_STMTS.
5201
9f47a24e
MT
52022011-05-13 Martin Thuresson <martint@google.com>
5203
5204 PR gcov-profile/47793
5205 * libgcov.c (gcov_exit): Support relative profile paths.
5206 * doc/invoke.texi (-fprofile-dir): Update for above change.
5207
b8a71aed
RG
52082011-05-13 Richard Guenther <rguenther@suse.de>
5209
5210 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5211 type-pair caching, do not compare hashes.
5212
eb9f9259
NF
52132011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5214
5215 PR middle-end/48965
5216 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5217 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5218
3c6cbf7a
KT
52192011-05-13 Kai Tietz <ktietz@redhat.com>
5220
5221 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5222 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5223 compatible type for TRUTH_NOT_EXPR.
5224
2e7f5dc0
L
52252011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5226
dc764d10 5227 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
5228 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5229 can_create_pseudo_p ().
5230
e834e95c
RG
52312011-05-13 Richard Guenther <rguenther@suse.de>
5232
5233 PR lto/48978
5234 * gimple.c (iterative_hash_gimple_type): Revert change in
5235 pointer target and function result and argument hashing.
5236
34203483
UB
52372011-05-13 Uros Bizjak <ubizjak@gmail.com>
5238
5239 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5240 (*movxf_internal_nointeger): Ditto.
5241 (*movdf_internal_rex64): Ditto.
5242 (*movdf_internal): Ditto.
5243 (*movdf_internal_nointeger): Ditto.
5244 (*movsf_internal): Ditto.
5245 (sincos splitters): Use can_create_pseudo ().
5246
7eb68c06
JM
52472011-05-13 Joseph Myers <joseph@codesourcery.com>
5248
5249 * config/i386/i386-opts.h: New.
5250 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5251 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5252 ix86_section_threshold): Remove.
5253 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5254 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5255 OPT_mbranch_cost_.
5256 (ix86_option_override_internal): Don't decode strings for options
5257 other than -march=, -mtune= and -mfpmath=. Don't allow for
5258 __attribute__ uses in remaining diagnostics for options with
34203483 5259 string arguments. Don't check for integer arguments being negative.
7eb68c06 5260 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 5261 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
5262 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5263 ix86_branch_cost, ix86_section_threshold): Remove.
5264 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5265 HeaderInclude.
5266 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5267 but not Var.
5268 (masm=): Use Enum and Init.
5269 (asm_dialect): New Enum and EnumValue entries.
5270 (mbranch-cost=): Use UInteger.
5271 (mlarge-data-threshold=): Use UInteger and Init.
5272 (mcmodel=): Use Enum and Init.
5273 (cmodel): New Enum and EnumValue entries.
5274 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5275 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5276 mregparm=): Use UInteger.
5277 (mstringop-strategy=): Use Enum and Init.
5278 (stringop_alg): New Enum and EnumValue entries.
5279 (mtls-dialect=): Use Enum and Init.
5280 (tls_dialect): New Enum and EnumValue entries.
5281 (mabi=): Use Enum and Init.
5282 (calling_abi): New Enum and EnumValue entries.
5283 (mveclibabi=): Use Enum and Init.
5284 (ix86_veclibabi): New Enum and EnumValue entries.
5285
f67e203c
NC
52862011-05-13 Nick Clifton <nickc@redhat.com>
5287
34203483
UB
5288 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5289 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 5290
221df0b6
KT
52912011-05-13 Kai Tietz <ktietz@redhat.com>
5292
5293 PR middle-end/48984
5294 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5295 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5296 (gimple_boolify): Check for cast for boolean_type_node instead for
5297 BOOLEAN_TYPE.
5298
208cb8cb
RG
52992011-05-13 Richard Guenther <rguenther@suse.de>
5300
5301 PR tree-optimization/48172
5302 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5303 multiplying by number of iterations for equal step.
5304 (vect_create_cond_for_alias_checks): Likewise.
5305
b88ecf55
AS
53062011-05-13 Andreas Schwab <schwab@redhat.com>
5307
5308 * configure.ac: Use AS_HELP_STRING throughout.
5309 * configure: Regenerate.
5310
569b527e
L
53112011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5312
34203483 5313 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
5314 (ix86_emit_restore_regs_using_mov): Likewise.
5315 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5316
8b9a1428
AS
53172011-05-12 Anatoly Sokolov <aesok@post.ru>
5318
5319 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5320 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5321 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5322 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5323 RTX_OK_FOR_OLO10_P): ...here.
5324 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5325 SYMBOLIC_CONST.
5326
1d15f620
KT
53272011-05-12 Kai Tietz <ktietz@redhat.com>
5328
5329 * gimplify.c (gimple_boolify): Re-boolify expression
5330 arguments even if expression type is of kind BOOLEAN_TYPE.
5331 (gimplify_boolean_expr): Removed.
5332 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5333 and XOR. Additional take care that we keep expression's type.
5334 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5335 of TRUTH_AND|OR|XOR_EXPR.
5336
c2b5fc8d
JJ
53372011-05-12 Jakub Jelinek <jakub@redhat.com>
5338
5339 PR tree-optimization/48975
5340 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5341 on all bbs here and free and clear ifc_bbs at the end.
5342
61332f77
RG
53432011-05-12 Richard Guenther <rguenther@suse.de>
5344
5345 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5346 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5347 until after simple checks.
5348 (gimple_types_compatible_p): Likewise.
5349 (iterative_hash_gimple_type): Always hash pointer targets
5350 and function return and argument types.
5351 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5352 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5353 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5354 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5355 completely in the simple compare section.
5356 (gimple_register_canonical_type): Query the cache again after
5357 registering.
5358
e2a3a5f1
RG
53592011-05-12 Richard Guenther <rguenther@suse.de>
5360
5361 PR tree-optimization/48172
5362 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5363 the number of iterations from the segment size calculation.
5364 (vect_create_cond_for_alias_checks): Adjust.
5365
2c703f3a
JJ
53662011-05-12 Jakub Jelinek <jakub@redhat.com>
5367
5368 PR debug/48967
5369 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5370 if validate_subreg fails.
5371
53722011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
5373
5374 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5375 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5376 early.
5377
87e91fca
DD
53782011-05-12 DJ Delorie <dj@redhat.com>
5379
d53903d6 5380 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
5381 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5382 created builtin into rx_builtins array.
5383 (rx_builtin_decl): New function.
34203483 5384 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 5385
5f2f13fd
DD
53862011-05-12 DJ Delorie <dj@redhat.com>
5387 Nick Clifton <nickc@redhat.com>
5388
5389 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5390 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5391 (rx_is_legitimate_address): Add pre-decrement and post-increment
5392 addressing in HImode and QImode. Fix test for out of range
5393 REG+INT addressing.
87e91fca 5394 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 5395 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 5396 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 5397 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 5398
57421f45
JM
53992011-05-11 Jason Merrill <jason@redhat.com>
5400
5401 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5402
898c90c0
EB
54032011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5404
5405 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5406 reindent the subsequent block.
5407
79bec923
ST
54082011-05-11 Satoru Takabayashi <satorux@google.com>
5409 Paul Pluzhnikov <ppluzhnikov@google.com>
5410
34203483 5411 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
5412 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5413 * config.in: Add LINKER_HASH_STYLE.
5414 * configure.ac: Add --with-linker-hash-style.
5415 * configure: Regenerate.
79bec923 5416
d0340959
RG
54172011-05-11 Richard Guenther <rguenther@suse.de>
5418
5419 PR middle-end/48964
5420 * gimple.c (iterative_hash_canonical_type): Fix typo.
5421
cb032fee
UB
54222011-05-11 Uros Bizjak <ubizjak@gmail.com>
5423
5424 * config/i386/i386.c (legitimize_tls_address)
479fecd3 5425 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5426 expanders directly for TARGET_GNU2_TLS. Determine pic and
5427 __tls_get_addr symbol reference here. Update call to
5428 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 5429 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5430 expanders directly for TARGET_GNU2_TLS. Determine
5431 __tls_get_addr symbol reference here. Update call to
5432 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5433 unique UNSPEC REG_EQUIV to libcall block.
5434 (ix86_tls_get_addr): Declare static.
5435 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5436 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5437 Do not determine pic and __tls_get_addr symbol reference here. Do not
5438 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5439 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5440 (tls_global_dynamic_64): Add operand 2. Do not determine
5441 __tls_get_addr symbol reference here. Do not call
5442 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5443 (tls_local_dynamic_base64): Ditto for operand 1.
5444
6d3cc8f0
EB
54452011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5446
5447 * function.c (expand_function_start): Initialize stack_check_probe_note
5448 only if the generic stack checking mechanism is used.
5449
51e020fc
RG
54502011-05-11 Richard Guenther <rguenther@suse.de>
5451
5452 PR tree-optimization/15256
5453 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5454 (A & B) | C, combine (A op CST1) op CST2.
5455 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5456 visit assigns that have uses.
5457
51545682
NF
54582011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5459
cb032fee 5460 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
5461 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5462 (unpack_ts_type_common_value_fields): ...this. Update comment.
5463 (unpack_value_fields): Adjust for renaming.
5464 (lto_input_ts_type_tree_pointers): Split into...
5465 (lto_input_ts_type_common_tree_pointer): ...this and...
5466 (lto_input_ts_type_non_common_tree_pointers): ...this.
5467 (lto_input_tree_pointers): Adjust for above split.
5468 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5469 (pack_ts_type_common_value_fields): ...this. Update comment.
5470 (lto_output_ts_type_tree_pointers): Split into...
5471 (lto_output_ts_type_common_tree_pointers): ...this and...
5472 (lto_output_ts_type_non_common_tree_pointers): ...this.
5473 (lto_output_tree_pointers): Adjust for above split.
5474 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5475 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5476 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5477 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5478 Define.
5479 (struct tree_type): Split into...
5480 (struct tree_type_common: ...this and...
5481 (struct tree_type_with_lang_specific): ...this and...
5482 (struct tree_type_non_common): ...this. Adjust accessor macros
5483 accordingly.
5484 (TYPE_VALUES_RAW): Define.
5485 (union tree_node): Update for above changes.
5486 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5487 TS_TYPE_NON_COMMON.
5488 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5489 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5490 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5491 * treestructu.def (TS_TYPE): Remove.
5492 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5493 Define.
5494
b03c3082
JJ
54952011-05-11 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR debug/48159
5498 * tree-ssa.c (reset_debug_uses): New function.
5499 * tree-flow.h (reset_debug_uses): New prototype.
5500 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5501 * tree-loop-distribution.c (generate_loops_for_partition): Call
5502 reset_debug_uses on the stmts that will be removed. Keep around
5503 all debug stmts, don't count them as bits in partition bitmap.
5504 (generate_builtin): Don't count debug stmts or labels as bits in
5505 partition bitmap.
5506
b5e04de5
RG
55072011-05-11 Richard Guenther <rguenther@suse.de>
5508
5509 * gimple.c (gimple_type_hash_1): Merge with ...
5510 (gimple_type_hash): ... this.
5511 (gtc_visit): Remove mode parameter and simplify accordingly.
5512 (gimple_types_compatible_p_1): Likewise.
5513 (gimple_types_compatible_p): Likewise.
5514 (iterative_hash_gimple_type): Likewise.
5515 (visit): Likewise.
5516 (gimple_type_eq): Adjust.
5517
fc6970e4
RE
55182011-05-11 Revital Eres <revital.eres@linaro.org>
5519
5520 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5521 enters the branch create an anti edge in the opposite direction
5522 to prevent the creation of reg-moves.
5523 * modulo-sched.c: Adjust comment to reflect the fact we are
5524 scheduling closing branch.
5525 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5526 (stage_count): New field in struct partial_schedule.
5527 (calculate_stage_count): New function.
5528 (normalize_sched_times): Rename to reset_sched_times and handle
5529 incrementing the sched time of the nodes by a constant value
5530 passed as parameter.
5531 (duplicate_insns_of_cycles): Skip closing branch.
5532 (sms_schedule_by_order): Schedule closing branch.
5533 (ps_insn_find_column): Handle closing branch.
5534 (sms_schedule): Call reset_sched_times and adjust the code to
5535 support scheduling of the closing branch.
5536 (ps_insert_empty_row): Update calls to normalize_sched_times
5537 and rotate_partial_schedule functions.
5538
41a58a92
RG
55392011-05-11 Richard Guenther <rguenther@suse.de>
5540
5541 PR middle-end/48953
5542 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5543
e9f8dcf9
JM
55442011-05-11 Joseph Myers <joseph@codesourcery.com>
5545
cb032fee
UB
5546 * opts.c (finish_options): Move warning settings from process_options.
5547 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 5548
10c224a9
RG
55492011-05-11 Richard Guenther <rguenther@suse.de>
5550
5551 PR tree-optimization/18041
5552 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5553 (simplify_bitwise_binary): ... this. Handle operand conversions
5554 by applying them to the result instead.
5555 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5556
825b27de
RG
55572011-05-11 Richard Guenther <rguenther@suse.de>
5558
5559 * gimple.c (gimple_canonical_types_compatible_p): Split out
5560 from gimple_types_compatible_p and friends. Do not recurse
5561 to pointed-to types.
5562 (gimple_canonical_type_eq): Use it.
5563 (iterative_hash_canonical_type): Split out from
5564 iterative_hash_gimple_type and friends. Do not recurse
5565 to pointed-to types.
5566 (gimple_canonical_type_hash): Use it, allocate the hash here.
5567
ca756625
RE
55682011-05-11 Revital Eres <revital.eres@linaro.org>
5569
5570 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5571 recognizing doloop.
5572
b8abece3
RE
55732011-05-11 Revital Eres <revital.eres@linaro.org>
5574
5575 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5576 instead of PREV_INSN.
5577
ce7b3761
RE
55782011-05-11 Revital Eres <revital.eres@linaro.org>
5579
5580 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5581 * loop-doloop.c (doloop_condition_get): Likewise.
5582 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5583 (doloop_end): New.
5584 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5585
a9dc9d37
NF
55862011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5587
5588 * tree.def (CASE_LABEL_EXPR): Add an operand.
5589 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5590
96703596
JM
55912011-05-10 Joseph Myers <joseph@codesourcery.com>
5592
5593 * c-decl.c (c_override_global_bindings_to_false): Remove.
5594 (global_bindings_p): Don't check
5595 c_override_global_bindings_to_false.
5596 * c-tree.h (c_override_global_bindings_to_false): Remove.
5597 * c-typeck.c (composite_type): Don't set
5598 c_override_global_bindings_to_false.
5599
dbcc9f08
MM
56002011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5601
5602 PR target/48857, 48495
5603 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5604 (VSX_MODE): Ditto.
5605 (VSX_MOVE_MODE): Ditto.
5606 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5607 VSX vector types. Add V2DImode.
5608 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5609 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5610 (MODES_TIEABLE_P): Ditto.
5611
5612 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5613 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5614 VSX_VECTOR_MODE.
5615 (init_cumulative_args): Ditto.
5616 (rs6000_function_arg_boundary): Ditto.
5617 (rs6000_function_arg_advance_1): Ditto.
5618 (rs6000_function_arg): Ditto.
5619 (rs6000_function_ok_for_sibcall): Ditto.
5620 (emit_frame_save): Ditto.
5621 (rs6000_function_value): Ditto.
5622 (rs6000_libcall_value): Ditto.
5623
4a68b4ca
JM
56242011-05-10 Joseph Myers <joseph@codesourcery.com>
5625
5626 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5627 i386/darwin-lib.h to $libgcc_tm_file.
5628 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5629
bcb521e9
JM
56302011-05-10 Joseph Myers <joseph@codesourcery.com>
5631
5632 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5633
f10d3ac9
JM
56342011-05-10 Joseph Myers <joseph@codesourcery.com>
5635
cb032fee 5636 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
5637 * config/rs6000/rs6000-tables.opt: New file (generated).
5638 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5639 rs6000/rs6000-tables.opt to extra_options.
5640 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5641 * config/rs6000/rs6000.c (rs6000_select): Remove.
5642 (processor_target_table): Move contents to rs6000-cpus.def.
5643 (darwin_rs6000_override_options): Check
5644 global_options_set.x_rs6000_cpu_index instead of
5645 rs6000_select[1].string.
5646 (rs6000_option_override_internal): Likewise.
5647 (rs6000_handle_option): Don't assert that global structures are in
5648 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5649 (rs6000_default_cpu): New variable.
5650 (rs6000_file_start): Set it instead of local default_cpu. Check
5651 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5652 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5653 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5654 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5655 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5656 rs6000_select): Remove.
5657 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5658 Remove.
5659 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5660 * config/rs6000/t-rs6000
5661 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5662 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5663 global_options_set.x_rs6000_cpu_index instead of
5664 rs6000_select[1].string.
5665 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5666 global_options_set.x_rs6000_cpu_index instead of
5667 rs6000_select[1].string.
5668
80cf2e08
JM
56692011-05-10 Joseph Myers <joseph@codesourcery.com>
5670
5671 * config.gcc (libgcc_tm_file): Define instead of including files
5672 from ../../libgcc/config/ in tm_file.
cb032fee 5673 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
5674 * configure: Regenerate.
5675 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5676 libgcc_tm.h, cs-libgcc_tm.h): New.
5677 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5678 (clean): Remove libgcc_tm.h.
5679 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5680 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5681 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5682
fd01a351
GJL
56832011-05-10 Georg-Johann Lay <avr@gjlay.de>
5684
5685 PR target/48896
5686 * config/avr/avr.c (avr_ret_register): Return unsigned int
5687 instead of int.
5688 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5689 it to avr_libcall_value.
5690 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5691 expand_expr.
5692 (avr_expand_binop_builtin): Ditto.
5693 (avr_expand_unop_builtin): Ditto.
5694
34cc3c86
DD
56952011-05-10 DJ Delorie <dj@redhat.com>
5696
5697 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5698 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5699 * config/rx/rx.c (rx_align_for_label): Add label and
5700 uses_threshold parameters. Do not align when the label is not
5701 used enough.
5702 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5703
be173289
RG
57042011-05-10 Richard Guenther <rguenther@suse.de>
5705
5706 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5707 a series of conversions and apply foldings similar to what
5708 fold-const does.
5709 (tree_ssa_forward_propagate_single_use_vars): Call it.
5710
e7f78021
JJ
57112011-05-10 Jakub Jelinek <jakub@redhat.com>
5712
6ae70ea2
JJ
5713 PR tree-optimization/48611
5714 PR tree-optimization/48794
5715 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5716 referenced from RESX or EH_DISPATCH arguments.
5717
e7f78021
JJ
5718 PR debug/48928
5719 * dfp.c (decimal_to_decnumber): Handle conversion from
5720 dconst{1,2,m1,half}.
5721
fca132b9
UB
57222011-05-09 Uros Bizjak <ubizjak@gmail.com>
5723
5724 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5725 for !flag_prefer_avx128.
5726 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5727
e4c03378
EB
57282011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5729
5730 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5731 (fold_ternary_loc): Use expr_location_or.
5732
805d6a75
L
57332011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5734
5735 PR debug/48853
5736 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5737 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5738 Pmode and mem_mode is not VOIDmode.
5739
e4c03378 57402011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 5741
e4c03378
EB
5742 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5743 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 5744
51e7f377
UB
57452011-05-09 Uros Bizjak <ubizjak@gmail.com>
5746
5747 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5748 (const_pow2_1_to_8_operand): Ditto.
5749 (const_pow2_1_to_128_operand): Ditto.
5750 (const_pow2_1_to_32768_operand): Ditto.
5751 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5752 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5753 in insn constraint to check integer value of operand 3.
5754 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5755
5756 (PINSR_MODE): New mode iterator.
5757 (sse2p4_1): New mode attribute.
5758 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5759 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5760 iterator. Use const_int_operand instead of
5761 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5762 exact_log2 in insn constraint to check integer value of operand 3.
5763
57642011-05-09 Uros Bizjak <ubizjak@gmail.com>
5765
5766 * config/i386/sse.md (blendbits): Remove mode attribute.
5767 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5768 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5769 Check integer value of operand 3 in insn constraint.
5770
0ca8de87
RG
57712011-05-09 Richard Guenther <rguenther@suse.de>
5772
5773 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5774 for diagnostics.
5775 (lto_symtab_merge): Likewise. Do not register types here.
5776 (lto_symtab_merge_decls_2): Likewise.
5777 (lto_symtab_merge_decls_1): Likewise.
5778 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5779 * gimple.c (enum gtc_mode): Declare.
5780 (gimple_types_compatible_p): Make static.
5781
a9e6994a
AK
57822011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5783
5784 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5785 temporary register to match Pmode.
5786
fb55d62e
UB
57872011-05-09 Uros Bizjak <ubizjak@gmail.com>
5788
5789 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5790 and *vec_concatv4si_1_avx.
5791
eb1485a6
UB
57922011-05-09 Uros Bizjak <ubizjak@gmail.com>
5793
5794 PR rtl-optimization/48927
5795 * ira-conflicts.c (commutative_constraint_p): Use
5796 recog_data.alternative_enabled_p to disable alternatives where
5797 "enabled" attribute is false.
5798 (get_dup_num): Ditto.
5799 * ira-lives.c (single_reg_class): Ditto.
5800 (ira_implicitly_set_insn_hard_regs): Ditto.
5801
c46d001a
EB
58022011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5803
5804 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5805 (dataflow_set_preserve_mem_locs): Likewise.
5806
58072011-05-09 Philipp Thomas <pth@suse.de>
5808
6d9e7c41
PT
5809 * config/mep/mep.c (mep_validate_vliw): Syntax description
5810 should not be translated.
5811
d371df6f
JM
58122011-05-09 Joseph Myers <joseph@codesourcery.com>
5813
5814 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5815 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 5816 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
5817 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5818 MIPS_ARCH_OPTION_NATIVE): Define.
5819 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5820 mips-cpus.def.
5821 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5822 mips_parse_cpu): Remove.
5823 (mips_cpu_info_from_opt, mips_default_arch): New.
5824 (mips_handle_option): Don't assert that global structures are in
5825 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5826 (mips_option_override): Use new variables and functions to set
eb1485a6 5827 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
5828 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5829 definition.
5830 * config/mips/mips.opt (march=): Use ToLower and Enum.
5831 (mips): Use ToLower, Enum and Var.
5832 (mtune=): Use ToLower and Enum.
5833 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5834
4fc07af9
JH
58352011-05-08 Jan Hubicka <jh@suse.cz>
5836
5837 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5838 Arrange type pairs to be UID ordered.
5839 (gimple_lookup_type_leader): Make inline.
5840
2cf320a8
NC
58412011-05-09 Nick Clifton <nickc@redhat.com>
5842
61d6def5
NC
5843 PR target/48899
5844 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5845 PROCESSOR_DEFAULT.
5846
2cf320a8
NC
5847 PR target/48897
5848 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5849 variable 's'.
5850
4f82319d
CLT
58512011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5852
5853 * combine.c (simplify_comparison): Abstract out parts into...
5854 (simplify_compare_const): ... new function.
5855 (try_combine): Generalize parallel arithmetic/compare combining
5856 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5857
74605a11
JH
58582011-05-08 Jan Hubicka <jh@suse.cz>
5859
5860 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
5861 (cgraph_create_virtual_clone): Call hooks once virtual clone
5862 is finished.
74605a11 5863 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
5864 * ipa-cp.c (ipcp_estimate_growth): Use
5865 estimate_ipcp_clone_size_and_time.
74605a11
JH
5866 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5867 * lto-cgraph.c (input_node): Update.
5868 * ipa-inline.c (recursive_inlining): Update.
5869 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5870 (evaluate_conditions_for_known_args): Break out from ...
5871 (evaluate_conditions_for_edge): ... here.
5872 (evaluate_conditions_for_ipcp_clone): New function.
5873 (inline_node_duplication_hook): Update clone summary based
5874 on parameter map.
5875 (estimate_callee_size_and_time): Rename to ...
5876 (estimate_node_size_and_time): take NODE instead of EDGE;
5877 take POSSIBLE_TRUTHS as argument.
5878 (estimate_callee_size_and_time): Update.
5879 (estimate_ipcp_clone_size_and_time): New function.
5880 (do_estimate_edge_time): Update.
5881
5c049507
RG
58822011-05-08 Richard Guenther <rguenther@suse.de>
5883
5884 PR middle-end/48908
5885 PR middle-end/48905
5886 * expmed.c (expand_shift_1): Compute adjusted constant shift
5887 amount manually.
5888
f64c36ba
EB
58892011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5890
5891 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5892
c461a957
EB
58932011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5894
5895 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5896
7c74e556
JW
58972011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5898
5899 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5900
b4c0a884
JH
59012011-05-07 Jan Hubicka <jh@suse.cz>
5902
a9bcb3f0
EB
5903 * ipa-inline-transform.c (inline_call): Account when program size
5904 decreases.
b4c0a884 5905 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
5906 (edge_badness): Reorganize to be power 2 based; fix thinko when
5907 computing badness for negative growth; update comments to match
5908 reality; better dumps.
b4c0a884 5909
c99c0026
EB
59102011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5911
5912 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5913 type to bool and adjust comment.
5914 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5915 (fold_mathfn_compare): Remove calls to global_bindings_p.
5916 (fold_inf_compare): Likewise.
5917 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5918 * c-tree.h (global_bindings_p): Adjust prototype.
5919 * c-decl.c (global_bindings_p): Return bool and simplify.
5920
1400c8e5
ZD
59212011-05-07 Zdenek Dvorak <ook@ucw.cz>
5922
5923 PR tree-optimization/48837
5924 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5925 when accumulator transformation is performed.
5926
5d0878e7
JH
59272011-05-06 Jan Hubicka <jh@suse.cz>
5928
a9bcb3f0
EB
5929 * i386.h (ix86_tune_indices): Add
5930 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 5931 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
5932 * i386.c (initial_ix86_tune_features): Add
5933 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
5934 (software_prefetching_beneficial_p): Remove predicate.
5935 (ix86_option_override_internal): Use new macro.
5936
58696ce5
JH
59372011-05-06 Jan Hubicka <jh@suse.cz>
5938
5939 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5940
c47d0034
JH
59412011-05-06 Jan Hubicka <jh@suse.cz>
5942
5943 * cgraph.c (cgraph_add_thunk): Create real function node instead
5944 of alias node; finalize it and mark needed/reachale; arrange visibility
5945 to be right and add it into the corresponding same comdat group list.
5946 (dump_cgraph_node): Dump thunks.
5947 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
5948 cgraph_function_with_gimple_body_p,
5949 cgraph_first_function_with_gimple_body,
c47d0034
JH
5950 cgraph_next_function_with_gimple_body): New functions.
5951 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5952 New macros.
5953 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5954 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5955 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5956 devirtualization when optimizing.
5957 (verify_cgraph_node): Verify thunks.
5958 (cgraph_analyze_function): Analyze thunks.
5959 (cgraph_mark_functions_to_output): Output thunks only in combination
5960 with function they are assigned to.
5961 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5962 alias into normal node.
5963 (assemble_thunks): New functoin.
5964 (cgraph_expand_function): Use it.
5965 * lto-cgraph.c (lto_output_node): Stream thunks.
5966 (input_overwrite_node): Stream in thunks.
5967 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5968 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5969 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5970 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5971 (inline_analyze_function): Do not care about thunk jump functions.
5972 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
5973 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5974 cgraph_function_with_gimple_body_p.
5975 * passes.c (do_per_function_toporder): Use
5976 cgraph_function_with_gimple_body_p.
c47d0034
JH
5977 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5978 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5979 (function_called_by_processed_nodes_p): Likewise.
5980
d8f426ec
JM
59812011-05-06 Joseph Myers <joseph@codesourcery.com>
5982
5983 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5984 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5985 entries.
5986 (mabi=): Replace with separate entries for mabi=altivec,
5987 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5988 mabi=ieeelongdouble and mabi=ibmlongdouble.
5989 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5990 check for -mabi=spe without SPE ABI support here.
5991 (rs6000_handle_option): Replace OPT_mabi_ handling with
5992 OPT_mabi_altivec and OPT_mabi_spe handling.
5993
80bde45b
CC
59942011-05-06 Cary Coutant <ccoutant@google.com>
5995
5996 * dwarf2out.c (contains_subprogram_definition): New function.
5997 (should_move_die_to_comdat): Call it.
5998
a91926b9
JL
59992011-05-06 Jeff Law <law@redhat.com>
6000
6001 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6002 remove_ctrl_stmt_and_useless_edges.
6003 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6004 (fixup_template_block, thread_single_edge): Likewise.
6005 (mark_threaded_blocks): Use THREAD_TARGET.
6006
1fc1b66d
AM
60072011-05-06 Alan Modra <amodra@gmail.com>
6008
6009 PR target/48900
6010 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6011 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6012
e194de64
UB
60132011-05-06 Uros Bizjak <ubizjak@gmail.com>
6014
6015 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6016 constraint modifier to "r".
6017
d740dc9e
JM
60182011-05-06 Joseph Myers <joseph@codesourcery.com>
6019
6020 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6021 fall through for OPT_mcmodel_.
6022
cab78b15
AK
60232011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6024
6025 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6026 instruction sizes.
e194de64 6027 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 6028
ee6824ae
RR
60292011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6030
eb1485a6
UB
6031 PR target/47930
6032 * config/arm/arm.opt (marm): Document it.
6033 (mthumb): Reject negative variant.
ee6824ae 6034
9ef58464
UB
60352011-05-06 Uros Bizjak <ubizjak@gmail.com>
6036
6037 PR target/48898
6038 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6039 Fix typo in "ccvt" variable name.
6040
155b6176
TG
60412011-05-06 Tristan Gingold <gingold@adacore.com>
6042
6043 PR target/48895
6044 * config/vms/vms-ar.c (main): Remove cwd variable.
6045
3becc47b
JJ
60462011-05-06 Jakub Jelinek <jakub@redhat.com>
6047
6048 PR debug/48902
6049 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6050
3d528853
NF
60512011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6052
6053 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6054 * gimplify.c (gimplify_switch_expr): Likewise.
6055 * omp-low.c (expand_omp_sections): Likewise.
6056 * tree-eh.c (lower_try_finally_switch): Likewise.
6057 (lower_eh_dispatch): Likewise.
6058 * tree.h (build_case_label): Declare.
6059 * tree.c (build_case_label): Define.
6060
deb5046b
JM
60612011-05-05 Jason Merrill <jason@redhat.com>
6062
6063 PR c++/40975
6064 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6065 (copy_statement_list): Don't recurse.
6066 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6067 STATEMENT_LIST.
6068
013c0411
JM
60692011-05-05 Joseph Myers <joseph@codesourcery.com>
6070
6071 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6072 through from -mfpu= handling.
6073 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6074
a0905f8b
BS
60752011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6076
6077 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6078 POST_MODIFY.
6079
fc4538e4
SE
60802011-05-05 Steve Ellcey <sje@cup.hp.com>
6081
6082 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6083 for 11.31.
6084 (hppa[12]*-*-hpux11*): Ditto.
6085 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6086 * config/ia64/hpux-unix2003.h: New.
6087 * config/pa/pa-hpux1131.opt: New.
6088 * config/pa/pa-hpux1131.h: New.
6089 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6090 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 6091 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 6092
1e30c578
JJ
60932011-05-05 Jakub Jelinek <jakub@redhat.com>
6094
6095 PR debug/48853
6096 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6097 instead of mode as 3rd argument to recursive call.
6098 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6099 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6100 VOIDmode.
6101 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6102 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6103 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6104 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6105
d19eb620
JB
61062011-05-05 Julian Brown <julian@codesourcery.com>
6107
6108 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6109 parenthesis in D-register case.
6110
c860fe8c
JM
61112011-05-05 Joseph Myers <joseph@codesourcery.com>
6112
6113 * opt-functions.awk (var_type_struct): Handle Enum options.
6114 * optc-gen.awk: Don't check range of variables of character type.
6115 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6116 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6117 rs6000_sdata_name, rs6000_explicit_options): Remove.
6118 (rs6000_option_override_internal): Check for -malign-power here.
6119 Use global_options_set instead of rs6000_explicit_options.
6120 (rs6000_parse_fpu_option): Remove.
6121 (rs6000_handle_option): Access variables via opts and opts_set
6122 pointers. Use error_at and warning_at. Add fall-through
6123 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6124 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6125 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6126 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6127 here. Don't use rs6000_parse_fpu_option.
6128 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6129 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6130 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6131 (mrecip=): Use Var.
6132 (mspe): Use Var and Save.
6133 (mtraceback=): Use Enum and Var.
6134 (rs6000_traceback_type): New Enum and EnumValue entries.
6135 (mfloat-gprs=): Use Enum, Var and Save.
6136 (rs6000_float_gprs): New Enum and EnumValue entries.
6137 (mlong-double-): use Var and Save.
6138 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6139 (malign-): Use Enum and Var.
6140 (rs6000_alignment_flags): New Enum and EnumValue entries.
6141 (mfpu=): Use Enum.
6142 (fpu_type_t): New Enum and EnumValue entries.
6143 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6144 global_options_set instead of rs6000_explicit_options.
6145 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6146 global_options_set instead of rs6000_explicit_options.
6147 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6148 global_options_set instead of rs6000_explicit_options.
6149 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6150 global_options_set instead of rs6000_explicit_options.
6151 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6152 global_options_set instead of rs6000_explicit_options.
6153 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6154 global_options_set instead of rs6000_explicit_options.
6155 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6156 definition.
6157 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6158 global_options_set instead of rs6000_explicit_options.
6159 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6160 (rs6000_cmodel): New Enum and EnumValue entries.
6161 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6162 global_options_set instead of rs6000_explicit_options.
6163 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6164 (mtls-size=): Use Enum and Var.
6165 (rs6000_tls_size): New Enum and EnumValue entries.
6166
0691dde9
MM
61672011-05-05 Michael Matz <matz@suse.de>
6168
6169 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6170 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6171 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6172 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6173 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6174 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6175 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6176 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6177 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6178 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6179 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6180 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6181 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6182 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6183 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6184 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6185
86529a49
RG
61862011-05-05 Richard Guenther <rguenther@suse.de>
6187
6188 * expmed.c (expand_variable_shift): Rename to ...
6189 (expand_shift_1): ... this. Take an expanded shift amount.
6190 For rotates recurse directly not building trees for the shift amount.
6191 (expand_variable_shift): Wrap around expand_shift_1.
6192 (expand_shift): Adjust.
6193
d0228c2e
JJ
61942011-05-05 Jakub Jelinek <jakub@redhat.com>
6195
6196 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6197
907a08d9
EB
61982011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6199
6200 * tree.h (get_pending_sizes): Remove prototype.
6201 (put_pending_size): Likewise.
6202 (put_pending_sizes): Likewise.
6203 * stor-layout.c (pending_sizes): Delete.
6204 (get_pending_sizes): Likewise.
6205 (put_pending_size): Likewise.
6206 (put_pending_sizes): Likewise.
6207 (variable_size): Do not call put_pending_size and tidy up.
6208 * function.h (struct function): Remove dont_save_pending_sizes_p.
6209 * lto-streamer-in.c (input_function): Do not stream it.
6210 * lto-streamer-out.c (output_function): Likewise.
6211 * tree-inline.c (initialize_cfun): Do not copy it.
6212 * c-decl.c (store_parm_decls): Do not set it.
6213 * omp-low.c (create_task_copyfn): Likewise.
6214 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6215
386d9c57
UB
62162011-05-05 Uros Bizjak <ubizjak@gmail.com>
6217
6218 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6219 conditions.
6220 (*movdf_internal): Ditto.
6221 (*movdf_internal_nointeger): Ditto.
6222 (*movsf_internal): Ditto.
6223
a04a722b
JM
62242011-05-05 Joseph Myers <joseph@codesourcery.com>
6225
6226 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6227 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6228 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6229 (c_variable_size): Remove.
6230 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6231 call put_pending_sizes.
6232 (get_parm_info): Add parameter expr. Use it to set
6233 arg_info->pending_sizes.
6234 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6235 get_pending_sizes.
6236 * c-parser.c (c_parser_parms_declarator): Update call to
6237 c_parser_parms_list_declarator.
6238 (c_parser_parms_list_declarator): Take parameter expr. Update
6239 call to push_parm_decl. Update recursive call. Don't call
6240 get_pending_sizes. Update calls to get_parm_info.
6241 (c_parser_objc_method_definition): Update calls to
6242 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 6243 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
6244 (c_parser_objc_method_decl): Add parameter expr. Update call to
6245 grokparm.
386d9c57 6246 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
6247 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6248 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6249
c92a6f97
MH
62502011-05-05 Michael Hope <michael.hope@linaro.org>
6251
386d9c57
UB
6252 PR pch/45979
6253 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6254 __ARM_EABI__ hosts.
c92a6f97 6255
07ea0048
UW
62562011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6257
6258 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6259 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6260 (spu_output_mi_thunk): New function.
6261
d634bfa1
RO
62622011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6263
6264 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6265 targetm.asm_out.print_operand.
6266 * config/sol2.c: Include target.h.
6267
40fda55b
JH
62682011-05-04 Jan Hubicka <jh@suse.cz>
6269
6270 * ipa-inline.c (reset_edge_caches): New function.
6271 (update_caller_keys): Add check_inlinablity_for; do not
6272 reset edge caches; remove now unnecesary loop.
386d9c57 6273 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
6274 (update_all_callee_keys): Likewise.
6275 (inline_small_functions): Sanity check cache; update code
6276 recomputing it.
6277
0360f70d
BS
62782011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6279
6280 PR rtl-optimization/47612
6281 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6282 as the last insn of the sequence to be moved.
6283
7a994646
TB
62842011-05-04 Tobias Burnus <burnus@net-b.de>
6285
6286 PR fortran/48864
6287 * doc/invoke.texi (Ofast): Document that it
6288 enables Fortran's -fno-protect-parens.
6289
7a2f7208
UB
62902011-05-04 Uros Bizjak <ubizjak@gmail.com>
6291
6292 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6293
a2d42931
EB
62942011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6295
6296 * stor-layout.c (variable_size): Do not issue errors.
6297
f81b1a3d
RG
62982011-05-04 Richard Guenther <rguenther@suse.de>
6299
6300 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6301 for array-ref indices.
6302 (tree_coverage_counter_addr): Likewise.
6303 (build_fn_info_type): Use size_int for index types.
6304 (build_gcov_info): Likewise.
6305
c62c040f
RG
63062011-05-04 Richard Guenther <rguenther@suse.de>
6307
6308 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6309 to build_int_cst.
6310 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6311 for constructor indices.
6312 (push_init_level): Likewise.
6313
1e3287d0
RG
63142011-05-04 Richard Guenther <rguenther@suse.de>
6315
6316 * explow.c (promote_mode): Move variable declarations before code.
6317
6c32445b
NF
63182011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6319
6320 * tree.h (build_function_type_array): Declare.
6321 (build_varargs_function_type_array): Declare.
6322 (build_function_type_vec, build_varargs_function_type_vec): Define.
6323 * tree.c (build_function_type_array_1): New function.
6324 (build_function_type_array): New function.
6325 (build_varargs_function_type_array): New function.
6326
fdabf269
RS
63272011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6328
6329 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6330 before setting STMT_VINFO_TYPE.
6331
a207915a
UW
63322011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6333
6334 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6335 instead of spu_pass_by_reference.
6336
5e617be8
AK
63372011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6338
6339 * calls.c (emit_library_call_value_1): Invoke
6340 promote_function_mode hook on libcall arguments.
6341 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6342 argument being NULL.
6343 * targhooks.c (default_promote_function_mode): Lisewise.
6344 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6345 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6346
6347 * doc/tm.texi: Document that TYPE argument might be NULL.
6348
486d04be
SH
63492011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6350
6351 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6352
9b19b026
SH
63532011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6354
6355 From Bernd Schmidt
6356 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6357
502bc3df
RO
63582011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6359
6360 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6361 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6362 Move ...
6363 * mips-tfile.c: ... here.
6364 Don't include coretypes.h, tm.h, filenames.h.
6365 (saber_stop): Remove definition and all calls.
6366 [__SABER__]: Remove.
6367 (__LINE__): Remove default.
6368 (Size_t, Ptrdiff_t): Remove definitions.
6369 Replace by size_t, ptrdiff_t.
6370 [!MIPS_DEBUGGING_INFO]: Remove.
6371 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6372 (progname): Add const.
6373 (STATIC): Remove.
6374 Replace all uses by static.
6375 (ALIGN_SYMTABLE_OFFSET): Remove default.
6376 * mips-tdump.c: Don't include coretypes.h, tm.h.
6377 Remove !MIPS_IS_STAB guard.
6378 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6379 $(TM_H), filenames.h dependencies.
6380 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6381
991eb6ef
SH
63822011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6383
6384 From Jie Zhang
6385 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6386 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6387
420ccc84
SH
63882011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6389
6390 From Bernd Schmidt
6391 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6392 account and save/restore RETS.
6393 (PROFILE_BEFORE_PROLOGUE): Define.
6394 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6395 the push insn to use predecrement.
6396
9f8d69ee
SH
63972011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6398
6399 From Jie Zhang
6400 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6401
662c03f4
NC
64022011-05-04 Nick Clifton <nickc@redhat.com>
6403
6404 * config/mn10300/mn10300.c: Include cfgloop.h.
6405 (DUMP): New macro.
6406 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6407 Lcc or a FLcc insn into the instruction stream.
6408 (mn10300_block_contains_call): New function. Returns true if the
6409 given basic block contains a CALL insn.
6410 (mn10300_loop_contains_call_insn): New function. Returns true if
6411 the given loop contains a CALL insn.
6412 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6413 to use the SETLB and Lcc or FLcc insns.
6414 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6415 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6416 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6417 disable the SETLB optimization.
6418 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6419 __SETLB__ or __NO_SETLB__.
6420 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6421 (movsf_internal): Handle MDR register.
6422 (cmpsi): Make visible.
6423 (setlb): New pattern.
6424 (Lcc): New pattern.
6425 (FLcc): New pattern.
6426
843b6915
UB
64272011-05-04 Uros Bizjak <ubizjak@gmail.com>
6428
6429 PR target/48860
6430 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6431 for reg<->xmm moves.
6432 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6433 (vec_concatv2di_rex64_sse): Ditto.
6434 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6435 (*vec_extractv2di_1_rex64): Ditto.
6436
6437 Revert:
6438 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6439
6440 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6441 reg<->xmm moves.
6442 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6443
d35936ab
RG
64442011-05-04 Richard Guenther <rguenther@suse.de>
6445
6446 * tree.h (int_const_binop): Remove notrunc argument.
6447 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6448 create integer constants that are properly truncated.
6449 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6450 (const_binop): Remove zero notrunc argument to int_const_binop.
6451 (size_binop_loc): Likewise.
6452 (fold_div_compare): Likewise.
6453 (maybe_canonicalize_comparison_1): Likewise.
6454 (fold_comparison): Likewise.
6455 (fold_binary_loc): Likewise.
6456 (multiple_of_p): Likewise.
6457 * expr.c (store_constructor): Likewise.
6458 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6459 (maybe_fold_stmt_addition): Likewise.
6460 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6461 * stor-layout.c (layout_type): Likewise.
6462 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6463 * tree-sra.c (build_ref_for_offset): Likewise.
6464 (build_user_friendly_ref_for_offset): Likewise.
6465 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6466 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6467 * tree-ssa-loop-niter.c (inverse): Likewise.
6468 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6469 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6470 * tree-switch-conversion.c (check_range): Likewise.
6471 (build_constructors): Likewise.
6472 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6473 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6474 (extract_range_from_assert): Likewise.
6475 (vrp_int_const_binop): Likewise.
6476 (extract_range_from_binary_expr): Likewise.
6477 (extract_range_from_unary_expr): Likewise.
6478 (check_array_ref): Likewise.
6479 (find_case_label_range): Likewise.
6480 (simplify_div_or_mod_using_ranges): Likewise.
6481 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6482 comparing case labels for merging.
6483
8992c063
MW
64842011-05-03 Mark Wielaard <mjw@redhat.com>
6485
6486 * dwarf2out.c (debug_str_hash_forced): Removed.
6487 (gen_label_for_indirect_string): Removed.
6488 (get_debug_string_label): Removed.
6489 (AT_string_form): Generate label directly.
6490 (output_indirect_string): Test indirect_string_node for
6491 DW_FORM_strp instead of checking label and refcount.
6492 (prune_indirect_string): Removed.
6493 (prune_unused_types): Don't check debug_str_hash_forced or
6494 call prune_indirect_string.
6495
4868e6ea
AO
64962011-05-04 Alexandre Oliva <aoliva@redhat.com>
6497
6498 PR other/48093
6499 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6500
01a5c0ab
AO
65012011-05-04 Alexandre Oliva <aoliva@redhat.com>
6502
6503 PR debug/47994
6504 PR debug/47919
6505 * combine.c (try_combine): Skip debug insns at m_split tests.
6506
6ac00218
MW
65072011-04-26 Mark Wielaard <mjw@redhat.com>
6508
6509 PR42288
6510 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6511 when info_section_emitted.
6512
3af42a7b
JM
65132011-05-03 Joseph Myers <joseph@codesourcery.com>
6514
6515 * config/mips/mips-opts.h: New.
6516 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6517 to mips-opts.h.
6518 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6519 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6520 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6521 via opts pointer.
6522 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6523 mips-opts.h.
6524 (mips_abi, mips_code_readable): Don't declare.
843b6915 6525 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
6526 (mabi=): Use Enum and Var.
6527 (mips_abi): New Enum and EnumValue entries.
6528 (mcode-readable=): Use Enum and Var.
6529 (mips_code_readable_setting): New Enum and EnumValue entries.
6530 (mr10k-cache-barrier=): Use Enum and Var.
6531 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6532
1cb1a99f
JH
65332011-05-03 Jan Hubicka <jh@suse.cz>
6534
6535 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6536 replace hash by pointer map.
6537 (cgraph_node_set_element_def, cgraph_node_set_element,
6538 const_cgraph_node_set_element, varpool_node_set_element_def,
6539 varpool_node_set_element, const_varpool_node_set_element): Remove.
6540 (free_cgraph_node_set, free_varpool_node_set): New function.
6541 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6542 * tree-emutls.c: Free varpool node set.
6543 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6544 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6545 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6546 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6547 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6548 Move here from ipa.c; implement using pointer_map
6549 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6550 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6551 debug_cgraph_node_set, varpool_node_set_new,
6552 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6553 dump_varpool_node_set, debug_varpool_node_set):
6554 Move to ipa-uitls.c.
6555 * passes.c (ipa_write_summaries): Update.
6556
7f31f4db
SH
65572011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6558
7a2f7208
UB
6559 From Mike Frysinger:
6560 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6561 bf542/bf544/bf547/bf548/bf549.
7f31f4db 6562
b70fce6d
UB
65632011-05-03 Uros Bizjak <ubizjak@gmail.com>
6564
6565 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6566
265b1d82
SH
65672011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6568
6569 From Bernd Schmidt:
6570 * config/bfin/bfin.md (MOVCC): New mode_macro.
6571 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6572 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6573 comments from generated assembly.
6574
f0b568f3
SH
65752011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6576
6577 From Bernd Schmidt
6578 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6579 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6580 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6581 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6582 * config/bfin/lib1funcs.asm (___muldi3): New function.
6583
2c67cf6e
NF
65842011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6585
6586 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6587 build_function_type_list instead of build_function_type.
6588 Rearrange initialization of `args' to do so.
6589
f9ac28ad
NF
65902011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6591
6592 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6593 instead of build_function_type.
6594
22b8798c
NF
65952011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6596
6597 * config/rs6000/rs6000.c (spe_init_builtins): Call
6598 build_function_type_list instead of build_function_type.
6599 (paired_init_builtins, altivec_init_builtins): Likewise.
6600 (builtin_function_type): Likewise.
6601
4cb44528
NF
66022011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6603
6604 * config/sh/sh.c (sh_media_init_builtins): Call
6605 build_function_type_list instead of build_function_type.
6606
4c203a6a
NF
66072011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6608
6609 * config/sparc/sparc.c (sparc_file_end): Call
6610 build_function_type_list instead of build_function_type.
6611
d6a3d62b
NF
66122011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6613
6614 * config/alpha/alpha.c (alpha_init_builtins): Call
6615 build_function_type_list instead of build_function_type.
6616
de530b86
NF
66172011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6618
6619 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6620 build_function_type_list instead of build_function_type.
6621
baeec5f2
NF
66222011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6623
6624 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6625 build_function_type_list instead of build_function_type.
6626 Delete `endlink' variable.
6627
c19afe52
NF
66282011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6629
6630 * config/avr/avr.c (avr_init_builtins): Call
6631 build_function_type_list instead of build_function_type.
6632
a341df0a
NF
66332011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6634
6635 * config/picochip/picochip.c (picochip_init_builtins): Call
6636 build_function_type_list instead of build_function_type.
6637 Delete `endlink' variable.
6638
2102b1e1
NF
66392011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6640
6641 * config/bfin/bfin.c (bfin_init_builtins): Call
6642 build_function_type_list instead of build_function_type.
6643
9f111209
SH
66442011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6645
6646 From Bernd Schmidt
6647 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6648 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6649
7071d064
SH
66502011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6651
6652 From Jie Zhang:
6653 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6654 libbffastfp overrides libgcc when -mfast-fp.
6655
748f7574 66562011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
6657
6658 Originally from Bernd Schmidt
6659 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6660 * config/bfin/bfin.c (override_options): Test it and error if
6661 TARGET_FDPIC.
6662
1a3a9152
SH
66632011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6664
6665 Originally From Bernd Schmidt
6666 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6667 FD-PIC.
6668
7134c090
JL
66692011-05-03 Jeff Law <law@redhat.com>
6670
6671 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6672 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6673 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
6674 than accessing AUX field directly. Free the AUX field before
6675 clearing it.
7134c090
JL
6676 (thread_block, thread_through_loop_header): Likewise.
6677 (thread_single_edge, mark_threaded_blocks): Likewise.
6678 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6679 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 6680
2c7eebae
BS
66812011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6682
6683 * function.c (init_function_start): Call decide_function_section.
6684 * varasm.c (decide_function_section): New function.
6685 (assemble_start_function): When not using
6686 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6687 or first_function_block_is_cold.
6688 * rtl.h (decide_function_section): Declare.
6689
17038fcf
JJ
66902011-05-03 Uros Bizjak <ubizjak@gmail.com>
6691 Jakub Jelinek <jakub@redhat.com>
6692
6693 PR target/48774
6694 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6695 only succeed if req_mode is the same as set_mode.
6696
3810076b
BS
66972011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6698
6699 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6700 * genemit.c (gen_exp): Handle RETURN.
6701 * emit-rtl.c (verify_rtx_sharing): Likewise.
6702 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6703 * rtl.c (copy_rtx): RETURN is shared.
6704 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6705 (ret_rtx): New.
6706 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6707 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6708 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6709 * config/cris/cris.c (cris_expand_return): Likewise.
6710 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6711 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6712 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6713 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6714 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6715 Likewise.
6716 * config/v850/v850.c (expand_epilogue): Likewise.
6717 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6718 * config/arm/arm.md (epilogue): Likewise.
6719 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6720 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6721 variable to ret_reg.
6722
9efdb4ad
RG
67232011-05-03 Richard Guenther <rguenther@suse.de>
6724
6725 PR lto/48846
6726 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6727 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6728 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6729
60a45536
RG
67302011-05-03 Richard Guenther <rguenther@suse.de>
6731
6732 * c-decl.c (grokdeclarator): Instead of looking at
6733 TREE_OVERFLOW check if the constant fits in the index type.
6734
3188ed59
RS
67352011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6736
6737 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6738 (vec_store_lanes<mode><mode>): Likewise.
6739
272c6793
RS
67402011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6741
6742 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6743 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6744 convert_optab_index values.
6745 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6746 * genopinit.c (optabs): Initialize the new optabs.
6747 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6748 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6749 (expand_STORE_LANES): New functions.
6750 * tree.h (build_array_type_nelts): Declare.
6751 * tree.c (build_array_type_nelts): New function.
6752 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6753 (vect_model_load_cost): Likewise.
6754 (vect_store_lanes_supported, vect_load_lanes_supported)
6755 (vect_record_strided_load_vectors): Declare.
6756 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6757 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6758 (vect_transform_strided_load): Split out statement recording into...
6759 (vect_record_strided_load_vectors): ...this new function.
6760 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6761 (write_vector_array, create_array_ref): New functions.
6762 (vect_model_store_cost): Add store_lanes_p argument.
6763 (vect_model_load_cost): Add load_lanes_p argument.
6764 (vectorizable_store): Try to use store-lanes functions for
6765 interleaved stores.
6766 (vectorizable_load): Likewise load-lanes and loads.
6767 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6768 to vect_model_store_cost.
6769 (vect_build_slp_tree): Likewise vect_model_load_cost.
6770
0f6d54f7
RS
67712011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6772
6773 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6774 * hooks.c (hook_bool_mode_uhwi_false): New function.
6775 * target.def (array_mode_supported_p): New hook.
6776 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6777 * doc/tm.texi: Regenerate.
6778 * stor-layout.c (mode_for_array): New function.
6779 (layout_type): Use it.
6780 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6781 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6782
b15eacc7
EB
67832011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6784
6785 PR target/48723
6786 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6787 for -fstack-check if the size to allocate is negative.
6788
575bfb00
LC
67892011-05-02 Lawrence Crowl <crowl@google.com>
6790
6791 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6792 (timevar_cond_start): New for starting a timer only when it is not
6793 already running.
6794 (timevar_cond_stop): New for stopping a timer when it was not already
6795 running.
6796
6797 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6798 (timevar_cond_start): New as above.
6799 (timevar_cond_stop): New as above.
6800
6801 * timevar.def: Add start/stop timers for compiler phases,
6802 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6803 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6804 and TV_PHASE_FINALIZE.
6805 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6806 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6807 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6808 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6809 Make unused TV_OVERLOAD into a start/stop timer.
6810
6811 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6812 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6813 to indicate that they are start/stop timers.
6814
6815 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6816 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6817 Move initialization to do_compile.
6818 (do_compile): Add initialization from above.
6819 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6820
6821 * c-decl.c (c_write_global_declarations): Add start/stop of
6822 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6823
6824 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6825 or TV_PARSE_INLINE, as appropriate.
6826 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6827 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6828
3533b943
JM
68292011-05-02 Jason Merrill <jason@redhat.com>
6830
6831 PR c++/40975
6832 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6833
2609a0ce
SM
68342011-05-02 Simon Martin <simartin@users.sourceforge.net>
6835
6836 PR c/35445
6837 * c-decl.c (finish_decl): Only create a composite if the types are
6838 compatible.
6839
6b0e4cbb
JM
68402011-05-02 Joseph Myers <joseph@codesourcery.com>
6841
6842 * config/fr30/fr30-protos.h (Mmode): Don't define.
6843 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6844 definition where used.
6845 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6846 define. Expand definitions where used.
6847 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6848 Expand definitions where used.
6849 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6850 rx_function_arg, rx_function_arg_advance,
6851 rx_function_arg_boundary): Expand definitions of those macros.
6852 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6853 definition where used.
6854
4e938ce6
UB
68552011-05-02 Uros Bizjak <ubizjak@gmail.com>
6856
6857 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6858 reg<->xmm moves.
6859 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6860 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6861 with *movv2sf_internal_rex64_avx.
6862 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6863 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6864 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6865 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6866 "vex" in "prefix" attribute calculation.
6867 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6868
36019c19
SH
68692011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6870
7a2f7208
UB
6871 PR target/47951
6872 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6873 inputs match the output.
36019c19 6874
f69ea688
AS
68752011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6876
6877 PR target/47955
6878 * config/m68k/m68k.c (m68k_expand_prologue): Set
6879 current_function_static_stack_size.
6880
c33406f5
JH
68812011-05-02 Jan Hubicka <jh@suse.cz>
6882
6883 * lto-streamer.c (lto_streamer_cache_insert_1,
6884 lto_streamer_cache_lookup, lto_streamer_cache_create,
6885 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6886 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6887
47c94d21
JM
68882011-05-02 Joseph Myers <joseph@codesourcery.com>
6889
6890 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6891 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6892 config/m68k/t-opts: New files.
6893 * config/m68k/m68k-tables.opt: New file (generated).
6894 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6895 extra_options and m68k/t-opts to tmake_file.
6896 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6897 (all_isas): Initialize using m68k-isas.def.
6898 (all_microarchs): Initialize using m68k-microarchs.def.
6899 (m68k_find_selection): Remove.
6900 (m68k_handle_option): Don't assert that global structures are in
6901 use. Use error_at. Access variables via opts pointer. Don't
6902 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6903 directly for -m68020-40 and -m68020-60.
6904 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6905 m68k_tune_entry here.
6906 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6907 to m68k-opts.h.
6908 (m68k_library_id_string): Remove declaration.
4e938ce6 6909 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
6910 (m68k_library_id_string): New Variable.
6911 (march=, mcpu=, mtune=): Use Enum and Var.
6912
e562bf36
RG
69132011-05-02 Richard Guenther <rguenther@suse.de>
6914
6915 * varasm.c (output_constructor_regular_field): Compute zero-based
6916 index with double-ints. Make sure to ICE instead of producing
6917 wrong code.
6918 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6919 in asserts. Properly use a signed type.
6920
6bec6c98
UB
69212011-05-02 Uros Bizjak <ubizjak@gmail.com>
6922
6923 * config/i386/sse.md (V): New mode iterator.
6924 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6925 TARGET_SSE2.
6926 (V_256): Rename from AVX256MODE.
6927 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6928 condition to all users.
6929 (VF1): Ditto.
6930 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6931 condition to all users.
6932 (VF_128): Make V4SF mode unconditional.
6933 (VF_256): Rename from AVX256MODEF2P.
6934 (VI4F_128): Rename from SSEMODE4S.
6935 (VI8F_128): Rename from SSEMODE2D.
6936 (VI4F_256): Rename from AVX256MODE8P.
6937 (VI8F_256): Rename from AVX256MODE4P.
6938 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6939 (ssescalarmodesuffix): Remove SF and DF modes.
6940 (SSEMODE124): Remove.
6941 (SSEMODE1248): Ditto.
6942 (SSEMODEF2P): Ditto.
6943 (AVXMODEF2P): Ditto.
6944 (AVXMODEFDP): Ditto.
6945 (AVXMODEFSP): Ditto.
6946 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6947 unconditional.
6948 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6949 unconditional.
6950 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6951 xop_pcmov_<mode>256. Use V mode iterator.
6952
6953 Adjust RTX patterns globally for renamed mode attributes.
6954
2dfdcb4b
UW
69552011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6956
6957 * haifa-sched.c (sched_emit_insn): Emit insn before first
6958 non-scheduled insn. Inform back-end about new insn. Add
6959 new insn to scheduled_insns list.
6960
90bc4623
RG
69612011-05-02 Richard Guenther <rguenther@suse.de>
6962
6963 PR tree-optimization/48822
6964 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6965 (process_scc): Indicate which iteration we start.
6966
bc0fe8cb
JH
69672011-05-02 Jan Hubicka <jh@suse.cz>
6968
6969 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6970 (lto_section_overrun): New.
6971 * lto-section-out.c (append_block): Rename to ...
6972 (lto_append_block): ... this one; export.
6973 (lto_output_1_stream): Move lto lto-streamer.h
6974 (lto_output_data_stream): Update.
6975 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6976 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6977 functions.
6978
f070a9d1
RG
69792011-05-02 Richard Guenther <rguenther@suse.de>
6980
6981 * tree.c (tree_code_counts): New global array.
6982 (record_node_allocation_statistics): Count individual tree codes.
6983 (dump_tree_statistics): Dump individual code stats.
6984
09dfe187
JH
69852011-05-01 Jan Hubicka <jh@suse.cz>
6986
6987 * ipa-inline.c (caller_growth_limits): Fix thinko when
6988 looking for largest stack frame.
6989 * ipa-inline.h (dump_inline_summary): Declare.
6990 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6991 on stack usage.
6992 (dump_inline_summary): Export.
6993 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6994
6f76a878
AS
69952011-05-01 Anatoly Sokolov <aesok@post.ru>
6996
6997 * reginfo.c (memory_move_cost): Change rclass argument type form
6998 'enum reg_class' to reg_class_t.
6999 * reload.h (memory_move_cost): Update prototype.
7000 * postreload.c reload_cse_simplify_set): Change type dclass var to
7001 reg_class_t.
7002 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7003 Update prototype.
7004 (ira_allocate_and_set_costs): Change aclass argument type form
7005 'enum reg_class' to reg_class_t.
6bec6c98 7006 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
7007 Change aclass argument type to reg_class_t.
7008 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7009 to reg_class_t.
7010 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7011 memory_move_cost call.
7012
7013 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7014 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7015 Change type tmp var to reg_class_t.
7016
9a4ac625
JH
70172011-04-30 Jan Hubicka <jh@suse.cz>
7018
7019 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7020 inlining into function with flatten attribute.
7021 (want_inline_small_function_p): Be more realistic about inlining
7022 cold calls where callee size grows.
7023
dd8352ee
JH
70242011-04-30 Jan Hubicka <jh@suse.cz>
7025
7026 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7027 flags.
7028
46e43d2b
AS
70292011-04-30 Anatoly Sokolov <aesok@post.ru>
7030
7031 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7032 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7033 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7034 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7035 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7036 (print_operand): Rename to...
7037 (sparc_print_operand): ...this. Make static. Adjust
7038 sparc_print_operand function call.
7039 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7040 functions.
7041
ecb62563
JH
70422011-04-30 Jan Hubicka <jh@suse.cz>
7043
6bec6c98 7044 PR middle-end/48752
ecb62563
JH
7045 * ipa-inline.c (early_inliner): Disable when doing late
7046 addition of function.
7047
edb9b69e
JJ
70482011-04-30 Jakub Jelinek <jakub@redhat.com>
7049
be80a87e
JJ
7050 * dwarf2out.c (get_address_mode): New inline.
7051 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7052 if not dwarf_strict emit
7053 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7054 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7055 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7056 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7057 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7058 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7059 mem_loc_descriptor callers.
7060 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7061 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7062 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7063 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7064 (base_types): New variable.
7065 (get_base_type_offset, calc_base_type_die_sizes,
7066 base_type_for_mode, mark_base_types, base_type_cmp,
7067 move_marked_base_types): New functions.
7068 (calc_die_sizes): Assert that die_offset is 0 or equal to
7069 next_die_offset.
7070 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7071 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7072 callers. If not dwarf_strict, call mem_loc_descriptor even for
7073 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7074 (gen_subprogram_die): Don't give up on call site parameters
7075 with non-integral or large integral modes. Adjust
7076 mem_loc_descriptor callers.
7077 (prune_unused_types): Call prune_unused_types_mark on base_types
7078 vector entries.
7079 (resolve_addr): Call mark_base_types.
7080 (dwarf2out_finish): Call move_marked_base_types.
7081
edb9b69e
JJ
7082 PR tree-optimization/48809
7083 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7084 type.
7085 (gen_inbound_check): Don't compute index_expr - range_min in utype
7086 again, instead reuse SSA_NAME initialized in build_arrays.
7087 Remove two useless gsi_for_stmt calls.
7088
a6545a3d
JL
70892011-04-29 Jeff Law <law@redhat.com>
7090
7091 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7092
af8bca3c
MJ
70932011-04-29 Martin Jambor <mjambor@suse.cz>
7094
7095 * cgraph.h (cgraph_postorder): Remove declaration.
7096 * ipa-utils.h (ipa_free_postorder_info): Declare.
7097 (ipa_reverse_postorder): Likewise.
7098 * cgraphunit.c: Include ipa-utils.h.
7099 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7100 * ipa-inline.c: Include ipa-utils.h.
7101 (ipa_inline): Update call to ipa_reverse_postorder.
7102 * ipa-pure-const.c (propagate_pure_const): Update call to
7103 ipa_reduced_postorder and ipa_print_order. Call
7104 ipa_free_postorder_info to clean up.
7105 (propagate_nothrow): Likewise.
7106 * ipa-reference.c (propagate): Removed a useless call to
7107 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7108 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7109 * ipa.c: Include ipa-utils.h.
7110 (ipa_profile): Update call to ipa_reverse_postorder.
7111 (cgraph_postorder): Moved to...
7112 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7113 (ipa_utils_print_order): Renamed to ipa_print_order.
7114 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7115 comments.
7116 (ipa_free_postorder_info): New function.
7117 * passes.c: Include ipa-utils.h.
7118 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7119 (ipa_write_summaries): Likewise.
7120 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7121 (cgraphunit.o): Likewise.
7122 (ipa.o): Likewise.
7123 (ipa-inline.o): Likewise.
7124
b15c64ee
JH
71252011-04-29 Jan Hubicka <jh@suse.cz>
7126
7127 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7128 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7129 * ipa-inline.h (clause_t): Turn into unsigned int.
7130 * ipa-inline-analysis.c (add_clause): Do more simplification.
7131 (and_predicates): Shortcut more cases.
7132 (predicates_equal_p): Move forward; check that clauses are properly
7133 ordered.
7134 (or_predicates): Shortcut more cases.
7135 (edge_execution_predicate): Rewrite as...
7136 (set_cond_stmt_execution_predicate): ... this function; handle
7137 __builtin_constant_p.
7138 (set_switch_stmt_execution_predicate): New .
7139 (compute_bb_predicates): New.
7140 (will_be_nonconstant_predicate): Update TODO.
7141 (estimate_function_body_sizes): Use compute_bb_predicates
7142 and free them later, always try to estimate if stmt is constant.
7143 (estimate_time_after_inlining, estimate_size_after_inlining):
7144 Gracefully handle optimized out edges.
7145 (read_predicate): Fix off by one error.
7146
a88fdc2a
NP
71472011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7148
7149 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7150
d984c8ef
XDL
71512011-04-27 Xinliang David Li <davidxl@google.com>
7152
7153 * tree-profile.c (init_ic_make_global_vars): Set
7154 tls attribute on ic vars.
7155 * coverage.c (coverage_end_function): Initialize
7156 function_list with zero.
7157
45a2c477
RG
71582011-04-29 Richard Guenther <rguenther@suse.de>
7159
7160 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7161 for the type of the result.
7162 (fold_builtin_isascii): Likewise.
7163 (fold_builtin_toascii): Use integer_type_node where appropriate.
7164 (fold_builtin_logb): Likewise.
7165 (fold_builtin_frexp): Likewise.
7166 (fold_builtin_strstr): Likewise.
7167 (fold_builtin_strpbrk): Likewise.
7168 (fold_builtin_fputs): Likewise.
7169 (fold_builtin_sprintf): Likewise.
7170 (fold_builtin_snprintf): Likewise.
7171 (fold_builtin_printf): Likewise.
7172 (do_mpfr_remquo): Use a proper type for the assigned constant.
7173 (do_mpfr_lgamma_r): Likewise.
7174 * dwarf2out.c (resolve_one_addr): Use size_int.
7175 * except.c (init_eh): Likewise.
7176 (assign_filter_values): Use integer_type_node for filter values.
7177 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7178 indices.
7179 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7180 for EH region numbers.
7181 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7182 for the shift amount.
7183
eb6c3df1
RG
71842011-04-29 Richard Guenther <rguenther@suse.de>
7185
7186 * expr.h (expand_shift): Rename to ...
7187 (expand_variable_shift): ... this.
7188 (expand_shift): Take a constant shift amount.
7189 * expmed.c (expand_shift): Rename to ...
7190 (expand_variable_shift): ... this.
7191 (expand_shift): New wrapper around expand_variable_shift.
7192 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7193 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7194 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7195 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7196 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7197 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7198 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7199 emit_store_flag_1, emit_store_flag): Likewise.
7200 * builtins.c (expand_builtin_signbit): Likewise.
7201 * calls.c (load_register_parameters): Likewise.
7202 * function.c (assign_parm_setup_block): Likewise.
7203 * lower-subreg.c (resolve_shift_zext): Likewise.
7204 * optabs.c (widen_bswap, expand_abs_nojump,
7205 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7206 * spu/spu.c (spu_expand_extv): Likewise.
7207 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7208
9f616812
RG
72092011-04-29 Richard Guenther <rguenther@suse.de>
7210
7211 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7212 for the remapped region number.
7213 * predict.c (build_predict_expr): Use integer_type_node for the
7214 predict kind.
7215 * fold-const.c (fold_binary_loc): Use integer_type_node for
7216 the shift amount. Use a proper type for the PLUS_EXPR operand.
7217
b823cdfe
MM
72182011-04-29 Michael Matz <matz@suse.de>
7219
7220 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7221 other trees that just builtins.
7222 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7223
413581ba
RG
72242011-04-29 Richard Guenther <rguenther@suse.de>
7225
7226 * tree-nested.c (get_trampoline_type): Use size_int.
7227 (get_nl_goto_field): Likewise.
7228 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7229 for all indexes.
7230 (lower_eh_constructs_2): Likewise.
7231 (lower_resx): Likewise.
7232 (lower_eh_dispatch): Likewise.
7233 * tree-mudflap.c (mf_build_string): Use size_int.
7234 (mudflap_register_call): Use integer_type_node for the flag.
7235 (mudflap_enqueue_constant): Use size_int.
7236 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7237 instead of rebuilding it.
7238
5c04e9f4
RG
72392011-04-29 Richard Guenther <rguenther@suse.de>
7240
7241 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7242 Handle OBJ_TYPE_REF.
7243 (find_func_aliases_for_call): Use it more consistently.
7244
5c24671b
AO
72452011-04-29 Alexandre Oliva <aoliva@redhat.com>
7246
7247 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7248 (rank_for_schedule): Use it.
7249 (schedule_block): Set it.
7250
10adac51
XDL
72512011-04-28 David Li <davidxl@google.com>
7252
7253 * tree.c (crc32_string): Use crc32_byte.
7254 (crc32_byte): New function.
7255 * tree.h (crc32_byte): New function.
7256 * gcov.c (read_graph_file): Handle new cfg_cksum.
7257 (read_count_file): Ditto.
7258 * profile.c (instrument_values): Ditto.
7259 (get_exec_counts): Ditto.
7260 (read_profile_edge_counts): Ditto.
7261 (compute_branch_probabilities): Ditto.
7262 (compute_value_histograms): Ditto.
7263 (branch_prob): Ditto.
7264 (end_branch_prob): Ditto.
7265 * coverage.c (read_counts_file): Ditto.
7266 (get_coverage_counts): Ditto.
7267 (tree_coverage_counter_addr): Ditto.
7268 (coverage_checksum_string): Ditto.
7269 (coverage_begin_output): Ditto.
7270 (coverage_end_function): Ditto.
7271 (build_fn_info_type): Ditto.
7272 (build_fn_info_value): Ditto.
7273 * libgcov.c (gcov_exit): Ditto.
7274 * gcov-dump.c (tag_function): Ditto.
7275 (compute_checksum): Remove.
7276
5d6358a5
AM
72772011-04-29 Alan Modra <amodra@gmail.com>
7278
7279 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7280 unspec plus offset. Tidy macho code.
7281
85ad2ef5
MJ
72822011-04-29 Martin Jambor <mjambor@suse.cz>
7283
7284 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7285 node instead of a decl. Update all callers.
7286 * cgraph.h: Update declaration.
7287
437f4a00
IR
72882011-04-28 Ira Rosen <ira.rosen@linaro.org>
7289
7290 PR tree-optimization/48765
7291 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7292 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7293 to indicate if loop aware SLP is being used. Scan the statements
7294 and update the vectorization factor according to the type of
7295 vectorization before statement analysis.
7296 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7297 pass it to vect_analyze_loop_operations.
7298 (vectorizable_reduction): Set number of copies to 1 in case of pure
7299 SLP statement.
7300 * tree-vect-stmts.c (vectorizable_conversion,
7301 vectorizable_assignment, vectorizable_shift,
7302 vectorizable_operation, vectorizable_type_demotion,
7303 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7304 Likewise.
7305 (vectorizable_condition): Move the check that it is not SLP
7306 vectorization before the number of copies check.
7307 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7308 to vectorize the loop using SLP.
7309
c6fc44f3
JJ
73102011-04-28 Jakub Jelinek <jakub@redhat.com>
7311
7312 PR middle-end/48597
7313 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7314 inline asm.
7315
6c0170ea
JM
73162011-04-28 Joseph Myers <joseph@codesourcery.com>
7317
7318 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7319 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7320 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7321 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7322 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7323 linux*.h headers.
6bec6c98 7324 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
7325 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7326 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7327 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 7328 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
7329 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7330 REG_NAME.
7331 * config/i386/linux.h (REG_NAME): Don't define.
7332 * config/i386/linux64.h (REG_NAME): Don't define.
7333 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7334 Undefine before defining.
7335
970dabbd
JH
73362011-04-28 Jan Hubicka <jh@suse.cz>
7337
6bec6c98
UB
7338 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7339 nonconstant_names array.
970dabbd
JH
7340 (estimate_function_body_sizes): Build nonconstant_names array; handle
7341 BUILT_IN_CONSTANT_P.
7342
8d3e3924
RG
73432011-04-28 Richard Guenther <rguenther@suse.de>
7344
7345 PR bootstrap/48804
7346 Revert
7347 2011-04-28 Richard Guenther <rguenther@suse.de>
7348
7349 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7350 as late as possible.
6bec6c98 7351
8576f20a
RG
73522011-04-28 Richard Guenther <rguenther@suse.de>
7353
7354 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7355 (debug_constraint): Do it here.
7356 (dump_constraints): And here.
7357 (rewrite_constraints): And here.
7358 (dump_constraint_edge): Remove.
7359 (dump_constraint_graph): Rewrite to produce DOT output.
7360 (solve_constraints): Build succ graph as late as possible.
7361 Dump constraint graphs before and after solving.
7362
e38811ce
RG
73632011-04-28 Richard Guenther <rguenther@suse.de>
7364
7365 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7366 New function split out from ...
7367 (find_func_aliases): ... here. Call it.
7368 (find_func_aliases_for_call): Likewise.
7369
fbaf0d0c
GDR
73702011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7371
7372 * internal-fn.h (internal_fn_name_array): Declare.
7373 (internal_fn_flags_array): Likewise.
7374
cbb734aa
UB
73752011-04-27 Uros Bizjak <ubizjak@gmail.com>
7376
7377 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7378 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7379 Move from sse.md.
7380 (ssemodefsuffix): Remove.
7381 (ssevecmodesuffix): New mode attribute.
7382 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7383 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7384 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7385 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7386 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7387 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7388 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7389 ssemodesuffix mode attribute.
7390 (float splitters): Use ssevecmodesuffix mode attribute.
7391 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7392 (sseinsmode): Rename from avxvecmode.
7393 (avxsizesuffix): Rename from avxmodesuffix.
7394 (sseintvecmode): Rename from avxpermvecmode.
7395 (ssedoublevecmode): Rename from ssedoublesizemode.
7396 (ssehalfvecmode): Rename from avxhalfvecmode.
7397 (ssescalarmode): Rename from avxscalarmode.
7398 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7399 templates for ssemodesuffix mode attribute.
7400 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7401 mode attribute.
7402
7403 Adjust RTX patterns globally for renamed mode attributes.
7404
991278ab
JH
74052011-04-27 Jan Hubcika <jh@suse.cz>
7406
7407 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7408 * ipa-inline-analysis.c: Include alloc-pool.h.
7409 (edge_predicate_pool): New.
7410 (trye_predicate_p): New function
7411 (false_predicate_p): New function.
7412 (add_clause): Sanity check that false clauses are "optimized";
7413 never add clauses to predicate that is already known to be false.
7414 (and_predicate): Use flase_predicate_p.
7415 (evaulate_predicate): Rename to ...
7416 (evaluate_predicate): ... this one; update all callers; assert
7417 that false is not listed among possible truths.
7418 (dump_predicate): Use true_predicate_p.
7419 (account_size_time): Use false_predicate_p.
7420 (evaulate_conditions_for_edge): Rename to ...
7421 (evaluate_conditions_for_edge) ... this one.
7422 (edge_set_predicate): New function.
7423 (inline_edge_duplication_hook): Duplicate edge predicates.
7424 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 7425 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
7426 (dump_inline_summary): Update.
7427 (estimate_function_body_sizes): Set edge predicates.
7428 (estimate_calls_size_and_time): Handle predicates.
7429 (estimate_callee_size_and_time): Update.
7430 (remap_predicate): Add toplev_predicate; update comment.
7431 (remap_edge_predicates): New function.
7432 (inline_merge_summary): Compute toplev predicate; update.
7433 (read_predicate): New function.
7434 (read_inline_edge_summary): Use it.
7435 (inline_read_section): Likewise.
7436 (write_predicate): New function.
7437 (write_inline_edge_summary): Use it.
7438 (inline_write_summary): Likewise.
7439 (inline_free_summary): Free alloc pool and edge summary vec.
7440
648b5f85
RG
74412011-04-27 Richard Guenther <rguenther@suse.de>
7442
7443 * tree-ssa-structalias.c (changed_count): Remove.
7444 (changed): Use a bitmap.
7445 (unify_nodes): Adjust.
7446 (do_sd_constraint): Likewise.
7447 (do_ds_constraint): Likewise.
7448 (do_complex_constraint): Likewise.
7449 (solve_graph): Likewise.
7450
4d5dcfb2
JH
74512011-04-27 Jan Hubicka <jh@suse.cz>
7452
7453 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7454
200eb7d2
UB
74552011-04-27 Uros Bizjak <ubizjak@gmail.com>
7456
7457 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7458 (avx_vperm2f128_*_operand): Ditto.
7459 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7460 Use avx_vpermilp_parallel in insn condition.
7461 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7462 Use avx_vperm2f128_parallel in insn condition.
7463
7d6e2521
RG
74642011-04-27 Richard Guenther <rguenther@suse.de>
7465
7466 * Makefile.in (tree-ssa-structalias.o): Remove
7467 gt-tree-ssa-structalias.h dependency.
7468 (GTFILES): Remove tree-ssa-structalias.c.
7469 * tree.c (allocate_decl_uid): New function.
7470 (make_node_stat): Use it.
7471 (copy_node_stat): Likewise.
7472 * tree.h (allocate_decl_uid): Declare.
7473 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7474 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7475 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 7476 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
7477 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7478 (struct heapvar_map): Likewise.
7479 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7480 heapvar_insert): Likewise.
7481 (make_heapvar_for): Rename to ...
7482 (make_heapvar): ... this. Simplify.
7483 (fake_var_decl_obstack): New global var.
7484 (build_fake_var_decl): New function.
7485 (make_constraint_from_heapvar): Adjust.
7486 (handle_lhs_call): Likewise.
7487 (create_function_info_for): Likewise.
7488 (intra_create_variable_infos): Likewise.
7489 (init_alias_vars): Allocate fake_var_decl_obstack.
7490 (init_alias_heapvars, delete_alias_heapvars): Remove.
7491 (compute_points_to_sets): Do not call init_alias_heapvars.
7492 (ipa_pta_execute): Likewise.
7493 (delete_points_to_sets): Free fake_var_decl_obstack.
7494
526ed6c2
UW
74952011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7496
7497 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7498 (si_from_UTItype, si_to_UTItype): New functions.
7499 (__udivmodti4): Use them to implement type-punning.
7500 * config/spu/multi3.c (union qword_TItype): New data type.
7501 (si_from_TItype, si_to_TItype): New functions.
7502 (__multi3): Use them to implement type-punning.
7503
c187d33c
UW
75042011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7505
7506 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7507
40982661
JH
75082011-04-27 Jan Hubicka <jh@suse.cz>
7509
7510 * ipa-prop.c (function_insertion_hook_holder): New holder.
7511 (ipa_add_new_function): New function.
200eb7d2
UB
7512 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7513 Register/deregister holder.
40982661 7514
9aef53ee
RG
75152011-04-27 Richard Guenther <rguenther@suse.de>
7516
7517 PR tree-optimization/48772
200eb7d2 7518 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 7519
f63d806d
RG
75202011-04-27 Richard Guenther <rguenther@suse.de>
7521
7522 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7523 TARGET_MEM_REF handling.
7524
e1ea7451
NC
75252011-04-27 Nick Clifton <nickc@redhat.com>
7526
9b5db25d
NC
7527 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7528 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7529 (REG_CLASS_NAMES): Likewise.
7530 (REG_CLASS_CONTENTS): Likewise.
7531 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7532 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7533 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7534 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7535 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7536 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7537 duplicate register classes.
97d20907 7538 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
7539 (frv_register_move_cost): Likewise.
7540
e1ea7451
NC
7541 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7542 end of the regno_reg_class array.
7543
5c2f94b4
JJ
75442011-04-27 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR c/48742
7547 * c-typeck.c (build_binary_op): Don't wrap arguments if
7548 int_operands is true.
7549
57a944d7
KK
75502011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7551
7552 PR target/48767
7553 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7554 targetm.calls.must_pass_in_stack for void type.
7555
898b8927
JH
75562011-04-26 Jan Hubicka <jh@suse.cz>
7557
7558 * cgraphbuild.c (build_cgraph_edges): Update call
7559 of cgraph_create_edge and cgraph_create_indirect_edge.
7560 * cgraph.c (cgraph_create_edge_including_clones,
7561 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7562 cgraph_update_edges_for_call_stmt_node): Do not take nest
7563 argument; do not initialize call_stmt_size/time.
7564 (dump_cgraph_node): Do not dump nest.
7565 (cgraph_clone_edge): Do not take loop_nest argument;
7566 do not propagate it; do not clone call_stmt_size/time.
7567 (cgraph_clone_node): Likewise.
7568 (cgraph_create_virtual_clone): Update.
7569 * cgraph.h (struct cgraph_edge): Remove
7570 call_stmt_size/call_stmt_time/loop_nest.
7571 (cgraph_create_edge, cgraph_create_indirect_edge,
7572 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7573 prototype.
7574 * tree-emutls.c (gen_emutls_addr): Update.
7575 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7576 loop_nest; handle indirect calls, too.
7577 (clone_inlined_nodes): Do not care about updating inline summaries.
7578 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7579 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7580 stream call_stmt_size/call_stmt_time/loop_nest.
7581 * ipa-inline.c (edge_badness): Update.
7582 (ipa_inline): dump summaries after inlining.
7583 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 7584 New.
898b8927
JH
7585 (inline_edge_summary): New function.
7586 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7587 (inline_edge_removal_hook): Handle edge summaries.
7588 (inline_edge_duplication_hook): New hook.
7589 (inline_summary_alloc): Alloc hooks.
7590 (initialize_growth_caches): Do not register removal hooks.
7591 (free_growth_caches); Do not free removal hook.
7592 (dump_inline_edge_summary): New function.
7593 (dump_inline_summary): Use it.
7594 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7595 (inline_update_callee_summaries): New function.
7596 (inline_merge_summary): Use it.
7597 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7598 (read_inline_edge_summary): New function.
7599 (inline_read_section): Use it.
7600 (write_inline_edge_summary): New function.
7601 (inline_write_summary): Use it.
7602 (inline_free_summary): Free edge new holders.
7603 * tree-inline.c (copy_bb): Update.
7604
ffa03772
JM
76052011-04-26 Jason Merrill <jason@redhat.com>
7606
7607 * tree-eh.c (lower_try_finally_switch): Create the label along with
7608 the CASE_LABEL_EXPR.
7609
6d7b45ad
DM
76102011-04-26 David S. Miller <davem@davemloft.net>
7611 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7612
7613 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7614 * configure: Regenerate.
7615
df10b6d4
MM
76162011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7617
7618 PR target/48258
7619 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7620 reduction.
7621 (VEC_reduc): New code iterator and splitters for vector reduction.
7622 (VEC_reduc_name): Ditto.
7623 (VEC_reduc_rtx): Ditto.
7624 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7625 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7626
7627 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7628 support for extracting SF on VSX.
7629
7630 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7631 generating xscvspdp.
7632 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7633 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7634 double add, minimum, maximum vector reduction.
7635 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7636 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7637 optimize double vector reduction.
7638 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7639
35a5db04
JM
76402011-04-26 Joseph Myers <joseph@codesourcery.com>
7641
7642 * config/fr30/fr30.h (inhibit_libc): Don't define.
7643 * config/m32r/m32r-protos.h: Correct comment.
7644 * config/v850/v850.h (GHS_default_section_names,
7645 GHS_current_section_names): Use tree, not union tree_node *.
7646
2f964ad6
XDL
76472011-04-26 Xinliang David Li <davidxl@google.com>
7648
200eb7d2 7649 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
7650 * c-family/c-opts.c (c_common_handle_option): Set
7651 warn_maybe_uninitialized.
7652 * opts.c (common_handle_option): Ditto.
7653 * common.opt: New option.
7654 * tree-ssa.c (warn_uninit): Add one more parameter.
7655 (warn_uninitialized_var): Pass warning code.
7656 * tree-flow.h: Interface change.
7657
9c7bd91a
RO
76582011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7659
200eb7d2 7660 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
7661 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7662 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7663
c2f36e21
RO
76642011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7665
7666 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7667 * config/mips/mips.opt (mmips-tfile): Remove.
7668
7669 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7670 mips-tdump reference to ...
200eb7d2 7671 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
7672 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7673 reference by Tru64 UNIX.
7674
2c9da85b
JJ
76752011-04-26 Jakub Jelinek <jakub@redhat.com>
7676
0c5f6539
JJ
7677 PR debug/48768
7678 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7679 is error_mark_node, set value to NULL.
7680
2c9da85b
JJ
7681 PR tree-optimization/48734
7682 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7683 if return value from maybe_fold_*_comparsions isn't something
7684 the code is prepared to handle.
7685
77fa1d54
UB
76862011-04-26 Uros Bizjak <ubizjak@gmail.com>
7687
7688 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7689 mode check.
7690 (ext_QIreg_nomode_operands): Remove.
7691 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7692 (*andsi_1): Ditto.
7693 (*andhi_1): Ditto.
7694
0e2a6c2b
AS
76952011-04-26 Andrew Stubbs <ams@codesourcery.com>
7696
7697 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7698
961562d8
RB
76992011-04-26 Richard Guenther <rguenther@suse.de>
7700
7701 * c-typeck.c (build_unary_op): Do not expand array-refs via
7702 pointer arithmetic. Only adjust qualifiers for function types.
7703
77042011-04-26 Richard Guenther <rguenther@suse.de>
7705
7706 PR middle-end/48694
7707 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7708 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
7709 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7710 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 7711
a0d260fc
PC
77122011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7713
6bec6c98 7714 * doc/extend.texi: Document __underlying_type.
a0d260fc 7715
4d583bb9
SB
77162011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7717
7718 * config/rs6000/titan.md (automata_option "progress"): Remove.
7719
1f3fcdc3
JL
77202011-04-25 Jeff Law <law@redhat.com>
7721
7722 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7723
e5b0dad8
JK
77242011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7725
7726 * system.h (ENUM_BITFIELD): Remove.
7727
5157a881 77282011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 7729 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
7730
7731 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7732 for STORE_FLAG_VALUE==-1 case.
7733
ed4c109e
RS
77342011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7735
7736 PR target/43804
7737 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7738 LEGITIMATE_PIC_OPERAND_P.
7739
f3181aa2
JH
77402011-04-24 Jan Hubicka <jh@suse.cz>
7741
7742 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7743 WPA hack.
77fa1d54
UB
7744 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7745 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7746 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
7747 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7748 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7749 Sanity check predicate length.
7750 (remap_predicate): Likewise; sanity check jump functions.
7751 (inline_read_section, inline_write_summary): Sanity check
7752 predicate length.
7753
5307cbaa
PC
77542011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7755
7756 PR other/48748
7757 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7758 __is_literal_type, and __is_trivial; update throughout about
7759 possibly cv-qualified void types.
7760
bebd5f99
GP
77612011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7762
7763 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7764 testsuite and make it version agnostic.
7765
7ee28a74
JH
77662011-04-22 Jan Hubicka <jh@suse.cz>
7767
7768 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7769
16997bc0
JJ
77702011-04-23 Jakub Jelinek <jakub@redhat.com>
7771
7772 PR c/48685
7773 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7774 to VOID_TYPE even around MODIFY_EXPR.
7775
f94d4ab1
MS
77762011-04-22 Mike Stump <mikestump@comcast.net>
7777
1a84c183 7778 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
7779 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7780 comment.
7781
632b4f8e
JH
77822011-04-22 Jan Hubicka <jh@suse.cz>
7783
7784 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
7785 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7786 ipa-prop.c; update all uses.
632b4f8e 7787 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
7788 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7789 merge summary of inlined function into former caller.
632b4f8e
JH
7790 * ipa-inline.c (max_benefit): Remove.
7791 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
7792 (update_caller_keys): Use
7793 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
7794 (update_callee_keys): Likewise.
7795 (update_all_callee_keys): Likewise.
77fa1d54
UB
7796 (inline_small_functions): Do not collect max_benefit; do not reset
7797 estimated_growth; call free_growth_caches and initialize_growth_caches.
7798 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7799 struct size_time_entry): New structures.
632b4f8e 7800 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
7801 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7802 and estimated_growth.
632b4f8e
JH
7803 (edge_growth_cache_entry): New structure.
7804 (node_growth_cache, edge_growth_cache): New global vars.
7805 (estimate_growth): Turn into inline.
7806 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7807 initialize_growth_caches, free_growth_caches): Declare.
7808 (estimate_edge_growth): Rewrite.
7809 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
7810 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7811 functions.
632b4f8e
JH
7812 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7813 (NUM_CONDITIONS): New constant.
7814 (predicate_conditions): New enum.
7815 (IS_NOT_CONSTANT): New constant.
7816 (edge_removal_hook_holder): New var.
7817 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
7818 (true_predicate, single_cond_predicate, false_predicate,
7819 not_inlined_predicate, add_condition, add_clause, and_predicates,
7820 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7821 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
7822 evaulate_conditions_for_edge): New functions.
7823 (inline_summary_alloc): Move to heap.
7824 (inline_node_removal_hook): Clear condition and entry vectors.
7825 (inline_edge_removal_hook): New function.
7826 (initialize_growth_caches, free_growth_caches): New function.
7827 (dump_inline_summary): Update.
7828 (edge_execution_predicate): New function.
7829 (will_be_nonconstant_predicate): New function.
7830 (estimate_function_body_sizes): Compute BB and constantness predicates.
7831 (compute_inline_parameters): Do not clear estimated_growth.
7832 (estimate_edge_size_and_time): New function.
7833 (estimate_calls_size_and_time): New function.
7834 (estimate_callee_size_and_time): New function.
7835 (remap_predicate): New function.
7836 (inline_merge_summary): New function.
7837 (do_estimate_edge_time): New function based on...
7838 (estimate_edge_time): ... this one.
7839 (do_estimate_edge_growth): New function.
7840 (do_estimate_growth): New function based on....
7841 (estimate_growth): ... this one.
7842 (inline_analyze_function): Analyze after deciding on jump functions.
7843 (inline_read_section): New function.
7844 (inline_read_summary): Use it.
7845 (inline_write_summary): Write all the new data.
7846 * ipa-prop.c (ipa_get_param_decl_index): Export.
7847 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
7848 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7849 Declare.
7850 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
7851 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7852 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7853 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7854 cgraph_edge_inlinable_p): Remove.
7855 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
7856 (cgraph_process_new_functions): Update call of
7857 compute_inline_parameters.
632b4f8e 7858
1df5b0db
RG
78592011-04-22 Richard Guenther <rguenther@suse.de>
7860
7861 * tree.c (build_int_cst): Properly create canonicalized integer
7862 constants.
7863 (build_int_cst_type): Remove scary comments.
7864
ae01169c
XDL
78652011-04-22 Xinliang David Li <davidxl@google.com>
7866
7867 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7868 by default when -Wno-error is not specified.
7869 * opts-global.c (decode_options): Remove call to
7870 control_warning_options.
7871
93dfac24
JJ
78722011-04-22 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR tree-optimization/48717
7875 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7876 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7877
1b5f5069
JM
78782011-04-22 Joseph Myers <joseph@codesourcery.com>
7879
7880 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7881 definition where used.
7882
144f4153
JJ
78832011-04-22 Jakub Jelinek <jakub@redhat.com>
7884
7885 PR c/48716
7886 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7887 TREE_STATIC variables declared inside of some OpenMP construct.
7888
f9fd305b
MJ
78892011-04-22 Martin Jambor <mjambor@suse.cz>
7890
7891 PR middle-end/48585
1d284ec5 7892 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 7893
49819fef
AM
78942011-04-22 Alexander Monakov <amonakov@ispras.ru>
7895
7896 PR c/36750
7897 * c-typeck.c (pop_init_level): Do not warn about initializing
7898 with ` = {0}'.
7899
401f6699
AM
79002011-04-22 Alan Modra <amodra@gmail.com>
7901
7902 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7903 when returning call_cookie.
7904 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7905 pointers, to functions with no more vector args than the current
7906 function, and some non-local calls for ABI_V4.
7907 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7908 sibcall_nonlocal_aix64): Combine to ..
7909 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7910 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7911 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7912 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7913 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7914 operand.
7915 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7916 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7917 sibcall_value_symbolic_64): Delete.
7918
903d1e67
XDL
79192011-04-21 Xinliang David Li <davidxl@google.com>
7920
7921 * cgraph.h: Remove pid.
7922 * cgraph.c: Remove pid.
7923 * value-prof.c (init_node_map): New function.
7924 (del_node_map): New function.
7925 (find_func_by_funcdef_no): New function.
7926 (gimple_ic_transform): Call new function.
7927 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7928 * function.c (get_last_funcdef_no): New function.
7929 * function.h (get_last_funcdef_no): New function.
7930 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7931 to libgcov function.
7932 (tree-profiling): Call node map init and delete function.
7933
7378e95f
ILT
79342011-04-21 Ian Lance Taylor <iant@google.com>
7935
7936 * godump.c (go_format_type): Use exported Go name for anonymous
7937 field name.
7938
e84a6fcf
NF
79392011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7940
7941 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7942 Call builtin_function_type_list instead of builtin_function_type.
7943 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7944
4fe058e2
NF
79452011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7946
7947 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7948 build_function_type_list instead of build_function_type.
7949 Delete variable `endlink'.
7950
1ba0a2d2
NF
79512011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7952
7953 * config/s390/s390.c (s390_init_builtins): Call
7954 build_function_type_list instead of build_function_type.
7955
c0676219
NF
79562011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7957
7958 * config/ia64/ia64.c (ia64_init_builtins): Call
7959 build_function_type_list instead of builtin_function_type.
7960
6ddfda8a
ER
79612011-04-21 Easwaran Raman <eraman@google.com>
7962
3a6448ea 7963 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
7964 (add_stack_var): ...and its reference here...
7965 (expand_stack_vars): ...and here.
7966 (stack_var_cmp): Sort by descending order of size.
7967 (partition_stack_vars): Change heuristic.
1d284ec5 7968 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
7969 (dump_stack_var_partition): Add newline after each partition.
7970
23756963
DA
79712011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7972 Jeff Law <law@redhat.com>
7973
77fa1d54 7974 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
7975 * gengtype.c (matching_file_name_substitute): Likewise.
7976
aa2a43d2
RG
79772011-04-21 Richard Guenther <rguenther@suse.de>
7978
7979 PR lto/48703
1d284ec5 7980 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 7981
4d931f41
EB
79822011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7983
7984 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7985
f103fa7a
RG
79862011-04-21 Richard Guenther <rguenther@suse.de>
7987
7988 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7989 file name.
7990
e19f6650
RG
79912011-04-21 Richard Guenther <rguenther@suse.de>
7992
7993 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7994 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7995 Use DECL_P, not SSA_VAR_P.
7996 (ptr_derefs_may_alias_p): Likewise.
7997 (ptr_deref_may_alias_ref_p_1): Likewise.
7998 (decl_refs_may_alias_p): Likewise.
7999 (refs_may_alias_p_1): Likewise.
8000 (ref_maybe_used_by_call_p_1): Likewise.
8001 (call_may_clobber_ref_p_1): Likewise.
8002 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8003 are either MEM_REF or TARGET_MEM_REF.
8004 (indirect_refs_may_alias_p): Likewise.
8005 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8006 for MEM_EXPR of indirect calls.
8007
9d1831bb
TG
80082011-04-21 Tristan Gingold <gingold@adacore.com>
8009
8010 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8011 (dst_file_info_struct): Remove flen field.
8012 (lookup_filename): Remove code that set flen field.
8013
f199c029
TG
80142011-04-21 Tristan Gingold <gingold@adacore.com>
8015
8016 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8017
2894086e
UB
80182011-04-21 Uros Bizjak <ubizjak@gmail.com>
8019
8020 PR target/48708
8021 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8022 vec_extract and vec_concat for non-SSE4_1 targets.
8023
53f94a5c
RG
80242011-04-21 Richard Guenther <rguenther@suse.de>
8025
8026 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8027 return statements.
8028
f0dca5ba
JM
80292011-04-21 Joseph Myers <joseph@codesourcery.com>
8030
8031 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8032 undefine.
8033 (FILE): Don't undefine.
8034
984514ac
JM
80352011-04-21 Joseph Myers <joseph@codesourcery.com>
8036
8037 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8038 struct rtx_def *.
8039 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8040 struct rtx_def *.
8041 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 8042 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
8043 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8044 rtx_def *.
8045 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8046 definitions where used.
8047 * config/microblaze/microblaze.h (struct microblaze_args): Use
8048 rtx, not struct rtx_def *.
8049 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8050 rtx_def *.
2894086e
UB
8051 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8052 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
8053 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8054 not struct rtx_def *.
8055 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8056 struct rtx_def *.
8057 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8058 rtx_def *.
2894086e 8059 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 8060
0b5a2724
RS
80612011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8062
8063 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8064 operand_equal_p to compare DR_BASE_ADDRESSes.
8065 (vect_check_interleaving): Likewise.
8066
4b18d683
RS
80672011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8068
8069 PR target/46329
8070 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8071 for all Neon struct constants.
8072
1a627b35
RS
80732011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8074
8075 * target.def (legitimate_constant_p): New hook.
8076 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8077 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8078 * doc/tm.texi: Regenerate.
8079 * hooks.h (hook_bool_mode_rtx_true): Declare.
8080 * hooks.c (hook_bool_mode_rtx_true): Define.
8081 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8082 * calls.c (precompute_register_parameters): Replace uses of
8083 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8084 (emit_library_call_value_1): Likewise.
8085 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8086 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8087 * ira-costs.c (scan_one_insn): Likewise.
8088 * recog.c (general_operand, immediate_operand): Likewise.
8089 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8090 * reload1.c (init_eliminable_invariants): Likewise.
8091
8092 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8093 mode argument.
8094 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8095 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8096 argument.
8097 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8098 * config/alpha/predicates.md (input_operand): Update call to
8099 alpha_legitimate_constant_p.
8100
8101 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8102 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8103 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8104 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8105 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8106 (arm_legitimate_constant_p): New functions.
8107 (arm_cannot_force_const_mem): Make static.
8108
8109 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8110
8111 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8112 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8113 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8114 instead of bfin_legitimate_constant_p.
8115 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8116 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8117
8118 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8119
8120 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8121
8122 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8123 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8124 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8125 (frv_legitimate_constant_p): Make static. Add a mode argument.
8126
8127 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8128 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8129 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8130
8131 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8132 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8133 * config/i386/i386.c (legitimate_constant_p): Rename to...
8134 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8135 argument.
8136 (ix86_cannot_force_const_mem): Update accordingly.
8137 (ix86_legitimate_address_p): Likewise.
8138 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8139 * config/i386/i386.md: Update commentary.
8140
8141 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8142 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8143 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8144 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8145
8146 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8147
8148 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8149 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8150 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8151 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8152
8153 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8154 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8155 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8156
8157 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8158 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8159 (m32r_legitimate_constant_p): New function.
8160
8161 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8162 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8163 LEGITIMATE_CONSTANT_P.
8164 (LEGITIMATE_CONSTANT_P): Delete.
8165 * config/m68k/m68k.c (m68k_expand_prologue): Call
8166 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8167 (m68k_legitimate_constant_p): New function.
8168 * config/m68k/m68k.md: Update comments.
8169
8170 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8171 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8172 (mcore_legitimate_constant_p): New function.
8173
8174 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8175 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8176 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8177 Add a mode argument.
8178 (mep_legitimate_address): Update accordingly.
8179 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8180
8181 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8182 Delete.
8183 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8184 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8185 static. Check OP's mode for VOIDmode.
8186 (microblaze_legitimate_constant_p): New function.
8187 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8188
8189 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8190 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8191 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8192 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8193 * config/mips/predicates.md: Update comments.
8194
8195 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8196 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8197 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8198 (mmix_legitimate_constant_p): Make static, return a bool, and take
8199 a mode argument.
8200 (mmix_print_operand_address): Update accordingly.
8201
8202 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8203 Delete.
8204 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
8205 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8206 static. Add a mode argument.
1a627b35
RS
8207 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8208
8209 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8210
8211 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8212 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8213 (pa_legitimate_constant_p): New function.
8214
8215 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8216
8217 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8218 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8219 (pdp11_legitimate_constant_p): New function.
8220
8221 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8222 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8223 (rs6000_legitimate_constant_p): New function.
8224
8225 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8226 (rx_legitimate_constant_p): ...this.
8227 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8228 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8229 (rx_legitimate_constant_p): ...this.
8230 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8231 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8232
8233 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8234 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8235 * config/s390/s390.c (legitimate_constant_p): Rename to...
8236 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8237 and add a mode argument.
8238 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8239
8240 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8241
8242 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8243 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8244 (sh_legitimate_constant_p): New function.
8245
8246 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8247 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8248 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8249 (legitimate_constant_p): Rename to...
8250 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8251 argument.
8252 (constant_address_p): Update accordingly.
8253
8254 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8255 argument and return a bool.
8256 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8257 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8258 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8259 (spu_rtx_costs): Update accordingly.
8260 * config/spu/predicates.md (vec_imm_operand): Likewise.
8261
8262 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8263
8264 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8265 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8266 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8267
8268 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8269 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8270 * config/vax/vax.c (legitimate_constant_p): Likewise.
8271
8272 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8273 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8274 (xtensa_legitimate_constant_p): New function.
8275
fbbf66e7
RS
82762011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8277
8278 * target.def (cannot_force_const_mem): Add a mode argument.
8279 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8280 * doc/tm.texi: Regenerate.
8281 * hooks.h (hook_bool_mode_rtx_false): Declare.
8282 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8283 (hook_bool_mode_const_rtx_true): Likewise.
8284 (hook_bool_mode_rtx_false): New function.
8285 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8286 to be non-VOID. Update call to cannot_force_const_mem.
8287 (find_reloads): Update accordingly.
8288 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8289 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8290 argument.
8291 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8292 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8293 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8294 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8295 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8296 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8297 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8298 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8299 (m68k_cannot_force_const_mem): ...this new function.
8300 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8301 argument.
8302 (mips_const_insns, mips_legitimize_const_move): Update calls.
8303 (mips_secondary_reload_class): Likewise.
8304 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8305 (pa_cannot_force_const_mem): ...this new function.
2894086e 8306 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
8307 (rs6000_cannot_force_const_mem): ...this new function.
8308 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8309 argument.
8310 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8311 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8312 to...
8313 (xtensa_cannot_force_const_mem): ...this new function.
8314
b861891b
NF
83152011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8316
8317 * config/mips/mips.c (mips16_build_function_stub): Call
8318 build_function_type_list instead of build_function_type.
8319 (mips16_build_call_stub): Likewise.
8320
34149ed5
NF
83212011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8322
8323 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8324 instead of build_function_type.
8325
12526412
NF
83262011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8327
8328 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8329 instead of build_function_type.
8330
3b84d61f
UB
83312011-04-20 Uros Bizjak <ubizjak@gmail.com>
8332
8333 PR target/48678
8334 * config/i386/i386.md (insv): Change operand 0 constraint to
8335 "register_operand". Change operand 1 and 2 constraint to
8336 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8337 * config/i386/sse.md (sse4_1_pinsrb): Export.
8338 (sse2_pinsrw): Ditto.
8339 (sse4_1_pinsrd): Ditto.
8340 (sse4_1_pinsrq): Ditto.
8341 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8342 * config/i386/i386.c (ix86_expand_pinsr): New.
8343
4a25752b
ER
83442011-04-20 Easwaran Raman <eraman@google.com>
8345
8346 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8347 containing union type only with -fstrict-aliasing.
8348
04695783
JM
83492011-04-20 Jim Meyering <meyering@redhat.com>
8350
8351 Remove useless if-before-free tests.
8352 * calls.c (expand_call, save_area): Likewise.
8353 * cfgcleanup.c (try_forward_edges): Likewise.
8354 * collect2.c (collect_execute): Likewise.
8355 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8356 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8357 * coverage.c (coverage_checksum_string): Likewise.
8358 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8359 * cselib.c (cselib_init): Likewise.
8360 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8361 (df_set_clean_cfg): Likewise.
8362 * function.c (free_after_compilation): Likewise.
8363 * gcc.c (do_spec_1, main): Likewise.
8364 * gcov.c (create_file_names): Likewise.
8365 * gensupport.c (identify_predicable_attribute): Likewise.
8366 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8367 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8368 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8369 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8370 * ipa-pure-const.c (local_pure_const): Likewise.
8371 * ipa-reference.c (propagate): Likewise.
8372 * ira-costs.c (free_ira_costs): Likewise.
8373 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8374 * matrix-reorg.c (mat_free): Likewise.
8375 * prefix.c (get_key_value): Likewise.
8376 * profile.c (compute_value_histograms): Likewise.
8377 * reload1.c (free_reg_equiv): Likewise.
8378 * sched-deps.c (free_deps): Likewise.
8379 * sel-sched-ir.c (fence_clear): Likewise.
8380 * sese.c (set_rename, if_region_set_false_region): Likewise.
8381 * tree-data-ref.c (free_rdg): Likewise.
8382 * tree-eh.c (lower_try_finally): Likewise.
8383 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8384 * tree-ssa-live.c (delete_var_map): Likewise.
8385 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8386 * tree-ssa-pre.c (phi_trans_add): Likewise.
8387
6788475a
JJ
83882011-04-20 Jakub Jelinek <jakub@redhat.com>
8389
8390 PR tree-optimization/48611
8391 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8392 beyond ERT_MUST_NOT_THROW region.
8393
0eda4033
CM
83942011-04-20 Catherine Moore <clm@codesourcery.com>
8395
8396 * config/mips/mips.opt (mfix-24k): New.
8397 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8398 * config/mips/mips.md (length): Increase by 4 for stores if
8399 fixing 24K errata.
8400 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8401 all noreorder if fixing 24K errata.
8402 * doc/invoke.texi: Document mfix-24k.
8403
01475747
CLT
84042011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8405
8406 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 8407 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 8408
bc2c1a60
AS
84092011-04-20 Andrew Stubbs <ams@codesourcery.com>
8410
8411 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8412 (const_ok_for_op): ... to here.
8413
583722ee
KT
84142011-04-20 Kai Tietz <ktietz@redhat.com>
8415
2894086e
UB
8416 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8417 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 8418
422c0989
AS
84192011-04-20 Andrew Stubbs <ams@codesourcery.com>
8420
8421 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8422
d7978bff
RG
84232011-04-20 Richard Guenther <rguenther@suse.de>
8424
8425 PR tree-optimization/47892
8426 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8427 are if-convertible.
8428
818412ba
EB
84292011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8430
8431 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8432
b501ce4e
TG
84332011-04-20 Tristan Gingold <gingold@adacore.com>
8434
8435 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8436
516edfdd
GJL
84372011-04-20 Georg-Johann Lay <avr@gjlay.de>
8438
8439 PR target/18145
8440
8441 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8442 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8443 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8444 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8445 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8446
8447 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8448 New prototype.
8449
8450 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8451 (avr_asm_named_section, avr_asm_output_aligned_common,
8452 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8453 New functions to update...
8454 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8455 (avr_asm_init_sections): Overwrite section callbacks for
8456 data_section, bss_section.
8457 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8458 from here to...
8459 (avr_file_end): ...here.
8460
dafc9511
RG
84612011-04-20 Richard Guenther <rguenther@suse.de>
8462
8463 PR middle-end/48695
8464 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 8465 objects and types here. Adjust for their offset before comparing.
dafc9511 8466
1da0876c
RS
84672011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8468
8469 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8470 statement per copy.
8471
25583c4f
RS
84722011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8473
8474 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8475 (GIMPLE_H): Include $(INTERNAL_FN_H).
8476 (OBJS-common): Add internal-fn.o.
8477 (internal-fn.o): New rule.
8478 * internal-fn.def: New file.
8479 * internal-fn.h: Likewise.
8480 * internal-fn.c: Likewise.
8481 * gimple.h: Include internal-fn.h.
8482 (GF_CALL_INTERNAL): New gf_mask.
8483 (gimple_statement_call): Put fntype into a union with a new
8484 internal_fn field.
8485 (gimple_build_call_internal): Declare.
8486 (gimple_build_call_internal_vec): Likewise.
8487 (gimple_call_same_target_p): Likewise.
8488 (gimple_call_internal_p): New function.
8489 (gimple_call_internal_fn): Likewise.
8490 (gimple_call_fntype): Return null for internal calls.
8491 (gimple_call_set_fntype): Assert that the function is not internal.
8492 (gimple_call_set_fn): Likewise.
8493 (gimple_call_set_fndecl): Likewise.
8494 (gimple_call_set_internal_fn): New function.
8495 (gimple_call_addr_fndecl): Handle null functions.
8496 (gimple_call_return_type): Likewise null types.
8497 * gimple.c (gimple_build_call_internal_1): New function.
8498 (gimple_build_call_internal): Likewise.
8499 (gimple_build_call_internal_vec): Likewise.
8500 (gimple_call_same_target_p): Likewise.
8501 (gimple_call_flags): Handle calls to internal functions.
8502 (gimple_call_fnspec): New function.
8503 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8504 (gimple_has_side_effects): Handle null functions.
8505 (gimple_rhs_has_side_effects): Likewise.
8506 (gimple_call_copy_skip_args): Handle calls to internal functions.
8507 * cfgexpand.c (expand_call_stmt): Likewise.
8508 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8509 * gimple-fold.c (gimple_fold_call): Handle null functions.
8510 (gimple_fold_stmt_to_constant_1): Don't fold
8511 calls to internal functions.
8512 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8513 functions.
8514 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8515 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8516 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8517 (do_warn_unused_result): Likewise.
8518 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8519 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8520 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8521 the target of a call.
8522 (initialize_hash_element): Update accordingly.
8523 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8524 (iterative_hash_hashable_expr): Handle calls to internal functions.
8525 (print_expr_hash_elt): Likewise.
8526 * tree-ssa-pre.c (can_value_number_call): Likewise.
8527 (eliminate): Handle null functions.
8528 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8529 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8530 (find_func_aliases): Likewise.
8531 * value-prof.c (gimple_ic_transform): Likewise.
8532 (gimple_indirect_call_to_profile): Likewise.
8533 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8534 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8535
1a3118e9
JH
85362011-04-19 Jan Hubicka <jh@suse.cz>
8537
8538 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
8539 * ipa-inline.c (inline_small_functions): Compute summaries first,
8540 populate heap later.
1a3118e9 8541
fee8b6da
JH
85422011-04-19 Jan Hubicka <jh@suse.cz>
8543
8544 * cgraph.h (save_inline_function_body): Remove.
8545 * ipa-inline-transform.c: New file, broke out of...
8546 * ipa-inline.c: ... this one; Update toplevel comment.
8547 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8548 make global.
8549 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8550 (cgraph_mark_inline_edge): Rename to inline_call; move to
8551 ipa-inline-transform.c.
8552 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8553 move to ipa-inline-transform.c
8554 (recursive_inlining, inline_small_functions, flatten_function,
8555 ipa_inline, inline_always_inline_functions,
8556 early_inline_small_functions): Update.
8557 (inline_transform): Move to ipa-inline-transform.c.
8558 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8559 Declare.
8560 * Makefile.in (ipa-inline-transform.o): New file.
8561 * cgraphunit.c (save_inline_function_body): Move to
8562 ipa-inline-transform.c
8563
f0679612
DD
85642011-04-19 DJ Delorie <dj@redhat.com>
8565
8566 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8567 registers if we already know there aren't any.
8568 (m32c_emit_epilogue): Don't emit a barrier here.
8569 (m32c_emit_eh_epilogue): Likewise.
8570 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8571 operands at expand time.
8572 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8573 int" wchar type.
8574 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8575 duplicates. Provide aliases instead.
8576 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8577 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8578 the compiler.
8579
32257ddc
AS
85802011-04-19 Anatoly Sokolov <aesok@post.ru>
8581
8582 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8583 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8584 (general_or_i64_p, sparc_register_move_cost): New function.
8585
60bea929
RO
85862011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8587
8588 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 8589 Add lynx, mipssde. Sort table.
60bea929 8590
444b3995 85912011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 8592
9d12f71a
EB
8593 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8594 not negative.
444b3995 8595
d708ce50
JJ
85962011-04-19 Jakub Jelinek <jakub@redhat.com>
8597
8598 PR target/48678
8599 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8600 is a SUBREG with non-MODE_INT mode inside of it.
8601
49c471e3
MJ
86022011-04-19 Martin Jambor <mjambor@suse.cz>
8603
8604 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8605 also according to actual contants.
8606 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8607 (gimple_fold_call): Use it.
8608 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8609
0004f992
MJ
86102011-04-19 Martin Jambor <mjambor@suse.cz>
8611
8612 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8613 non-pointer assignments.
8614
40591473
MJ
86152011-04-19 Martin Jambor <mjambor@suse.cz>
8616
8617 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8618 account anc_offset and otr_type from the indirect edge info.
8619 * ipa-prop.c (get_ancestor_addr_info): New function.
8620 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8621 get_ancestor_addr_info, call it.
8622 (ipa_note_param_call): Do not initialize information about polymorphic
8623 calls, return the indirect call graph edge. Remove the last
8624 parameter, adjust all callers.
8625 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8626 parameters. Initialize polymorphic information in the indirect edge.
8627
abe36b81
EB
86282011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8629
8630 PR lto/48148
8631 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8632 the types if they have different enumeration identifiers.
8633
e6416b30
JH
86342011-04-19 Jan Hubicka <jh@suse.cz>
8635
8636 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8637 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8638 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8639 (optimize_function_for_size_p) ... here.
8640
d39132ea
RG
86412011-04-19 Richard Guenther <rguenther@suse.de>
8642
8643 PR lto/48207
8644 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8645 langhook.
8646
ff7037dc
EB
86472011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8648
8649 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8650 if DECL_NO_INLINE_WARNING_P is set on the function.
8651
c1ee2892
BS
86522011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8653
8654 PR fortran/47976
8655 * reload1.c (inc_for_reload): Return void. All callers changed.
8656 (emit_input_reload_insns): Don't try to delete previous output
8657 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
8658
86592011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8660
8661 * gengtype.h: Updated copyright year.
8662 (struct input_file_st): Add inpisplugin field.
8663 (type_fileloc): New function.
8664 * gengtype.c
8665 (write_typed_struct_alloc_def): Add gcc_assert.
8666 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8667 (write_typed_alloc_defns): Don't output for plugin files.
8668 (input_file_by_name): Clear inpisplugin field.
8669 (main): Set inpisplugin field for plugin files.
8670
897e0a89
NP
86712011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8672
8673 * gengtype-state.c (string_eq): New.
8674 (read_state): Use string_eq instead of strcmp when creating the
8675 state_ident_tab.
8676
363ee90e
WG
86772011-04-19 Wei Guozhi <carrot@google.com>
8678
8679 PR target/47855
8680 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8681 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8682 linkage.
8683 * config/arm/constraints.md (Uu): New constraint.
8684 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8685
18a24fed
TG
86862011-04-19 Tristan Gingold <gingold@adacore.com>
8687
8688 * config.gcc (-*-*-*vms): Added.
8689 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8690 definitions moved.
8691 * config/vms/vms-ld.c: New file.
8692 * config/vms/vms-ar.c: New file.
8693 * config/vms/t-vmsnative: New file.
8694
1c13f168
XDL
86952011-04-18 Xinliang David Li <davidxl@google.com>
8696
8697 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8698
84825707
JJ
86992011-04-18 Jakub Jelinek <jakub@redhat.com>
8700
8701 PR middle-end/48661
8702 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8703 if TREE_TYPE (v) is non-NULL.
8704
8705 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8706 gimple_get_virt_mehtod_for_binfo.
8707 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8708 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8709 callers.
8710 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8711
7d4f8d02 87122011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
8713 Steve Ellcey <sje@cup.hp.com>
8714
7d4f8d02
EB
8715 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8716 use its mode as source mode if it isn't VOIDmode.
7254cb57 8717
474e8e70
DCR
87182011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8719
8720 * doc/passes.texi: Fill crossref nodes.
8721
cff41484
JM
87222011-04-18 Jim Meyering <meyering@redhat.com>
8723
7d4f8d02 8724 Fix doubled-word typos in comments and strings
cff41484
JM
8725 * config/alpha/vms-unwind.h: s/for for/for/
8726 * config/arm/unwind-arm.h: Likewise.
8727 * config/microblaze/microblaze.c: Likewise.
8728 * config/sh/constraints.md: s/in in/in/
8729 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8730
f60c2554
UB
87312011-04-18 Uros Bizjak <ubizjak@gmail.com>
8732
8733 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8734 (AVX_FLOAT_MODE_P): Ditto.
8735 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8736 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8737 (AVX_VEC_FLOAT_MODE_P): Ditto.
8738 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8739 (UNSPEC_MASKSTORE): Ditto.
8740 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8741 Merge from <sse>_movmsk<ssemodesuffix> and
8742 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8743 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8744 iterator.
8745 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8746 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8747 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8748
09a2806f
JH
87492011-04-18 Jan Hubicka <jh@suse.cz>
8750
8a8dccb2
JH
8751 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8752
09a2806f
JH
8753 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8754 (want_inline_function_called_once_p): Break out the logic from
8755 ipa_inline.
8756 (edge_badness): Ensure that profile is not misupdated.
8757 (lookup_recursive_calls): Prioritize by call frequencies.
8758 (inline_small_functions): Move program size estimates here;
8759 actually process whole queue even when unit growth has been
8760 met. (to properly compute inline_failed reasons and for the
f60c2554 8761 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
8762 (ipa_inline): Remove unit summary code; first inline hot calls
8763 of functions called once, cold calls next.
8764 (order, nnodes): Remove unused variables.
8765 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8766 (GTFILES): Remove ipa-inline.c
8767 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8768
3eea52ef
EB
87692011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8770
8771 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8772
229a1c59 87732011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 8774 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
8775
8776 * arm.c (neon_builtin_type_bits): Remove.
8777 (typedef enum neon_builtin_mode): New.
8778 (T_MAX): Don't define.
8779 (typedef enum neon_builtin_datum): Remove bits, codes[],
8780 num_vars and base_fcode. Add mode, code and fcode.
8781 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8782 VAR10): Change accordingly.
8783 (neon_builtin_data[]): Change accordingly
8784 (arm_init_neon_builtins): Change accordingly.
8785 (neon_builtin_compare): Remove.
8786 (locate_neon_builtin_icode): Remove.
8787 (arm_expand_neon_builtin): Change accordingly.
8788
8789 * arm.h (enum arm_builtins): Move to ...
8790 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8791
8792 * arm.c (arm_builtin_decl): Declare.
8793 (TARGET_BUILTIN_DECL): Define.
8794 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8795 (arm_builtin_decls[]): New.
8796 (arm_init_neon_builtins): Store builtin declarations in
8797 arm_builtin_decls[].
8798 (arm_init_tls_builtins): Likewise.
8799 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8800 (arm_builtin_decl): New.
8801
75e802cc
RG
88022011-04-18 Richard Guenther <rguenther@suse.de>
8803
8804 * tree.c (upper_bound_in_type): Build properly canonicalized
8805 INTEGER_CSTs.
8806 (lower_bound_in_type): Likewise.
8807
3b45a007
RG
88082011-04-18 Richard Guenther <rguenther@suse.de>
8809
8810 * gimple.h (gimple_call_addr_fndecl): New function.
8811 (gimple_call_fndecl): Use it.
8812 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8813 for direct calls.
8814 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8815 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8816
d25a79ea
RG
88172011-04-18 Richard Guenther <rguenther@suse.de>
8818
8819 PR middle-end/48650
8820 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8821
7d5fc814
EB
88222011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8823
8824 PR lto/48492
8825 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8826 DECL_IN_CONSTANT_POOL without RTL.
8827
7e7cfcf6
UW
88282011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8829 Ira Rosen <ira.rosen@linaro.org>
8830
8831 PR target/48252
8832 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8833 to match neon_vzip/vuzp/vtrn_internal.
8834 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8835 outputs explicitly dependent on both inputs.
8836 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8837
49eab32e
JJ
88382011-04-18 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR tree-optimization/48616
8841 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8842 whether the shift is by scalar or vector based on whether all SLP
8843 scalar stmts have the same rhs.
8844
e54170f4
CLT
88452011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8846
8847 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8848 memory operands.
8849
b14ee6c9
RS
88502011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8851
269e0e18 8852 PR target/43700
b14ee6c9
RS
8853 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8854 registers.
8855
10158cd3
JH
88562011-04-17 Jan Hubicka <jh@suse.cz>
8857
8858 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
8859 * cgrpahunit.c (cgraph_finalize_function): Do not set
8860 finalized_by_frontend.
10158cd3
JH
8861 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8862 finalized_by_frontend.
8863
2e9bb6ba
JH
88642011-04-17 Jan Hubicka <jh@suse.cz>
8865
8866 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8867 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8868 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
8869 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8870 method.
2e9bb6ba
JH
8871 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8872 gimple-fold.c
8873 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8874
beb628e1
EB
88752011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8876
8877 PR lto/48538
8878 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8879 is non-null before accessing it.
8880 (input_cgraph): Remove trailing spaces.
8881
3e2fdd24
RE
88822011-04-17 Revital Eres <revital.eres@linaro.org>
8883
8884 * params.def (sms-min-sc): New param flag.
8885 * modulo-sched.c (sms_schedule): Use it.
8886 * doc/invoke.texi (sms-min-sc): Document it.
8887
4c0f7679
JH
88882011-04-17 Jan Hubicka <jh@suse.cz>
8889
8890 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8891 present, also set gimple_call_set_cannot_inline.
8892 * ipa-inline.c: Update toplevel comment.
8893 (MAX_TIME): Remove.
8894 (cgraph_clone_inlined_nodes): Fix linebreaks.
8895 (cgraph_check_inline_limits): Restructure to ...
8896 (caller_growth_limits): ... this one; be more tolerant
8897 on growth in nested inline chains; add explanatory comment;
8898 fix stack accounting thinko introduced by previous patch.
8899 (cgraph_default_inline_p): Remove.
8900 (report_inline_failed_reason): New function.
8901 (can_inline_edge_p): New function.
8902 (can_early_inline_edge_p): New function.
8903 (leaf_node_p): Move upwards in file.
8904 (want_early_inline_function_p): New function.
8905 (want_inline_small_function_p): New function.
8906 (want_inline_self_recursive_call_p): New function.
8907 (cgraph_edge_badness): Rename to ...
8908 (edge_badness) ... this one; fix linebreaks.
8909 (update_edge_key): Update call of edge_baddness; add
8910 detailed dump about queue updates.
8911 (update_caller_keys): Use can_inline_edge_p and
8912 want_inline_small_function_p.
8913 (cgraph_decide_recursive_inlining): Rename to...
8914 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
8915 want_inline_self_recursive_call_p; simplify and remove no longer
8916 valid FIXME.
4c0f7679
JH
8917 (cgraph_set_inline_failed): Remove.
8918 (add_new_edges_to_heap): Use can_inline_edge_p and
8919 want_inline_small_function_p.
8920 (cgraph_decide_inlining_of_small_functions): Rename to ...
8921 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
8922 can/want predicates; cleanup debug ouput; work edges till fibheap
8923 is exhausted and do not stop once unit growth is reached; remove
8924 later loop processing remaining edges.
4c0f7679
JH
8925 (cgraph_flatten): Rename to ...
8926 (flatten_function): ... this one; use can_inline_edge_p
8927 and can_early_inline_edge_p predicates.
8928 (cgraph_decide_inlining): Rename to ...
8929 (ipa_inline): ... this one; remove unreachable nodes before
8930 inlining functions called once; simplify the pass.
8931 (cgraph_perform_always_inlining): Rename to ...
8932 (inline_always_inline_functions): ... this one; use
f60c2554 8933 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
8934 (cgraph_decide_inlining_incrementally): Rename to ...
8935 (early_inline_small_functions): ... this one; simplify
8936 using new predicates; cleanup; make dumps prettier.
8937 (cgraph_early_inlining): Rename to ...
8938 (early_inliner): newer inline regular functions into always-inlines;
8939 fix updating of call stmt summaries.
8940 (pass_early_inline): Update for new names.
8941 (inline_transform): Fix formating.
8942 (gate_cgraph_decide_inlining): Rename to ...
8943 (pass_ipa_inline): ... this one.
8944 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8945 * ipa-inline-analysis.c (dump_inline_summary): Update.
8946 (compute_inline_parameters): Do not compute disregard_inline_limits;
8947 look for mismatching arguments.
8948 (estimate_growth): Fix handlig of non-trivial self recursion.
8949 (inline_read_summary): Do not read info->disregard_inline_limits.
8950 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
8951 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8952 and move all checks into can_inline_edge_p predicate; re-enable code
8953 comparing optimization levels.
4c0f7679
JH
8954 (expand_call_inline): Do not test inline_forbidden_into_p.
8955 * Makefile.in (ipa-inline.o): Update arguments.
8956
54333b7c
RE
89572011-04-17 Revital Eres <revital.eres@linaro.org>
8958
8959 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8960
42c2bf92
RE
89612011-04-17 Revital Eres <revital.eres@linaro.org>
8962
8963 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8964
b183e9e0
MM
89652011-04-17 Michael Matz <matz@suse.de>
8966
8967 PR tree-optimization/48622
8968 PR lto/48645
8969 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8970 in same order as they're written.
8971
b8a17fa2
JDA
89722011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8973
8974 * config/pa/predicates.md: Reorganize and simplify predicates.
8975 Eliminate duplicate code checks.
8976 (arith_operand): Rename to arith14_operand
8977 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8978 * config/pa/pa.md: Use renamed operands.
8979 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8980 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8981 arith11_operand, adddi3_operand, indexed_memory_operand,
8982 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8983 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8984 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8985 move_dest_operand, move_src_operand, prefetch_cc_operand,
8986 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8987 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8988 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8989 div_operand, int5_operand, movb_comparison_operator,
8990 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8991 arith_double_operand, ireg_operand, lhs_lshift_operand,
8992 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8993 integer_store_memory_operand): Likewise.
8994 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8995 (integer_store_memory_operand, read_only_operand,
8996 function_label_operand, borx_reg_operand,
8997 non_hard_reg_operand): Likewise.
8998 (eq_neq_comparison_operator): Delete unused operator.
8999 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9000 function_label_operand.
9001 (emit_move_sequence): Likewise.
9002
8dfb9f16
UB
90032011-04-16 Uros Bizjak <ubizjak@gmail.com>
9004
9005 * config/i386/sse.md (sseunpackmode): New mode attribute.
9006 (ssepackmode): Ditto.
9007 (vec_pack_trunc_<mode>): Macroize expander from
9008 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9009 (vec_unpacks_lo_<mode>): Macroize expander from
9010 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9011 (vec_unpacks_hi_<mode>): Macroize expander from
9012 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9013 (vec_unpacku_lo_<mode>): Macroize expander from
9014 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9015 (vec_unpacku_hi_<mode>): Macroize expander from
9016 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9017 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9018 ix86_expand_sse4_unpack.
9019 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9020
e7f23018
JH
90212011-04-16 Jan Hubicka <jh@suse.cz>
9022
9023 * cgraphbuild.c: Include ipa-inline.h.
9024 (reset_inline_failed): Use initialize_inline_failed.
9025 * cgraph.c: Include ipa-inline.h.
9026 (cgraph_create_node_1): Do not initialize estimated_growth.
9027 (initialize_inline_failed): More to ipa-inline-analysis.c
9028 (dump_cgraph_node): Do not dump inline flags.
9029 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9030 and disregard_inline_limits flags.
9031 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9032 time, size, estimated_growth.
8dfb9f16
UB
9033 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9034 Update.
e7f23018
JH
9035 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9036 DECL_DISREGARD_INLINE_LIMITS.
9037 (cgraph_analyze_function): Do not initialize
9038 node->local.disregard_inline_limits.
9039 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9040 inlinable, versionable and disregard_inline_limits.
9041 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
9042 cgraph_check_inline_limits, cgraph_default_inline_p,
9043 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9044 add_new_edges_to_heap): Update.
9045 (cgraph_decide_inlining_of_small_function): Update; set
9046 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
9047 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9048 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
9049 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9050 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9051 time, size and estimated_growth parameters.
e7f23018
JH
9052 (estimate_edge_growth): Update.
9053 (initialize_inline_failed): Declare.
9054 * ipa-split.c: Include ipa-inline.h
9055 (execute_split_functions): Update.
9056 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9057 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9058 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9059 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9060 estimated_growth to INT_MIN.
9061 (inline_node_duplication_hook): Likewise.
9062 (dump_inline_summary): Dump new fields.
9063 (compute_inline_parameters): Update.
9064 (estimate_edge_time, estimate_time_after_inlining,
9065 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9066 inline_write_summary):
9067 (initialize_inline_failed): Move here from cgraph.c.
9068 * tree-sra.c: Include ipa-inline.h.
9069 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
9070 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9071 ipa-inline.h.
e7f23018 9072
e81b8564
UB
90732011-04-16 Uros Bizjak <ubizjak@gmail.com>
9074
9075 * config/i386/sse.md (V16): New mode iterator.
9076 (VI1, VI8): Ditto.
9077 (AVXMODEQI, AVXMODEDI): Remove.
9078 (sse2, sse3): New mode attribute.
9079 (mov<mode>): Use V16 mode iterator.
9080 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9081 (push<mode>1): Use V16 mode iterator.
9082 (movmisalign<mode>): Ditto.
9083 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9084 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9085 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9086 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9087 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9088 avx_movdqu<avxmodesuffix>.
9089 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9090 *avx_movdqu<avxmodesuffix>.
9091 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9092 avx_lddqu<avxmodesuffix>.
9093 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9094 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9095 avx_movnt<AVXMODEDI:mode>.
9096 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9097 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9098
4743d438
BS
90992011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9100
9101 PR target/48629
9102 * haifa-sched.c (prune_ready_list, schedule_block): Use
9103 sched_pressure_p rather than flag_sched_pressure.
9104
748f7574 91052011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
9106
9107 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9108 cgraph_get_node instead of cgraph_get_create_node.
9109
2ba172e0
JJ
91102011-04-15 Jakub Jelinek <jakub@redhat.com>
9111
9112 * cfgexpand.c (expand_debug_expr): Use
9113 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9114
63d2a353
MM
91152011-04-15 Michael Matz <matz@suse.de>
9116
9117 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9118 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9119 * function.c (gimplify_parameters): Ditto.
9120 * gimplify.c (gimplify_vla_decl): Ditto.
9121
9122 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9123 (gimple_call_set_alloca_for_var): New inline function.
9124 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
9125 * gimple.c (gimple_build_call_from_tree): Remember
9126 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
9127 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9128
9129 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9130 calls if they were for VLA objects.
9131
dee74c34
MJ
91322011-04-15 Martin Jambor <mjambor@suse.cz>
9133
9134 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9135 of ADR_EXPRs.
9136
8e5837bc
MJ
91372011-04-15 Martin Jambor <mjambor@suse.cz>
9138
9139 PR middle-end/48601
9140 * tree-emutls.c (lower_emutls_function_body): Call
9141 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9142 result is non-NULL.
9143
0dc33c3c
NP
91442011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9145
9146 * c-decl.c (detect_field_duplicates): Call
9147 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9148
edcdea5b
NF
91492011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9150
9151 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9152 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9153 * ipa-pure-const.c (check_stmt): Call it.
9154 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9155
8456558d
RG
91562011-04-15 Richard Guenther <rguenther@suse.de>
9157
9158 PR tree-optimization/48290
9159 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9160 Properly decide inhibiting propagation based on the valueized
9161 operand. Do loop-closed SSA form preserving here ...
9162 (init_copy_prop): ... not here.
9163
266446be
L
91642011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9165
9166 PR target/48612
9167 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9168 (*ieee_smax<mode>3): Likewise.
9169
17465c6e
AK
91702011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9171
9172 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9173 Replace match_operand with match_dup for the third operand in
9174 these expanders.
9175
bce204e5
MK
91762011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9177
9178 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9179 to track processing of conditionals. Update all callers.
9180 (try_combine, simplify_if_then_else): Update.
9181
3162fdf4
MK
91822011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9183
9184 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9185 -fsched-pressure.
9186
79002a57 91872011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 9188
79002a57
GJL
9189 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9190 instead of match_operand for operand 3.
9191
4fd3a105
RS
91922011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9193
9194 * recog.h (insn_operand_data): Add an "allows_mem" field.
9195 * genoutput.c (output_operand_data): Initialize it.
9196 * optabs.c (maybe_legitimize_operand_same_code): New function.
9197 (maybe_legitimize_operand): Use it when matching the original
9198 op->value.
9199
ad19c4be
EB
92002011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9201
9202 * gimplify.c: Fix issues in comments throughout.
9203 (voidify_wrapper_expr): Fix long line.
9204 (build_stack_save_restore): Likewise.
9205 (gimplify_loop_expr): Likewise.
9206 (gimplify_compound_lval): Likewise.
9207 (gimplify_init_ctor_eval): Likewise.
9208 (gimplify_modify_expr_rhs): Likewise.
9209 (omp_notice_threadprivate_variable): Likewise.
9210
b25aa0e8 92112011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 9212
b25aa0e8
EB
9213 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9214 original one if this is not a builtin function.
e7925582 9215
09db7afe
JJ
92162011-04-14 Jakub Jelinek <jakub@redhat.com>
9217
9218 PR target/48605
9219 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9220 offset it as needed based on top 2 bits in operands[3], change
9221 MEM mode to SFmode and mask those 2 bits away from operands[3].
9222
c59633d9
NP
92232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9224
9225 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9226 change from objc_declare_protocols() to objc_declare_protocol().
9227
5e60198b
UB
92282011-04-14 Uros Bizjak <ubizjak@gmail.com>
9229
9230 * config/i386/sse.md (sse4_1): New mode attribute.
9231 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9232 avx_blend<ssemodesuffix><avxmodesuffix> and
9233 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9234 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9235 avx_blendv<ssemodesuffix><avxmodesuffix> and
9236 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9237 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9238 avx_dp<ssemodesuffix><avxmodesuffix> and
9239 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9240 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9241 (sse4_1_packusdw): Merge with *avx_packusdw.
9242 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9243 (sse4_1_pblendw): Merge with *avx_pblendw.
9244 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9245 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9246 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9247 VF mode iterator.
9248 (sse4_1_round<ssescalarmodesuffix>): Merge with
9249 *avx_round<ssescalarmodesuffix>.
9250 (aesenc): Merge with *avx_aesenc.
9251 (aesenclast): Merge with *avx_aesenclast.
9252 (aesdec): Merge with *avx_aesdec.
9253 (aesdeclast): Merge with *avx_aesdeclast.
9254 (pclmulqdq): Merge with *pclmulqdq.
9255 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9256 New predicate.
9257 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9258
6f197850
L
92592011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9260
9261 PR middle-end/48608
9262 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9263 (align_local_variable): This. Update DECL_ALIGN.
9264 (add_stack_var): Updated.
9265 (expand_one_stack_var): Likewise.
9266
4a5ba3ed
RG
92672011-04-14 Richard Guenther <rguenther@suse.de>
9268
9269 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9270 Remove.
9271 (dse_initialize_block_local_data, dse_leave_block,
9272 record_voperand_set, get_stmt_uid): Likewise.
9273 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9274 (dse_optimize_stmt): Remove voperand set handling code.
9275 Simplify and improve to handle any kind of killing stmt.
9276 (dse_record_phi): Remove.
9277 (dse_enter_block): Simplify.
9278 (tree_ssa_dse): Likewise.
9279 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9280
10a5dd5d
JH
92812011-04-14 Jan Hubicka <jh@suse.cz>
9282
9283 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9284 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9285 (cgraph_local_info): Remove inline_summary.
9286 * ipa-cp.c: Include ipa-inline.h.
9287 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9288 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9289 accesor.
9290 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9291 (input_overwrite_node): Do not set inline summary.
9292 (input_node): Do not stream inline summary.
9293 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9294 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9295 growth; we do not have inline parameters computed for that anyway.
9296 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9297 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9298 (inline_summary_t): New type and VECtor.
9299 (debug_inline_summary, dump_inline_summaries): Declare.
9300 (inline_summary): Use VOCtor.
9301 (estimate_edge_growth): Kill hack computing call stmt size directly.
9302 * lto-section-in.c (lto_section_name): Add inline section.
9303 * ipa-inline-analysis.c: Include lto-streamer.h
9304 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9305 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9306 (inline_summary_vec): Define.
9307 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9308 dump_inline_summaries): New functions.
5e60198b
UB
9309 (estimate_function_body_sizes): Properly compute size/time of outgoing
9310 calls.
9311 (compute_inline_parameters): Alloc inline_summary; do not compute
9312 size/time of incomming calls.
10a5dd5d
JH
9313 (estimate_edge_time): Avoid missing time summary hack.
9314 (inline_read_summary): Read inline summary info.
9315 (inline_write_summary): Write inline summary info.
9316 (inline_free_summary): Free all hooks and inline summary vector.
9317 * lto-streamer.h: Add LTO_section_inline_summary section.
9318 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9319 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9320
b602d918
RS
93212011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9322
9323 * tree-vectorizer.h (vect_strided_store_supported): Add a
9324 HOST_WIDE_INT argument.
9325 (vect_strided_load_supported): Likewise.
9326 (vect_permute_store_chain): Return void.
9327 (vect_transform_strided_load): Likewise.
9328 (vect_permute_load_chain): Delete.
9329 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9330 count argument. Check that the count is a power of two.
9331 (vect_strided_load_supported): Likewise.
9332 (vect_permute_store_chain): Return void. Update after above changes.
9333 Assert that the access is supported.
9334 (vect_permute_load_chain): Likewise.
9335 (vect_transform_strided_load): Return void.
9336 * tree-vect-stmts.c (vectorizable_store): Update calls after
9337 above interface changes.
9338 (vectorizable_load): Likewise.
9339 (vect_analyze_stmt): Don't check for strided powers of two here.
9340
ab4472fa
RG
93412011-04-14 Richard Guenther <rguenther@suse.de>
9342
9343 PR tree-optimization/48590
9344 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9345 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9346 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9347 BUILT_IN_STACK_SAVE.
9348 * tree-ssa-dce.c (propagate_necessity): Handle
9349 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9350
32dabdaf
NP
93512011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9352
9353 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9354 objc_declare_class.
9355
daade206
RG
93562011-04-14 Richard Guenther <rguenther@suse.de>
9357
9358 * tree.h (get_object_alignment_1): Declare.
9359 * builtins.c (get_object_alignment_1): Split out worker from ...
9360 (get_object_alignment): ... here.
9361 * fold-const.c (get_pointer_modulus_and_residue): Use
9362 get_object_alignment_1.
9363
920e8172
RS
93642011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9365
9366 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9367 type parameter.
9368 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9369 parameter. Generalise code to handle arrays as well as vectors.
9370 (vect_setup_realignment): Update accordingly.
9371 * tree-vect-stmts.c (vectorizable_store): Likewise.
9372 (vectorizable_load): Likewise.
9373
5ce1ee7f
RS
93742011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9375
9376 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9377 within the per-copy loop.
9378
6438fe33 93792011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
9380
9381 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9382 in the dump file.
9383
6438fe33 93842011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
9385
9386 * doc/options.texi (Negative): Explicitly mention that the
9387 Negative chain must be circular.
9388
61e46a7d
NF
93892011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9390
9391 * function.h (block_chainon): Declare.
9392 * function.c (block_chainon): Define.
9393
43ea6502 93942011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 9395 Eric Weddington <eric.weddington@atmel.com>
748f7574 9396 Georg-Johann Lay <avr@gjlay.de>
5e60198b 9397
f60c2554 9398 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
9399 New Includes
9400 (avr_init_builtins, avr_expand_builtin,
9401 avr_expand_delay_cycles, avr_expand_unop_builtin,
9402 avr_expand_binop_builtin ): New functions.
9403 (avr_builtin_id): New enum
9404 (struct avr_builtin_description): New struct
9405 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9406 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 9407
43ea6502 9408 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 9409 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
9410 UNSPECV_DELAY_CYCLES): new enumeration values
9411 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9412 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9413 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9414 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9415 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9416 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9417 "fmulsu"): New insns
5e60198b 9418
43ea6502
AS
9419 * config/avr/avr-c.c: fix line endings
9420 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9421 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9422 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9423 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9424 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 9425
43ea6502
AS
9426 * doc/extend.texi (AVR Built-in Functions): New node
9427 (Target Builtins): Add documentation of AVR
9428 built-in functions.
9429
8a9b55f3
GJL
94302011-04-14 Georg-Johann Lay <avr@gjlay.de>
9431
9432 PR target/44643
9433 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9434 alone. Error if non-const data has attribute progmem.
9435
94bd1825
NF
94362011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9437
9438 * tree.h (struct tree_constructor): Include tree_typed instead of
9439 tree_common.
9440 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9441 TS_TYPED instead of TS_COMMON.
9442
5e60198b 94432011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
9444
9445 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9446 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9447 (sse2_psadbw): Merge with *avx_psadbw.
9448 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9449 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9450 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9451 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9452 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9453 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9454 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9455 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9456 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9457 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9458 (ssse3_palignrti): Merge with *avx_palignrti.
9459
4b1a4694
NF
94602011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9461
9462 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9463 * tree-ssanames.c (fini_ssanames): VEC_free it.
9464 (make_ssa_name_fn): Update for VECness of free_ssanames.
9465 (release_ssa_name, release_dead_ssa_names): Likewise.
9466 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9467 tree_common.
9468 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9469 TS_TYPED instead of TS_COMMON.
9470
4da3b811
NF
94712011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9472
9473 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9474 statistics_counter_event.
9475 * tree-ssa-copyrename.c (stats): Define.
9476 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9477 statistics_counter_event.
9478 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9479 (bswap_stats, widen_mul_stats): Define.
9480 (insert_reciprocals): Increment rdivs_inserted.
9481 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9482 rfuncs_inserted. Add calls to statistics_counter_event.
9483 (execute_cse_sincos_1): Increment inserted.
9484 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9485 statistics_counter_event.
9486 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9487 of bswap_stats. Add calls to statistics_counter_event.
9488 (convert_mult_to_widen): Increment widen_mults_inserted.
9489 (convert_plusminus_to_widen): Increment maccs_inserted.
9490 (convert_mult_to_fma): Increment fmas_inserted.
9491 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9492 calls to statistics_counter_event.
9493
89fa552a
VM
94942011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9495
9496 PR rtl-optimization/48455
9497 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9498 `temp_costs->mem_cost'.
9499
03dfc36d
JH
95002011-04-13 Jan Hubicka <jh@suse.cz>
9501
9502 * ipa-inline.h: New file.
9503 * ipa-inline-analysis.c: New file. Broken out of ...
9504 * ipa-inline.c: ... this file; update toplevel comment;
9505 include ipa-inline.h
9506 (inline_summary): Move to ipa-inline.h
9507 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9508 ipa-inline-analysis.c.
7d4f8d02
EB
9509 (cgraph_estimate_time_after_inlining): Rename to
9510 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
9511 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9512 to estimate_edge_growth.
9513 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9514 rename to estimate_size_after_inlining.
9515 (cgraph_mark_inline_edge): Update for new naming convention.
9516 (cgraph_check_inline_limits): Likewise.
9517 (cgraph_edge_badness): Likewise.
9518 (cgraph_decide_recursive_inlining): Likewise.
9519 (cgraph_decide_inlining_of_small_functions): Likewise.
9520 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
9521 (cgraph_estimate_growth): Rename to estimate_growth; move to
9522 ipa-inline-analysis.c.
03dfc36d
JH
9523 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9524 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9525 (compute_inline_parameters): Likewise.
9526 (compute_inline_parameters_for_current): Likewise.
9527 (pass_inline_parameters): Likewise.
9528 (inline_indirect_intraprocedural_analysis): Likewise.
9529 (analyze_function): Rename to inline_analyze_function; likewise.
9530 (add_new_function): Move to ipa-inline-analysis.c.
9531 (inline_generate_summary): Likewise.
9532 (inline_read_summary): Likewise.
9533 (inline_write_summary): Likewise.
9534 * Makefile.in (ipa-inline-analysis.c): New file.
9535
7673c962
RO
95362011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9537
9538 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9539 * configure: Regenerate.
9540
9698252f
NF
95412011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9542
9543 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9544 instead of tree_common.
9545 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9546 Likewise.
9547 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9548 TS_TYPED rather than TS_COMMON.
9549 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9550
3a7bfdd5
GJL
95512011-04-01 Georg-Johann Lay <avr@gjlay.de>
9552
9553 PR target/45263
86d83530
GJL
9554 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9555 r20 around calls of __tablejump_elpm__
3a7bfdd5 9556
20790697
JJ
95572011-04-13 Jakub Jelinek <jakub@redhat.com>
9558
9559 PR middle-end/48591
9560 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9561 NULL.
9562 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9563
094d7661
BS
95642011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9565
9566 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9567 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9568 (cfi_vec): New typedef.
9569 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9570 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9571 (cie_cfi_vec): New static variable.
9572 (cie_cfi_head): Delete.
9573 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9574 declaration changed. Use vector rather than list operations.
9575 (new_cfi): Don't initialize the dw_cfi_next field.
9576 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9577 rather than list operations.
9578 (lookup_cfa): Use vector rather than list operations.
9579 (output_cfis): New argument upto. Accept a cfi_vec rather than
9580 a dw_cfi_ref list head as argument. All callers changed.
9581 Iterate over the vector using upto as a maximum index.
9582 (output_all_cfis): New static function.
9583 (output_fde): Use vector rather than list operations. Use the
9584 new upto argument for output_cfis rather than manipulating a
9585 list.
9586 (dwarf2out_begin_prologue): Change initializations to match
9587 new struct members.
9588 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9589 from the vector length rather than searching for the end of a list.
9590 Use output_all_cfis.
9591 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9592
673a5740
NC
95932011-04-13 Nick Clifton <nickc@redhat.com>
9594
9595 * config/rx/rx.md (movmemsi): Do not use this pattern when
9596 volatile pointers are involved.
9597
1ee8b298
UB
95982011-04-13 Uros Bizjak <ubizjak@gmail.com>
9599
9600 * config/i386/sse.md (pinsrbits): Remove.
9601 (sse2_packsswb): Merge with *avx_packsswb.
9602 (sse2_packssdw): Merge with *avx_packssdw.
9603 (sse2_packuswb): Merge with *avx_packuswb.
9604 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9605 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9606 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9607 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9608 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9609 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9610 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9611 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9612 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9613 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9614 (sse2_loadld): Merge with *avx_loadld.
9615 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9616 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9617 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9618 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9619 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9620
81f653d6
NF
96212011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9622
9623 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9624 calling TREE_CHAIN.
9625 * print-tree.c (print_node): Likewise.
9626 * tree-inline.c (copy_tree_r): Likewise.
9627 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9628 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9629 instead of TS_COMMON.
9630 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9631 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9632 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9633 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9634 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9635 ...and these...
9636 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9637 * tree.h: ...here.
9638 (TREE_CHAIN): Check for a TS_COMMON structure.
9639 (TREE_TYPE): Check for a TS_TYPED structure.
9640
748f7574 96412011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
9642
9643 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9644 cgraph_get_create_node instead of cgraph_node.
9645
eb345401
NP
96462011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9647
9648 * c-parser.c (c_parser_initelt): Updated call to
9649 objc_build_message_expr.
9650 (c_parser_postfix_expression): Likewise.
9651
a6c46762
KT
96522011-04-12 Kai Tietz <ktietz@redhat.com>
9653
9654 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9655 MASK_MS_BITFIELD_LAYOUT bit.
9656
b4ccfed9
JJ
96572011-04-12 Jakub Jelinek <jakub@redhat.com>
9658
9659 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9660 assert it is always true.
9661 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9662 moves.
9663
0d8a2528
NP
96642011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9665
9666 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9667 compiling Objective-C to be more efficient.
9668
06bd234a
AF
96692011-04-12 Axel Freyn <axel-freyn@gmx.de>
9670
9671 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9672 argv_copied.
9673
28569ac3
RS
96742011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9675
9676 * recog.h, genoutput.c, optabs.c: Revert last patch.
9677
ae59e00d
RR
96782011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9679
81b1e7eb
UB
9680 PR target/48090
9681 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 9682
cff1b7e0
RS
96832011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9684
9685 * recog.h (insn_operand_data): Add an "allows_mem" field.
9686 * genoutput.c (output_operand_data): Initialize it.
9687 * optabs.c (maybe_legitimize_operand_same_code): New function.
9688 (maybe_legitimize_operand): Use it when matching the original
9689 op->value.
9690
77059241
RS
96912011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9692
9693 * genpreds.c (process_define_predicate): Move most processing
9694 to gensupport.c. Continue to validate the expression.
9695 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9696 (process_define_predicate): Move processing to gensupport.c.
9697 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9698 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9699 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9700 argument.
9701 (valid_predicate_name_p): New function, split out from old
9702 genpreds.c:process_define_predicate.
9703 (process_define_predicate): New function, combining code from
9704 old genpreds.c and genrecog.c functions.
9705 (process_rtx): Call it for DEFINE_PREDICATE and
9706 DEFINE_SPECIAL_PREDICATE.
9707
6308e208
RS
97082011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9709
9710 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9711 size of a '%A' memory reference.
9712 (T_DREG, T_QREG): New neon_builtin_type_bits.
9713 (arm_init_neon_builtins): Assert that the load and store operands
9714 are neon_struct_operands.
9715 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9716 (NEON_ARG_MEMORY): New builtin_arg.
9717 (neon_dereference_pointer): New function.
9718 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9719 Handle NEON_ARG_MEMORY.
9720 (arm_expand_neon_builtin): Update after above interface changes.
9721 Use NEON_ARG_MEMORY for loads and stores.
9722 * config/arm/predicates.md (neon_struct_operand): New predicate.
9723 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9724 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9725 (V_four_elem): Tweak formatting.
9726 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9727 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9728 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9729 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9730 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9731 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9732 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9733 Use %A in the output template.
9734 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9735 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9736 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9737 the width of the memory access. Remove post-increment.
9738 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9739
e5db8f2f
NC
97402011-04-12 Nick Clifton <nickc@redhat.com>
9741
9742 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9743 instruction for interrupt handlers if the target is the basic V850
9744 architecture.
9745 (expand_epilogue): Likewise.
9746
74f091d6
JJ
97472011-04-12 Jakub Jelinek <jakub@redhat.com>
9748
9749 PR rtl-optimization/48549
9750 * combine.c (propagate_for_debug): Also stop after BB_END of
9751 this_basic_block. Process LAST and just stop processing after it.
9752 (combine_instructions): If last_combined_insn has been deleted,
9753 set last_combined_insn to its PREV_INSN.
9754
f20ca725
RG
97552011-04-12 Richard Guenther <rguenther@suse.de>
9756
9757 PR tree-optimization/46076
9758 * gimple.h (struct gimple_statement_call): Add fntype field.
9759 (gimple_call_fntype): Adjust.
9760 (gimple_call_set_fntype): New function.
9761 * gimple.c (gimple_build_call_1): Set the call function type.
9762 * gimplify.c (gimplify_call_expr): Preserve the function
9763 type the frontend used for the call.
9764 (gimplify_modify_expr): Likewise.
9765 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9766 function type.
9767 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9768 function type.
9769 * tree-ssa.c (useless_type_conversion_p): Function pointer
9770 conversions are useless.
9771
a358e188
MJ
97722011-04-12 Martin Jambor <mjambor@suse.cz>
9773
9774 * cgraph.h (cgraph_node): Remove function declaration.
9775 (cgraph_create_node): Declare.
9776 (cgraph_get_create_node): Likewise.
9777 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9778 Updated all callers.
9779 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9780 the decl does not already exist. Call cgraph_get_create_node instead
9781 of cgraph_node.
9782 (cgraph_get_create_node): New function.
9783 (cgraph_same_body_alias): Update comment.
9784 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9785 assert it does not return NULL.
9786 (cgraph_update_edges_for_call_stmt): Likewise.
9787 (cgraph_clone_edge): Likewise.
9788 (cgraph_create_virtual_clone): Likewise.
9789 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9790 instead of cgraph_node.
9791 (cgraph_add_new_function): Call cgraph_create_node or
9792 cgraph_get_create_node instead of cgraph_node.
9793 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9794 instead of cgraph_node.
9795 (record_eh_tables): Likewise.
9796 (mark_address): Likewise.
9797 (mark_load): Likewise.
9798 (build_cgraph_edges): Call cgraph_get_create_node instead
9799 of cgraph_node.
9800 (rebuild_cgraph_edges): Likewise.
9801 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9802 instead of cgraph_node.
9803 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9804 cgraph_node.
9805 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9806 cgraph_create_node instead of cgraph_node.
9807 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9808 of cgraph_node.
9809 * lto-cgraph.c (input_node): Likewise.
9810 * lto-streamer-in.c (input_function): Likewise.
9811 * varasm.c (mark_decl_referenced): Likewise.
9812 (assemble_alias): Likewise.
9813
fe660d7b
MJ
98142011-04-12 Martin Jambor <mjambor@suse.cz>
9815
9816 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9817 instead of cgraph_node and assert it does not return NULL.
9818 * lto-streamer-in.c (lto_read_body): Likewise.
9819 * omp-low.c (new_omp_context): Likewise.
9820 (create_task_copyfn): Likewise.
9821 * tree-emutls.c (lower_emutls_function_body): Likewise.
9822 * matrix-reorg.c (transform_allocation_sites): Likewise.
9823
bae5cddf
JJ
98242011-04-12 Jakub Jelinek <jakub@redhat.com>
9825
9826 PR c/48552
9827 * c-typeck.c (build_asm_expr): Error out on attempts to use
9828 void type outputs or inputs for constraints that allow reg or
9829 don't allow memory.
9830
06eb52ca
CLT
98312011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9832 Richard Earnshaw <rearnsha@arm.com>
9833
9834 PR target/48250
9835 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9836 to use sign-magnitude offsets. Reject unsupported unaligned
9837 cases. Add detailed description in comments.
9838 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9839 condition from TARGET_32BIT to TARGET_ARM.
9840
648a616b
NF
98412011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9842
9843 * tree.h (struct typed_tree): New.
9844 (struct tree_common): Include it instead of tree_base.
9845 (TREE_TYPE): Update for new location of type field.
9846 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9847 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9848 (union tree_node): Add typed field.
9849 * treestruct.def (TS_TYPED): New.
9850 * lto-streamer.c (check_handled_ts_structures): Handle it.
9851 * tree.c (MARK_TS_TYPED): New macro.
9852 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9853
1e6d1da0
EB
98542011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9855
9856 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9857 (force_nonfallthru): Do not alter the loop nest if no basic block
9858 was created.
9859
98602011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
9861
9862 * config/i386/sse.md (VI): New mode iterator.
9863 (SSEMODEI): Remove.
9864 (AVX256MODEI): Ditto.
9865 (AVXMODEF4P): Ditto.
9866 (avxvecpsmode): Ditto.
9867 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9868 (sse2_andnot<mode>3): New expander.
9869 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9870 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9871 (<any_logic:code><mode>3): Use VI mode iterator.
9872 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9873 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9874 (*andnottf3): Handle AVX three-operand constraints.
9875 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9876
b1372d5d 98772011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 9878 Robert Millan <rmh@gnu.org>
b1372d5d
JM
9879
9880 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9881 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9882 GNU_USER_DYNAMIC_LINKER64): Define.
9883 (REG_NAME): Don't undefine.
9884 (MD_UNWIND_SUPPORT): Undefine.
9885 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9886 (REG_NAME): Don't undefine.
9887 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 9888 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 9889
761c0c6e
JM
98902011-04-11 Joseph Myers <joseph@codesourcery.com>
9891
9892 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9893 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9894
26e0228f
XDL
98952011-04-11 Xinliang David Li <davidxl@google.com>
9896
9897 * value-profile.c (check_ic_target): New function.
9898 (gimple_ic_transform): Sanity check indirect call target.
9899 * gimple-low.c (gimple_check_call_args): Interface change.
9900 (gimple_check_call_matching_types): New function.
9901 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
9902
99032011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9904
9905 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9906 tree-pretty-print.h & realmpfr.h.
9907
a58dfa49
VM
99082011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9909
9910 PR middle-end/48464
9911 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9912 (setup_allocno_and_important_classes): Ditto.
9913
107fd1c1
JM
99142011-04-11 Joseph Myers <joseph@codesourcery.com>
9915
9916 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9917 GNU_USER_DYNAMIC_LINKER.
9918 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9919 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9920 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9921 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9922 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9923 GNU_USER_TARGET_OS_CPP_BUILTINS.
9924 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9925 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9926 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9927 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9928 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9929 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9930 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9931 GNU_USER_TARGET_OS_CPP_BUILTINS.
9932 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9933 GNU_USER_DYNAMIC_LINKER.
9934 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9935 GNU_USER_TARGET_OS_CPP_BUILTINS.
9936 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9937 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9938 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9939 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9940 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9941 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9942 GNU_USER_DYNAMIC_LINKER64): Remove.
9943 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9944 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9945 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9946 GNU_USER_DYNAMIC_LINKER.
9947 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9948 GNU_USER_TARGET_OS_CPP_BUILTINS.
9949 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9950 GNU_USER_TARGET_OS_CPP_BUILTINS.
9951 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9952 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9953 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9954 GNU_USER_TARGET_OS_CPP_BUILTINS.
9955 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9956 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9957 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9958 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9959 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9960 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9961 GNU_USER_DYNAMIC_LINKER.
9962 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9963 GNU_USER_TARGET_OS_CPP_BUILTINS.
9964 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9965 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9966 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9967 GNU_USER_DYNAMIC_LINKER.
9968 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9969 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9970 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9971 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9972 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9973 GNU_USER_DYNAMIC_LINKER.
9974 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9975 GNU_USER_DYNAMIC_LINKERN32.
9976 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9977 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9978 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9979 GNU_USER_DYNAMIC_LINKER32.
9980 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9982 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9983 GNU_USER_DYNAMIC_LINKER.
9984 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9986 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9987 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 9988 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
9989 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9990 GNU_USER_DYNAMIC_LINKER32.
9991 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9992 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9993 GNU_USER_DYNAMIC_LINKER.
9994 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9995 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9996 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9997 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9998 GNU_USER_DYNAMIC_LINKER64.
9999 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10000 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10001 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10002 GNU_USER_DYNAMIC_LINKER.
10003 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10004 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10005 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10006 GNU_USER_DYNAMIC_LINKER.
10007 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10009 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10010 GNU_USER_DYNAMIC_LINKER32.
10011 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10012 GNU_USER_DYNAMIC_LINKER64.
10013 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10014 GNU_USER_DYNAMIC_LINKER64.
10015 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10017 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 10020
e24609cf
JM
100212011-04-11 Joseph Myers <joseph@codesourcery.com>
10022
10023 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10024 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10025 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10026 GNU_USER_DYNAMIC_LINKER.
10027 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10028 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10029 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10030 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10031 GNU_USER_DYNAMIC_LINKER64.
10032 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10033 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10034 GNU_USER_LINK_EMULATION.
10035 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10036 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10037 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10038 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10039 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10040 CPP_SPEC, CC1_SPEC): Remove.
10041 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10042 (GNU_USER_DYNAMIC_LINKER): Define.
10043 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10044 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10045 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10046 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10047 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10048 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10049 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10050 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10051 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10052 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10053 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10054 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10055 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10056 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10057 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10058 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10059 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10060 GNU_USER_DYNAMIC_LINKER.
10061 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10062 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10063 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10064 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10065 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10066 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10067 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10068 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10069 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 10070 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 10071
b8ce4e94
KT
100722011-04-11 Kai Tietz <ktietz@redhat.com>
10073
10074 PR target/9601
10075 PR target/11772
10076 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10077 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10078 comment.
10079 (ix86_is_msabi_thiscall): Removed.
10080 (ix86_is_type_thiscall): Likewise.
10081 (ix86_get_callcvt): New function.
10082 (ix86_comp_type_attributes): Simplify check.
10083 (ix86_function_regparm): Use ix86_get_callcvt for calling
10084 convention attribute checks.
10085 (ix86_return_pops_args): Likewise.
10086 (ix86_static_chain): Likewise.
10087 (x86_this_parameter): Likewise.
10088 (x86_output_mi_thunk): Likewise.
10089 (ix86_function_type_abi): Optimize check for types without attributes.
10090 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10091 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10092 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10093 by flag-values.
10094 (IX86_BASE_CALLCVT): Helper macro.
10095 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10096 Use ix86_get_callcvt for calling convention attribute checks and avoid
10097 symbol-decoration for stdcall in TARGET_RTD case.
10098 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10099 Likewise.
10100 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10101 for declaration.
10102
798dd0ba
UB
101032011-04-11 Uros Bizjak <ubizjak@gmail.com>
10104
10105 * config/i386/sse.md (VI_128): New mode iterator.
10106 (VI12_128): Rename from SSEMODE12.
10107 (VI14_128): Rename from SSEMODE14.
10108 (VI124_128): New mode iterator.
10109 (VI24_128): Rename from SSEMODE248.
10110 (VI248_128): Rename from SSEMODE248.
10111 (SSEMODE124C8): Remove.
10112 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10113 (*sse2_<plusminus_insn><mode>3): Merge with
10114 *avx_<plusminus_insn><mode>3.
10115 (*mulv8hi3): Merge with *avx_mulv8hi3.
10116 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10117 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10118 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10119 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10120 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10121 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10122 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10123 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10124 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10125 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10126 (*<smaxmin:code>v8hi3): Ditto.
10127 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10128 (*<smaxmin:code>v16qi3): Ditto.
10129 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10130 (*sse2_eq<mode>3): Ditto.
10131 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10132 (*sse2_gt<mode>3): Ditto.
10133 (vcondv2di): Split out of vcond<mode>.
10134 (vconduv2di): Split out of vcondu<mode>.
10135
956011be
RG
101362011-04-11 Richard Guenther <rguenther@suse.de>
10137
10138 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10139 before calling tree_low_cst.
10140
e6313a78
RG
101412011-04-11 Richard Guenther <rguenther@suse.de>
10142
10143 * stor-layout.c (layout_type): Compute all array index size operations
10144 in the original type.
10145 (initialize_sizetypes): Add comment.
10146 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10147
e69d7376
JM
101482011-04-11 Joseph Myers <joseph@codesourcery.com>
10149
10150 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10151
9f9ebcdf
MJ
101522011-04-11 Martin Jambor <mjambor@suse.cz>
10153
10154 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10155 of cgraph_node, handle NULL return value.
10156 (cgraph_global_info): Likewise.
10157 (cgraph_rtl_info): Likewise.
10158 * tree-inline.c (estimate_num_insns): Likewise.
10159 * gimplify.c (unshare_body): Likewise.
10160 (unvisit_body): Likewise.
10161 (gimplify_body): Likewise.
10162 * predict.c (optimize_function_for_size_p): Likewise.
10163 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10164 (call_may_clobber_ref_p_1): Likewise.
10165 * varasm.c (function_section_1): Likewise.
10166 (assemble_start_function): Likewise.
10167
581985d7
MJ
101682011-04-11 Martin Jambor <mjambor@suse.cz>
10169
10170 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10171 of cgraph_node.
10172 * final.c (rest_of_clean_state): Likewise.
10173 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10174 * passes.c (pass_init_dump_file): Likewise.
10175 (execute_all_ipa_transforms): Likewise.
10176 (function_called_by_processed_nodes_p): Likewise.
10177 * predict.c (maybe_hot_frequency_p): Likewise.
10178 (probably_never_executed_bb_p): Likewise.
10179 (compute_function_frequency): Likewise.
10180 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10181 (unnest_nesting_tree_1): Likewise.
10182 (lower_nested_functions): Likewise.
10183 * tree-optimize.c (execute_fixup_cfg): Likewise.
10184 (tree_rest_of_compilation): Likewise.
10185 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10186 * tree-sra.c (ipa_early_sra): Likewise.
10187 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10188 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10189 * ipa.c (record_cdtor_fn): Likewise.
10190 * ipa-inline.c (cgraph_early_inlining): Likewise.
10191 (compute_inline_parameters_for_current): Likewise.
10192 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10193 * ipa-pure-const.c (local_pure_const): Likewise.
10194 * ipa-split.c (split_function): Likewise.
10195 (execute_split_functions): Likewise.
10196 * cgraphbuild.c (build_cgraph_edges): Likewise.
10197 (rebuild_cgraph_edges): Likewise.
10198 (cgraph_rebuild_references): Likewise.
10199 (remove_cgraph_callee_edges): Likewise.
10200 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10201 (verify_cgraph_node): Likewise.
10202 (cgraph_analyze_functions): Likewise.
10203 (cgraph_preserve_function_body_p): Likewise.
10204 (save_inline_function_body): Likewise.
10205 (save_inline_function_body): Likewise.
10206 * tree-inline.c (copy_bb): Likewise.
10207 (optimize_inline_calls): Likewise.
10208
57dbdc5a
MJ
102092011-04-11 Martin Jambor <mjambor@suse.cz>
10210
10211 PR tree-optimization/48195
10212 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10213 ipa_check_create_edge_args.
10214 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10215 ipa_check_create_edge_args.
10216 * ipa-inline.c (inline_generate_summary): Do not call
10217 ipa_check_create_node_params and ipa_check_create_edge_args.
10218 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10219 ipa_check_create_edge_args.
10220
d108e679
AS
102212011-04-09 Anatoly Sokolov <aesok@post.ru>
10222
10223 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10224 instead of loop.
10225 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10226 * function.c (record_hard_reg_sets): Likewise.
10227 * ira.c (compute_regs_asm_clobbered): Likewise.
10228 * sched-deps.c (sched_analyze_1): Likewise.
10229 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10230
3411bc59
XDL
102312011-04-09 Xinliang David Li <davidxl@google.com>
10232
10233 PR tree-optimization/PR48484
10234 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10235 has_valid_pred lazily
10236
b365495a
DS
102372011-04-09 Duncan Sands <baldrick@free.fr>
10238
10239 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10240
68bc509a
EB
102412011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10242
10243 * combine.c (combine_validate_cost): Adjust comments. Set registered
10244 cost of I0 to zero at the end, if any.
10245
041e059f
XDL
102462011-04-08 Xinliang David Li <davidxl@google.com>
10247
68bc509a
EB
10248 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10249 to insane profile data.
041e059f 10250
444b3995
XDL
102512011-04-08 Xinliang David Li <davidxl@google.com>
10252
10253 * ipa-cp.c (ipcp_update_profiling): Correct
10254 negative scale factor due to insane profile data.
10255
6a801cf2
XDL
102562011-04-08 Xinliang David Li <davidxl@google.com>
10257
10258 * final.c (dump_basic_block_info): New function.
10259 (final): Dump basic block.
10260 (final_scan_insn): Remove old dump.
10261
d5f3624e
SK
102622011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10263
68bc509a
EB
10264 PR target/47829
10265 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10266 crtbegin/crtend.
d5f3624e 10267
42821aff
MM
102682011-04-08 Michael Matz <matz@suse.de>
10269
10270 PR middle-end/48389
10271 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10272 functions.
10273 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10274 * rtl.h (rebuild_jump_labels_chain): Declare.
10275 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10276 insns inserted on edges.
10277
ad7be009
JM
102782011-04-08 Joseph Myers <joseph@codesourcery.com>
10279
10280 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10281 * config/arm/arm-arches.def: New.
10282 * config/arm/arm-opts.h: New.
10283 * config/arm/genopt.sh: New.
10284 * config/arm/arm-tables.opt: New (generated).
10285 * config/arm/arm.c (arm_handle_option, arm_target_help,
10286 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10287 (all_architectures): Get most table contents from arm-arches.def.
10288 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10289 arm_selected_tune here.
10290 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10291 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10292 (march=, mcpu=, mtune=): Use Enum and Var.
10293 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10294 (arm.o): Update dependencies.
ecbb6fb7 10295
42821aff 102962011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
10297
10298 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10299 of header_file.
10300 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10301 (write_typed_alloc_defns): Likewise.
10302 (main): Calls write_typed_alloc_defns with output_header.
10303
8d189b3f
VM
103042011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10305
68bc509a 10306 PR inline-asm/48435
8d189b3f
VM
10307 * ira-color.c (setup_profitable_hard_regs): Add comments.
10308 Don't take prohibited hard regs into account.
10309 (setup_conflict_profitable_regs): Rename to
10310 get_conflict_profitable_regs.
10311 (check_hard_reg_p): Check prohibited hard regs.
10312
44f370bf
NF
103132011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10314
10315 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10316 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10317 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10318
483d7ad3
JDA
103192011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10320
10321 PR target/48366
10322 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 10323 move from floating point to shift amount register.
483d7ad3
JDA
10324 (emit_move_sequence): Remove secondary reload support for floating
10325 point to shift amount amount register copies.
10326 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10327 amount register copies.
10328 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10329 register, return false if mode isn't a scalar integer mode.
10330 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10331
97e03fa1
RG
103322011-04-08 Richard Guenther <rguenther@suse.de>
10333
10334 * gimple.c (gimple_call_flags): Remove kludge.
10335
9d40778b
AM
103362011-04-08 Alexander Monakov <amonakov@ispras.ru>
10337
10338 * sel-sched.c (sel_region_init): Move call to
10339 sel_setup_region_sched_flags after setup_current_loop_nest.
10340
19ac7892
AB
103412011-04-08 Andrey Belevantsev <abel@ispras.ru>
10342
10343 PR rtl-optimization/48272
19ac7892
AB
10344 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10345 init_insn_reg_pressure_info. Adjust a caller.
10346 * sched-int.h (init_insn_reg_pressure_info): Declare.
10347 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10348 when sched-pressure is enabled.
10349
0f8c63cc
RG
103502011-04-08 Richard Guenther <rguenther@suse.de>
10351
10352 * gimple.c (gimple_set_modified): Do not queue calls to
10353 MODIFIED_NORETURN_CALLS here ...
10354 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10355
5e5a425e
RG
103562011-04-08 Richard Guenther <rguenther@suse.de>
10357
10358 PR lto/48467
10359 * toplev.c (lang_dependent_init): Do not open asm_out_file
10360 in WPA mode, nor perform debug machinery initialization.
10361 (finalize): Do not unlink asm_out_file in WPA mode.
10362
9bfc434b
RG
103632011-04-08 Richard Guenther <rguenther@suse.de>
10364
10365 * gimple.h (gimple_call_fntype): New function.
10366 (gimple_call_return_type): Use it.
10367 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10368 * gimple-low.c (gimple_check_call_args): Likewise.
10369 * gimple.c (gimple_call_flags): Likewise.
10370 (gimple_call_arg_flags): Likewise.
10371 (gimple_call_return_flags): Likewise.
10372 * tree-cfg.c (verify_gimple_call): Likewise.
10373 (do_warn_unused_result): Likewise.
10374 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10375 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10376
7c1f0b40
DM
103772011-04-08 Dmitry Melnik <dm@ispras.ru>
10378
10379 PR rtl-optimization/48235
10380 * sel-sched.c (code_motion_process_successors): Recompute the last
10381 insn in basic block if control flow changed.
10382 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10383 Update condition for ilist_remove.
10384
ea4d630f
AM
103852011-04-08 Alexander Monakov <amonakov@ispras.ru>
10386
10387 PR rtl-optimization/48302
10388 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10389 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10390 it to record added preheader blocks.
10391 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10392 on to sel_add_loop_preheaders.
10393 (sel_region_init): Move call to setup_current_loop_nest after
10394 sel_init_bbs.
10395
07643d76
AM
103962011-04-08 Alexander Monakov <amonakov@ispras.ru>
10397
10398 PR target/48273
10399 * cfgloop.h (loop_has_exit_edges): New helper.
10400 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10401 non-clonable.
10402 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10403 that have no exit edges.
10404
1f3b2b4e
AM
104052011-04-08 Alexander Monakov <amonakov@ispras.ru>
10406
10407 PR rtl-optimization/48442
10408 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10409 all callers. Adjust assert.
10410
554f1948
JJ
104112011-04-08 Jakub Jelinek <jakub@redhat.com>
10412
10413 PR tree-optimization/48377
10414 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10415 is_packed to true even for types with smaller TYPE_ALIGN than
10416 TYPE_SIZE.
10417
ddf72388
RG
104182011-04-08 Richard Guenther <rguenther@suse.de>
10419
10420 PR bootstrap/48513
10421 * doc/tm.texi: Re-generate.
10422
0c27e2d8
WG
104232011-04-08 Wei Guozhi <carrot@google.com>
10424
10425 PR target/47855
10426 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10427 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10428 * config/arm/arm.md (*push_multi): Change the length computation to
10429 call a C function.
10430
07c5f94e
AS
104312011-04-08 Anatoly Sokolov <aesok@post.ru>
10432
10433 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10434 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10435 * doc/tm.texi: Regenerate.
10436 * system.h (ASM_OUTPUT_BSS): Poison.
10437 * varasm.c (asm_output_bss): Remove function.
10438 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 10439
07c5f94e
AS
10440 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10441 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10442 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10443 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10444 Likewise.
10445 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10446 Likewise.
10447 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10448 Likewise.
10449 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10450
5f2c36e1
JM
104512011-04-07 Joseph Myers <joseph@codesourcery.com>
10452
10453 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10454 EnumValue lines.
10455
39e7722b
JM
104562011-04-07 Joseph Myers <joseph@codesourcery.com>
10457
10458 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10459 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10460 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10461 OPT_mcpu32.
10462 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10463 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10464 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10465 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10466 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10467 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10468 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10469 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10470 options. Don't map other m68k options manually. Don't handle
10471 old-style options as canonical.
10472 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 10473 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 10474
cf103ca4
EB
104752011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10476
10477 * basic-block.h (force_nonfallthru): Move to...
10478 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10479 (force_nonfallthru): ...here.
10480 * cfghooks.c (force_nonfallthru): New function.
10481 * cfgrtl.c (force_nonfallthru): Rename into...
10482 (rtl_force_nonfallthru): ...this.
10483 (commit_one_edge_insertion): Do not set AUX field.
10484 (commit_edge_insertions): Do not discover new basic blocks.
10485 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10486 (cfg_layout_rtl_cfg_hooks): Likewise.
10487 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10488 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10489 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10490
14431f58
AS
104912011-04-07 Anatoly Sokolov <aesok@post.ru>
10492
10493 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10494 Remove macros.
10495
3729983c
UB
104962011-04-07 Uros Bizjak <ubizjak@gmail.com>
10497
10498 * config/i386/sse.md: Update copyright year.
10499 (avxcvtvecmode): Remove.
10500 (sse_movhlps): Merge with *avx_movhlps.
10501 (sse_movlhps): Merge with *avx_movlhps.
10502 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10503 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10504 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10505 (sse_loadhps): Merge with *avx_loadhps.
10506 (sse_storelps): Merge with *avx_storelps.
10507 (sse_loadlps): Merge with *avx_loadlps.
10508 (sse_movss): Merge with *avx_movss.
10509 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10510 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10511 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10512 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10513 (vec_set<mode>_0): Ditto.
10514 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10515 (sse4_1_insertps): Merge with *avx_insertps.
10516 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10517 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10518 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10519 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10520 (sse2_storehpd): Merge with *avx_storehpd.
10521 (sse2_loadhpd): Merge with *avx_loadhpd.
10522 (sse2_loadlpd): Merge with *avx_loadlpd.
10523 (sse2_movsd): Merge with *avx_movsd.
10524 (*vec_concatv2df): Merge with *vec_concatv2df.
10525
4e626909
JJ
105262011-04-07 Jakub Jelinek <jakub@redhat.com>
10527
10528 PR debug/48343
10529 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 10530 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
10531 (try_combine): Add last_combined_insn parameter, pass it instead of
10532 i3 to propagate_for_debug.
10533
3729983c 105342011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
10535
10536 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10537 to handle MDR <-> data register transfers.
10538 (movhi_internal): Likewise.
10539
20c03367
AM
105402011-04-07 Alan Modra <amodra@gmail.com>
10541
10542 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10543 previous stack info.
10544
bf22920b
TV
105452011-04-07 Tom de Vries <tom@codesourcery.com>
10546
10547 PR target/43920
10548 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10549 flow_find_cross_jump. Swap variables to implement backward replacement.
10550 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10551
823918ae
TV
105522011-04-07 Tom de Vries <tom@codesourcery.com>
10553
10554 PR target/43920
10555 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
10556 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10557 and bb2.
10558 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10559 src1 or src2. Redirect edges to the last basic block. Update
10560 frequency and count on multiple basic blocks in case of fallthru.
823918ae 10561
472c95f5
TV
105622011-04-07 Tom de Vries <tom@codesourcery.com>
10563
10564 PR target/43920
10565 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10566 function.
3729983c
UB
10567 (old_insns_match_p): Change return type. Replace return false/true
10568 with return dir_none/dir_both. Use can_replace_by.
10569 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10570 direction from dir_p. Register replacement direction in dir, last_dir
10571 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
10572 merge_dir. Return replacement direction in dir_p.
10573 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10574 return type of old_insns_match_p.
10575 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10576 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10577 flow_find_cross_jump.
10578 * basic-block.h (enum replace_direction): New type.
10579 (flow_find_cross_jump): Add parameter to declaration.
10580
a95d4000
UB
105812011-04-06 Uros Bizjak <ubizjak@gmail.com>
10582
10583 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10584 (AVXMODEDCVTPS2DQ): Ditto.
10585 (VEC_FLOAT_MODE): Ditto.
10586 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10587 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10588 (<any_logic:code><mode>3): Use VF mode iterator.
10589 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10590 Use VF mode iterator.
10591 (copysign<mode>3): Use VF mode iterator.
10592 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10593 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10594 (*<any_logic:code><MODEF:mode>3): Merge with
10595 *avx_<any_logic:code><MODEF:mode>3.
10596 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10597 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10598 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10599 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10600 (sse2_cvtdq2ps): Use %v modifier.
10601 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10602 (avx_cvtps2dq<avxmodesuffix>): Remove.
10603 (sse2_cvtps2dq): Use %v modifier.
10604 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10605 (avx_cvttps2dq<avxmodesuffix>): Remove.
10606 (sse2_cvttps2dq): Use %v modifier.
10607 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10608 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10609 (sse2_cvtsd2siq): Fix insn template.
10610 (sse2_cvtsd2siq_2): Ditto.
10611 (sse2_cvttsd2siq): Ditto.
10612 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10613 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10614
ad01c437
JM
106152011-04-06 Joseph Myers <joseph@codesourcery.com>
10616
10617 * gcov-io.c: Use GCC Runtime Library Exception.
10618
fe846284
JJ
106192011-04-06 Jakub Jelinek <jakub@redhat.com>
10620
10621 PR debug/48466
10622 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10623 as base_reg whatever register reg has been eliminated to, instead
10624 of hardcoding STACK_POINTER_REGNUM.
10625
acce4e77
JM
106262011-04-06 Joseph Myers <joseph@codesourcery.com>
10627
10628 * doc/tm.texi.in: Document C target hooks as separate from general
10629 target hooks.
10630 * doc/tm.texi: Regenerate.
10631 * genhooks.c (struct hook_desc): Add docname field.
10632 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10633 docname field.
10634 (hook_array): Include c-target.def.
10635 (emit_documentation): Use docname field in output.
10636 (emit_init_macros): Take docname argument. Only emit definitions
10637 for hooks matching docname.
10638 (main): Expect additional arguments in all cases. Pass argument
10639 to emit_init_macros.
10640 * target.def: Move initial macro definitions and comments to
10641 target-hooks-macros.h.
10642 (gcc_targetcm): Move to c-family/c-target.def.
10643 * target.h (targetcm): Move declaration to c-family/c-target.h.
10644 * targhooks.c (default_handle_c_option): Move to
10645 c-family/c-opts.c.
10646 * targhooks.h (default_handle_c_option): Move declaration to
10647 c-family/c-common.h.
10648 * target-hooks-macros.h: New file.
10649 * config.gcc (target_has_targetcm): Define and use to add to
10650 c_target_objs and cxx_target_objs.
10651 * config/default-c.c: New file.
10652 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10653 of target.h and target-def.h.
10654 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10655 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10656 darwin_check_cfstring_format_arg): Make static.
10657 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10658 TARGET_STRING_OBJECT_REF_TYPE_P,
10659 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10660 * config/darwin-protos.h (darwin_objc_construct_string,
10661 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10662 declare.
10663 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10664 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 10665 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
10666 * config/t-darwin (darwin-c.o): Update dependencies.
10667 * system.h (TARGET_HAS_TARGETCM): Poison.
10668 * Makefile.in (TARGET_H): Update.
10669 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10670 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10671 (default-c.o): New target.
10672 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 10673 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
10674 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10675 c-target.def.
10676 (build/genhooks.o): Update dependencies.
10677
275b4baa 106782011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 10679
275b4baa
RG
10680 * ipa-inline.c (enum inlining_mode): Remove.
10681 (cgraph_flatten): Use some other token.
10682 (cgraph_edge_early_inlinable_p): New function, split out from ...
10683 (cgraph_perform_always_inlining): New function, split out from ...
10684 (cgraph_decide_inlining_incrementally): ... here.
10685 (cgraph_mark_inline_edge): Adjust.
10686 (cgraph_early_inlining): Re-structure.
10687 (pass_early_inline): Require SSA form.
10688
f15b8bdf 106892011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
10690 Julian Brown <julian@codesourcery.com>
10691 Mark Shinwell <shinwell@codesourcery.com>
10692
10693 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10694 LO_REGS only for Thumb-1.
10695 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10696 be used in short instructions when optimising for size on Thumb-2.
10697
516426da
EB
106982011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10699
10700 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10701 associated with user returns to be preserved.
10702
96621ebf
TG
107032011-04-06 Tristan Gingold <gingold@adacore.com>
10704
f15b8bdf
EB
10705 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10706 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
10707 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10708 if XCOFF_DEBUGGING_INFO.
10709
07c0852e
UB
107102011-04-06 Uros Bizjak <ubizjak@gmail.com>
10711
10712 * config/i386/i386.md (attribute isa): New.
10713 (attribute enabled): New.
10714 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10715 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10716 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10717 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10718 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10719 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10720 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10721 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10722
10723 * config/i386/sse.md (VF): New mode iterator.
10724 (VF1): Ditto.
10725 (VF2): Ditto.
10726 (VF_128): Ditto.
10727 (SSEMODEF4): Remove.
10728 (attribute sse): Handle V8SF and V4DF modes.
10729 (<absneg:code><mode>2): Use VF mode iterator.
10730 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10731 mode iterator.
10732 (<plusminus_insn><mode>3): Use VF mode iterator.
10733 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10734 Use VF mode iterator.
10735 (<sse>_vm<plusminus_insn><mode>3): Merge with
10736 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10737 (mul<mode>3): Use VF mode iterator.
10738 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10739 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10740 mode iterator.
10741 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10742 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10743 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10744 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10745 mode iterator.
10746 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10747 Use VF1 mode iterator.
10748 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10749 (sqrt<VF2:mode>2): New expander.
10750 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10751 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10752 and sqrtv2df2. Use VF mode iterator.
10753 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10754 mode iterator.
10755 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10756 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10757 Use VF1 mode iterator.
10758 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10759 (<smaxmin:code><mode>3): Use VF mode iterator.
10760 (*<smaxmin:code><mode>3_finite): Merge with
10761 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10762 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10763 (<sse>_vm<smaxmin:code><mode>2): Merge with
10764 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10765 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10766 mode iterator.
10767 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10768 mode iterator.
10769 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10770 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10771 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10772 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10773 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10774 VF mode iterator.
10775 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10776 Use VF_128 mode iterator.
10777 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10778 mode iterator.
10779 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10780 VF_128 mode iterator.
10781 (vcond<mode>): Use VF mode iterator.
10782 * config/i386/predicates.md (sse_comparison_operator): Merge with
10783 avx_comparison_float_operator. Do not declare as special_predicate.
10784 * config/i386/i386.c (struct builtin_description): Update for renamed
10785 compare patterns.
10786 (ix86_expand_args_builtin): Ditto.
10787 (ix86_expand_sse_compare_mask): Ditto.
10788
ff5d142c
RG
107892011-04-06 Richard Guenther <rguenther@suse.de>
10790
10791 * tree-inline.c (estimate_num_insns): For calls simply account
10792 for all passed arguments and a used return value.
10793
d7d1d041 107942011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 10795
d7d1d041
RG
10796 PR tree-optimization/47663
10797 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10798 call_stmt_time fields.
10799 (cgraph_edge_inlinable_p): Declare.
10800 (cgraph_edge_recursive_p): New inline function.
10801 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10802 (cgraph_clone_edge): Copy it.
10803 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10804 Account for call stmt time.
10805 (cgraph_estimate_time_after_inlining): Take edge argument.
10806 (cgraph_estimate_edge_growth): Account call stmt size.
10807 (cgraph_estimate_size_after_inlining): Take edge argument.
10808 (cgraph_mark_inline_edge): Adjust.
10809 (cgraph_check_inline_limits): Likewise.
10810 (cgraph_recursive_inlining_p): Remove.
10811 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10812 (cgraph_decide_recursive_inlining): Take edge argument and
10813 adjust.
10814 (cgraph_decide_inlining_of_small_functions): Do not avoid
10815 diags for recursive inlining here.
10816 (cgraph_flatten): Adjust.
10817 (cgraph_decide_inlining_incrementally): Likewise.
10818 (estimate_function_body_sizes): Remove call cost handling.
10819 (compute_inline_parameters): Initialize caller edge call costs.
10820 (cgraph_estimate_edge_growth): New function.
10821 (cgraph_estimate_growth): Use it.
10822 (cgraph_edge_badness): Likewise.
10823 (cgraph_check_inline_limits): Take an edge argument.
10824 (cgraph_decide_inlining_of_small_functions): Adjust.
10825 (cgraph_decide_inlining): Likewise.
10826 * tree-inline.c (estimate_num_insns): Only account for call
10827 return value if it is used.
10828 (expand_call_inline): Avoid diagnostics on recursive inline
10829 functions here.
10830 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10831 (input_edge): Input edge call costs.
10832
2feb95f7
RO
108332011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10834
10835 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10836
26fbd9c2
JW
108372011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10838
10839 * doc/invoke.texi (Spec Files): Fix typo.
10840
694dc0ca
EB
108412011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10842
10843 * profile.c (branch_prob): Move declaration of local variable. Remove
10844 obsolete ??? comment. Expand the location explicitly instead of using
10845 the LOCATION_FILE and LOCATION_LINE macros.
10846
4925d0d5
WG
108472011-04-06 Wei Guozhi <carrot@google.com>
10848
10849 PR target/47855
10850 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10851 (arm_cond_branch): Likewise.
10852 (arm_cond_branch_reversed): Likewise.
10853 (arm_jump): Likewise.
10854 (push_multi): Likewise.
10855 * config/arm/constraints.md (Py): New constraint.
10856
f55dfa2f
NF
108572011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10858
10859 PR bootstrap/48471
10860 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10861 Move these...
10862 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10863 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10864 #ifdef DBX_DEBUGGING_INFO.
10865
fca96842
BS
108662011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10867
10868 PR bootstrap/48403
10869 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10870 if old and new states differ.
10871
30b83e38
JM
108722011-04-05 Joseph Myers <joseph@codesourcery.com>
10873
10874 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10875 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10876 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10877 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10878 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10879 mcfv4e): Use Alias.
10880 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10881 ColdFire options to -mcpu= options.
10882
277a9aa5
JL
108832011-04-05 Jeff Law <law@redhat.com>
10884
10885 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10886 check if BB is a successor of LOOP->header and return
10887 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10888
c1e2610e
SB
108892011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10890
10891 * cprop.c (struct reg_use): Remove.
10892 (reg_use_table): Make an array of RTX.
10893 (find_used_regs, constprop_register, local_cprop_pass,
10894 bypass_block): Simplify users of reg_use_table.
10895 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10896 on one of the uses found by find_used_regs.
10897
e532f586
NF
108982011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10899
10900 PR bootstrap/48469
10901 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10902 declaration.
10903
3fb7c055
NF
109042011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10905
10906 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10907 as an rtx.
10908 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10909
b71b43d9
SB
109102011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10911
10912 PR middle-end/48441
10913 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10914
b405b274
NF
109152011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10916
10917 * combine.c: Include obstack.h.
10918 (struct insn_link): Define.
10919 (uid_log_links): Adjust type.
10920 (FOR_EACH_LOG_LINK): New macro.
10921 (insn_link_obstack): Declare.
10922 (alloc_insn_link): Define.
10923 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10924 type of link variables.
10925 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10926 (try_combine, record_promoted_values, distribute_notes): Likewise.
10927 (distribute_links): Likewise. Tweak prototype.
10928 (clear_log_links): Delete.
10929 (adjust_for_new_dest): Call alloc_insn_link.
10930 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10931
6409abe3
NF
109322011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10933
10934 * gcse.c (modify_mem_list): Convert to an array of VECs.
10935 (canon_modify_mem_list, compute_transp): Tweak formatting.
10936 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10937 (load_killed_in_block_p): Likewise.
10938 (record_last_mem_set_info): Likewise.
10939 (clear_modify_mem_tables): Likewise.
10940
170d8157
TV
109412011-04-05 Tom de Vries <tom@codesourcery.com>
10942
10943 PR middle-end/48461
10944 * function.c (emit_use_return_register_into_block): Only define if
10945 HAVE_return.
10946
c5911a55
EB
109472011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10948
10949 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10950
abd016e6
JM
109512011-04-05 Joseph Myers <joseph@codesourcery.com>
10952
10953 * config/rx/rx-opts.h: New.
10954 * config/rx/rx.c (rx_cpu_type): Remove.
10955 (rx_handle_option): Don't assert that global structures are in
10956 use. Access variables via opts pointer. Defer most handling of
10957 OPT_mint_register_. Use error_at.
10958 (rx_option_override): Handle deferred OPT_mint_register_ here.
10959 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10960 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10961 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10962 (rx_cpu_types): New Enum and EnumValue entries.
10963 (mint-register=): Use Defer and use Var accordingly.
10964
1ed13f83
NF
109652011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10966
10967 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10968 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10969 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10970 Move these...
10971 (debug_free_queue, debug_nesting, symbol_queue_index):
10972 ...and these...
10973 * dbxout.c: ...to here. Make static.
10974
6ce1edcf
NF
109752011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10976
10977 * gcse.c (modify_pair): Define. Define a VEC of it.
10978 (canon_modify_mem_list): Convert to an array of VECs.
10979 (free_insn_expr_list_list): Delete.
10980 (clear_modify_mem_tables): Call VEC_free instead.
10981 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10982 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10983 (canon_list_insert, compute_transp): Likewise.
10984
c201ac94
TV
109852011-04-05 Tom de Vries <tom@codesourcery.com>
10986
10987 PR target/43920
10988 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10989 for size.
10990
4c029f40
TV
109912011-04-05 Tom de Vries <tom@codesourcery.com>
10992
10993 PR target/43920
10994 * function.c (emit_use_return_register_into_block): New function.
10995 (thread_prologue_and_epilogue_insns): Use
10996 emit_use_return_register_into_block.
10997
2a562b0a
TV
109982011-04-05 Tom de Vries <tom@codesourcery.com>
10999
11000 PR target/43920
11001 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11002 insn.
11003
0248bceb
TV
110042011-04-05 Tom de Vries <tom@codesourcery.com>
11005
11006 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11007
ffa94123
YZ
110082011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11009
798dd0ba
UB
11010 * config/arm/arm.md (define_constants for unspec): Replace with
11011 define_c_enum.
11012 (define_constants for unspecv): Replace with define_c_enum.
11013 * config/arm/neon.md (define_constants for unspec): Replace with
11014 define_c_enum.
ffa94123 11015
3b8f9b46
RH
110162011-04-04 Richard Henderson <rth@redhat.com>
11017
720cf80f 11018 PR bootstrap/48400
3b8f9b46
RH
11019 * dwarf2out.c (output_line_info): Always emit line info from
11020 at least one section.
11021 (dwarf2out_init): Create text_section_line_info here ...
11022 (set_cur_line_info_table): ... not here.
11023
720cf80f 110242011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
11025
11026 PR target/48380
11027 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 11028 not called.
e5b0e1ca 11029
720cf80f 11030 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 11031
196565d4
SB
110322011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11033
b77f9eab
SB
11034 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11035 (expr_equiv_p): Remove.
11036 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11037 (hash_scan_set): Update call to insert_set_in_table.
11038 (dump_hash_table): Dump <dest, src> pair.
11039 (lookup_set): Simplify. Lookup <dest, src> pair.
11040 (compute_transp): Remove, fold heavily simplified code into...
11041 (compute_local_properties): ...here. Expect COMP and TRANSP
11042 unconditionally.
11043 (find_avail_set): Take set directly from struct expr.
11044 (find_bypass-set): Likewise.
11045 (bypass_block): Likewise.
11046 (cprop_insn): Likewise. Remove redundant INSN_P test.
11047
384d7a55
SB
11048 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11049 checks on form of COND from find_implicit_sets to here.
11050 (find_implicit_sets): Cleanup control flow. Split critical edges
11051 if it exposes implicit sets. Allocate/resize implicit_sets as
11052 necessary.
11053 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11054 changed something. Run df_analyze after find_implicit_sets if any
11055 edges were split. Do not allocate implicit_sets here.
11056
3084ce69
SB
11057 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11058 (gcse_obstack): Renamed to cprop_obstack.
11059 (GNEW, GNEWVEC, GNEWVAR): Remove.
11060 (gmalloc): Remove.
11061 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11062 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11063 (gcse_alloc): Likewise, and rename to cprop_alloc.
11064 (alloc_gcse_men, free_gcse_mem): Remove.
11065 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11066 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11067 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11068
196565d4
SB
11069 * cprop.c (oprs_not_set_p): Remove.
11070 (mark_set, mark_clobber): Remove.
11071 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11072 (reg_not_set_p): New function.
11073 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11074 (cprop_insn): Likewise.
11075 (cprop_jump): Use FOR_EACH_EDGE.
11076
9b69cf83
BS
110772011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11078
11079 PR bootstrap/48403
11080 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11081 (rank_for_schedule): Use scheduled_insns vector instead of
11082 last_scheduled_insn.
11083 (ok_for_early_queue_removal): Likewise.
11084 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11085 we have a dbg_cnt.
11086 (choose_ready): Likewise.
11087 (commit_schedule): Use VEC_iterate.
11088 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11089 a dbg_cnt, use it and ensure the first insn is in the ready list.
11090 (haifa_sched_init): Allocate scheduled_insns.
11091 (sched_extend_ready_list): Don't allocate it; reserve space.
11092 (haifa_sched_finish): Free it.
11093
24f48c2f
JM
110942011-04-04 Joseph Myers <joseph@codesourcery.com>
11095
11096 * optc-gen.awk: Always remove type from Variable entry before
11097 recording in var_seen.
11098
8effe856
EB
110992011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11100
11101 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11102 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11103 call to tidy_fallthru_edges.
11104
413519ae
JM
111052011-04-04 Joseph Myers <joseph@codesourcery.com>
11106
11107 * doc/options.texi (ToLower): Document.
3729983c 11108 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
11109 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11110 * opts.h (cl_option): Add cl_tolower field.
11111 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11112 arguments with lowercase strings.
11113 * config/rx/rx.opt (mcpu=): Add ToLower.
11114 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11115 argument.
11116
7d34a1b0
RS
111172011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11118
11119 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11120
c30e7434
RS
111212011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11122
11123 * config/vax/vax.c: Include reload.h.
11124
112a861d
AS
111252011-04-04 Anatoly Sokolov <aesok@post.ru>
11126
11127 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11128 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11129 (sparc_preferred_reload_class): New function.
11130
e8c6bb74
JJ
111312011-04-04 Jakub Jelinek <jakub@redhat.com>
11132
2aeaa366 11133 PR debug/48401
e8c6bb74
JJ
11134 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11135 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11136
2c081caf
NF
111372011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11138
11139 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11140 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11141
53802f27
AS
111422011-04-03 Anatoly Sokolov <aesok@post.ru>
11143
11144 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11145 (ASM_OUTPUT_ALIGNED_BSS): Define.
11146
e89964e3
MM
111472011-04-03 Michael Matz <matz@suse.de>
11148
11149 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11150 and next_slot members.
11151 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11152 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11153 (lto_streamer_cache_append): Declare.
11154 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11155 unsigned index, remove offset parameter, ensure that we append
11156 or update existing entries.
11157 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11158 parameter, update next_slot for append.
11159 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11160 parameter.
11161 (lto_streamer_cache_insert_at): Likewise.
11162 (lto_streamer_cache_append): New function.
11163 (lto_streamer_cache_lookup): Use unsigned index.
11164 (lto_streamer_cache_get): Likewise.
11165 (lto_record_common_node): Don't test tree_node_can_be_shared.
11166 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11167 (lto_streamer_cache_delete): Don't free offsets member.
11168 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11169 (lto_output_string_with_length): Use lto_output_data_stream.
11170 (lto_output_tree_header): Remove ix parameter, don't write it.
11171 (lto_output_builtin_tree): Likewise.
11172 (lto_write_tree): Adjust callers to above, don't track and write
11173 offset, write unsigned index.
11174 (output_unreferenced_globals): Don't emit all global vars.
11175 (write_global_references): Use unsigned indices.
11176 (lto_output_decl_state_refs): Likewise.
11177 (write_symbol): Likewise.
11178 * lto-streamer-in.c (lto_input_chain): Move earlier.
11179 (input_function): Use unsigned index.
11180 (input_alias_pairs): Don't read and then ignore all global vars.
11181 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11182 don't pass it back, use lto_streamer_cache_append.
11183 (lto_register_var_decl_in_symtab): Use unsigned index.
11184 (lto_register_function_decl_in_symtab): Likewise.
11185 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11186 index.
11187 (lto_get_builtin_tree): Don't read index, use
11188 lto_streamer_cache_append.
11189 (lto_read_tree): Adjust call to lto_materialize_tree.
11190
11191 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11192 don't use function calls in arguments to MIN.
11193
11194 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11195 twice.
11196
11197 * gimple.c (gimple_type_leader_entry): Mark deletable.
11198
b9a5b5b2
AM
111992011-04-03 Alan Modra <amodra@gmail.com>
11200
11201 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11202
ac6a641b
MM
112032011-04-03 Michael Matz <matz@suse.de>
11204
11205 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11206 an integer.
11207 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11208
0038d4e0
MM
112092011-04-03 Michael Matz <matz@suse.de>
11210
e9c18386 11211 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
11212 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11213 without function context.
11214 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11215 current_function_decl and cfun.
11216
91f2fae8
MM
112172011-04-03 Michael Matz <matz@suse.de>
11218
11219 * tree.c (decl_init_priority_insert): Don't create entry for
11220 default priority.
11221 (decl_fini_priority_insert): Ditto.
11222 (fields_compatible_p, find_compatible_field): Remove.
11223 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11224 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11225
da29e070
EB
112262011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11227
11228 * combine.c (try_combine): Remove useless local variable.
11229
4979c28b 112302011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 11231 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
11232
11233 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11234 non-variable offsets and compare the remaining bases of the two
11235 accesses instead of looking for exact same data-ref.
11236
b4ddcaee
KT
112372011-04-02 Kai Tietz <ktietz@redhat.com>
11238
f90298e1
KT
11239 PR target/48416
11240 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11241
b4ddcaee
KT
11242 * i386.c (ix86_is_msabi_thiscall): New helper function.
11243 (ix86_is_type_thiscall): New helper function.
11244 (ix86_comp_type_attributes): Handle thiscall for method-functions
11245 special.
11246 (init_cumulative_args): Likewise.
11247 (find_drap_reg): Likewise.
11248 (ix86_static_chain): Likewise.
11249 (x86_this_parameter): Likewise.
11250 (x86_output_mi_thunk): Likewise.
11251
2a9d769a 112522011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
11253 Nicolas Setton <setton@adacore.com>
11254 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
11255
11256 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11257 (add_gnat_descriptive_type_attribute): New function.
11258 (gen_array_type_die): Call it.
11259 (gen_enumeration_type_die): Likewise.
11260 (gen_struct_or_union_type_die): Likewise.
11261 (modified_type_die): Likewise.
11262 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11263 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11264 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11265
15a03a11
JJ
112662011-04-01 Jakub Jelinek <jakub@redhat.com>
11267
11268 PR bootstrap/48148
11269 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11270 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11271
11272 Revert:
11273 2011-03-17 Richard Guenther <rguenther@suse.de>
11274
11275 PR bootstrap/48148
11276 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11277 origin for decls in other ltrans units.
11278 (input_varpool_node): Likewise.
11279
19228b93
JJ
112802011-04-01 Jakub Jelinek <jakub@redhat.com>
11281
11282 PR middle-end/48335
11283 * expr.c (expand_assignment): Handle all possibilities
11284 if TO_RTX is CONCAT.
e9c18386 11285 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
11286 (store_split_bit_field): If SUBREG_REG (op0) or
11287 op0 itself has smaller mode than word, return it
11288 for offset 0 and const0_rtx for out-of-bounds stores.
11289 If word is const0_rtx, skip it.
11290
88cb339e
N
112912011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11292
11293 * config/h8300/h8300.c (print_operand_address): Rename to...
11294 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11295 Call h8300_print_operand and h8300_print_operand_address instead of
11296 print_operand and print_operand_address. Declare.
11297 (print_operand): Renake to...
11298 (h8300_print_operand): ...this. Make static. Adjust comments.
11299 Call h8300_print_operand instead of print_operand. Declare.
11300 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11301 (h8300_register_move_cost): Likewise.
11302 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11303 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11304 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11305 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11306 * config/h8300/h8300-protos.h (print_operand): Delete.
11307 (print_operand_address): Delete.
11308
756d6ee9
RH
113092011-04-01 Richard Henderson <rth@redhat.com>
11310
11311 PR 48400
11312 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11313 in strict mode before dwarf4. Re-order tests to early out
11314 before switching sections.
11315
ceaaaeab
NF
113162011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11317
11318 * config/h8300/constraints.md: New file.
11319 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11320 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11321 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11322 * config/h8300/predicates.md (bit_operand): Likewise.
11323 (incdec_operand): Use satisfies_constraint_M and
11324 satisfies_constraint_O. Don't use C code block.
11325 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11326 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11327 (compute_mov_length): Use satisfies_constraint_G.
11328 (fix_bit_operand): Use satisfies_constraint_U.
11329 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11330 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11331 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11332 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11333 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11334 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11335 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11336 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11337 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11338 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11339 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11340 (EXTRA_MEMORY_CONSTRAINT): Delete.
11341
08ae38e0
AP
113422011-04-01 Andrew Pinski <pinskia@gmail.com>
11343 Michael Meissner <meissner@linux.vnet.ibm.com>
11344
11345 PR target/48262
11346 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11347 operands, as per the specifications.
11348
11349 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11350 (vec_extract_evenv4sf): Ditto.
11351 (vec_extract_evenv8hi): Ditto.
11352 (vec_extract_evenv16qi): Ditto.
11353 (vec_extract_oddv4si): Ditto.
11354
bdb0b0f6
MW
113552011-03-31 Mark Wielaard <mjw@redhat.com>
11356
11357 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11358 high_pc attribute if the CU has no associated code. Only output
11359 DW_AT_entry_pc for CU if not generating strict dwarf and
11360 dwarf_version < 4.
11361
722279e4
BS
113622011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11363
11364 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11365 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11366 out of ...
11367 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11368 * final.c (final_start_function): Call the new function rather
11369 than using a NULL argument for dwarf2out_frame_debug.
11370
c5dd277d
BS
11371 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11372 that contains the prologue.
11373
ec4efea9
BS
11374 * haifa-sched.c (queue_insn): New arg REASON. All callers
11375 changed. Print it in debugging output.
11376
2a6a0d80
BS
11377 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11378
86014d07
BS
11379 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11380 Split most of the code into...
11381 (begin_move_insn): ... here. New function.
11382 (ebb_sched_info): Add a pointer to it.
11383 * haifa-sched.c (scheduled_insns): New static variable.
11384 (sched_extend_ready_list): Allocate it.
11385 (schedule_block): Use it to record the order of scheduled insns.
11386 Perform RTL changes to move insns only after all scheduling
11387 decisions have been made.
11388 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11389 begin_move_insn field.
11390 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11391 * sched-int.h (struct haifa_sched_info): Remove second argument
11392 from begin_schedule_ready hook. Add new member begin_move_insn.
11393 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11394 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11395
9d701248
BS
11396 * haifa-sched.c (prune_ready_list): New function, broken out of
11397 schedule_block.
11398 (schedule_block): Use it.
11399
1ca1dad5
UW
114002011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11401
11402 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11403
49568e45
KT
114042011-04-01 Kai Tietz <ktietz@redhat.com>
11405
11406 * config.gcc (*-*-mingw*): Allow as option the
11407 posix threading model.
07c0852e 11408 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
11409 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11410 definition.
11411 (CPP_SPEC): Add pthread/no-pthread handling.
11412 (LIB_SPEC): Likewise.
11413 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11414 (LIB_SPEC): Likewise.
11415 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11416 flag to pass -pthread option for shared libgcc build.
11417 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11418 for shared libgcc build.
11419 * config/i386/t-mingw-pthread: New file.
11420 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11421 New define to enable use of library pthread by default.
11422 * config/i386/mingw.opt (pthread): New driver option.
11423 (no-pthread): New driver option.
e9c18386 11424 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
11425 * config/i386/mingw-w64.opt: Likewise.
11426
748f7574 114272011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
11428
11429 * c-decl.c (grokdeclarator): Fix formatting.
11430
f04713ee
RS
114312011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11432
11433 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11434 instead of n_operands.
11435 (set_storage_via_setmem): Likewise.
11436 * optabs.c (maybe_gen_insn): Likewise.
11437 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11438 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11439 (mips_expand_builtin_direct): Likewise.
11440 * config/spu/spu.c (expand_builtin_args): Likewise.
11441
b29387ee
RS
114422011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11443
11444 * recog.h (insn_data_d): Add n_generator_args.
11445 * genoutput.c (data): Likewise.
11446 (output_insn_data): Print it.
11447 (max_opno, num_dups): Delete.
11448 (scan_operands): Just fill in "d->operand[...]".
11449 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11450
e792559a
RS
114512011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11452
11453 * gensupport.h (pattern_stats): New structure.
11454 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11455 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11456 (max_operand_1, max_operand_vec): Delete.
11457 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11458
e8110d6f
NF
114592011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11460
11461 * emit-rtl.c (emit_pattern_after_setloc): New function.
11462 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11463 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11464 (emit_pattern_after): New function.
11465 (emit_insn_after, emit_jump_insn_after): Call it.
11466 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11467 (emit_pattern_before_setloc): New function.
11468 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11469 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11470 Likewise.
11471 (emit_pattern_before): New function.
11472 (emit_insn_before, emit_jump_insn_before): Call it.
11473 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11474
576f85f1
RH
114752011-03-31 Richard Henderson <rth@redhat.com>
11476
11477 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11478 (dw_separate_line_info_entry): Remove.
11479 (enum dw_line_info_opcode): New.
11480 (dw_line_info_entry): Use it.
11481 (dw_line_info_table, dw_line_info_table_p): New.
11482 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11483 (line_info_table, line_info_label_num): Remove.
11484 (line_info_table_in_use): Remove.
11485 (separate_line_info_table): Remove.
11486 (separate_line_info_table_allocated): Remove.
11487 (separate_line_info_table_in_use): Remove.
11488 (LINE_INFO_TABLE_INCREMENT): Remove.
11489 (line_info_label_num): New.
11490 (cur_line_info_table): New.
11491 (text_section_line_info, cold_text_section_line_info): New.
11492 (separate_line_info): New.
11493 (SEPARATE_LINE_CODE_LABEL): Remove.
11494 (print_dwarf_line_table): Remove.
11495 (debug_dwarf): Don't dump it.
11496 (output_one_line_info_table): New.
11497 (output_line_info): Use it.
11498 (new_line_info_table): New.
11499 (set_cur_line_info_table): New.
11500 (dwarf2out_switch_text_section): Use it.
11501 (dwarf2out_begin_function): Likewise.
11502 (push_dw_line_info_entry): New.
11503 (dwarf2out_source_line): Rewrite for new line info tables.
11504 (dwarf2out_init): Remove dead initailizations.
11505
300d83d9
JM
115062011-03-31 Joseph Myers <joseph@codesourcery.com>
11507
11508 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11509 various flags.
11510 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11511 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11512 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11513 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11514 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11515 * opt-functions.awk (flag_init, switch_bit_fields): New.
11516 (switch_flags): Don't handle flags moved to bit-fields. Don't
11517 generate CL_MISSING_OK or CL_SAVE.
11518 * optc-gen.awk: Update to generate bit-field output as well as
11519 flags field.
11520 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11521 bit-field instead of CL_REJECT_DRIVER flag.
11522 * opts-common.c (generate_canonical_option,
11523 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11524 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11525 instead of CL_REJECT_NEGATIVE flag.
11526 * toplev.c (print_switch_values): Use cl_report bit-field instead
11527 of CL_REPORT flag.
11528
d4d73ce2
EB
115292011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11530
11531 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11532 a zero minimum index only if it is redundant.
11533
b8faca75
VM
115342011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11535
11536 PR rtl-optimization/48381
11537 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11538 instead of ira_class_hard_reg_index for calculating conflicting
11539 hard registers.
11540
7d11cebe
SB
115412011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11542
11543 * cprop.c: Clean up hash table building.
11544 (reg_avail_info): Remove.
11545 (oprs_available_p): Remove.
11546 (record_last_reg_set_info): Remove.
11547 (record_last_set_info): Remove.
11548 (reg_available_p): New function.
11549 (gcse_constant_p): Do not treat unfolded conditions as constants.
11550 (make_set_regs_unavailable): New function.
11551 (hash_scan_set): Simplify with new reg_available_p.
11552 (compute_hash_table_work): Traverse insns stream only once.
11553 Do not compute reg_avail_info. Traverse insns in reverse order.
11554 Record implicit sets after recording explicit sets from the block.
11555
98faf84f
MM
115562011-03-31 Michael Matz <matz@suse.de>
11557
e9c18386 11558 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 11559
f52d97da
AS
115602011-03-31 Anatoly Sokolov <aesok@post.ru>
11561
11562 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11563 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11564 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11565 (h8300_mode_dependent_address_p): New function.
11566 (h8300_get_index): Make static.
11567
e16b6fd0
JL
115682011-03-31 Jeff Law <law@redhat.com>
11569
10c51983
JL
11570 * reload1.c (elimination_effects): Fix typo in recent change.
11571
e9c18386 11572 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
11573 typo potentially leading to null pointer dereference.
11574
11575 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11576 (setup_save_areas): Corresponding changes to avoid useless
11577 assignments.
11578
11579 * jump.c (reversed_comparison_code_parts): Avoid successive return
11580 statements when REVERSE_CONDITION is defined.
11581
11582 * expr.c (expand_assignment): Avoid useless assignments.
11583 (expand_expr_real_1): Likewise.
11584 (expand_expr_real_2): Avoid useless statements.
11585
11586 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11587
11588 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11589
11590 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11591 statements.
11592
11593 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11594
eb1eb914
JM
115952011-03-31 Joseph Myers <joseph@codesourcery.com>
11596
11597 PR target/47109
11598 * doc/tm.texi.in (TARGET_VERSION): Remove.
11599 * doc/tm.texi: Regenerate.
11600 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11601 * collect2.c (main): Don't use TARGET_VERSION.
11602 * mips-tdump.c (main): Don't use TARGET_VERSION.
11603 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 11604 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
11605 * config/rs6000/vxworksae.h: Remove.
11606 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11607 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11608 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11609 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11610 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11611 * config/arm/arm.h (TARGET_VERSION): Remove.
11612 * config/arm/coff.h (TARGET_VERSION): Remove.
11613 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11614 * config/arm/elf.h (TARGET_VERSION): Remove.
11615 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11616 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11617 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11618 * config/arm/pe.h (TARGET_VERSION): Remove.
11619 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11620 * config/arm/semi.h (TARGET_VERSION): Remove.
11621 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11622 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11623 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11624 * config/avr/avr.h (TARGET_VERSION): Remove.
11625 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11626 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11627 * config/frv/frv.h (TARGET_VERSION): Remove.
11628 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11629 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11630 * config/i386/darwin.h (TARGET_VERSION): Remove.
11631 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11632 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11633 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11634 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11635 * config/i386/gnu.h (TARGET_VERSION): Remove.
11636 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11637 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11638 * config/i386/linux.h (TARGET_VERSION): Remove.
11639 * config/i386/linux64.h (TARGET_VERSION): Remove.
11640 * config/i386/lynx.h (TARGET_VERSION): Remove.
11641 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11642 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11643 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11644 * config/i386/netware.h (TARGET_VERSION): Remove.
11645 * config/i386/nto.h (TARGET_VERSION): Remove.
11646 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11647 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11648 * config/ia64/elf.h (TARGET_VERSION): Remove.
11649 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11650 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11651 * config/ia64/linux.h (TARGET_VERSION): Remove.
11652 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11653 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11654 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11655 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11656 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11657 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11658 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11659 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11660 * config/m68k/linux.h (TARGET_VERSION): Remove.
11661 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11662 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11663 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11664 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11665 * config/mep/mep.h (TARGET_VERSION): Remove.
11666 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11667 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11668 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11669 * config/mips/linux.h (TARGET_VERSION): Remove.
11670 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11671 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11672 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11673 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11674 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11675 * config/pa/pa.h (TARGET_VERSION): Remove.
11676 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11677 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11678 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11679 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11680 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11681 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11682 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11683 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11684 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11685 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11686 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11687 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11688 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11689 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11690 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11691 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11692 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11693 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11694 * config/s390/linux.h (TARGET_VERSION): Remove.
11695 * config/s390/s390.h (TARGET_VERSION): Remove.
11696 * config/s390/tpf.h (TARGET_VERSION): Remove.
11697 * config/score/score.h (TARGET_VERSION): Remove.
11698 * config/sh/linux.h (TARGET_VERSION): Remove.
11699 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11700 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11701 * config/sh/sh.h (TARGET_VERSION): Remove.
11702 * config/sh/sh64.h (TARGET_VERSION): Remove.
11703 * config/sh/superh.h (TARGET_VERSION): Remove.
11704 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11705 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11706 * config/sparc/linux.h (TARGET_VERSION): Remove.
11707 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11708 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11709 TARGET_NAME32, TARGET_NAME): Remove.
11710 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11711 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11712 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11713 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11714 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11715 * config/spu/spu.h (TARGET_VERSION): Remove.
11716 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11717 * config/v850/v850.h (TARGET_VERSION): Remove.
11718 * config/vax/linux.h (TARGET_VERSION): Remove.
11719 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11720 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11721 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11722
ace31bca
EB
117232011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11724
11725 PR target/48142
11726 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11727 frame-related from frame-unrelated adjustments to the stack pointer.
11728
76f9db36
JJ
117292011-03-31 Jakub Jelinek <jakub@redhat.com>
11730
11731 * common.opt (fdebug-types-section): Move earlier.
11732 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11733
b7826465
AT
117342011-03-31 Andreas Tobler <andreast@fgznet.ch>
11735
11736 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11737 var.
11738
1290e54c
NF
117392011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11740
11741 * tree.h (CASE_CHAIN): Define.
11742 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11743 (gimple_redirect_edge_and_branch): Likewise.
11744
bddc98e1
VM
117452011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11746
11747 PR middle-end/48367
11748 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11749 calculation.
11750
c865e437
JL
117512011-03-30 Jeff Law <law@redhat.com>
11752
b3750213 11753 * PR bootstrap/48371
c865e437
JL
11754 * reload1.c (reload): Fix botch in last change.
11755
11756 * reload.h (struct reload): Fix typo introduced in last change.
11757
2cdf9574
JM
117582011-03-30 Joseph Myers <joseph@codesourcery.com>
11759
11760 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11761 Undocumented. Remove help text.
11762 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11763 -mhard-float.
11764
666a21a2
JM
117652011-03-30 Joseph Myers <joseph@codesourcery.com>
11766
11767 * doc/options.texi (NegativeAlias): Document.
11768 (Alias): Mention NegativeAlias.
11769 * opt-functions.awk: Handle NegativeAlias.
e9c18386 11770 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
11771 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11772 * opts.h (CL_NEGATIVE_ALIAS): Define.
11773 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11774 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11775 OPT_mspe_.
11776 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11777 Alias entries.
11778 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11779 mno-spe and mno-isel instead of mspe=no and -misel=no.
11780
0fa4e351
MW
117812011-03-29 Mark Wielaard <mjw@redhat.com>
11782
11783 * common.opt (fdebug-types-section): New flag.
11784 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11785 * dwarf2out.c (use_debug_types): New define.
11786 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11787 (print_die): Guard output of type unit signatures using
11788 use_debug_types.
11789 (build_abbrev_table): Replace assert of dwarf_version >= 4
11790 with assert on use_debug_types.
11791 (size_of_die): Likewise.
11792 (unmark_dies): Likewise.
11793 (value_format): Decide AT_ref_external form on use_debug_types.
11794 (output_die): Replace dwarf_version version check guard with
11795 use_debug_types where appropriate.
11796 (modified_type_die): Likewise.
11797 (gen_reference_type_die): Likewise.
11798 (dwarf2out_start_source_file): Likewise.
11799 (dwarf2out_end_source_file): Likewise.
11800 (prune_unused_types_walk_attribs): Likewise.
11801 (dwarf2out_finish): Likewise.
11802
4648deb4
VM
118032011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11804
11805 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11806
4f431835
RS
118072011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11808
11809 PR rtl-optimization/48332
11810 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11811 mode of input operand N and modeN to its actual mode.
11812
f2034d06
JL
118132011-03-30 Jeff Law <law@redhat.com>
11814
11815 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11816 define accessor macro.
11817 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11818 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11819 (reg_equiv_init): Likewise.
11820 (reg_equivs_size): New variable.
11821 (reg_equiv_init_size): Remove.
11822 (allocate_initial_values): Move prototype to here from....
11823 * integrate.h (allocate_initial_values): Remove prototype.
11824 * integrate.c: Include reload.h.
11825 (allocate_initial_values): Corresponding changes.
11826 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11827 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11828 (update_equiv_regs): Corresponding changes.
11829 (ira): Corresponding changes.
11830 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11831 (push_secondary_reload): Corresponding changes.
11832 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11833 (make_memloc, find_reloads_address): Corresponding changes.
11834 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11835 (find_reloads_address_1): Corresponding changes.
11836 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11837 (refers_to_regno_for_reload_p): Corresponding changes.
11838 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11839 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11840 * reload1.c: Include ggc.h.
11841 (grow_reg_equivs): New function.
11842 (replace_pseudos_in, reload): Corresponding changes.
11843 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11844 (eliminate_regs_1, elimination_effects): Corresponding changes.
11845 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11846 (delete_output_reload): Likewise.
11847 * caller-save.c (mark_referenced_regs): Corresponding changes.
11848 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11849 * frv/predicates.md (frv_load_operand): Corresponding changes.
11850 * microblaze/microblaze.c (double_memory_operand): Corresponding
11851 changes.
11852 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11853 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 11854 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
11855 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11856 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11857 changes.
11858 * pa/pa.c (emit_move_sequence): Corresponding changes.
11859 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11860
159b81b0
RS
118612011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11862
11863 PR target/47551
11864 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11865 structure modes. Don't check neon_vector_mem_operand for
11866 vector or structure modes.
11867
a6217191
RS
118682011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11869 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11870
11871 PR target/43590
11872 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11873 operand 1 and reshuffle the operands to match.
11874 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11875
bd837408
CS
118762011-03-30 Christian Schüler <cschueler@gmx.de>
11877
6955d771 11878 PR driver/48208
bd837408 11879 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 11880
6955d771 11881 PR driver/48260
bd837408
CS
11882 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11883 handler function.
11884 * config/darwin.opt: Added '-arch' option.
11885
e9c0470a
NC
118862011-03-30 Nick Clifton <nickc@redhat.com>
11887
11888 * config/rx/rx.md: Add peepholes and patterns to combine
11889 extending loads and simple arithmetic instructions.
11890 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
11891 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11892 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 11893 modes to use pre-decrement and post-increment addressing.
e9c18386 11894 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 11895 addresses.
e9c18386
UB
11896 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11897 (rx_memory_move_cost): Adjust cost of stores.
11898 (rx_adjust_insn_length): New function.
e9c0470a 11899
8a87e7ab
JJ
119002011-03-30 Jakub Jelinek <jakub@redhat.com>
11901
11902 PR c/48305
11903 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11904 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11905 matching arg00/arg01 types.
11906
12486e03
EB
119072011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11908
11909 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11910 last_location to UNKNOWN_LOCATION.
11911
0b99eef6
L
119122011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11913
11914 PR target/48349
11915 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11916 FLOAT_SSE_REGS.
11917
023592aa
JM
119182011-03-30 Joseph Myers <joseph@codesourcery.com>
11919 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11920
11921 PR bootstrap/48337
11922 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11923 Init(PROCESSOR_V7).
11924 (sparc_cpu): Likewise.
11925 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11926 PROCESSOR_V7.
11927
ad3b266b
VM
119282011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11929
11930 PR target/48336
11931 PR middle-end/48342
11932 PR rtl-optimization/48345
11933 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11934 hard regs for given mode from profitable regs when doing secondary
11935 allocation.
11936
633c9126
JL
119372011-03-29 Jeff Law <law@redhat.com>
11938
11939 PR bootstrap/48327
11940 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11941 do_not_duplicate field.
11942 (lookup_redirection_data): Corresponding changes.
11943 (create_duplicates): Always create a template block.
11944 (redirect_edges): Remove code which reused the original block
11945 when it was going to become unreachable code.
11946 (thread_block): Don't set do_not_duplicate field.
11947
eb50f63a
JM
119482011-03-29 Joseph Myers <joseph@codesourcery.com>
11949
11950 * lto-opts.c (register_user_option_p, lto_register_user_option):
11951 Make type argument unsigned.
11952 * lto-streamer.h (lto_register_user_option): Make type argument
11953 unsigned.
11954 * opth-gen.awk: Make CL_* macros unsigned.
11955 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11956 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11957 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11958 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11959 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11960 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11961 (find_opt): Make lang_mask argument unsigned.
11962
76763a6d
VM
119632011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11964
11965 PR rtl-optimization/48331
11966 PR rtl-optimization/48334
11967 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11968 for any used algorithm.
11969
5c82436e
VM
119702011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11971
11972 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11973 to parent_max.
11974
7a81008b
UB
119752011-03-29 Uros Bizjak <ubizjak@gmail.com>
11976
11977 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11978 (alpha_option_override): Don't set alpha_sr_alias_set.
11979 (emit_frame_store_1): Use gen_frame_mem rather than calling
11980 set_mem_alias_set.
11981 (alpha_expand_epilogue): Ditto.
11982
86c8d1f6
IR
119832011-03-29 Ira Rosen <ira.rosen@linaro.org>
11984
11985 PR tree-optimization/48290
11986 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11987 vectorization, check that relevant phis in the basic block after
11988 the inner loop are really inner loop's exit phis.
11989
0d12220f
RS
119902011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11991
e8cf17e7 11992 PR debug/48190
0d12220f
RS
11993 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11994 (cached_dw_loc_list_def): New structure.
11995 (cached_dw_loc_list): New typedef.
11996 (cached_dw_loc_list_table): New variable.
11997 (cached_dw_loc_list_table_hash): New function.
11998 (cached_dw_loc_list_table_eq): Likewise.
11999 (add_location_or_const_value_attribute): Take a bool cache_p.
12000 Cache the list when the parameter is true.
12001 (gen_formal_parameter_die): Update caller.
12002 (gen_variable_die): Likewise.
12003 (dwarf2out_finish): Likewise.
12004 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12005 while generating debug info for the decl.
12006 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12007 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12008 (resolve_addr): Cache the result of resolving a chain of
12009 location lists.
12010
1756cb66
VM
120112011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12012
12013 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12014 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 12015
1756cb66
VM
12016 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12017 after regstat_init_n_sets_and_refs.
12018
12019 * ira.c: Add more comments at the top.
12020 (setup_stack_reg_pressure_class, setup_pressure_classes):
12021 Add comments how we compute the register pressure classes.
12022 (setup_allocno_and_important_classes): Add more comments.
12023 (setup_class_translate_array, reorder_important_classes)
12024 (setup_reg_class_relations): Add comments.
12025
12026 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12027 start of the file.
12028
12029 * ira-color.c: Add 2011 to the Copyright line.
12030 (assign_hard_reg): Add more comments.
12031 (improve_allocation): Ditto.
12032
12033 * ira-costs.c: Add 2011 to the Copyright line.
12034 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12035 comments.
12036 (setup_regno_cost_classes_by_mode): Ditto.
12037
12038 Initial patches from ira-improv branch:
12039
12040 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12041
f60c2554 12042 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
12043 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12044 (ira_create_allocno): Remove initialization of
12045 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12046 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12047 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12048 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12049 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12050 Initialize ALLOCNO_ADD_DATA.
12051 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12052 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12053 ALLOCNO_REG.
12054 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12055 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12056
12057 * ira.c (ira_reallocate): Remove.
12058 (setup_pressure_classes): Call
12059 ira_init_register_move_cost_if_necessary. Use
12060 ira_register_move_cost instead of ira_get_register_move_cost.
12061 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12062 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12063
12064 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12065 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12066 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12067 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12068 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12069 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12070 Fix formatting.
7a81008b 12071 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
12072 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12073 (struct allocno_color_data): New.
12074 (allocno_color_data_t): New typedef.
12075 (allocno_color_data): New definition.
12076 (ALLOCNO_COLOR_DATA): New macro.
12077 (struct object_color_data): New.
12078 (object_color_data_t): New typedef.
12079 (object_color_data): New definition.
12080 (OBJECT_COLOR_DATA): New macro.
12081 (update_copy_costs, calculate_allocno_spill_cost): Call
12082 ira_init_register_move_cost_if_necessary. Use
12083 ira_register_move_cost instead of ira_get_register_move_cost.
12084 (move_spill_restore, update_curr_costs): Ditto.
12085 (allocno_spill_priority): Make it inline.
7a81008b 12086 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
12087 (struct coalesce_data, coalesce_data_t): New.
12088 (allocno_coalesce_data): New definition.
12089 (ALLOCNO_COALESCE_DATA): New macro.
12090 (merge_allocnos, coalesced_allocno_conflict_p): Use
12091 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12092 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12093 (coalesce_allocnos): Ditto.
12094 (setup_coalesced_allocno_costs_and_nums): Ditto.
12095 (collect_spilled_coalesced_allocnos): Ditto.
12096 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12097 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12098 (coalesce_spill_slots): Ditto.
12099 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12100 free allocno_coalesce_data.
12101
12102 * ira-conflicts.c: Fix formatting.
12103 (process_regs_for_copy): Call
12104 ira_init_register_move_cost_if_necessary. Use
12105 ira_register_move_cost instead of ira_get_register_move_cost.
12106 (build_object_conflicts): Optimize.
12107
12108 * ira-costs.c (record_reg_classes): Optimize. Call
12109 ira_init_register_move_cost_if_necessary. Use
12110 ira_register_move_cost, ira_may_move_in_cost, and
12111 ira_may_move_out_cost instead of ira_get_register_move_cost and
12112 ira_get_may_move_cost.
12113 (record_address_regs): Ditto.
12114 (scan_one_insn): Optimize.
12115 (find_costs_and_classes): Optimize.
12116 (process_bb_node_for_hard_reg_moves): Call
12117 ira_init_register_move_cost_if_necessary. Use
12118 ira_register_move_cost instead of ira_get_register_move_cost.
12119
12120 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12121 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12122 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12123 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12124 definitions.
12125 (ira_initiate_emit_data, ira_finish_emit_data)
12126 (create_new_allocno): New functions.
7a81008b 12127 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
12128 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12129 Use ira_register_move_cost instead of ira_get_register_move_cost.
12130
12131 * ira-int.h: Fix some comments.
7a81008b
UB
12132 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12133 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
12134 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12135 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12136 add_data.
12137 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12138 bitfield after mode. Make hard_regno a short int. Make
12139 hard_regno short. Remove first_coalesced_allocno and
12140 next_coalesced_allocno. Move mem_optimized_dest_p,
12141 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12142 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12143 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12144 temp, colorable_p. Add new member add_data.
12145 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12146 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12147 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12148 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12149 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12150 (ALLOCNO_ADD_DATA): New macro.
12151 (ira_emit_data_t): New typedef.
12152 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12153 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12154 from struct ira_allocno.
12155 (ALLOCNO_EMIT_DATA): New macro.
12156 (ira_allocno_emit_data, allocno_emit_reg): New.
12157 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 12158 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
12159 (OBJECT_ADD_DATA): New macro.
12160 (ira_reallocate): Remove.
12161 (ira_initiate_emit_data, ira_finish_emit_data): New.
12162 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12163 (ira_init_register_move_cost_if_necessary): New.
12164 (ira_object_conflict_iter_next): Merge into
12165 ira_object_conflict_iter_cond.
7a81008b 12166 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 12167
f60c2554 12168 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
12169 ira_init_register_move_cost_if_necessary. Use
12170 ira_register_move_cost instead of ira_get_register_move_cost.
12171
12172 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12173
12174 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12175
12176 * ira-costs.c: Fix formatting.
12177 (cost_classes, cost_classes_num): Remove.
12178 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12179 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12180 (cost_classes_del, cost_classes_htab): New.
12181 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12182 (initiate_regno_cost_classes, setup_cost_classes): New.
12183 (setup_regno_cost_classes_by_aclass): New.
7a81008b 12184 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
12185 (record_reg_classes): Use regno_cost_classes instead of
12186 cost_classes. Move checking opposite operand up.
12187 (record_address_regs): Use regno_cost_classes
12188 instead of cost_classes.
12189 (scan_one_insn): Ditto. Use always general register.
12190 (print_allocno_costs): Use regno_cost_classes instead of
12191 cost_classes.
12192 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12193 (find_costs_and_classes): Set up cost classes for each registers.
12194 Use also their mode for this. Use regno_cost_classes instead of
12195 cost_classes.
12196 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12197 cost_classes.
12198 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12199 (ira_costs, ira_set_pseudo_classes): Call
12200 initiate_regno_cost_classes and finish_regno_cost_classes.
12201
12202 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12203
12204 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12205
12206 * target.def (ira_cover_classes): Remove.
12207
7a81008b 12208 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
12209
12210 * doc/tm.texi.in: Ditto.
12211
12212 * ira-conflicts.c: Remove mentioning cover classes from the file.
12213 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 12214 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
12215
12216 * targhooks.c (default_ira_cover_classes): Remove.
12217
12218 * targhooks.h (default_ira_cover_classes): Ditto.
12219
12220 * haifa-sched.c: Remove mentioning cover classes from the file.
12221 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12222 ira_pressure_classes and ira_pressure_classes_num instead of
12223 ira_reg_class_cover_size and ira_reg_class_cover. Use
12224 sched_regno_pressure_class instead of sched_regno_cover_class.
12225 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12226 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12227
12228 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12229 classes from the file.
12230 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12231 (struct object_hard_regs, struct object_hard_regs_node): New.
12232 (struct ira_object): New members profitable_hard_regs,
12233 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12234 (struct ira_allocno): Rename cover_class to aclass. Rename
12235 cover_class_cost and updated_cover_class_cost to class_cost and
12236 updated_class_cost. Remove splay_removed_p and
12237 left_conflict_size. Add new members colorable_p.
12238 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12239 (ALLOCNO_COLORABLE_P): New macro.
12240 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12241 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12242 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12243 (OBJECT_...): Rename parameter C to O.
12244 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12245 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12246 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12247 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12248 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12249 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12250 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12251 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12252 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12253 x_ira_reg_class_subunion.
12254 (ira_max_memory_move_cost, ira_max_register_move_cost)
12255 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12256 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12257 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 12258 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
12259 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12260 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12261 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12262 (ira_tune_allocno_costs_and_cover_classes): Rename to
12263 ira_tune_allocno_costs.
12264 (ira_debug_hard_regs_forest): New.
12265 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12266 (ira_object_conflict_iter_next): Fix comments.
7a81008b 12267 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
12268 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12269 cover_class to aclass.
12270 (ira_allocate_and_accumulate_costs): Ditto.
12271 (ira_allocate_and_set_or_copy_costs): Ditto.
12272
12273 * opts.c (decode_options): Remove ira_cover_class check.
12274
12275 * ira-color.c: Remove mentioning cover classes from the file. Use
12276 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12277 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12278 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12279 (splay-tree.h): Remove include.
12280 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12281 before copy_freq_compare_func.
12282 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12283 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12284 New definitions.
12285 (hard_regs_roots, hard_regs_node_vec): Ditto.
12286 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12287 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12288 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12289 (create_new_object_hard_regs_node): Ditto.
12290 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 12291 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
12292 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12293 Ditto.
12294 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12295 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12296 (remove_unused_object_hard_regs_nodes): Ditto.
12297 (enumerate_object_hard_regs_nodes): Ditto.
12298 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12299 (object_hard_regs_subnode_t): Ditto.
12300 (struct object_hard_regs_subnode): Ditto.
12301 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12302 (setup_object_hard_regs_subnode_index): Ditto.
12303 (get_object_hard_regs_subnodes_num): Ditto.
12304 (form_object_hard_regs_nodes_forest): Ditto.
12305 (finish_object_hard_regs_nodes_tree): Ditto.
12306 (finish_object_hard_regs_nodes_forest): Ditto.
12307 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 12308 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
12309 (pseudos_have_intersected_live_ranges_p): Rename to
12310 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12311 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12312 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12313 (update_copy_costs): Remove assert. Skip cost update if the hard
12314 reg does not belong the class.
12315 (assign_hard_reg): Process only profitable hard regs.
12316 (uncolorable_allocnos_num): Make it scalar.
12317 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12318 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12319 and ira_reg_class_max_nregs.
12320 (bucket_allocno_compare_func): Check frequency first.
12321 (sort_bucket): Add compare function as a parameter.
12322 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12323 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12324 (push_allocno_to_stack): Rewrite for checking new allocno
12325 colorability.
7a81008b 12326 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
12327 (push_only_colorable): Pass new parameter to sort_bucket.
12328 (push_allocno_to_spill): Remove.
12329 (allocno_spill_priority_compare): Make it inline and rewrite.
12330 (splay_tree_allocate, splay_tree_free): Remove.
12331 (allocno_spill_sort_compare): New function.
12332 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12333 build and use splay tree. Choose first allocno in uncolorable
12334 allocno bucket to spill. Remove setting spill cost.
12335 (all_conflicting_hard_regs): Remove.
12336 (setup_allocno_available_regs_num): Check only profitable hard
12337 regs. Print info about hard regs nodes.
12338 (setup_allocno_left_conflicts_size): Remove.
12339 (put_allocno_into_bucket): Don't call
7a81008b 12340 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
12341 (improve_allocation): New.
12342 (color_allocnos): Call setup_profitable_hard_regs,
12343 form_object_hard_regs_nodes_forest, improve_allocation,
12344 finish_object_hard_regs_nodes_forest. Setup spill cost.
12345 (print_loop_title): Use pressure classes.
12346 (color_allocnso): Ditto.
12347 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12348 and allocnos_for_spilling.
12349 (ira_sort_regnos_for_alter_reg): Don't setup members
12350 {first,next}_coalesced_allocno.
12351 (color): Remove allocating and freeing removed_splay_allocno_vec.
12352 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12353 prohibited_class_mode_regs.
12354
12355 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12356 formatting.
12357 (update_allocno_pressure_excess_length): Use pressure classes.
12358 (inc_register_pressure, dec_register_pressure): Check for pressure
12359 class.
12360 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12361 pressure class. Use ira_reg_class_nregs instead of
12362 ira_reg_class_max_nregs.
12363 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12364 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12365 (single_reg_class): Use ira_reg_class_nregs instead of
12366 ira_reg_class_max_nregs.
12367 (process_bb_node_lives): Use pressure classes.
12368
12369 * ira-emit.c: Remove mentioning cover classes from the file. Use
12370 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12371 (change_loop): Use pressure classes.
12372 (modify_move_list): Call ira_set_allocno_class instead of
12373 ira_set_allocno_cover_class.
12374
12375 * ira-build.c: Remove mentioning cover classes from the file. Use
12376 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12377 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12378 ALLOCNO_UPDATED_CLASS_COST instead of
12379 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12380 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12381 (ira_create_allocno): Remove initialization of
12382 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12383 ALLOCNO_COLORABLE_P.
12384 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12385 Update conflict regs for the objects.
12386 (create_cap_allocno): Remove assert. Don't propagate
12387 ALLOCNO_AVAILABLE_REGS_NUM.
12388 (ira_free_allocno_costs): New function.
12389 (finish_allocno): Change a part of code into call of
12390 ira_free_allocno_costs.
12391 (low_pressure_loop_node_p): Use pressure classes.
12392 (object_range_compare_func): Don't compare classes.
12393 (setup_min_max_conflict_allocno_ids): Ditto.
12394
12395 * loop-invariant.c: Remove mentioning cover classes from the file.
12396 Use ira_pressure_classes and ira_pressure_classes_num instead of
12397 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
12398 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12399 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12400 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
12401 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12402 STACK_REG_COVER_CLASS.
12403 (get_regno_cover_class): Rename to get_regno_pressure_class.
12404 (move_loop_invariants): Initialize and finalize regstat.
12405
12406 * ira.c: Remove mentioning cover classes from the file. Add
12407 comments about coloring without cover classes. Use ALLOCNO_CLASS
12408 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12409 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12410 setup_class_subset_and_memory_move_costs.
12411 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12412 (setup_cover_and_important_classes): Rename to
12413 setup_allocno_and_important_classes.
12414 (setup_class_translate_array): New.
12415 (setup_class_translate): Call it for allocno and pressure classes.
12416 (cover_class_order): Rename to allocno_class_order.
12417 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12418 of ira_class_translate.
12419 (reorder_important_classes): Set up ira_important_class_nums.
12420 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12421 (print_class_cover): Rename to print_classes. Add parameter.
12422 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12423 Print pressure classes too.
12424 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12425 setup_reg_subclasses.
7a81008b 12426 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12427 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12428 (setup_prohibited_class_mode_regs): Use
7a81008b 12429 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
12430 (clarify_prohibited_class_mode_regs): New function.
12431 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12432 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12433 (ira_init_once): Initialize them.
12434 (free_register_move_costs): Process them.
12435 (ira_init): Move calls of find_reg_classes and
12436 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12437 Call clarify_prohibited_class_mode_regs.
12438 (ira_no_alloc_reg): Remove.
12439 (too_high_register_pressure_p): Use pressure classes.
12440
12441 * sched-deps.c: Remove mentioning cover classes from the file.
12442 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12443 ira_pressure_classes and ira_pressure_classes_num instead of
12444 ira_reg_class_cover_size and ira_reg_class_cover.
12445 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12446 sched_regno_pressure_class instead of sched_regno_cover_class.
12447 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12448 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12449
12450 * ira.h: Add 2010 to Copyright.
12451 (ira_no_alloc_reg): Remove external.
12452 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12453 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12454 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12455 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12456 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12457 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12458 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12459 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12460 x_ira_no_alloc_regs.
7a81008b 12461 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12462 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12463 ira_allocno_classes_num and ira_allocno_classes.
12464 (ira_class_translate): Rename to ira_allocno_class_translate.
12465 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12466 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12467 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12468 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12469 (ira_no_alloc_regs): New.
12470
12471 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12472 classes from the file. Use ALLOCNO_CLASS instead of
12473 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12474 ALLOCNO_COVER_CLASS_COST.
12475 (regno_cover_class): Rename to regno_aclass.
12476 (record_reg_classes): Use ira_reg_class_subunion instead of
12477 ira_reg_class_union.
12478 (record_address_regs): Check overflow.
12479 (scan_one_insn): Ditto.
7a81008b 12480 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
12481 (print_pseudo_costs): Use REG_N_REFS.
12482 (find_costs_and_classes): Use classes intersected with them on the
12483 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12484 ira_reg_class_union. Use ira_allocno_class_translate and
12485 regno_aclass instead of ira_class_translate and regno_cover_class.
12486 Modify code for finding regno_aclass. Setup preferred classes for
12487 the next pass.
12488 (setup_allocno_cover_class_and_costs): Rename to
12489 setup_allocno_class_and_costs. Use regno_aclass instead of
12490 regno_cover_class. Use ira_set_allocno_class instead of
12491 ira_set_allocno_cover_class.
12492 (init_costs, finish_costs): Use regno_aclass instead of
12493 regno_cover_class.
12494 (ira_costs): Use setup_allocno_class_and_costs instead of
12495 setup_allocno_cover_class_and_costs.
12496 (ira_tune_allocno_costs_and_cover_classes): Rename to
12497 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12498 by processing objects. Use ira_reg_class_max_nregs instead of
12499 ira_reg_class_nregs.
12500
12501 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12502
12503 * sched-int.h: Remove mentioning cover classes from the file.
12504 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12505
12506 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12507 classes from the file.
12508 (struct reg_pref): Rename coverclass into allocnoclass.
12509 (reg_cover_class): Rename to reg_allocno_class.
12510
7a81008b 12511 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
12512
12513 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12514
12515 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12516
12517 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12518
12519 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12520
12521 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12522
12523 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12524
12525 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12526
12527 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12528
12529 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12530
12531 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12532 (i386_ira_cover_classes): Ditto.
12533
12534 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12535
12536 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12537
12538 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12539
12540 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12541
12542 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12543
12544 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12545
12546 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12547 (mips_ira_cover_classes): Ditto.
12548
12549 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12550
12551 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12552
12553 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12554
12555 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12556
12557 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12558
12559 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12560 (IRA_COVER_CLASSES_VSX): Ditto.
12561
12562 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12563 (rs6000_ira_cover_classes): Ditto.
12564
12565 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12566
12567 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12568
12569 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12570
12571 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12572
12573 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12574
12575 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12576
12577 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12578
12579 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12580
12581 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12582
12583 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12584
2b80199f
JJ
125852011-03-29 Jakub Jelinek <jakub@redhat.com>
12586
71dae1fe
JJ
12587 PR debug/48253
12588 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12589 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12590 dw_fde_unlikely_section_end_label, cold_in_std_section,
12591 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12592 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12593 fields.
12594 (output_fde): Use dw_fde_second_{begin,end} if second is
12595 true, otherwise dw_fde_{begin,end}.
12596 (output_call_frame_info): Test dw_fde_second_begin != NULL
12597 instead of dw_fde_switched_sections.
12598 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12599 fields, initialize new fields. Initialize in_std_section
12600 unconditionally from the first partition.
12601 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12602 dw_fde_second_begin is non-NULL.
12603 (dwarf2out_switch_text_section): Stop initializing removed
12604 dw_fde_struct fields, initialize new fields, initialize
12605 also dw_fde_end here. Set dw_fde_switch_cfi even when
12606 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12607 (struct var_loc_list_def): Add last_before_switch field.
12608 (arange_table, arange_table_allocated, arange_table_in_use,
12609 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12610 (size_of_aranges): Count !in_std_section and !second_in_std_section
12611 hunks in fdes, instead of looking at arange_table_in_use.
12612 (output_aranges): Add aranges_length argument, don't call
12613 size_of_aranges here. Instead of using aranges_table*
12614 emit ranges for fdes when !in_std_section resp.
12615 !second_in_std_section.
12616 (dw_loc_list): Break ranges crossing section switch.
12617 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 12618 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
12619 (gen_subprogram_die): Don't call add_arange. Use
12620 dw_fde_{begin,end} for first partition and if switched
12621 section dw_fde_second_{begin,end} for the second.
12622 (var_location_switch_text_section_1,
12623 var_location_switch_text_section): New functions.
12624 (dwarf2out_begin_function): Initialize cold_text_section even
12625 when function_section () isn't text_section.
12626 (prune_unused_types): Don't walk arange_table.
12627 (dwarf2out_finish): Don't needlessly test
12628 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12629 If info_section_emitted, call size_of_aranges and if it indicates
12630 non-empty .debug_aranges, call output_aranges with the computed
12631 size. Stop using removed dw_fde_struct fields, use
12632 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12633 for second.
12634
2b80199f
JJ
12635 PR debug/48203
12636 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12637 create ENTRY_VALUE if incoming or address of incoming's MEM
12638 is a hard REG.
12639 * dwarf2out.c (mem_loc_descriptor): Don't emit
12640 DW_OP_GNU_entry_value of DW_OP_fbreg.
12641 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12642 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12643 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12644 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12645 ENTRY_VALUE_EXPs.
12646 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12647 is a REG_P or MEM_P with REG_P address, compute hash directly
12648 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12649 (preserve_only_constants): Don't clear VALUES forwaring
12650 ENTRY_VALUE to some other VALUE.
12651
8a445129
RS
126522011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12653
12654 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12655 instead of GEN_INT.
12656
c82fee88
EB
126572011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12658
12659 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12660 block before expanding the statement.
12661 (expand_gimple_stmt_1): Likewise. Set them here...
12662 (expand_gimple_stmt): ...and not here. Tidy.
12663 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12664 unknown.
12665
e45425ec
SB
126662011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12667
12668 * Makefile.in: New rule for cprop.o.
12669 * gcse.c: Move constant/copy propagation to cprop.c.
12670 (compute_local_properties): Only handle expression tables.
12671 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12672 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12673 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12674 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 12675 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
12676 compute_cprop_data, find_used_regs, try_replace_reg,
12677 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12678 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12679 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12680 find_bypass_set, reg_killed_on_edge, bypass_block,
12681 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12682 execute_rtl_cprop, pass_rtl_cprop): Move to...
12683 * cprop.c: ...here. New file, constant/copy propagation for RTL
12684 moved from gcse.c to here with minor cleanups in duplicated code.
12685
c09d5426
L
126862011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12687
12688 * config/i386/i386.c (flag_opts): Fix a typo in
12689 -mavx256-split-unaligned-store.
12690
9eaa7740
AS
126912011-03-28 Anatoly Sokolov <aesok@post.ru>
12692
12693 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12694 LIBCALL_VALUE): Remove macros.
12695 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12696 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12697 (h8300_function_value, h8300_libcall_value,
12698 h8300_function_value_regno_p): New functions.
12699
dcec2be2
AS
127002011-03-28 Anatoly Sokolov <aesok@post.ru>
12701
12702 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12703
520af9ec
JL
127042011-03-28 Jeff Law <law@redhat.com>
12705
12706 * tree-ssa-threadupdate.c (redirect_edges): Call
12707 create_edge_and_update_destination_phis as needed.
12708 (create_edge_and_update_destination_phis): Accept new BB argument.
12709 All callers updated.
12710 (thread_block): Do not update the profile when threading around
12711 intermediate blocks.
12712 (thread_single_edge): Likewise.
12713 (determine_bb_domination_status): If BB is not a successor of the
12714 loop header, return NONDOMINATING.
12715 (register_jump_thread): Note when we register a jump thread around
12716 an intermediate block.
12717 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12718 (thread_across_edge): Use it.
12719
7450b54f
TG
127202011-03-28 Tristan Gingold <gingold@adacore.com>
12721
12722 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12723 when for_return is 2.
12724
649beb33
JL
127252011-03-28 Jeff Law <law@redhat.com>
12726
12727 * var-tracking.c (canonicalize_values_mark): Delete unused
12728 lhs assignment.
12729 (canonicalize_values_star, set_variable_part): Likewise.
12730 (clobber_variable_part, delete_variable_part): Likewise.
12731
d5b8da97
SB
127322011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12733
12734 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12735
322dd859
MJ
127362011-03-28 Martin Jambor <mjambor@suse.cz>
12737
12738 * tree-inline.c (expand_call_inline): Do not check that destination
12739 node is analyzed.
12740 (optimize_inline_calls): Assert that destination node is analyzed.
12741 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12742 not call tree_lowering_passes.
12743 * cgraph.h (cgraph_analyze_function): Declare.
12744 * cgraphunit.c (cgraph_analyze_function): Make public.
12745
aa53e58b
JM
127462011-03-28 Joseph Myers <joseph@codesourcery.com>
12747
12748 * config/sparc/sparc-opts.h: New.
12749 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12750 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12751 (sparc_option_override): Store processor_type enumeration rather
12752 than string in cpu_default. Remove name and enumeration from
12753 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12754 without using sparc_select. Use target_flags_explicit instead of
12755 fpu_option_set.
12756 * config/sparc/sparc.h (enum processor_type): Move to
12757 sparc-opts.h.
12758 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12759 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12760 HeaderInclude entry.
12761 (mcpu=, mtune=): Use Var and Enum.
12762 (sparc_processor_type): New Enum and EnumValue entries.
12763
dd350eba
RO
127642011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12765 Iain Sandoe <iains@gcc.gnu.org>
12766
12767 PR target/48245
12768 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12769
1b29f05e
EB
127702011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12771
12772 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12773 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12774 Insert new statements at it in lieu of STMT.
12775 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12776 * tree-vect-stmts.c (vectorizable_store): Likewise.
12777 (vectorizable_load): Likewise.
12778
506e6808
UB
127792011-03-28 Uros Bizjak <ubizjak@gmail.com>
12780
12781 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12782 (divtf3): Ditto.
12783 (multf3): Ditto.
12784 (subtf3): Ditto.
12785
2e939ee9
L
127862011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12787
12788 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12789 unaligned 256bit load/store.
12790 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12791 (*avx_movdqu<avxmodesuffix>): Likewise.
12792
5e85ab88
JDA
127932011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12794
12795 PR target/48288
12796 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12797 * config/pa/pa.md (iordi3): Use new predicate in expander.
12798 (iorsi3): Likewise.
12799
47be3d6d
AS
128002011-03-27 Anatoly Sokolov <aesok@post.ru>
12801
506e6808 12802 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 12803 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
12804 * config/mips/mips-protos.h (mips_function_value): Remove.
12805 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
12806 (mips_function_value_1): ... this. Make static. Handle receiving
12807 the function type in 'fn_decl_or_type' argument.
12808 (mips_function_value, mips_libcall_value,
12809 mips_function_value_regno_p): New function.
12810 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12811 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12812
d253656a
L
128132011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12814
12815 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12816 and -mavx256-split-unaligned-store.
12817 (ix86_option_override_internal): Split 32-byte AVX unaligned
12818 load/store by default.
12819 (ix86_avx256_split_vector_move_misalign): New.
12820 (ix86_expand_vector_move_misalign): Use it.
12821
12822 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12823 -mavx256-split-unaligned-store.
12824
12825 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12826 256bit load/store. Generate unaligned store on misaligned memory
12827 operand.
12828 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12829 256bit load/store.
12830 (*avx_movdqu<avxmodesuffix>): Likewise.
12831
12832 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12833 -mavx256-split-unaligned-store.
12834
1ea9206a
RS
128352011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12836
12837 PR target/38598
12838 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12839 Update commentary.
12840
b99ce2a8
RS
128412011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12842
12843 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12844 opno arguments with an expand_operand. Use create_input_operand.
12845 (mips_prepare_builtin_target): Delete.
12846 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12847 functions.
12848 (mips_expand_builtin_direct): Use create_output_operand and
12849 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12850 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12851 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12852
69d52339
IR
128532011-03-27 Ira Rosen <ira.rosen@linaro.org>
12854
12855 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12856 function.
12857 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12858
ba5e9aca
EB
128592011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12860
12861 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12862 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12863 basic blocks and call commit_edge_insertions directly.
12864 (fixup_abnormal_edges): Move from here to...
12865 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12866 on the edges and return whether some have actually been inserted.
12867 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12868 compensation code.
12869
5d369d58
AB
128702011-03-26 Andrey Belevantsev <abel@ispras.ru>
12871
12872 PR rtl-optimization/48144
12873 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12874 (merge_expr_data): ... here.
12875 (av_set_intersect): Rename to av_set_code_motion_filter.
12876 Update all callers. Call merge_history_vect when an expression
12877 is found in both sets.
12878 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12879
f082c000
AM
128802011-03-26 Alan Modra <amodra@gmail.com>
12881
12882 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12883 cmodel medium addresses.
12884 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12885 64-bit gpr loads and stores.
12886 (rs6000_secondary_reload_ppc64): New function.
12887 * config/rs6000/rs6000-protos.h: Declare it.
12888 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12889
8ac5e12e
AM
128902011-03-26 Alan Modra <amodra@gmail.com>
12891
12892 PR target/47487
12893 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12894 GNU Go in traceback table.
12895
c2654ded
RH
128962011-03-25 Richard Henderson <rth@redhat.com>
12897
12898 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12899 if there are exactly 6 operands.
12900 (set_storage_via_setmem): Similarly.
12901
ba78087b
KT
129022011-03-25 Kai Tietz <ktietz@redhat.com>
12903
12904 * collect2.c (write_c_file_stat): Handle backslash
12905 as right-hand directory separator.
12906 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12907 checking just for slash.
12908 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12909 instead of checking for trailing slash.
12910 * gcc.c (record_temp_file): Use filename_cmp instead
12911 of strcmp.
12912 (do_spec_1): Likewise.
12913 (replace_outfile_spec_function): Likewise.
12914 (is_directory): Use filename_ncmp instead of strncmp.
12915 (print_multilib_info): Likewise.
12916 * gcov.c (find_source): Use filename_cmp instead
12917 instead of strcmp.
12918 (make_gcov_file_name): Fix order of slash/backslash
12919 checks.
12920 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12921 (add_standard_paths): Likewise.
12922 * mips-tfile.c (saber_stop): Handle backslash.
12923 * prefix.c (update_path): Use filename_ncmp instead of
12924 strncmp.
12925 * profile.c (output_location): Use filename_cmp instead
12926 of strcmp.
12927 * read-md.c (handle_toplevel_file): Handle backslash.
12928 * tlink.c (frob_extension): Likewise.
12929 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12930 strcmp.
12931 * tree-dump.c (dequeue_and_dump): Handle backslash.
12932 * tree.c (get_file_function_name): Likewise.
12933 * gengtype.c (read_input_list): Likewise.
12934 (get_file_realbasename): Likewise.
12935 (get_output_file_with_visibility): Use filename_cmp
12936 instead of strcmp.
12937
75f6ec9a
RS
129382011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12939
12940 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12941 case to VFPv1.
12942
6c4e2997
NF
129432011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12944
12945 * fold-const.c (expr_location_or): New function.
12946 (fold_truth_not_expr): Call it.
12947
0edf1bb2
JL
129482011-03-25 Jeff Law <law@redhat.com>
12949
12950 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12951 va_end.
12952 * c-family/c-common.c (def_fn_type): Likewise.
12953 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12954 * emit-rtl.c (gen_rtvec): Likewise.
12955 * lto/lto-lang.c (def_fn_type): Likewise.
12956
fdc2de95
RG
129572011-03-25 Richard Guenther <rguenther@suse.de>
12958
12959 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12960 also generate copies.
12961 (fini_copy_prop): Handle constant values properly.
12962
21385db0
JJ
129632011-03-25 Jakub Jelinek <jakub@redhat.com>
12964
12965 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12966 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12967 (hash_loc_operands, compare_loc_operands): Handle
12968 DW_OP_GNU_entry_value.
12969
6510e8bb
KT
129702011-03-25 Kai Tietz <ktietz@redhat.com>
12971
12972 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12973 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12974 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12975 comment and use macro TARGET_64BIT_MS_ABI instead.
12976 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12977 and change default behavior for 32-bit MS_ABI.
12978 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12979 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12980 32-bit, too.
12981 (ix86_cfun_abi): Likewise.
12982 (ix86_maybe_switch_abi): Adjust comment.
12983 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12984 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12985 instead of checking for SYSV_ABI.
12986 (ix86_nsaved_sseregs): Likewise.
12987 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12988 to 16 bytes.
12989 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12990 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12991 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12992 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12993 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12994
34019e28
RG
129952011-03-25 Richard Guenther <rguenther@suse.de>
12996
12997 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12998 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12999 (verify_gimple): Remove.
13000 * tree-cfg.c (verify_gimple_call): Merge verification
13001 from verify_stmts.
13002 (verify_gimple_phi): Merge verification from verify_stmts.
13003 (verify_gimple_label): New function.
13004 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13005 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13006 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13007 (verify_stmts): Rename to verify_gimple_in_cfg.
13008 (verify_gimple_in_cfg): New function.
13009 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13010 * tree-ssa.c (verify_ssa): Likewise.
13011 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13012
605896f5
RG
130132011-03-25 Richard Guenther <rguenther@suse.de>
13014
13015 * passes.c (init_optimization_passes): Add FRE pass after
13016 early SRA.
13017
7baa7c13
BS
130182011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13019 Andrew Stubbs <ams@codesourcery.com>
13020
13021 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13022 for Cortex-A8.
13023 (arm_movdi_vfp_cortexa8): New pattern.
13024 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13025 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13026 instructions when tuning for Cortex-A8. Set attribute "arch".
13027 * config/arm/arm.md: Move include arm-tune.md up a bit.
13028 (define_attr "arch"): Add "onlya8" and "nota8" values.
13029 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13030
45dbce1b
NF
130312011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13032
4ff08abf 13033 PR bootstrap/48282
45dbce1b
NF
13034 Revert:
13035 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13036
13037 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13038 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13039 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13040 * passes.c (init_optimization_passes): Move
13041 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13042
ac9a30ae
KT
130432011-03-25 Kai Tietz <ktietz@redhat.com>
13044
13045 * c-typeck.c (comptypes_internal): Replace target
13046 hook call of comp_type_attributes by version in tree.c file.
13047 * gimple.c (gimple_types_compatible_p_1): Likewise.
13048 * tree-ssa.c (useless_type_conversion_p): Likewise.
13049 * tree.c (build_type_attribute_qual_variant): Likewise.
13050 (attribute_value_equal): New static helper function.
13051 (comp_type_attributes): New function.
13052 (merge_attributes): Use attribute_value_equal for comparison.
13053 (attribute_list_contained): Likewise.
13054 * tree.h (comp_type_attributes): New prototype.
13055
afdac116
RG
130562011-03-25 Richard Guenther <rguenther@suse.de>
13057
13058 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13059 of complex types at -O0.
13060 (verify_gimple_assign_binary): Likewise.
13061 (verify_gimple_assign_ternary): Likewise.
13062
ec6165f8
MW
130632011-03-24 Mark Wielaard <mjw@redhat.com>
13064
13065 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13066 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13067
2a5ac39a
MW
130682011-03-24 Mark Wielaard <mjw@redhat.com>
13069
13070 PR debug/48041
13071 * dwarf2out.c (output_abbrev_section): Only write table when
13072 abbrev_die_table_in_use > 1.
13073
e533b2a4
RH
130742011-02-24 Richard Henderson <rth@redhat.com>
13075
13076 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13077 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13078 (alpha_expand_unaligned_load_words): Use extql.
13079 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13080 (emit_insxl): Handle all modes for consistency.
13081
0b2a7367
RH
130822011-02-24 Richard Henderson <rth@redhat.com>
13083
13084 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13085 (alpha_expand_unaligned_load): Likewise.
13086 (alpha_expand_unaligned_store): Likewise.
13087 (alpha_expand_unaligned_load_words): Likewise.
13088 (alpha_expand_unaligned_store_words): Likewise.
13089 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13090 (alpha_split_lock_test_and_set_12): Likewise.
13091 (print_operand, alpha_fold_builtin_extxx): Likewise.
13092 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13093 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13094 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13095 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13096 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13097 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13098 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13099 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13100 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13101 (extwl, extll, extql): Similarly.
13102 (inswh, inslh, insqh): Similarly.
13103 (mskbl, mskwl, mskll, mskql): Similarly.
13104 (mskwh, msklh, mskqh): Similarly.
13105
315b2bef
RH
131062011-02-24 Richard Henderson <rth@redhat.com>
13107
13108 * config/alpha/alpha.md (attribute isa): Add er, ner.
13109 (attribute enabled): Handle them.
13110 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13111
67102517
RH
131122011-02-24 Richard Henderson <rth@redhat.com>
13113
13114 * config/alpha/alpha.md (attribute isa): Add vms.
13115 (attribute enabled): Handle it.
13116 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13117 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13118 (*movtf): Rename from *movtf_internal for consistency.
13119 (*movsi): Merge with *movsi_nt_vms.
13120 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13121 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13122 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13123 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13124
6aba5cb4
RH
131252011-02-24 Richard Henderson <rth@redhat.com>
13126
13127 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13128 (extendqisi2, extendhisi2): Likewise.
13129 (extendqidi2): Simplify BWX/non-BWX expansions.
13130 (extendhidi2): Similarly.
13131
bdfb351b
RH
131322011-02-24 Richard Henderson <rth@redhat.com>
13133
13134 * config/alpha/alpha.md (attribute isa): New.
13135 (attribute enabled): New.
13136 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13137 (zero_extendqisi2, zero_extendqidi2): Similarly.
13138 (zero_extendhisi2, zero_extendhidi2): Similarly.
13139 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13140
6abe71eb
RH
131412011-02-24 Richard Henderson <rth@redhat.com>
13142
13143 * config/alpha/predicates.md (input_operand): Revert last change;
13144 update comment to mention 32-bit VMS rather than Windows.
13145
7114321e
NF
131462011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13147
13148 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13149 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13150 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13151 * passes.c (init_optimization_passes): Move
13152 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13153
c8679567
EB
131542011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13155
13156 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13157
27173058
UB
131582011-03-24 Uros Bizjak <ubizjak@gmail.com>
13159
13160 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13161 correctly.
13162
6f0c9f06
JJ
131632011-03-24 Jakub Jelinek <jakub@redhat.com>
13164
13165 PR debug/48204
13166 * simplify-rtx.c (simplify_const_unary_operation): Call
13167 real_convert when changing mode class with FLOAT_EXTEND.
13168
662666e5
NC
131692011-03-24 Nick Clifton <nickc@redhat.com>
13170
13171 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13172 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13173 * config/rx/rx.c (rx_option_override): Set align_jumps,
13174 align_loops and align_labels if not set by the user.
13175 (rx_align_for_label): New function.
13176 (rx_max_skip_for_label): New function.
13177 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13178 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13179 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13180 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13181 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13182
2b99b2b8
RS
131832011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13184
13185 PR rtl-optimization/48263
13186 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13187 and original commutative_p handling. Use maybe_gen_insn.
13188
ccecd6ea
AK
131892011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13190
13191 * reload.c (find_reloads_subreg_address): Add address_reloaded
13192 parameter and return true there if the full address has been
13193 reloaded.
13194 (find_reloads_toplev): Pass address_reloaded flag.
13195 (find_reloads_address_1): Don't use address_reloaded parameter.
13196
67295642
JL
131972011-03-24 Jeff Law <law@redhat.com>
13198
13199 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13200 unused variable "ann".
13201 (remove_unused_locals): Likewise.
13202
13203 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13204 statement.
13205
13206 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13207 after it is freed.
13208
212aa74f
AK
132092011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13210
13211 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13212 for invalid symbolic addresses.
13213 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13214 larl operands.
13215
fe784e0d
EB
132162011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13217
13218 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13219 the argument in calls to fold_truth_not_expr.
13220
63ee8641
NF
132212011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13222
13223 * tree.c (record_node_allocation_statistics): New function.
13224 (make_node_stat, copy_node_stat, build_string): Call it.
13225 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13226 (build1_stat, build_omp_clause): Likewise.
13227
61be2a1c
RS
132282011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13229
13230 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13231 last commit.
13232
a881aaa7
RG
132332011-03-24 Richard Guenther <rguenther@suse.de>
13234
13235 PR tree-optimization/48271
13236 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13237 blocks that still exist.
13238
dbaa912c
RG
132392011-03-24 Richard Guenther <rguenther@suse.de>
13240
13241 PR tree-optimization/48270
13242 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13243 not free datarefs before ddrs.
13244
1d60cc55
EB
132452011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13246
13247 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13248 from the address built for a reference with variable offset.
13249
c78dd519
UB
132502011-03-24 Uros Bizjak <ubizjak@gmail.com>
13251
13252 PR target/48237
13253 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13254 alternatives that can be handled with movq or movabsq insn.
13255 (*movdf_internal): Disable for !TARGET_64BIT.
13256 (*movdf_internal_nointeger): Ditto.
13257 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13258
b25b9e8f
NF
132592011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13260
13261 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13262 (FUNCTION_ARG_ADVANCE): Likewise.
13263 * tm.texi.in: Change references to them to hook references.
13264 * tm.texi: Regenerate.
c78dd519 13265 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
13266 (default_function_incoming_arg): Likewise.
13267 (default_function_arg_advance): Likewise.
c78dd519 13268 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
13269 (function_arg_advance): Likewise.
13270 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13271
190b2187
RG
132722011-03-24 Richard Guenther <rguenther@suse.de>
13273
13274 PR middle-end/48269
13275 * tree-object-size.c (addr_object_size): Do not double-account
13276 for MEM_REF offsets.
13277
a183b5c7
DN
132782011-03-24 Diego Novillo <dnovillo@google.com>
13279
13280 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 13281 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
13282 (lto_input_data_block): Move from lto-opts.c. Make extern.
13283 Update all users.
13284 (lto_input_string): Rename from input_string. Make extern.
13285 Update all users.
13286 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13287 output_string_with_length.
13288 Output 0 to indicate a non-NULL string. Update all callers to
13289 not emit 0.
13290 (lto_output_string): Rename from output_string. Make extern.
13291 Update all users.
13292 (lto_output_decl_state_streams): Make extern.
13293 (lto_output_decl_state_refs): Make extern.
13294 * lto-streamer.h (lto_input_string): Declare.
13295 (lto_input_data_block): Declare.
13296 (lto_output_string): Declare.
13297 (lto_output_string_with_length): Declare.
13298 (lto_output_decl_state_streams): Declare.
13299 (lto_output_decl_state_refs): Declare.
13300
cfef45c8
RG
133012011-03-24 Richard Guenther <rguenther@suse.de>
13302
13303 PR tree-optimization/46562
13304 * tree.c (build_invariant_address): New function.
13305 * tree.h (build_invariant_address): Declare.
13306 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13307 a renamed function moved ...
13308 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13309 Take valueization callback parameter.
13310 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13311 * gimple-fold.h: New file.
13312 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13313 (ccp_fold, fold_const_aggregate_ref,
13314 fold_ctor_reference, fold_nonarray_ctor_reference,
13315 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13316 get_base_constructor): Move ...
13317 * gimple-fold.c: ... here.
13318 (gimple_fold_stmt_to_constant_1): New function
13319 split out from ccp_fold. Take a valueization callback parameter.
13320 Valueize all operands.
13321 (gimple_fold_stmt_to_constant): New wrapper function.
13322 (fold_const_aggregate_ref_1): New function split out from
13323 fold_const_aggregate_ref. Take a valueization callback parameter.
13324 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13325 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13326 invariant POINTER_PLUS_EXPRs to invariant form.
13327 (vn_valueize): New function.
13328 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13329 * tree-vrp.c (vrp_valueize): New function.
13330 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13331 to fold statements to constants.
13332 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13333 function declarations.
13334 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13335 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13336
5e0a7e40
RS
133372011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13338
13339 * config/h8300/predicates.md (jump_address_operand): Fix register
13340 mode check.
13341
bfe068c3
IR
133422011-03-24 Ira Rosen <ira.rosen@linaro.org>
13343
13344 * doc/invoke.texi (max-stores-to-sink): Document.
13345 * params.h (MAX_STORES_TO_SINK): Define.
13346 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13347 if either vectorization or if-conversion is disabled.
13348 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13349 tree-vect-data-refs.c vect_equal_offsets.
13350 (dr_equal_offsets_p): New function.
13351 (find_data_references_in_bb): Remove static.
13352 * tree-data-ref.h (find_data_references_in_bb): Declare.
13353 (dr_equal_offsets_p): Likewise.
13354 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13355 (vect_drs_dependent_in_basic_block): Update calls to
13356 vect_equal_offsets.
13357 (vect_check_interleaving): Likewise.
13358 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13359 (cond_if_else_store_replacement): Rename to...
13360 (cond_if_else_store_replacement_1): ... this. Change arguments and
13361 documentation.
13362 (cond_if_else_store_replacement): New function.
13363 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13364 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13365
4908b0bf
CLT
133662011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13367
13368 PR target/46934
13369 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13370 to subtract lower bound instead of GEN_INT().
13371
2be478a2
JW
133722011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13373
13374 PR other/48179
13375 PR other/48221
13376 PR other/48234
13377 * doc/extend.texi (Alignment): Move section to match order in TOC.
13378 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13379 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13380
0c617be4
JL
133812011-03-23 Jeff Law <law@redhat.com>
13382
13383 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13384 before removing the edge.
13385
13386 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13387 it may have been freed by redirect_branch_edge or
13388 redirect_edge_succ_nodup.
13389
58da96fe
RG
133902011-03-23 Richard Guenther <rguenther@suse.de>
13391
c78dd519 13392 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
13393 (check_va_list_escapes): Likewise.
13394 (check_all_va_list_escapes): Likewise.
13395
b8beb4d1
RG
133962011-03-23 Richard Guenther <rguenther@suse.de>
13397
13398 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13399 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13400 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13401 (alias.o): Likewise.
13402 (ipa-type-escape.o): Remove.
13403 (ipa-struct-reorg.o): Likewise.
13404 (GTFILES): Remove ipa-struct-reorg.c.
13405 * alias.c: Do not include ipa-type-escape.h.
13406 * tree-ssa-alias.c: Likewise.
13407 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13408 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13409 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13410 and ipa-type-escape passes.
13411 * tree-pass.h (pass_ipa_type_escape): Remove.
13412 (pass_ipa_struct_reorg): Likewise.
13413 * ipa-struct-reorg.h: Remove.
13414 * ipa-struct-reorg.c: Likewise.
13415 * ipa-type-escape.h: Likewise.
13416 * ipa-type-escape.c: Likewise.
13417 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13418 (--param struct-reorg-cold-struct-ratio): Likewise.
13419 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13420 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13421 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13422
f137aa63
AK
134232011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13424
13425 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13426 cpu attribute value.
13427 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13428 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13429 * config/s390/s390.c (processor_flags_table): New constant array.
13430 (s390_handle_arch_option): Remove.
13431 (s390_handle_option): Remove s390_handle_arch_option invocations
13432 and OPT_mwarn_framesize_ handling.
13433 (s390_option_override): Remove s390_handle_arch_option invocation.
13434 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13435 warnings.
13436 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13437 * config/s390/s390.opt (s390_tune, s390_arch)
13438 (march=): Replace s390_arch_option enum and values with
13439 processor_type. Set variable name to s390_arch. Set
13440 initialization value.
13441 (mtune=): Replace s390_arch_option with processor_type. Set
13442 variable name to s390_tune. Set initialization value.
13443
bf90208f
JB
134442011-03-23 Julian Brown <julian@codesourcery.com>
13445
13446 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13447 accesses which are not naturally aligned.
13448
3460fdf3
RS
134492011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13450
13451 PR target/47553
13452 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13453
a5c7d693
RS
134542011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13455
13456 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13457 parameter from "int" to "enum insn_code".
13458 (expand_operand_type): New enum.
13459 (expand_operand): New structure.
13460 (create_expand_operand): New function.
13461 (create_fixed_operand, create_output_operand): Likewise
13462 (create_input_operand, create_convert_operand_to): Likewise.
13463 (create_convert_operand_from, create_address_operand): Likewise.
13464 (create_integer_operand): Likewise.
13465 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13466 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13467 (expand_insn, expand_jump_insn): Likewise.
13468 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13469 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13470 (expand_movstr, expand_builtin___clear_cache): Likewise.
13471 (expand_builtin_lock_release): Likewise.
13472 * explow.c (allocate_dynamic_stack_space): Likewise.
13473 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13474 and use the default handling in that case.
13475 * expmed.c (check_predicate_volatile_ok): Delete.
13476 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13477 (emit_cstore): Likewise.
13478 * expr.c (emit_block_move_via_movmem): Likewise.
13479 (set_storage_via_setmem, expand_assignment): Likewise.
13480 (emit_storent_insn, try_casesi): Likewise.
13481 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13482 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13483 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13484 (expand_twoval_unop, expand_twoval_binop): Likewise.
13485 (expand_unop_direct, emit_indirect_jump): Likewise.
13486 (emit_conditional_move, vector_compare_rtx): Likewise.
13487 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13488 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13489 (expand_sync_lock_test_and_set): Likewise.
13490 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13491 (emit_unop_insn): Likewise.
13492 (expand_copysign_absneg): Change icode to an insn_code.
13493 (create_convert_operand_from_type): New function.
13494 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13495 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13496 (expand_insn, expand_jump_insn): Likewise.
13497 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13498 than const_int_operand for operand 2.
13499
78fadbab
AK
135002011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13501
13502 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13503 if possible.
13504
5f02387d
NF
135052011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13506
13507 * emit-rtl.c (emit_pattern_before_noloc): New function.
13508 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13509 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13510 (emit_pattern_after_noloc): New function.
13511 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13512 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13513
fdf3e18a
NF
135142011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13515
13516 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13517 (__ffsDI2): Likewise.
13518
42d085c1
RH
135192011-03-22 Richard Henderson <rth@redhat.com>
13520
13521 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13522 of !TARGET_ABI_OPEN_VMS.
13523 (alpha_trampoline_init, alpha_start_function): Likewise.
13524 (alpha_expand_epilogue, alpha_file_start): Likewise.
13525 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13526 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13527 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13528 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13529 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13530
cabbe12a
JM
135312011-03-22 Joseph Myers <joseph@codesourcery.com>
13532
13533 * config/s390/s390-opts.h: New.
13534 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13535 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13536 s390_stack_guard): Remove.
13537 (s390_handle_arch_option): Return void. Take enum
13538 s390_arch_option value instead of string and searching array.
13539 (s390_handle_option): Don't assert that global structures are in
13540 use. Access variables via opts pointer. Use error_at. Don't use
13541 sscanf for -mstack-guard= or -mstack-size=. Update call to
13542 s390_handle_arch_option.
13543 (s390_option_override): Update call to s390_handle_arch_option.
13544 (s390_emit_prologue): Use %d format for s390_stack_size in
13545 diagnostic. Use %wd for HOST_WIDE_INT.
13546 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13547 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13548 * config/s390/s390.opt (config/s390/s390-opts.h): New
13549 HeaderInclude entry.
13550 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13551 s390_arch_flags, s390_warn_framesize): New Variable entries.
13552 (s390_arch_option): New Enum and EnumValue entries.
13553 (march=): Use Enum instead of Var.
13554 (mstack-guard=, mstack-size=): Use UInteger and Var.
13555 (mtune=): Use Enum.
13556
05b12036
JM
135572011-03-22 Joseph Myers <joseph@codesourcery.com>
13558
13559 * config/score/score.c (score_handle_option): Don't assert that
13560 global structures are in use. Access target_flags via opts
13561 pointer. Use value of -march= option to determine target_flags
13562 settings.
13563 * config/score/score.opt (march=): Use Enum.
13564 (score_arch): New Enum and EnumValue entries.
13565
dd51e35a
JM
135662011-03-22 Joseph Myers <joseph@codesourcery.com>
13567
13568 * config/mep/mep.c (option_mtiny_specified): Remove.
13569 (mep_option_override): Move register handling for -mivc2 from
13570 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13571 instead of option_mtiny_specified.
13572 (mep_handle_option): Access target_flags via opts pointer. Don't
13573 assert that global structures are in use. Defer part of -mivc2
13574 handling and move it to mep_option_override.
13575 * config/mep/mep.opt (IVC2): New Mask entry.
13576 (mivc2): Use Var and Defer instead of Mask.
13577
4a8d3d91
JM
135782011-03-22 Joseph Myers <joseph@codesourcery.com>
13579
13580 * config/v850/v850-opts.h: New.
13581 * config/v850/v850.c (small_memory): Replace with
13582 small_memory_physical_max array. Make that array static const.
13583 (v850_handle_memory_option): Take integer value of argument. Take
13584 gcc_options pointer, option text and location. Return void.
13585 Update for changes to small memory structures.
13586 (v850_handle_option): Access target_flags via opts pointer. Don't
13587 assert that global structures are in use. Update calls to
13588 v850_handle_memory_option.
c78dd519
UB
13589 (v850_encode_data_area): Update references to small memory settings.
13590 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
13591 (enum small_memory_type): Move to v850-opts.h.
13592 * config/v850/v850.opt (config/v850/v850-opts.h): New
13593 HeaderInclude entry.
13594 (small_memory_max): New Variable entry.
13595 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13596 (mtda, mzda): Likewise.
13597
117fdbfa
JM
135982011-03-22 Joseph Myers <joseph@codesourcery.com>
13599
13600 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13601 pointer. Don't assert that global structures are in use.
13602
d715091c
JM
136032011-03-22 Joseph Myers <joseph@codesourcery.com>
13604
13605 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13606 via opts pointer. Don't assert that global structures are in use.
13607
1bb721dc
JM
136082011-03-22 Joseph Myers <joseph@codesourcery.com>
13609
13610 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13611 (munix=93): Use Var.
13612 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13613 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13614 * config/pa/pa-opts.h: New.
13615 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13616 (pa_handle_option): Don't assert that global structures are in
13617 use. Access target_flags via opts pointer. Don't handle
13618 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13619 OPT_munix_98 here.
13620 (pa_option_override): Handle deferred OPT_mfixed_range_.
13621
cd8d8754
JM
136222011-03-22 Joseph Myers <joseph@codesourcery.com>
13623
13624 * config/mn10300/mn10300-opts.h: New.
13625 * config/mn10300/mn10300.c (mn10300_processor,
13626 mn10300_tune_string): Remove.
13627 (mn10300_handle_option): Don't assert that global structures are
13628 in use. Access mn10300_processor via opts pointer. Don't handle
13629 OPT_mtune_ here.
13630 * config/mn10300/mn10300.h (enum processor_type): Move to
13631 mn10300-opts.h.
13632 (mn10300_processor): Remove.
13633 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13634 HeaderInclude entry.
13635 (mn10300_processor): New Variable entry.
13636 (mtune=): Use Var.
13637
24e6e6b1
JM
136382011-03-22 Joseph Myers <joseph@codesourcery.com>
13639
13640 * config/microblaze/microblaze.c: Don't include opts.h.
13641 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13642 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13643 (mno-clearbss): Use Var and Warn.
13644
8a784afb
JM
136452011-03-22 Joseph Myers <joseph@codesourcery.com>
13646
13647 * config/m32r/m32r-opts.h: New.
13648 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13649 (m32r_handle_option): Don't assert that global structures are in
13650 use. Access target_flags and m32r_cache_flush_func via opts
13651 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13652 OPT_mno_flush_trap here.
13653 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13654 include of m32r-opts.h.
13655 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13656 HeaderInclude entry.
13657 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13658 (mmodel=): Use Enum and Var.
13659 (m32r_model): New Enum and EnumValue entries.
13660 (mno-flush-trap): Use Var.
13661 (msdata=): Use Enum and Var.
13662 (m32r_sdata): New Enum and EnumValue entries.
13663
bbfc9a8c
JM
136642011-03-22 Joseph Myers <joseph@codesourcery.com>
13665
13666 * config/m32c/m32c.c: Don't include opts.h.
13667 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13668 m32c_handle_option): Remove.
13669 (m32c_option_override): Check global_options_set.x_target_memregs
13670 instead of target_memregs_set.
13671 * config/m32c/m32c.h (target_memregs): Remove.
13672 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13673 variable.
13674
e24b8335
JM
136752011-03-22 Joseph Myers <joseph@codesourcery.com>
13676
13677 * config/iq2000/iq2000-opts.h: New.
13678 * config/iq2000/iq2000.c: Don't include opts.h.
13679 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13680 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
13681 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13682 HeaderInclude entry.
13683 (iq2000_tune): New Variable entry.
13684 (march=): Add comment. Use Enum.
13685 (iq2000_arch): New Enum and EnumValue entries.
13686 (mcpu=): Use Enum and Var.
13687 (iq2000_tune): New Enum and EnumValue entries.
13688
e6cc0c98
JM
136892011-03-22 Joseph Myers <joseph@codesourcery.com>
13690
13691 * config/ia64/ia64-opts.h: New.
13692 * config/ia64/ia64.c (ia64_tune): Remove.
13693 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13694 here. Use error_at.
13695 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13696 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13697 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13698 HeaderInclude entry.
13699 (ia64_tune): New Variable entry.
13700 (mfixed-range=): Use Defer and Var.
13701 (mtune=): Use Enum and Var.
13702 (ia64_tune): New Enum and EnumValue entries.
13703
db25893c
JM
137042011-03-22 Joseph Myers <joseph@codesourcery.com>
13705
13706 * config/frv/frv-opts.h: New.
13707 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13708 frv-opts.h.
13709 (frv_cpu_type): Remove.
13710 * config/frv/frv.c: Don't include opts.h.
13711 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13712 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
13713 (frv_cpu_type): New Variable entry.
13714 (frv_cpu): New Enum and EnumValue entries.
13715
6c223f5d
JM
137162011-03-22 Joseph Myers <joseph@codesourcery.com>
13717
13718 * config/cris/cris.c (cris_handle_option): Access target_flags via
13719 opts pointer. Don't assert that global structures are in use.
13720 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13721 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13722
bbd399cf
JM
137232011-03-22 Joseph Myers <joseph@codesourcery.com>
13724
13725 * config/bfin/bfin-opts.h: New.
13726 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13727 bfin_si_revision, bfin_workarounds): Remove.
13728 (bfin_cpus): Make static const.
13729 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13730 not bfin_lib_id_given.
13731 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13732 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 13733 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
13734 * config/bfin/bfin.h: Include bfin-opts.h.
13735 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13736 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13737 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13738 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13739 entries.
13740
5e1b4d5a
JM
137412011-03-22 Joseph Myers <joseph@codesourcery.com>
13742
13743 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13744 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13745 or -msoft-float here.
13746 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13747 -msoft-float and -mhard-float.
c78dd519 13748 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
13749 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13750 msoft-float.
13751 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13752 -msoft-float.
13753 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13754 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13755 not mhard-float.
13756 (LIBGCC_SPEC): Don't handle -msoft-float.
13757 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13758 -mhard-float.
13759 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13760 msoft-float.
13761 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13762 -mfloat-abi=*, not -msoft-float and -mhard-float.
13763 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13764 -msoft-float.
13765 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13766 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13767 mhard-float and msoft-float.
13768 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13769 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13770 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13771 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13772 mhard-float.
13773 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13774 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13775 msoft-float.
13776 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13777 not mhard-float.
13778 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13779 not msoft-float.
13780
800d1de1
RH
137812011-03-22 Richard Henderson <rth@redhat.com>
13782
13783 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13784 TARGET_ABI_WINDOWS_NT.
13785 (alpha_output_function_end_prologue): Likewise.
13786 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13787 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13788 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13789 (trap, *movsi_nt_vms): Likewise.
13790 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13791 (*tablejump_osf_nt_internal): Remove.
13792 * config/alpha/predicates.md (input_operand): Only test Pmode.
13793
c59ddd2b
JM
137942011-03-22 Joseph Myers <joseph@codesourcery.com>
13795
13796 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13797 via opts pointer. Use error_at. Don't assert that global
13798 structures are in use.
13799
1333f97f
JM
138002011-03-22 Joseph Myers <joseph@codesourcery.com>
13801
13802 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13803 (ix86_handle_option): Access ix86_isa_flags and
13804 ix86_isa_flags_explicit via opts pointer. Don't assert that
13805 global structures are in use.
13806 (ix86_function_specific_save, ix86_function_specific_restore):
13807 Update ix86_isa_flags_explicit field name.
c78dd519 13808 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
13809 (ix86_isa_flags_explicit): Rename TargetSave entry to
13810 x_ix86_isa_flags_explicit.
13811
75db85d8
RH
138122011-03-22 Richard Henderson <rth@redhat.com>
13813
13814 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13815 (alpha_option_override, direct_return): Likewise.
13816 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13817 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13818 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13819 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13820 (alpha_expand_epilogue, alpha_end_function): Likewise.
13821 (alpha_init_libfuncs): Likewise.
13822 (struct machine_function): Remove unicosmk members.
13823 (print_operand) ['t']: Remove.
13824 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13825 unicosmk_output_module_name, unicosmk_output_common,
13826 current_section_align, unicosmk_output_text_section_asm_op,
13827 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13828 unicosmk_section_type_flags, unicosmk_unique_section,
13829 unicosmk_asm_named_section, unicosmk_insert_attributes,
13830 unicosmk_output_align, unicosmk_defer_case_vector,
13831 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13832 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13833 unicosmk_output_ssib, unicosmk_add_call_info_word,
13834 unicosmk_extern_head, unicosmk_output_default_externs,
13835 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13836 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13837 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13838 * config/alpha/alpha-protos.h: Update.
13839 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13840 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13841 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13842 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13843 (*mulsi_se, mulvsi3): Likewise.
13844 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13845 (*divmodsi_internal, call, call_value, realign): Likewise.
13846 (moddi3, umoddi3): Likewise; remove duplicate expander.
13847 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13848 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13849 (*movdi_nofix): Remove r/U alternative.
13850 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13851 * config/alpha/constraints.md ("U"): Remove.
13852 * config/alpha/predicates.md (call_operand"): Don't test
13853 TARGET_ABI_UNICOSMK.
13854
96e45421
JM
138552011-03-22 Joseph Myers <joseph@codesourcery.com>
13856
13857 * target.def (handle_option): Take gcc_options and
13858 cl_decoded_option pointers and location_t.
13859 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13860 * doc/tm.texi: Regenerate.
13861 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13862 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13863 * lto-opts.c (lto_reissue_options): Generate option structure for
13864 targetm.handle_option call.
13865 * opts.c (target_handle_option): Update call to
13866 targetm.handle_option. Remove assertions about values now passed
13867 down to hook.
13868 * targhooks.c (default_target_handle_option): New.
13869 * targhooks.h (default_target_handle_option): Declare.
13870 * config/alpha/alpha.c: Include opts.h.
13871 (alpha_handle_option): Update to new hook interface.
13872 * config/arm/arm.c: Include opts.h.
13873 (arm_handle_option): Update to new hook interface.
13874 * config/arm/t-arm (arm.o): Update dependencies.
13875 * config/bfin/bfin.c: Include opts.h.
13876 (bfin_handle_option): Update to new hook interface.
13877 * config/cris/cris.c: Include opts.h.
13878 (cris_handle_option): Update to new hook interface.
13879 * config/frv/frv.c: Include opts.h.
13880 (frv_handle_option): Update to new hook interface.
13881 * config/i386/i386.c: Include opts.h.
13882 (ix86_handle_option): Update to new hook interface.
13883 (ix86_valid_target_attribute_inner_p): Generate option structure
13884 for call to ix86_handle_option.
13885 * config/i386/t-i386 (i386.o): Update dependencies.
13886 * config/ia64/ia64.c: Include opts.h.
13887 (ia64_handle_option): Update to new hook interface.
13888 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13889 * config/iq2000/iq2000.c: Include opts.h.
13890 (iq2000_handle_option): Update to new hook interface.
13891 * config/m32c/m32c.c: Include opts.h.
13892 (m32c_handle_option): Update to new hook interface.
13893 * config/m32r/m32r.c: Include opts.h.
13894 (m32r_handle_option): Update to new hook interface.
13895 * config/m68k/m68k.c: Include opts.h.
13896 (m68k_handle_option): Update to new hook interface.
13897 * config/mep/mep.c: Include opts.h.
13898 (mep_handle_option): Update to new hook interface.
13899 * config/microblaze/microblaze.c: Include opts.h.
13900 (microblaze_handle_option): Update to new hook interface.
13901 * config/mips/mips.c: Include opts.h.
13902 (mips_handle_option): Update to new hook interface.
13903 * config/mn10300/mn10300.c: Include opts.h.
13904 (mn10300_handle_option): Update to new hook interface.
13905 * config/pa/pa.c: Include opts.h.
13906 (pa_handle_option): Update to new hook interface.
13907 * config/pdp11/pdp11.c: Include opts.h.
13908 (pdp11_handle_option): Update to new hook interface.
13909 * config/rs6000/rs6000.c: Include opts.h.
13910 (rs6000_handle_option): Update to new hook interface.
13911 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13912 * config/rx/rx.c: Include opts.h.
13913 (rx_handle_option): Update to new hook interface.
13914 * config/s390/s390.c: Include opts.h.
13915 (s390_handle_option): Update to new hook interface.
13916 * config/score/score.c: Include opts.h.
13917 (score_handle_option): Update to new hook interface.
13918 * config/sh/sh.c: Include opts.h.
13919 (sh_handle_option): Update to new hook interface.
13920 * config/sparc/sparc.c: Include opts.h.
13921 (sparc_handle_option): Update to new hook interface.
13922 * config/v850/v850.c: Include opts.h.
13923 (v850_handle_option): Update to new hook interface.
13924
66017846
JM
139252011-03-22 Joseph Myers <joseph@codesourcery.com>
13926
13927 * gcc.c (driver_unknown_option_callback): Only permit and save
13928 unknown -Wno- options.
13929 (driver_wrong_lang_callback): Save options directly instead of via
13930 driver_unknown_option_callback.
13931
e8b97ccd
EB
139322011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13933
13934 * combine.c (simplify_set): Try harder to find the best CC mode when
13935 simplifying a nested COMPARE on the RHS.
13936
ebb9f8b0
JM
139372011-03-22 Joseph Myers <joseph@codesourcery.com>
13938
13939 * config/alpha/gnu.h: Remove.
13940 * config/arc: Remove directory.
13941 * config/arm/netbsd.h: Remove.
13942 * config/arm/t-pe: Remove.
13943 * config/crx: Remove directory.
13944 * config/i386/netbsd.h: Remove.
13945 * config/m68hc11: Remove directory.
13946 * config/m68k/uclinux-oldabi.h: Remove.
13947 * config/mcore/mcore-pe.h: Remove.
13948 * config/mcore/t-mcore-pe: Remove.
13949 * config/netbsd-aout.h: Remove.
13950 * config/rs6000/gnu.h: Remove.
13951 * config/sh/sh-symbian.h: Remove.
13952 * config/sh/symbian-base.c: Remove.
13953 * config/sh/symbian-c.c: Remove.
13954 * config/sh/symbian-cxx.c: Remove.
13955 * config/sh/symbian-post.h: Remove.
13956 * config/sh/symbian-pre.h: Remove.
13957 * config/sh/t-symbian: Remove.
13958 * config/svr3.h: Remove.
13959 * config/vax/netbsd.h: Remove.
13960 * config.build: Don't handle i[34567]86-*-pe.
13961 * config.gcc: Remove handling of deprecations for most deprecated
13962 targets.
13963 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13964 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13965 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13966 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13967 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13968 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13969 Remove cases.
13970 * config.host: Don't handle i[34567]86-*-pe.
13971 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13972 (ASM_SPEC32): Don't handle -mcall-gnu.
13973 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13974 -mcall-gnu.
13975 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13976 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13977 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13978 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13979 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13980 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13981 conditional on SYMBIAN.
13982 * configure.ac: Don't handle powerpc*-*-gnu*.
13983 * configure: Regenerate.
13984 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13985 * doc/install-old.texi (m6811, m6812): Don't mention.
13986 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13987 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13988 (m68k-uclinuxoldabi): Don't mention.
13989 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13990 Remove.
13991 (-mcall-gnu): Remove.
13992 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13993 families): Remove constraint documentation.
13994
999a7d80
MS
139952011-03-22 Marius Strobl <marius@FreeBSD.org>
13996
13997 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13998 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13999 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14000
45540bcf
MM
140012011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14002
14003 PR target/48226
14004 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14005 vector when peeking at the next token for vector, don't expand the
14006 keywords.
14007
980a0ff4
GJL
140082011-03-21 Georg-Johann Lay <avr@gjlay.de>
14009
14010 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14011 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14012 * config/avr/avr.c (init_cumulative_args)
14013 (avr_function_arg_advance): Use it.
14014 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14015 sibcall epilogues.
14016 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14017 (avr_function_ok_for_sibcall): ...this new function.
14018 (avr_lookup_function_attribute1): New static Function.
14019 (avr_naked_function_p, interrupt_function_p)
14020 (signal_function_p, avr_OS_task_function_p)
14021 (avr_OS_main_function_p): Use it.
14022 * config/avr/avr.md ("sibcall", "sibcall_value")
14023 ("sibcall_epilogue"): New expander.
14024 ("*call_insn", "*call_value_insn"): New insn.
14025 ("call_insn", "call_value_insn"): Remove
14026 ("call", "call_value", "epilogue"): Change expander to handle
14027 sibling calls.
14028
49168734
NC
140292011-03-21 Nick Clifton <nickc@redhat.com>
14030
14031 * doc/invoke.texi (Overall Options): Move closing brace to end of
14032 options list.
14033 (Optimization Options): Add missing @gol.
14034 (Directory Options): Likewise.
14035 (i386 and x86-64 Options): Likewise.
14036 (RS6000 and PowerPC Options): Likewise.
14037 (i386 and x86-64 Windows Options): Likewise.
14038 (V850 Options): Add text missing from descriptions.
14039
bdfe906f
RH
140402011-03-22 Richard Henderson <rth@redhat.com>
14041
14042 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14043 (avr_incoming_return_addr_rtx): New.
14044 (emit_push_byte): New.
14045 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14046 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14047 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14048 (emit_pop_byte): New.
14049 (expand_epilogue): Use it. Pop frame pointer by bytes.
14050 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14051 (INCOMING_RETURN_ADDR_RTX): New.
14052 (INCOMING_FRAME_SP_OFFSET): New.
14053 (ARG_POINTER_CFA_OFFSET): New.
14054 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14055 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14056 (pophi): Remove.
14057
d090a5aa
RH
14058 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14059
fdf3e18a
NF
140602011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14061
14062 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14063 (FUNCTION_ARG_ADVANCE): Likewise.
14064 * tm.texi.in: Change references to them to hook references.
14065 * tm.texi: Regenerate.
14066 * targhooks.c (default_function_arg): Eliminate check for target
14067 macro.
14068 (default_function_incoming_arg): Likewise.
14069 (default_function_arg_advance): Likewise.
c78dd519 14070 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
14071 (function_arg_advance): Likewise.
14072 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14073
009d3fcf
NF
140742011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14075
14076 * tree.c (build_call_1): New function.
14077 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14078
7bec30e1
RG
140792011-03-22 Richard Guenther <rguenther@suse.de>
14080
14081 PR tree-optimization/48228
14082 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14083 for single-arg PHIs.
14084
0b7e851b
AB
140852011-03-22 Andrey Belevantsev <abel@ispras.ru>
14086
14087 PR rtl-optimization/48143
14088 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14089 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14090 sse2_cvtps2pd): Likewise.
14091
d89afca5
AK
140922011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14093
14094 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14095
f471fe72
RG
140962011-03-22 Richard Guenther <rguenther@suse.de>
14097
14098 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14099 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14100 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14101 and REALIGN_LOAD_EXPR.
14102 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14103 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14104 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14105 DOT_PROD_EXPR case ...
14106 (expand_expr_real_2): ... here.
14107 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14108 and REALIGN_LOAD_EXPR.
14109 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14110 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14111 (vect_create_epilog_for_reduction): Likewise.
14112 (vectorizable_reduction): Likewise.
14113 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14114 * tree-vect-stmts.c (vectorizable_load): Likewise.
14115
f2f81d57
EB
141162011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14117
14118 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14119
ab081dd6
AK
141202011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14121
14122 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14123 handling for PLTOFF/GOTOFF.
14124
6fd5332b
NC
141252011-03-22 Nick Clifton <nickc@redhat.com>
14126
14127 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14128 trailing backslash from the end of the macro definition.
14129
01841ac0
AK
141302011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14131
14132 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14133 and PLT unspecs.
14134
2ef6ce06
RS
141352011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14136
14137 * expr.h (prepare_operand): Move to...
14138 * optabs.h (prepare_operand): ...here and change the insn code
14139 parameter from "int" to "enum insn_code".
14140 (insn_operand_matches): Declare.
14141 * expr.c (init_expr_target): Use insn_operand_matches.
14142 (compress_float_constant): Likewise.
14143 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14144 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14145 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
14146 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14147 Likewise.
2ef6ce06
RS
14148 (gen_cond_trap): Likewise.
14149 (prepare_operand): Likewise. Change icode to an insn_code.
14150 (insn_operand_matches): New function.
14151 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14152 * reload1.c (gen_reload): Likewise.
14153 * targhooks.c (default_secondary_reload): Likewise.
14154
9e43ad68
UB
141552011-03-21 Uros Bizjak <ubizjak@gmail.com>
14156
9a96da32
UB
14157 * config/alpha/alpha.md (unspec): New define_c_enum.
14158 (unspecv): Ditto.
14159
141602011-03-21 Uros Bizjak <ubizjak@gmail.com>
14161
14162 PR debug/48214
9e43ad68
UB
14163 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14164 between a call and its CALL_ARG_LOCATION note.
14165
31408f60
EB
141662011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14167
14168 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14169
141702011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
14171
14172 PR c/42544
14173 PR c/48197
14174 * c-common.c (shorten_compare): If primopN is first sign-extended
14175 to opN and then zero-extended to result type, set primopN to opN.
14176
9dfd55f5
DJ
141772011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14178
14179 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14180 for barrier handlers.
14181
f3c33d9d
MM
141822011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14183
14184 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14185 UNSPEC constants to be in the unspec enumeration, and redefine
14186 all UNSPECV constants to be in the unspecv enumeration, so that
14187 dumps print which unspec/unspec_volatile this is.
14188 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14189 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14190 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14191 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14192 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14193
14194 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14195 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14196 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14197 * config/rs6000/sync.md (isync, lwsync): Ditto.
14198
ac43f774
RG
141992011-03-21 Richard Guenther <rguenther@suse.de>
14200
14201 * params.def (lto-min-partition): Fix typo.
14202
411cdbd8
RG
142032011-03-21 Richard Guenther <rguenther@suse.de>
14204
14205 PR c/47939
14206 * c-decl.c (grokdeclarator): Drop to the main variant only
14207 for array types. Drop flag_gen_aux_info check.
14208
1cd9e416
RG
142092011-03-21 Richard Guenther <rguenther@suse.de>
14210
14211 PR translation/47911
14212 * params.def (lto-partitions): Fix typo.
14213 (lto-min-partition): Fix wording.
14214
ada5ad67
AT
142152011-03-21 Andreas Tobler <andreast@fgznet.ch>
14216
14217 * config/rs6000/t-freebsd: Remove duplication from file.
14218
f9613c9a
RG
142192011-03-21 Richard Guenther <rguenther@suse.de>
14220
14221 PR middle-end/47661
14222 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14223
9bfbc1eb
RG
142242011-03-21 Richard Guenther <rguenther@suse.de>
14225
14226 PR lto/48210
14227 * params.def (lto-partitions): Require at least 1 partition.
14228
a2268084
RO
142292011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14230
14231 * gthr-solaris.h: Remove.
14232 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14233 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14234 (LIB_SPEC): Likewise.
14235 * config/sol2.opt (threads): Remove.
9e43ad68 14236 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
14237 (sparc*-*-solaris2*): Likewise.
14238 * configure.ac (enable_threads): Enable solaris support.
14239 * configure: Regenerate.
9e43ad68 14240 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
14241 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14242 solaris.
14243
c43d9a1b
RO
142442011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14245
14246 * config.gcc: Obsolete *-*-solaris2.8*.
14247 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14248
084239f4
RO
142492011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14250
14251 PR bootstrap/48135
14252 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14253 reference. Solaris 8 perl works.
14254
64cadbe7
RO
142552011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14256
14257 PR bootstrap/48135
14258 * doc/install.texi (Prerequisites): Move jar etc. up.
14259 Explain support library version requirements.
14260
eb975109
RO
142612011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14262
14263 PR bootstrap/48135
14264 * doc/install.texi (Prerequisites): Move Perl to build
14265 requirements. Always necessary on Solaris 2 with Sun ld.
14266
8a509ffd
RO
142672011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14268
14269 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14270 binutils 2.21.
14271 (Specific, i?86-*-solaris2.[89]): Likewise.
14272 (Specific, i?86-*-solaris2.10): Likewise.
14273 (Specific, mips-sgi-irix6): Likewise.
14274 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14275 Update for binutils 2.21.
14276
8fbc58a1
RO
142772011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14278
14279 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14280 Allow -fuse-linker-plugin for non-default plugin linker.
14281 * configure: Regenerate.
14282
7e84ad0b
NP
142832011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14284
14285 PR bootstrap/48167
14286 * gengtype.c (files_rules): Added rule for cp/parser.h.
14287
2f36e14b
JJ
142882011-03-21 Jakub Jelinek <jakub@redhat.com>
14289
14290 PR target/48213
14291 * config/s390/s390.c (s390_delegitimize_address): Don't call
14292 lowpart_subreg if orig_x has BLKmode.
14293
62d784f7
KT
142942011-03-21 Kai Tietz <ktietz@redhat.com>
14295
14296 PR target/12171
9e43ad68
UB
14297 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14298 * tree.h (attribute_spec): Add new member affects_type_identity.
14299 * attribs.c (empty_attribute_table): Adjust attribute_spec
14300 initializers.
62d784f7
KT
14301 * config/alpha/alpha.c: Likewise.
14302 * config/arc/arc.c: Likewise.
14303 * config/arm/arm.c: Likewise.
14304 * config/avr/avr.c: Likewise.
14305 * config/bfin/bfin.c: Likewise.
14306 * config/crx/crx.c: Likewise.
14307 * config/darwin.h: Likewise.
14308 * config/h8300/h8300.c: Likewise.
14309 * config/i386/cygming.h: Likewise.
14310 * config/i386/i386.c: Likewise.
14311 * config/ia64/ia64.c: Likewise.
14312 * config/m32c/m32c.c: Likewise.
14313 * config/m32r/m32r.c: Likewise.
14314 * config/m68hc11/m68hc11.c: Likewise.
14315 * config/m68k/m68k.c: Likewise.
14316 * config/mcore/mcore.c: Likewise.
14317 * config/mep/mep.c: Likewise.
14318 * config/microblaze/microblaze.c: Likewise.
14319 * config/mips/mips.c: Likewise.
14320 * config/rs6000/rs6000.c: Likewise.
14321 * config/rx/rx.c: Likewise.
14322 * config/sh/sh.c: Likewise.
14323 * config/sol2.h: Likewise.
14324 * config/sparc/sparc.c: Likewise.
14325 * config/spu/spu.c: Likewise.
14326 * config/stormy16/stormy16.c: Likewise.
14327 * config/v850/v850.c: Likewise.
14328
54833ec0
CLT
143292011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14330
14331 * simplify-rtx.c (simplify_binary_operation_1): Handle
14332 (xor (and A B) C) case when B and C are both constants.
14333
14a41392
MX
143342011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14335
14336 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14337
806c3492
EB
143382011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14339
14340 PR bootstrap/48168
14341 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14342
65e0a0f3
JJ
143432011-03-20 Jakub Jelinek <jakub@redhat.com>
14344
14345 PR rtl-optimization/48156
14346 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14347 assume df and df_lr are not NULL.
14348
b6a75dda
RR
143492011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14350
14351 PR debug/48023
14352 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14353 between a call and its CALL_ARG_LOCATION note.
14354
5969b52d
KK
143552011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14356
14357 PR debug/48178
14358 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14359 between a call and its corresponding CALL_ARG_LOCATION note.
14360
f773c2bd
AS
143612011-03-19 Anatoly Sokolov <aesok@post.ru>
14362
14363 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14364 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14365 * haifa-sched.c (setup_ref_regs): Ditto.
14366 * caller-save.c (add_used_regs_1): Ditto.
14367 * dse.c (look_for_hardregs): Ditto.
14368 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14369 * sched-rgn.c (check_live_1): Ditto.
14370
8bf872f9
JM
143712011-03-18 Joseph Myers <joseph@codesourcery.com>
14372
14373 * c-decl.c (diagnose_mismatched_decls): Give an error for
14374 redefining a typedef with variably modified type.
14375
ff8e2159
JM
143762011-03-18 Joseph Myers <joseph@codesourcery.com>
14377
14378 * c-decl.c (grokfield): Don't allow typedefs for structures or
14379 unions with no tag by default.
14380 * doc/extend.texi (Unnamed Fields): Update.
14381
16cc4440
UB
143822011-03-18 Uros Bizjak <ubizjak@gmail.com>
14383
14384 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14385 Rewrite using indirect functions.
14386 (lwp_slwpcb): Ditto.
14387 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14388 (avx_vinsertf128<mode>): Ditto.
14389
e101e12e
AK
143902011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14391
14392 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14393 unspecs.
14394
4627c7fb
AK
143952011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14396
14397 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 14398 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 14399
2d36b47f
MK
144002011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14401
14402 PR rtl-optimization/48170
14403 * gcse.c (hoist_code): Remove bogus asserts.
14404
2a3d7659
JL
144052011-03-18 Georg-Johann Lay <avr@gjlay.de>
14406
14407 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14408 computation for prologue/epilogue.
14409
34c3ef05
RO
144102011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14411
14412 * Makefile.in (check-consistency): Remove.
14413
81f2b976
JJ
144142011-03-18 Jakub Jelinek <jakub@redhat.com>
14415
14416 PR debug/48176
14417 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14418 arange_table_in_use is 0, but either text_section_used or
14419 cold_text_section_used is true. Don't call it if
14420 !info_section_emitted.
14421
68fd7765
AS
144222011-03-18 Anatoly Sokolov <aesok@post.ru>
14423
14424 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14425 FUNCTION_VALUE_REGNO_P): Remove.
14426 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14427 Remove.
14428 * config/avr/avr.c (avr_ret_register): Make static inline.
14429 (avr_function_value_regno_p): New function.
14430 (avr_libcall_value): Make static. Add 'func' argument.
14431 (avr_function_value): Make static. Rename 'func' argument to
14432 'fn_decl_or_type', forward it to avr_libcall_value. Call
14433 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 14434 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 14435
b4ef8aac
JM
144362011-03-18 Jason Merrill <jason@redhat.com>
14437
14438 PR c++/23372
14439 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14440
09a52fc3
RG
144412011-03-18 Richard Guenther <rguenther@suse.de>
14442
14443 * doc/install.texi (--enable-gold): Remove.
14444 (--with-plugin-ld): Document.
14445 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14446
2a3d7659 144472011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
14448
14449 PR middle-end/47790
14450 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14451 again after expansion changes.
14452
2abbb0fe
CLT
144532011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14454
14455 * combine.c (try_combine): Do simplification only call of
14456 subst() on i2 even when i1 is present. Update comments.
14457
2efd0aa6
KK
144582011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14459
14460 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14461 and UNSPEC_PCREL_SYMOFF.
14462
30a49b23
AK
144632011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14464
14465 * config/s390/s390.md: Use define_c_enum for the unspec constant
14466 definitions.
14467
419e1853
JJ
144682011-03-18 Richard Henderson <rth@redhat.com>
14469 Jakub Jelinek <jakub@redhat.com>
14470
14471 PR bootstrap/48161
14472 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14473 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14474
37875856
L
144752011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14476
14477 PR middle-end/47725
14478 * combine.c (cant_combine_insn_p): Don't check zero/sign
14479 extended hard registers.
14480
76069764
L
144812011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14482
14483 PR middle-end/47725
14484 * combine.c (cant_combine_insn_p): Check zero/sign extended
14485 hard registers.
14486
24da2019
AS
144872011-03-17 Anatoly Sokolov <aesok@post.ru>
14488
14489 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14490 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14491 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14492 Change return type to bool.
14493 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14494
a82ff31f
JJ
144952011-03-17 Jakub Jelinek <jakub@redhat.com>
14496
8b29c87a
JJ
14497 PR debug/48163
14498 * var-tracking.c (prepare_call_arguments): If CALL target
14499 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14500 pc instead of looking it up using cselib_lookup and use
14501 Pmode for it if x has VOIDmode.
14502 * dwarf2out.c (gen_subprogram_die): If also both first and
14503 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14504
a82ff31f
JJ
14505 PR debug/48163
14506 * function.c (assign_parms): For data.passed_pointer parms
14507 use MEM of data.entry_parm instead of data.entry_parm itself
14508 as DECL_INCOMING_RTL.
14509 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14510 also when passed and declared mode is the same, DECL_RTL
14511 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14512 a MEM too.
14513
82ce305c
JL
145142011-03-16 Jeff Law <law@redhat.com>
14515
14516 PR rtl-optimization/37273
14517 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14518 handle them like argument loads from stack slots. Do not double
14519 count memory for memory constants and argument loads from stack slots.
14520
fe58e02b
L
145212011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14522
14523 PR debug/48160
14524 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14525
6fc4dbc7
L
145262011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14527
14528 PR target/48171
14529 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14530
db3ed0b3
JJ
145312011-03-17 Jakub Jelinek <jakub@redhat.com>
14532
8054a389
JJ
14533 PR bootstrap/48153
14534 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14535 if dwarf_strict.
14536 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14537 Clear call_arg_locations and call_arg_loc_last always.
14538
db3ed0b3
JJ
14539 PR middle-end/48152
14540 * var-tracking.c (prepare_call_arguments): If argument needs to be
14541 passed by reference, adjust argtype and mode.
14542
1bce4ff3
RG
145432011-03-17 Richard Guenther <rguenther@suse.de>
14544
14545 PR middle-end/48134
14546 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14547 a value make sure to fold the statement.
14548
7c71147d
CLT
145492011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14550
14551 PR target/43872
14552 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14553 return condition with !cfun->calls_alloca.
14554
0e1ee172
RG
145552011-03-17 Richard Guenther <rguenther@suse.de>
14556
14557 PR bootstrap/48148
14558 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14559 origin for decls in other ltrans units.
14560 (input_varpool_node): Likewise.
14561
f8bce518
RG
145622011-03-17 Richard Guenther <rguenther@suse.de>
14563
14564 PR middle-end/48165
14565 * tree-object-size.c (compute_object_offset): Properly return
14566 the offset operand of MEM_REFs as sizetype.
14567
1b6fa860
JJ
145682011-03-17 Jakub Jelinek <jakub@redhat.com>
14569
dabd47e7
JJ
14570 PR rtl-optimization/48141
14571 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14572 * dse.c: Include params.h.
14573 (active_local_stores_len): New variable.
14574 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14575 to NULL.
14576 (record_store, check_mem_read_rtx): Decrease it when removing
14577 from the chain.
14578 (scan_insn): Likewise. Increase it when adding to chain, if it
14579 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14580 set active_local_stores to NULL before the addition.
14581 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14582
1b6fa860
JJ
14583 PR rtl-optimization/48141
14584 * dse.c (record_store): If no positions are needed in an insn
14585 that cannot be deleted, at least unchain it from active_local_stores.
14586
7b5cb7d6
DS
145872011-03-16 Dodji Seketeli <dodji@redhat.com>
14588
14589 PR debug/47510
14590 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14591 (lookup_type_die_strip_naming_typedef): ... here.
14592 (get_context_die): Use it.
14593 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14594 the anonymous struct named by the naming typedef.
14595
585e9d9d
L
145962011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14597
14598 PR target/48154
14599 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14600 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14601
6261ab0e
JL
146022011-03-16 Jeff Law <law@redhat.com>
14603
14604 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 14605 check for operands of conditional. Allow type to be a pointer.
6261ab0e 14606
0b0081ec
RG
146072011-03-16 Richard Guenther <rguenther@suse.de>
14608
14609 PR tree-optimization/48149
14610 * fold-const.c (fold_binary_loc): Fold
14611 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14612
64a3d647
RG
146132011-03-16 Richard Guenther <rguenther@suse.de>
14614
14615 PR tree-optimization/26134
14616 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14617 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14618 (non_rewritable_mem_ref_base): Handle complex type component
14619 accesses, constrain offsets for vector and complex extracts
14620 more properly.
14621
ef13324e
RG
146222011-03-16 Richard Guenther <rguenther@suse.de>
14623
14624 PR tree-optimization/48146
14625 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14626 operands avoiding the need for renaming.
14627
f0eddb90
RG
146282011-03-16 Richard Guenther <rguenther@suse.de>
14629
14630 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14631 constant folding. Move MEM_REF canonicalization first.
14632 Rely on fold_const_aggregate_ref for initializer folding.
14633 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14634
e42348b8
JJ
146352011-03-16 Jakub Jelinek <jakub@redhat.com>
14636
29f10e71
JJ
14637 PR middle-end/48136
14638 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14639 arg0/arg1 or their arguments are always fold converted to matching
14640 types.
14641
e42348b8
JJ
14642 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14643 to nargs.
14644
55b46574
RO
146452011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14646
14647 PR lto/46944
14648 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14649 Handle in-tree gold.
14650 (ld_vers): Extract binutils version for gold.
14651 (gcc_cv_ld_hidden): Handle gold here.
14652 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14653 * configure: Regenerate.
14654 * config.in: Regenerate.
14655 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14656 -fuse-linker-plugin otherwise.
14657 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14658 (LINK_COMMAND_SPEC): Use it.
14659 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14660
2b1c5433
JJ
146612011-03-16 Jakub Jelinek <jakub@redhat.com>
14662
c2969d8e
JJ
14663 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14664 * calls.c: Remove debug.h include.
14665 (emit_call_1): Don't call virtual_call_token debug hook.
14666 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14667 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14668 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14669 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14670 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14671 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14672 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14673 dwarf2out_virtual_call): Remove.
14674 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14675 copy_call_info and virtual_call hooks.
14676 (dwarf2out_init): Don't initialize vcall_insn_table,
14677 debug_dcall_section and debug_vcall_section.
14678 (prune_unused_types): Don't mark nodes from dcall_table.
14679 (dwarf2out_finish): Don't output dcall or vcall tables.
14680 * final.c (final_scan_insn): Don't call direct_call or
14681 virtual_call debug hooks.
14682 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14683 virtual_call_token, copy_call_info and virtual_call hooks.
14684 (debug_nothing_uid): Remove prototype.
14685 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14686 copy_call_info and virtual_call hooks.
14687 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14688 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14689 * debug.c (do_nothing_debug_hooks): Likewise.
14690 (debug_nothing_uid): Remove.
14691 * doc/invoke.texi (-fenable-icf-debug): Remove.
14692 * common.opt (-fenable-icf-debug): Likewise.
14693
325f5379
JJ
14694 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14695 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14696 call's MEM. Handle functions returning aggregate through a hidden
14697 first pointer. For virtual calls add clobbered pc to call arguments
14698 chain.
14699 * dwarf2out.c (gen_subprogram_die): Emit
14700 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14701 can't be emitted.
14702
a58a8e4b
JJ
14703 PR debug/45882
14704 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14705 * rtl.h (ENTRY_VALUE_EXP): Define.
14706 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14707 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14708 * print-rtl.c (print_rtx): Likewise.
14709 * gengtype.c (adjust_field_rtx_def): Likewise.
14710 * var-tracking.c (vt_add_function_parameter): Adjust
14711 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14712 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14713 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14714 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14715 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14716
2b1c5433
JJ
14717 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14718 Call var_location debug hook even on CALL_INSNs.
14719 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14720 * rtl.def (ENTRY_VALUE): New.
14721 * dwarf2out.c: Include cfglayout.h.
14722 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14723 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14724 (struct call_arg_loc_node): New type.
14725 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14726 tail_call_site_count): New variables.
14727 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14728 DW_TAG_GNU_call_site_parameter.
14729 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14730 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14731 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14732 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14733 and DW_AT_GNU_all_source_call_sites.
14734 (mem_loc_descriptor): Handle ENTRY_VALUE.
14735 (add_src_coords_attributes): Don't add enything if
14736 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14737 (dwarf2out_abstract_function): Save and clear call_arg_location,
14738 call_site_count and tail_call_site_count around dwarf2out_decl call.
14739 (gen_call_site_die): New function.
14740 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14741 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14742 (dwarf2out_function_decl): Clear call_arg_locations,
14743 call_arg_loc_last, set call_site_count and tail_call_site_count
14744 to -1 and free block_map.
14745 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14746 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14747 followed by any real instructions.
14748 (dwarf2out_begin_function): Set call_site_count and
14749 tail_call_site_count to 0.
14750 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14751 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14752 attempt to force a DIE for it and worst case remove the attribute.
14753 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14754 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14755 the decl itself.
14756 * var-tracking.c: Include tm_p.h.
14757 (vt_stack_adjustments): For calls call note_register_arguments.
14758 (argument_reg_set): New variable.
14759 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14760 ensure the VALUE is resolved.
14761 (call_arguments): New variable.
14762 (prepare_call_arguments): New function.
14763 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14764 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14765 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14766 always use the best expression.
14767 (vt_expand_loc): Add ignore_cur_loc argument.
14768 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14769 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14770 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14771 note for all calls.
14772 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14773 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14774 argument. Don't call cselib_preserve_only_values and
14775 cselib_reset_table.
14776 (note_register_arguments): New function.
14777 (vt_initialize): Compute argument_reg_set. Call
14778 vt_add_function_parameters before processing basic blocks instead of
14779 afterwards. For calls call prepare_call_arguments before calling
14780 cselib_process_insn.
14781 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14782 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14783 (var-tracking.o): Depend on $(TM_P_H).
14784 * cfglayout.h (insn_scope): New prototype.
14785 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14786 * cfglayout.c (insn_scope): No longer static.
14787 * insn-notes.def (CALL_ARG_LOCATION): New.
14788 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14789 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14790 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14791 nothing for DECL_EXTERNAL BLOCK_VARS.
14792
9ef13bd0
AM
147932011-03-16 Alan Modra <amodra@gmail.com>
14794
14795 PR target/45844
14796 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14797 create invalid offset address for vsx splat insn.
14798 * config/rs6000/predicates.md (splat_input_operand): New.
14799 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14800
56b67510
XDL
148012011-03-15 Xinliang David Li <davidxl@google.com>
14802
14803 PR c/47837
14804 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14805 (normalize_preds): New function.
14806 (is_use_properly_guarded): Normalize def predicates.
14807
80fffdef
RR
148082011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14809
732f37c6 14810 PR target/46788
80fffdef
RR
14811 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14812 in the output template.
14813
930672ad
RG
148142011-03-15 Richard Guenther <rguenther@suse.de>
14815
14816 PR middle-end/47650
14817 * tree-pretty-print.c (dump_function_declaration): Properly
14818 dump unprototyped and varargs function types.
14819
c7ee7b45
RG
148202011-03-15 Richard Guenther <rguenther@suse.de>
14821
14822 PR tree-optimization/13954
14823 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14824 and friends.
14825
b2ad5e37
RG
148262011-03-15 Richard Guenther <rguenther@suse.de>
14827
14828 PR tree-optimization/48037
14829 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14830 selects into BIT_FIELD_REFs.
14831 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14832 vector select.
14833
7ee93d4e
JJ
148342011-03-15 Jakub Jelinek <jakub@redhat.com>
14835
14836 PR tree-optimization/48129
14837 * builtins.c (fold_builtin_snprintf): Convert to type of
14838 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14839 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14840
e106efc7
RG
148412011-03-15 Richard Guenther <rguenther@suse.de>
14842
14843 PR tree-optimization/41490
14844 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14845 value but with VUSE.
14846 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14847 return statements.
14848 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14849 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14850 * tree-tailcall.c (find_tail_calls): Ignore returns.
14851
17dea42f
RG
148522011-03-15 Richard Guenther <rguenther@suse.de>
14853
14854 PR middle-end/48031
14855 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14856 or variable-indexed array accesses when in gimple form.
14857
01c77a60
RG
148582011-03-15 Richard Guenther <rguenther@suse.de>
14859
16cc4440 14860 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 14861
77b0791e
AM
148622011-03-15 Alan Modra <amodra@gmail.com>
14863
14864 PR target/48032
14865 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14866 presume symbol_refs without a symbol_ref_decl are suitably
14867 aligned, nor other trees we may see here. Handle anchor symbols.
14868 (legitimate_constant_pool_address_p): Comment. Add mode param.
14869 Check cmodel=medium addresses. Adjust all calls.
14870 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14871 creating cmodel=medium optimized access to locals.
14872 * config/rs6000/constraints.md (R): Pass QImode to
14873 legitimate_constant_pool_address_p.
14874 * config/rs6000/predicates.md (input_operand): Pass mode to
14875 legitimate_constant_pool_address_p.
14876 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14877 Update prototype.
14878
35f61ba4
MM
148792011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14880
14881 PR target/48053
14882 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14883 64-bit constants being loaded into registers other than GPRs such
14884 as loading 0 into a VSX register.
14885
07332e6d
RO
148862011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14887
16cc4440 14888 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 14889
de888d90
JJ
148902011-03-14 Jakub Jelinek <jakub@redhat.com>
14891
ba3ceb2d
JJ
14892 PR middle-end/47917
14893 * builtins.c (fold_builtin_snprintf): New function.
14894 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14895 (fold_builtin_4): Likewise.
14896
2e64f8b8
JJ
14897 PR middle-end/38878
14898 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14899 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14900 and C - X == X also strip nops from +/-/p+ operand.
14901 When optimizing -X == C, fold C to arg0's type.
14902
de888d90
JJ
14903 PR debug/47946
14904 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14905 emit it as add_AT_int instead of add_AT_unsigned.
14906
149072011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
14908
14909 * unwind-dw2.c: Include sys/sdt.h if it exists.
14910 (_Unwind_DebugHook): Use STAP_PROBE2.
14911 * config.in, configure: Rebuild.
14912 * configure.ac: Check for sys/sdt.h.
14913
d34abfd2
UB
149142011-03-14 Uros Bizjak <ubizjak@gmail.com>
14915
14916 * config/i386/i386.md (ROUND_FLOOR): New constant.
14917 (ROUND_CEIL): Ditto.
14918 (ROUND_TRUNC): Ditto.
14919 (ROUND_MXCSR): Ditto.
14920 (ROUND_NO_EXC): Ditto.
14921 (rint<mode>2): Use new defines instead of numerical constants.
14922 (floor<mode>2): Ditto.
14923 (ceil<mode>2): Ditto.
14924 (btrunc<mode>2): Ditto.
14925 * config/i386/i386-builtin-types.def: Define ROUND function type
14926 aliases.
14927 * config/i386/i386.c (enum ix86_builtins): Add
14928 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14929 (struct builtin_description): Add
14930 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14931 (ix86_expand_sse_round): New static function.
14932 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14933 function types.
14934 (ix86_builtin_vectorized_function): Handle
14935 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14936
87f9e23d
TT
149372011-03-14 Tom Tromey <tromey@redhat.com>
14938
14939 * c-parser.c (c_parser_asm_string_literal): Clear
14940 warn_overlength_strings.
14941
b3ab9ea2
TT
149422011-03-14 Tom Tromey <tromey@redhat.com>
14943
14944 * c-parser.c (disable_extension_diagnostics): Save
14945 warn_overlength_strings.
14946 (restore_extension_diagnostics): Restore warn_overlength_strings.
14947
6bd73dd8
JJ
149482011-03-14 Jakub Jelinek <jakub@redhat.com>
14949
14950 * BASE-VER: Change to 4.7.0.
14951
7f4d6e1b
RG
149522011-03-14 Richard Guenther <rguenther@suse.de>
14953
14954 PR middle-end/48098
14955 * tree.c (build_vector_from_val): Adjust assert to requirements
14956 and reality.
14957
c6104ef1
JJ
149582011-03-14 Jakub Jelinek <jakub@redhat.com>
14959
14960 PR bootstrap/48102
d34abfd2 14961 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 14962
dfa95e19
AT
149632011-03-14 Andreas Tobler <andreast@fgznet.ch>
14964
f60c2554 14965 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
14966 terms of target_flags_explicit. Adjust copyright year.
14967
14968 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14969 * config/rs6000/t-freebsd: New file. Add override for
14970 LIB2FUNCS_EXTRA.
14971
bb322018
CD
149722011-03-13 Chris Demetriou <cgd@google.com>
14973
14974 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14975 (-fno-diagnostics-show-option): this, to reflect current default.
14976 (-Werror=): Update text about -fno-diagnostics-show-option.
14977
12b1c80b
PB
149782011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14979
14980 PR target/48053
14981 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14982 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14983 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14984 mode is not V2DImode or V2DFmode.
14985 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14986 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14987 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14988 registers to 0.
14989 (movdi_internal64): Likewise.
14990
57d598f7
SP
149912011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14992
14993 PR tree-optimization/47127
14994 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14995 parameter.
14996 (set_cloog_options): Same.
14997 (scop_to_clast): Same.
14998 (print_clast_stmt): Do not call cloog_state_malloc and
14999 cloog_state_free.
15000 (print_generated_program): Same.
15001 (gloog): Same.
15002 * graphite-clast-to-gimple.h (cloog_state): Declared.
15003 (scop_to_clast): Adjust declaration.
15004 * graphite.c (cloog_state): Defined here.
15005 (graphite_initialize): Call cloog_state_malloc.
15006 (graphite_finalize): Call cloog_state_free.
15007
f231b5ff
JM
150082011-03-11 Jason Merrill <jason@redhat.com>
15009
15010 * attribs.c (lookup_attribute_spec): Take const_tree.
15011 * tree.h: Adjust.
15012
6a4e2bd5
JM
150132011-03-11 Joseph Myers <joseph@codesourcery.com>
15014
15015 * config/sparc/sparc.c (sparc_option_override): Use
15016 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15017
a758fd67
RG
150182011-03-11 Richard Guenther <rguenther@suse.de>
15019
15020 PR tree-optimization/48067
15021 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15022 multiplication result will be only used once on the target
15023 stmt.
15024
03dfda54
RG
150252011-03-11 Richard Guenther <rguenther@suse.de>
15026
15027 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15028
5f11a50a
RG
150292011-03-11 Richard Guenther <rguenther@suse.de>
15030
15031 PR lto/48073
15032 * tree.c (find_decls_types_r): Do not walk types only reachable
15033 from IDENTIFIER_NODEs.
15034
4074f163
JJ
150352011-03-11 Jakub Jelinek <jakub@redhat.com>
15036
15037 PR middle-end/48044
15038 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15039 all vnode->force_output nodes as needed.
15040
30f7cdcd
JM
150412011-03-11 Jason Merrill <jason@redhat.com>
15042
15043 PR c++/48069
15044 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15045 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15046
62ecfeb8
MJ
150472011-03-11 Martin Jambor <mjambor@suse.cz>
15048
15049 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15050 cgraph_node.
15051
e89e03ab
JJ
150522011-03-11 Jakub Jelinek <jakub@redhat.com>
15053
15054 PR tree-optimization/48063
15055 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15056 inline functions called once if !tree_can_inline_p (node->callers).
15057
efbe978b 150582011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 15059
efbe978b
EB
15060 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15061 extra_objs.
9d6193a7
CL
15062 * config/score/score3.c: Delete.
15063 * config/score/score3.h: Delete.
15064 * config/score/mul-div.S: Delete.
15065 * config/score/sfp-machine.h: Add new file.
15066 * config/score/constraints.md: Add new file.
15067 * config/score/t-score-softfp: Add new file.
efbe978b 15068 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
15069 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15070 (score7_extra_constraint): Delete.
efbe978b 15071 (score7_option_override): Remove unused code.
9d6193a7
CL
15072 * config/score/score.c: Remove score3 and score5 define and code.
15073 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 15074 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
15075 * config/score/score.opt: Remove score3 and score5 options.
15076
5de27cca
JDA
150772011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15078
15079 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15080 when _HPUX_SOURCE is defined.
15081 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15082
18d92053
JM
150832011-03-10 Jason Merrill <jason@redhat.com>
15084
15085 PR c++/48029
15086 * stor-layout.c (layout_type): Don't set structural equality
15087 on arrays of incomplete type.
15088 * tree.c (type_hash_eq): Handle comparing them properly.
15089
67a2f76d
JJ
150902011-03-10 Jakub Jelinek <jakub@redhat.com>
15091
15092 PR debug/48043
18d92053 15093 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
15094 result mode matches original rtl mode.
15095
d845b2f9
NC
150962011-03-10 Nick Clifton <nickc@redhat.com>
15097
15098 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 15099 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 15100
db7ec035
JJ
151012011-03-09 Jakub Jelinek <jakub@redhat.com>
15102
15103 PR rtl-optimization/47866
15104 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15105 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15106 if target wasn't scalar.
15107 * function.c (assign_stack_temp_for_type): Assert that neither
15108 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15109 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15110 macro.
15111 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15112
5d304e47
AK
151132011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15114
15115 * config/s390/s390-protos.h (s390_label_align): New prototype.
15116 * config/s390/s390.c (s390_label_align): New function.
15117 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15118
93b826f0
MM
151192011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15120
15121 PR target/47755
15122 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15123 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15124 (output_vec_const_move): Ditto.
15125
ef78aed6
AS
151262011-03-08 Anatoly Sokolov <aesok@post.ru>
15127
15128 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15129 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15130 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15131 Change 'rclass' argument and result type to reg_class_t.
15132 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15133
5f892aa0
GJL
151342011-03-08 Georg-Johann Lay <avr@gjlay.de>
15135
9e43ad68
UB
15136 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15137 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15138 (TARGET_MEMORY_MOVE_COST): Define.
15139 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 15140
32bd2409
JJ
151412011-03-08 Jakub Jelinek <jakub@redhat.com>
15142
530a4800
JJ
15143 PR debug/47881
15144 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15145 removed anything.
15146
32bd2409
JJ
15147 PR tree-optimization/48022
15148 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15149 for EQ/NE_EXPR.
15150
c7148991
JJ
151512011-03-07 Jakub Jelinek <jakub@redhat.com>
15152
15153 PR debug/47991
15154 * var-tracking.c (find_use_val): Return NULL for
15155 cui->sets && cui->store_p BLKmode MEMs.
15156
43070a6e
AS
151572011-03-07 Anatoly Sokolov <aesok@post.ru>
15158
15159 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15160 Remove.
15161 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15162 xstormy16_print_operand_address): Remove.
15163 * config/stormy16/stormy16.c (xstormy16_print_operand,
15164 xstormy16_print_operand_address): Make static.
15165 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15166
efbe978b 151672011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
15168
15169 PR target/47862
15170 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15171 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15172 before definition.
15173
cec8ac0b
ZD
151742011-03-07 Zdenek Dvorak <ook@ucw.cz>
15175
15176 PR bootstrap/48000
15177 * cfgloopmanip.c (fix_bb_placements): Return immediately
15178 if FROM is BASE_LOOP's header.
15179
59527282
PW
151802011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15181
15182 * gimplify.c (gimplify_function_tree): Fix building calls
15183 to __builtin_return_address.
15184
617718f7
AM
151852011-03-07 Alan Modra <amodra@gmail.com>
15186
15187 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15188 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15189 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15190 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15191 return_mode args.
15192 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15193 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15194 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15195 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15196 * config/rs6000/rs6000.c
15197 (rs6000_elf_end_indicate_exec_stack): Rename to..
15198 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15199 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15200 (rs6000_file_start): ..here.
15201 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15202 file scope variables.
15203 (call_ABI_of_interest): New function.
15204 (init_cumulative_args): Set above vars when function return value
15205 is a float, vector, or small struct.
15206 (rs6000_function_arg_advance_1): Likewise for function args.
15207 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15208 references float args.
15209
38528d50
MX
152102011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15211
15212 * doc/cfg.texi: Remove "See" before @ref.
15213 * doc/invoke.texi: Likewise.
15214
f42cf4f4
JM
152152011-03-05 Jason Merrill <jason@redhat.com>
15216
15217 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15218
804a304d
AG
152192011-03-05 Anthony Green <green@moxielogic.com>
15220
15221 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15222
634ee309
ZD
152232011-03-05 Zdenek Dvorak <ook@ucw.cz>
15224
15225 PR rtl-optimization/47899
15226 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15227 to flow_loop_nested_p when moving the loop upward.
15228
6fe471c8
RE
152292011-03-05 Richard Earnshaw <rearnsha@arm.com>
15230
15231 PR target/47719
15232 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15233
cc58ceee
JJ
152342011-03-05 Jakub Jelinek <jakub@redhat.com>
15235
15236 PR tree-optimization/47967
15237 * ipa-cp.c (build_const_val): Return NULL instead of creating
15238 VIEW_CONVERT_EXPR for mismatching sizes.
15239 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15240 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15241 give up on versioning.
15242
ea868305
AM
152432011-03-05 Alan Modra <amodra@gmail.com>
15244
15245 PR target/47986
15246 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15247 full cmodel medium/large lo_sum + high addresses.
15248
bc6ce334
AK
152492011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15250
15251 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15252 pool references in UNSPEC_LTREL_OFFSET.
15253
87e7b310
JH
152542011-03-04 Jan Hubicka <jh@suse.cz>
15255
15256 PR lto/47497
15257 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15258 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
15259 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15260 Add node pointers.
87e7b310
JH
15261 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15262 cgraph_add_thunk): Add node pointers.
15263 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15264 associated to right node.
15265 (input_node): Update use of cgraph_same_body_alias
15266 and cgraph_add_thunk.
15267
d9c64246
CF
152682011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15269
15270 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
15271 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15272 modes when the flag -mprefer-avx128 is on.
d9c64246 15273
08707076
RS
152742011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15275
15276 * dwarf2out.c (compare_loc_operands): Fix address handling.
15277
52517c81
AM
152782011-03-04 Alan Modra <amodra@gmail.com>
15279
15280 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15281
b147c5b9
RG
152822011-03-04 Richard Guenther <rguenther@suse.de>
15283
15284 PR middle-end/47968
15285 * expmed.c (extract_bit_field_1): Prefer vector modes that
15286 vec_extract patterns can handle.
15287
8750672f
RG
152882011-03-04 Richard Guenther <rguenther@suse.de>
15289
15290 PR middle-end/47975
15291 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15292
9eac0f2a
RH
152932011-03-04 Richard Henderson <rth@redhat.com>
15294
15295 * explow.c (emit_stack_save): Remove 'after' parameter.
15296 (emit_stack_restore): Likewise.
15297 * expr.h: Update to match.
15298 * builtins.c, calls.c, stmt.c: Likewise.
15299 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15300 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15301 * function.c (expand_function_end): Insert the emit_stack_save
15302 sequence before parm_birth_insn instead of after.
15303
dfee1406
UB
153042011-03-03 Uros Bizjak <ubizjak@gmail.com>
15305
15306 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15307 (ssse3_pmaddubsw128): Ditto.
15308 (ssse3_pmaddubsw): Ditto.
15309
f1d4c3de
SE
153102011-03-03 Steve Ellcey <sje@cup.hp.com>
15311
15312 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15313
71f3a3f5
JJ
153142011-03-03 Jakub Jelinek <jakub@redhat.com>
15315
423ed416
JJ
15316 PR c/47963
15317 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15318 on TYPE_SIZE_UNIT if it is a DECL.
15319
71f3a3f5
JJ
15320 PR debug/47283
15321 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15322 first operand is not is_gimple_mem_ref_addr, try to fold it.
15323 If the operand still isn't is_gimple_mem_ref_addr, clear
15324 MEM_EXPR on op0.
15325
4b1a5c0d
RG
153262011-03-03 Richard Guenther <rguenther@suse.de>
15327
15328 PR middle-end/47283
15329 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15330 match comment.
15331 (refs_may_alias_p_1): For release branches return true if
15332 we are confused by our input.
15333
b46616fd
AK
153342011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15335
15336 * config/s390/s390.c (s390_function_value): Rename to ...
15337 (s390_function_and_libcall_value): ... this.
15338 (s390_function_value): New function.
15339 (s390_libcall_value): New function.
dfee1406 15340 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
15341 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15342 target macro definitions.
15343 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15344
46d8fabb
JM
153452011-03-02 Joseph Myers <joseph@codesourcery.com>
15346
15347 * config/i386/freebsd64.h (CC1_SPEC): Define.
15348 * config/i386/linux64.h (CC1_SPEC): Define.
15349 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15350
6b1ce545
AS
153512011-03-02 Anatoly Sokolov <aesok@post.ru>
15352
15353 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15354 Remove.
15355 * config/stormy16/stormy16.c: Include reload.h.
15356 (xstormy16_memory_move_cost): New function.
15357 (TARGET_MEMORY_MOVE_COST): Define.
15358
34161e98
RS
153592011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15360
15361 PR rtl-optimization/47925
15362 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15363 with side effects. Remove the more-specific check for volatile asms.
15364
f60a97cf
AM
153652011-03-02 Alan Modra <amodra@gmail.com>
15366
15367 PR target/47935
15368 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15369 toc relative addresses for valid offsets.
15370
f2ca11ca
RG
153712011-03-01 Richard Guenther <rguenther@suse.de>
15372
15373 PR tree-optimization/47890
15374 * tree-vect-loop.c (get_initial_def_for_induction): Set
15375 related stmt properly.
15376
7a00d9ea
RG
153772011-03-01 Richard Guenther <rguenther@suse.de>
15378
15379 PR lto/47924
15380 * lto-streamer.c (lto_record_common_node): Also register
15381 the canonical type.
15382
06c7edcc
RG
153832011-03-01 Richard Guenther <rguenther@suse.de>
15384
15385 PR lto/46911
15386 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15387 Do not stream DECL_ABSTRACT_ORIGIN.
15388 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15389 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15390 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15391 Do not stream DECL_ABSTRACT_ORIGIN.
15392 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15393 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15394
998871e9
AS
153952011-02-28 Anatoly Sokolov <aesok@post.ru>
15396
15397 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15398 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 15399 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
15400 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15401 Add 'outgoing' argument.
15402 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15403 function.
15404 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15405 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15406
94369251
KT
154072011-02-28 Kai Tietz <kai.tietz@onevision.com>
15408
15409 PR debug/28047
15410 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15411 (lookup_filename): Likewise.
b2e2ea67 15412 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 15413
80a832cd
JJ
154142011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15415 Jakub Jelinek <jakub@redhat.com>
15416
15417 PR middle-end/47893
15418 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15419 (assign_stack_local_1): Change last argument type to int.
15420 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15421 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 15422 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
15423 (assign_stack_local): Adjust caller.
15424 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15425 of assign_stack_local, pass 0 as last argument.
15426 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15427 callers.
15428
1b500976
JJ
154292011-02-28 Jakub Jelinek <jakub@redhat.com>
15430
f61c6f34
JJ
15431 PR debug/47283
15432 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15433 Use target address_mode and pointer_mode hooks instead of hardcoded
15434 Pmode and ptr_mode. Handle some simple cases of extending if
15435 POINTERS_EXTEND_UNSIGNED < 0.
15436 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15437 Call convert_debug_memory_address.
15438 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15439 convert_debug_memory_address.
15440
1b500976
JJ
15441 PR middle-end/46790
15442 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15443 * configure: Regenerated.
15444 * config.in: Regenerated.
15445 * varasm.c (default_function_section): Return NULL
b2e2ea67 15446 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 15447
2f2935b6
MJ
154482011-02-28 Martin Jambor <mjambor@suse.cz>
15449
15450 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15451 the description to match the printed values.
15452
474086eb
RG
154532011-02-28 Richard Guenther <rguenther@suse.de>
15454
15455 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15456 of the copied scope tree.
15457
15bf6f3a
RW
154582011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15459
15460 * doc/extend.texi (Function Attributes): Avoid deeply (and
15461 wrongly) nested tables.
15462
f6b439c9
JJ
154632011-02-27 Jakub Jelinek <jakub@redhat.com>
15464
15465 PR middle-end/47903
15466 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15467 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15468 r isn't op0 nor op1.
15469
1d8ca2c7
GJL
154702011-02-23 Georg-Johann Lay <avr@gjlay.de>
15471
15472 * config/avr/avr.md: Remove magic comment for emacs.
15473
593fca4b
GJL
154742011-02-23 Georg-Johann Lay <avr@gjlay.de>
15475
15476 PR target/45261
15477 * config/avr/avr.c (avr_option_override): Use error on bad options.
15478 (avr_help): New function.
15479 (TARGET_HELP): Define.
15480
6609216e
GJL
154812011-02-22 Georg-Johann Lay <avr@gjlay.de>
15482
15483 PR target/42240
15484 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15485 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15486
03d458af
GP
154872011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15488
15489 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15490 (ARM Options): Ditto.
15491 (i386 and x86-64 Options): Ditto.
15492 (RX Options): Ditto.
15493 (SPARC Options): Ditto.
15494
1c379b78
TC
154952011-02-26 Tijl Coosemans <tijl@coosemans.org>
15496
15497 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15498 FreeBSD 6 and later. Generally use cpu generic.
15499
d5ed058c 155002011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 15501
d5ed058c
GP
15502 * doc/cpp.texi: Update copyright years.
15503
509d65dd 155042011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 15505
509d65dd 15506 PR target/46898
308d39cd
SB
15507 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15508
509d65dd 155092011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 15510
509d65dd 15511 PR target/46898
308d39cd
SB
15512 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15513 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15514 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15515 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 15516 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
15517 (gen_int_relational): Move declarations to start of function.
15518
822ba6d7
EB
155192011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15520
15521 PR tree-optimization/45470
15522 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15523 can throw internally only.
15524 * tree-vect-stmts.c (vectorizable_call): Likewise.
15525
ef795fc2
AS
155262011-02-24 Anatoly Sokolov <aesok@post.ru>
15527
15528 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15529 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15530 * config/stormy16/stormy16-protos.h
15531 (xstormy16_preferred_reload_class): Remove.
15532 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15533 static. Change 'rclass' argument and return type to reg_class_t.
15534 (TARGET_PREFERRED_RELOAD_CLASS,
15535 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15536
1c3277ee
RG
155372011-02-24 Richard Guenther <rguenther@suse.de>
15538
15539 * lto-streamer-in.c (input_bb): Do not find referenced vars
15540 in debug statements.
15541
67e18edb
JM
155422011-02-23 Jason Merrill <jason@redhat.com>
15543
15544 * common.opt (fabi-version): Document v5 and v6.
15545
b14fad9d
RG
155462011-02-23 Richard Guenther <rguenther@suse.de>
15547
15548 PR tree-optimization/47849
15549 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15550
7fcf46f5
JZ
155512011-02-23 Jie Zhang <jie@codesourcery.com>
15552
15553 * opts-common.c (decode_cmdline_option): Print empty string
15554 argument as "" in decoded->orig_option_with_args_text.
15555 * gcc.c (execute): Print empty string argument as ""
15556 in the verbose output.
15557 (do_spec_1): Keep empty string argument.
15558
f85b70fd
NF
155592011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15560
15561 * config.gcc: Declare score-* and crx-* obsolete.
15562
b152a615
JZ
155632011-02-23 Jie Zhang <jie@codesourcery.com>
15564
15565 PR rtl-optimization/47763
15566 * web.c (web_main): Ignore naked clobber when replacing register.
15567
bb6e77bc
AS
155682011-02-22 Anatoly Sokolov <aesok@post.ru>
15569
15570 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15571 Remove.
15572
68bf6491
SP
155732011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15574
15575 PR doc/47848
15576 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15577
88ee1fc7
MS
155782011-02-22 Mike Stump <mikestump@comcast.net>
15579
15580 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15581 assembler.
15582 * configure: Regenerate.
15583
6042d1dd
CLT
155842011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15585
15586 PR rtl-optimization/46002
15587 * ira-color.c (update_copy_costs): Change class intersection
15588 test to reg_class_contents[] test of 'hard_regno'.
15589
7de97f9e
JM
155902011-02-21 Joseph Myers <joseph@codesourcery.com>
15591
15592 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15593 than Driver option.
15594 * config/hpux11.opt (mt): Likewise.
15595 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15596 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15597 * config/vax/elf.opt (mno-asm-pic): Likewise.
15598 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15599
d1d46f9f
MS
156002011-02-21 Mike Stump <mikestump@comcast.net>
15601
15602 PR target/47822
15603 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15604 tree so we can get save the type.
15605 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15606 for CFString instead of trying to use past the end of the builtins.
15607 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15608 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15609 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15610 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15611 Rename to darwin_builtin_cfstring.
15612 (darwin_init_cfstring_builtins): Return the built type.
15613
23e0d930
UB
156142011-02-21 Uros Bizjak <ubizjak@gmail.com>
15615
15616 PR target/47840
15617 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15618 (_mm256_insert_epi64): Use _mm_insert_epi64.
15619
192997cf
AS
156202011-02-21 Anatoly Sokolov <aesok@post.ru>
15621
15622 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15623 * config/stormy16/stormy16-protos.h
15624 (xstormy16_mode_dependent_address_p): Remove.
15625 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15626 Make static. Change return type to bool. Change argument type to
15627 const_rtx. Remove dead code.
15628 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15629
e292d003
RG
156302011-02-21 Richard Guenther <rguenther@suse.de>
15631
15632 PR lto/47820
15633 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15634 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15635 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15636 TUs context.
23e0d930 15637 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
15638 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15639
77f846e9
RG
156402011-02-20 Richard Guenther <rguenther@suse.de>
15641
15642 PR lto/47822
15643 * tree.c (free_lang_data_in_decl): Clean builtins from
15644 the TU decl BLOCK_VARS.
23e0d930 15645
b2cddfc8
AO
156462011-02-19 Alexandre Oliva <aoliva@redhat.com>
15647
15648 PR debug/47620
15649 PR debug/47630
15650 * haifa-sched.c (fix_tick_ready): Skip tick computation
15651 for debug insns.
15652
becf4c11
RG
156532011-02-19 Richard Guenther <rguenther@suse.de>
15654
15655 PR lto/47647
15656 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15657 Remove lazy BLOCK_VARS streaming.
15658 (lto_input_ts_block_tree_pointers): Likewise.
15659 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15660
27f98305
JM
156612011-02-19 Joseph Myers <joseph@codesourcery.com>
15662
15663 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15664
064bf3f4
JM
156652011-02-19 Joseph Myers <joseph@codesourcery.com>
15666
15667 * config/i386/biarch32.h, config/i386/mach.h,
15668 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15669
9215ddc3
JJ
156702011-02-19 Jakub Jelinek <jakub@redhat.com>
15671
15672 PR target/47800
15673 * config/i386/i386.md (peephole2 for shift and plus): Use
15674 operands[1] original mode in the first insn.
15675
8b021004
MS
156762011-02-18 Mike Stump <mikestump@comcast.net>
15677
65ded153 15678 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 15679
f84ae14c
JH
156802011-02-18 Jan Hubicka <jh@suse.cz>
15681
15682 PR middle-end/47788
65ded153
EB
15683 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15684 to zero when the function is not inlinable at all.
f84ae14c 15685
eddabc80
JDA
156862011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15687
15688 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15689 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15690 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15691 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15692 * config/pa/t-pa64: Likewise.
15693 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15694
ca3da783
JJ
156952011-02-18 Jakub Jelinek <jakub@redhat.com>
15696
15697 PR driver/47787
15698 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15699
430aa868
JDA
157002011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15701
15702 PR target/47792
15703 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15704
4bf7ff7e
AS
157052011-02-18 Anatoly Sokolov <aesok@post.ru>
15706
15707 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15708 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15709 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15710 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15711 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15712 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15713 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15714 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15715 m32r_legitimate_address_p): New functions.
15716 * config/m32r/constraints.md (constraint "S"): Don't use
15717 STORE_PREINC_PREDEC_P.
15718 (constraint "U"): Don't use LOAD_POSTINC_P.
15719
7efcf910
CLT
157202011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15721
15722 PR rtl-optimization/46178
15723 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15724 compute ira_hard_regno_cover_class[].
15725
237d6259
RG
157262011-02-18 Richard Guenther <rguenther@suse.de>
15727
15728 PR lto/47798
15729 * lto-streamer.h (lto_global_var_decls): Declare.
15730 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15731 statics for global var processing.
15732
12d80acc
RG
157332011-02-18 Richard Guenther <rguenther@suse.de>
15734
15735 PR tree-optimization/47737
15736 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15737 edge dominance check.
15738
abfea58d
JJ
157392011-02-18 Jakub Jelinek <jakub@redhat.com>
15740
15741 PR debug/47780
15742 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15743 avoid invalid rtx sharing.
15744
f73c8882
GP
157452011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15746
15747 * doc/cpp.texi (Obsolete Features): Add background on the
15748 origin of assertions.
15749
d764a8e6
IS
157502011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15751
15752 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 15753 objc_abi == 2.
d764a8e6
IS
15754 * config/darwin.c (output_objc_section_asm_op): Added support for
15755 ABI v1 and v2.
15756 (is_objc_metadata): New.
15757 (darwin_objc2_section): New.
15758 (darwin_objc1_section): New.
15759 (machopic_select_section): Added support for ABI v1 and v2.
15760 (darwin_emit_objc_zeroed): New.
15761 (darwin_output_aligned_bss): Detect objc metadata and treat it
15762 appropriately.
15763 (darwin_asm_output_aligned_decl_common): Same.
15764 (darwin_asm_output_aligned_decl_local): Same.
15765 * config/darwin-sections.def: Updated for ABI v1 and v2.
15766 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15767 compiling Objective-C code for the NeXT runtime, default to using
15768 ABI version 0 for 32-bit, and version 2 for 64-bit.
15769
0a8134ca
JM
157702011-02-17 Joseph Myers <joseph@codesourcery.com>
15771
15772 * common.opt (optimize_fast): New Variable.
15773 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15774 instead of local variable ofast.
15775
0a256240
NP
157762011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15777
15778 * doc/invoke.texi (fobjc-abi-version): Documented.
15779 (fobjc-nilcheck): Documented.
15780 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15781 version.
15782
fa381cb2
JM
157832011-02-17 Joseph Myers <joseph@codesourcery.com>
15784
15785 PR driver/47390
15786 * common.opt (export-dynamic): New Driver option.
15787 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15788
5437eaa6
JM
157892011-02-17 Joseph Myers <joseph@codesourcery.com>
15790
15791 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15792
bb7e6d55
AO
157932011-02-17 Alexandre Oliva <aoliva@redhat.com>
15794 Jan Hubicka <jh@suse.cz>
15795
15796 PR debug/47106
15797 PR debug/47402
15798 * cfgexpand.c (account_used_vars_for_block): Remove.
15799 (estimated_stack_frame_size): Use referenced vars.
15800 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15801 that were referenced in the original function. Test src_fn
15802 rather than cfun. Drop redundant get_var_ann.
15803 (setup_one_parameter): Drop redundant get_var_ann.
15804 (declare_return_variable): Likewise.
15805 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15806 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15807 * ipa-inline.c (compute_inline_parameters): Do not compute
15808 disregard_inline_limits here.
bb7e6d55
AO
15809 (compute_inlinable_for_current, pass_inlinable): New.
15810 (pass_inline_parameters): Require PROP_referenced_vars.
15811 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 15812 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
15813 (cgraph_analyze_function): Set .disregard_inline_limits.
15814 * tree-sra.c (convert_callers): Compute inliner parameters
15815 only for functions already in SSA form.
15816
f181a8a7
JM
158172011-02-17 Joseph Myers <joseph@codesourcery.com>
15818
15819 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15820 -mlittle-endian-data.
15821
c6869789
JM
158222011-02-17 Joseph Myers <joseph@codesourcery.com>
15823
15824 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15825 -mno-fpu, not -fpu and -no-fpu.
15826 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15827 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15828
fbf4bfd3
UB
158292011-02-17 Uros Bizjak <ubizjak@gmail.com>
15830
15831 PR target/43653
15832 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15833 input reload with PLUS RTX.
15834
70be5dc7
JM
158352011-02-16 Joseph Myers <joseph@codesourcery.com>
15836
15837 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15838 of InverseVar(MDMX).
15839
30b1646e
JM
158402011-02-16 Joseph Myers <joseph@codesourcery.com>
15841
15842 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15843 --m4-340.
15844
ab7b71e9
JM
158452011-02-16 Joseph Myers <joseph@codesourcery.com>
15846
15847 * config/mn10300/mn10300.opt (mno-crt0): New.
15848
466f3f08
JM
158492011-02-16 Joseph Myers <joseph@codesourcery.com>
15850
15851 * config/m68k/uclinux.opt (static-libc): New Driver option.
15852
8226cd7b
JM
158532011-02-16 Joseph Myers <joseph@codesourcery.com>
15854
15855 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15856
45cab1d7
JM
158572011-02-16 Joseph Myers <joseph@codesourcery.com>
15858
15859 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15860 %{muser-extend-enabled}.
15861
65aab64f
RG
158622011-02-16 Richard Guenther <rguenther@suse.de>
15863
15864 PR tree-optimization/47738
15865 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15866 the TODO from tree_predictive_commoning.
15867
fc2fa4fb
JL
158682011-02-15 Jeff Law <law@redhat.com>
15869
15870 Revert
15871 2011-01-25 Jeff Law <law@redhat.com>
15872
15873 PR rtl-optimization/37273
15874 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15875 handle them like argument loads from stack slots. Do not double
15876 count memory for memory constants and argument loads from stack slots.
15877
4e380b8e
L
158782011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15879
15880 PR middle-end/47725
15881 * combine.c (cant_combine_insn_p): Revert the last change.
15882
e3a69bb4
MM
158832011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15884
15885 PR target/47755
15886 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15887 mode for vector constants. Remove code that checks for TImode.
15888
de650422
AO
158892011-02-15 Alexandre Oliva <aoliva@redhat.com>
15890
15891 PR debug/47106
15892 PR debug/47402
15893 * cgraph.h (compute_inline_parameters): Return void.
15894 * ipa-inline.c (compute_inline_parameters): Adjust.
15895
30925d94
AO
158962011-02-15 Alexandre Oliva <aoliva@redhat.com>
15897
15898 PR debug/47106
15899 PR debug/47402
15900 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15901 rather than decl.
15902 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15903 * ipa-inline.c (compute_inline_parameters): Adjust.
15904
1b9a784a
AO
159052011-02-15 Alexandre Oliva <aoliva@redhat.com>
15906
15907 PR debug/47106
15908 PR debug/47402
15909 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15910 Adjust all users. Pass FN to...
15911 * tree-flow-inline.h (first_referenced_var): ... this. Add
15912 fn argument.
15913 * ipa-struct-reorg.c: Adjust.
15914 * tree-dfa.c: Adjust.
15915 * tree-into-ssa.c: Adjust.
15916 * tree-sra.c: Adjust.
15917 * tree-ssa-alias.c: Adjust.
15918 * tree-ssa-live.c: Adjust.
15919 * tree-ssa.c: Adjust.
15920 * tree-ssanames.c: Adjust.
15921 * tree-tailcall.c: Adjust.
15922
27c6b086
AO
159232011-02-15 Alexandre Oliva <aoliva@redhat.com>
15924
15925 PR debug/47106
15926 PR debug/47402
15927 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15928 Adjust all callers.
15929 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15930 * tree-flow-inline.h: Adjust.
15931 * gimple-pretty-print.c: Adjust.
15932 * tree-into-ssa.c: Adjust.
15933 * tree-ssa.c: Adjust.
15934 * cfgexpand.c: Adjust.
15935
679e8183
NF
159362011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15937
fbf4bfd3
UB
15938 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15939 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15940 (EXTRA_CONSTRAINT): Delete.
15941 * config/iq2000/constraints.md: New file.
15942 * config/iq2000/iq2000.md: Include it.
679e8183
NF
15943 (define_insn ""): Delete.
15944 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15945 unsupported constraint letters from patterns.
15946 (call_value, call_value_internal1): Likewise.
15947 (call_value_multiple_internal1): Likewise.
15948
a45d420a
NC
159492011-02-15 Nick Clifton <nickc@redhat.com>
15950
15951 * config/mn10300/mn10300.c: Include tm-constrs.h.
15952 (struct liw_data): New data structure describing an LIW candidate
15953 instruction.
15954 (extract_bundle): Use struct liw_data. Allow small integer
15955 operands for some instructions.
15956 (check_liw_constraints): Use struct liw_data. Remove swapped
15957 parameter. Add comments describing the checks. Fix bug when
15958 assigning the source of liw1 to the source of liw2.
15959 (liw_candidate): Delete. Code moved into extract_bundle.
15960 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15961 before swapping.
15962 * config/mn10300/predicates.md (liw_operand): New predicate.
15963 Allows registers and small integer constants.
15964 * config/mn10300/constraints.md (O): New constraint. Accetps
15965 integers in the range -8 to +7 inclusive.
15966 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15967 for moving a small integer into a register. Give this alternative
15968 LIW attributes.
15969 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15970 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15971 using the J,K,L and M constraints,
15972 (liw): Remove SI mode on second operands to allow for HI and QI
15973 mode values.
15974 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15975 instruction.
15976
8a73faf1
L
159772011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15978
15979 PR middle-end/47725
15980 * combine.c (cant_combine_insn_p): Check zero/sign extended
15981 hard registers.
15982
48feba28
RG
159832011-02-15 Richard Guenther <rguenther@suse.de>
15984
15985 PR tree-optimization/47743
15986 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15987 for a non-type-compatible VN lookup bail out.
15988
ad1c1eeb
NF
159892011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15990
15991 * config/fr30/constraints.md: New file.
15992 * config/fr30/fr30.md: Include it.
15993 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15994 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15995 (EXTRA_CONSTRAINT): Delete.
15996
49ac143d
NF
159972011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15998
15999 * config/frv/constraints.md: New file.
16000 * config/frv/predicates.md: Include it.
16001 * config/frv/frv.c (reg_class_from_letter): Delete.
16002 (frv_option_override): Don't initialize it.
16003 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16004 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16005 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16006 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16007 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16008 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16009 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16010 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16011 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16012 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16013 (REG_CLASS_FROM_CONSTRAINT): Delete.
16014
c95f9494
JJ
160152011-02-15 Jakub Jelinek <jakub@redhat.com>
16016
16017 PR middle-end/47581
16018 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16019 if frame size is 0 in a leaf function.
16020
13aed611
RO
160212011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16022
16023 PR pch/14940
16024 * config/alpha/host-osf.c: New file.
16025 * config/alpha/x-osf: New file.
16026 * config.host (alpha*-dec-osf*): Use it.
16027
b09c3081
AS
160282011-02-14 Anatoly Sokolov <aesok@post.ru>
16029
16030 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16031 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16032 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16033 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16034 type to const_rtx.
16035 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16036
d634083b
NF
160372011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16038
16039 * config/stormy16/constraints.md: New file.
16040 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16041 Use satisfies_constraint_Q and satisfies_constraint_R.
16042 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16043 Delete.
16044 (xstormy16_legitiamte_address_p): Declare.
16045 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16046 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16047 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 16048 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
16049 Un-staticize.
16050 (xstormy16_extra_constraint_p): Delete.
16051
c7dd803e
EB
160522011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16053
16054 PR tree-optimization/46494
16055 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16056 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16057 (pass_rtl_loop_done): Add TODO_verify_flow.
16058 * fwprop.c (pass_rtl_fwprop): Likewise.
16059 * modulo-sched.c (pass_sms): Likewise.
16060 * tree-ssa-dom.c (pass_dominator): Likewise.
16061 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16062 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16063 (pass_tree_loop_done): Likewise.
16064 * tree-ssa-pre.c (execute_pre): Likewise.
16065 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16066 * tree-ssa-sink.c (pass_sink_code): Likewise.
16067 * tree-vrp.c (pass_vrp): Likewise.
16068
c6150df6
NF
160692011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16070
c7dd803e
EB
16071 * config/v850/constraints.md: New file.
16072 * config/v850/v850.md: Include it.
16073 * config/v850/predicates.md (reg_or_0_operand): Use
16074 satisfies_constraint_G.
16075 (special_symbolref_operand): Use satisfies_constraint_K.
16076 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16077 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16078 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16079 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16080 (EXTRA_CONSTRAINT): Delete.
16081 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16082 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16083 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 16084
30dd1ea3
AS
160852011-02-14 Anatoly Sokolov <aesok@post.ru>
16086
16087 PR target/47696
16088 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16089 description.
16090
944f4bb3
NF
160912011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16092
16093 * config/mcore/constraints.md: New file.
16094 * config/mcore/mcore.md: Include it.
16095 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16096 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16097 (REG_CLASS_FROM_LETTER): Delete.
16098 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16099 insn_const_int_ok_for_constraint.
16100 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16101 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16102 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16103 (EXTRA_CONSTRAINT): Delete.
16104
ad56a54c
RO
161052011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16106
16107 PR ada/41929
16108 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16109 (IS_SIGHANDLER): Define.
16110 (sparc64_is_sighandler): New function, split off from
16111 sparc64_fallback_frame_state.
16112 (sparc_is_sighandler): New function, split off from
16113 sparc_fallback_frame_state.
16114 (sparc64_fallback_frame_state): Merge with ...
16115 (sparc_fallback_frame_state): ... this into ...
16116 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
16117 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16118 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16119 stack instead of hardcoded offsets.
ad56a54c 16120
fbf4bfd3 161212011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
16122
16123 PR target/45808
16124 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16125
029c8f3e
RW
161262011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16127
16128 * configure: Regenerate.
16129
a016dc83
JM
161302011-02-12 Joseph Myers <joseph@codesourcery.com>
16131
16132 PR driver/45731
16133 * gcc.c (asm_options): Correct spec matching --target-help.
16134
8957a0ec
MJ
161352011-02-12 Martin Jambor <mjambor@suse.cz>
16136
16137 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16138 to gimple call error.
16139
6ef828bc
MS
161402011-02-12 Mike Stump <mikestump@comcast.net>
16141
16142 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16143 comments in backslash regions.
16144
a4015be5
MS
161452011-02-12 Mike Stump <mikestump@comcast.net>
16146 Jakub Jelinek <jakub@redhat.com>
16147 Iain Sandoe <iains@gcc.gnu.org>
16148
16149 PR target/47324
16150 * dwarf2out.c (output_cfa_loc): When required, apply the
16151 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16152 (output_loc_sequence): Likewise.
16153 (output_loc_operands_raw): Likewise.
16154 (output_loc_sequence_raw): Likewise.
16155 (output_cfa_loc): Likewise.
16156 (output_loc_list): Suppress register number adjustment when
16157 calling output_loc_sequence()
16158 (output_die): Likewise.
16159
5378dda2
AS
161602011-02-12 Anatoly Sokolov <aesok@post.ru>
16161
16162 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16163 Remove macros.
16164 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16165 xtensa_memory_move_cost): New functions.
16166 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16167
f3d533d3
AO
161682011-02-12 Alexandre Oliva <aoliva@redhat.com>
16169
16170 PR lto/47225
16171 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16172 in the current directory.
16173 * configure: Rebuilt.
16174
9d53403c
IS
161752011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16176
16177 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 16178 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
16179 correct indents of the preceding block.
16180
a350a6c8
IS
161812011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16182
16183 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16184 the switch.
16185
bab79a40
JM
161862011-02-11 Joseph Myers <joseph@codesourcery.com>
16187
16188 * common.opt (nostartfiles): New Driver option.
16189
1bbc6693
XDL
161902011-02-11 Xinliang David Li <davidxl@google.com>
16191
16192 PR tree-optimization/47707
16193 * tree-chrec.c (convert_affine_scev): Keep type precision.
16194
1da7d8c0
EB
161952011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16196
16197 PR tree-optimization/47420
16198 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16199
162002011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
16201
16202 PR rtl-optimization/47614
16203 * rtl.h (check_for_inc_dec): Declare.
16204 * dse.c (check_for_inc_dec): Externalize...
16205 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16206 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16207
4df47bca
JM
162082011-02-11 Joseph Myers <joseph@codesourcery.com>
16209
16210 PR driver/47678
16211 * gcc.c (main): Do not compile inputs if there were errors in
16212 option handling.
16213 * opts-common.c (read_cmdline_option): Check for wrong language
16214 after other error checks.
16215
61502ca8
NF
162162011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16217
16218 * cgraph.c: Fix comment typos.
16219 * cgraph.h: Likewise.
16220 * cgraphunit.c: Likewise.
16221 * ipa-cp.c: Likewise.
16222 * ipa-inline.c: Likewise.
16223 * ipa-prop.c: Likewise.
16224 * ipa-pure-const.c: Likewise.
16225 * ipa-ref.c: Likewise.
16226 * ipa-reference.c: Likewise.
16227
b63f974e
JJ
162282011-02-11 Jakub Jelinek <jakub@redhat.com>
16229
d50c5e0c
JJ
16230 PR debug/47684
16231 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 16232
6dd2a13c
RO
162332011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16234
16235 PR testsuite/47400
16236 * doc/sourcebuild.texi (Require Support): Document
16237 dg-require-ascii-locale.
16238
4a087ccf
MX
162392011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16240
16241 * doc/lto.texi (Write summary): Fix missing parentheses.
16242
a4403164
DD
162432011-02-10 DJ Delorie <dj@redhat.com>
16244
16245 * config/m32c/m32c.c (m32c_option_override): Disable
16246 -fcombine-stack-adjustments until flag value tracking and compare
16247 optimization can be rewritten.
16248
4fac45bd
PB
162492011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16250
16251 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16252 PROCESSOR_POWER7.
16253 (PROCESSOR_DEFAULT64): Likewise.
16254
72602cd1
RH
162552011-02-10 Richard Henderson <rth@redhat.com>
16256
16257 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16258 change from 2011-02-03.
16259 * config/rx/rx.c (flags_from_code): Likewise.
16260 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16261 is valid, n/pz otherwise.
16262 (rx_select_cc_mode): Return CCmode if Y is not zero.
16263
ea57f573
RG
162642011-02-10 Richard Guenther <rguenther@suse.de>
16265
ea4c3e65 16266 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 16267
92b1d23b
RG
162682011-02-10 Richard Guenther <rguenther@suse.de>
16269
16270 PR tree-optimization/47677
16271 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16272
525a2d06
JJ
162732011-02-10 Jakub Jelinek <jakub@redhat.com>
16274
16275 PR target/47665
16276 * combine.c (make_compound_operation): Only change shifts into
16277 multiplication for SCALAR_INT_MODE_P.
16278
06c969bd
JZ
162792011-02-10 Jie Zhang <jie@codesourcery.com>
16280
16281 PR testsuite/47622
16282 Revert
16283 2011-02-05 Jie Zhang <jie@codesourcery.com>
16284 PR debug/42631
16285 * web.c (entry_register): Don't clobber the number of the
16286 first uninitialized reference in used[].
16287
282ec48e
RG
162882011-02-09 Richard Guenther <rguenther@suse.de>
16289
16290 PR tree-optimization/47664
16291 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16292 all edges again.
16293
df98c3e8
DE
162942011-02-09 David Edelsohn <dje.gcc@gmail.com>
16295
d0f21cd6
DE
16296 PR target/46481
16297 PR target/47032
df98c3e8
DE
16298 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16299 PROCESSOR_POWER7.
16300 (PROCESSOR_DEFAULT64): Same.
16301 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16302
67b6839f
RO
163032011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16304
16305 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16306
4fd73214
MJ
163072011-02-09 Martin Jambor <mjambor@suse.cz>
16308
16309 PR middle-end/45505
16310 * tree-sra.c (struct access): New flags grp_scalar_read and
16311 grp_scalar_write. Changed description of assignment read and write
16312 flags.
16313 (dump_access): Dump new flags, reorder all of them.
16314 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16315 to detect multiple scalar reads.
16316 (analyze_access_subtree): Use the new scalar read write flags instead
16317 of the old flags. Adjusted comments.
16318
91140cd3
DD
163192011-02-08 DJ Delorie <dj@redhat.com>
16320
16321 PR target/47548
16322 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16323 patterns.
16324
4254bbfe
JM
163252011-02-08 Joseph Myers <joseph@codesourcery.com>
16326
16327 * config/m68k/uclinux.opt: New.
16328 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16329
f1fda84e
JM
163302011-02-08 Joseph Myers <joseph@codesourcery.com>
16331
16332 * config/cris/elf.opt (sim): New Driver option.
16333
4933ae74
JM
163342011-02-08 Joseph Myers <joseph@codesourcery.com>
16335
16336 * config/xtensa/elf.opt: New.
16337 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16338
4ad70280
JM
163392011-02-08 Joseph Myers <joseph@codesourcery.com>
16340
16341 * config/vax/elf.opt: New.
16342 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16343
20893707
JM
163442011-02-08 Joseph Myers <joseph@codesourcery.com>
16345
16346 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16347
b8e7038e
JM
163482011-02-08 Joseph Myers <joseph@codesourcery.com>
16349
16350 * config/gnu-user.opt: New.
16351 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16352 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16353 *-*-uclinux*): Use gnu-user.opt.
16354
e1c5225a
TS
163552011-02-08 Thomas Schwinge <thomas@schwinge.name>
16356
16357 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16358 * config/i386/gnu.h (CPP_SPEC): Likewise.
16359
5e46b0c6
ILT
163602011-02-08 Ian Lance Taylor <iant@google.com>
16361
16362 * common.opt (fcx-limited-range): Add SetByCombined flag.
16363 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16364 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16365 (fassociative-math, freciprocal-math): Likewise.
16366 (funsafe-math-optimizations): Likewise.
16367 * opth-gen.awk: Handle SetByCombined.
16368 * optc-gen.awk: Likewise.
ea4c3e65 16369 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
16370 (set_unsafe_math_optimizations_flags): Likewise.
16371 * doc/options.texi (Option properties): Document SetByCombined.
16372
32243d46
JM
163732011-02-08 Joseph Myers <joseph@codesourcery.com>
16374
16375 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16376 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16377 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16378 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16379 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16380
479c1fb3
SP
163812011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16382
16383 PR tree-optimization/46834
16384 PR tree-optimization/46994
16385 PR tree-optimization/46995
16386 * graphite-sese-to-poly.c (used_outside_reduction): New.
16387 (detect_commutative_reduction): Call used_outside_reduction.
16388 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16389 translate_scalar_reduction_to_array only when at least one
16390 loop-phi/close-phi tuple has been detected.
16391
3865a06f
RG
163922011-02-08 Richard Guenther <rguenther@suse.de>
16393
16394 PR middle-end/47639
16395 * tree-vect-generic.c (expand_vector_operations_1): Update
16396 stmts here ...
16397 (expand_vector_operations): ... not here. Cleanup EH info
16398 and the CFG if required.
16399
62902f3f
RG
164002011-02-08 Richard Guenther <rguenther@suse.de>
16401
16402 PR tree-optimization/47641
16403 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16404 require type compatibility.
16405
0efb9d64
AK
164062011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16407
16408 * gimple-low.c (lower_function_body): Don't remove the location of
16409 the return statement here.
16410 (lower_gimple_return): Do it here instead but only if the return
16411 statement is actually used twice.
16412
034b8ae4
RG
164132011-02-08 Richard Guenther <rguenther@suse.de>
16414
16415 PR tree-optimization/47632
16416 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16417 unused up_to_stmt parameter, return whether cfg-cleanup is
16418 necessary, remove EH info properly.
16419 (forward_propagate_into_gimple_cond): Adjust caller.
16420 (forward_propagate_into_cond): Likewise.
16421 (forward_propagate_comparison): Likewise.
16422 (tree_ssa_forward_propagate_single_use_vars): Make
16423 forward_propagate_comparison case similar to the two others.
16424
298362c8
NC
164252011-02-08 Nick Clifton <nickc@redhat.com>
16426
16427 * config/mn10300/mn10300.opt (mliw): New command line option.
16428 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16429 (liw_bundling): New automaton.
16430 (liw): New attribute.
16431 (liw_op): New attribute.
16432 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16433 (movsi_internal): Add LIW attributes.
16434 (andsi3): Likewise.
16435 (iorsi3): Likewise.
16436 (xorsi3): Likewise.
16437 (addsi3): Separate register and immediate alternatives.
16438 Add LIW attributes.
16439 (subsi3): Likewise.
16440 (cmpsi): Likewise.
16441 (aslsi3): Likewise.
16442 (lshrsi3): Likewise.
16443 (ashrsi3): Likewise.
16444 (liw): New pattern.
16445 * config/mn10300/mn10300.c (liw_op_names): New
16446 (mn10300_print_operand): Handle 'W' operand descriptor.
16447 (extract_bundle): New function.
16448 (check_liw_constraints): New function.
16449 (liw_candidate): New function.
16450 (mn10300_bundle_liw): New function.
16451 (mn10300_reorg): New function.
16452 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16453 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16454 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16455 __LIW__ or __NO_LIW__.
16456 * doc/invoke.texi: Describe the -mliw command line option.
16457
90488014
JDA
164582011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16459
16460 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16461 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16462 pthread_mutex_unlock): Remove.
16463 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16464 * config/pa/t-pa64: Likewise.
16465 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16466 shared libc if not linking against libpthread.
16467 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16468
689ff841
IS
164692011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16470
16471 PR target/47558
16472 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16473 on 10.6 and later to ensure that we always use the unwinder from
16474 the system. Only add -no_compact_unwind when tarteting darwin
16475 10.6 or later.
16476
821014aa
SE
164772011-02-07 Steve Ellcey <sje@cup.hp.com>
16478
16479 PR target/46997
16480 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16481 (vec_interleave_lowv2sf): Ditto.
16482 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16483 (vec_extract_oddv2sf): Ditto.
16484
41cf94fb
MS
164852011-02-07 Mike Stump <mikestump@comcast.net>
16486
62dea57d 16487 PR target/42333
41cf94fb
MS
16488 Add __ieee_divdc3 entry point.
16489 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16490 entry point.
16491 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16492 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16493 * config/darwin.c (darwin_rename_builtins): Add.
16494 * config/darwin-protos.h (darwin_rename_builtins): Add.
16495
ee09a3dd
MM
164962011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16497
16498 PR target/47636
16499 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16500 for the condition.
16501
83296cd0
MS
165022011-02-07 Mike Stump <mikestump@comcast.net>
16503
ea4c3e65 16504 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 16505
0f4e946f
DC
165062011-02-07 Denis Chertykov <chertykov@gmail.com>
16507
16508 PR target/47534
16509 * config/avr/libgcc.S (exit): Move .endfunc
16510
1ec87690
RG
165112011-02-07 Richard Guenther <rguenther@suse.de>
16512
16513 PR tree-optimization/47615
16514 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16515 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16516 (run_scc_vn): Initialize it.
16517 (visit_reference_op_load): Use it.
16518 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16519
b46ae6da
UW
165202011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16521
16522 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16523 DImode trapping arithmetic libfuncs.
16524
c0aae19c
RG
165252011-02-07 Richard Guenther <rguenther@suse.de>
16526
16527 PR tree-optimization/47621
16528 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16529 two duplicates ...
16530 (execute_update_addresses_taken): ... here. Make it more
16531 conservative in what we accept.
16532
295d926b
JM
165332011-02-06 Joseph Myers <joseph@codesourcery.com>
16534
16535 * config/sparc/freebsd.h (ASM_SPEC): Define.
16536 * config/sparc/vxworks.h (ASM_SPEC): Define.
16537
bdeb2471
JM
165382011-02-06 Joseph Myers <joseph@codesourcery.com>
16539
16540 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16541
d5d3781a
SB
165422011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16543
16544 * doc/invoke.texi: Remove reference to compiler internals from
16545 user documentation.
16546
16547 * reg-notes.def: Remove REG_VALUE_PROFILE.
16548 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16549
c42c09fc
JJ
165502011-02-05 Jakub Jelinek <jakub@redhat.com>
16551
16552 PR middle-end/47610
16553 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 16554 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 16555
beea2755
JZ
165562011-02-05 Jie Zhang <jie@codesourcery.com>
16557
16558 PR debug/42631
16559 * web.c (entry_register): Don't clobber the number of the
16560 first uninitialized reference in used[].
16561
a130584a
SP
165622011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16563
16564 PR tree-optimization/46194
16565 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16566 (build_classic_dist_vector_1): Do not represent classic distance
16567 vectors when the access functions are variating in different loops.
16568
962101ac
JM
165692011-02-04 Joseph Myers <joseph@codesourcery.com>
16570
16571 * config/mips/iris6.opt: New.
16572 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16573
55eaaa5b
RH
165742011-02-04 Richard Henderson <rth@redhat.com>
16575 Steve Ellcey <sje@cup.hp.com>
16576
16577 PR target/46997
16578 * config/ia64/predicates.md (mux1_brcst_element): New.
16579 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16580 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16581 (ia64_unpack_sign): New.
16582 (ia64_expand_unpack): Rewrite using new routines.
16583 (ia64_expand_widen_sum): Ditto.
16584 (ia64_expand_dot_prod_v8qi): Ditto.
16585 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16586 routines, add endian check.
16587 (pmpy2_even): Rename from pmpy2_r, add endian check.
16588 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16589 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16590 (vec_widen_smult_hi_v4hi): Ditto.
16591 (vec_widen_umult_lo_v4hi): Ditto.
16592 (vec_widen_umult_hi_v4hi): Ditto.
16593 (mulv2si3): Change endian checks.
16594 (sdot_prodv4hi): Rewrite with new calls.
16595 (udot_prodv4hi): New.
16596 (vec_pack_ssat_v4hi): Add endian check.
16597 (vec_pack_usat_v4hi): Ditto.
16598 (vec_pack_ssat_v2si): Ditto.
16599 (max1_even): Rename from max1_r, add endian check.
16600 (max1_odd): Rename from max1_l, add endian check.
16601 (*mux1_rev): Format change.
16602 (*mux1_mix): Ditto.
16603 (*mux1_shuf): Ditto.
16604 (*mux1_alt): Ditto.
16605 (*mux1_brcst_v8qi): Use new predicate.
16606 (vec_extract_evenv8qi): Remove endian check.
16607 (vec_extract_oddv8qi): Ditto.
16608 (vec_interleave_lowv4hi): Format change.
16609 (vec_interleave_highv4hi): Ditto.
16610 (mix2_even): Rename from mix2_r, add endian check.
16611 (mix2_odd): Rename from mux2_l, add endian check.
16612 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16613 (vec_extract_evenodd_helper): Format change.
16614 (vec_extract_evenv4hi): Remove endian check.
16615 (vec_extract_oddv4hi): Remove endian check.
16616 (vec_interleave_lowv2si): Format change.
16617 (vec_interleave_highv2si): Format change.
16618 (vec_initv2si): Remove endian check.
16619 (vecinit_v2si): Add endian check.
16620 (reduc_splus_v2sf): Add endian check.
16621 (reduc_smax_v2sf): Ditto.
16622 (reduc_smin_v2sf): Ditto.
16623 (vec_initv2sf): Remove endian check.
16624 (fpack): Add endian check.
16625 (fswap): Add endian check.
16626 (vec_interleave_highv2sf): Add endian check.
16627 (vec_interleave_lowv2sf): Add endian check.
16628 (fmix_lr): Add endian check.
16629 (vec_setv2sf): Format change.
16630 (*vec_extractv2sf_0_be): Use shift to extract operand.
16631 (*vec_extractv2sf_1_be): New.
16632 (vec_pack_trunc_v4hi): Add endian check.
16633 (vec_pack_trunc_v2si): Format change.
16634
dcde5957
JJ
166352011-02-04 Jakub Jelinek <jakub@redhat.com>
16636
16637 PR inline-asm/23200
16638 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 16639 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
16640 (stmt_is_replaceable_p): New function.
16641 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16642 callers.
16643 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16644 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16645 SSA_NAME_DEF_STMT.
16646 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16647
a64a8e5a
JM
166482011-02-04 Joseph Myers <joseph@codesourcery.com>
16649
16650 * config/rs6000/xilinx.opt: New.
16651 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16652
4da2ed2f
JM
166532011-02-04 Joseph Myers <joseph@codesourcery.com>
16654
16655 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16656
a6e508f9
AS
166572011-02-03 Anatoly Sokolov <aesok@post.ru>
16658
16659 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16660 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16661 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16662 secondary_reload_info, xtensa_secondary_reload): Remove.
16663 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16664 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16665 (xtensa_preferred_reload_class): Make static. Change return and
16666 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16667 Use CONST_DOUBLE_P predicate.
16668 (xtensa_preferred_output_reload_class): New function.
16669 (xtensa_secondary_reload): Make static.
16670
82dc0de3
JM
166712011-02-03 Joseph Myers <joseph@codesourcery.com>
16672
16673 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16674 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16675 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16676
7fece979
JJ
166772011-02-03 Jakub Jelinek <jakub@redhat.com>
16678
16679 PR middle-end/31490
16680 * output.h (SECTION_RELRO): Define.
16681 (SECTION_MACH_DEP): Adjust.
16682 (get_variable_section): New prototype.
16683 * varpool.c (varpool_finalize_named_section_flags): New function.
16684 (varpool_assemble_pending_decls): Call it.
16685 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16686 * cgraphunit.c (cgraph_output_in_order): Call
16687 varpool_finalize_named_section_flags.
16688 * varasm.c (get_section): Allow section flags conflicts between
16689 relro and read-only sections if the section hasn't been declared yet.
16690 Set SECTION_OVERRIDE after diagnosing section type conflict.
16691 (get_variable_section): No longer static.
16692 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16693 readonly sections that need relocations.
16694 (decl_readonly_section_1): New function.
16695 (decl_readonly_section): Use it.
16696
16697 Revert:
509d65dd 16698 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
16699 Steve Ellcey <sje@cup.hp.com>
16700
16701 PR middle-end/31490
16702 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16703 if section attribute used.
16704
d18d5478
JJ
167052011-02-03 Jakub Jelinek <jakub@redhat.com>
16706
16707 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16708 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16709 (darwin_init_sections): Remove assertion.
16710
6479ed4b
NC
167112011-02-03 Nick Clifton <nickc@redhat.com>
16712
16713 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16714 lt and ge.
38be4072 16715 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
16716 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16717 instead of "n" and "pz".
16718 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16719 CC_FLAG_S.
16720
89843f5d
JJ
167212011-02-03 Jakub Jelinek <jakub@redhat.com>
16722
65450d64
JJ
16723 PR target/47312
16724 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16725 fma, expand FMA_EXPR as fma{,f,l} call.
16726
7d58701c
JJ
16727 PR lto/47274
16728 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16729 copy them into a unsigned char variable and pass address of it to
16730 lto_output_data_stream.
16731
89843f5d
JJ
16732 PR target/47564
16733 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16734 around backend_init_target and lang_dependent_init_target calls.
16735 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16736 (verify_cgraph_node): Don't call set_cfun here. Use
16737 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16738 Set error_found for incorrectly represented calls to thunks.
16739
4deef538
AO
167402011-02-03 Alexandre Oliva <aoliva@redhat.com>
16741
16742 PR debug/43092
16743 PR rtl-optimization/43494
16744 * rtl.h (for_each_inc_dec_fn): New type.
16745 (for_each_inc_dec): Declare.
16746 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16747 (for_each_inc_dec_find_inc_dec): New fn.
16748 (for_each_inc_dec_find_mem): New fn.
16749 (for_each_inc_dec): New fn.
16750 * dse.c (struct insn_size): Remove.
16751 (replace_inc_dec, replace_inc_dec_mem): Remove.
16752 (emit_inc_dec_insn_before): New fn.
16753 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16754 (canon_address): Pass mem modes to cselib_lookup.
16755 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16756 (cselib_lookup_from_insn): Likewise.
16757 (cselib_subst_to_values): Likewise.
16758 * cselib.c (find_slot_memmode): New var.
16759 (cselib_find_slot): New fn. Use it instead of
16760 htab_find_slot_with_hash everywhere.
16761 (entry_and_rtx_equal_p): Use find_slot_memmode.
16762 (autoinc_split): New fn.
16763 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16764 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16765 Deal with autoinc. Special-case recursion into MEMs.
16766 (cselib_hash_rtx): Likewise.
16767 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16768 address and MEM modes.
16769 (cselib_subst_to_values): Add memmode, pass it on.
16770 Deal with autoinc.
16771 (cselib_lookup): Add memmode argument, pass it on.
16772 (cselib_lookup_from_insn): Add memmode.
16773 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16774 (struct cselib_record_autoinc_data): New.
16775 (cselib_record_autoinc_cb): New fn.
16776 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16777 mode to cselib_lookup. Reset autoinced REGs here instead of...
16778 (cselib_process_insn): ... here.
16779 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16780 to cselib_lookup.
16781 (add_uses): Likewise, also to cselib_subst_to_values.
16782 (add_stores): Likewise.
16783 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16784 cselib_subst_to_values.
16785 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16786 * gcse.c (do_local_cprop): Adjusted.
16787 * postreload.c (reload_cse_simplify_set): Adjusted.
16788 (reload_cse_simplify_operands): Adjusted.
16789 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16790
1551d44a
AO
167912011-02-03 Alexandre Oliva <aoliva@redhat.com>
16792
16793 PR tree-optimization/45122
16794 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16795 unsafe assumptions when there's more than one loop exit.
16796
c9485473
MM
167972011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16798
16799 PR target/47272
16800 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16801 Document using vector double with the load/store builtins, and
16802 that the load/store builtins always use Altivec instructions.
16803
16804 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16805 to use altivec memory instructions, even on VSX.
16806 (vector_altivec_store_<mode>): Ditto.
16807
16808 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16809 function.
16810
16811 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16812 V2DF, V2DI support to load/store overloaded builtins.
16813
16814 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16815 altivec load/store builtins for V2DF/V2DI types.
16816
16817 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16818 set avoid indexed addresses on power6 if -maltivec.
16819 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16820 vector_altivec_load/vector_altivec_store builtins.
16821 (altivec_expand_st_builtin): Ditto.
16822 (altivec_expand_builtin): Add VSX memory builtins.
16823 (rs6000_init_builtins): Add V2DI types to internal types.
16824 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16825 load/store builtins.
16826 (rs6000_address_for_altivec): Insure memory address is appropriate
16827 for Altivec.
16828
16829 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16830 vec_vsx_ld and vec_vsx_st.
16831 (vsx_store_<mode>): Ditto.
16832
16833 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16834 variables to hold long long types for VSX vector memory builtins.
16835 (RS6000_BTI_unsigned_long_long): Ditto.
16836 (long_long_integer_type_internal_node): Ditti.
16837 (long_long_unsigned_type_internal_node): Ditti.
16838
16839 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16840 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16841 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16842
16843 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16844 short cuts.
16845 (vec_vsx_st): Ditto.
16846
b24d1acf
JM
168472011-02-02 Joseph Myers <joseph@codesourcery.com>
16848
16849 * config/pa/pa-hpux10.opt: New.
16850 * config/hpux11.opt (pthread): New Driver option.
16851 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16852 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16853
aa18dd0f
JM
168542011-02-02 Joseph Myers <joseph@codesourcery.com>
16855
16856 * config/ia64/vms.opt: New.
16857 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16858
28fc3eee
MM
168592011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16860
16861 PR target/47580
16862 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16863 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16864 generator functions.
16865 (vsx_floatuns<VSi><mode>2): Ditto.
16866 (vsx_fix_trunc<mode><VSi>2): Ditto.
16867 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16868
b5838b1f
JM
168692011-02-02 Joseph Myers <joseph@codesourcery.com>
16870
16871 * config/i386/djgpp.opt (posix): New Driver option.
16872
0db8fa89
GP
168732011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16874
16875 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16876 Move to the unsupported targets list.
16877
9cd4f22a
PB
168782011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16879
16880 PR rtl-optimization/47525
16881 * df-scan.c: Update copyright years.
16882 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16883 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16884
9ed8059c
RO
168852011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16886
16887 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16888 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16889 (ASM_OUTPUT_ASCII): Remove.
16890 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16891
2a737389
JL
168922011-02-02 Jeff Law <law@redhat.com>
16893
16894 PR middle-end/47543
16895 * reload.c (find_reloads_address): Handle reg+d address where both
16896 components are invalid by reloading the entire address.
16897
9dac82c4
SP
168982011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16899 Richard Guenther <rguenther@suse.de>
16900
16901 PR tree-optimization/40979
16902 PR bootstrap/47044
16903 * passes.c (init_optimization_passes): After LIM call copy_prop
16904 and DCE to clean up.
16905 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16906
14dd9aab
SP
169072011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16908
16909 PR tree-optimization/47576
16910 PR tree-optimization/47555
16911 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16912 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16913 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16914 * tree-scalar-evolution.c (follow_ssa_edge): Use
16915 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16916
5cbf5c20
RG
169172011-02-02 Richard Guenther <rguenther@suse.de>
16918
16919 PR tree-optimization/47566
16920 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16921
83d70792
AO
169222011-02-02 Alexandre Oliva <aoliva@redhat.com>
16923
e829c321
AO
16924 PR debug/47106
16925 PR debug/47402
16926 * tree-inline.c (declare_return_variable): Remove unused caller
16927 variable.
16928
83d70792
AO
16929 PR debug/47106
16930 PR debug/47402
16931 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16932 * cfgexpand.c (account_used_vars_for_block): Use them.
16933 * tree-nrv.c (tree_nrv): Likewise.
16934 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16935 (dump_scope_block): Likewise.
16936 (remove_unused_locals): Likewise.
16937
aaa2ac93
AO
16938 PR debug/47106
16939 PR debug/47402
16940 * tree-inline.c (declare_return_variable): Add result decl to
16941 local decls only once.
16942 * gimple-low.c (record_vars_into): Mark newly-created variables
16943 as referenced.
16944
a59d15cf
AO
169452011-02-02 Alexandre Oliva <aoliva@redhat.com>
16946
16947 PR debug/47498
16948 PR debug/47501
16949 PR debug/45136
16950 PR debug/45130
16951 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16952 debug insns.
16953 (no_real_insns_p, schedule_block, set_priorities): Drop special
16954 treatment of boundary debug insns.
38be4072 16955 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
16956 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16957 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16958 (BOUNDARY_DEBUG_INSN_P): Likewise.
16959 (SCHEDULE_DEBUG_INSN_P): Likewise.
16960 * sched-rgn.c (init_ready_list): Drop special treatment of
16961 boundary debug insns.
16962 * final.c (rest_of_clean_state): Clear notes' BB.
16963
6fc2f091
JM
169642011-02-01 Joseph Myers <joseph@codesourcery.com>
16965
16966 * config/openbsd.opt (assert=): New Driver option.
16967
fc523387
JM
169682011-02-01 Joseph Myers <joseph@codesourcery.com>
16969
16970 * config/i386/nto.opt: New.
16971 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16972
6d9821e5
JM
169732011-02-01 Joseph Myers <joseph@codesourcery.com>
16974
16975 * config/i386/netware.opt: New.
16976 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16977
cef932d4
JM
169782011-02-01 Joseph Myers <joseph@codesourcery.com>
16979
16980 * config/interix.opt (posix): New Driver option.
16981
22843acd
DD
169822011-02-01 DJ Delorie <dj@redhat.com>
16983
56490b74
DD
16984 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16985
22843acd
DD
16986 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16987 class for A0/A1.
16988
199c8f2f
SP
169892011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16990
16991 PR tree-optimization/47561
16992 * toplev.c (process_options): Print the Graphite flags. Add
16993 flag_loop_flatten to the list of options requiring Graphite.
16994
926bcf22
JM
169952011-02-01 Joseph Myers <joseph@codesourcery.com>
16996
16997 * config/i386/cygming.opt (posix): New Driver option.
16998
59793c51
JM
169992011-02-01 Joseph Myers <joseph@codesourcery.com>
17000
17001 * config/arm/vxworks.opt: New.
17002 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17003
183c38a4
JM
170042011-02-01 Joseph Myers <joseph@codesourcery.com>
17005
17006 * config/alpha/elf.opt: New.
17007 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17008 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17009
9939e416
RG
170102011-02-01 Richard Guenther <rguenther@suse.de>
17011
17012 PR tree-optimization/47559
17013 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17014 store-motion on references that can throw.
17015
4a3c9687
BS
170162011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17017
17018 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17019 * tree-pass.h (TDF_CSELIB): New macro.
17020 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17021 cselib_lookup): Check for it rather than for TDF_DETAILS.
17022
dd3b31fb
L
170232011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17024
17025 PR driver/47547
17026 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17027 is HOST_BIT_BUCKET.
17028
17029 * opts.c (finish_options): Don't add x_aux_base_name if it is
17030 HOST_BIT_BUCKET.
17031
34c1de79
RG
170322011-02-01 Richard Guenther <rguenther@suse.de>
17033
17034 PR tree-optimization/47555
17035 Revert
17036 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17037
17038 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17039
dd2804d2
SB
170402011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17041
17042 PR gcc/46692
17043 * config/lm32/t-lm32: Add multilib for all CPU options.
17044
3fd3b156
RG
170452011-02-01 Richard Guenther <rguenther@suse.de>
17046
17047 PR tree-optimization/47541
17048 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17049 sure to have a field at offset zero.
17050
f16072b6
JM
170512011-01-31 Joseph Myers <joseph@codesourcery.com>
17052
17053 * config/arc/arc.opt (EB, EL): New Driver options.
17054
6456cf2e
JM
170552011-01-31 Joseph Myers <joseph@codesourcery.com>
17056
17057 * config/alpha/osf5.opt: New.
17058 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17059
cdde6ab4
JM
170602011-01-31 Joseph Myers <joseph@codesourcery.com>
17061
17062 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17063
7633415c
SP
170642011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17065
17066 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17067 -floop-interchange.
17068 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17069 is an alias of -floop-interchange and that it requires the
17070 Graphite infrastructure.
17071 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17072 flag_loop_interchange based on the value of flag_tree_loop_linear.
17073
0425d6f5
JJ
170742011-01-31 Jakub Jelinek <jakub@redhat.com>
17075 Richard Guenther <rguenther@suse.de>
17076
17077 PR tree-optimization/47538
17078 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17079 type instead of r1type, except for comparisons. For right
17080 shifts and comparisons punt if there are mismatches in
17081 sizetype vs. non-sizetype types.
17082
500b16c3
RO
170832011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17084
17085 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17086 avx_runtime.
17087
e279edb0
RO
170882011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17089
17090 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17091 version number.
17092 * configure: Regenerate.
17093
c6092243
RO
170942011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17095
17096 * configure.ac (gcc_cv_ld_static_option): Define.
17097 (gcc_cv_ld_dynamic_option): Define.
17098 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17099 instead.
17100 (HAVE_LD_STATIC_DYNAMIC): Update message.
17101 (LD_STATIC_OPTION): Define.
17102 (LD_DYNAMIC_OPTION): Define.
17103 * configure: Regenerate.
17104 * config.in: Regenerate.
17105 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17106 HAVE_LD_STATIC_DYNAMIC]: Use them.
17107
d7862be3
NC
171082011-01-31 Nick Clifton <nickc@redhat.com>
17109
17110 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17111 registers inside interrupt handlers if the handler is not a leaf
17112 function.
17113
ba4ec0e0
NC
171142011-01-31 Nick Clifton <nickc@redhat.com>
17115
17116 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17117 reg_renumber returning an INVALID_REGNUM.
17118
29a63921
AO
171192011-01-31 Alexandre Oliva <aoliva@redhat.com>
17120
17121 PR libgcj/44341
17122 * doc/install.texi: Document host options discarded when cross
17123 configuring target libraries.
17124
ef591d3f
AO
171252011-01-31 Alexandre Oliva <aoliva@redhat.com>
17126
17127 Reverted:
17128 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17129 PR debug/45136
17130 PR debug/45130
17131 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17132 debug insns.
17133 (no_real_insns_p, schedule_block, set_priorities): Drop special
17134 treatment of boundary debug insns.
38be4072 17135 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
17136 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17137 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17138 (BOUNDARY_DEBUG_INSN_P): Likewise.
17139 (SCHEDULE_DEBUG_INSN_P): Likewise.
17140 * sched-rgn.c (init_ready_list): Drop special treatment of
17141 boundary debug insns.
17142 * final.c (rest_of_clean-state): Clear notes' BB.
17143
61052244
AM
171442011-01-31 Alan Modra <amodra@gmail.com>
17145
17146 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17147 toc relative expressions as we do in print_operand_address.
17148
c4c8962b
KH
171492011-01-30 Kazu Hirata <kazu@codesourcery.com>
17150
17151 * doc/extend.texi: Follow spelling conventions.
17152 * doc/invoke.texi: Fix a typo.
17153
e543b94c
JM
171542011-01-30 Joseph Myers <joseph@codesourcery.com>
17155
17156 * config/hpux11.opt: New.
17157 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17158 ia64*-*-hpux*): Use hpux11.opt.
17159
509d65dd 171602011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
17161
17162 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17163 to tmake_file.
17164
7be03a0e
GP
171652011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17166
17167 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17168 support sites.
17169
419d1d37
GP
171702011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17171
b596ed64
GP
17172 * doc/install.texi (Binaries): Remove outdated reference for
17173 Motorola 68HC11/68HC12 downloads.
17174
171752011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 17176
419d1d37
GP
17177 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17178 Drepper's paper.
17179
4406d0e9
JW
171802011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17181
17182 PR bootstrap/47147
17183 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17184 used by NetBSD.
17185
38be4072 171862011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
17187
17188 * value-prof.c (check_counter): Corrected error message.
17189
0cd98787
JZ
171902011-01-29 Jie Zhang <jie@codesourcery.com>
17191
17192 * config/arm/arm.c (arm_legitimize_reload_address): New.
17193 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17194 arm_legitimize_reload_address.
38be4072 17195 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 17196
9b798ac5
ILT
171972011-01-28 Ian Lance Taylor <iant@google.com>
17198
17199 * godump.c (go_define): Ignore macros whose definitions include
17200 two adjacent operands.
17201
591e29d9
JJ
172022011-01-28 Jakub Jelinek <jakub@redhat.com>
17203
17204 PR target/42894
17205 * varasm.c (force_const_mem): Store copy of x in desc->constant
17206 instead of x itself.
17207 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17208 itself into REG_EQUAL note.
17209
62dcc44a
JM
172102011-01-28 Joseph Myers <joseph@codesourcery.com>
17211
17212 * config/freebsd.opt (posix, rdynamic): New Driver options.
17213
c9f58b9a
RO
172142011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17215
17216 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17217 -Bstatic/-Bdynamic.
17218 * configure: Regenerate.
17219
5f02b9db
JM
172202011-01-27 Joseph Myers <joseph@codesourcery.com>
17221
17222 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17223 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17224
5df97412
AS
172252011-01-27 Anatoly Sokolov <aesok@post.ru>
17226
17227 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17228 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17229 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17230 (s390_preferred_reload_class): Make static. Change return and
17231 'rclass' argument type to reg_class_t.
17232
779d4b91
JH
172332011-01-27 Jan Hubicka <jh@suse.cz>
17234
17235 PR middle-end/46949
17236 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17237 (process_function_and_variable_attributes): Check defined weakrefs.
17238
e80b21ed
MJ
172392011-01-27 Martin Jambor <mjambor@suse.cz>
17240
17241 PR tree-optimization/47228
17242 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17243 build_ref_for_offset.
17244
6dcc4f31
UW
172452011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17246
17247 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17248
509d65dd 172492011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
17250
17251 PR rtl-optimization/46856
17252 * postreload.c (reload_combine_recognize_const_pattern): Do not
17253 separate cc0 setter and user on cc0 targets.
17254
04af8788
NP
172552011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17256
17257 PR c/43082
17258 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17259 passed a VOID_TYPE expression, immediately emit an error and
17260 return error_mark_node.
17261
f7a60085
JL
172622011-01-26 Jeff Law <law@redhat.com>
17263
17264 PR rtl-optimization/47464
17265 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17266 rather than may_trap_p as needed.
17267
5c2917ec
DD
172682011-01-26 DJ Delorie <dj@redhat.com>
17269
17270 PR rtl-optimization/46878
17271 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17272 setter/user dependency as well.
17273
bef16e87
EB
172742011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17275
17276 PR rtl-optimization/44469
17277 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17278 after removing trivially dead basic blocks.
17279
c75d884b
JM
172802011-01-26 Joseph Myers <joseph@codesourcery.com>
17281
17282 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17283 * config/frv/frv.h (LINK_SPEC): Likewise.
17284 * config/i386/netware.h (LINK_SPEC): Likewise.
17285 * config/m68k/linux.h (ASM_SPEC): Likewise.
17286 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17287 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17288 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17289 * config/sparc/linux.h (ASM_SPEC): Likewise.
17290 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17291 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17292
d3153553
JM
172932011-01-26 Joseph Myers <joseph@codesourcery.com>
17294
17295 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17296 * config/frv/frv.h (ASM_SPEC): Likewise.
17297 * config/m68k/linux.h (ASM_SPEC): Likewise.
17298 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17299 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17300 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17301 * config/sparc/linux.h (ASM_SPEC): Likewise.
17302 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17303 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17304
b89b1e9d
JM
173052011-01-26 Joseph Myers <joseph@codesourcery.com>
17306
17307 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17308 * config/frv/frv.h (LINK_SPEC): Likewise.
17309 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17310
12eb1a9c
JM
173112011-01-26 Joseph Myers <joseph@codesourcery.com>
17312
17313 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17314 * config/frv/frv.h (ASM_SPEC): Likewise.
17315 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17316 * config/m68k/linux.h (ASM_SPEC): Likewise.
17317 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17318 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17319 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17320 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17321 * config/sparc/linux.h (ASM_SPEC): Likewise.
17322 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17323 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17324 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17325
e435f098
SE
173262011-01-26 Steve Ellcey <sje@cup.hp.com>
17327
17328 PR target/46997
17329 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17330 (*mux2): Ditto.
17331 (vec_extract_evenodd_help): Ditto.
17332 (vec_extract_evenv4hi): Ditto.
17333 (vec_extract_oddv4hi): Ditto.
17334 (vec_interleave_lowv2si): Ditto.
17335 (vec_interleave_highv2si): Ditto.
17336 (vec_extract_evenv2si): Ditto.
17337 (vec_extract_oddv2si: Ditto.
17338 (vec_pack_trunc_v2si): Ditto.
17339
34f0eee0
JH
173402011-01-22 Jan Hubicka <jh@suse.cz>
17341
17342 PR target/47237
17343 * cgraph.h (cgraph_local_info): New field can_change_signature.
17344 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17345 signature can change.
17346 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17347 can change.
17348 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17349 (cgraph_function_versioning): We can not change signature of functions
17350 that don't allow that.
17351 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17352 (lto_input_node): Likewise.
38be4072
UB
17353 * ipa-inline.c (compute_inline_parameters): Compute
17354 local.can_change_signature.
34f0eee0 17355 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
17356 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17357 functions that can not change signature.
34f0eee0 17358 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
17359 init_cumulative_args): Do not use local calling conventions
17360 for functions that can not change signature.
34f0eee0 17361
980ca891
JH
173622011-01-22 Jan Hubicka <jh@suse.cz>
17363
17364 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17365
768e3c60
RG
173662011-01-26 Richard Guenther <rguenther@suse.de>
17367
17368 PR tree-optimization/47190
61052244
AM
17369 * cgraphunit.c (process_common_attributes): New function.
17370 (process_function_and_variable_attributes): Use it.
768e3c60 17371
21d6a1c7
RG
173722011-01-26 Richard Guenther <rguenther@suse.de>
17373
17374 PR lto/47423
17375 * cgraphbuild.c (record_eh_tables): Record reference to personality
17376 function.
17377
48bb58b1
AO
173782011-01-26 Alexandre Oliva <aoliva@redhat.com>
17379
17380 PR debug/45454
17381 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17382 non-debug insns from moving up.
17383
58c741a6
DK
173842011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17385
17386 PR target/40125
17387 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17388 t-dlldir{,-x} fragment for build and add it to tmake_file.
17389 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17390 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17391 * config/i386/t-dlldir: New file.
17392 (SHLIB_DLLDIR): Define.
17393 * config/i386/t-dlldir-x: New file.
17394 (SHLIB_DLLDIR): Define.
17395 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17396 (SHLIB_INSTALL): Use it.
17397
bff99262
CLT
173982011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17399
17400 PR target/47246
17401 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17402 lower bound of the allowed Thumb-2 coprocessor load/store
17403 index range to -256. Add explaining comment.
17404
82c03907
ILT
174052011-01-25 Ian Lance Taylor <iant@google.com>
17406
17407 * godump.c (go_define): Improve lexing of macro expansion to only
17408 accept expressions which match Go spec.
17409
47ea1edf
DK
174102011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17411
d4dba752 17412 PR c++/43601
47ea1edf
DK
17413 * tree.c (handle_dll_attribute): Handle it.
17414 * doc/extend.texi (@item dllexport): Mention it.
17415 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17416
744f0946
ILT
174172011-01-25 Ian Lance Taylor <iant@google.com>
17418
17419 PR tree-optimization/26854
17420 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17421 (decl_jump_unsafe): Move higher in file, with no other change.
17422 (bind): Set has_jump_unsafe_decl if appropriate.
17423 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17424 (check_earlier_gotos): Likewise.
17425 (c_check_switch_jump_warnings): Likewise.
17426
5734f2b3
JW
174272011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17428
17429 * doc/invoke.texi (Warning Options): Add missing hyphen.
17430 (-fprofile-dir): Minor grammatical fixes.
17431 (-fbranch-probabilities): Likewise.
17432
9bdbdcef
AO
174332011-01-25 Alexandre Oliva <aoliva@redhat.com>
17434
17435 PR debug/45136
17436 PR debug/45130
17437 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17438 debug insns.
17439 (no_real_insns_p, schedule_block, set_priorities): Drop special
17440 treatment of boundary debug insns.
38be4072 17441 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
17442 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17443 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17444 (BOUNDARY_DEBUG_INSN_P): Likewise.
17445 (SCHEDULE_DEBUG_INSN_P): Likewise.
17446 * sched-rgn.c (init_ready_list): Drop special treatment of
17447 boundary debug insns.
17448 * final.c (rest_of_clean-state): Clear notes' BB.
17449
b305e3da
SP
174502011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17451
17452 * Makefile.in (LAMBDA_H): Removed.
17453 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17454 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17455 lambda-trans.o, and tree-loop-linear.o.
17456 (lto-symtab.o): Remove dependence on LAMBDA_H.
17457 (tree-loop-linear.o): Remove rule.
17458 (lambda-mat.o): Same.
17459 (lambda-trans.o): Same.
17460 (lambda-code.o): Same.
17461 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17462 (tree-vect-slp.o): Same.
17463 * hwint.h (gcd): Moved here.
17464 (least_common_multiple): Same.
17465 * lambda-code.c: Removed.
17466 * lambda-mat.c: Removed.
17467 * lambda-trans.c: Removed.
17468 * lambda.h: Removed.
17469 * tree-loop-linear.c: Removed.
17470 * lto-symtab.c: Do not include lambda.h.
17471 * omega.c (gcd): Removed.
17472 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17473 * tree-data-ref.c (print_lambda_vector): Moved here.
17474 (lambda_vector_copy): Same.
17475 (lambda_matrix_copy): Same.
17476 (lambda_matrix_id): Same.
17477 (lambda_vector_first_nz): Same.
17478 (lambda_matrix_row_add): Same.
17479 (lambda_matrix_row_exchange): Same.
17480 (lambda_vector_mult_const): Same.
17481 (lambda_vector_negate): Same.
17482 (lambda_matrix_row_negate): Same.
17483 (lambda_vector_equal): Same.
17484 (lambda_matrix_right_hermite): Same.
17485 * tree-data-ref.h: Do not include lambda.h.
17486 (lambda_vector): Moved here.
17487 (lambda_matrix): Same.
17488 (dependence_level): Same.
17489 (lambda_transform_legal_p): Removed declaration.
17490 (lambda_collect_parameters): Same.
17491 (lambda_compute_access_matrices): Same.
17492 (lambda_vector_gcd): Same.
17493 (lambda_vector_new): Same.
17494 (lambda_vector_clear): Same.
17495 (lambda_vector_lexico_pos): Same.
17496 (lambda_vector_zerop): Same.
17497 (lambda_matrix_new): Same.
17498 * tree-flow.h (least_common_multiple): Removed declaration.
17499 * tree-parloops.c (lambda_trans_matrix): Moved here.
17500 (LTM_MATRIX): Same.
17501 (LTM_ROWSIZE): Same.
17502 (LTM_COLSIZE): Same.
17503 (LTM_DENOMINATOR): Same.
17504 (lambda_trans_matrix_new): Same.
17505 (lambda_matrix_vector_mult): Same.
17506 (lambda_transform_legal_p): Same.
17507 * tree-pass.h (pass_linear_transform): Removed declaration.
17508 * tree-ssa-loop.c (tree_linear_transform): Removed.
17509 (gate_tree_linear_transform): Removed.
17510 (pass_linear_transform): Removed.
17511 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17512 flag_loop_interchange.
17513
6bdfdb96
JJ
175142011-01-25 Jakub Jelinek <jakub@redhat.com>
17515
17516 PR tree-optimization/47265
17517 PR tree-optimization/47443
17518 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17519 if name still has some uses.
17520
e4cba915
MJ
175212011-01-25 Martin Jambor <mjambor@suse.cz>
17522
17523 PR tree-optimization/47382
17524 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17525 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17526
509d65dd 175272011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
17528
17529 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17530 sjlj_except_unwind_info.
17531
194313e2
RG
175322011-01-25 Richard Guenther <rguenther@suse.de>
17533
17534 PR tree-optimization/47426
17535 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17536 visible functions results escape.
17537
147a0bcf
JJ
175382011-01-25 Jakub Jelinek <jakub@redhat.com>
17539
17540 PR target/45701
17541 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17542 (arm_get_frame_offsets): Use it.
17543
db963b52
SP
175442011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17545 Jakub Jelinek <jakub@redhat.com>
17546
17547 PR tree-optimization/47271
17548 * tree-if-conv.c (bb_postdominates_preds): New.
17549 (if_convertible_bb_p): Call bb_postdominates_preds.
17550 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17551 (predicate_scalar_phi): Call bb_postdominates_preds.
17552
bcddd3b9
NC
175532011-01-25 Nick Clifton <nickc@redhat.com>
17554
17555 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17556 * config/rx/rx.c (rx_function_value): Likewise.
17557 (rx_promote_function_mode): Likewise.
17558 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17559 in order to make it legitimate.
38be4072
UB
17560 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17561 make sure that the first operand is the same as the result register.
bcddd3b9
NC
17562 (addsi3_unspec): Delete.
17563 (subdi3): Do not accept immediate operands.
17564 (subdi3_internal): Likewise.
17565
7e6cb022
JL
175662011-01-25 Jeff Law <law@redhat.com>
17567
17568 PR rtl-optimization/37273
17569 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17570 handle them like argument loads from stack slots. Do not double
17571 count memory for memory constants and argument loads from stack slots.
17572
9ffa621e
JJ
175732011-01-25 Jakub Jelinek <jakub@redhat.com>
17574
17575 PR tree-optimization/47427
17576 PR tree-optimization/47428
17577 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17578 coalesce if the new root var would be TREE_READONLY.
17579
5bd6e652
RG
175802011-01-25 Richard Guenther <rguenther@suse.de>
17581
17582 PR middle-end/47414
17583 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17584 correct type for TBAA.
17585
7c48ea69
SP
175862011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17587
17588 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17589 (close_phi_written_to_memory): Call for_each_index with
17590 dr_indices_valid_in_loop.
17591
38013f25
SP
175922011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17593
17594 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17595 when it is initialized.
17596
5c640e29
SP
175972011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17598
17599 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17600 call to graphite_find_data_references_in_stmt.
17601 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17602 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17603 call to graphite_find_data_references_in_stmt.
17604 (analyze_drs_in_stmts): Same.
17605 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17606 in which the scalar analysis of indices is performed.
17607 (create_data_ref): Same. Update call to dr_analyze_indices.
17608 (find_data_references_in_stmt): Update call to create_data_ref.
17609 (graphite_find_data_references_in_stmt): Same.
17610 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17611 declaration.
17612 (create_data_ref): Same.
17613 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17614 call to create_data_ref.
17615
ac53c069
SP
176162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17617
17618 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 17619 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 17620
3d17df15
SP
176212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17622
17623 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17624 VAR_DECL, PARM_DECL, and RESULT_DECL.
17625
c513da01
SP
176262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17627
17628 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17629 in a reduction PBB.
17630 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17631 that have already been marked as PBB_IS_REDUCTION.
17632
3a292d59
SP
176332011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17634
17635 * graphite-scop-detection.c (same_close_phi_node): New.
17636 (remove_duplicate_close_phi): New.
17637 (make_close_phi_nodes_unique): New.
17638 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17639
ba858447
SP
176402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17641
17642 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17643 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17644 of both data references to be the same.
17645
8d865c56
SP
176462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17647
38be4072
UB
17648 * graphite-dependences.c (build_lexicographical_constraint): Remove
17649 the gdim parameter.
17650 (build_lexicographical_constraint): Adjust call to
17651 ppl_powerset_is_empty.
8d865c56
SP
17652 (dependence_polyhedron): Same.
17653 (graphite_legal_transform_dr): Same.
17654 (graphite_carried_dependence_level_k): Same.
38be4072
UB
17655 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17656 parameter.
8d865c56
SP
17657 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17658
50034a36
SP
176592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17660
17661 * graphite-sese-to-poly.c
17662 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17663 (close_phi_written_to_memory): New.
17664 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17665 and unshare_expr.
17666
0deada9e
SP
176672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17668
17669 * doc/install.texi: Update the expected version number of PPL to 0.11.
17670 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17671 #if PPL_VERSION_MINOR < 11.
17672
d7d3d6af
SP
176732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17674
17675 * graphite-dependences.c: Include graphite-cloog-util.h.
17676 (new_poly_ddr): Inlined into dependence_polyhedron.
17677 (free_poly_ddr): Moved close by new_poly_ddr.
17678 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17679 Early return NULL when ppl_powerset_is_empty returns true.
17680 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17681 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17682 (graphite_legal_transform_dr): Call new_poly_ddr.
17683 (graphite_carried_dependence_level_k): Same.
17684 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17685 (dot_transformed_deps_stmt_1): Removed.
17686 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17687 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17688 (dot_deps_1): Call dot_deps_2.
17689 * Makefile.in (graphite-dependences.o): Add missing dependence on
17690 graphite-cloog-util.h.
17691
28c5db57
SP
176922011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17693
17694 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17695 (build_lexicographical_constraint): Same.
17696 (dependence_polyhedron_1): Same.
17697 (graphite_legal_transform_dr): Same.
17698 (graphite_carried_dependence_level_k): Same.
17699 * graphite-ppl.c (ppl_powerset_is_empty): New.
17700 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17701 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17702
5168d98f
SP
177032011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17704
17705 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17706 the "a followed by b" relation and document it.
17707
4a40293a
SP
177082011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17709
17710 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17711 iteration when the bag of constraints is empty.
17712
271fb6fa
SP
177132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17714
17715 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17716
92d23680
SP
177172011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17718
17719 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17720 nest and two loop depths as parameters.
17721 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17722 lst_perfect_nestify.
17723
2f51deff
SP
177242011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17725
17726 * graphite-dependences.c (print_pddr): Call
17727 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17728
07f3593c
SP
177292011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17730
17731 * graphite-ppl.c (debug_gmp_value): New.
17732 * graphite-ppl.h (debug_gmp_value): Declared.
17733
3fae6099
TG
177342011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17735
17736 * doc/install.texi: Document availability of cloog-0.16.
17737
1c3ba85b
SP
177382011-01-25 Vladimir Kargov <kargov@gmail.com>
17739
17740 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17741 invalid postdominance info.
17742
e8ba94fc
JH
177432011-01-24 Jan Hubicka <jh@suse.cz>
17744
17745 PR c/21659
17746 * doc/extend.texi (weak pragma): Drop claim that it must
17747 appear before definition.
17748 * varasm.c (merge_weak, declare_weak): Only sanity check
17749 that DECL is not output at a time it is declared weak.
17750
2b6e2d13
KZ
177512011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17752
17753 * machmode.def: Fixed comments.
1c3ba85b 17754
9841210f
KT
177552011-01-24 Kai Tietz <kai.tietz@onevision.com>
17756
17757 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17758
177592011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
17760
17761 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 17762 WORDS_BIG_ENDIAN.
e046112d 17763
a6c5070a
L
177642011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17765
17766 PR target/46519
17767 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17768 (block_info): Add scanned and prev.
17769 (move_or_delete_vzeroupper_2): Return if the basic block
17770 has been scanned and the upper 128bit state is unchanged
17771 from the last scan.
17772 (move_or_delete_vzeroupper_1): Return true if the exit
17773 state is changed.
17774 (move_or_delete_vzeroupper): Visit basic blocks using the
17775 work-list based algorithm based on vt_find_locations in
17776 var-tracking.c.
17777
17778 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17779
a40d79d7
NC
177802011-01-24 Nick Clifton <nickc@redhat.com>
17781
17782 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17783 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17784 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17785 then define __v850e1__.
17786 * doc/invoke.texi: Document -mv850es.
17787
440eb8de
RH
177882011-01-24 Richard Henderson <rth@redhat.com>
17789
17790 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17791 compound unordered comparisons.
17792 * config/rx/rx.c (rx_split_fp_compare): Remove.
17793 * config/rx/rx-protos.h: Update.
17794 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17795 (cbranchsf4): Don't call rx_split_fp_compare.
17796 (*cbranchsf4): Use rx_split_cbranch.
17797 (*cmpsf): Don't accept "i" constraint.
17798 (*conditional_branch): Only valid after reload.
17799 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17800
3ff79f99
MM
178012011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17802
17803 PR target/47385
17804 * config/rs6000/altivec.md (vector constant splitters): Add
17805 support for creating vector single precision constants if -mvsx is
17806 used and we would create the constant using Altivec primitives.
17807
ff3d9d08
BS
178082011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17809 Richard Sandiford <rdsandiford@googlemail.com>
17810
17811 PR rtl-optimization/47166
17812 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17813 mechanism for PRE_MODIFY and POST_MODIFY.
17814 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17815 reloadreg.
17816
7fcaf152
AS
178172011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17818
8788adb6 17819 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 17820
d09b58c4
JH
178212011-01-22 Jan Hubicka <jh@suse.cz>
17822
17823 PR lto/47333
17824 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17825
e8ff8c5a
JH
178262011-01-22 Jan Hubicka <jh@suse.cz>
17827
17828 PR tree-optimization/43884
17829 PR lto/44334
8788adb6 17830 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
17831 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17832
ccaed3ba
AS
178332011-01-22 Anatoly Sokolov <aesok@post.ru>
17834
17835 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17836 * config/s390/s390.c (s390_register_move_cost,
17837 s390_memory_move_cost): New.
17838 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17839
0cecee06
UW
178402011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17841
17842 PR middle-end/47401
17843 * except.c (sjlj_assign_call_site_values): Move setting the
17844 crtl->uses_eh_lsda flag to ...
17845 (sjlj_mark_call_sites): ... here.
17846 (sjlj_emit_function_enter): Support NULL dispatch label.
17847 (sjlj_build_landing_pads): In a function with no landing pads
17848 that still has must-not-throw regions, generate code to register
17849 a personality function with empty LSDA.
17850
e692f276
RH
178512011-01-21 Richard Henderson <rth@redhat.com>
17852
1b7ae0b7
RH
17853 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17854
3843787f
RH
17855 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17856
e692f276
RH
17857 * compare-elim.c: New file.
17858 * Makefile.in (OBJS-common): Add it.
17859 (compare-elim.o): New.
17860 * common.opt (fcompare-elim): New.
17861 * opts.c (default_options_table): Add OPT_fcompare_elim.
17862 * tree-pass.h (pass_compare_elim_after_reload): New.
17863 * passes.c (init_optimization_passes): Add it.
17864 * recog.h: Protect against re-inclusion.
17865 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17866 * doc/invoke.texi (-fcompare-elim): Document it.
17867 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17868 * doc/tm.texi: Rebuild.
17869
9a7c2050
NC
178702011-01-22 Nick Clifton <nickc@redhat.com>
17871
17872 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17873 rx_split_fp_compare.
17874
15ba5696
NC
178752011-01-22 Nick Clifton <nickc@redhat.com>
17876
17877 * config/rx/rx.md (UNSPEC_CONST): New.
17878 (deallocate_and_return): Wrap the amount popped off the stack in
17879 an UNSPEC_CONST in order to stop it being rejected by
17880 -mmax-constant-size.
17881 (pop_and_return): Add a "(return)" rtx.
17882 (call): Drop the immediate operand.
17883 (call_internal): Likewise.
17884 (call_value): Likewise.
17885 (call_value_internal): Likewise.
17886 (sibcall_internal): Likewise.
17887 (sibcall_value_internal): Likewise.
17888 (sibcall): Likewise. Generate an explicit call using
17889 sibcall_internal.
17890 (sibcall_value): Likewise.
17891 (mov<>): FAIL if a constant operand is not legitimate.
17892 (addsi3_unpsec): New pattern.
9a7c2050 17893
38be4072 17894 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
17895 (ok_for_max_constant): New function.
17896 (gen_safe_add): New function.
17897 (rx_expand_prologue): Use gen_safe_add.
17898 (rx_expand_epilogue): Likewise.
17899 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17900 UNSPEC CONSTs.
17901
caaf13d3
JL
179022011-01-21 Jeff Law <law@redhat.com>
17903
17904 PR tree-optimization/47053
17905 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17906 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17907 statements are deleted.
17908 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17909 is nonempty, then purge dead edges and cleanup the CFG.
17910
12c30f2f
AO
179112011-01-21 Alexandre Oliva <aoliva@redhat.com>
17912
17913 PR debug/47402
17914 Temporarily revert:
17915 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17916 PR debug/47106
17917 * tree-dfa.c (create_var_ann): Mark variable as used.
17918
7360d2ac
JJ
179192011-01-21 Jakub Jelinek <jakub@redhat.com>
17920
aaa52a96
JJ
17921 PR middle-end/45566
17922 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17923 notes from other section in hot/cold partitioning even if
17924 last_action is -3. Increment call_site_base.
17925
7360d2ac
JJ
17926 PR rtl-optimization/47366
17927 * fwprop.c (forward_propagate_into): Return bool. If
17928 any changes are made, -fnon-call-exceptions is used and
17929 REG_EH_REGION note is present, call purge_dead_edges
17930 and return true if it purged anything.
17931 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17932 any EH edges were purged.
17933
e90b336f
JL
179342011-01-21 Jeff Law <law@redhat.com>
17935
17936 PR rtl-optimization/41619
17937 * caller-save.c (setup_save_areas): Break out code to determine
17938 which hard regs are live across calls by examining the reload chains
17939 so that it is always used.
17940 Eliminate code which checked REG_N_CALLS_CROSSED.
17941
3ffe07e1
JJ
179422011-01-21 Jakub Jelinek <jakub@redhat.com>
17943
17944 PR tree-optimization/47355
17945 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17946 NOP has non-debug uses beyond PHIs in new_bb.
17947
1c7d0b34
AO
179482011-01-21 Alexandre Oliva <aoliva@redhat.com>
17949
17950 PR debug/47106
17951 * cfgexpand.c (account_used_vars_for_block): Only account vars
17952 that are annotated as used.
17953 (estimated_stack_frame_size): Don't set TREE_USED.
17954 * tree-dfa.c (create_var_ann): Mark variable as used.
17955
f99cc488
RG
179562011-01-21 Richard Guenther <rguenther@suse.de>
17957
17958 PR middle-end/47395
17959 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17960
3bc27de7
RG
179612011-01-21 Richard Guenther <rguenther@suse.de>
17962
17963 PR tree-optimization/47365
17964 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17965 (vn_reference_lookup_pieces): Adjust.
17966 (vn_reference_lookup): Likewise.
17967 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17968 (vn_reference_lookup_3): Only look through kills if in
17969 VN_WALKREWRITE mode.
17970 (vn_reference_lookup_pieces): Adjust.
17971 (vn_reference_lookup): Likewise.
17972 (visit_reference_op_load): Likewise.
17973 (visit_reference_op_store): Likewise.
17974 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17975 (compute_avail): Likewise.
17976 (eliminate): Likewise.
17977
d8debb1d
JJ
179782011-01-21 Jakub Jelinek <jakub@redhat.com>
17979
17980 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17981 DECL_IGNORED_P non-reg vars if they are used.
17982
3a2df831
JJ
17983 PR tree-optimization/47391
17984 * varpool.c (const_value_known_p): Return false if
17985 decl is volatile.
17986
1dd584a2
KT
179872011-01-21 Kai Tietz <kai.tietz@onevision.com>
17988
17989 PR bootstrap/47215
17990 * config/i386/i386.c (ix86_local_alignment): Handle
17991 case for va_list_type_node is nil.
17992 (ix86_canonical_va_list_type): Likewise.
17993
7f9f095e
AM
179942011-01-21 Alan Modra <amodra@gmail.com>
17995
17996 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17997 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17998
837b01f6
RR
179992011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18000
18001 * config/arm/arm.md (define_attr type): Rename f_load
18002 and f_store to f_fpa_load and f_fpa_store. Update.
18003 (write_conflict): Deal with rename fallout.
18004 (*push_fp_multi): Likewise.
18005 * config/arm/fpa.md (f_load): Use f_fpa_load.
18006 (f_store): Use f_fpa_store.
18007 (*movsf_fpa): Likewise.
18008 (*movdf_fpa): Likewise.
18009 (*movxf_fpa): Likewise.
18010 (*thumb2_movsf_fpa): Likewise.
18011 (*thumb2_movdf_fpa): Likewise.
18012 (*thumb2_movxf_fpa): Likewise.
18013 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18014 f_loadd and f_stored.
18015 (*thumb2_movdi_vfp): Likewise.
18016 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18017 (*thumb2_movsi_vfp): Likewise.
18018 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18019 Use f_loads instead of f_load.
18020 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18021
a1a79768
AS
180222011-01-20 Anatoly Sokolov <aesok@post.ru>
18023
18024 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18025 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18026 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18027 (xtensa_mode_dependent_address_p): New function.
18028 (constantpool_address_p): Make static. Change return type to bool.
18029 Change argument type to const_rtx. Use CONST_INT_P predicate.
18030
427f6cec
AO
180312011-01-20 Alexandre Oliva <aoliva@redhat.com>
18032
18033 PR debug/46583
18034 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18035
583ac69c
JJ
180362011-01-20 Jakub Jelinek <jakub@redhat.com>
18037
18038 PR debug/47283
18039 * cfgexpand.c (expand_debug_expr): Instead of generating
18040 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18041 etc. handling.
18042
93e452ed
RG
180432011-01-20 Richard Guenther <rguenther@suse.de>
18044
18045 PR middle-end/47370
18046 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18047 the pointer operand of MEM_REFs.
18048
28fc44f3
JJ
180492011-01-20 Jakub Jelinek <jakub@redhat.com>
18050
18051 PR tree-optimization/46130
18052 * ipa-split.c (consider_split): If return_bb contains non-virtual
18053 PHIs other than for retval or if split_function would not adjust it,
18054 refuse to split.
18055
ddd268f2
RG
180562011-01-20 Richard Guenther <rguenther@suse.de>
18057
18058 PR tree-optimization/47167
18059 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18060 Revert previous change, only avoid enumeral type changes.
18061
882020aa
MS
180622011-01-19 Mike Stump <mikestump@comcast.net>
18063
18064 * doc/tm.texi.in (BRANCH_COST): Englishify.
18065 * doc/tm.texi (BRANCH_COST): Likewise.
18066
7edb6247
DS
180672011-01-19 Dodji Seketeli <dodji@redhat.com>
18068
18069 PR c++/47291
18070 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
18071 (gen_scheduled_generic_parms_dies): New functions.
18072 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18073 generation for the end of CU compilation.
18074 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 18075
23d5ed5d
AO
180762011-01-19 Alexandre Oliva <aoliva@redhat.com>
18077
18078 PR debug/46240
18079 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18080 debug bind stmt on merge edges.
18081
37d6a488
AO
180822011-01-19 Alexandre Oliva <aoliva@redhat.com>
18083
18084 PR debug/47079
18085 PR debug/46724
18086 * function.c (instantiate_expr): Instantiate incoming rtl of
18087 implicit arguments, and recurse on VALUE_EXPRs.
18088 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18089 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18090
689f2c82
AO
180912011-01-19 Alexandre Oliva <aoliva@redhat.com>
18092
18093 * c-parser.c (c_parser_for_statement): Initialize
18094 collection_expression.
18095
03029de4
JM
180962011-01-19 Joseph Myers <joseph@codesourcery.com>
18097
18098 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18099
3e03217e
JM
181002011-01-19 Joseph Myers <joseph@codesourcery.com>
18101
18102 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18103 (LINK_SHLIB_SPEC): Don't use %(link_path).
18104 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18105
5bbe9b3f
JM
181062011-01-19 Joseph Myers <joseph@codesourcery.com>
18107
18108 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18109 (NO_SHARED_LIB_SUPPORT): Remove.
18110 (LINK_SHLIB_SPEC): Remove one conditional definition.
18111
368e0b39
JM
181122011-01-19 Joseph Myers <joseph@codesourcery.com>
18113
18114 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18115 %{call_shared}.
18116 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18117 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18118 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18119 %{call_shared} and conditionals on these options not being passed.
18120 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18121 %{call_shared}.
18122
ed7656f6
JJ
181232011-01-19 Jakub Jelinek <jakub@redhat.com>
18124
68457901
JJ
18125 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18126 simplify.
18127
ed7656f6
JJ
18128 * ipa-split.c: Spelling fixes.
18129
e0d1958f
RH
181302011-01-19 Richard Henderson <rth@redhat.com>
18131
18132 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18133 (*mulsi3): Likewise.
18134
27098b6b
RH
18135 * longlong.h [__mn10300__] (count_leading_zeros): New.
18136 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18137 [__mn10300__] (add_ssaaaa, subddmmss): New.
18138 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18139 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18140
d6be7c36
UW
181412011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18142
18143 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18144
b1efde2a
RH
181452011-01-19 Richard Henderson <rth@redhat.com>
18146
44217823
RH
18147 * config/mn10300/mn10300.md (addsi3_flags): New.
18148 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18149 (subsi3_flags, subc_internal, subdi3): New.
18150 (subdi3_internal, *subdi3_degenerate): New.
18151 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18152
37a185d7
RH
18153 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18154 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18155 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18156 * config/mn10300/mn10300-protos.h: Update.
18157 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18158 (return_ret): Likewise. Rename from return_internal_regs.
18159 (return_internal): Remove.
18160
040c5757
RH
18161 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18162 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18163 (mn10300_legitimate_constant_p): Likewise.
18164 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18165 (mn10300_frame_size): New.
18166 (mn10300_expand_prologue): Use it.
18167 (mn10300_expand_epilogue): Likewise.
18168 (mn10300_initial_offset): Likewise.
18169 * config/mn10300/mn10300-protos.h: Update.
18170 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18171 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18172 (prologue, epilogue, return_internal): Tidy output code.
18173 (mn10300_store_multiple_operation, return): Likewise.
18174 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18175 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18176 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18177 (load_pic, am33_load_pic): New.
18178 (mn10300_load_pic0, mn10300_load_pic1): New.
18179
bad41521
RH
18180 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18181 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18182 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18183 (cc_flags_for_mode, cc_flags_for_code): New.
18184 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18185 overflow flag is not valid. Validate that the flags we need
18186 for the comparison are valid.
18187 (mn10300_output_cmp): Remove.
18188 (mn10300_output_add): New.
18189 (mn10300_select_cc_mode): Use cc_flags_for_code.
18190 (mn10300_split_cbranch): New.
18191 (mn10300_match_ccmode): New.
18192 (mn10300_split_and_operand_count): New.
18193 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18194 to the function.
18195 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18196 (addsi3): ... here. Use mn10300_output_add.
18197 (*addsi3_flags): New.
18198 (*am33_subsi3, *mn10300_subsi3): Merge...
18199 (subsi3): ... here. Use attribute isa.
18200 (*subsi3_flags): New.
18201 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18202 when possible.
18203 (*am33_andsi3, *mn10300_andsi3): Merge...
18204 (andsi3): ... here.
18205 (*andsi3_flags): New.
18206 (andsi3 splitters): New.
18207 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18208 (iorsi3): ... here.
18209 (*iorsi3_flags): New.
18210 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18211 (xorsi3): ... here.
18212 (*xorsi3_flags): New.
18213 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18214 (one_cmplsi2): ... here.
18215 (*one_cmplsi2_flags): New.
18216 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18217 instead of "dax" in constraints. Use mn10300_split_cbranch.
18218 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18219 use matching constraints to eliminate a self-comparison.
18220 (*integer_conditional_branch): Rename from integer_conditional_branch.
18221 Use int_mode_flags to match CC_REG.
18222 (*cbranchsi4_btst, *btstsi): New.
18223 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18224 mn10300_split_cbranch.
18225 (*am33_cmpsf): Rename from am33_cmpsf.
18226 (*float_conditional_branch): Rename from float_conditional_branch.
18227 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18228 (zero_extendqisi2): ... here.
18229 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18230 (zero_extendhisi2): ... here.
18231 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18232 (extendqisi2): ... here.
18233 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18234 (extendhisi2): ... here.
18235 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18236 (ashlsi3): ... here.
18237 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18238 (lshrsi3): ... here.
18239 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18240 (ashrsi3): ... here.
18241 (consecutive add peephole): Remove.
18242 * config/mn10300/predicates.md (label_ref_operand): New.
18243 (int_mode_flags): New.
18244 (CCZN_comparison_operator): New.
18245
9efb4993
RH
18246 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18247 (throughput_42_latency_43): New reservation.
18248 (mulsidi3, umulsidi3): New expanders.
18249 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18250 the MDR register to allocation; separately allocate the low and
18251 high parts of the DImode result.
18252 (umulsidi3_internal): Similarly.
18253 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18254 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18255 (udivsi3, umodsi3): Remove.
18256 (udivmodsi4, divmodsi4): New expanders.
18257 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18258 (*divmodsi4): Simiarly.
18259 (ext_internal): New.
18260
c25a21f5
RH
18261 * config/mn10300/constraints.md ("z"): New constraint.
18262 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18263 (FIXED_REGISTERS): Don't fix MDR.
18264 (CALL_USED_REGSITERS): Reformat nicely.
18265 (REG_ALLOC_ORDER): Add MDR.
18266 (enum regclass): Add MDR_REGS.
18267 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18268 (IRA_COVER_CLASSES): Add MDR_REGS.
18269 (REGNO_REG_CLASS): Handle MDR_REG.
18270 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18271 (mn10300_register_move_cost): Likewise.
18272 * config/mn10300/mn10300.md (MDR_REG): New.
18273 (*movsi_internal): Handle moves to/from MDR_REGS.
18274
36846b26
RH
18275 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18276 POST_MODIFY.
18277 (mn10300_secondary_reload): Tidy combination reload classes.
18278 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18279 addresses for AM33. Allow symbolic offsets for reg+imm.
18280 (mn10300_regno_in_class_p): New.
18281 (mn10300_legitimize_reload_address): New.
18282 * config/mn10300/mn10300.h (enum reg_class): Remove
18283 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18284 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18285 SP_OR_GENERAL_REGS.
18286 (REG_CLASS_NAMES): Update to match.
18287 (REG_CLASS_CONTENTS): Likewise.
18288 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18289 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18290 (REGNO_IN_RANGE_P): Remove.
18291 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18292 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18293 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18294 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18295 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18296 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18297 (REGNO_GENERAL_P): New.
18298 (HAVE_POST_MODIFY_DISP): New.
18299 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18300 (LEGITIMIZE_RELOAD_ADDRESS): New.
18301 * config/mn10300/mn10300-protos.h: Update.
18302
8b119bb6
RH
18303 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18304 DATA_REGS for AM33 stack-pointer destination.
18305 (mn10300_preferred_output_reload_class): Likewise.
18306 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18307 into a form appropriate for ...
18308 (TARGET_SECONDARY_RELOAD): New.
18309 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18310 * config/mn10300/mn10300-protos.h: Update.
18311 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18312 reload_insi; use the "A" constraint for the scratch; handle AM33
18313 moves of sp to non-address registers.
18314
b1efde2a
RH
18315 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18316 (*movqi_internal): ... here.
18317 (*am33_movhi, *mn10300_movhi): Merge into...
18318 (*movhi_internal): ... here.
18319 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18320 as the source/destination of moves from/to SP.
18321 (movsf): Only allow for AM33-2.
1c3ba85b 18322 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
18323 any integer constant constraint. Only allow for AM33-2. Tidy
18324 all of the alternative outputs.
18325 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18326 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18327 for MN103.
18328 (udivsi3, umodsi3): New patterns for MN103 only.
18329
b899fd78
JR
183302011-01-19 Joern Rennecke <amylaar@spamcop.net>
18331
18332 * doc/tm.texi.in: Spell out that a lack of register class unions
18333 can lead to ICEs.
18334 * doc/tm.texi: Regenerate.
18335
afaaa67d
JJ
183362011-01-19 Jakub Jelinek <jakub@redhat.com>
18337
2e0642cd
JJ
18338 PR rtl-optimization/47337
18339 * dce.c (check_argument_store): New function.
18340 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18341
afaaa67d
JJ
18342 PR tree-optimization/47290
18343 * tree-eh.c (infinite_empty_loop_p): New function.
18344 (cleanup_empty_eh): Use it.
18345
d2cd871f
SE
183462011-01-18 Steve Ellcey <sje@cup.hp.com>
18347
18348 PR target/46997
18349 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18350 (a64_expand_widen_sum): Ditto.
18351 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18352 (vec_extract_evenodd_help): Ditto.
18353 (vec_extract_evenv4hi): Ditto.
18354 (vec_extract_oddv4hi): Ditto.
18355 (vec_extract_evenv2si): Ditto.
18356 (vec_extract_oddv2si): Ditto.
18357 (vec_extract_evenv2sf): Ditto.
18358 (vec_extract_oddv2sf): Ditto.
18359 (vec_pack_trunc_v4hi: Ditto.
18360 (vec_pack_trunc_v2si): Ditto.
18361 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18362 (vec_interleave_highv8qi): Ditto.
18363 (mix1_r): Ditto.
18364 (vec_extract_oddv8qi): Ditto.
18365 (vec_interleave_lowv4hi): Ditto.
18366 (vec_interleave_highv4hi): Ditto.
18367 (vec_interleave_lowv2si): Ditto.
18368 (vec_interleave_highv2si): Ditto.
18369
41a1208a
JDA
183702011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18371
18372 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18373 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18374 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18375 (pa_c_mode_for_suffix): New.
18376 (TARGET_EXPAND_BUILTIN): Define.
18377 (TARGET_C_MODE_FOR_SUFFIX): Define.
18378 (pa_builtins): Define.
18379 (pa_init_builtins): Register __float128 type and init new support
18380 builtins.
18381 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18382 * config/pa/quadlib.c (_U_Qfcopysign): New.
18383
1ecad98e
EB
183842011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18385
18386 PR middle-end/46894
18387 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18388 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18389 are defined.
18390
d4f2460a
UW
183912011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18392
18393 PR tree-optimization/47179
18394 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18395 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18396
4994da65
RG
183972011-01-18 Richard Guenther <rguenther@suse.de>
18398
18399 PR rtl-optimization/47216
18400 * emit-rtl.c: Include tree-flow.h.
18401 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18402 of replicating it with different semantics.
18403 * Makefile.in (emit-rtl.o): Adjust.
18404
1eb458d1
RR
184052011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18406
38be4072 18407 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 18408 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 18409
e7ef91dc
JJ
184102011-01-18 Jakub Jelinek <jakub@redhat.com>
18411
18412 PR rtl-optimization/47299
18413 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 18414 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
18415 * expmed.c (expand_widening_mult): Don't try to optimize constant
18416 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18417 before using it.
18418
535b7874
RW
184192011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18420
18421 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18422 spacing after 'e.g.', typos, comma, hyphenation.
18423
27bf36f3
RH
184242011-01-17 Richard Henderson <rth@redhat.com>
18425
8a5b5449
RH
18426 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18427 (rx_restricted_mem_operand): New.
18428 (rx_shift_operand): Use register_operand.
18429 (rx_source_operand, rx_compare_operand): Likewise.
18430 * config/rx/rx.md (addsi3_flags): New expander.
18431 (adddi3): Rewrite as expander.
18432 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18433 (subsi3_flags): New expander.
18434 (subdi3): Rewrite as expander.
18435 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18436
784f69be
RH
18437 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18438 (rx_init_builtins): Remove sat builtin.
18439 (rx_expand_builtin): Likewise.
18440 * config/rx/rx.md (ssaddsi3): New.
18441 (*sat): Rename from sat. Represent the CC_REG input.
18442
f033541c
RH
18443 * config/rx/predicates.md (rshift_operator): New.
18444 * config/rx/rx.c (rx_expand_insv): Remove.
18445 * config/rx/rx-protos.h: Update.
18446 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18447 operand to the canonical position.
18448 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18449 (*bitclr, *bitclr_in_memory): Similarly.
18450 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18451 (insv): Retain the zero_extract in the expansion.
18452
34fee389
RH
18453 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18454 (bswaphi2, bitinvert, revw): Likewise.
18455
265c835f
RH
18456 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18457 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18458 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18459 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18460 (bitset, bitset_in_memory): Likewise.
18461 (bitinvert, bitinvert_in_memory): Likewise.
18462 (bitclr, bitclr_in_memory): Likewise.
18463 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18464 (rx_strend, rx_cmpstrn): Likewise.
18465 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18466 (bitop peep2 patterns): Remove.
18467
b4d83be3
RH
18468 * config/rx/rx.c (rx_match_ccmode): New.
18469 * config/rx/rx-protos.h: Update.
18470 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18471 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18472 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18473 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18474 (fix_truncsfsi2, floatsisf2): Likewise.
18475 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18476 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18477 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18478 (*subsi3_flags, *xorsi3_flags): New.
18479
d0acb939
RH
18480 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18481
c06fc3d9
RH
18482 * config/rx/rx.c (rx_print_operand): Remove workaround for
18483 unsplit comparison operations.
18484
2882702b
RH
18485 * config/rx/rx.md (movsicc): Split after reload.
18486 (*movsicc): Merge *movsieq and *movsine via match_operator.
18487 (*stcc): New pattern.
18488
6f7310f2
RH
18489 * config/rx/rx.c (rx_float_compare_mode): Remove.
18490 * config/rx/rx.h (rx_float_compare_mode): Remove.
18491 * config/rx/rx.md (cstoresi4): Split after reload.
18492 (*sccc): New pattern.
18493
e963cb1a
RH
18494 * config/rx/predicates.md (label_ref_operand): New.
18495 (rx_z_comparison_operator): New.
18496 (rx_zs_comparison_operator): New.
18497 (rx_fp_comparison_operator): New.
18498 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18499 Validate that the flags are set properly for the comparison.
18500 (rx_gen_cond_branch_template): Remove.
18501 (rx_cc_modes_compatible): Remove.
18502 (mode_from_flags): New.
18503 (flags_from_code): Rename from flags_needed_for_conditional.
18504 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18505 (rx_select_cc_mode): Likewise.
18506 (rx_split_fp_compare): New.
18507 (rx_split_cbranch): New.
18508 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18509 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18510 (*cbranchsf4): Similarly.
18511 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18512 match_operator and rx_split_cbranch.
18513 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18514 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18515 (*cmpsi): Rename from cmpsi.
18516 (*tstsi): Rename from tstsi.
18517 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18518 (*conditional_branch): Rename from conditional_branch.
18519 (*reveresed_conditional_branch): Remove.
18520 (b<code>): Remove expander.
18521 * config/rx/rx-protos.h: Update.
18522
af530bb4
RH
18523 * config/rx/rx.c (rx_compare_redundant): Remove.
18524 * config/rx/rx.md (cmpsi): Don't use it.
18525 * config/rx/rx-protos.h: Update.
18526
27bf36f3
RH
18527 * config/rx/rx-modes.def (CC_F): New mode.
18528 * config/rx/rx.c (rx_select_cc_mode): New.
18529 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18530 * config/rx/rx-protos.h: Update.
18531
d7fde127
RH
185322011-01-17 Richard Henderson <rth@redhat.com>
18533
18534 * except.c (dump_eh_tree): Fix stray ; after for statement.
18535
6ff38230
RG
185362011-01-17 Richard Guenther <rguenther@suse.de>
18537
18538 PR tree-optimization/47313
18539 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18540 handling before copying the body. Properly deal with
18541 by-reference result in SSA form.
18542
114ce554
ILT
185432011-01-17 Ian Lance Taylor <iant@google.com>
18544
bf5cd92b 18545 PR target/47219
114ce554
ILT
18546 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18547 (struct_value_alias_set): Don't define.
18548 (sparc_option_override): Don't set sparc_sr_alias_set and
18549 struct_value_alias_set.
18550 (save_or_restore_regs): Use gen_frame_mem rather than calling
18551 set_mem_alias_set.
18552 (sparc_struct_value_rtx): Likewise.
18553
98c6d93c
L
185542011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18555
18556 PR target/47318
7a81008b 18557 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
18558 (_mm_maskstore_pd): Likewise.
18559 (_mm_maskload_ps): Likewise.
18560 (_mm_maskstore_ps): Likewise.
18561 (_mm256_maskload_pd): Change mask to __m256i.
18562 (_mm256_maskstore_pd): Likewise.
18563 (_mm256_maskload_ps): Likewise.
18564 (_mm256_maskstore_ps): Likewise.
18565
18566 * config/i386/i386-builtin-types.def: Updated.
18567 (ix86_expand_special_args_builtin): Likewise.
18568
18569 * config/i386/i386.c (bdesc_special_args): Update
18570 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18571 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18572 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18573 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18574
18575 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18576 Use <avxpermvecmode> on mask register.
18577 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18578
b9361af2 185792011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
18580 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18581 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
18582
18583 PR target/46655
18584 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18585 if <= USHRT_MAX in 32-bit mode.
18586
b7ae9eb5
RW
185872011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18588
18589 * doc/install.texi (Configuration, Specific): Wrap long
18590 lines in examples. Allow line wrapping in long options
18591 and URLs where beneficial for PDF output.
18592
4377fad9
RS
185932011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18594
18595 * config/mips/mips.c (mips_classify_symbol): Don't return
18596 SYMBOL_PC_RELATIVE for nonlocal labels.
18597
55959ffa 185982011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 18599
55959ffa
EB
18600 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18601
186022011-01-15 Jan Hubicka <jh@suse.cz>
18603
18604 PR tree-optimization/47276
be46831f
JH
18605 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18606 declarations as needed.
18607
05842ff5
MJ
186082011-01-15 Martin Jambor <mjambor@suse.cz>
18609
18610 * common.opt (fdevirtualize): New flag.
18611 * doc/invoke.texi (Option Summary): Document it.
18612 * opts.c (default_options_table): Add devirtualize flag.
18613 * ipa-prop.c (detect_type_change): Return immediately if
18614 devirtualize flag is not set.
18615 (detect_type_change_ssa): Likewise.
18616 (compute_known_type_jump_func): Likewise.
18617 (ipa_analyze_virtual_call_uses): Likewise.
18618
f65cf2b7
MJ
186192011-01-14 Martin Jambor <mjambor@suse.cz>
18620
18621 PR tree-optimization/45934
18622 PR tree-optimization/46302
18623 * ipa-prop.c (type_change_info): New type.
18624 (stmt_may_be_vtbl_ptr_store): New function.
18625 (check_stmt_for_type_change): Likewise.
18626 (detect_type_change): Likewise.
18627 (detect_type_change_ssa): Likewise.
18628 (compute_complex_assign_jump_func): Check for dynamic type change.
18629 (compute_complex_ancestor_jump_func): Likewise.
18630 (compute_known_type_jump_func): Likewise.
18631 (compute_scalar_jump_functions): Likewise.
18632 (ipa_analyze_virtual_call_uses): Likewise.
18633 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18634
eb5bb0fd
JM
186352011-01-14 Joseph Myers <joseph@codesourcery.com>
18636
18637 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18638 * config/i386/i386.opt (msse5): New Alias.
18639
f2060fbe
JM
186402011-01-14 Joseph Myers <joseph@codesourcery.com>
18641
18642 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18643 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18644 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18645 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18646
3a7b4385
JM
186472011-01-14 Joseph Myers <joseph@codesourcery.com>
18648
18649 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18650 -mcpu options.
18651 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18652 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18653 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18654 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18655 Likewise.
18656 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18657
a7b778f8
JM
186582011-01-14 Joseph Myers <joseph@codesourcery.com>
18659
38be4072 18660 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 18661
a7edae0a
MS
186622011-01-14 Mike Stump <mikestump@comcast.net>
18663
18664 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18665 * config/fr30/fr30.md: Likweise
18666 (movsi_push): Likewise.
18667 (movsi_pop): Likewise.
18668 (enter_func): Likewise.
18669 * config/moxie/moxie.md (movsi_push): Likewise.
18670 (movsi_pop): Likewise.
18671
cbabf03f
JM
186722011-01-14 Joseph Myers <joseph@codesourcery.com>
18673
18674 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18675 %{no_archive} %{exact_version}.
18676 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18677 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18678 %{no_archive} %{exact_version}.
18679 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18680 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18681 * config/mips/vxworks.h: Likewise.
18682
438da41a
JM
186832011-01-14 Joseph Myers <joseph@codesourcery.com>
18684
38be4072 18685 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 18686
da290a42
JM
186872011-01-14 Joseph Myers <joseph@codesourcery.com>
18688
18689 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18690 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18691
8989d00e
JM
186922011-01-14 Joseph Myers <joseph@codesourcery.com>
18693
18694 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18695 -nodefaultlib.
18696
a3010a69
JM
186972011-01-14 Joseph Myers <joseph@codesourcery.com>
18698
18699 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18700 for mcpu not cpu.
18701 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18702 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18703 not cpu.
18704 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18705 Don't handle -shlib.
18706
e7f2f537
JM
187072011-01-14 Joseph Myers <joseph@codesourcery.com>
18708
18709 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18710 (CC1_SPEC): Don't handle -profile.
18711
34830bfd
JM
187122011-01-14 Joseph Myers <joseph@codesourcery.com>
18713
18714 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18715 * config/mips/mips.h (CC1_SPEC): Likewise.
18716
b2d36e74
JM
187172011-01-14 Joseph Myers <joseph@codesourcery.com>
18718
18719 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18720 * config/mips/mips.h (CC1_SPEC): Likewise.
18721
dabadc52
JM
187222011-01-14 Joseph Myers <joseph@codesourcery.com>
18723
18724 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18725 * config/m32r/linux.h (LINK_SPEC): Likewise.
18726 * config/mips/linux.h (LINK_SPEC): Likewise.
18727 * config/mips/linux64.h (LINK_SPEC): Likewise.
18728 * config/sparc/linux.h (LINK_SPEC): Likewise.
18729 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18730 LINK_SPEC): Likewise.
18731 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18732
43ee6785
JM
187332011-01-14 Joseph Myers <joseph@codesourcery.com>
18734
18735 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18736 %{version:-v}.
18737 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18738
45e79dfd
JM
187392011-01-14 Joseph Myers <joseph@codesourcery.com>
18740
18741 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18742 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18743
37e9e71d
JM
187442011-01-14 Joseph Myers <joseph@codesourcery.com>
18745
18746 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18747
bb127cd8
RO
187482011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18749
18750 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18751 supports -Bstatic/-Bdynamic.
18752 * configure: Regenerate.
18753
89a012ea 187542011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 18755 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
18756
18757 PR target/46037
18758 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18759 when checking debug_info_level. Test write_symbols instead of
18760 debug_hooks->var_location when setting flag_var_tracking_uninit.
18761
7352c013
RG
187622011-01-14 Richard Guenther <rguenther@suse.de>
18763
18764 PR tree-optimization/47179
18765 * target.def (ref_may_alias_errno): New target hook.
18766 * targhooks.h (default_ref_may_alias_errno): Declare.
18767 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18768 (default_ref_may_alias_errno): New function.
18769 * target.h (struct ao_ref_s): Declare.
18770 * tree-ssa-alias.c: Include target.h.
18771 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18772 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18773 (targhooks.o): Likewise.
18774 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18775 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18776
9a6c9288
RG
187772011-01-14 Richard Guenther <rguenther@suse.de>
18778
18779 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18780
0fdb0d27
RG
187812011-01-14 Richard Guenther <rguenther@suse.de>
18782
18783 PR tree-optimization/47280
18784 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18785 return CFG changes.
18786 (tree_ssa_forward_propagate_single_use_vars): Deal with
18787 CFG changes from associate_plusminus.
18788
8f66db3b
RG
187892011-01-14 Richard Guenther <rguenther@suse.de>
18790
18791 PR middle-end/47281
18792 Revert
18793 2011-01-11 Richard Guenther <rguenther@suse.de>
18794
280d9630
EB
18795 PR tree-optimization/46076
18796 * tree-ssa.c (useless_type_conversion_p): Conversions from
18797 unprototyped to empty argument list function types are useless.
8f66db3b 18798
6c0c92e6
RG
187992011-01-14 Richard Guenther <rguenther@suse.de>
18800
18801 PR tree-optimization/47286
280d9630 18802 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 18803
db09f943
MJ
188042011-01-14 Martin Jambor <mjambor@suse.cz>
18805
18806 PR middle-end/46823
18807 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18808
dde8a3a4
AS
188092011-01-13 Anatoly Sokolov <aesok@post.ru>
18810
18811 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18812 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18813 * config/xtensa/xtensa.c (xtensa_libcall_value,
18814 xtensa_function_value_regno_p): New functions.
18815 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18816
a2b63a20
KT
188172011-01-13 Kai Tietz <kai.tietz@onevision.com>
18818
18819 PR c++/47213
18820 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18821 PE specific hook.
18822 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18823 New function prototype.
18824 * config/i386/winnt.c (i386_pe_assemble_visibility):
18825 Warn only if attribute was specified by user.
18826
b41f0b34
MM
188272011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18828
18829 PR target/47251
18830 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18831 floating point.
18832 (floatunsdidf2_fcfidu): Ditto.
18833
3f3c098d
AK
188342011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18835
18836 * config/s390/s390.c (print_operand_address): Replace 'error' with
18837 'output_operand_lossage'.
18838 (print_operand): Likewise.
18839
29fa95ed
JL
188402011-01-13 Jeff Law <law@redhat.com>
18841
280d9630 18842 PR rtl-optimization/39077
29fa95ed
JL
18843 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18844 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18845 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18846 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18847 * gcse.c (prune_insertions_deletions): New function.
18848 (compute_pre_data): Use it.
18849
71d12276
DS
188502011-01-13 Dodji Seketeli <dodji@redhat.com>
18851
18852 PR debug/PR46973
18853 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18854 static function.
61052244 18855 (prune_unused_types_mark): Use it.
71d12276 18856
9b0f04e7
AB
188572011-01-13 Andrey Belevantsev <abel@ispras.ru>
18858
18859 PR rtl-optimization/45352
1c3ba85b 18860 * sel-sched.c: Update copyright years.
9b0f04e7 18861 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 18862 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 18863
d6a3e264
RH
188642011-01-12 Richard Henderson <rth@redhat.com>
18865
a49b692a
RH
18866 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18867 (TARGET_MD_ASM_CLOBBERS): New.
18868
126b1483
RH
18869 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18870 (TARGET_DELEGITIMIZE_ADDRESS): New.
18871
f3d9d2e0
RH
18872 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18873 (clzsi2, *bsch): New patterns.
18874
d84760c9
RH
18875 * config/mn10300/mn10300.md (INT): New mode iterator.
18876 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18877
ec815d65
RH
18878 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18879 flag_split_wide_types.
18880
d6a3e264
RH
18881 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18882 (mn10300_trampoline_init): Rewrite without a template, an immediate
18883 load and a direct branch.
18884 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18885
0f8ab434
AS
188862011-01-12 Anatoly Sokolov <aesok@post.ru>
18887
18888 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18889 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18890 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18891 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18892
d8a24b65
KT
188932011-01-12 Kai Tietz <kai.tietz@onevision.com>
18894
18895 PR debug/47209
18896 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18897 of type.
18898
56e22cab
JH
188992011-01-12 Jan Hubicka <jh@suse.cz>
18900
18901 PR driver/47244
18902 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18903 (PLUGIN_COND_CLOSE): New macro.
18904 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18905
4b18b3c2
RG
189062011-01-12 Richard Guenther <rguenther@suse.de>
18907
18908 PR lto/47259
18909 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18910 register variables in a MEM_REF.
18911
8e38461c
JM
189122011-01-12 Joseph Myers <joseph@codesourcery.com>
18913
18914 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18915 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18916 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18917 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18918 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18919 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18920 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18921 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18922 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18923 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18924 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18925 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18926 * config/gnu-user.h: New. Copied from linux.h.
18927 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18928 GNU_USER_TARGET_STARTFILE_SPEC.
18929 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18930 GNU_USER_TARGET_ENDFILE_SPEC.
18931 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18932 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18933 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18934 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18935 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18936 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18937 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18938 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18939 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18940 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18941 * config/arm/linux-eabi.h (CC1_SPEC): Use
18942 GNU_USER_TARGET_CC1_SPEC.
18943 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18944 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18945 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18946 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18947 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18948 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18949 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18950 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18951
a570fc16
RG
189522011-01-12 Richard Guenther <rguenther@suse.de>
18953
18954 PR other/46946
18955 * doc/invoke.texi (ffast-math): Document it is turned on
18956 with -Ofast.
18957
b0223c3e
JH
189582011-01-12 Jan Hubicka <jh@suse.cz>
18959
18960 PR tree-optimization/47233
ca1e00b3
EB
18961 * opts.c (common_handle_option): Disable ipa-reference with profile
18962 feedback.
b0223c3e 18963
1c3ba85b 189642011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
18965
18966 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
18967 error message.
18968
d853ee42
NP
189692011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18970
18971 * c-parser.c (c_lex_one_token): Updated and reindented some
18972 comments. No changes in code.
18973
4053a5a0
ILT
189742011-01-11 Ian Lance Taylor <iant@google.com>
18975
18976 * godump.c (go_output_var): Don't output the variable if there is
18977 already a type with the same name.
18978
fa3e04d2
ILT
189792011-01-11 Ian Lance Taylor <iant@google.com>
18980
18981 * godump.c (go_format_type): Don't generate float80.
18982
885fe07c
RH
189832011-01-11 Richard Henderson <rth@redhat.com>
18984
72d6e3c5
RH
18985 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18986 declaration. Rewrite for both speed and size.
18987 (mn10300_address_cost_1): Remove.
18988 (mn10300_register_move_cost): New.
18989 (mn10300_memory_move_cost): New.
18990 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18991 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18992 extensions, shifts, BSWAP, CLZ.
18993 (mn10300_wide_const_load_uses_clr): Remove.
18994 (TARGET_REGISTER_MOVE_COST): New.
18995 (TARGET_MEMORY_MOVE_COST): New.
18996 * config/mn10300/mn10300-protos.h: Update.
18997 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18998
df37c023
RH
18999 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19000 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19001 * config/mn10300/mn10300-protos.h: Update.
19002 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19003 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19004 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19005 (*test_int_bitfield, *test_byte_bitfield): Remove.
19006 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 19007 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 19008
85a337b5
RH
19009 * config/mn10300/constraints.md ("c"): Rename from "A".
19010 ("A", "D"): New constraint letters.
19011 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19012 (fmssf4, fnmasf4, fnmssf4): Likewise.
19013
a5c727e3
RH
19014 * config/mn10300/mn10300.md (isa): New attribute.
19015 (enabled): New attribute.
19016
0d9e23f4
RH
19017 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19018 (abssf2, negsf2): Define only for hardware fp.
19019 (sqrtsf2): Reformat.
19020 (addsf3, subsf3, mulsf3): Merge expander and insn.
19021
c157b3f0
RH
19022 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19023 (DEBUGGER_AUTO_OFFSET): Remove.
19024 (DEBUGGER_ARG_OFFSET): Remove.
19025
cc909bba
RH
19026 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19027 Emit register stores with the same offsets as the hardware.
19028 (mn10300_store_multiple_operation): Don't check that the register
19029 save offsets are monotonic.
19030 * config/mn10300/mn10300-protos.h: Update.
19031
e3b5c2f3
RH
19032 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19033
885fe07c
RH
19034 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19035 in terms of the value on the stack, not the MDR register.
19036
6e701822
JH
190372011-01-11 Jan Hubicka <jh@suse.cz>
19038
19039 PR lto/45721
19040 PR lto/45375
19041 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19042 (symbol_alias_set_destroy, symbol_alias_set_contains,
19043 propagate_aliases_backward): Declare.
19044 * lto-streamer-out.c (struct sets): New sturcture.
19045 (trivally_defined_alias): New function.
19046 (output_alias_pair_p): Rewrite.
19047 (output_unreferenced_globals): Fix output of alias pairs.
19048 (produce_symtab): Likewise.
19049 * ipa.c (function_and_variable_visibility): Set weak alias destination
19050 as needed in lto.
19051 * varasm.c (symbol_alias_set_t): Remove.
19052 (symbol_alias_set_destroy): Export.
19053 (propagate_aliases_forward, propagate_aliases_backward): New functions
19054 based on ...
19055 (compute_visible_aliases): ... this one; remove.
19056 (trivially_visible_alias): New
19057 (trivially_defined_alias): New.
19058 (remove_unreachable_alias_pairs): Rewrite.
19059 (finish_aliases_1): Reorganize code checking if alias is defined.
19060 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19061 in LTO mode.
19062
1b248907
RG
190632011-01-11 Richard Guenther <rguenther@suse.de>
19064
19065 PR tree-optimization/46076
19066 * tree-ssa.c (useless_type_conversion_p): Conversions from
19067 unprototyped to empty argument list function types are useless.
19068
b1923f0a
RG
190692011-01-11 Richard Guenther <rguenther@suse.de>
19070
19071 PR middle-end/45235
19072 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19073 volatile MEMs as MEM_READONLY_P.
19074
e98965af
RG
190752011-01-11 Richard Guenther <rguenther@suse.de>
19076
19077 PR tree-optimization/47239
19078 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19079
9f9ca914
JL
190802011-01-11 Jeff Law <law@redhat.com>
19081
1ee3ea05 19082 PR tree-optimization/47086
9f9ca914
JL
19083 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19084 IVs from statements that might throw.
19085
345fdcb7
JH
190862011-01-10 Jan Hubicka <jh@suse.cz>
19087
19088 PR lto/45375
19089 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19090
c459c97b
JH
190912011-01-10 Jan Hubicka <jh@suse.cz>
19092
19093 PR lto/45375
19094 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19095 when correcting profile.
19096
06c9eb51
JH
190972011-01-10 Jan Hubicka <jh@suse.cz>
19098
19099 PR lto/46083
19100 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19101 DECL_FINI_PRIORITY.
19102 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19103 Restore DECL_FINI_PRIORITY.
19104
ae9fd815
RW
191052011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19106
19107 * doc/gimple.texi: Fix quoting of multi-word return values in
19108 @deftypefn statements. Ensure presence of return value. Wrap
19109 overlong @deftypefn lines.
19110 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19111 descriptions of removed functions.
19112 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19113 of multi-word return value in @deftypefn statement.
19114
0ecb4a7c
RW
191152011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19116
19117 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19118 (Conditional Expressions, Logical Operators)
19119 (Statement and operand traversals): Do not indent smallexample
19120 code. Fix duplicate function argument in example.
19121
2e5e346d
JL
191222011-01-10 Jeff Law <law@redhat.com>
19123
1ee3ea05 19124 PR tree-optimization/47141
2e5e346d
JL
19125 * ipa-split.c (split_function): Handle case where we are
19126 returning a value and the return block has a virtual operand phi.
19127
cf9712cc
JH
191282011-01-10 Jan Hubicka <jh@suse.cz>
19129
1c3ba85b 19130 PR tree-optimization/47234
cf9712cc
JH
19131 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19132 (pass_feedback_split_functions): Declare.
19133 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19134 tree-profile.
19135 * ipa-split.c (gate_split_functions): Update comments; disable
19136 split-functions for profile_arc_flag and branch_probabilities.
19137 (gate_feedback_split_functions): New function.
19138 (execute_feedback_split_functions): New function.
19139 (pass_feedback_split_functions): New global var.
19140
94cd932c
L
191412011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19142
19143 PR lto/46760
19144 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19145 calling gimple_call_set_cannot_inline.
19146
fbbfcaf1
IS
191472011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19148
19149 * config/darwin-sections.def: Remove unused section.
19150
d06865bf
DK
191512011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19152
19153 PR c++/47218
19154 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19155
96bbfbac
NP
191562011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19157
19158 PR objc/47232
19159 * c-parser.c (c_parser_declaration_or_fndef): Improved
19160 error message.
19161
1ba6516f
KT
191622011-01-09 Kai Tietz <kai.tietz@onevision.com>
19163
19164 * config/i386/winnt.c (i386_pe_start_function): Make sure
19165 to switch back to function's section.
19166
0c5d770e
IS
191672011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19168
19169 PR gcc/46902
19170 PR testsuite/46912
19171 * plugin.c: Move include of dlfcn.h from here...
19172 * system.h: ... to here.
19173
191742011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
19175
19176 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19177 file name.
19178 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19179 two extra empty pages in PDF output.
19180
046608a3
NP
191812011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19182
19183 PR objc/47078
19184 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19185 for error recovery purposes behave as if it was not specified so
19186 that the default type is usd.
19187
8cb114b9
JH
191882011-01-07 Jan Hubicka <jh@suse.cz>
19189
19190 PR tree-optmization/46469
19191 * ipa.c (function_and_variable_visibility): Clear needed flags on
19192 nodes with external decls; handle weakrefs merging correctly.
19193
b294a75e
JM
191942011-01-07 Joseph Myers <joseph@codesourcery.com>
19195
19196 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19197 not false.
19198
96bdf9b4
JH
191992011-01-07 Jan Hubicka <jh@suse.cz>
19200
f60c2554 19201 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
19202 and no longer claim that gold is required for linker plugin.
19203 * configure: Regenerate.
19204 * gcc.c (PLUGIN_COND): New macro.
19205 (LINK_COMMAND_SPEC): Use it.
19206 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19207 * config.in (HAVE_LTO_PLUGIN): New.
19208 * configure.ac (--with-lto-plugin): New parameter; autodetect
19209 HAVE_LTO_PLUGIN.
19210
17afc0fe
JH
192112011-01-07 Jan Hubicka <jh@suse.cz>
19212
19213 PR tree-optimization/46367
19214 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19215 when we can update original.
19216 (cgraph_mark_inline_edge): Sanity check.
19217 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19218
d4c48c0f
UW
192192011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19220
19221 * config/spu/spu.h (ASM_COMMENT_START): Define.
19222
96f5b137
L
192232011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19224
19225 PR driver/42445
19226 * gcc.c (%>S): New.
19227 (SWITCH_KEEP_FOR_GCC): Likewise.
19228 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19229 (do_spec_1): Handle "%>".
19230
19231 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19232
c6a8f6de
JJ
192332011-01-07 Jakub Jelinek <jakub@redhat.com>
19234
c21bbd7a
JJ
19235 PR target/47201
19236 * config/i386/i386.c (ix86_delegitimize_address): If
19237 simplify_gen_subreg fails, return orig_x.
19238
c6a8f6de
JJ
19239 PR bootstrap/47187
19240 * value-prof.c (gimple_stringop_fixed_value): Handle
19241 lhs of the call properly.
19242
fe95fbf9
JH
192432011-01-07 Jan Hubicka <jh@suse.cz>
19244
19245 PR lto/45375
19246 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19247
14d11d40
IS
192482011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19249
72e961c8
EB
19250 * target.def (function_switched_text_sections): New hook.
19251 * doc/tm.texi: Regenerated.
19252 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19253 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
19254 (final_scan_insn): Call function_switched_text_sections when a
19255 mid-function section change occurs.
14d11d40 19256 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
19257 * config/darwin-protos.h (darwin_function_switched_text_sections):
19258 Likewise.
14d11d40 19259 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 19260 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19261
0b764288
IS
192622011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19263
19264 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19265 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19266 the secondary code fragment when outputting for DWARF == 2.
19267
2ac6bb04
AS
192682011-01-07 Anatoly Sokolov <aesok@post.ru>
19269
19270 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19271 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19272 Remove.
19273 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19274 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19275
9f82de11
EB
192762011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19277
19278 PR debug/46704
280d9630
EB
19279 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19280 when it is not empty.
9f82de11
EB
19281
192822011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 19283
1ed72abf 19284 Bobcat Enablement
14b52538 19285 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 19286 (case ${target}): Add btver1.
14b52538 19287 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 19288 -march=native recognize btver1 processors.
14b52538 19289 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 19290 btver1 def_and_undef
14b52538 19291 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
19292 btver1 cost table.
19293 (m_BTVER1): New definition.
19294 (m_AMD_MULTIPLE): Includes m_BTVER1.
19295 (initial_ix86_tune_features): Add btver1 tune.
19296 (processor_target_table): Add btver1 entry.
19297 (static const char *const cpu_names): Add btver1 entry.
19298 (software_prefetching_beneficial_p): Add btver1.
19299 (ix86_option_override_internal): Add btver1 instruction sets.
19300 (ix86_issue_rate): Add btver1.
19301 (ix86_adjust_cost): Add btver1.
14b52538 19302 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
19303 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19304 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
19305 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19306
e1a973d8
RO
193072011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19308
19309 PR target/43309
19310 * config/i386/i386.c (legitimize_tls_address)
19311 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19312 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19313 (tls_initial_exec_64_sun): New pattern.
19314
c73f67c5
GP
193152011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19316
19317 * doc/invoke.texi (Overall Options): Improve wording and markup
19318 of the description of -wrapper.
19319
bc4c6f9c
JM
193202011-01-06 Joseph Myers <joseph@codesourcery.com>
19321
19322 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19323 rdynamic, threads): New Driver options.
19324
adb75db0
RO
193252011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19326
19327 PR target/38118
19328 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19329 if coming from .tdata.
19330 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19331
402c1cb4
JH
193322011-01-06 Jan Hubicka <jh@suse.cz>
19333
19334 PR lto/47188
19335 * collect2.c (main): Do not enable LTOmode when plugin is active.
19336
a4da6485
RO
193372011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19338
19339 PR other/45915
19340 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19341 --version output if supported.
19342 * configure: Regenerate.
19343
028dbdf4
JM
193442011-01-06 Joseph Myers <joseph@codesourcery.com>
19345
19346 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19347 Driver options.
19348
dfe776dd
JJ
193492011-01-06 Jakub Jelinek <jakub@redhat.com>
19350
19351 PR c/47150
19352 * c-convert.c (convert): When converting a complex expression
19353 other than COMPLEX_EXPR to a different complex type, ensure
19354 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19355 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19356 when converting COMPLEX_TYPE.
19357
210dedfe
IR
193582011-01-06 Ira Rosen <irar@il.ibm.com>
19359
19360 PR tree-optimization/47139
19361 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19362 only the last reduction value is used outside the loop. Update
19363 documentation.
19364
cd33a412
JM
193652011-01-05 Joseph Myers <joseph@codesourcery.com>
19366
19367 * config/rtems.opt: New.
19368 * config.gcc (*-*-rtems*): Use rtems.opt.
19369
819edd94
CF
193702011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19371
19372 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19373 processors do not support 3DNow instructions.
19374
dc242c4a
UW
193752011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19376
19377 * config/spu/spu.c (spu_option_override): Set parameter
19378 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19379
be286227
JH
193802011-01-05 Jan Hubicka <jh@suse.cz>
19381
19382 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19383 at the command line.
19384
644e637f
MJ
193852011-01-05 Martin Jambor <mjambor@suse.cz>
19386
19387 PR lto/47162
19388 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19389 deltas on streamed outgoing edges.
19390 (output_node_opt_summary): Output info for outgoing edges only when
19391 the node is in new parameter set.
19392 (output_cgraph_opt_summary): New parameter set, passed to the two
19393 aforementioned functions. Update its forward declaration and its
19394 callee too.
19395
7bd11157
TT
193962011-01-05 Tom Tromey <tromey@redhat.com>
19397
19398 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19399 operator to c_finish_omp_atomic.
19400 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19401 (build_unary_op): Update.
19402 (build_modify_expr): Update.
19403 (build_asm_expr): Update.
19404
f626b979
UW
194052011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19406
19407 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19408 newly inserted insns.
19409 (pad_bb): Likewise.
19410 (spu_emit_branch_hint): Likewise.
19411 (insert_hbrp_for_ilb_runout): Likewise.
19412 (spu_machine_dependent_reorg): Call df_finish_pass after
19413 schedule_insns returns.
19414
4c825c02
UW
194152011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19416
19417 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19418
5e9fba51
EB
194192011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19420
19421 PR tree-optimization/47005
19422 * tree-sra.c (struct access): Add 'non_addressable' bit.
19423 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19424 (decide_one_param_reduction): Return 0 if the parameter is passed by
19425 reference and one of the accesses in the group is non_addressable.
19426
3ebb5ca6
EB
194272011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19428
19429 PR tree-optimization/47056
19430 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19431 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19432 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19433
d5d4d14e
EB
194342011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19435
19436 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19437 initializer. Skip view conversions from aggregate types.
19438
d996ef70
KT
194392011-01-04 Kai Tietz <kai.tietz@onevision.com>
19440
19441 PR bootstrap/47055
19442 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19443
509d65dd 194442011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
19445
19446 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19447 obvious typo.
19448
55c623b5
UW
194492011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19450
19451 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19452 on empty epilogue sequences.
19453
b98d6b35
JM
194542011-01-04 Joseph Myers <joseph@codesourcery.com>
19455
19456 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19457 non-static): New Driver options.
19458
a0d43bac
JZ
194592011-01-04 Jie Zhang <jie@codesourcery.com>
19460
19461 PR driver/47137
19462 * gcc.c (default_compilers[]): Set combinable field to 0
19463 for all assembly languages.
19464
2b18eb32
MX
194652011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19466
19467 * config/mips/loongson3a.md: New file.
19468 * config/mips/mips.md: Include loongson3a.md.
19469 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19470 TUNE_LOONGSON_3A.
19471
42a48c4f
EB
194722011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19473
19474 PR middle-end/47017
19475 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19476 instead of convert_memory_address_addr_space on the base expression.
19477
9c1732c4
UW
194782011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19479
19480 * config/spu/spu.c (spu_option_override): Update error text
19481 for bad -march= / -mtune= values.
19482
aa474365
UW
194832011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19484
19485 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19486 if branch-hint optimization will be performed.
19487
9766135b
JJ
194882011-01-03 Jakub Jelinek <jakub@redhat.com>
19489
371556ee
JJ
19490 PR tree-optimization/47148
19491 * ipa-split.c (split_function): Convert arguments to
19492 DECL_ARG_TYPE if possible.
19493
1ac12fa2
JJ
19494 PR tree-optimization/47155
19495 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19496 when computing uns.
19497
9766135b
JJ
19498 PR rtl-optimization/47157
19499 * combine.c (try_combine): If undobuf.other_insn becomes
19500 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19501 and set *new_direct_jump_p too.
19502
f4a2e571
SP
195032011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19504
19505 PR tree-optimization/47021
19506 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19507
9f8e43c0
JJ
195082011-01-03 Jakub Jelinek <jakub@redhat.com>
19509
19510 * gcc.c (process_command): Update copyright notice dates.
19511 * gcov.c (print_version): Likewise.
19512 * gcov-dump.c (print_version): Likewise.
19513 * mips-tfile.c (main): Likewise.
19514 * mips-tdump.c (main): Likewise.
19515
1a2e38f3
MJ
195162011-01-03 Martin Jambor <mjambor@suse.cz>
19517
19518 PR tree-optimization/46801
19519 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19520 aggregate fields start at byte boundary instead of the bit-field flag.
19521
56b721c5
L
195222011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19523
19524 PR driver/47137
19525 * gcc.c (main): Revert revision 168407.
19526
839d549b
MJ
195272011-01-03 Martin Jambor <mjambor@suse.cz>
19528
19529 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19530
4ce99a20 195312011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
19532
19533 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19534 vector optab to expand vector/scalar shift, update gimple to vector.
19535
76df0ae6
MJ
195362011-01-03 Martin Jambor <mjambor@suse.cz>
19537
19538 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19539 a thunk.
19540
ce47fda3
MJ
195412011-01-03 Martin Jambor <mjambor@suse.cz>
19542
19543 PR tree-optimization/46984
19544 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19545 HOST_WIDE_INT.
19546 (cgraph_create_indirect_edge): Fixed line length.
19547 (cgraph_indirect_call_info): Declare.
19548 (cgraph_make_edge_direct) Update declaration.
19549 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19550 (cgraph_create_indirect_edge): Use it.
19551 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19552 callees.
19553 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19554 the new thunk_delta representation.
19555 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19556 HOST_WIDE_INT.
19557 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19558 (ipa_read_indirect_edge_info): Likewise.
19559 * lto-cgraph.c (output_edge_opt_summary): New function.
19560 (output_node_opt_summary): Call it on all outgoing edges.
19561 (input_edge_opt_summary): New function.
19562 (input_node_opt_summary): Call it on all outgoing edges.
19563
1e67fa1f
L
195642011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19565
19566 PR driver/47137
19567 * gcc.c (main): Don't check have_o when settting combine_inputs.
19568
6656b2ac
EB
195692011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19570
19571 * regrename.c: Add general comment describing the pass.
19572 (struct du_head): Remove 'length' field.
19573 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19574 (regrename_optimize): Do not sort chains. Rework comments, add others.
19575 Force renaming to the preferred class (if any) in the first pass and do
19576 not consider registers that belong to it in the second pass.
19577 (create_new_chain): Do not set 'length' field.
19578 (scan_rtx_reg): Likewise.
19579
bc470c24
JJ
195802011-01-02 Jakub Jelinek <jakub@redhat.com>
19581
4e996296
JJ
19582 PR tree-optimization/47140
19583 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19584 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19585 to bit_value_binop.
19586
bc470c24 19587 PR rtl-optimization/47028
6656b2ac
EB
19588 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19589 parm_birth_insn instead of at the beginning of first bb.
bc470c24 19590
5af62fcd 195912011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
19592
19593 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19594 Remove the word "see" before "@pxref".
19595 * doc/rtl.texi: Remove the word "see" before "@pxref".
19596
0e20c89f
JH
195972011-01-01 Jan Hubicka <jh@suse.cz>
19598
6656b2ac
EB
19599 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19600 memory.
0e20c89f 19601
220e83ca
KT
196022011-01-01 Kai Tietz <kai.tietz@onevision.com>
19603
19604 PR target/38662
6656b2ac 19605 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 19606
ad41bd84 19607\f
797103eb 19608Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
19609
19610Copying and distribution of this file, with or without modification,
19611are permitted in any medium without royalty provided the copyright
19612notice and this notice are preserved.