]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR middle-end/49465 (Revision 175114 miscompiled 403.gcc in SPEC CPU 2006)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
ad3577df
JL
12011-06-16 Jeff Law <law@redhat.com>
2
3 PR middle-end/49465
4 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
5 to detect threading through joiner block. If there was already
6 an edge to the new target, then do not change the PHI nodes.
7
7cf64710
JJ
82011-06-23 Jakub Jelinek <jakub@redhat.com>
9
10 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11 get_pointer_alignment to see if base isn't sufficiently aligned.
12
febb1302
JH
132011-06-23 Jan Hubicka <jh@suse.cz>
14
15 PR tree-optimize/49373
16 * tree-pass.h (all_late_ipa_passes): Declare.
17 * cgraphunit.c (init_lowered_empty_function): Fix properties.
18 (cgraph_optimize): Execute late passes; remove unreachable funcions after
19 materialization.
20 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
21 * passes.c (all_late_ipa_passes): Declare.
22 (dump_passes, register_pass): Handle late ipa passes.
23 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
24 at beggining of all_passes.
25 (apply_ipa_transforms): New function.
26 (execute_one_pass): When doing simple ipa pass, apply all transforms.
27
4c77620d
JM
282011-06-23 Joseph Myers <joseph@codesourcery.com>
29
30 * params.c: Include common/common-target.h. Don't include tm.h.
31 (lang_independent_params): Move from toplev.c.
32 (global_init_params): New.
33 * params.h (global_init_params): Declare.
34 * target.def (default_params): Move to common-target.def.
35 * toplev.c (lang_independent_options): Remove.
36 (lang_independent_params): Move to params.c.
37 (general_init): Use global_init_params.
38 * common/common-target.def (option_default_params): Move from
39 target.def.
40 * common/config/ia64/ia64-common.c: Include params.h.
41 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
42 from ia64.c.
43 * common/config/rs6000/rs6000-common.c: Include params.h.
44 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
45 from rs6000.c.
46 * common/config/sh/sh-common.c: Include params.h.
47 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
48 from sh.c.
49 * common/config/spu/spu-common.c: Include params.h.
50 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
51 from spu.c.
52 * config/ia64/ia64.c (ia64_option_default_params,
53 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
54 * config/rs6000/rs6000.c (rs6000_option_default_params,
55 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
56 * config/sh/sh.c (sh_option_default_params,
57 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
58 * config/spu/spu.c (spu_option_default_params,
59 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
60 * Makefile.in (OBJS): Remove params.o.
61 (OBJS-libcommon-target): Add params.o.
62 (params.o, $(common_out_object_file)): Update dependencies.
63 * doc/tm.texi: Regenerate.
64
6aad1e38
AM
652011-06-23 Alan Modra <amodra@gmail.com>
66
67 PR bootstrap/49383
68 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
69 invocation for 2011-06-09 changes.
70
4fb489e7
JJ
712011-06-22 Jakub Jelinek <jakub@redhat.com>
72
fb79f500
JJ
73 PR libgomp/49490
74 * omp-low.c (expand_omp_for_static_nochunk): Only
75 use n ceil/ nthreads size for the first
76 n % nthreads threads in the team instead of
77 all threads except for the last few ones which
78 get less work or none at all.
79
4fb489e7
JJ
80 PR debug/49496
81 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
82 uses.
83
9c7c9f10
RG
842011-06-22 Richard Guenther <rguenther@suse.de>
85
86 PR tree-optimization/49493
87 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
88 Refer to the alias target of variables.
89 (associate_varinfo_to_alias_1): Remove.
90 (ipa_pta_execute): Do not associate aliases with anything.
91 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
92 (cgraph_function_node): Likewise.
93 (cgraph_function_or_thunk_node): Likewise.
94 (varpool_variable_node): Likewise.
95
7cf13d1f
NS
962011-06-22 Nathan Sidwell <nathan@codesourcery.com>
97
98 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
99 typo.
100 * config.gcc (arm*-*-linux*): Default to gnu tls.
101 (arm*-*-*): Add --with-tls option.
102 (all_defaults): Add 'tls'.
103
78a8eb4e
RH
1042011-06-22 Richard Henderson <rth@redhat.com>
105
106 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
107 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
108 (dwarf2out_frame_debug_cfa_window_save): Rename from
109 dwarf2out_window_save; make static.
110 * tree.h (dwarf2out_window_save): Don't declare.
111
112 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
113 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
114 (emit_save_register_window): Rename from gen_save_register_window;
115 emit the insn and add REG_CFA_* notes.
116 (sparc_expand_prologue): Update to match.
117 * config/sparc/sparc.md (save_register_window_1): Simplify from
118 save_register_window<P:mode>.
119
3b4c46d7
L
1202011-06-22 H.J. Lu <hongjiu.lu@intel.com>
121
122 PR target/49497
123 * config/i386/i386.md (*lea_general_2): Always allow SImode.
124 (*lea_general_2_zext): Likewise.
125 (imul to lea peepholes): Use const359_operand and check
126 TARGET_PARTIAL_REG_STALL.
127
128 * config/i386/predicates.md (const359_operand): New.
129
4399cf59
MM
1302011-06-22 Michael Matz <matz@suse.de>
131
132 * cgraphunit.c (assemble_thunk): Use correct return type.
133
31a0c825
DP
1342011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
135 Dmitry Melnik <dm@ispras.ru>
136
137 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
138 (neon_output_shift_immediate): Ditto.
139 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
140 prototype.
141 (neon_output_shift_immediate): Ditto.
142 * config/arm/neon.md (vashl<mode>3): Modified constraint.
143 (vashr<mode>3_imm): New insn pattern.
144 (vlshr<mode>3_imm): Ditto.
145 (vashr<mode>3): Modified constraint.
146 (vlshr<mode>3): Ditto.
147 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
148 predicate.
149 (imm_for_neon_rshift_operand): Ditto.
150 (imm_lshift_or_reg_neon): Ditto.
151 (imm_rshift_or_reg_neon): Ditto.
152
153 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
154
ddb555ed
JJ
1552011-06-22 Jakub Jelinek <jakub@redhat.com>
156
36dc1a88
JJ
157 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
158 builtin calls even if likelyvalue is not CONSTANT.
159 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
160 Return get_value_for_expr of first operand
161 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
162 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
163 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
164 their non-checking counterparts.
165 (call_may_clobber_ref_p_1): Likewise.
166 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
167 like their non-checking counterparts.
168 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
169 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
170 like their non-checking counterparts.
171 (find_func_clobbers): Likewise.
172 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
173 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
174
41cd4957
JJ
175 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
176 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
177 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
178 of base type reference as argument.
179 (resolve_addr_in_expr): Likewise. Fix keep computation.
180 (convert_descriptor_to_signed): Renamed to...
181 (convert_descriptor_to_mode): ... this. For wider types convert
182 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
183 untyped.
184 (typed_binop): New function.
185 (scompare_loc_descriptor, ucompare_loc_descriptor,
186 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
187 default to unsigned type instead of signed.
188
ddb555ed
JJ
189 PR debug/47858
190 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
191 (gimple_build_debug_source_bind_stat): New prototype.
192 (gimple_build_debug_source_bind): Define.
193 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
194 gimple_debug_source_bind_get_value,
195 gimple_debug_source_bind_get_value_ptr,
196 gimple_debug_source_bind_set_var,
197 gimple_debug_source_bind_set_value): New inlines.
198 * gimple.c (gimple_build_debug_source_bind_stat): New function.
199 * gimple-pretty-print.c (dump_gimple_debug): Handle
200 GIMPLE_DEBUG_SOURCE_BIND.
201 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
202 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
203 * tree-parloops.c (eliminate_local_variables,
204 separate_decls_in_region): Likewise.
205 (separate_decls_in_region_debug): Renamed from
206 separate_decls_in_region_debug_bind. Handle
207 gimple_debug_source_bind_p.
208 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
209 prototypes.
210 (DECL_HAS_DEBUG_ARGS_P): Define.
211 (struct tree_function_decl): Add has_debug_args_flag field.
212 * tree.c (debug_args_for_decl): New variable.
213 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
214 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
215 (rewrite_debug_stmt_uses): New function.
216 (rewrite_stmt): Use it to rewrite debug stmt uses.
217 * rtl.def (DEBUG_PARAMETER_REF): New.
218 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
219 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
220 DEBUG_PARAMETER_REF.
221 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
222 * print-rtl.c (print_rtx): Likewise.
223 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
224 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
225 debug stmts in the first bb.
226 * tree-inline.c (remap_ssa_name): If remapping default def
227 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
228 a source bind debug stmt.
229 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
230 (maybe_move_debug_stmts_to_successors): Likewise.
231 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
232 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
233 debug args vector from old_decl to new_decl.
234 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
235 or modified parameters, add debug bind stmts before call
236 setting DEBUG_EXPR_DECL which is remembered in debug args
237 vector.
238 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
239 on DECL_DEBUG_EXPRs from debug args vector.
240 (expand_debug_source_expr): New function.
241 (expand_debug_locations): Use it for source bind insns.
242 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
243 * var-tracking.c (prepare_call_arguments): Add debug args
244 to call_arguments if any.
245 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
246 output_loc_operands, output_loc_operands_raw,
247 resolve_addr_in_expr, compare_loc_operands): Handle
248 DW_OP_GNU_parameter_ref.
249 (get_ref_die_offset, parameter_ref_descriptor): New functions.
250 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
251 (gen_subprogram_die): Handle parameters identified by
252 DEBUG_PARAMETER_REF.
253
ccdc2164
NS
2542011-06-22 Nathan Sidwell <nathan@codesourcery.com>
255
256 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
257 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
258 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
259 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
260 (arm_tls_descseq_addr): New.
261 (legitimize_tls_address): Add tlsdesc support.
262 (arm_cannot_copy_insn_p): Check for tlscall.
263 (arm_emit_tls_decoration): Likewise.
264 * config/arm/arm.h (TARGET_GNU2_TLS): New.
265 (OPTION_DEFAULT_SPECS): Add with-tls support.
266 * config/arm/arm.md (R1_REGNUM): Define.
267 (tlscall): New.
268 * config/arm/arm.opt (tls_type): New enumeration type and values.
269 (mtls-dialect): New switch.
270 * config/arm/arm-opts.h (enum tls_type): New.
271
70e41a6a
NP
2722011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
273
274 * attribs.c (register_attribute): Added assert to check that all
275 attribute specs are registered with a name that is not empty and
276 does not start with '_'.
277 (decl_attributes): Avoid the lookup of the "naked" attribute spec
278 if the function has no attributes.
279 * tree.c (is_attribute_with_length_p): Removed.
280 (is_attribute_p): Removed.
281 (private_is_attribute_p): New.
282 (private_lookup_attribute): New.
283 (lookup_attribute): Removed.
284 (lookup_ident_attribute): New.
285 (remove_attribute): Require the first argument to be in the form
286 'text', not '__text__'. Updated asserts.
287 (merge_attributes): Use lookup_ident_attributes instead of
288 lookup_attribute.
289 (merge_dllimport_decl_attributes): Use remove_attribute.
290 (attribute_list_contained): Likewise.
291 (attribute_list_equal): Immediately return 1 if the arguments are
292 identical pointers.
293 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
294 'int'. Require the first argument to be in the form 'text', not
295 '__text__'. Require the second argument to be an identifier.
296 (lookup_attribute): Made inline. Require the first argument to be
297 in the form 'text', not '__text__'.
298 (private_is_attribute_p, private_lookup_attribute): New.
299 Updated comments.
300
e0a8ecf2
AM
3012011-06-21 Andrew MacLeod <amacleod@redhat.com>
302
303 * builtins.c: Add sync_ or SYNC__ to builtin names.
304 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
305 * omp-low.c: Add sync_ or SYNC__ to builtin names.
306
663827d3 3072011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 308
663827d3
GJL
309 PR target/33049
310 * config/avr/avr.md (extzv): New expander.
311 (*extzv): New insn.
312 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
313 * config/avr/constraints.md (C04): New constraint.
314 * doc/md.texi (Machine Constraints): Document it.
315
146aef0b
JJ
3162011-06-21 Jakub Jelinek <jakub@redhat.com>
317
318 PR middle-end/49489
319 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
320 unsignedp argument instead of 1 for clrsb_optab.
321 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
322 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
323 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
324 * optabs.c (widen_leading): Call widen_operand and expand_unop
325 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 326 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 327
c0503294
GJL
3282011-06-21 Georg-Johann Lay <avr@gjlay.de>
329
330 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
331
3801c801
BS
3322011-06-21 Bernd Schmidt <bernds@codesourcery.com>
333
0bddee8e
BS
334 * gensupport.c (add_define_attr): New static function.
335 (is_predicable): Allow multi-alternative lists for the "predicable"
336 attribute.
337 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
338 (process_one_cond_exec): Call alter_attrs_for_insn.
339 * doc/md.texi (Defining Attributes): Mention some standard names.
340 (Conditional Execution): Update documentation for "predicable".
341
3801c801
BS
342 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
343 __builtin_clrsbll): Document.
344 * doc/rtl.texi (clrsb): New entry.
345 * optabs.c (widen_leading): Renamed from widen_clz. New argument
346 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
347 (expand_unop): Handle clrsb_optab.
348 (init_optabs): Initialize it.
349 * optabs.h (enum optab_index): New entry OTI_clrsb.
350 (clrsb_optab): Define.
351 * genopinit.c (optabs): Add an entry for it.
352 * builtins.c (expand_builtin): Handle clrsb builtin functions.
353 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
354 BUILT_IN_CLRSBLL): New.
355 * rtl.def (CLRSB): New code.
356 * dwarf2out.c (mem_loc_descriptor): Handle it.
357 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
358 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
359 and popcount.
360 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
361 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
362 (__ctzDI2): Move declaration.
363 * config/bfin/bfin.md (clrsbsi2): New expander.
364 (signbitssi2): Use the CLRSB rtx.
365 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
366 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
367
55f01229
RG
3682011-06-21 Richard Guenther <rguenther@suse.de>
369
637c11bd 370 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 371
5181cd6a
IR
3722011-06-21 Ira Rosen <ira.rosen@linaro.org>
373
374 PR tree-optimization/49478
375 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
376 with constant operand.
377
e4ee3d70
RG
3782011-06-21 Richard Guenther <rguenther@suse.de>
379
380 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 381
7b7ec6c5
RG
3822011-06-21 Richard Guenther <rguenther@suse.de>
383
384 PR tree-optimization/49483
385 * tree-vect-stmts.c (vectorizable_assignment): Also handle
386 VIEW_CONVERT_EXPR conversions.
387
1b916ca6
JM
3882011-06-21 Joseph Myers <joseph@codesourcery.com>
389
390 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
391 * config/avr/avr-tables.opt: New file (generated).
392 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
393 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
394 avr-mcus.def.
395 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
396 (avr_option_override): Don't process -mmcu= argument here. Set
397 avr_current_device using avr_mcu_index.
637c11bd 398 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
399 * config/avr/avr.opt (mmcu=): Use Enum.
400 * config/avr/t-avr (avr-devices.o): Update dependencies.
401 ($(srcdir)/config/avr/avr-tables.opt): New.
402 * target.def (help): Remove.
403 * doc/tm.texi.in (TARGET_HELP): Remove.
404 * doc/tm.texi: Regenerate.
405 * opts.c: Don't include target.h.
406 (common_handle_option): Don't call targetm.help.
407 * system.h (TARGET_HELP): Poison.
408 * Makefile.in (opts.o): Update dependencies.
409
7ecfa34f
RO
4102011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
411
412 * config/usegld.h: New file.
413 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
414 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 415 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
416 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
417 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
418 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
419 Define.
7ecfa34f
RO
420 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
421 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
422 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
423 (STACK_CHECK_STATIC_BUILTIN): Define.
424 * config/sol2.opt (compat-bsd): Remove.
425 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
426 * config/sol2-bi.h: New file.
427 * config/sol2-gld.h: Remove.
428 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
429 (NO_DBX_BNSYM_ENSYM): Remove.
430 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
431 (STACK_CHECK_STATIC_BUILTIN): Remove.
432 Test USE_GLD instead of TARGET_GNU_LD.
433 * config/i386/sol2-10.h: Rename to ...
434 * config/i386/sol2-bi.h .. this.
435 (SUBTARGET_EXTRA_SPECS): Redefine.
436 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
437 (MULTILIB_DEFAULTS): Remove.
438 (DEFAULT_ARCH32_P): Define.
439 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
440 (ARCH64_SUBDIR): Define.
441 Test USE_GLD instead of TARGET_GNU_LD.
442 (I386_EMULATION): Rename to ...
443 (ARCH32_EMULATION): ... this.
444 (X86_64_EMULATION): Rename to ...
445 (ARCH64_EMULATION): ... this.
446 (TARGET_LD_EMULATION): Remove.
447 (LINK_ARCH_SPEC): Remove.
448 * config/i386/sol2-gas.h: Remove.
449 * config/i386/t-sol2-10: Rename to ...
450 * config/i386/t-sol2-64: ... this.
451 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
452 (AS_SPARC64_FLAG): Define.
453 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
454 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
455 depending on TARGET_CPU_DEFAULT.
456 (CPP_CPU_SPEC): Redefine.
457 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
458 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
459 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
460 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
461 ASM_ARCH_DEFAULT_SPEC): Redefine.
462 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
463 LINK_ARCH_DEFAULT_SPEC.
464 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
465 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
466 (ARCH64_SUBDIR): Define.
467 (LINK_ARCH64_SPEC): Redefine.
468 (CC1_SPEC): Redefine.
469 (OPTION_DEFAULT_SPECS): Redefine.
470 (MULTILIB_DEFAULTS): Define.
471 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
472 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
473 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
474 (NO_DBX_BNSYM_ENSYM): Remove.
475 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
476 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
477 (TARGET_ASM_NAMED_SECTION): Likewise.
478 (STACK_CHECK_STATIC_BUILTIN): Remove.
479 * config/sparc/sol2-bi.h: Remove.
480 * config/sparc/sol2-gas-bi.h: Remove.
481 * config/sparc/sol2-gas.h: Remove.
482 * config/sparc/sol2-gld-bi.h: Remove.
483 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
484 common parts ...
485 (*-*-solaris2*): ... here.
486
4b583c43 4872011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 488
4b583c43 489 PR other/43564
637c11bd
UB
490 * ipa-inline.c (can_inline_edge_p): Check
491 !DECL_DISREGARD_INLINE_LIMITS.
492
3bb556ad 4932011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 494
3bb556ad
CB
495 PR middle-end/49139
496 * cgraphunit.c (process_function_and_variable_attributes): warn when
497 always_inline functions that are not inline.
637c11bd
UB
498 * ipa-inline-transform.c (inline_transform): Always call
499 optimize_inline.
500 * tree-inline.c (tree_inlinable_function_p): Use error instead
501 of sorry.
3bb556ad 502 (expand_call_inline): Likewise.
637c11bd 503
f1ee724c
JJ
5042011-06-21 Jakub Jelinek <jakub@redhat.com>
505
506 * Makefile.in (dg_target_exps): Set.
507 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
508 instead of 7, try to divide it more evenly.
509
5102011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6
CF
511
512 PR i386/49089
513 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
514 (avx256_split_unaligned_store): New definition.
515 (ix86_option_override_internal): Enable avx256 unaligned load/store
516 splitting only when avx256_split_unaligned_load/store is set.
517
998c75b6
BS
5182011-06-20 Bernd Schmidt <bernds@codesourcery.com>
519
520 * regrename.c (scan_rtx_reg): Handle the case where we write to an
521 open chain in a smaller mode without failing the entire block.
522
83a8cbda
L
5232011-06-20 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR middle-end/47725
526 * combine.c (cant_combine_insn_p): Don't check zero/sign
527 extended hard registers.
528
3a769784
AM
5292011-06-21 Alan Modra <amodra@gmail.com>
530
531 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
532 CONST high part large-toc address.
533 (rs6000_tls_referenced_p): Make static.
534 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
535
d1e32c4a
L
5362011-06-20 H.J. Lu <hongjiu.lu@intel.com>
537
538 PR middle-end/47725
539 * combine.c (cant_combine_insn_p): Check zero/sign extended
540 hard registers.
541
c2954af9
RR
5422011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
543
544 PR target/49385
545 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
546 one of the operands is a register.
547
a95015b6
KT
5482011-06-20 Kai Tietz <ktietz@redhat.com>
549
637c11bd
UB
550 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
551 operations in combination with binary and.
a95015b6 552
49a30d00
BS
5532011-06-20 Bernd Schmidt <bernds@codesourcery.com>
554
555 * regrename.c (do_replace): Don't update notes.
556
3bae1d98
AM
5572011-06-20 Alan Modra <amodra@gmail.com>
558
559 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
560 of toc-relative address in CONST.
561 (rs6000_delegitimize_address): Recognize changed address.
562 (rs6000_legitimize_reload_address): Likewise.
563 (rs6000_emit_move): Don't force these constants to memory.
564 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
565 toc-relative address in CONST.
566 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
567 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
568
10937b0c
L
5692011-06-18 H.J. Lu <hongjiu.lu@intel.com>
570
637c11bd 571 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
572 (count_trailing_zeros): Likewise.
573
0c587260
L
5742011-06-18 H.J. Lu <hongjiu.lu@intel.com>
575
576 PR other/49325
577 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
578 .init_array can be used with .ctors on targets.
579 * configure: Regenerated.
580
c020c92b
EB
5812011-06-18 Eric Botcazou <ebotcazou@adacore.com>
582
583 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
584 if the element type is volatile.
585
cd35bcf7
JH
5862011-06-18 Jan Hubicka <jh@suse.cz>
587
588 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
589 extra name aliases.
590 (lto_symtab_resolve_can_prevail_p): Likewise.
591 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
592 * cgraphbuild.c (record_reference): Remove extra body alias code.
593 (mark_load): Likewise.
594 (mark_store): Likewise.
595 * cgraph.h (varpool_node): Remove extra_name filed;
596 add alias_of and extraname_alias.
597 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
598 (varpool_alias_aliased_node): New inline function.
599 (varpool_variable_node): New function.
600 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
601 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
602 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
603 (input_varpool_node): Likewise.
604 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
605 (varpool_externally_visible_p): Remove extra body alias code.
606 (function_and_variable_visibility): Likewise.
607 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
608 (ipa_pta_execute): Use it.
609 * varpool.c (varpool_remove_node): Remove extra name alias code.
610 (varpool_mark_needed_node): Likewise.
611 (varpool_analyze_pending_decls): Analyze aliases.
612 (assemble_aliases): New functoin.
613 (varpool_assemble_decl): Use it.
614 (varpool_create_variable_alias): New function.
615 (varpool_extra_name_alias): Rewrite.
616 (varpool_for_node_and_aliases): New function.
617
c96b4102
JJ
6182011-06-18 Jakub Jelinek <jakub@redhat.com>
619
620 PR target/49411
621 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
622 last_arg_constant and last argument doesn't match its predicate,
623 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
624 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
625 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
626 spelling of error message.
627 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
628 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
629 const_0_to_255_operand instead of const_int_operand.
630
631 Revert:
632 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
633
634 * config/i386/sse.md (blendbits): Remove mode attribute.
635 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
636 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
637 Check integer value of operand 3 in insn constraint.
638
9a2091cd
HPN
6392011-06-17 Hans-Peter Nilsson <hp@axis.com>
640
641 PR rtl-optimization/48542
642 * reload.c (find_equiv_reg): Stop looking when finding a
643 setjmp-type call.
644 * reload1.c (reload_as_needed): Invalidate all reload
645 registers when crossing a setjmp-type call.
646
361b51c0
JL
6472011-06-16 Jeff Law <law@redhat.com>
648
649 * tree-ssa-threadupdate.c (struct redirection_data): New field
650 intermediate_edge.
651 (THREAD_TARGET2): Define.
637c11bd 652 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
653 (lookup_redirection_data): Drop useless argument. Extract the
654 outgoing_edge and intermediate edge from E. Callers updated.
655 (copy_phi_args, update_destination_phis): New functions.
656 (fix_duplicate_block_edges): Likewise.
657 (create_edge_and_update_destination_phis): Duplicate all the edges
658 hung off e->aux. Use copy_phi_args.
659 (create_duplicates): Use fix_duplicate_block_edges.
660 (fixup_template_block): Likewise.
661 (redirect_edges): If necessary, redirect the joiner block's incoming
662 edge to the duplicate of the joiner block.
663 (thread_block): Don't muck up loops when threading through a joiner
664 block.
637c11bd 665 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
666 (mark_threaded_blocks, register_jump_thread): Likewise.
667 * tree-flow.h (register_jump_thread): Add new argument. Callers
668 updated.
669 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
670 (thread_across_edge): Handle threading through a joiner block.
637c11bd 671
ee460e75
MJ
6722011-06-16 Martin Jambor <mjambor@suse.cz>
673
674 PR tree-optimization/49343
675 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
676 calculate offset, provide 2nd operand for the new COMPONENT_REF.
677
a285ba2e
IS
6782011-06-16 Iain Sandoe <iains@gcc.gnu.org>
679
680 * config/darwin-protos.h (machopic_select_rtx_section): Move to
681 inside RTX_CODE ifdef.
682
0703f020
TV
6832011-06-16 Tom de Vries <tom@codesourcery.com>
684
685 PR target/45098
637c11bd
UB
686 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
687 Disallow NULL pointer for pointer arithmetic.
0703f020 688
900c07da
RR
6892011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
690
691 PR target/49398
692 Revert.
693 2011-06-10 Wei Guozhi <carrot@google.com>
694
695 PR target/45335
696 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
697 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
698 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
699 related peephole2.
700 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
701 related peephole2.
702 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
703 (arm_legitimate_ldrd_p): New prototype.
704 (arm_output_ldrd): New prototype.
705 * config/arm/arm.c (arm_check_ldrd_operands): New function.
706 (arm_legitimate_ldrd_p): New function.
707 (arm_output_ldrd): New function.
708
c020c92b 7092011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
710
711 PR middle-end/46500
712 * doc/tm.texi.in: Update Copyright date.
713 * doc/tm.texi: Regenerate.
714 * targhooks.c (default_setup_incoming_varargs): Replace
715 CUMULATIVE_ARGS* argument type with cumulative_args_t.
716 (default_pretend_outgoing_varargs_named): Likewise.
717 (hook_pass_by_reference_must_pass_in_stack): Likewise.
718 (hook_callee_copies_named): Likewise.
719 (default_function_arg_advance): Likewise.
720 (default_function_arg): Likewise.
721 (default_function_incoming_arg): Likewise.
722 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
723 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
724 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
725 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
726 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
727 * targhooks.h (default_setup_incoming_varargs): Likewise.
728 (default_pretend_outgoing_varargs_named): Likewise.
729 (hook_pass_by_reference_must_pass_in_stack): Likewise.
730 (hook_callee_copies_named): Likewise.
731 (default_function_arg_advance): Likewise.
732 (default_function_arg): Likewise.
733 (default_function_incoming_arg): Likewise.
734 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
735 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
736 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
737 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
738 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
739 * target.def (pass_by_reference): Likewise.
740 (setup_incoming_varargs, strict_argument_naming): Likewise.
741 (pretend_outgoing_varargs_named, callee_copies): Likewise.
742 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
743 (function_incoming_arg): Likewise.
744 * target.h: Don't include "tm.h" .
745 (cumulative_args_t): New typedef.
746 [GCC_TM_H] (get_cumulative_args): New static inline function.
747 [GCC_TM_H] (pack_cumulative_args): Likewise.
748 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
749 argument type with cumulative_args_t.
750 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
751 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
752 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
753 (frv_arg_partial_bytes, frv_function_arg): Likewise.
754 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
755 (frv_function_arg_1): Likewise.
756 * config/s390/s390.c (s390_pass_by_reference): Likewise.
757 (s390_function_arg_advance, s390_function_arg): Likewise.
758 * config/m32c/m32c.c (m32c_function_arg): Likewise.
759 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
760 (m32c_strict_argument_naming): Likewise.
761 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
762 (spu_function_arg_advance): Likewise.
763 (spu_setup_incoming_varargs): Likewise. Make static.
764 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
765 Remove prototype.
766 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
767 CUMULATIVE_ARGS* argument type with cumulative_args_t.
768 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
769 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
770 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
771 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
772 (mep_pass_by_reference, mep_function_arg): Likewise.
773 (mep_function_arg_advance): Likewise.
774 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
775 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
776 (m32r_function_arg, m32r_function_arg_advance): Likewise.
777 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
778 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
779 (ix86_function_arg, ix86_pass_by_reference): Likewise.
780 (ix86_setup_incoming_varargs): Likewise.
781 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
782 (sh_strict_argument_naming): Likewise.
783 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
784 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
785 (sh_function_arg_advance, sh_function_arg): Likewise.
786 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
787 (pdp11_function_arg_advance): Likewise.
788 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
789 Likewise.
790 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
791 * config/avr/avr.c (avr_function_arg): Likewise.
792 (avr_function_arg_advance): Likewise.
793 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
794 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
795 (xtensa_function_arg_1): Likewise.
637c11bd
UB
796 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
797 Likewise.
d5cc9181
JR
798 (xstormy16_function_arg): Likewise.
799 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
800 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
801 (fr30_function_arg_advance): Likewise.
802 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
803 (lm32_function_arg, lm32_function_arg_advance): Likewise.
804 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
805 (moxie_function_arg, moxie_function_arg_advance): Likewise.
806 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
807 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
808 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
809 (cris_function_arg, cris_function_incoming_arg): Likewise.
810 (cris_function_arg_advance, cris_function_arg_1): Likewise.
811 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
812 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
813 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
814 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
815 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
816 (mn10300_arg_partial_bytes): Likewise.
817 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
818 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
819 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
820 (ia64_function_arg_1): Likewise.
821 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
822 (m68k_function_arg): Likewise.
823 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
824 (rs6000_function_arg, setup_incoming_varargs): Likewise.
825 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
826 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
827 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
828 (picochip_arg_advance): Likewise.
829 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
830 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
831 (mcore_function_arg_advance): Likewise.
832 * config/score/score.c (score_pass_by_reference): Likewise.
833 (score_function_arg_advance): Likewise.
834 (score_arg_partial_bytes): Likewise. Make static.
835 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
836 * config/arm/arm.c (arm_arg_partial_bytes): Replace
837 CUMULATIVE_ARGS* argument type with cumulative_args_t.
838 (arm_function_arg, arm_function_arg_advance): Likewise.
839 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
840 * config/pa/pa.c (pa_pass_by_reference): Likewise.
841 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
842 (pa_function_arg): Likewise.
843 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
844 (mips_function_arg, mips_function_arg_advance): Likewise.
845 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
846 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
847 * config/vax/vax.c (vax_function_arg): Likewise.
848 (vax_function_arg_advance): Likewise.
849 * config/h8300/h8300.c (h8300_function_arg): Likewise.
850 (h8300_function_arg_advance): Likewise.
851 * config/v850/v850.c (v850_pass_by_reference): Likewise.
852 (v850_strict_argument_naming, v850_function_arg): Likewise.
853 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
854 (v850_setup_incoming_varargs): Likewise.
855 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
856 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
857 (mmix_function_arg, mmix_pass_by_reference): Likewise.
858 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
859 with const void *.
860 * config/bfin/bfin.c (setup_incoming_varargs): Replace
861 CUMULATIVE_ARGS* argument type with cumulative_args_t.
862 (bfin_function_arg_advance, bfin_function_arg): Likewise.
863 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
864 * calls.c (emit_call_1): Change type of args_so_far to
865 cumulative_args_t. Changed all callers.
866 (initialize_argument_information): Likewise.
867 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
868 * dse.c (get_call_args): Likewise.
869 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
870 * function.c (pass_by_reference, reference_callee_copied): Likewise.
871 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
872 New member args_so_far_v. Changed all users.
873 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
874 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
875 * config/mips/mips.c (mips_output_args_xfer): Likewise.
876 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
877 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
878 * config/microblaze/microblaze.c (microblaze_expand_prologue):
879 Likewise.
d5cc9181
JR
880 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
881 m32r_pass_by_reference.
882
51312233
IR
8832011-06-16 Ira Rosen <ira.rosen@linaro.org>
884
885 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
886 argument to be a VEC of statements.
637c11bd
UB
887 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
888 assert that pattern statements have to have their vector type set.
51312233
IR
889 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
890 Change the first argument to be a VEC of statements. Update
891 documentation.
892 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
893 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
894 (vect_recog_widen_mult_pattern): Change the first argument to be a
895 VEC of statements. Update documentation. Check that the constant is
896 INTEGER_CST. Support multiplication by a constant that fits an
897 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
898 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
899 call. Handle additional pattern statements if necessary.
900
fd4df33d
NC
9012011-06-16 Nick Clifton <nickc@redhat.com>
902
903 PR target/49427
904 * config.gcc: Set cpu_type to v850 for any V850 architecture.
905 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
906 md_file, extra_modes, out_file and extra_options are these are all
907 deduced from cpu_type.
908
fbd05da0
GJL
9092011-06-16 Georg-Johann Lay <avr@gjlay.de>
910
911 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
912 truncation mask to 63.
913
0ad8bb3b
GJL
9142011-06-16 Georg-Johann Lay <avr@gjlay.de>
915
916 PR target/49313
917 PR target/29524
918 * longlong.h: Add AVR support:
919 (count_leading_zeros): New macro.
920 (count_trailing_zeros): New macro.
921 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
922 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
923 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
924 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
925 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
926 (LIB2FUNCS_EXCLUDE): Add _clz.
927 * config/avr/libgcc.S (XCALL): Move up in file.
928 (XJMP): New C Macro.
929 (DEFUN): New asm macro.
930 (ENDF): New asm macro.
931 (__ffssi2): New function.
932 (__ffshi2): New function.
933 (__loop_ffsqi2): New function.
934 (__ctzsi2): New function.
935 (__ctzhi2): New function.
936 (__clzdi2): New function.
937 (__clzsi2): New function.
938 (__clzhi2): New function.
939 (__paritydi2): New function.
940 (__paritysi2): New function.
941 (__parityhi2): New function.
59c1e10b 942 (__parityqi2): New function.
0ad8bb3b
GJL
943 (__popcounthi2): New function.
944 (__popcountsi2): New function.
945 (__popcountdi2): New function.
946 (__popcountqi2): New function.
947 (__bswapsi2): New function.
948 (__bswapdi2): New function.
949 (__ashldi3): New function.
950 (__ashrdi3): New function.
951 (__lshrdi3): New function.
952 Fix suspicous lines.
953
12430896
RG
9542011-06-16 Richard Guenther <rguenther@suse.de>
955
956 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
957 the same as x != 0.
637c11bd
UB
958 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
959 to (bool) X & 1.
12430896
RG
960 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
961 equality compares against zero for the lower bit.
962
09302442
JJ
9632011-06-16 Jakub Jelinek <jakub@redhat.com>
964
965 PR tree-optimization/49419
966 * tree-vrp.c (execute_vrp): Call init_range_assertions
967 before estimate_numbers_of_iterations, call
968 free_number_of_iterations_estimates before calling
969 remove_range_assertions.
970
81c41166
RE
9712011-06-16 Revital Eres <revital.eres@linaro.org>
972
973 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
974 (struct partial_schedule): Add rows_length field.
975 (verify_partial_schedule): Check rows_length.
976 (ps_insert_empty_row): Handle rows_length.
977 (create_partial_schedule): Likewise.
978 (free_partial_schedule): Likewise.
979 (reset_partial_schedule): Likewise.
980 (create_ps_insn): Remove rest_count argument.
981 (remove_node_from_ps): Update rows_length.
982 (add_node_to_ps): Update rows_length and call create_ps_insn
983 without passing row_rest_count.
984 (rotate_partial_schedule): Update rows_length.
985
d24dc7b3
RE
9862011-06-16 Revital Eres <revital.eres@linaro.org>
987
988 * ddg.c (add_intra_loop_mem_dep): New function.
989 (build_intra_loop_deps): Call it.
990
361b51c0 9912011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
992
993 * df-problems.c (df_lr_local_compute): Manually CSE
994 PIC_OFFSET_TABLE_REGNUM.
995 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
996 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
997
85ce9375
JH
9982011-06-13 Jan Hubicka <jh@suse.cz>
999
1000 * cgraphunit.c (handle_alias_pairs): New function.
1001 (cgraph_finalize_compilation_unit): Use it.
1002 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1003 as externally visible.
1004
a577c405
RG
10052011-06-15 Richard Guenther <rguenther@suse.de>
1006
1007 * expr.c (expand_expr_real_2): Reduce all integral types to
1008 bitfield precision.
1009 (expand_expr_real_1): Likewise.
1010
93536c97
MJ
10112011-06-15 Martin Jambor <mjambor@suse.cz>
1012
1013 PR tree-optimization/48613
1014 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1015 ipa_node_params_vector is NULL.
fd4df33d 1016
ba45cfc4
JJ
10172011-06-15 Jakub Jelinek <jakub@redhat.com>
1018
1019 PR debug/49382
1020 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
1021 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1022 location in the list, even if it is modified before first real insn.
ba45cfc4 1023 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 1024 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 1025
6fc5966f
AM
10262011-06-15 Alexander Monakov <amonakov@ispras.ru>
1027
1028 PR target/49349
1029 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1030 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1031 above a fence. Update comments.
1032 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1033 placed just above it. Do not allow NULL place_to_insert.
1034
9d5e7640
IR
10352011-06-15 Ira Rosen <ira.rosen@linaro.org>
1036
1037 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1038 (slpeel_tree_peel_loop_to_edge): Don't call
1039 remove_dead_stmts_from_loop.
1040 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1041 remove irrelevant pattern statements. For irrelevant statements
1042 check if it is the last statement of a detected pattern, use
1043 corresponding pattern statement instead.
1044 (destroy_loop_vec_info): No need to remove pattern statements,
1045 only free stmt_vec_info.
1046 (vect_transform_loop): For irrelevant statements check if it is
1047 the last statement of a detected pattern, use corresponding
1048 pattern statement instead.
1049 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1050 pattern statements. Set basic block for the new statement.
1051 (vect_pattern_recog): Update documentation.
1052 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1053 operands of pattern statements.
1054 (vectorizable_call): Fix printing. In case of a pattern statement
1055 use the lhs of the original statement when creating a dummy
1056 statement to replace the original call.
1057 (vect_analyze_stmt): For irrelevant statements check if it is
1058 the last statement of a detected pattern, use corresponding
1059 pattern statement instead.
1060 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1061 statements use gsi of the original statement.
1062
677f3fa8
JM
10632011-06-14 Joseph Myers <joseph@codesourcery.com>
1064
1065 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1066 common/common-target-def.h.
1067 * target.def (default_target_flags, handle_option,
1068 supports_split_stack, optimization_table, init_struct,
1069 except_unwind_info, unwind_tables_default, have_named_sections):
1070 Move to common/common-target.def.
1071 * target.h (enum opt_levels, struct default_options): Move to
1072 common/common-target.h.
1073 * targhooks.c (default_except_unwind_info,
1074 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1075 default_target_handle_option, empty_optimization_table): Move to
1076 common/common-targhooks.c.
1077 * targhooks.h (default_except_unwind_info,
1078 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1079 default_target_handle_option, empty_optimization_table): Move to
1080 common/common-targhooks.h.
1081 * common/common-target-def.h: Include common/common-targhooks.h.
1082 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1083 defined.
1084 * common/common-target.def (handle_option, option_init_struct,
1085 option_optimization_table, default_target_flags,
1086 except_unwind_info, supports_split_stack, unwind_tables_default,
1087 have_named_sections): Move from target.def.
1088 (HOOK_PREFIX): Undefine at end of file.
1089 * common/common-target.h: Include input.h.
1090 (enum opt_levels, struct default_options): Move from target.h.
1091 * common/common-targhooks.c, common/common-targhooks.h: New.
1092 * config.gcc (target_has_targetm_common): Default to yes.
1093 (moxie*): Set target_has_targetm_common=no.
1094 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1095 * doc/tm.texi: Regenerate.
1096 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1097 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1098 (GCC_OBJS): Remove vec.o.
1099 (OBJS): Remove hooks.o and vec.o.
1100 (OBJS-libcommon-target): Add vec.o, hooks.o and
1101 common/common-targhooks.o.
1102 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1103 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1104 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1105 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1106 Update dependencies.
1107 (common/common-targhooks.o): New.
637c11bd 1108 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
1109 * common/config/pa/pa-common.c: Include more headers. Take
1110 copyright dates from pa.c.
1111 (pa_option_optimization_table, pa_handle_option,
1112 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1113 TARGET_HANDLE_OPTION): Move from pa.c.
1114 * common/config/alpha/alpha-common.c,
1115 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1116 common/config/bfin/bfin-common.c,
1117 common/config/cris/cris-common.c,
1118 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1119 common/config/h8300/h8300-common.c,
1120 common/config/i386/i386-common.c,
1121 common/config/ia64/ia64-common.c,
1122 common/config/iq2000/iq2000-common.c,
1123 common/config/lm32/lm32-common.c,
1124 common/config/m32c/m32c-common.c,
1125 common/config/m32r/m32r-common.c,
1126 common/config/m68k/m68k-common.c,
1127 common/config/mcore/mcore-common.c,
1128 common/config/mep/mep-common.c,
1129 common/config/microblaze/microblaze-common.c,
1130 common/config/mips/mips-common.c,
1131 common/config/mmix/mmix-common.c,
1132 common/config/mn10300/mn10300-common.c,
1133 common/config/pdp11/pdp11-common.c,
1134 common/config/picochip/picochip-common.c,
1135 common/config/rs6000/rs6000-common.c,
1136 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1137 common/config/score/score-common.c, common/config/sh/sh-common.c,
1138 common/config/sparc/sparc-common.c,
1139 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1140 common/config/vax/vax-common.c,
1141 common/config/xstormy16/xstormy16-common.c,
1142 common/config/xtensa/xtensa-common.c: New.
1143 * config/alpha/alpha.c: Include common/common-target.h.
1144 (alpha_option_optimization_table, alpha_handle_option,
1145 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1146 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1147 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1148 * config/arm/arm.c (arm_option_optimization_table,
1149 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1150 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1151 arm-common.c.
1152 * config/avr/avr.c (avr_option_optimization_table,
1153 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1154 to avr-common.c.
1155 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1156 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1157 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1158 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1159 * config/cris/cris.c (cris_option_optimization_table,
1160 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1161 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1162 cris-common.c.
1163 * config/fr30/fr30.c (fr30_option_optimization_table,
1164 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1165 to fr30-common.c.
1166 * config/frv/frv.c (frv_option_optimization_table,
1167 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1168 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1169 * config/h8300/h8300.c (h8300_option_optimization_table,
1170 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1171 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1172 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1173 * config/i386/i386.c: Include common/common-target.h.
1174 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1175 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1176 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1177 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1178 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1179 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1180 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1181 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1182 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1183 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1184 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1185 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1186 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1187 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1188 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1189 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1190 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1191 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1192 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1193 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1194 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1195 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1196 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1197 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1198 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1199 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1200 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1201 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1202 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1203 ix86_option_optimization_table, ix86_option_init_struct,
1204 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1205 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1206 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1207 i386-common.c.
1208 * config/i386/t-i386 (i386.o): Update dependencies.
1209 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1210 * config/ia64/ia64.c (ia64_option_optimization_table,
1211 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1212 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1213 ia64_handle_option): Move to ia64-common.c.
1214 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1215 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1216 * config/lm32/lm32.c (lm32_option_optimization_table,
1217 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1218 to lm32-common.c.
1219 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1220 m32c-common.c.
1221 * config/m32r/m32r.c (m32r_option_optimization_table,
1222 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1223 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1224 m32r_handle_option): Move to m32r-common.c.
1225 (m32r_memory_move_cost): Remove comment referring to
1226 TARGET_HANDLE_OPTION.
1227 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1228 Move to m68k-common.c.
1229 * config/mcore/mcore.c (mcore_option_optimization_table,
1230 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1231 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1232 * config/mep/mep.c (mep_option_optimization_table,
1233 mep_handle_option, TARGET_HANDLE_OPTION,
1234 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1235 Move to mep-common.c.
1236 * config/microblaze/microblaze.c
1237 (microblaze_option_optimization_table,
1238 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1239 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1240 * config/mips/mips.c (mips_handle_option,
1241 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1242 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1243 mips-common.c.
1244 * config/mmix/mmix.c (mmix_option_optimization_table,
1245 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1246 Move to mmix-common.c.
1247 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1248 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1249 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1250 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1251 * config/pa/pa.c: Include common/common-target.h.
1252 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1253 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1254 pa_handle_option): Move to pa-common.c.
1255 (pa_option_override): Use targetm_common.except_unwind_info.
1256 (pa_asm_output_mi_thunk, pa_function_section): Use
1257 targetm_common.have_named_sections.
1258 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1259 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1260 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1261 pdp11_handle_option, pdp11_option_init_struct): Move to
1262 pdp11-common.c.
1263 * config/picochip/picochip.c (picochip_option_optimization_table,
1264 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1265 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1266 * config/rs6000/rs6000.c: Include common/common-target.h.
1267 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1268 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1269 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1270 rs6000_handle_option): Move to rs6000-common.c.
1271 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1272 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1273 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1274 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1275 * config/s390/s390.c (processor_flags_table,
1276 s390_option_optimization_table, s390_option_init_struct,
1277 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1278 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1279 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1280 * config/s390/s390.h (processor_flags_table): Declare.
1281 * config/score/score.c (score_option_optimization_table,
1282 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1283 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1284 score_handle_option): Move to score-common.c.
1285 * config/sh/sh.c (sh_option_optimization_table,
1286 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1287 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1288 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1289 * config/sparc/sparc.c: Include common/common-target.h.
1290 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1291 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1292 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1293 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1294 spu_option_init_struct): Move to spu-common.c.
1295 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1296 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1297 * config/v850/v850.c (small_memory_physical_max,
1298 v850_handle_memory_optionn v850_handle_option,
1299 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1300 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1301 v850-common.c.
637c11bd 1302 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
1303 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1304 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1305 Move to xtensa-common.c.
1306 * cfglayout.c: Include common/common-target.h.
1307 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1308 * cfgrtl.c: Include common/common-target.h.
1309 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1310 targetm_common.have_named_sections.
1311 * dbxout.c: Include common/common-target.h.
1312 (dbxout_function_end): Use targetm_common.have_named_sections.
1313 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1314 targetm_common.except_unwind_info.
1315 * dwarf2out.c: Include common/common-target.h.
1316 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1317 dwarf2out_begin_prologue, dwarf2out_frame_init,
1318 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1319 targetm_common.except_unwind_info.
1320 * except.c: Include common/common-target.h.
1321 (init_eh, finish_eh_generation,
1322 output_one_function_exception_table): Use
1323 targetm_common.except_unwind_info.
637c11bd 1324 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
1325 * explow.c: Include common/common-target.h.
1326 * expr.c: Include common/common-target.h.
637c11bd 1327 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
1328 * function.c: Include common/common-target.h.
1329 (expand_function_end): Use targetm_common.except_unwind_info.
1330 * haifa-sched.c: Include common/common-target.h.
637c11bd 1331 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
1332 * lto-opts.c: Include common/common-target.h instead of target.h.
1333 (lto_reissue_options): Use targetm_common.handle_option.
1334 * opts.c: Include common/common-target.h.
1335 (target_handle_option): Use targetm_common.handle_option.
1336 (init_options_struct): Update comment referring to
1337 targetm.target_option.optimization. Use
1338 targetm_common.default_target_flags,
1339 targetm_common.unwind_tables_default and
1340 targetm_common.option_init_struct.
1341 (default_options_optimization): Use
1342 targetm_common.option_optimization_table.
1343 (finish_options): Use targetm_common.except_unwind_info,
1344 targetm_common.unwind_tables_default,
1345 targetm_common.have_named_sections and
1346 targetm_common.supports_split_stack.
1347 * toplev.c: Include common/common-target.h.
1348 (process_options): Use targetm_common.have_named_sections.
1349 * tree-tailcall.c: Include common/common-target.h.
637c11bd 1350 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 1351 * tree.c: Include common/common-target.h.
637c11bd 1352 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
1353 * varasm.c: Include common/common-target.h.
1354 (resolve_unique_section, hot_function_section,
1355 default_function_section): Use targetm_common.have_named_sections.
1356
d26c7090
ER
13572011-06-14 Easwaran Raman <eraman@google.com>
1358
1359 PR rtl-optimization/44194
1360 * dse.c: Include tree-flow.h
1361 (insn_info): Add new field non_frame_wild_read.
1362 (group_info): Add new fields escaped_n and escaped_p.
1363 (kill_on_calls): New variable.
1364 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1365 (dse_step0): Initialize kill_on_calls.
1366 (can_escape): New function.
1367 (set_usage_bits): Add additional parameter; record information
1368 about escaped locations.
637c11bd 1369 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
1370 (dse_step2_nospill): Set kill_on_calls based on
1371 group->escaped_n and group->escaped_n.
1372 (add_wild_read): Refactor into...
1373 (reset_active_stores): ... New function, and
1374 (free_read_records): ... New function.
1375 (add_non_frame_wild_read): New function.
1376 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 1377 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
1378 (dse_step5_nospill): Call scan_reads_nospill for instructions
1379 marked as non_frame_wild_read.
637c11bd 1380 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 1381
c49a6962
JM
13822011-06-14 Joseph Myers <joseph@codesourcery.com>
1383
1384 * common/common-target-def.h, common/common-target.def,
1385 common/common-target.h, common/config/default-common.c,
1386 common/config/pa/pa-common.c: New files.
1387 * Makefile.in (common_out_file, common_out_object_file,
1388 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1389 (OBJS-libcommon-target): Include $(common_out_object_file).
1390 (prefix.o): Update dependencies.
1391 ($(common_out_object_file), common/common-target-hooks-def.h,
1392 s-common-target-hooks-def-h): New.
1393 (s-tm-texi): Also check timestamp on common-target.def.
1394 (build/genhooks.o): Update dependencies.
1395 * config.gcc (common_out_file, target_has_targetm_common): Define.
1396 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1397 TARGET_ALWAYS_STRIP_DOTDOT.
1398 * configure.ac (common_out_object_file): Define.
1399 (common_out_file, common_out_object_file): Substitute.
1400 (common): Create directory.
1401 * configure: Regenerate.
1402 * doc/tm.texi.in (targetm_common): Document.
1403 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1404 * doc/tm.texi: Regenerate.
1405 * genhooks.c (hook_array): Also include common/common-target.def.
1406 * prefix.c (tm.h): Don't include.
1407 (common/common-target.h): Include.
1408 (ALWAYS_STRIP_DOTDOT): Don't define.
1409 (update_path): Use targetm_common.always_strip_dotdot instead of
1410 ALWAYS_STRIP_DOTDOT.
1411 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1412
22c5fa5f
DL
14132011-06-14 David Li <davidxl@google.com>
1414
1415 * passes.c (execute_function_todo): Remove TODO_dump_func.
1416 (execute_one_pass): Remove TODO_dump_func.
1417 (execute_function_dump): New function.
1418 * tree-vrp.c: Remove TODO_dump_func.
1419 * regrename.c: Remove TODO_dump_func.
1420 * fwprop.c: Remove TODO_dump_func.
1421 * tree-into-ssa.c: Remove TODO_dump_func.
1422 * tree-complex.c: Remove TODO_dump_func.
1423 * tracer.c: Remove TODO_dump_func.
1424 * tree-loop-distribution.c: Remove TODO_dump_func.
1425 * postreload-gcse.c: Remove TODO_dump_func.
1426 * postreload.c: Remove TODO_dump_func.
1427 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1428 * tree-tailcall.c: Remove TODO_dump_func.
1429 * ipa-cp.c: Remove TODO_dump_func.
1430 * final.c: Remove TODO_dump_func.
1431 * tree-emutls.c: Remove TODO_dump_func.
1432 * omp-low.c: Remove TODO_dump_func.
1433 * tree-ssa-dse.c: Remove TODO_dump_func.
1434 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1435 * auto-inc-dec.c: Remove TODO_dump_func.
1436 * reorg.c: Remove TODO_dump_func.
1437 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1438 * tree-ssa-ccp.c: Remove TODO_dump_func.
1439 * compare-elim.c: Remove TODO_dump_func.
1440 * mode-switching.c: Remove TODO_dump_func.
1441 * modulo-sched.c: Remove TODO_dump_func.
1442 * tree-call-cdce.c: Remove TODO_dump_func.
1443 * cse.c: Remove TODO_dump_func.
1444 * web.c: Remove TODO_dump_func.
1445 * tree-stdarg.c: Remove TODO_dump_func.
1446 * lto-streamer-out.c: Remove TODO_dump_func.
1447 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1448 * tree-ssa-dom.c: Remove TODO_dump_func.
1449 * tree-nrv.c: Remove TODO_dump_func.
1450 * loop-init.c: Remove TODO_dump_func.
1451 * gimple-low.c: Remove TODO_dump_func.
1452 * ipa-inline.c: Remove TODO_dump_func.
1453 * tree-ssa-sink.c: Remove TODO_dump_func.
1454 * jump.c: Remove TODO_dump_func.
1455 * ifcvt.c: Remove TODO_dump_func.
1456 * tree-ssa-loop.c: Remove TODO_dump_func.
1457 * recog.c: Remove TODO_dump_func.
1458 * dse.c: Remove TODO_dump_func.
1459 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1460 * matrix-reorg.c: Remove TODO_dump_func.
1461 * tree-eh.c: Remove TODO_dump_func.
1462 * regmove.c: Remove TODO_dump_func.
1463 * function.c: Remove TODO_dump_func.
1464 * tree-vectorizer.c: Remove TODO_dump_func.
1465 * ipa-split.c: Remove TODO_dump_func.
1466 * gcse.c: Remove TODO_dump_func.
1467 * tree-if-conv.c: Remove TODO_dump_func.
1468 * init-regs.c: Remove TODO_dump_func.
1469 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1470 * implicit-zee.c: Remove TODO_dump_func.
1471 * lower-subreg.c: Remove TODO_dump_func.
1472 * bt-load.c: Remove TODO_dump_func.
1473 * tree-dfa.c: Remove TODO_dump_func.
1474 * except.c: Remove TODO_dump_func.
1475 * emit-rtl.c: Remove TODO_dump_func.
1476 * store-motion.c: Remove TODO_dump_func.
1477 * cfgexpand.c: Remove TODO_dump_func.
1478 * tree-cfgcleanup.c: Remove TODO_dump_func.
1479 * cfgcleanup.c: Remove TODO_dump_func.
1480 * tree-ssa-pre.c: Remove TODO_dump_func.
1481 * tree-sra.c: Remove TODO_dump_func.
1482 * tree-mudflap.c: Remove TODO_dump_func.
1483 * tree-ssa-copy.c: Remove TODO_dump_func.
1484 * cfglayout.c: Remove TODO_dump_func.
1485 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1486 * tree-ssa-dce.c: Remove TODO_dump_func.
1487 * ira.c: Remove TODO_dump_func.
1488 * tree-ssa.c: Remove TODO_dump_func.
1489 * integrate.c: Remove TODO_dump_func.
1490 * tree-optimize.c: Remove TODO_dump_func.
1491 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1492 * tree-object-size.c: Remove TODO_dump_func.
1493 * combine.c: Remove TODO_dump_func.
1494 * bb-reorder.c: Remove TODO_dump_func.
1495 * cprop.c: Remove TODO_dump_func.
1496 * var-tracking.c: Remove TODO_dump_func.
1497 * tree-profile.c: Remove TODO_dump_func.
1498 * tree-vect-generic.c: Remove TODO_dump_func.
1499 * reg-stack.c: Remove TODO_dump_func.
1500 * sched-rgn.c: Remove TODO_dump_func.
1501 * tree-ssa-structalias.c: Remove TODO_dump_func.
1502 * tree-switch-conversion.c: Remove TODO_dump_func.
1503 * tree-cfg.c: Remove TODO_dump_func.
1504 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1505 * combine-stack-adj.c: Remove TODO_dump_func.
1506 * dce.c: Remove TODO_dump_func.
1507 * tree-ssanames.c: Remove TODO_dump_func.
1508 * regcprop.c: Remove TODO_dump_func.
1509
fa465762
L
15102011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1511
1512 PR middle-end/47364
1513 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1514 and properly handle result not in Pmode.
1515
7d8d16c3
RM
15162011-06-14 Robert Millan <rmh@gnu.org>
1517
1518 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1519 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1520 `config/linux.h'.
1521
1522 * config/i386/kfreebsd-gnu64.h: New file.
1523 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1524 with `i386/kfreebsd-gnu64.h'.
1525
1526 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1527 (GNU_USER_LINK_EMULATION64): New macros.
1528 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1529 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1530 of hardcoding `elf_i386' and `elf_x86_64'.
1531
0ccef3d2
NC
15322011-06-14 Nick Clifton <nickc@redhat.com>
1533
1534 PR target/49403
1535 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1536
1537 PR target/49402
1538 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1539
8a76c4a0
JJ
15402011-06-14 Jakub Jelinek <jakub@redhat.com>
1541
1ace6185
JJ
1542 PR fortran/49103
1543 * tree.h (DECL_NONSHAREABLE): Define.
1544 (struct tree_decl_common): Change decl_common_unused to
1545 decl_nonshareable_flag.
1546 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1547 Ignore vars with DECL_NONSHAREABLE bit set.
1548 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1549 on stores to automatic aggregate vars.
1550
8a76c4a0
JJ
1551 PR rtl-optimization/49390
1552 Revert:
1553 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1554
1555 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1556 MEM_ALIAS_SET.
1557
b4a9343c
ZD
15582011-06-14 Zdenek Dvorak <ook@ucw.cz>
1559 Tom de Vries <tom@codesourcery.com>
1560
1561 PR target/45098
1562 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1563 Document changed semantics.
1564 (max_stmt_executions, max_stmt_executions_int): Declare.
1565 * tree-data-ref.c (estimated_loop_iterations)
1566 (estimated_loop_iterations_int): Move functions...
1567 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1568 (estimated_loop_iterations_int): here.
1569 (record_estimate): Change nb_iterations_upper_bound and
1570 nb_iterations_estimate semantics.
1571 (max_stmt_executions, max_stmt_executions_int): New function.
1572 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1573 (max_stmt_executions_tree): this.
1574 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1575 estimated_loop_iterations_tree.
1576 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1577 max_stmt_executions_int instead of estimated_loop_iterations_int.
1578 * predict.c (predict_loops): Idem.
1579 * tree-parloops.c (parallelize_loops): Idem.
1580 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1581 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1582 (init_omega_for_ddr_1): Idem.
1583 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1584 (loop_prefetch_arrays): Idem
1585 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1586 max_stmt_executions instead of estimated_loop_iterations.
1587 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1588 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1589 instead of nb_iterations_upper_bound.
1590
d2640c43
JH
15912011-06-13 Jan Hubicka <jh@suse.cz>
1592
1593 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1594
40873cdd
RH
15952011-06-14 Richard Henderson <rth@redhat.com>
1596
1597 PR debug/48459
1598 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1599 (based_loc_descr): Assert it's true.
1600 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1601 aborting immediately.
1602
73e8cb24
SL
16032011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1604 Mingfeng Wu <mingfeng@faraday-tech.com>
1605
1606 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1607
f835f0a7
JH
16082011-06-13 Jan Hubicka <jh@suse.cz>
1609
1610 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1611
ee6f1177
JH
16122011-06-13 Jan Hubicka <jh@suse.cz>
1613
1614 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1615 similarly to DECL_COMDAT.
1616 * cgraphunit.c (cgraph_analyze_function): Likewise.
1617 * ipa.c (function_and_variable_visibility): Likewise.
1618
618abf9a
JH
16192011-06-13 Jan Hubicka <jh@suse.cz>
1620
1621 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1622 BINFO_VIRTUALS when streaming for ltrans unit.
1623
a45fe02f
DE
16242011-06-13 David Edelsohn <dje.gcc@gmail.com>
1625
1626 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1627 (movdi_internal64): Same.
1628
16292011-06-13 Edmar Wienskoski <edmar@freescale.com>
1630
e641e495 1631 PR target/44618
7d8d16c3
RM
1632 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1633 a set of similar patterns, where the MATCH_OPERAND for the function
1634 argument is replaced with individual references to hardware registers.
a45fe02f
DE
1635 (save_fpregs_<mode>): Ditto
1636 (restore_gpregs_<mode>): Ditto
1637 (return_and_restore_gpregs_<mode>): Ditto
1638 (return_and_restore_fpregs_<mode>): Ditto
1639 (return_and_restore_fpregs_aix_<mode>): Ditto
1640
8775a18b
JH
16412011-06-13 Jan Hubicka <jh@suse.cz>
1642
1643 * ipa-utils.c (postorder_stack): New structure.
1644 (ipa_reverse_postorder): Handle aliases.
1645
16462011-06-13 Jan Hubicka <jh@suse.cz>
1647
1648 * ipa-inline.c (reset_edge_caches): Walk aliases.
1649 (update_caller_keys): Do not test inlinability of aliases.
1650 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1651 (do_estimate_growth): Fix typo.
1652
6c69a029
JH
16532011-06-13 Jan Hubicka <jh@suse.cz>
1654
1655 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1656 (can_remove_node_now_p): ... here; handle same comdat groups.
1657 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1658 (inline_call): Update use of can_remove_node_now_p.
1659
10c63ba4 16602011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 1661
10c63ba4 1662 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
1663 condition to disallow non-identical memory locations.
1664 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1665 preference to bit manipulation instructions.
495f8c14 1666
9aa3f5c5
JH
16672011-06-13 Jan Hubicka <jh@suse.cz>
1668
1669 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1670 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1671 (nonremovable_p): New function.
1672 (cgraph_can_remove_if_no_direct_calls_p): New function.
1673 (used_from_object_file_p): New functoin.
10c63ba4
EB
1674 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1675 references from aliases.
9aa3f5c5
JH
1676 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1677 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
1678 (want_inline_function_called_once_p): Use it; accept aliases called
1679 once, too.
9aa3f5c5
JH
1680 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1681
30cecf17
RR
16822011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1683
1684 PR target/48454
1685 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1686 correctly for the case with Quad vectors.
1687
29f85237
JJ
16882011-06-13 Jakub Jelinek <jakub@redhat.com>
1689 Ira Rosen <ira.rosen@linaro.org>
1690
1691 PR tree-optimization/49352
1692 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1693 all, make sure loop_use_stmt after the loop is a def stmt of a used
1694 SSA_NAME that is the only one defined inside of the loop. Don't
1695 check for COND_EXPR and GIMPLE_BINARY_RHS.
1696 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1697 check_reduction is true.
1698
c3e3f090
JH
16992011-06-11 Jan Hubicka <jh@suse.cz>
1700
1701 PR middle-end/49373
1702 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1703
516e0768
JH
17042011-06-11 Jan Hubicka <jh@suse.cz>
1705
1706 PR middle-end/48836
1707 * ipa-inline-transform.c: Include tree-pass.h
1708 (inline_transform): Set TODO_update_ssa_only_virtuals.
1709 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1710
903b0a8b
JH
17112011-06-11 Jan Hubicka <jh@suse.cz>
1712
1713 PR middle-end/49378
1714 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1715 aliases and thunks.
1716
44542f8e
IR
17172011-06-12 Ira Rosen <ira.rosen@linaro.org>
1718
1719 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1720 Take number of iterations to peel into account for equally frequent
1721 misalignment values.
1722
ea89702b
JH
17232011-06-11 Jan Hubicka <jh@suse.cz>
1724
637c11bd
UB
1725 * lto-streamer-out.c (produce_symtab): Stream out the newly
1726 represented aliases.
ea89702b 1727
380ed5ed
JH
17282011-06-11 Jan Hubicka <jh@suse.cz>
1729
637c11bd
UB
1730 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
1731 varying args.
380ed5ed
JH
1732 (ipa_update_after_lto_read): Likewise.
1733 (ipa_write_node_info): Do not sream call_with_var_arguments.
1734 (ipa_read_node_info): Likewise.
1735
00cfc363
JH
17362011-06-11 Jan Hubicka <jh@suse.cz>
1737
1738 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1739
39e2db00
JH
17402011-06-11 Jan Hubicka <jh@suse.cz>
1741
1742 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1743 (lto_symtab_resolve_can_prevail_p): Likewise.
1744 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1745 * cgraph.c (same_body_aliases_done): New global var.
1746 (cgraph_same_body_alias_1): Rename to ...
1747 (cgraph_create_function_alias): ... this one; reorg to new
1748 representation.
1749 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1750 record references when asked to.
1751 (cgraph_add_thunk): Fix formating.
1752 (cgraph_get_node): Kill same body alias code.
1753 (cgraph_node_for_asm): Likewise.
1754 (cgraph_remove_same_body_alias): Remove.
1755 (cgraph_remove_node): Kill same body alias code.
1756 (cgraph_mark_address_taken_node): Mark also the aliased function
1757 as having address taken.
1758 (dump_cgraph_node): Dump same body aliases.
1759 (cgraph_for_node_thunks_and_aliases): Update for new alias
1760 representation.
1761 (cgraph_for_node_and_aliases): Likewise.
1762 * cgraph.h (same_body): Kll pointer.
1763 (same_body_alias): Update comment.
1764 (same_body_aliases_done): Declare.
1765 (cgraph_remove_same_body_alias): Remove declaration.
1766 (cgraph_create_function_alias): Declare.
1767 (cgraph_process_same_body_aliases): Declare.
1768 (cgraph_function_with_gimple_body_p): Check for alias.
1769 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1770 (cgraph_alias_aliased_node): New function.
1771 (cgraph_function_node): Update for new aliases.
1772 (cgraph_function_or_thunk_node): Likewise.
1773 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1774 (inline_call): Remove dead aliases.
10c63ba4
EB
1775 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1776 name hack for same body aliases.
39e2db00
JH
1777 (clone_of_p): Look through aliases.
1778 (verify_cgraph_node): Verify aliases.
1779 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1780 (cgraph_process_same_body_aliases): New function.
1781 (process_function_and_variable_attributes): Disable weakref warning on
1782 alias.
1783 (cgraph_analyze_functions): Handle aliases.
1784 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1785 (assemble_thunks): Rename to ...
1786 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1787 (cgraph_expand_function): Remove alias output code.
1788 (cgraph_output_in_order): Skip aliases.
1789 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1790 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1791 (ipa_record_reference): Do not assert on alias references.
1792 (ipa_ref_has_aliases_p): New function.
1793 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1794 (ipa_ref_has_aliases_p): Declare.
1795 * lto-cgraph.c (lto_output_node): Handle aliases.
1796 (input_node): Likewise.
1797 * lto-streamer-out.c (lto_output): Skip aliases.
1798 (produce_symtab): Kill same_body_alias code.
1799 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1800 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1801 * ipa-inline.c (update_caller_keys): Walk aliases.
1802 (inline_small_functions): Fix thinko in previous patch.
1803 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1804 (function_and_variable_visibility): Do not walk same body aliases.
1805 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1806 (ipa_pta_execute): Use it.
1807
9ee65b55
UB
18082011-06-11 Uros Bizjak <ubizjak@gmail.com>
1809
1810 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1811 (*vec_dupv2df): Rename from vec_dupv2df.
1812 (vec_dupv2df): New expander.
1813
18142011-06-11 Uros Bizjak <ubizjak@gmail.com>
1815
1816 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1817
18182011-06-11 Uros Bizjak <ubizjak@gmail.com>
1819
1820 * config/i386/i386.md: Use default value in "isa" attribute.
1821 * config/i386/sse.md: Ditto.
1822 * config/i386/mmx.md: Ditto.
1823
ba68a139
WG
18242011-06-10 Wei Guozhi <carrot@google.com>
1825
1826 PR target/45335
1827 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1828 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1829 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1830 related peephole2.
1831 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1832 related peephole2.
1833 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1834 (arm_legitimate_ldrd_p): New prototype.
1835 (arm_output_ldrd): New prototype.
1836 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1837 (arm_legitimate_ldrd_p): New function.
1838 (arm_output_ldrd): New function.
1839
deced1e2
XDL
18402011-06-10 David Li <davidxl@google.com>
1841
1842 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1843 * passes.c (passr_eq): New function.
1844 (create_pass_tab): New function.
1845 (pass_traverse): New function.
1846 (dump_one_pass): New function.
1847 (dump_pass_list): New function.
1848 (dump_passes): New function.
1849
71fb4f92
JH
18502011-06-10 Jan Hubicka <jh@suse.cz>
1851
1852 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1853 setting the nothrow flag.
1854 * ipa-reference.c (propagate): Skip aliases.
1855 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1856 (propagate_nothrow): Skip aliases; do not update cgraph.
1857 (local_pure_const): Do not update cgraph.
1858 * tree-profile.c (tree_profiling): Do fixup_cfg.
1859
41817394
JH
18602011-06-10 Jan Hubicka <jh@suse.cz>
1861
1862 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1863 (cgraph_local_node_p): ... here; handle aliases.
1864 (has_addr_references_p): Break out from ...;
1865 (cgraph_remove_unreachable_nodes) ... here.
1866
fb37c1de
JH
18672011-06-10 Jan Hubicka <jh@suse.cz>
1868
1869 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
1870 * common.opt (flag_inline_functions_called_once): Do not
1871 initialize to 1.
fb37c1de 1872
0818c24c
JH
18732011-06-10 Jan Hubicka <jh@suse.cz>
1874
1875 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
1876 (ipcp_initialize_node_lattices): Do not deal with aliases;
1877 Do not try to propagate through thunks.
0818c24c
JH
1878 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1879
c8246dbe
JH
18802011-06-10 Jan Hubicka <jh@suse.cz>
1881
9ee65b55
UB
1882 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1883 for indirect calls.
c8246dbe
JH
1884 (ipa_read_node_info): Likewise.
1885
d7e2a1c1
BS
18862011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1887
1888 PR lto/49302
1889 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1890 (build_and_insert_call): Likewise.
1891 (build_and_insert_ref): New.
1892 (gimple_expand_builtin_pow): Minor cleanup.
1893 (gimple_expand_builtin_cabs): New.
1894 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 1895
749f25d8
JH
18962011-06-10 Jan Hubicka <jh@suse.cz>
1897
1898 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1899 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1900 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1901 (ipcp_propagate_stage): Skip aliases when propagating.
1902 (ipcp_need_redirect_p): Skip aliases.
1903 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1904 collect_callers_of_node.
1905 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1906 for aliases.
1907 (ipa_compute_jump_functions): Look through aliases.
1908
8340fbd7
RO
19092011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1910
1911 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1912
9aaa7e47
HPN
19132011-06-10 Hans-Peter Nilsson <hp@axis.com>
1914
1915 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1916 Adjust comments.
1917 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1918
f1724940
JH
19192011-06-10 Jan Hubicka <jh@suse.cz>
1920
1921 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1922 Update call of gimple_get_virt_method_for_binfo.
1923 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1924 refuse_thunks parameter.
1925 (gimple_fold_call): Update.
1926 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1927
a6f834c5
JH
19282011-06-10 Jan Hubicka <jh@suse.cz>
1929
1930 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1931 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1932 worker for cgraph_for_node_and_aliases.
1933 (convert_callers_for_node): Break out from ...
1934 (convert_callers): ... here.
1935 (modify_function): Use collect_callers_of_node.
1936 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1937
7871eee3
RG
19382011-06-10 Richard Guenther <rguenther@suse.de>
1939
1940 PR tree-optimization/49361
1941 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1942 when not already in gimple form.
1943
dae957ae
RG
19442011-06-10 Richard Guenther <rguenther@suse.de>
1945
1946 PR bootstrap/49344
1947 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1948 FOR_EACH_PHI_OR_STMT_USE.
1949
a5b1779f
JH
19502011-06-10 Jan Hubicka <jh@suse.cz>
1951
1952 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1953 (clone_inlined_nodes): ... here.
1954 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1955 to real destination prior inlining.
1956 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1957 can_early_inline_edge_p, want_early_inline_function_p,
1958 want_early_inline_function_p, want_inline_small_function_p,
1959 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1960 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1961 add_new_edges_to_heap, inline_small_functions, flatten_function,
1962 inline_always_inline_functions, early_inline_small_functions): Use
1963 cgraph_function_or_thunk_node.
1964 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1965 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1966 (do_estimate_edge_growth_1): Break out from ...
1967 (do_estimate_growth) ... here; walk aliases.
1968 (inline_generate_summary): Skip aliases.
1969
c1ae3ca5
RG
19702011-06-10 Richard Guenther <rguenther@suse.de>
1971
9ee65b55
UB
1972 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1973 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 1974
b504a918
PC
19752011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1976
1977 * tree.h (error_operand_p): Add.
1978 * dbxout.c (dbxout_type_fields): Use the latter.
1979 * c-decl.c (add_stmt): Likewise.
1980 * gimplify.c (omp_add_variable, omp_notice_variable,
1981 gimplify_scan_omp_clauses): Likewise.
1982
3f5ea9dc 19832011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 1984
3f5ea9dc
GJL
1985 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1986 when a value is actually passed in regs.
1987
b11b0904 19882011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 1989 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
1990
1991 * doc/invoke.texi (SPARC options): Add -mflat.
1992 * config/sparc/sparc.opt: Likewise.
1993 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1994 (sparc_flat_expand_prologue): Declare.
1995 (sparc_flat_expand_epilogue): Likewise.
1996 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1997 (CPP_ENDIAN_SPEC): Replace with...
1998 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1999 (CPP_SPEC): Adjust to above change.
2000 (EXTRA_SPECS): Likewise.
2001 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2002 (INCOMING_REGNO): Likewise.
2003 (OUTGOING_REGNO): Likewise.
2004 (LOCAL_REGNO): Likewise.
2005 (SETUP_FRAME_ADDRESSES): Likewise.
2006 (FIXED_REGISTERS): Set 0 for %fp.
2007 (CALL_USED_REGISTERS): Likewise.
2008 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2009 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2010 (RETURN_ADDR_REGNUM): Define.
2011 (RETURN_ADDR_RTX): Use it.
2012 (INCOMING_RETURN_ADDR_REGNUM): Define.
2013 (INCOMING_RETURN_ADDR_RTX): Use it.
2014 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2015 (EH_RETURN_REGNUM): Define.
2016 (EH_RETURN_STACKADJ_RTX): Use it.
2017 (EH_RETURN_HANDLER_RTX): Delete.
2018 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2019 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2020 Delete.
2021 (struct machine_function): Add frame_size, apparent_frame_size,
2022 frame_base_reg, frame_base_offset, n_global_fp_regs and
2023 save_local_in_regs_p fields.
2024 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2025 sparc_frame_base_offset, sparc_n_global_fp_regs,
2026 sparc_save_local_in_regs_p): New macros.
2027 (sparc_option_override): Error out if -fcall-saved-REG is specified
2028 for Out registers.
2029 (eligible_for_restore_insn): Fix formatting.
2030 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2031 (eligible_for_sibcall_delay): Likewise.
2032 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2033 (sparc_legitimate_address_p): Adjust to above change.
2034 (save_global_or_fp_reg_p): New predicate.
2035 (return_addr_reg_needed_p): Likewise.
2036 (save_local_or_in_reg_p): Likewise.
2037 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2038 (SORR_SAVE, SORR_RESTORE): Delete.
2039 (sorr_pred_t): New typedef.
2040 (sorr_act_t): New enum.
2041 (save_or_restore_regs): Rename to...
2042 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2043 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2044 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2045 mechanism. Add CFI information for double-word saves in 32-bit mode.
2046 (emit_adjust_base_to_offset): New function extracted from...
2047 (emit_save_or_restore_regs): ...this. Rename the rest to...
2048 (emit_save_or_restore_regs_global_fp_regs): ...this.
2049 (emit_save_or_restore_regs_local_in_regs): New function.
2050 (gen_create_flat_frame_[123]): New functions.
2051 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2052 (sparc_flat_expand_prologue): New function.
2053 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2054 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2055 (sparc_flat_expand_epilogue): New function.
2056 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2057 (output_return): Likewise.
2058 (output_sibcall): Likewise.
2059 (sparc_output_mi_thunk): Likewise.
2060 (sparc_frame_pointer_required): Likewise.
2061 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2062 function optimization.
2063 * config/sparc/sparc.md (flat): New attribute.
2064 (prologue): Add TARGET_FLAT handling.
2065 (save_register_window): Disable if TARGET_FLAT.
2066 (create_flat_frame_[123]): New patterns.
2067 (epilogue): Add TARGET_FLAT handling.
2068 (sibcall_epilogue): Likewise.
2069 (eh_return): New expander.
2070 (eh_return_internal): New insn and splitter.
2071 (return_internal): Add TARGET_FLAT handling.
2072 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2073 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2074 (nonlocal_goto): Add TARGET_FLAT handling.
2075 * config/sparc/t-elf: Add -mflat multilib.
2076 * config/sparc/t-leon: Likewise.
2077
fede8efa
JH
20782011-06-10 Jan Hubicka <jh@suse.cz>
2079
2080 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2081 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2082 (self_recursive_p): Use cgraph_function_node.
2083 (propagate_pure_const): Likewise.
2084 (propagate_nothrow): Likewise.
2085 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2086 cgraph_function_node.
2087 (propagate_bits): Likewise.
2088 (propagate): Likewise.
2089
0127c76f
RR
20902011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2091 Richard Earnshaw <rearnsha@arm.com>
2092
9ee65b55 2093 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
2094 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2095 (*thumb2_movdi_vfp): Delete.
2096 (*arm_movdi_vfp_cortexa8): Delete.
2097 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2098 (*movdi_vfp_cortexa8): Likewise.
2099
f93fe5a0
RG
21002011-06-10 Richard Guenther <rguenther@suse.de>
2101
2102 * stor-layout.c (initialize_sizetypes): Give names to all
2103 sizetype kinds.
2104
f2164f87
IR
21052011-06-10 Ira Rosen <ira.rosen@linaro.org>
2106
2107 PR tree-optimization/49318
2108 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2109 irrelevant pattern statements.
2110
3f91c962
HPN
21112011-06-10 Hans-Peter Nilsson <hp@axis.com>
2112
3d223145
HPN
2113 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2114
3f91c962
HPN
2115 PR bootstrap/49354
2116 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2117 to last assignment.
2118
b125ad45
JH
21192011-06-09 Jan Hubicka <jh@suse.cz>
2120
2121 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2122 do not recompute reachable flag.
2123 (cgraph_finalize_function, cgraph_analyze_functions): Set
2124 redefined_extern_inline here.
2125
be330ed4
JH
21262011-06-09 Jan Hubicka <jh@suse.cz>
2127
2128 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2129 (cgraph_only_called_directly_p): ... this one; bring offline.
2130 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2131 varpool_used_from_object_file_p): Drop names from the declaratoin.
2132 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2133 collect_callers_of_node): New.
2134 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2135 (cgraph_edge_recursive_p): Use cgraph_function_node.
2136 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2137 (cgraph_node_cannot_be_local_p_1): Break out from ...
2138 (cgraph_node_can_be_local_p): ... here; walk aliases.
2139 (cgraph_for_node_thunks_and_aliases): New function.
2140 (cgraph_for_node_and_aliases): New function.
2141 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
2142 (cgraph_make_node_local) ... here; use
2143 cgraph_for_node_thunks_and_aliases.
be330ed4 2144 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
2145 (cgraph_set_nothrow_flag) ... here;
2146 use cgraph_for_node_thunks_and_aliases.
be330ed4 2147 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
2148 (cgraph_set_const_flag) ... here;
2149 use cgraph_for_node_thunks_and_aliases.
be330ed4 2150 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
2151 (cgraph_set_pure_flag) ... here;
2152 use cgraph_for_node_thunks_and_aliases.
be330ed4 2153 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
2154 (cgraph_propagate_frequency) ... here; use
2155 cgraph_for_node_thunks_and_aliases.
be330ed4 2156 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
2157 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2158 New functions.
be330ed4
JH
2159 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2160
2ea91d6b
HPN
21612011-06-10 Hans-Peter Nilsson <hp@axis.com>
2162
2163 PR rtl-optimization/49154
2164 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2165 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2166 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2167 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2168 * config/cris/cris.h (cris_register_move_cost): Remove
2169 !TARGET_V32 code. Tweak comments.
2170
9cf4fb5a
JH
21712011-06-09 Jan Hubicka <jh@suse.cz>
2172
2173 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2174 address taken.
2175
6049a4c8
HPN
21762011-06-10 Hans-Peter Nilsson <hp@axis.com>
2177
c577822e 2178 PR rtl-optimization/49154
9ee65b55
UB
2179 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2180 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 2181
54e1e4f7 2182 PR rtl-optimization/49154
6049a4c8
HPN
2183 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2184 register classes.
2185 * doc/tm.texi: Regenerate.
2186
3be68b64
KK
21872011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2188
2189 PR target/49307
2190 * config/sh/sh.md (UNSPEC_CHKADD): New.
2191 (chk_guard_add): New define_insn_and_split.
2192 (symGOT_load): Use chk_guard_add instead of blockage.
2193
bf806a90
KT
21942011-06-09 Kai Tietz <ktietz@redhat.com>
2195
2196 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2197
d5a9738b
EB
21982011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2199
2200 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2201
527e82c2
WG
22022011-06-09 Wei Guozhi <carrot@google.com>
2203
2204 PR target/46975
2205 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2206 (peephole2 for conditional move): Generate 16 bit instructions.
2207
b8bc3a43
UB
22082011-06-09 Uros Bizjak <ubizjak@gmail.com>
2209
2210 * config/i386/i386.md (*movdi_internal_rex64): Merge
2211 alternatives 6 and 8.
2212
4745da6e
DL
22132011-06-09 David Li <davidxl@google.com>
2214
2215 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2216 * passes.c (passr_eq): New function.
2217 (create_pass_tab): New function.
2218 (pass_traverse): New function.
2219 (dump_one_pass): New function.
2220 (dump_pass_list): New function.
2221 (dump_passes): New function.
2222
bdf67bcb
DL
22232011-06-09 David Li <davidxl@google.com>
2224
2225 * tree-complex.c (tree_lower_complex): Gate cleanup.
2226 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2227 (execute_optimize_stdarg): Ditto.
2228 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2229 (execute_cleanup_eh_1): Ditto.
2230 (execute_cleanup_eh): Ditto.
2231 * gcse.c (gate_rtl_pre): Ditto.
2232 (execute_rtl_pre): Ditto.
2233 * except.c (finish_eh_generation): Ditto.
2234 (convert_to_eh_region_ranges): Ditto.
2235 * cprop.c (one_cprop_pass): Ditto.
2236
547fdef8
BS
22372011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2238
2239 PR target/48673
2240 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2241 in all basic blocks.
2242
10e48e39
RO
22432011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2244
2245 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2246 (HAVE_ENABLE_EXECUTE_STACK): Define.
2247 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2248 (HAVE_ENABLE_EXECUTE_STACK): Define.
2249 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2250 (HAVE_ENABLE_EXECUTE_STACK): Define.
2251 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2252 (ENABLE_EXECUTE_STACK): Remove.
2253 (HAVE_ENABLE_EXECUTE_STACK): Define.
2254 [IN_LIBGCC2]: Don't include <windows.h>.
2255 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2256 (HAVE_ENABLE_EXECUTE_STACK): Define.
2257 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2258 (HAVE_ENABLE_EXECUTE_STACK): Define.
2259 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2260 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2261 (HAVE_ENABLE_EXECUTE_STACK): Define.
2262 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2263 (HAVE_ENABLE_EXECUTE_STACK): Define.
2264 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2265 (HAVE_ENABLE_EXECUTE_STACK): Define.
2266 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2267 (HAVE_ENABLE_EXECUTE_STACK): Define.
2268 * config/alpha/alpha.c (alpha_trampoline_init): Test
2269 HAVE_ENABLE_EXECUTE_STACK.
2270 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2271 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2272 (sparc64_initialize_trampoline): Likewise.
2273 * libgcc2.c [L_enable_execute_stack]: Remove.
2274 * system.h (ENABLE_EXECUTE_STACK): Poison.
2275 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2276 * doc/tm.texi: Regenerate.
2277 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2278
8ced31fe
JJ
22792011-06-09 Jakub Jelinek <jakub@redhat.com>
2280
2281 PR middle-end/49308
2282 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2283 variable. After resetting and rescanning insn continue with previous
2284 statement.
2285
ee610fcd
RO
22862011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287
2288 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2289 (gcc_cv_ld_hidden): Likewise.
2290 * configure: Regenerate.
2291 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2292 (ix86_stack_protect_fail): Mark unused.
2293 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2294 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2295 [TARGET_MACHO]: Don't define.
2296 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2297 (TARGET_STACK_PROTECT_FAIL): Likewise.
2298 (rs6000_stack_protect_fail): Mark unused.
2299 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 2300 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 2301
8f2e22ff
AK
23022011-06-08 Andi Kleen <ak@linux.intel.com>
2303
2304 * varasm.c (get_section): Print location of other conflict
2305 for section conflicts.
2306
815cecbe
AK
23072011-06-08 Andi Kleen <ak@linux.intel.com>
2308
2309 * config/i386/driver-i386.c (host_detect_local_cpu):
2310 Add model 0x2d Intel CPU.
2311
1460ec5c
AK
23122011-06-08 Andi Kleen <ak@linux.intel.com>
2313
2314 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
2315 (globalize_reg): Add decl parameter. Compute location. Pass location
2316 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
2317 * rtl.h (globalize_reg): Update prototype.
2318 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2319
df17530a
MX
23202011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2321
2322 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2323
409fed48
KK
23242011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2325
2326 PR target/49305
2327 * config/sh/predicates.md (general_movsrc_operand): Check
2328 mode for memory with indexed address for QI and HImode.
2329 (general_movdst_operand): Likewise.
2330
87c16a45
NP
23312011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2332
b8bc3a43 2333 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 2334
49931fcb
AO
23352011-06-08 Alexandre Oliva <aoliva@redhat.com>
2336
2337 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2338 (num_ssa_operands): Likewise.
2339 (op_iter_init_phiuse): Forward-declare.
2340 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2341
29494d1f
NC
23422011-06-08 Nick Clifton <nickc@redhat.com>
2343
2344 * doc/invoke.texi (ARM Options): Update description of
2345 -mthumb-interwork.
2346
4ffae7ff
L
23472011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2348
2349 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2350 unknown Intel family 0x6 CPUs.
2351
d9c77712
MJ
23522011-06-08 Martin Jambor <mjambor@suse.cz>
2353
2354 * tree-sra.c (mark_rw_status): Removed.
2355 (analyze_access_subtree): New parameter parent instead of
2356 mark_read and mark_write, propagate from that.
2357
b1def36c
JB
23582011-06-08 Julian Brown <julian@codesourcery.com>
2359
2360 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2361 for double-precision helper functions in hard-float mode if only
2362 single-precision arithmetic is supported in hardware.
2363
6c8e9fc9
AM
23642011-06-08 Alexander Monakov <amonakov@ispras.ru>
2365
2366 PR rtl-optimization/49303
2367 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2368 code_motion_path_driver returned 0 or 1.
2369 (sel_region_finish): Clear h_d_i_d.
2370
c2bbcb0d
KK
23712011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2372
2373 * config/sh/sh.c (prepare_move_operands): Set pic register
2374 appropriately for global and local dynamic tls models even
2375 if flag_pic is unset.
2376
6976ae51
JM
23772011-06-07 Jason Merrill <jason@redhat.com>
2378
2379 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2380
bb5b1f5e
XDL
23812011-06-07 Xinliang David Li <davidxl@google.com>
2382 * passes.c (enable_disable_pass): Handle assembler name.
2383 (is_pass_explicitly_enabled_or_disabled): Ditto.
2384
91ffe356
RO
23852011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2386
2387 PR tree-optimization/48497
2388 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2389
06bc3ec7
BS
23902011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2391
2392 PR tree-optimization/46728
2393 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2394 to use gimple_val_nonnegative_real_p.
2395 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2396 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 2397
c074d740
L
23982011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2399
2400 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2401
8973b112
SG
24022011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2403
2404 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2405 constant vectors.
2406
67b88453
RG
24072011-06-07 Richard Guenther <rguenther@suse.de>
2408
2409 * stor-layout.c (initialize_sizetypes): Initialize all
2410 sizetypes based on target definitions.
2411 (set_sizetype): Remove.
2412 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2413 * tree.h (set_sizetype): Remove.
2414
1dcad079
NC
24152011-06-07 Nick Clifton <nickc@redhat.com>
2416
2417 * config.gcc: Unify V850 architecture options and add support for
2418 newer V850 architectures.
2419 * config/v850/t-v850e: Delete.
2420
009db074
RG
24212011-06-07 Richard Guenther <rguenther@suse.de>
2422
2423 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2424 Call set_sizetype from here.
2425
f373314f
AS
24262011-06-07 Andrew Stubbs <ams@codesourcery.com>
2427
2428 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2429 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2430
c536876e
AS
24312011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2432 Andrew Stubbs <ams@codesourcery.com>
2433
2434 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2435 multiplies.
2436 * doc/md.texi (Canonicalization of Instructions): Document widening
2437 multiply canonicalization.
2438
308dc890
JJ
24392011-06-07 Jakub Jelinek <jakub@redhat.com>
2440
2441 PR gcov-profile/49299
b8bc3a43 2442 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 2443
383d9c83
IR
24442011-06-07 Ira Rosen <ira.rosen@linaro.org>
2445
2446 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2447 a pointer.
2448 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2449 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2450 vect_recog_pow_pattern): Likewise.
2451 (vect_pattern_recog_1): Remove declaration.
2452 (widened_name_p): Remove declaration. Add new argument to specify
2453 whether to check that both types are either signed or unsigned.
2454 (vect_recog_widen_mult_pattern): Update documentation. Handle
2455 unsigned patterns and multiplication by constants.
2456 (vect_pattern_recog_1): Update vect_recog_func references. Use
2457 statement information from the statement returned from pattern
2458 detection functions.
2459 (vect_pattern_recog): Update vect_recog_func reference.
2460 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2461 multiplication by a constant use the type of the other operand.
2462
4de4b0f2
RS
24632011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2464
2465 PR rtl-optimization/49145
2466 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2467
a9d24544
JJ
24682011-06-06 Jakub Jelinek <jakub@redhat.com>
2469
99a5e049
JJ
2470 PR debug/49262
2471 * dwarf2out.c (native_encode_initializer): Decrement count in each
2472 iteration.
2473
04902d4c
JJ
2474 PR debug/49294
2475 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2476 non-MODE_INT modes.
2477
a9d24544
JJ
2478 PR c++/49264
2479 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2480 if stmt folded into nothing.
b8bc3a43
UB
2481 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2482 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
2483 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2484 to be NULL. Don't compute count and frequency if new_call is NULL.
2485
47c79d56
DN
24862011-06-04 Diego Novillo <dnovillo@google.com>
2487
2488 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2489 (cgraph.o): Likewise.
2490 (cgraphunit.o): Likewise.
2491 * cgraphunit.c: Include lto-streamer.h
2492 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2493 if LTO is enabled.
2494 * lto-streamer-in.c (unpack_value_fields): Call
2495 streamer_hooks.unpack_value_fields if set.
2496 (lto_materialize_tree): For unhandled nodes, first try to
2497 call lto_streamer_hooks.alloc_tree, if it exists.
2498 (lto_input_ts_decl_common_tree_pointers): Move reading of
2499 DECL_INITIAL to lto_streamer_read_tree.
2500 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2501 (lto_streamer_read_tree): New.
2502 (lto_reader_init): Rename from lto_init_reader.
2503 Move initialization code to lto/lto.c.
2504 * lto-streamer-out.c (pack_value_fields): Call
2505 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
2506 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2507 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 2508 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
2509 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2510 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2511 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2512 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
2513 (lto_streamer_write_tree): New.
2514 (lto_output): Call lto_streamer_init directly.
2515 (lto_writer_init): Remove.
2516 * lto-streamer.c (streamer_hooks): New.
2517 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2518 instead of lto_preload_common_nodes.
2519 (lto_is_streamable): Move from lto-streamer.h
2520 (lto_streamer_hooks_init): New.
2521 (streamer_hooks): New.
2522 (streamer_hooks_init): New.
2523 * lto-streamer.h (struct output_block): Forward declare.
2524 (struct lto_input_block): Likewise.
2525 (struct data_in): Likewise.
2526 (struct bitpack_d): Likewise.
2527 (struct streamer_hooks): Declare.
2528 (streamer_hooks): Declare.
2529 (lto_streamer_hooks_init): Declare.
2530 (lto_streamer_write_tree): Declare.
2531 (lto_streamer_read_tree): Declare.
2532 (streamer_hooks_init): Declare.
2533 (lto_is_streamable): Move to lto-streamer.c
2534
22afe143
AK
25352011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2536
2537 * longlong.h (smul_ppmm): The resulting register pair contains the
2538 higher order word first.
2539
3906ea1b
BS
25402011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2541
2542 PR tree-optimization/46728
2543 * builtins.c (powi_table): Remove.
2544 (powi_lookup_cost): Remove.
2545 (powi_cost): Remove.
2546 (expand_powi_1): Remove.
2547 (expand_powi): Remove.
2548 (expand_builtin_pow_root): Remove.
2549 (expand_builtin_pow): Remove.
2550 (expand_builtin_powi): Eliminate handling of constant exponent.
2551 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 2552
3598cabd
AO
25532011-06-06 Alexandre Oliva <aoliva@redhat.com>
2554
2555 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2556
a7a110bb
AO
25572011-06-06 Alexandre Oliva <aoliva@redhat.com>
2558
2559 * dce.c (reset_unmarked_insns_debug_uses): New.
2560 (delete_unmarked_insns): Skip debug insns.
2561 (prescan_insns_for_dce): Likewise.
2562 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2563 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2564 active reg can be found.
2565 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2566 (convert_regs_1): Use it.
2567
6d8402ac
AO
25682011-06-06 Alexandre Oliva <aoliva@redhat.com>
2569
2570 * tree-pretty-print.c (dump_function_header): Add flags.
2571 Don't dump decl_uid with nouid.
2572 * tree-pretty-print.h (dump_function_header): Adjust.
2573 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2574 * passes.c (pass_init_dump_file): Pass dump_flags on.
2575 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2576
f75e1f1e
AO
25772011-06-06 Alexandre Oliva <aoliva@redhat.com>
2578
2579 PR bootstrap/49270
2580 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2581
275311c4
MP
25822011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2583
2584 PR tree-optimization/49243
2585 * calls.c (setjmp_call_p): Also check if fndecl has the
2586 returns_twice attribute.
2587
aa4203e7
RO
25882011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2589
2590 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2591 -ffast-math etc.
2592
48f9d59a
RH
25932011-06-06 Richard Henderson <rth@redhat.com>
2594 Georg-Johann Lay <avr@gjlay.de>
2595
2596 PR target/42210
2597 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2598 New predicates.
2599 * config/avr/avr.md ("insv"): New insn expander.
2600 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2601 "*insv.not.io", "*insv.reg"): New insns.
2602
11494830
HPN
26032011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2604
2605 PR target/49285
b8bc3a43
UB
2606 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2607 to nonimmediate_operand from memory_operand for the operand that is to
2608 be forced to memory by the expander. Lose the constraints.
11494830 2609
679e70df
EB
26102011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2611
2612 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2613 EH return when delayed branches are disabled.
2614
4d3d7f15
UB
26152011-06-05 Uros Bizjak <ubizjak@gmail.com>
2616
2617 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2618 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2619 calculation.
2620 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2621 Simplify MODE_V1DF and MODE_V2SF handling.
2622 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2623 Simplify MODE_SF handling.
2624
a45c0557
JH
26252011-06-04 Jan Hubicka <jh@suse.cz>
2626
2627 PR tree-optimization/48893
2628 PR tree-optimization/49091
2629 PR tree-optimization/49179
2630 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2631 Bounds check.
2632
26740835
JH
26332011-06-04 Jan Hubicka <jh@suse.cz>
2634
2635 PR lto/48954
b8bc3a43
UB
2636 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2637 bitmaps.
26740835 2638
014ab419
JW
26392011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2640
2641 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2642
407bcba7
JJ
26432011-06-04 Jakub Jelinek <jakub@redhat.com>
2644
2645 PR target/49281
2646 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2647 to be strictly smaller than 1 << shiftcount.
2648
e3195c52
JH
26492011-06-04 Jan Hubicka <jh@suse.cz>
2650
2651 PR tree-optimize/48929
2652 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2653 of empty predicate.
2654
047d33a0
AO
26552011-06-04 Alexandre Oliva <aoliva@redhat.com>
2656
2657 PR debug/48333
2658 * calls.c (emit_call_1): Prefer the __builtin declaration of
2659 builtin functions.
2660
dc587809
DN
26612011-06-03 Diego Novillo <dnovillo@google.com>
2662
2663 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2664 (lto_input_tree_pointers): Likewise.
2665 * lto-streamer-out.c (pack_value_fields): Likewise.
2666 (lto_output_tree_pointers): Likewise.
2667 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2668 and OPTIMIZATION_NODE.
2669
58cd1d70
RO
26702011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2671
2672 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2673 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2674 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2675 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2676 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2677 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2678 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2679 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2680 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2681 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2682 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2683 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2684 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2685 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2686 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2687 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2688 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2689 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2690 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2691 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2692 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2693 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2694 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2695 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2696 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2697 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2698 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2699 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2700 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2701 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2702 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2703 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2704 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2705 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2706 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2707 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2708 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2709 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2710 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2711 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2712 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2713 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2714 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2715 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2716 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2717 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2718 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2719 * system.h (MD_UNWIND_SUPPORT): Poison.
2720 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2721 * doc/tm.texi: Regenerate.
2722 * unwind-dw2.c: Include md-unwind-support.h instead of
2723 MD_UNWIND_SUPPORT.
2724 * config/ia64/unwind-ia64.c: Likewise.
2725 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2726
10c63ba4 27272011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
2728
2729 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2730
1b7a0148
RH
27312011-06-03 Richard Henderson <rth@redhat.com>
2732 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2733
2734 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2735 (sigill_hdlr): Correct insn, insn size.
2736 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2737
737346fa
RO
27382011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2739
2740 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2741 t-slibgcc-dummy.
2742 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2743 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2744 * config/mips/t-iris: Remove.
2745 * config/mips/t-irix6: New file.
2746 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2747
c192cee6
RO
27482011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2749
2750 * Makefile.in (LIB2ADDEHDEP): Remove.
2751 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2752 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2753 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2754 * config/t-darwin (LIB2ADDEHDEP): Remove.
2755 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2756 * config/t-linux (LIB2ADDEHDEP): Remove.
2757
d5828cc7
DN
27582011-06-03 Diego Novillo <dnovillo@google.com>
2759
2760 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2761 (lto_register_var_decl_in_symtab): Likewise.
2762 (lto_register_function_decl_in_symtab): Likewise.
2763 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 2764 logic to uniquify_nodes.
d5828cc7 2765
ee33b5f0
RO
27662011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2767
2768 * config/alpha/t-osf5: Remove.
2769 * config/alpha/t-osf-pthread: Remove.
2770 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2771 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2772
16868d84
JB
27732011-06-03 Julian Brown <julian@codesourcery.com>
2774
2775 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2776 (strongarm1110): Use strongarm tuning.
4d3d7f15 2777 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
2778 * config/arm/arm.c (arm_strongarm_tune): New.
2779 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2780 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2781 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2782 setting, using previous defaults or 1 for Cortex-A5.
2783 (arm_option_override): Set max_insns_skipped from current tuning.
2784
1cec1285
NS
27852011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2786
2787 * doc/install.texi (Options specification): Document --with-specs.
2788
eed55426
RR
27892011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2790
2791 * config/arm/neon.md (orndi3_neon): Actually split it.
2792
d5b6cc25
AO
27932011-06-02 Alexandre Oliva <aoliva@redhat.com>
2794
2795 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2796 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2797
2ba42841
AO
27982011-06-02 Alexandre Oliva <aoliva@redhat.com>
2799
2800 PR debug/47590
2801 * target.def (delay_sched2, delay_vartrack): New.
2802 * doc/tm.texi.in: Update.
2803 * doc/tm.texi: Rebuild.
2804 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2805 * var-tracking.c (gate_handle_var_tracking): Likewise.
2806 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2807 (bfin_flag_var_tracking): Drop.
2808 (output_file_start): Don't save and override flag_var_tracking.
2809 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2810 (bfin_reorg): Test original variables.
2811 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2812 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2813 (ia64_flag_var_tracking): Drop.
2814 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2815 (ia64_file_start): Don't save and override flag_var_tracking.
2816 (ia64_override_options_after_change): Ditto
2817 flag_schedule_insns_after_reload.
2818 (ia64_reorg): Test original variables.
2819 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2820 (picochip_flag_var_tracking): Drop.
2821 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2822 (picochip_option_override): Don't save and override
2823 flag_schedule_insns_after_reload.
2824 (picochip_asm_file_start): Ditto flag_var_tracking.
2825 (picochip_reorg): Test original variables.
2826 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2827 (TARGET_DELAY_VARTRACK): Define.
2828 (spu_var_tracking): New.
2829 (spu_machine_dependent_reorg): Call it.
2830 (asm_file_start): Don't save and override flag_var_tracking.
2831
a700b5f0
KK
28322011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2833
2834 PR target/49163
2835 * config/sh/predicates.md (general_movsrc_operand): Return 0
2836 for memory and memory subreg of which address is an invalid
2837 indexed address for QI and HImode.
2838 (general_movdst_operand): Likewise.
2839
76015c34
EB
28402011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2841
2842 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2843 edges only, when there is a non-local label in the function.
2844 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2845
4e76acd2
UB
28462011-06-02 Uros Bizjak <ubizjak@gmail.com>
2847
2848 * config/i386/constraints.md (Y3): New register constraint.
2849 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2850 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2851 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2852 *sse2_interleave_lowv2df.
2853
288f605f
JB
28542011-06-02 Julian Brown <julian@codesourcery.com>
2855
2856 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2857 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2858 (arm_cortex_a5_tune): New.
2859
7ec70105
JB
28602011-06-02 Julian Brown <julian@codesourcery.com>
2861
153668ec
JB
2862 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2863 * config/arm/arm.c (arm_default_branch_cost): New.
2864 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2865 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2866 (arm_fa726_tune): Set branch_cost field using
2867 arm_default_branch_cost.
2868 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2869 current_tune structure.
2870 * dojump.c (tm_p.h): Include file.
2871
28722011-06-02 Julian Brown <julian@codesourcery.com>
2873
2874 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2875 tuning.
7ec70105
JB
2876 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2877 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2878 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2879 field.
2880 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2881 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2882 (arm_fa726te_tune): Add prefer_constant_pool setting.
2883 (arm_v6t2_tune, arm_cortex_tune): New.
2884 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2885 prefer_constant_pool setting.
2886
aad61732
UB
28872011-06-02 Uros Bizjak <ubizjak@gmail.com>
2888
4e76acd2
UB
2889 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2890 switch statement.
aad61732
UB
2891 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2892 (*movdf_internal) <case 6,7,8>: Ditto.
2893
4e76acd2 2894 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
2895 * config/i386/sse.md (vec_set<mode>_0): Merge with
2896 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2897 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2898 *vec_extractv2di_1_sse.
2899 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2900 and *vec_concatv2di_rex64_sse.
2901
6e588138
SH
29022011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2903
2904 PR target/48807
2905 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2906 of cgraph_local_info for null before attempting to use it.
2907
bc6d3f91
EB
29082011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2909
2910 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2911 (current_function_dynamic_alloc_count): Delete.
2912 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2913 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2914 (expand_builtin_update_setjmp_buf): Remove dead code.
2915 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2916 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2917 support.
2918 * function.c (instantiate_virtual_regs): Likewise.
2919 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2920 for a block with a single abnormal incoming edge.
2921 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 2922 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
2923 * config/sparc/sparc-protos.h (load_got_register): Declare.
2924 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2925 (load_got_register): Make global.
2926 (sparc_frame_pointer_required): Add 'static'.
2927 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2928 (sparc_builtin_setjmp_frame_value): New function.
2929 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2930 (save_stack_nonlocal): New expander.
2931 (restore_stack_nonlocal): Likewise.
2932 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2933 (nonlocal_goto_internal): New insn.
2934 (goto_handler_and_restore): Delete.
2935 (builtin_setjmp_setup): Likewise.
2936 (do_builtin_setjmp_setup): Likewise.
2937 (setjmp): Likewise.
2938 (builtin_setjmp_receiver): New expander.
2939
69282fee
DL
29402011-06-01 David Li <davidxl@google.com>
2941
2942 PR middle-end/49261
2943 * tree-pretty-print.c (dump_function_header): Format cleanup.
2944
e95873dd
KK
29452011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2946
2947 PR target/49238
2948 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2949 needed when original operands are used for msw_skip comparison.
2950
88c15821
JJ
29512011-06-01 Jakub Jelinek <jakub@redhat.com>
2952
2953 PR debug/49250
2954 * var-tracking.c (add_uses, add_stores): Don't call
2955 cselib_subst_to_values on ENTRY_VALUE.
2956
07233947
DN
29572011-06-01 Diego Novillo <dnovillo@google.com>
2958
2959 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2960 output_record_start with LTO_null instead of output_zero.
2961 (lto_output_ts_binfo_tree_pointers): Likewise.
2962 (lto_output_tree): Likewise.
2963 (output_eh_try_list): Likewise.
2964 (output_eh_region): Likewise.
2965 (output_eh_lp): Likewise.
2966 (output_eh_regions): Likewise.
2967 (output_bb): Likewise.
2968 (output_function): Likewise.
2969 (output_unreferenced_globals): Likewise.
2970 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2971 instead of NUM_TREE_CODES.
2972 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2973 (lto_output_int_in_range): Change << to >> when shifting VAL.
2974
4ee3537a
DN
29752011-06-01 Diego Novillo <dnovillo@google.com>
2976
2977 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2978 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2979
02972eaf
RS
29802011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2981
2982 PR target/45074
2983 * optabs.h (valid_multiword_target_p): Declare.
2984 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2985 doing multi-word operations.
2986 * optabs.c (expand_binop): Likewise.
2987 (expand_doubleword_bswap): Likewise.
2988 (expand_absneg_bit): Likewise.
2989 (expand_unop): Likewise.
2990 (expand_copysign_bit): Likewise.
2991 (multiword_target_p): New function.
2992
4d41c2d1
RS
29932011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2994
2995 PR rtl-optimization/48830
2996 PR rtl-optimization/48808
2997 PR rtl-optimization/48792
2998 * reload.c (push_reload): Check contains_reg_of_mode.
2999 * reload1.c (strip_paradoxical_subreg): New function.
3000 (gen_reload_chain_without_interm_reg_p): Use it to handle
3001 paradoxical subregs.
3002 (emit_output_reload_insns, gen_reload): Likewise.
3003
5f57dccb
DL
30042011-06-01 David Li <davidxl@google.com>
3005
3006 * predict.c : Change pass name
3007 * ipa.c: Ditto.
3008 * dce.c: Ditto.
3009 * tree-profile.c: Ditto.
3010 * except.c: Ditto.
3011
ea6cf778
DL
30122011-06-01 David Li <davidxl@google.com>
3013
3014 * tree-pretty-print.c (dump_function_header): New function.
3015 * final.c (rest_of_clean_state): Use header dumper.
3016 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3017 * passes.c (pass_init_dump_file): Use header dumper.
3018
ebdc0d4b
JJ
30192011-06-01 Jakub Jelinek <jakub@redhat.com>
3020
eeeb9b49
JJ
3021 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3022 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3023 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3024 New functions.
3025 (mem_loc_descriptor): Use them.
3026
ebdc0d4b
JJ
3027 * var-tracking.c (create_entry_value): New function.
3028 (vt_add_function_parameter): Use it.
3029
0699e415
RO
30302011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031
3032 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3033 Include <signal.h>, <ucontext.h>.
3034 (sigill_caught): Define.
3035 (sigill_hdlr): New function.
3036 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3037 insns can be executed.
aad61732 3038 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
3039 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3040
ca24c5ad
RO
30412011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3042
3043 * config/t-slibgcc-darwin: Move to ...
aad61732 3044 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
3045 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3046 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3047 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 3048 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
3049 Remove i386/t-crtstuff from tmake_file.
3050 (i[34567]86-*-solaris2*): Remove t-svr4,
3051 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3052 t-slibgcc-dummy.
3053 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3054 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3055 sparc/t-crtfm from tmake_file.
3056 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3057 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3058 Remove extra_parts.
3059 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3060 * config/i386/t-nwld (SHLIB_LINK): Remove.
3061 * config/i386/t-rtems-i386: Rename to ...
3062 * config/i386/t-rtems: ... this.
3063 ($(T)crti.o, $(T)crtn.o): Remove.
3064 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3065 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3066 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3067 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3068 EXTRA_MULTILIB_PARTS): Remove.
3069 * config/sparc/t-sol2-64: Likewise.
3070 * config/sparc/t-sol2: Remove.
3071 * config/sparc/t-crtin: Remove.
3072 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3073 * config/i386/gmon-sol2.c: Remove.
3074 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3075 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3076 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3077 * config/i386/sol2-gc1.asm: Remove.
3078 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3079 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3080 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3081 * config/t-slibgcc-sld: Remove.
3082
a78d13c3
JJ
30832011-06-01 Jakub Jelinek <jakub@redhat.com>
3084
3085 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3086 base_type_for_mode with op_mode instead of mode.
3087
572070ef
PB
30882011-06-01 Paul Brook <paul@cpodesourcery.com>
3089
3090 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3091 Cortex-A15.
3092 * config/arm/arm-tune.md: Regenerate.
3093 * config/arm/arm-tables.opt: Regenerate.
3094 * config/arm/arm.c (FL_DIV): Rename...
3095 (FL_THUMB_DIV): ... to this.
3096 (FL_ARM_DIV): Define.
3097 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3098 (arm_arch_hwdiv): Remove.
3099 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3100 (arm_issue_rate): Add cortexr5.
3101 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3102 __ARM_ARCH_EXT_IDIV__.
3103 (TARGET_IDIV): Define.
3104 (arm_arch_hwdiv): Remove.
3105 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3106 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3107 (divsi3, udivsi3): New patterns.
3108 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3109 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3110
11026b51
MJ
31112011-06-01 Martin Jambor <mjambor@suse.cz>
3112
3113 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3114 * ipa-utils.c (searchc): Set scc_no.
3115
b6156cf2
MJ
31162011-06-01 Martin Jambor <mjambor@suse.cz>
3117
3118 * ipa-utils.c (searchc_env): New field allow_overwritable.
3119 (searchc): do not ignore edges to overwritable nodes if indicated
3120 by env->allow_overwritable.
3121 (ipa_reduced_postorder): Set env.allow_overwritable.
3122
6807da97
RG
31232011-06-01 Richard Guenther <rguenther@suse.de>
3124
3125 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3126 char_type_node.
3127 * lto-streamer.c (lto_record_common_node): Take node pointer,
3128 do not register types.
3129 (lto_preload_common_nodes): Explicitly skip preloading nodes
3130 that differ between frontends.
3131
66bd20e7 31322011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
3133
3134 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3135 NON_FLOAT_REGS.
3136
66bd20e7 31372011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
3138
3139 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3140 parameter value for dump. Dump cost on outermost call only.
3141 (rs6000_memory_move_cost): Dump cost on outermost call only.
3142
7351d8da
JJ
31432011-05-31 Jakub Jelinek <jakub@redhat.com>
3144
ead7c399
JJ
3145 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3146 DW_OP_GNU_convert ops.
3147
509f4495
JJ
3148 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3149 cselib_preserve_constants.
3150 (cselib_lookup_1): If cselib_preserve_constants,
3151 a new VALUE is being created for REG and there is a VALUE for the
3152 same register in wider mode, add another loc with lowpart SUBREG of
3153 the wider VALUE.
3154 (cselib_subst_to_values): Handle ENTRY_VALUE.
3155 * var-tracking.c (replace_expr_with_values): Return NULL for
3156 ENTRY_VALUE too.
3157 * dwarf2out.c (convert_descriptor_to_signed): New function.
3158 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3159 instead of two shifts.
3160 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3161 the right mode if needed.
3162 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3163 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3164 convert_descriptor_to_signed.
3165 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3166 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3167
7351d8da
JJ
3168 PR target/48688
3169 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3170
5cc93ee0
UB
31712011-05-31 Uros Bizjak <ubizjak@gmail.com>
3172
3173 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3174 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3175 (SWI248x): New mode iterator, rename from X87MODEI.
3176 (X87MODEI): Remove mode iterator.
3177 (X87MODEI12): Ditto.
3178 (SSEMODEI24): Ditto.
3179
f0686e78
AO
31802011-05-31 Alexandre Oliva <aoliva@redhat.com>
3181
3182 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3183 * doc/invoke.texi: Document max-vartrack-expr-depth.
3184 * var-tracking.c (EXPR_DEPTH): New.
3185 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3186
f3308413
AO
31872011-05-31 Alexandre Oliva <aoliva@redhat.com>
3188
3189 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3190 * config/i386/sse.md: Add n to negated FMA pattern names.
3191
28c14a04
AO
31922011-05-31 Alexandre Oliva <aoliva@redhat.com>
3193
3194 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3195
70efc82d
AO
31962011-05-31 Alexandre Oliva <aoliva@redhat.com>
3197
5cc93ee0 3198 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 3199
6ba5d856
UB
32002011-05-31 Uros Bizjak <ubizjak@gmail.com>
3201
3202 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3203 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3204
32052011-05-31 Uros Bizjak <ubizjak@gmail.com>
3206
3207 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3208 registers. Penalize F*r->o alternative to prevent partial memory
3209 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3210 CONST_DOUBLE immediates when optimizing function for size. Do not move
3211 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3212 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3213 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3214 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3215 alternatives.
3216 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3217
3218 (fp_register_operand splitters): Use fp_register_operand
3219 constraint. Do not use FP_REG_P in insn condition.
3220 (any_fp_register_operand splitters): Use any_fp_register_operand
3221 constraint. Do not use ANY_FP_REG_P in insn condition.
3222
533c07c5
JH
32232011-05-31 Jan Hubicka <jh@suse.cz>
3224
3225 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3226 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3227 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3228 (lto_output_edge): Use output_enum and var_len_unsigned.
3229 (lto_output_varpool_node): Likewise.
3230 (input_overwrite_node): Do not take resolution parameter;
3231 extract it from a bitpack.
3232 (input_node): Do not read resolution; use input_enum and
3233 var_len_unsigned.
3234 (input_varpool_node): Likewise.
3235 (input_edge): Likewise.
3236 (input_cgraph_1): Likewise.
3237
2611db71
RG
32382011-05-31 Richard Guenther <rguenther@suse.de>
3239
3240 * gimple.c (gimple_register_canonical_type): Do not register
3241 any types via gimple_register_type.
3242
b9e57365
JH
32432011-05-31 Jan Hubicka <jh@suse.cz>
3244
3245 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3246 of thunks.
3247
35979cc2
JJ
32482011-05-31 Jakub Jelinek <jakub@redhat.com>
3249
3250 PR rtl-optimization/49235
3251 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3252 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3253
8f7de592
IR
32542011-05-31 Ira Rosen <ira.rosen@linaro.org>
3255
3256 PR tree-optimization/49093
3257 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3258 data references.
3259
8d8a3bda
DS
32602011-05-31 Dodji Seketeli <dodji@redhat.com>
3261
3262 PR debug/49047
3263 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 3264 for concrete functions containing the code of cloned functions.
8d8a3bda 3265
2e87621c
RG
32662011-05-31 Richard Guenther <rguenther@suse.de>
3267
3268 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3269 to ...
3270 (forward_propagate_into_comparison_1): ... this.
3271 (forward_propagate_comparison): Rename to ...
3272 (forward_propagate_into_comparison): ... this. Split out
3273 real forward propagation code to ...
3274 (forward_propagate_comparison): ... this.
3275 (forward_propagate_into_gimple_cond): Remove looping.
3276 (forward_propagate_into_cond): Likewise.
3277 (simplify_not_neg_expr): Return whether we have done something.
3278 (simplify_gimple_switch): Likewise.
3279 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3280 (ssa_forward_propagate_and_combine): ... this. Re-structure
3281 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 3282 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
3283 (pass_forwprop): Adjust.
3284
5a880d5d
ILT
32852011-05-30 Ian Lance Taylor <iant@google.com>
3286
3287 * godump.c (go_format_type): Correct length of name added to
3288 obstack for anonymous field.
3289
5f133038
KK
32902011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3291
3292 PR target/49186
3293 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3294 part of the second operand is 0.
3295
b17d5426
UB
32962011-05-30 Uros Bizjak <ubizjak@gmail.com>
3297
3298 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3299 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3300 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3301 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 3302 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
3303 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3304 when optimizing function for size. Do not move CONST_DOUBLEs
3305 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
3306 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3307 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
3308 check for ANY_FP_REGNO_P instead.
3309 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3310 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3311 function for speed.
3312 * config/i386/i386.c (ix86_option_override_internal): Do not
3313 set TARGET_INTEGER_DFMODE_MOVES here.
3314
a0cd843f
L
33152011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3316
3317 PR target/49168
aad61732 3318 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 3319
006a5f38
JJ
33202011-05-30 Jakub Jelinek <jakub@redhat.com>
3321
3322 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3323 DW_TAG_rvalue_reference_type even for
3324 -gdwarf-4 -fno-debug-types-section.
3325
6e96f98a
BS
33262011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3327
3328 PR tree-optimization/46728
3329 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3330 (build_and_insert_binop): New.
3331 (gimple_expand_builtin_pow): Reorder args for
3332 build_and_insert_call; use build_and_insert_binop; add more
3333 optimizations for fractional exponents.
b17d5426 3334
4f60111f
NF
33352011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3336
3337 PR bootstrap/49190
3338
3339 Revert:
3340 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3341
3342 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3343 tree_common.
3344 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3345 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3346 TS_BASE instead of TS_COMMON.
3347 * varasm.c (assemble_name): Remove assert.
3348
3fd7879d
RS
33492011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3350
3351 * config.gcc: Keep obselete list sorted.
3352
80060f7a
JJ
33532011-05-30 Jakub Jelinek <jakub@redhat.com>
3354 Eric Botcazou <ebotcazou@adacore.com>
3355
3356 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3357 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3358 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3359 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3360 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3361
17e99cdb
RG
33622011-05-30 Richard Guenther <rguenther@suse.de>
3363
3364 * gimple.c (gimple_types_compatible_p_1): Compare record
3365 and union type members properly.
3366
42b05b6e
RG
33672011-05-30 Richard Guenther <rguenther@suse.de>
3368
3369 PR tree-optimization/49210
6ba5d856
UB
3370 * ipa-split.c (split_function): Care for the case where the call
3371 result is not trivially convertible to the result holding variable.
42b05b6e 3372
f3321158
RG
33732011-05-30 Richard Guenther <rguenther@suse.de>
3374
3375 PR tree-optimization/49218
3376 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3377 overflow occured.
3378
d12d8efe
RG
33792011-05-30 Richard Guenther <rguenther@suse.de>
3380
3381 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3382 New function split out from ...
3383 (forward_propagate_into_gimple_cond): ... here. Adjust.
3384 (forward_propagate_into_cond): Likewise.
3385 (forward_propagate_comparison): Also propagate into
3386 comparisons on assignment RHS. Change return value to
3387 behave similar to forward_propagate_into_cond.
3388 (tree_ssa_forward_propagate_single_use_vars): Handle
3389 strict-overflow warnings properly for forward_propagate_comparison.
3390
df33b41f
RO
33912011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3392
3393 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3394 from plugin linker.
3395 * configure: Regenerate.
3396
69940d4d
IR
33972011-05-30 Ira Rosen <ira.rosen@linaro.org>
3398
3399 PR tree-optimization/49199
3400 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 3401 non-reduction operands are either defined in the loop or by induction.
69940d4d 3402
226c52aa
XDL
34032011-05-29 Xinliang David Li <davidxl@google.com>
3404
3405 * opts-global.c (handle_common_deferred_options): Handle new options.
3406 * passes.c (register_one_dump_file): Call register_pass_name.
3407 (execute_one_pass): Check explicit enable/disable flag.
3408 (passr_hash): New function.
3409 (passr_eq): Ditto.
3410 (register_pass_name): Ditto.
3411 (get_pass_by_name): Ditto.
3412 (pass_hash): Ditto.
3413 (pass_eq): Ditto.
3414 (enable_pass): Ditto.
3415 (disable_pass): Ditto.
3416 (is_pass_explicitly_enabled_or_disabled): Ditto.
3417
491d8eed
UB
34182011-05-29 Uros Bizjak <ubizjak@gmail.com>
3419
3420 * config/i386/i386.md (*movoi_internal_avx): Use
3421 standard_sse_constant_opcode for alternative 0.
3422 (*movti_internal_sse): Ditto.
3423 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3424 alternative 2.
3425 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3426 sselog1 type moves.
3427 (*movsi_internal): Ditto.
3428 (*movdi_internal): Ditto. Add ssecvt type moves.
3429
eb93b31f
EB
34302011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3431
3432 PR target/48830
3433 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3434
3f831b7d
JJ
34352011-05-29 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR rtl-optimization/49095
3438 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3439 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3440
ee3ee488
RS
34412011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3442
3443 PR target/43995
3444 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3445 recurse_p argument. Only follow register copies if it is set,
3446 and prevent mips_find_pic_call_symbol from recursing.
3447 (mips_find_pic_call_symbol): Add a recurse_p argument.
3448 Pass it to mips_pic_call_symbol_from_set.
3449 (mips_annotate_pic_calls): Update accordingly.
3450
65f3dedb
RS
34512011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3452
3453 * emit-rtl.c (try_split): Use a loop to search for
3454 NOTE_INSN_CALL_ARG_LOCATIONs.
3455
61e374ab
RG
34562011-05-29 Richard Guenther <rguenther@suse.de>
3457
3458 PR tree-optimization/49217
3459 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3460
fac009a8
JH
34612011-05-28 Jan Hubicka <jh@suse.cz>
3462
3463 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3464 length.
3465 (string_slot_free): Remove
3466 (create_output_block): Initialize obstack.
3467 (destroy_output_block): Free obstack.
3468 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3469 the string unless it needs to be added into the hash.
3470 (lto_output_string_with_length): Add persistent attribute;
3471 handle NULL strings.
3472 (lto_output_string): Add PERSISTENT parameter.
3473 (output_string_cst, output_identifier): Simplify.
3474 (lto_output_location_bitpack): Update.
3475 (lto_output_builtin_tree): Update.
3476 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
3477 (lto_output_string, lto_output_string_with_length): Remove
3478 declarations; functions are static now.
fac009a8 3479
fa766006
JH
34802011-05-28 Jan Hubicka <jh@suse.cz>
3481
3482 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3483 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3484 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3485 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3486 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3487 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3488 unpack_ts_decl_with_vis_value_fields,
3489 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3490 lto_get_builtin_tree): Use enum and variable length i/o.
3491 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3492 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3493 New functions.
3494 (bp_pack_enum, bp_unpack_enum): New macros.
3495
e092158b
RS
34962011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3497
3498 * genrecog.c: Remove redundant forward declarations.
3499
7ca2afa0
RS
35002011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3501
3502 * config.gcc: Deprecate mips*-*-openbsd*.
3503
a601a53a
RS
35042011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3505
3506 PR bootstrap/49195
3507 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3508 for match_op_dup.
3509
fc64b448
AP
35102011-05-27 Andrew Pinski <pinskia@gmail.com>
3511
3512 PR middle-end/48981
3513 * gengtype.c (vec_prefix_type): New function.
3514 (note_def_vec): Use vec_prefix_type and change the length
3515 attribute to be based on the prefix.
3516 * vec.c: Include coretypes.h before vec.h.
3517 (struct vec_prefix): Remove.
3518 (vec_gc_p_reserve): Change the offsetof to sizeof.
3519 (vec_gc_p_reserve_exact): Likewise.
3520 (vec_heap_p_reserve): Likewise.
3521 (vec_heap_p_reserve_exact): Likewise.
3522 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3523 (vec_stack_p_reserve): Change the offsetof to sizeof.
3524 (vec_stack_p_reserve_exact): Likewise.
3525 * vec.h (struct vec_prefix): New struct definition.
3526 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3527 (VEC_T_GTY(T,B)): Likewise.
3528 (DEF_VEC_FUNC_P(T)): Use prefix field.
3529 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3530 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3531
ba869341
BS
35322011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3533
3534 PR tree-optimization/46728
3535 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3536 (powi_as_mults): Add gimple_set_location.
3537 (build_and_insert_call): New.
3538 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3539 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 3540
d296760d
AM
35412011-05-27 Alexander Monakov <amonakov@ispras.ru>
3542
3543 * doc/contrib.texi: Update copyright years.
3544 (Contributors): Add Zdenek Sojka.
3545
38e01f9e
NF
35462011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3547
3548 * c-decl.c (c_push_function_context): Copy the current statement
3549 list stack.
3550 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3551 (finish_struct): Call building_stmt_list_p instead of checking
3552 cur_stmt_list.
3553 * c-parser.c (c_parser_postfix_expression): Likewise.
3554 * c-typeck.c (c_end_compound_stmt): Likewise.
3555 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3556 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3557 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3558 (free_stmt_list): Likewise.
3559 * tree.h (struct tree_statement_list): Include typed_tree instead
3560 of tree_common.
3561 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3562 as TS_TYPED instead of TS_COMMON.
3563
8950516e 35642011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 3565 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
3566
3567 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3568 (HAVE_AS_IX86_TLSGDPTL): Define.
3569 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3570 (HAVE_AS_IX86_TLSLDMPLT): Define.
3571 * configure: Regenerate.
3572 * config.in: Regenerate.
3573 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3574 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3575 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3576 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3577 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3578 @tlsldmplt or @plt.
3579 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3580
b0bd15f7
BS
35812011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3582
3583 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3584 and reverse_cond.
3585 (INSN_COND, INSN_REVERSE_COND): New macros.
3586 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3587 once.
3588 (sched_get_condition_with_rev): Cache the results, and look them up
3589 if possible.
3590 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3591 are clobbered by the current insn.
3592 * target.def (exposed_pipline): New sched data hook.
3593 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3594 * doc/tm.texi: Regenerate.
3595
fa65a9cf
BS
35962011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3597
3598 PR tree-optimization/49170
3599 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3600 sincos or cexp.
b0bd15f7 3601
c2299dfe
RG
36022011-05-27 Richard Guenther <rguenther@suse.de>
3603
3604 PR middle-end/49189
3605 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3606 of comparisons.
3607
a95b23b4
BS
36082011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3609
3610 * haifa-sched.c (sched_scan_info): Remove.
3611 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3612 with NULL args.
3613 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3614 Remove functions.
3615 (sched_scan): Remove.
3616 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3617 static. All callers changed.
3618 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3619 static. All callers changed.
3620 (sched_init_luids): Remove all arguments except the first. All
3621 callers changed. Don't use sched_scan.
3622 (haifa_init_h_i_d): Likewise.
3623 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3624 manually rather than using sched_init_luids. Likewise with
3625 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3626 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3627 rather than sched_init_luids with NULL args.
3628 * sel-sched-ir.c (new_insns): Remove variable.
3629 (sched_scan): New static function, previously in haifa-sched.c. Remove
3630 all arguments but the first two; all callers changed.
3631 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3632 rather than sched_init_luids.
3633 (sel_init_bbs): Remove second argument. All callers changed.
3634 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3635 with NULL arguments.
3636 (create_insn_rtx_from_pattern): Likewise.
3637 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3638 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3639 (sched_init_insn_luid, sched_extend_luids): Declare.
3640 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3641 declarations.
3642
f8f972fc
RB
36432011-05-27 Richard Guenther <rguenther@suse.de>
3644
3645 PR middle-end/49177
3646 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3647 A CMP B ? (T) true : (T) false for non-integral types T again.
3648
51a9ed47
JH
36492011-05-27 Jan Hubicka <jh@suse.cz>
3650
3651 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3652 so 0 means NULL string.
3653 (lto_output_string_with_length): ... here.
f8f972fc
RB
3654 (lto_output_string, output_string_cst, output_identifier): Update
3655 handling of NULL strings.
51a9ed47
JH
3656 (lto_output_location_bitpack): New function.
3657 (lto_output_location): Use it.
3658 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
3659 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3660 len values.
3661 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3662 values by 1.
491d8eed 3663 (input_string_internal): ... here;
f8f972fc
RB
3664 (input_string_cst, input_identifier, lto_input_string): Update handling
3665 of NULL strings.
51a9ed47
JH
3666 (lto_input_location_bitpack): New function
3667 (lto_input_location): Use it.
f8f972fc
RB
3668 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3669 values.
51a9ed47
JH
3670 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3671 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3672 (bp_pack_value): Sanity check the value range.
3673 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3674 New functions.
3675 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3676 New functions.
3677
66bd20e7 36782011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
3679
3680 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3681 call_arg_location instructions down the floor.
3682
574e418a
VM
36832011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3684
3685 PR rtl-optimization/49154
3686 * ira.c (setup_pressure_classes): Process class without sublcasses
3687 as a candidate for pressure classes.
3688
6a1a787e
RS
36892011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3690
3691 PR rtl-optimization/48575
3692 * genrecog.c (position_type): New enum.
3693 (position): New structure.
3694 (decision): Use position structure instead of a string.
3695 (root_pos, peep2_insn_pos_list): New variables.
3696 (next_position, compare_positions): New functions.
3697 (new_decision): Use position structures instead of strings.
3698 (maybe_both_true): Likewise.
3699 (change_state): Likewise.
3700 (write_tree): Likewise.
3701 (make_insn_sequence): Likewise.
3702
92e948a8
NF
37032011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3704
3705 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3706 TS_BASE instead of TS_COMMON.
3707 (find_decls_types_r): Check for TS_TYPED structure before looking at
3708 TREE_TYPE.
3709 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3710 Add chain field.
3711 (BLOCK_CHAIN): Use new chain field.
3712
66bd20e7 37132011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
3714
3715 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3716 moves expensive on Power7 also.
3717
1f498652
RG
37182011-05-26 Richard Guenther <rguenther@suse.de>
3719
3720 * fold-const.c (fold_unary_loc): Remove bogus code.
3721
a2fc3e63
NF
37222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3723
3724 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3725 tree_common.
3726 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3727 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3728 TS_BASE instead of TS_COMMON.
3729 * varasm.c (assemble_name): Remove assert.
3730
d11bf18f
BS
37312011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3732
3733 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3734 substituted first.
3735 * libgcc-std.ver: Delete file.
3736
ac8e1875
RG
37372011-05-26 Richard Guenther <rguenther@suse.de>
3738
3739 PR tree-optimization/48702
3740 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3741 only when we know the base address is within bounds.
3742 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3743 assume the base address of TARGET_MEM_REFs is in bounds.
3744
7e32e652
RO
37452011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3746
3747 PR target/49099
3748 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3749 declaration in TARGET_SOLARIS.
3750
66bd20e7 37512011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
3752
3753 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 3754 The instruction is then expanded explicitly.
43660e0b
HS
3755 (supported_compare): Callable instruction.
3756 (compare): Likewise.
3757
1537737f
JJ
37582011-05-26 Jakub Jelinek <jakub@redhat.com>
3759
3760 PR c++/49165
3761 * gimplify.c (shortcut_cond_r): Don't special case
3762 COND_EXPRs if they have void type on one of their arms.
3763
7b1ac803
BS
37642011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3765
3766 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3767 to reduce duplication, and to achieve a slightly more logical order
3768 of operations.
3769
1aa9438f
JJ
37702011-05-26 Jakub Jelinek <jakub@redhat.com>
3771
3772 PR tree-optimization/49161
3773 * tree-vrp.c (struct case_info): New type.
3774 (compare_case_labels): Sort case_info structs instead of
3775 trees, and not primarily by CASE_LABEL uids but by
3776 label_for_block indexes.
3777 (find_switch_asserts): Put case labels into struct case_info
3778 array instead of TREE_VEC, adjust sorting, compare label_for_block
3779 values instead of CASE_LABELs.
3780
50fed7bf
RR
37812011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3782
3783 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3784 ("orndi3_neon"): Likewise.
3785 ("bic<mode>3_neon"): Likewise.
3786
48df3fa6
IR
37872011-05-26 Ira Rosen <ira.rosen@linaro.org>
3788
3789 PR tree-optimization/49038
3790 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3791 Ensure at least one epilogue iteration if required by data
3792 accesses with gaps.
3793 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3794 to mark loops that require peeling for gaps.
3795 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3796 (vect_get_known_peeling_cost): Take peeling for gaps into
3797 account.
3798 (vect_transform_loop): Generate epilogue if required by data
3799 access with gaps.
3800 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3801 loop as requiring an epilogue if there are gaps in the end of
3802 the strided group.
3803
53febcba
ILT
38042011-05-25 Ian Lance Taylor <iant@google.com>
3805
3806 * godump.c (go_format_type): Output the first field with a usable
3807 Go type, if any.
3808
dbbc4d4c
ILT
38092011-05-25 Ian Lance Taylor <iant@google.com>
3810
3811 * godump.c (go_format_type): Check for invalid type names, pointer
3812 target types, and struct field types.
3813
f03a5402
JM
38142011-05-25 Jason Merrill <jason@redhat.com>
3815
3816 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3817
c497c412
UB
38182011-05-25 Uros Bizjak <ubizjak@gmail.com>
3819
3820 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3821
e470affe
L
38222011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3823
3824 * config/i386/i386.md (*movqi_extv_1)): Put back
3825 "register_operand" check in "type" calculation.
3826 (*movqi_extzv_2): Likewise.
3827
6c81b2bc
L
38282011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3829
c497c412 3830 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 3831
0c007eb2
BS
38322011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3833
3834 PR bootstrap/49160
3835 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3836 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3837 __divxc3, __divtc3): Wrap definitions in #ifndef.
3838
521ca78e
L
38392011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3840
3841 PR target/49142
3842 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3843 "register_operand" check and replace q_regs_operand with
3844 QIreg_operand in "type" calculation.
3845 (*movqi_extv_1): Likewise.
3846 (*movqi_extzv_2_rex64): Likewise.
3847 (*movqi_extzv_2): Likewise.
3848
3849 * config/i386/predicates.md (QIreg_operand): New.
3850
29f8b844
RG
38512011-05-25 Richard Guenther <rguenther@suse.de>
3852
3853 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3854 type-based offset disambiguation, streamline MEM_REF and
3855 TARGET_MEM_REF handling.
3856
74838de3
L
38572011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3858
3859 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3860 (bdesc_special_args): Add pause intrinsic.
3861
3862 * config/i386/i386.md (UNSPEC_PAUSE): New.
3863 (pause): Likewise.
3864 (*pause): Likewise.
3865 * config/i386/ia32intrin.h (__pause): Likewise.
3866
3867 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3868 pause intrinsic.
3869
d24ad7d6
BS
38702011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3871
3872 PR tree-optimization/46728
3873 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3874 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 3875
d9f8303f
NF
38762011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3877
3878 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3879 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3880 instead of TS_COMMON.
3881
cdbf4541
BS
38822011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3883
3884 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3885 LIBGCC2_GNU_PREFIX is defined.
3886 (__N): New macro.
3887 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3888 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3889 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3890 __clz_tab): Define using __N.
3891 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3892 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3893 * target.def (libfunc_gnu_prefix): New hook.
3894 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3895 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3896 * doc/tm.texi: Regenerate.
3897 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3898 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3899 account.
3900 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3901 (init_optabs): Likewise for the bswap libfuncs.
3902 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3903 and divide.
3904 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3905 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3906 * libgcc-std.ver: Remove.
3907 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3908 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3909 libgcc-std.ver.
3910 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3911 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3912 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3913 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3914 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3915 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3916 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3917 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3918 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3919 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3920
f242c0a5
JH
39212011-05-25 Jan Hubicka <jh@suse.cz>
3922
3923 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3924 (lto_output_tree): Use output_record_start.
3925 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3926 (lto_get_pickled_tree): Use input_record_start.
3927 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3928 (lto_value_range_error): New function.
3929 * lto-streamer.h (lto_value_range_error): Declare.
3930 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3931 (lto_output_enum, lto_input_enum): New macros.
3932
a11e0df4
EB
39332011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3934
3935 * common.opt (flag_stack_usage_info): New variable.
3936 (-Wstack-usage): New option.
3937 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3938 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3939 <OPT_fstack_usage>: Likewise.
3940 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3941 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3942 of flag_stack_usage.
3943 (emit_library_call_value_1): Likewise.
3944 * explow.c (allocate_dynamic_stack_space): Likewise.
3945 * function.c (instantiate_virtual_regs ): Likewise.
3946 (prepare_function_start): Likewise.
3947 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3948 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3949 * config/arm/arm.c (arm_expand_prologue): Likewise.
3950 (thumb1_expand_prologue): Likewise.
3951 * config/avr/avr.c (expand_prologue): Likewise.
3952 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3953 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3954 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3955 * config/mips/mips.c (mips_expand_prologue): Likewise.
3956 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3957 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3958 * config/s390/s390.c (s390_emit_prologue): Likewise.
3959 * config/sh/sh.c (sh_expand_prologue): Likewise.
3960 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3961 * config/spu/spu.c (spu_expand_prologue): Likewise.
3962
e7cfe241
RG
39632011-05-25 Richard Guenther <rguenther@suse.de>
3964
3965 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3966 (gimple_canonical_types_compatible_p): Likewise.
3967
c5235f4c
JH
39682011-05-25 Jan Hubicka <jh@suse.cz>
3969
3970 PR middle-end/49062
3971 * ipa.c (function_and_variable_visibility): Only add to same
3972 comdat group list if DECL_ONE_ONLY.
3973
8242a0f6
AB
39742011-05-25 Andrey Belevantsev <abel@ispras.ru>
3975
3976 PR rtl-optimization/49014
3977 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3978
642a011d
JJ
39792011-05-25 Jakub Jelinek <jakub@redhat.com>
3980
3981 PR target/49128
3982 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3983
30a435d8
VM
39842011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3985
3986 PR rtl-optimization/48757
3987 * ira-build.c (loop_with_eh_edge_p): Rename to
3988 loop_with_complex_edge_p, check edges on complexity, make function
3989 conditional.
3990 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3991 conditional.
3992
24d1bbc7
EB
39932011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3994
3995 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3996 force flag_ira_share_save_slots to 0.
3997
65773087
EB
39982011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3999
4000 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4001 (vt_initialize): Set PROLOGUE_BB unconditionally.
4002 Add block comment about CFA_BASE_RTX machinery.
4003 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4004 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4005
4e26ba90
NP
40062011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4007
4008 PR objc/48187
4009 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4010 parsing of syntax error in ObjC instance variable lists. In
4011 particular, avoid an infinite loop if there is a stray ']'.
4012 Updated error message.
4013
936fd13c
ILT
40142011-05-24 Ian Lance Taylor <iant@google.com>
4015
4016 * godump.c (go_define): Don't accept a string immediately after
4017 another operand.
4018
f17333e3
ILT
40192011-05-24 Ian Lance Taylor <iant@google.com>
4020
4021 * godump.c (struct godump_container): Add invalid_hash field.
4022 (go_format_type): Return false if type is found in invalid_hash.
4023 (go_output_typedef): Add invalid type to invalid_hash.
4024 (go_finish): Create and delete invalid_hash.
4025
d24ad7d6 40262011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 4027
78be79d5
BS
4028 PR tree-optimization/46728
4029 * tree-ssa-math-opts.c (powi_table): New.
4030 (powi_lookup_cost): New.
4031 (powi_cost): New.
4032 (powi_as_mults_1): New.
4033 (powi_as_mults): New.
4034 (gimple_expand_builtin_powi): New.
4035 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4036 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 4037
caee412b
RO
40382011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4039
4040 PR target/3746
4041 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4042 mips-tdump native.
4043 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4044 * mips-tdump.c: Likewise.
4045
5eed4f27
L
40462011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4047
4048 PR target/49128
4049 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4050 add -mno-XXX. Handle FMA.
4051
8c5fdaae
VM
40522011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4053
4054 PR rtl-optimization/48633
4055 * ira-build.c (loop_with_eh_edge_p): New function.
4056 (mark_loops_for_removal): Use it.
4057
40582011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
4059
4060 PR rtl-optimization/48971
4061 * ira.c (setup_pressure_classes): Don't check register move cost
4062 for classes with one registers. Don't add pressure class if there
4063 is a pressure class with the same available hard registers.
4064 Check contains_reg_of_mode. Fix a typo in collecting
4065 temp_hard_regset. Ignore hard registers not belonging to a class.
4066
df1f7315
UB
40672011-05-24 Uros Bizjak <ubizjak@gmail.com>
4068
4069 PR target/49133
4070 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4071
ee0cb37c
EB
40722011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4073 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4074
4075 PR gcov-profile/48845
4076 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4077
6a20ce76
RG
40782011-05-24 Richard Guenther <rguenther@suse.de>
4079
4080 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4081 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4082 (gimple_types_compatible_p_1): Adjust.
4083 (iterative_hash_canonical_type): Do not bother about complete vs.
4084 incomplete types.
4085 (gimple_canonical_types_compatible_p): Likewise.
4086
2fcb858c
RO
40872011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4088
4089 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4090
96d91dcf
RG
40912011-05-24 Richard Guenther <rguenther@suse.de>
4092
4093 PR bootstrap/49078
4094 * gimple.c (gimple_register_canonical_type): Revert
4095 previous change.
4096 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4097 does not for a tree for the case where it matters. Cache
4098 pointer-type alias-sets.
4099
1ed1641d
JM
41002011-05-24 Joseph Myers <joseph@codesourcery.com>
4101
4102 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4103 (OBJS): Remove options.o, opts-common.o and prefix.o.
4104 (OBJS-libcommon-target): New.
4105 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4106 (BACKEND): Include libcommon-target.a.
4107 (MOSTLYCLEANFILES): Include libcommon-target.a.
4108 (libcommon-target.a): New.
4109 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4110 prefix.o.
4111
57dfdff0
JM
41122011-05-23 Joseph Myers <joseph@codesourcery.com>
4113
4114 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4115 parts of output shared with the driver.
4116 * optc-gen.awk: Don't generate parts of output not shared with the
4117 driver.
4118 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4119 * doc/options.texi (SourcerInclude): Mention options-save.c.
4120 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4121 (OBJS): Add options-save.o.
4122 (options-save.c, options-save.o): New.
4123 (options.o): Update dependencies.
4124 (gcc-options.o): Remove.
4125 (mostlyclean): Remove options-save.c.
4126
0e0d82a7
JJ
41272011-05-23 Jakub Jelinek <jakub@redhat.com>
4128
9166988f
JJ
4129 PR debug/49032
4130 * dbxout.c: Include cgraph.h.
4131 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4132 and without value expr, return NULL if no varpool node exists for
4133 it or if it is not needed.
4134 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4135
0e0d82a7
JJ
4136 PR c/49120
4137 * c-decl.c (start_decl): Convert expr to void_type_node.
4138
65712d5c
RS
41392011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4140
4141 PR rtl-optimization/48826
4142 * emit-rtl.c (try_split): When splitting a call that is followed
4143 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4144
9025085e
JJ
41452011-05-23 Jakub Jelinek <jakub@redhat.com>
4146
4147 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4148 parameters passed in memory prefer using DECL_INCOMING_RTL over
4149 the pseudos it will be copied into.
4150
34a061be
L
41512011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4152
4153 PR target/47315
4154 * config/i386/i386.c (ix86_option_override_internal): Save the
4155 initial options after checking vzeroupper.
4156
c375a3a4
DL
41572011-05-23 David Li <davidxl@google.com>
4158
4159 PR tree-optimization/48988
4160 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4161 Initialize has_valid_pred for each pred chain.
4162
e1caba18
RG
41632011-05-23 Richard Guenther <rguenther@suse.de>
4164
4165 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4166 (iterative_hash_gimple_type): Always hash type names.
4167
dde05067
NF
41682011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4169
4170 * c-typeck.c (build_function_call_vec): Tweak call to
4171 check_function_arguments.
4172
094f6ab3
RG
41732011-05-23 Richard Guenther <rguenther@suse.de>
4174
4175 PR tree-optimization/49115
4176 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4177 is not necessarily carried out, do not claim it kills the ref.
4178 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4179
9a9822e1
RG
41802011-05-23 Richard Guenther <rguenther@suse.de>
4181
4182 PR middle-end/15419
4183 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4184 what pointer types we accept for folding.
4185
c8028650
RO
41862011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4187
4188 * gthr-gnat.c: Remove.
4189 * gthr-gnat.h: Remove.
4190 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4191 * config/t-freebsd (LIB2ADDEH): Likewise.
4192 * config/t-linux (LIB2ADDEH): Likewise.
4193 * config/t-sol2 (LIB2ADDEH): Likewise.
4194 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4195 * configure.ac (target_thread_file): Remove gnat handling.
4196 * configure: Regenerate.
4197 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4198
15882fe9
TG
41992011-05-23 Tristan Gingold <gingold@adacore.com>
4200 Eric Botcazou <ebotcazou@adacore.com>
4201
4202 * gcov.c (create_file_names): If no object directory is specified,
4203 keep the directory of the file.
4204
da90c957
RO
42052011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4206
4207 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4208 * configure: Regenerate.
4209
7bba408b
JJ
42102011-05-23 Jakub Jelinek <jakub@redhat.com>
4211
4212 PR middle-end/48973
4213 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4214 failed and the comparison has a single bit signed type, use
4215 constm1_rtx instead of const1_rtx for true value.
4216 (do_store_flag): If ops->type is single bit signed type, disable
4217 signel bit test optimization and pass -1 instead of 1 as last
4218 parameter to emit_store_flag_force.
4219
bc69f7ff
TV
42202011-05-23 Tom de Vries <tom@codesourcery.com>
4221
4222 PR target/45098
4223 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4224 function.
4225 (infer_loop_bounds_from_undefined): Use new function.
4226
29cedf8e
RS
42272011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4228
4229 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4230 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4231 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4232 and -O0 otherwise.
4233 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4234
afe8b6ec
EB
42352011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4236
4237 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4238 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4239 returns true.
4240
872dab53
RS
42412011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4242
4243 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4244
145f6c5b
EB
42452011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4246
4247 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4248 UNSPEC_MOVE_PIC pattern.
4249
8ac79835
EB
42502011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4251
4252 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4253 (sparc-*-rtems*): Likewise.
4254 (sparc64-*-elf*): Likewise.
4255 (sparc64-*-rtems*): Likewise.
4256 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4257 * config/sparc/t-crtin: New file.
4258 * config/sparc/t-sol2 (crti.o): Delete rule.
4259 (crtn.o): Likewise.
4260 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4261 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4262 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4263 (ENDFILE_SPEC): Add crtn.o.
4264
5fb43dd8
TV
42652011-05-22 Tom de Vries <tom@codesourcery.com>
4266
4267 PR middle-end/48689
4268 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4269 CODE_CONTAINS_STRUCT (TS_COMMON).
4270
ccb1b17b
JJ
42712011-05-22 Jakub Jelinek <jakub@redhat.com>
4272
4273 PR middle-end/49029
4274 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4275 only after deciding which mode to use.
4276
50ad7db2
TV
42772011-05-22 Tom de Vries <tom@codesourcery.com>
4278
4279 PR target/45098
dc0a3366 4280 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
4281 for call to get_shiftadd_cost.
4282
ef230b38
UB
42832011-05-22 Uros Bizjak <ubizjak@gmail.com>
4284
4285 PR target/49104
4286 * config/i386/cpuid.h (bit_MMXEXT): New define.
4287
15f072f9
NC
42882011-05-22 Nick Clifton <nickc@redhat.com>
4289
4290 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4291 initialisation of non-existant args[2] element. Use args[] array
4292 not arg[] array to pass arguments to build_function_type_list.
4293
e38fdc94
IR
42942011-05-22 Ira Rosen <ira.rosen@linaro.org>
4295
4296 PR tree-optimization/49087
ef230b38 4297 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 4298
5b018c65
JM
42992011-05-21 Jason Merrill <jason@redhat.com>
4300
4301 PR c++/49092
4302 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4303 static storage duration.
4304
abd9a770
EB
43052011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4306
4307 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4308 frame pointer.
4309
bd9a3248
EB
43102011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4311
4312 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4313 false if there are call-saved registers here...
4314 (sparc_can_use_return_insn_p): ...but here instead.
4315 (save_or_restore_regs): Fix thinko.
4316 (sparc_expand_prologue): Use current_function_is_leaf.
4317 (sparc_frame_pointer_required): Likewise.
4318
a5dfec9a
NC
43192011-05-21 Nick Clifton <nickc@redhat.com>
4320
4321 PR target/49098
4322 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4323
555c3771
NP
43242011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4325
4326 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4327 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4328
86fa5de4
JM
43292011-05-21 Joseph Myers <joseph@codesourcery.com>
4330
4331 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4332 * optc-gen.awk: Move common code to opt-read.awk.
4333 * opth-gen.awk: Likewise.
ef230b38 4334 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 4335
bce33ab2
NF
43362011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4337
4338 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4339
e6450c11
TV
43402011-05-20 Tom de Vries <tom@codesourcery.com>
4341
4342 PR target/45098
4343 * tree-ssa-loop-ivopts.c: Include expmed.h.
4344 (get_shiftadd_cost): New function.
4345 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4346
0e8b84ec
JJ
43472011-05-20 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR bootstrap/49086
4350 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4351 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4352
946bdf67
JM
43532011-05-20 Joseph Myers <joseph@codesourcery.com>
4354
4355 * Makefile.in: Update comment referring to $(OBJS-common).
4356
c53aafdf
ILT
43572011-05-20 Ian Lance Taylor <iant@google.com>
4358
4359 * godump.c (go_output_typedef): Put enum constants in the macro
4360 hash table to avoid duplicate Go const definitions.
4361
2691e6d7
JM
43622011-05-20 Joseph Myers <joseph@codesourcery.com>
4363
4364 * Makefile.in (LIBDEPS): Add libcommon.a.
4365 (LIBS): Likewise.
4366 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4367 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4368 pretty-print.o and version.o.
4369 (OBJS-libcommon): New.
4370 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4371 (BACKEND): Add libcommon.a.
4372 (MOSTLYCLEANFILES): Likewise.
4373 (libcommon.a): New.
4374 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4375 (cpp$(exeext)): Likewise.
4376 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4377 pretty-print.o and input.o.
4378 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4379 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4380 (errors.o): Remove.
4381 (mips-tfile): Don't explicitly use version.o.
4382 (mips-tdump): Likewise.
4383 (gcov.o): Depend on $(DIAGNOSTIC_H).
4384 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4385 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4386 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4387 * gcov-dump.c: Include intl.h and diagnostic.h.
4388 (main): Initialize diagnostics.
4389 * gcov.c: Include diagnostic.h.
4390 (fnotice): Remove.
4391 (main): Initialize diagnostics.
4392 * lto-wrapper.c: Include diagnostic.h.
4393 (main): Initialize diagnostics.
4394
252b3e8c
MM
43952011-05-20 Michael Matz <matz@suse.de>
4396
4397 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4398
2ee36ba6
MM
43992011-05-20 Michael Matz <matz@suse.de>
4400 Richard Guenther <rguenther@suse.de>
4401
4402 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4403 use lto_streamer_cache_append directly instead of returning a VEC.
4404 (preload_common_node): Remove.
4405 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4406 track seen nodes.
4407 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4408
90ff582f
RG
44092011-05-20 Richard Guenther <rguenther@suse.de>
4410
4411 PR tree-optimization/49079
4412 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4413 MEM_REFs correctly for the trailing array access detection.
4414 Special case constants the same way as decls for overall size
4415 constraining.
4416
3cda91d8
UB
44172011-05-20 Uros Bizjak <ubizjak@gmail.com>
4418
4419 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4420 argument expansion.
4421
6c66f733
JJ
44222011-05-20 Jakub Jelinek <jakub@redhat.com>
4423
4424 PR tree-optimization/49073
3cda91d8
UB
4425 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4426 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
4427 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4428
0ea80a16
RG
44292011-05-20 Richard Guenther <rguenther@suse.de>
4430
4431 PR middle-end/48849
4432 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4433 of pointer types the same way the middle-end does.
4434
fb291a1e
RG
44352011-05-20 Richard Guenther <rguenther@suse.de>
4436
3cda91d8
UB
4437 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4438 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 4439
37cb25ed
QN
44402011-05-19 Quentin Neill <quentin.neill@amd.com>
4441
4442 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4443 (fma4_fmaddsub): Likewise
4444
a30726a4
JH
44452011-05-19 Jan Hubicka <jh@suse.cz>
4446
4447 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4448 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4449 (type_pair_cache): New static var.
4450 (lookup_type_pair): Use fixed sized custom hash; make inline.
4451 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4452 calls of lookup_type_pair.
4453 (print_gimple_types_stats): Remove cache stats.
4454 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4455 and gtc_ob.
4456
0955cf61
UB
44572011-05-19 Uros Bizjak <ubizjak@gmail.com>
4458
4459 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4460 when TARGET_RDRND is active.
4461 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4462 Generate dummy SImode target register when target is NULL.
4463
12d844c8
JM
44642011-05-19 Joseph Myers <joseph@codesourcery.com>
4465
4466 * config/arm/arm-fpus.def: New.
4467 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4468 arm-fpus.def.
4469 * config/arm/arm-tables.opt: Regenerate.
4470 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4471 (arm_option_override): Don't decode FPU name to string here.
4472 * config/arm/arm.opt (mfpu=): Use Enum.
4473 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4474 Update dependencies.
4475
9e350e99
JM
44762011-05-19 Joseph Myers <joseph@codesourcery.com>
4477
4478 * collect2.c: Include diagnostic.h.
4479 (fatal_perror, fatal, error, fancy_abort): Remove.
4480 (main): Set progname. Call xmalloc_set_program_name and
4481 diagnostic_initialize.
4482 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4483 scan_libraries, resolve_lib_name): Call fatal_error instead of
4484 fatal and fatal_perror.
4485 * collect2.h (error, fatal, fatal_perror): Don't declare.
4486 * tlink.c: Include diagnostic-core.h.
4487 (recompile_files): Call fatal_error instead of fatal_perror.
4488 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4489 pretty-print.o and input.o.
4490 (collect2.o, tlink.o): Update dependencies.
4491
86ff4081
RO
44922011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4493
4494 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4495
2ca48caa
RO
44962011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4497
4498 PR target/40483
4499 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4500 COMDAT group syntax, both SPARC and x86 variants.
4501 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4502 * configure: Regenerate.
4503 * config/sol2.h (TARGET_SOLARIS): Define.
4504 (PUSHSECTION_FORMAT): Remove.
4505 (SECTION_NAME_FORMAT): Define.
4506 * config/sol2.c: Include hashtab.h.
4507 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4508 expansion, using SECTION_NAME_FORMAT.
4509 (solaris_comdat_htab): New variable.
4510 (struct comdat_entry): Define.
4511 (comdat_hash): New function.
4512 (comdat_eq): New function.
4513 (solaris_elf_asm_comdat_section): New function.
4514 (solaris_define_comdat_signature): New function.
4515 (solaris_code_end): New function.
4516 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4517 (solaris_code_end): Declare.
4518 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4519 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4520 solaris_code_end.
4521 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4522 Remove ATTRIBUTE_UNUSED.
4523 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4524 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 4525 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
4526 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4527 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4528 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4529 (PUSHSECTION_FORMAT): Remove.
4530 (SECTION_NAME_FORMAT): Redefine.
4531
da5fb469
KT
45322011-05-19 Kai Tietz <ktietz@redhat.com>
4533
4534 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4535 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4536 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4537
1651e703 45382011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
4539 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4540
4541 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4542
e497b9bd
RG
45432011-05-19 Richard Guenther <rguenther@suse.de>
4544
4545 PR middle-end/48985
4546 * tree-object-size.c (addr_object_size): If the pointed-to
4547 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4548
31b3ca64
RG
45492011-05-19 Richard Guenther <rguenther@suse.de>
4550
4551 * gimple.c (gimple_types_compatible_p_1): Compare names of
4552 the types themselves.
4553 (iterative_hash_gimple_type): And hash them that way.
4554 (gimple_register_type_1): If we register a main variant properly
4555 initialize the leader to ourselves.
4556
bb8d292d
TV
45572011-05-19 Tom de Vries <tom@codesourcery.com>
4558
4559 PR target/45098
4560 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4561 get_loop_invariant_expr_id.
4562 (get_loop_invariant_expr_id): Use get_expr_id.
4563 (parm_decl_cost): New function.
4564 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4565 Improve bound cost estimation. Use different inv_expr_id for elim and
4566 express cases.
4567
a53c5024
TV
45682011-05-19 Tom de Vries <tom@codesourcery.com>
4569
4570 PR target/45098
4571 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4572 cost_base.cost == 0.
4573
31f9eb59
L
45742011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4575
4576 PR target/49002
66bd20e7
EB
4577 * config/i386/sse.md
4578 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4579 load cast.
31f9eb59 4580
681056ae
JJ
45812011-05-18 Jakub Jelinek <jakub@redhat.com>
4582
4583 PR tree-optimization/49039
4584 * tree-vrp.c (extract_range_from_binary_expr): For
4585 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4586 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4587
b5ee6752
TV
45882011-05-18 Tom de Vries <tom@codesourcery.com>
4589
4590 PR target/45098
4591 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4592
0bda47a3
UB
45932011-05-18 Uros Bizjak <ubizjak@gmail.com>
4594
4595 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4596 (*tls_global_dynamic_64): Ditto.
4597 (*tls_local_dynamic_base_32_gnu): Ditto.
4598 (*tls_local_dynamic_base_64): Ditto.
4599 (tls_initial_exec_64_sun): Ditto.
4600
033b0805
SH
46012011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4602
4603 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4604 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4605 bf592-none.
4606 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4607 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4608 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4609 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 4610 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
4611 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4612 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4613
ba163417
JM
46142011-05-18 Joseph Myers <joseph@codesourcery.com>
4615
4616 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 4617 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
4618 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4619 target_thread_pointer, arm_structure_size_boundary, struct
4620 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4621 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
4622 (arm_option_override) Don't process most enumerated option values here.
4623 Don't process target_fpe_name here. Work with integer not string for
4624 structure size boundary; use separate diagnostics for each case.
ba163417
JM
4625 * config/arm/arm.h (enum float_abi_type, enum
4626 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4627 to arm-opts.h.
4628 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4629 arm_structure_size_boundary): Remove.
4630 * config/arm/arm.opt (mabi=): Use Enum and Init.
4631 (arm_abi_type): New Enum and EnumValue entries.
4632 (mfloat-abi=): Use Enum and Init.
4633 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 4634 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
4635 (mfp16-format=): Use Enum and Init.
4636 (arm_fp16_format_type): New Enum and EnumValue entries.
4637 (mstructure-size-boundary=): Use UInteger and Init.
4638 (mtp=): Use Enum and Init.
4639 (arm_tp_type): New Enum and EnumValue entries.
4640
179184e3
RG
46412011-05-18 Richard Guenther <rguenther@suse.de>
4642
4643 PR tree-optimization/49018
4644 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4645 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4646 gimple_has_side_effects.
4647
93b2a207
RG
46482011-05-18 Richard Guenther <rguenther@suse.de>
4649
4650 * gimple.c (gimple_register_type_1): New function, split out from ...
4651 (gimple_register_type): ... here. Avoid infinite recursion.
4652
b010117a
IR
46532011-05-18 Ira Rosen <ira.rosen@linaro.org>
4654
4655 PR tree-optimization/41881
4656 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4657 reduction_chains along with a macro for its access.
4658 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4659 (destroy_loop_vec_info): Free reduction chains.
4660 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4661 (vect_is_slp_reduction): New function.
4662 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4663 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4664 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4665 definition types for reduction chains.
4666 (vect_supported_load_permutation_p): Don't allow permutations for
4667 reduction chains.
4668 (vect_analyze_slp_instance): Support reduction chains.
4669 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4670 (vect_get_constant_vectors): Handle reduction chains.
4671 (vect_schedule_slp_instance): Mark the first statement of the
4672 reduction chain as reduction.
4673
e14c1050
IR
46742011-05-18 Ira Rosen <ira.rosen@linaro.org>
4675
4676 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4677 names for group elements access.
4678 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4679 reduction chains as well. Remove data reference and interleaving
4680 related words from the fields names.
4681 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4682 elements access.
4683 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4684 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4685 vect_update_interleaving_chain, vect_same_range_drs,
4686 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4687 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4688 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4689 vect_analyze_group_access, vect_analyze_data_ref_access,
4690 vect_create_data_ref_ptr, vect_transform_strided_load,
4691 vect_record_strided_load_vectors): Likewise.
4692 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4693 vect_model_load_cost, vectorizable_store, vectorizable_load,
4694 vect_remove_stores, new_stmt_vec_info): Likewise.
4695 * tree-vect-slp.c (vect_build_slp_tree,
4696 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4697
51c213f7
RG
46982011-05-18 Richard Guenther <rguenther@suse.de>
4699
4700 PR middle-end/48989
4701 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4702 operand verification.
4703 (verify_gimple_assign_binary): Likewise.
4704 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4705 to non-1-precision BOOLEAN_TYPEs.
4706
8f5e5434
TV
47072011-05-18 Tom de Vries <tom@codesourcery.com>
4708
4709 PR target/45098
4710 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4711
116bc3a4
JJ
47122011-05-18 Jakub Jelinek <jakub@redhat.com>
4713
4714 PR tree-optimization/49000
4715 * tree-ssa.c (execute_update_addresses_taken): Call
4716 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4717 be rewritten and decl has been marked for renaming, reset
4718 the debug stmt.
4719
26a8964c
JM
47202011-05-17 Joseph Myers <joseph@codesourcery.com>
4721
4722 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4723 enum_opts_set when testing if attributes have set -mfpmath=.
4724
82bd45d7
RS
47252011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4726
4727 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4728
267ffce3
UB
47292011-05-17 Uros Bizjak <ubizjak@gmail.com>
4730
4731 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4732 info->entry with 0
4733 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4734 id.transform_lang_insert_block with NULL.
4735
47362011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
4737
4738 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4739 (output_fp_compare): Change args 3 and 4 to bool.
4740 (ix86_expand_call): Change arg 6 to bool.
4741 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4742 (ix86_attr_length_vex_default): Change arg 3 to bool.
4743 * config/i386/i386.md: Update all uses.
4744 * config/i386/i386.c: Ditto.
4745 (ix86_flags_dependent): Change return type to bool.
4746
5beaf664
RG
47472011-05-17 Richard Guenther <rguenther@suse.de>
4748
4749 * gimple.c (type_hash_pair_compare): Fix comparison.
4750
008bad7a
RG
47512011-05-17 Richard Guenther <rguenther@suse.de>
4752
4753 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4754 case some more, fix final hash value of the non-singleton case.
4755
36461340
RG
47562011-05-17 Richard Guenther <rguenther@suse.de>
4757
4758 PR bootstrap/49013
4759 Revert
4760 2011-05-16 Richard Guenther <rguenther@suse.de>
4761
4762 * gimple.c (gimple_types_compatible_p_1): Use names of the
4763 type itself, not its main variant.
4764 (iterative_hash_gimple_type): Likewise.
4765
6b6a59f3
RG
47662011-05-17 Richard Guenther <rguenther@suse.de>
4767
4768 * gimple.c (gimple_register_canonical_type): Use the main-variant
4769 leader for computing the canonical type.
4770
4ffc4134
NC
47712011-05-17 Nick Clifton <nickc@redhat.com>
4772
a1d8754e
NC
4773 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4774 moves.
4775
4ffc4134
NC
4776 * config/rx/rx.md: Add peephole to remove redundant extensions
4777 after loads.
39960f7a
NC
4778 (bitset_in_memory): Use rx_restricted_mem_operand.
4779 (bitinvert_in_memory): Likewise.
4780 (bitclr_in_memory): Likewise.
4ffc4134 4781
b3db92ac
KI
47822011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4783 Nick Clifton <nickc@redhat.com>
4784
4785 * config/rx/rx.md: Add peepholes to match a register move followed
4786 by a comparison of the moved register. Replace these with an
4787 addition of zero that does both actions in one instruction.
4788
8637e32a
JJ
47892011-05-17 Jakub Jelinek <jakub@redhat.com>
4790
4791 PR target/48986
4792 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4793 predicate to allow CONST_INT.
4794 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4795
8023568e
JM
47962011-05-16 Joseph Myers <joseph@codesourcery.com>
4797
4798 * opts-common.c (opt_enum_arg_to_value): New.
4799 * opts.h (opt_enum_arg_to_value): Declare.
4800 * config/i386/i386.opt (fpmath): Remove.
4801 (mfpmath=): Use Enum, Init and Save.
4802 (fpmath_unit): New Enum and EnumValue entries.
4803 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4804 name for function fpmath state.
4805 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4806 * config/i386/i386.c: Include diagnostic.h.
4807 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 4808 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 4809 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 4810 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
4811 (x86_function_specific_save, ix86_function_specific_restore):
4812 Don't handle fpmath state specially.
4813 (ix86_function_specific_print): Pass fpmath state to
4814 ix86_target_string instead of printing in this function.
4815 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4816 Handle enum attributes.
4817 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4818 (ix86_valid_target_attribute_tree): Update option_strings
4819 handling. Handle fpmath as enum option.
4820 (ix86_can_inline_p): Update field names for function fpmath state.
4821 (ix86_expand_builtin): Update call to ix86_target_string.
4822 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4823 (ix86_fpmath): Remove.
4824 * config/i386/t-i386 (i386.o): Update dependencies.
4825
9e8d926e
JM
48262011-05-16 Joseph Myers <joseph@codesourcery.com>
4827
4828 PR preprocessor/48677
4829 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4830 from decoded_options[0], not from itself.
4831
f6449011
UB
48322011-05-16 Uros Bizjak <ubizjak@gmail.com>
4833
4834 * config/i386/constraints.md (z): New constraint.
4835 * config/i386/i386.c (c): New mode attribute.
4836 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4837 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4838 constraint for operand 0.
4839 (*call_vzeroupper): Ditto.
4840 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4841 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4842 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4843 Use "lzm" constraint for operand 0.
4844 (*call_pop_vzeroupper): Ditto.
4845 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4846 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4847 constraint for operand 0.
4848 (*sibcall_vzeroupper): Ditto.
4849 (*sibcall_rex64_ms_sysv): Ditto.
4850 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4851 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4852 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4853 (*sibcall_pop_vzeroupper): Ditto.
4854 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4855 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4856 mode iterator. Use "<c>zm" constraint for operand 1.
4857 (*call_value_vzeroupper): Ditto.
4858 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 4859 for operand 1.
f6449011
UB
4860 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4861 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4862 *call_value_pop_1. Use "lzm" constraint for operand 1.
4863 (*call_value_pop_vzeroupper): Ditto.
4864 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4865 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4866 mode iterator. Use "Uz" constraint for operand 1.
4867 (*sibcall_value_vzeroupper): Ditto.
4868 (*sibcall_value_rex64_ms_sysv): Ditto.
4869 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4870 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4871 constraint for operand 1.
4872 (*sibcall_value_pop_vzeroupper): Ditto.
4873 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4874 and "z" constraint for operand 2.
4875 (*tls_global_dynamic_32_gnu): Ditto.
4876 (*tls_local_dynamic_base_32_gnu): Ditto.
4877 (*tls_local_dynamic_base_64): Ditto.
4878 (*tls_local_dynamic_32_once): Ditto.
4879 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4880 Update all callers.
4881 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4882
c11b6902
RG
48832011-05-16 Richard Guenther <rguenther@suse.de>
4884
4885 * gimple.c (gimple_types_compatible_p_1): Use names of the
4886 type itself, not its main variant.
4887 (iterative_hash_gimple_type): Likewise.
4888
1e83b5f1
RG
48892011-05-16 Richard Guenther <rguenther@suse.de>
4890
f6449011
UB
4891 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4892 always visit pointer target and function result and argument types.
1e83b5f1 4893
62e36382
JM
48942011-05-16 Jason Merrill <jason@redhat.com>
4895
4896 PR c++/48999
4897 * tree-inline.c (copy_statement_list): Put back recursion.
4898
687027a4
GJL
48992011-05-16 Georg-Johann Lay <avr@gjlay.de>
4900
4901 PR target/27663
4902 PR target/41076
4903 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4904 * config/avr/avr.md ("*ior<mode>qi.byte0",
4905 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4906
f24a5190
GJL
49072011-05-16 Georg-Johann Lay <avr@gjlay.de>
4908
4909 PR target/45099
4910 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4911 register is needed for a function argument.
4912
3066f593
RG
49132011-05-16 Richard Guenther <rguenther@suse.de>
4914
4915 * gimple.c (struct type_hash_pair): New type.
4916 (type_hash_pair_compare): New function.
f6449011 4917 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 4918
b2ab2cf4
RE
49192011-05-16 Revital Eres <revital.eres@linaro.org>
4920
f6449011 4921 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 4922
dfb737fc
UB
49232011-05-15 Uros Bizjak <ubizjak@gmail.com>
4924
4925 * config/i386/i386.md (floating point move splitters): Fix
4926 usage of standard_80387_constant_p.
f6449011 4927 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 4928
8caa1de0
UB
49292011-05-15 Uros Bizjak <ubizjak@gmail.com>
4930
4931 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4932
8a519095
EB
49332011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4934
4935 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4936 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4937 (tree_ssa_lim_finalize): Likewise.
4938
479fecd3
UB
49392011-05-14 Uros Bizjak <ubizjak@gmail.com>
4940
4941 * config/i386/constraint.md (Yd, Yx): New register constraints.
4942 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4943 Yd conditional register constraint.
4944 (*movtf_internal): Use standard_sse_constant_opcode.
4945 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4946 Yx conditional register constraint.
4947 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4948 Yd conditional register constraint. Use standard_sse_constant_p to
4949 check for valid SSE constants and call standard_sse_constant_opcode to
4950 output SSE insn.
4951 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4952 constants and call standard_sse_constant_opcode to output SSE insn.
4953 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4954 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4955 optimize_size is set.
4956 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4957
2d8c9ad5
TB
49582011-05-14 Tobias Burnus <burnus@net-b.de>
4959
4960 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4961
411a20d6
MJ
49622011-05-13 Martin Jambor <mjambor@suse.cz>
4963
4964 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4965 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4966 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4967 (evaluate_conditions_for_ipcp_clone): Removed.
4968 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4969 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4970 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4971
dc764d10
EB
49722011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4973
4974 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4975 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4976 lieu of MAY_HAVE_DEBUG_STMTS.
4977 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4978 debug statements if !MAY_HAVE_DEBUG_STMTS.
4979
9f47a24e
MT
49802011-05-13 Martin Thuresson <martint@google.com>
4981
4982 PR gcov-profile/47793
4983 * libgcov.c (gcov_exit): Support relative profile paths.
4984 * doc/invoke.texi (-fprofile-dir): Update for above change.
4985
b8a71aed
RG
49862011-05-13 Richard Guenther <rguenther@suse.de>
4987
4988 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4989 type-pair caching, do not compare hashes.
4990
eb9f9259
NF
49912011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4992
4993 PR middle-end/48965
4994 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4995 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4996
3c6cbf7a
KT
49972011-05-13 Kai Tietz <ktietz@redhat.com>
4998
4999 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5000 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5001 compatible type for TRUTH_NOT_EXPR.
5002
2e7f5dc0
L
50032011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5004
dc764d10 5005 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
5006 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5007 can_create_pseudo_p ().
5008
e834e95c
RG
50092011-05-13 Richard Guenther <rguenther@suse.de>
5010
5011 PR lto/48978
5012 * gimple.c (iterative_hash_gimple_type): Revert change in
5013 pointer target and function result and argument hashing.
5014
34203483
UB
50152011-05-13 Uros Bizjak <ubizjak@gmail.com>
5016
5017 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5018 (*movxf_internal_nointeger): Ditto.
5019 (*movdf_internal_rex64): Ditto.
5020 (*movdf_internal): Ditto.
5021 (*movdf_internal_nointeger): Ditto.
5022 (*movsf_internal): Ditto.
5023 (sincos splitters): Use can_create_pseudo ().
5024
7eb68c06
JM
50252011-05-13 Joseph Myers <joseph@codesourcery.com>
5026
5027 * config/i386/i386-opts.h: New.
5028 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5029 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5030 ix86_section_threshold): Remove.
5031 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5032 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5033 OPT_mbranch_cost_.
5034 (ix86_option_override_internal): Don't decode strings for options
5035 other than -march=, -mtune= and -mfpmath=. Don't allow for
5036 __attribute__ uses in remaining diagnostics for options with
34203483 5037 string arguments. Don't check for integer arguments being negative.
7eb68c06 5038 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 5039 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
5040 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5041 ix86_branch_cost, ix86_section_threshold): Remove.
5042 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5043 HeaderInclude.
5044 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5045 but not Var.
5046 (masm=): Use Enum and Init.
5047 (asm_dialect): New Enum and EnumValue entries.
5048 (mbranch-cost=): Use UInteger.
5049 (mlarge-data-threshold=): Use UInteger and Init.
5050 (mcmodel=): Use Enum and Init.
5051 (cmodel): New Enum and EnumValue entries.
5052 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5053 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5054 mregparm=): Use UInteger.
5055 (mstringop-strategy=): Use Enum and Init.
5056 (stringop_alg): New Enum and EnumValue entries.
5057 (mtls-dialect=): Use Enum and Init.
5058 (tls_dialect): New Enum and EnumValue entries.
5059 (mabi=): Use Enum and Init.
5060 (calling_abi): New Enum and EnumValue entries.
5061 (mveclibabi=): Use Enum and Init.
5062 (ix86_veclibabi): New Enum and EnumValue entries.
5063
f67e203c
NC
50642011-05-13 Nick Clifton <nickc@redhat.com>
5065
34203483
UB
5066 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5067 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 5068
221df0b6
KT
50692011-05-13 Kai Tietz <ktietz@redhat.com>
5070
5071 PR middle-end/48984
5072 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5073 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5074 (gimple_boolify): Check for cast for boolean_type_node instead for
5075 BOOLEAN_TYPE.
5076
208cb8cb
RG
50772011-05-13 Richard Guenther <rguenther@suse.de>
5078
5079 PR tree-optimization/48172
5080 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5081 multiplying by number of iterations for equal step.
5082 (vect_create_cond_for_alias_checks): Likewise.
5083
b88ecf55
AS
50842011-05-13 Andreas Schwab <schwab@redhat.com>
5085
5086 * configure.ac: Use AS_HELP_STRING throughout.
5087 * configure: Regenerate.
5088
569b527e
L
50892011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5090
34203483 5091 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
5092 (ix86_emit_restore_regs_using_mov): Likewise.
5093 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5094
8b9a1428
AS
50952011-05-12 Anatoly Sokolov <aesok@post.ru>
5096
5097 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5098 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5099 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5100 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5101 RTX_OK_FOR_OLO10_P): ...here.
5102 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5103 SYMBOLIC_CONST.
5104
1d15f620
KT
51052011-05-12 Kai Tietz <ktietz@redhat.com>
5106
5107 * gimplify.c (gimple_boolify): Re-boolify expression
5108 arguments even if expression type is of kind BOOLEAN_TYPE.
5109 (gimplify_boolean_expr): Removed.
5110 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5111 and XOR. Additional take care that we keep expression's type.
5112 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5113 of TRUTH_AND|OR|XOR_EXPR.
5114
c2b5fc8d
JJ
51152011-05-12 Jakub Jelinek <jakub@redhat.com>
5116
5117 PR tree-optimization/48975
5118 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5119 on all bbs here and free and clear ifc_bbs at the end.
5120
61332f77
RG
51212011-05-12 Richard Guenther <rguenther@suse.de>
5122
5123 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5124 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5125 until after simple checks.
5126 (gimple_types_compatible_p): Likewise.
5127 (iterative_hash_gimple_type): Always hash pointer targets
5128 and function return and argument types.
5129 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5130 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5131 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5132 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5133 completely in the simple compare section.
5134 (gimple_register_canonical_type): Query the cache again after
5135 registering.
5136
e2a3a5f1
RG
51372011-05-12 Richard Guenther <rguenther@suse.de>
5138
5139 PR tree-optimization/48172
5140 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5141 the number of iterations from the segment size calculation.
5142 (vect_create_cond_for_alias_checks): Adjust.
5143
2c703f3a
JJ
51442011-05-12 Jakub Jelinek <jakub@redhat.com>
5145
5146 PR debug/48967
5147 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5148 if validate_subreg fails.
5149
51502011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
5151
5152 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5153 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5154 early.
5155
87e91fca
DD
51562011-05-12 DJ Delorie <dj@redhat.com>
5157
d53903d6 5158 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
5159 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5160 created builtin into rx_builtins array.
5161 (rx_builtin_decl): New function.
34203483 5162 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 5163
5f2f13fd
DD
51642011-05-12 DJ Delorie <dj@redhat.com>
5165 Nick Clifton <nickc@redhat.com>
5166
5167 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5168 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5169 (rx_is_legitimate_address): Add pre-decrement and post-increment
5170 addressing in HImode and QImode. Fix test for out of range
5171 REG+INT addressing.
87e91fca 5172 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 5173 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 5174 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 5175 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 5176
57421f45
JM
51772011-05-11 Jason Merrill <jason@redhat.com>
5178
5179 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5180
898c90c0
EB
51812011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5182
5183 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5184 reindent the subsequent block.
5185
79bec923
ST
51862011-05-11 Satoru Takabayashi <satorux@google.com>
5187 Paul Pluzhnikov <ppluzhnikov@google.com>
5188
34203483 5189 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
5190 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5191 * config.in: Add LINKER_HASH_STYLE.
5192 * configure.ac: Add --with-linker-hash-style.
5193 * configure: Regenerate.
79bec923 5194
d0340959
RG
51952011-05-11 Richard Guenther <rguenther@suse.de>
5196
5197 PR middle-end/48964
5198 * gimple.c (iterative_hash_canonical_type): Fix typo.
5199
cb032fee
UB
52002011-05-11 Uros Bizjak <ubizjak@gmail.com>
5201
5202 * config/i386/i386.c (legitimize_tls_address)
479fecd3 5203 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5204 expanders directly for TARGET_GNU2_TLS. Determine pic and
5205 __tls_get_addr symbol reference here. Update call to
5206 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 5207 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5208 expanders directly for TARGET_GNU2_TLS. Determine
5209 __tls_get_addr symbol reference here. Update call to
5210 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5211 unique UNSPEC REG_EQUIV to libcall block.
5212 (ix86_tls_get_addr): Declare static.
5213 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5214 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5215 Do not determine pic and __tls_get_addr symbol reference here. Do not
5216 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5217 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5218 (tls_global_dynamic_64): Add operand 2. Do not determine
5219 __tls_get_addr symbol reference here. Do not call
5220 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5221 (tls_local_dynamic_base64): Ditto for operand 1.
5222
6d3cc8f0
EB
52232011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5224
5225 * function.c (expand_function_start): Initialize stack_check_probe_note
5226 only if the generic stack checking mechanism is used.
5227
51e020fc
RG
52282011-05-11 Richard Guenther <rguenther@suse.de>
5229
5230 PR tree-optimization/15256
5231 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5232 (A & B) | C, combine (A op CST1) op CST2.
5233 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5234 visit assigns that have uses.
5235
51545682
NF
52362011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5237
cb032fee 5238 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
5239 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5240 (unpack_ts_type_common_value_fields): ...this. Update comment.
5241 (unpack_value_fields): Adjust for renaming.
5242 (lto_input_ts_type_tree_pointers): Split into...
5243 (lto_input_ts_type_common_tree_pointer): ...this and...
5244 (lto_input_ts_type_non_common_tree_pointers): ...this.
5245 (lto_input_tree_pointers): Adjust for above split.
5246 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5247 (pack_ts_type_common_value_fields): ...this. Update comment.
5248 (lto_output_ts_type_tree_pointers): Split into...
5249 (lto_output_ts_type_common_tree_pointers): ...this and...
5250 (lto_output_ts_type_non_common_tree_pointers): ...this.
5251 (lto_output_tree_pointers): Adjust for above split.
5252 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5253 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5254 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5255 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5256 Define.
5257 (struct tree_type): Split into...
5258 (struct tree_type_common: ...this and...
5259 (struct tree_type_with_lang_specific): ...this and...
5260 (struct tree_type_non_common): ...this. Adjust accessor macros
5261 accordingly.
5262 (TYPE_VALUES_RAW): Define.
5263 (union tree_node): Update for above changes.
5264 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5265 TS_TYPE_NON_COMMON.
5266 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5267 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5268 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5269 * treestructu.def (TS_TYPE): Remove.
5270 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5271 Define.
5272
b03c3082
JJ
52732011-05-11 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR debug/48159
5276 * tree-ssa.c (reset_debug_uses): New function.
5277 * tree-flow.h (reset_debug_uses): New prototype.
5278 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5279 * tree-loop-distribution.c (generate_loops_for_partition): Call
5280 reset_debug_uses on the stmts that will be removed. Keep around
5281 all debug stmts, don't count them as bits in partition bitmap.
5282 (generate_builtin): Don't count debug stmts or labels as bits in
5283 partition bitmap.
5284
b5e04de5
RG
52852011-05-11 Richard Guenther <rguenther@suse.de>
5286
5287 * gimple.c (gimple_type_hash_1): Merge with ...
5288 (gimple_type_hash): ... this.
5289 (gtc_visit): Remove mode parameter and simplify accordingly.
5290 (gimple_types_compatible_p_1): Likewise.
5291 (gimple_types_compatible_p): Likewise.
5292 (iterative_hash_gimple_type): Likewise.
5293 (visit): Likewise.
5294 (gimple_type_eq): Adjust.
5295
fc6970e4
RE
52962011-05-11 Revital Eres <revital.eres@linaro.org>
5297
5298 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5299 enters the branch create an anti edge in the opposite direction
5300 to prevent the creation of reg-moves.
5301 * modulo-sched.c: Adjust comment to reflect the fact we are
5302 scheduling closing branch.
5303 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5304 (stage_count): New field in struct partial_schedule.
5305 (calculate_stage_count): New function.
5306 (normalize_sched_times): Rename to reset_sched_times and handle
5307 incrementing the sched time of the nodes by a constant value
5308 passed as parameter.
5309 (duplicate_insns_of_cycles): Skip closing branch.
5310 (sms_schedule_by_order): Schedule closing branch.
5311 (ps_insn_find_column): Handle closing branch.
5312 (sms_schedule): Call reset_sched_times and adjust the code to
5313 support scheduling of the closing branch.
5314 (ps_insert_empty_row): Update calls to normalize_sched_times
5315 and rotate_partial_schedule functions.
5316
41a58a92
RG
53172011-05-11 Richard Guenther <rguenther@suse.de>
5318
5319 PR middle-end/48953
5320 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5321
e9f8dcf9
JM
53222011-05-11 Joseph Myers <joseph@codesourcery.com>
5323
cb032fee
UB
5324 * opts.c (finish_options): Move warning settings from process_options.
5325 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 5326
10c224a9
RG
53272011-05-11 Richard Guenther <rguenther@suse.de>
5328
5329 PR tree-optimization/18041
5330 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5331 (simplify_bitwise_binary): ... this. Handle operand conversions
5332 by applying them to the result instead.
5333 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5334
825b27de
RG
53352011-05-11 Richard Guenther <rguenther@suse.de>
5336
5337 * gimple.c (gimple_canonical_types_compatible_p): Split out
5338 from gimple_types_compatible_p and friends. Do not recurse
5339 to pointed-to types.
5340 (gimple_canonical_type_eq): Use it.
5341 (iterative_hash_canonical_type): Split out from
5342 iterative_hash_gimple_type and friends. Do not recurse
5343 to pointed-to types.
5344 (gimple_canonical_type_hash): Use it, allocate the hash here.
5345
ca756625
RE
53462011-05-11 Revital Eres <revital.eres@linaro.org>
5347
5348 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5349 recognizing doloop.
5350
b8abece3
RE
53512011-05-11 Revital Eres <revital.eres@linaro.org>
5352
5353 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5354 instead of PREV_INSN.
5355
ce7b3761
RE
53562011-05-11 Revital Eres <revital.eres@linaro.org>
5357
5358 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5359 * loop-doloop.c (doloop_condition_get): Likewise.
5360 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5361 (doloop_end): New.
5362 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5363
a9dc9d37
NF
53642011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5365
5366 * tree.def (CASE_LABEL_EXPR): Add an operand.
5367 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5368
96703596
JM
53692011-05-10 Joseph Myers <joseph@codesourcery.com>
5370
5371 * c-decl.c (c_override_global_bindings_to_false): Remove.
5372 (global_bindings_p): Don't check
5373 c_override_global_bindings_to_false.
5374 * c-tree.h (c_override_global_bindings_to_false): Remove.
5375 * c-typeck.c (composite_type): Don't set
5376 c_override_global_bindings_to_false.
5377
dbcc9f08
MM
53782011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5379
5380 PR target/48857, 48495
5381 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5382 (VSX_MODE): Ditto.
5383 (VSX_MOVE_MODE): Ditto.
5384 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5385 VSX vector types. Add V2DImode.
5386 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5387 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5388 (MODES_TIEABLE_P): Ditto.
5389
5390 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5391 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5392 VSX_VECTOR_MODE.
5393 (init_cumulative_args): Ditto.
5394 (rs6000_function_arg_boundary): Ditto.
5395 (rs6000_function_arg_advance_1): Ditto.
5396 (rs6000_function_arg): Ditto.
5397 (rs6000_function_ok_for_sibcall): Ditto.
5398 (emit_frame_save): Ditto.
5399 (rs6000_function_value): Ditto.
5400 (rs6000_libcall_value): Ditto.
5401
4a68b4ca
JM
54022011-05-10 Joseph Myers <joseph@codesourcery.com>
5403
5404 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5405 i386/darwin-lib.h to $libgcc_tm_file.
5406 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5407
bcb521e9
JM
54082011-05-10 Joseph Myers <joseph@codesourcery.com>
5409
5410 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5411
f10d3ac9
JM
54122011-05-10 Joseph Myers <joseph@codesourcery.com>
5413
cb032fee 5414 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
5415 * config/rs6000/rs6000-tables.opt: New file (generated).
5416 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5417 rs6000/rs6000-tables.opt to extra_options.
5418 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5419 * config/rs6000/rs6000.c (rs6000_select): Remove.
5420 (processor_target_table): Move contents to rs6000-cpus.def.
5421 (darwin_rs6000_override_options): Check
5422 global_options_set.x_rs6000_cpu_index instead of
5423 rs6000_select[1].string.
5424 (rs6000_option_override_internal): Likewise.
5425 (rs6000_handle_option): Don't assert that global structures are in
5426 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5427 (rs6000_default_cpu): New variable.
5428 (rs6000_file_start): Set it instead of local default_cpu. Check
5429 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5430 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5431 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5432 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5433 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5434 rs6000_select): Remove.
5435 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5436 Remove.
5437 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5438 * config/rs6000/t-rs6000
5439 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5440 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5441 global_options_set.x_rs6000_cpu_index instead of
5442 rs6000_select[1].string.
5443 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5444 global_options_set.x_rs6000_cpu_index instead of
5445 rs6000_select[1].string.
5446
80cf2e08
JM
54472011-05-10 Joseph Myers <joseph@codesourcery.com>
5448
5449 * config.gcc (libgcc_tm_file): Define instead of including files
5450 from ../../libgcc/config/ in tm_file.
cb032fee 5451 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
5452 * configure: Regenerate.
5453 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5454 libgcc_tm.h, cs-libgcc_tm.h): New.
5455 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5456 (clean): Remove libgcc_tm.h.
5457 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5458 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5459 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5460
fd01a351
GJL
54612011-05-10 Georg-Johann Lay <avr@gjlay.de>
5462
5463 PR target/48896
5464 * config/avr/avr.c (avr_ret_register): Return unsigned int
5465 instead of int.
5466 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5467 it to avr_libcall_value.
5468 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5469 expand_expr.
5470 (avr_expand_binop_builtin): Ditto.
5471 (avr_expand_unop_builtin): Ditto.
5472
34cc3c86
DD
54732011-05-10 DJ Delorie <dj@redhat.com>
5474
5475 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5476 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5477 * config/rx/rx.c (rx_align_for_label): Add label and
5478 uses_threshold parameters. Do not align when the label is not
5479 used enough.
5480 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5481
be173289
RG
54822011-05-10 Richard Guenther <rguenther@suse.de>
5483
5484 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5485 a series of conversions and apply foldings similar to what
5486 fold-const does.
5487 (tree_ssa_forward_propagate_single_use_vars): Call it.
5488
e7f78021
JJ
54892011-05-10 Jakub Jelinek <jakub@redhat.com>
5490
6ae70ea2
JJ
5491 PR tree-optimization/48611
5492 PR tree-optimization/48794
5493 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5494 referenced from RESX or EH_DISPATCH arguments.
5495
e7f78021
JJ
5496 PR debug/48928
5497 * dfp.c (decimal_to_decnumber): Handle conversion from
5498 dconst{1,2,m1,half}.
5499
fca132b9
UB
55002011-05-09 Uros Bizjak <ubizjak@gmail.com>
5501
5502 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5503 for !flag_prefer_avx128.
5504 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5505
e4c03378
EB
55062011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5507
5508 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5509 (fold_ternary_loc): Use expr_location_or.
5510
805d6a75
L
55112011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5512
5513 PR debug/48853
5514 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5515 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5516 Pmode and mem_mode is not VOIDmode.
5517
e4c03378 55182011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 5519
e4c03378
EB
5520 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5521 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 5522
51e7f377
UB
55232011-05-09 Uros Bizjak <ubizjak@gmail.com>
5524
5525 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5526 (const_pow2_1_to_8_operand): Ditto.
5527 (const_pow2_1_to_128_operand): Ditto.
5528 (const_pow2_1_to_32768_operand): Ditto.
5529 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5530 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5531 in insn constraint to check integer value of operand 3.
5532 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5533
5534 (PINSR_MODE): New mode iterator.
5535 (sse2p4_1): New mode attribute.
5536 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5537 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5538 iterator. Use const_int_operand instead of
5539 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5540 exact_log2 in insn constraint to check integer value of operand 3.
5541
55422011-05-09 Uros Bizjak <ubizjak@gmail.com>
5543
5544 * config/i386/sse.md (blendbits): Remove mode attribute.
5545 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5546 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5547 Check integer value of operand 3 in insn constraint.
5548
0ca8de87
RG
55492011-05-09 Richard Guenther <rguenther@suse.de>
5550
5551 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5552 for diagnostics.
5553 (lto_symtab_merge): Likewise. Do not register types here.
5554 (lto_symtab_merge_decls_2): Likewise.
5555 (lto_symtab_merge_decls_1): Likewise.
5556 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5557 * gimple.c (enum gtc_mode): Declare.
5558 (gimple_types_compatible_p): Make static.
5559
a9e6994a
AK
55602011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5561
5562 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5563 temporary register to match Pmode.
5564
fb55d62e
UB
55652011-05-09 Uros Bizjak <ubizjak@gmail.com>
5566
5567 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5568 and *vec_concatv4si_1_avx.
5569
eb1485a6
UB
55702011-05-09 Uros Bizjak <ubizjak@gmail.com>
5571
5572 PR rtl-optimization/48927
5573 * ira-conflicts.c (commutative_constraint_p): Use
5574 recog_data.alternative_enabled_p to disable alternatives where
5575 "enabled" attribute is false.
5576 (get_dup_num): Ditto.
5577 * ira-lives.c (single_reg_class): Ditto.
5578 (ira_implicitly_set_insn_hard_regs): Ditto.
5579
c46d001a
EB
55802011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5581
5582 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5583 (dataflow_set_preserve_mem_locs): Likewise.
5584
55852011-05-09 Philipp Thomas <pth@suse.de>
5586
6d9e7c41
PT
5587 * config/mep/mep.c (mep_validate_vliw): Syntax description
5588 should not be translated.
5589
d371df6f
JM
55902011-05-09 Joseph Myers <joseph@codesourcery.com>
5591
5592 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5593 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 5594 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
5595 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5596 MIPS_ARCH_OPTION_NATIVE): Define.
5597 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5598 mips-cpus.def.
5599 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5600 mips_parse_cpu): Remove.
5601 (mips_cpu_info_from_opt, mips_default_arch): New.
5602 (mips_handle_option): Don't assert that global structures are in
5603 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5604 (mips_option_override): Use new variables and functions to set
eb1485a6 5605 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
5606 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5607 definition.
5608 * config/mips/mips.opt (march=): Use ToLower and Enum.
5609 (mips): Use ToLower, Enum and Var.
5610 (mtune=): Use ToLower and Enum.
5611 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5612
4fc07af9
JH
56132011-05-08 Jan Hubicka <jh@suse.cz>
5614
5615 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5616 Arrange type pairs to be UID ordered.
5617 (gimple_lookup_type_leader): Make inline.
5618
2cf320a8
NC
56192011-05-09 Nick Clifton <nickc@redhat.com>
5620
61d6def5
NC
5621 PR target/48899
5622 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5623 PROCESSOR_DEFAULT.
5624
2cf320a8
NC
5625 PR target/48897
5626 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5627 variable 's'.
5628
4f82319d
CLT
56292011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5630
5631 * combine.c (simplify_comparison): Abstract out parts into...
5632 (simplify_compare_const): ... new function.
5633 (try_combine): Generalize parallel arithmetic/compare combining
5634 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5635
74605a11
JH
56362011-05-08 Jan Hubicka <jh@suse.cz>
5637
5638 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
5639 (cgraph_create_virtual_clone): Call hooks once virtual clone
5640 is finished.
74605a11 5641 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
5642 * ipa-cp.c (ipcp_estimate_growth): Use
5643 estimate_ipcp_clone_size_and_time.
74605a11
JH
5644 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5645 * lto-cgraph.c (input_node): Update.
5646 * ipa-inline.c (recursive_inlining): Update.
5647 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5648 (evaluate_conditions_for_known_args): Break out from ...
5649 (evaluate_conditions_for_edge): ... here.
5650 (evaluate_conditions_for_ipcp_clone): New function.
5651 (inline_node_duplication_hook): Update clone summary based
5652 on parameter map.
5653 (estimate_callee_size_and_time): Rename to ...
5654 (estimate_node_size_and_time): take NODE instead of EDGE;
5655 take POSSIBLE_TRUTHS as argument.
5656 (estimate_callee_size_and_time): Update.
5657 (estimate_ipcp_clone_size_and_time): New function.
5658 (do_estimate_edge_time): Update.
5659
5c049507
RG
56602011-05-08 Richard Guenther <rguenther@suse.de>
5661
5662 PR middle-end/48908
5663 PR middle-end/48905
5664 * expmed.c (expand_shift_1): Compute adjusted constant shift
5665 amount manually.
5666
f64c36ba
EB
56672011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5668
5669 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5670
c461a957
EB
56712011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5672
5673 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5674
7c74e556
JW
56752011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5676
5677 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5678
b4c0a884
JH
56792011-05-07 Jan Hubicka <jh@suse.cz>
5680
a9bcb3f0
EB
5681 * ipa-inline-transform.c (inline_call): Account when program size
5682 decreases.
b4c0a884 5683 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
5684 (edge_badness): Reorganize to be power 2 based; fix thinko when
5685 computing badness for negative growth; update comments to match
5686 reality; better dumps.
b4c0a884 5687
c99c0026
EB
56882011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5689
5690 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5691 type to bool and adjust comment.
5692 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5693 (fold_mathfn_compare): Remove calls to global_bindings_p.
5694 (fold_inf_compare): Likewise.
5695 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5696 * c-tree.h (global_bindings_p): Adjust prototype.
5697 * c-decl.c (global_bindings_p): Return bool and simplify.
5698
1400c8e5
ZD
56992011-05-07 Zdenek Dvorak <ook@ucw.cz>
5700
5701 PR tree-optimization/48837
5702 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5703 when accumulator transformation is performed.
5704
5d0878e7
JH
57052011-05-06 Jan Hubicka <jh@suse.cz>
5706
a9bcb3f0
EB
5707 * i386.h (ix86_tune_indices): Add
5708 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 5709 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
5710 * i386.c (initial_ix86_tune_features): Add
5711 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
5712 (software_prefetching_beneficial_p): Remove predicate.
5713 (ix86_option_override_internal): Use new macro.
5714
58696ce5
JH
57152011-05-06 Jan Hubicka <jh@suse.cz>
5716
5717 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5718
c47d0034
JH
57192011-05-06 Jan Hubicka <jh@suse.cz>
5720
5721 * cgraph.c (cgraph_add_thunk): Create real function node instead
5722 of alias node; finalize it and mark needed/reachale; arrange visibility
5723 to be right and add it into the corresponding same comdat group list.
5724 (dump_cgraph_node): Dump thunks.
5725 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
5726 cgraph_function_with_gimple_body_p,
5727 cgraph_first_function_with_gimple_body,
c47d0034
JH
5728 cgraph_next_function_with_gimple_body): New functions.
5729 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5730 New macros.
5731 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5732 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5733 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5734 devirtualization when optimizing.
5735 (verify_cgraph_node): Verify thunks.
5736 (cgraph_analyze_function): Analyze thunks.
5737 (cgraph_mark_functions_to_output): Output thunks only in combination
5738 with function they are assigned to.
5739 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5740 alias into normal node.
5741 (assemble_thunks): New functoin.
5742 (cgraph_expand_function): Use it.
5743 * lto-cgraph.c (lto_output_node): Stream thunks.
5744 (input_overwrite_node): Stream in thunks.
5745 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5746 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5747 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5748 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5749 (inline_analyze_function): Do not care about thunk jump functions.
5750 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
5751 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5752 cgraph_function_with_gimple_body_p.
5753 * passes.c (do_per_function_toporder): Use
5754 cgraph_function_with_gimple_body_p.
c47d0034
JH
5755 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5756 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5757 (function_called_by_processed_nodes_p): Likewise.
5758
d8f426ec
JM
57592011-05-06 Joseph Myers <joseph@codesourcery.com>
5760
5761 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5762 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5763 entries.
5764 (mabi=): Replace with separate entries for mabi=altivec,
5765 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5766 mabi=ieeelongdouble and mabi=ibmlongdouble.
5767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5768 check for -mabi=spe without SPE ABI support here.
5769 (rs6000_handle_option): Replace OPT_mabi_ handling with
5770 OPT_mabi_altivec and OPT_mabi_spe handling.
5771
80bde45b
CC
57722011-05-06 Cary Coutant <ccoutant@google.com>
5773
5774 * dwarf2out.c (contains_subprogram_definition): New function.
5775 (should_move_die_to_comdat): Call it.
5776
a91926b9
JL
57772011-05-06 Jeff Law <law@redhat.com>
5778
5779 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5780 remove_ctrl_stmt_and_useless_edges.
5781 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5782 (fixup_template_block, thread_single_edge): Likewise.
5783 (mark_threaded_blocks): Use THREAD_TARGET.
5784
1fc1b66d
AM
57852011-05-06 Alan Modra <amodra@gmail.com>
5786
5787 PR target/48900
5788 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5789 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5790
e194de64
UB
57912011-05-06 Uros Bizjak <ubizjak@gmail.com>
5792
5793 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5794 constraint modifier to "r".
5795
d740dc9e
JM
57962011-05-06 Joseph Myers <joseph@codesourcery.com>
5797
5798 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5799 fall through for OPT_mcmodel_.
5800
cab78b15
AK
58012011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5802
5803 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5804 instruction sizes.
e194de64 5805 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 5806
ee6824ae
RR
58072011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5808
eb1485a6
UB
5809 PR target/47930
5810 * config/arm/arm.opt (marm): Document it.
5811 (mthumb): Reject negative variant.
ee6824ae 5812
9ef58464
UB
58132011-05-06 Uros Bizjak <ubizjak@gmail.com>
5814
5815 PR target/48898
5816 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5817 Fix typo in "ccvt" variable name.
5818
155b6176
TG
58192011-05-06 Tristan Gingold <gingold@adacore.com>
5820
5821 PR target/48895
5822 * config/vms/vms-ar.c (main): Remove cwd variable.
5823
3becc47b
JJ
58242011-05-06 Jakub Jelinek <jakub@redhat.com>
5825
5826 PR debug/48902
5827 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5828
3d528853
NF
58292011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5830
5831 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5832 * gimplify.c (gimplify_switch_expr): Likewise.
5833 * omp-low.c (expand_omp_sections): Likewise.
5834 * tree-eh.c (lower_try_finally_switch): Likewise.
5835 (lower_eh_dispatch): Likewise.
5836 * tree.h (build_case_label): Declare.
5837 * tree.c (build_case_label): Define.
5838
deb5046b
JM
58392011-05-05 Jason Merrill <jason@redhat.com>
5840
5841 PR c++/40975
5842 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5843 (copy_statement_list): Don't recurse.
5844 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5845 STATEMENT_LIST.
5846
013c0411
JM
58472011-05-05 Joseph Myers <joseph@codesourcery.com>
5848
5849 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5850 through from -mfpu= handling.
5851 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5852
a0905f8b
BS
58532011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5854
5855 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5856 POST_MODIFY.
5857
fc4538e4
SE
58582011-05-05 Steve Ellcey <sje@cup.hp.com>
5859
5860 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5861 for 11.31.
5862 (hppa[12]*-*-hpux11*): Ditto.
5863 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5864 * config/ia64/hpux-unix2003.h: New.
5865 * config/pa/pa-hpux1131.opt: New.
5866 * config/pa/pa-hpux1131.h: New.
5867 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5868 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 5869 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 5870
1e30c578
JJ
58712011-05-05 Jakub Jelinek <jakub@redhat.com>
5872
5873 PR debug/48853
5874 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5875 instead of mode as 3rd argument to recursive call.
5876 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5877 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5878 VOIDmode.
5879 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5880 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5881 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5882 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5883
d19eb620
JB
58842011-05-05 Julian Brown <julian@codesourcery.com>
5885
5886 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5887 parenthesis in D-register case.
5888
c860fe8c
JM
58892011-05-05 Joseph Myers <joseph@codesourcery.com>
5890
5891 * opt-functions.awk (var_type_struct): Handle Enum options.
5892 * optc-gen.awk: Don't check range of variables of character type.
5893 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5894 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5895 rs6000_sdata_name, rs6000_explicit_options): Remove.
5896 (rs6000_option_override_internal): Check for -malign-power here.
5897 Use global_options_set instead of rs6000_explicit_options.
5898 (rs6000_parse_fpu_option): Remove.
5899 (rs6000_handle_option): Access variables via opts and opts_set
5900 pointers. Use error_at and warning_at. Add fall-through
5901 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5902 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5903 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5904 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5905 here. Don't use rs6000_parse_fpu_option.
5906 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5907 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5908 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5909 (mrecip=): Use Var.
5910 (mspe): Use Var and Save.
5911 (mtraceback=): Use Enum and Var.
5912 (rs6000_traceback_type): New Enum and EnumValue entries.
5913 (mfloat-gprs=): Use Enum, Var and Save.
5914 (rs6000_float_gprs): New Enum and EnumValue entries.
5915 (mlong-double-): use Var and Save.
5916 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5917 (malign-): Use Enum and Var.
5918 (rs6000_alignment_flags): New Enum and EnumValue entries.
5919 (mfpu=): Use Enum.
5920 (fpu_type_t): New Enum and EnumValue entries.
5921 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5922 global_options_set instead of rs6000_explicit_options.
5923 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5924 global_options_set instead of rs6000_explicit_options.
5925 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5926 global_options_set instead of rs6000_explicit_options.
5927 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5928 global_options_set instead of rs6000_explicit_options.
5929 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5930 global_options_set instead of rs6000_explicit_options.
5931 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5932 global_options_set instead of rs6000_explicit_options.
5933 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5934 definition.
5935 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5936 global_options_set instead of rs6000_explicit_options.
5937 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5938 (rs6000_cmodel): New Enum and EnumValue entries.
5939 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5940 global_options_set instead of rs6000_explicit_options.
5941 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5942 (mtls-size=): Use Enum and Var.
5943 (rs6000_tls_size): New Enum and EnumValue entries.
5944
0691dde9
MM
59452011-05-05 Michael Matz <matz@suse.de>
5946
5947 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5948 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5949 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5950 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5951 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5952 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5953 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5954 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5955 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5956 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5957 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5958 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5959 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5960 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5961 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5962 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5963
86529a49
RG
59642011-05-05 Richard Guenther <rguenther@suse.de>
5965
5966 * expmed.c (expand_variable_shift): Rename to ...
5967 (expand_shift_1): ... this. Take an expanded shift amount.
5968 For rotates recurse directly not building trees for the shift amount.
5969 (expand_variable_shift): Wrap around expand_shift_1.
5970 (expand_shift): Adjust.
5971
d0228c2e
JJ
59722011-05-05 Jakub Jelinek <jakub@redhat.com>
5973
5974 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5975
907a08d9
EB
59762011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5977
5978 * tree.h (get_pending_sizes): Remove prototype.
5979 (put_pending_size): Likewise.
5980 (put_pending_sizes): Likewise.
5981 * stor-layout.c (pending_sizes): Delete.
5982 (get_pending_sizes): Likewise.
5983 (put_pending_size): Likewise.
5984 (put_pending_sizes): Likewise.
5985 (variable_size): Do not call put_pending_size and tidy up.
5986 * function.h (struct function): Remove dont_save_pending_sizes_p.
5987 * lto-streamer-in.c (input_function): Do not stream it.
5988 * lto-streamer-out.c (output_function): Likewise.
5989 * tree-inline.c (initialize_cfun): Do not copy it.
5990 * c-decl.c (store_parm_decls): Do not set it.
5991 * omp-low.c (create_task_copyfn): Likewise.
5992 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5993
386d9c57
UB
59942011-05-05 Uros Bizjak <ubizjak@gmail.com>
5995
5996 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5997 conditions.
5998 (*movdf_internal): Ditto.
5999 (*movdf_internal_nointeger): Ditto.
6000 (*movsf_internal): Ditto.
6001
a04a722b
JM
60022011-05-05 Joseph Myers <joseph@codesourcery.com>
6003
6004 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6005 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6006 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6007 (c_variable_size): Remove.
6008 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6009 call put_pending_sizes.
6010 (get_parm_info): Add parameter expr. Use it to set
6011 arg_info->pending_sizes.
6012 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6013 get_pending_sizes.
6014 * c-parser.c (c_parser_parms_declarator): Update call to
6015 c_parser_parms_list_declarator.
6016 (c_parser_parms_list_declarator): Take parameter expr. Update
6017 call to push_parm_decl. Update recursive call. Don't call
6018 get_pending_sizes. Update calls to get_parm_info.
6019 (c_parser_objc_method_definition): Update calls to
6020 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 6021 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
6022 (c_parser_objc_method_decl): Add parameter expr. Update call to
6023 grokparm.
386d9c57 6024 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
6025 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6026 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6027
c92a6f97
MH
60282011-05-05 Michael Hope <michael.hope@linaro.org>
6029
386d9c57
UB
6030 PR pch/45979
6031 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6032 __ARM_EABI__ hosts.
c92a6f97 6033
07ea0048
UW
60342011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6035
6036 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6037 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6038 (spu_output_mi_thunk): New function.
6039
d634bfa1
RO
60402011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6041
6042 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6043 targetm.asm_out.print_operand.
6044 * config/sol2.c: Include target.h.
6045
40fda55b
JH
60462011-05-04 Jan Hubicka <jh@suse.cz>
6047
6048 * ipa-inline.c (reset_edge_caches): New function.
6049 (update_caller_keys): Add check_inlinablity_for; do not
6050 reset edge caches; remove now unnecesary loop.
386d9c57 6051 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
6052 (update_all_callee_keys): Likewise.
6053 (inline_small_functions): Sanity check cache; update code
6054 recomputing it.
6055
0360f70d
BS
60562011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6057
6058 PR rtl-optimization/47612
6059 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6060 as the last insn of the sequence to be moved.
6061
7a994646
TB
60622011-05-04 Tobias Burnus <burnus@net-b.de>
6063
6064 PR fortran/48864
6065 * doc/invoke.texi (Ofast): Document that it
6066 enables Fortran's -fno-protect-parens.
6067
7a2f7208
UB
60682011-05-04 Uros Bizjak <ubizjak@gmail.com>
6069
6070 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6071
a2d42931
EB
60722011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6073
6074 * stor-layout.c (variable_size): Do not issue errors.
6075
f81b1a3d
RG
60762011-05-04 Richard Guenther <rguenther@suse.de>
6077
6078 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6079 for array-ref indices.
6080 (tree_coverage_counter_addr): Likewise.
6081 (build_fn_info_type): Use size_int for index types.
6082 (build_gcov_info): Likewise.
6083
c62c040f
RG
60842011-05-04 Richard Guenther <rguenther@suse.de>
6085
6086 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6087 to build_int_cst.
6088 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6089 for constructor indices.
6090 (push_init_level): Likewise.
6091
1e3287d0
RG
60922011-05-04 Richard Guenther <rguenther@suse.de>
6093
6094 * explow.c (promote_mode): Move variable declarations before code.
6095
6c32445b
NF
60962011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6097
6098 * tree.h (build_function_type_array): Declare.
6099 (build_varargs_function_type_array): Declare.
6100 (build_function_type_vec, build_varargs_function_type_vec): Define.
6101 * tree.c (build_function_type_array_1): New function.
6102 (build_function_type_array): New function.
6103 (build_varargs_function_type_array): New function.
6104
fdabf269
RS
61052011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6106
6107 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6108 before setting STMT_VINFO_TYPE.
6109
a207915a
UW
61102011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6111
6112 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6113 instead of spu_pass_by_reference.
6114
5e617be8
AK
61152011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6116
6117 * calls.c (emit_library_call_value_1): Invoke
6118 promote_function_mode hook on libcall arguments.
6119 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6120 argument being NULL.
6121 * targhooks.c (default_promote_function_mode): Lisewise.
6122 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6123 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6124
6125 * doc/tm.texi: Document that TYPE argument might be NULL.
6126
486d04be
SH
61272011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6128
6129 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6130
9b19b026
SH
61312011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6132
6133 From Bernd Schmidt
6134 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6135
502bc3df
RO
61362011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6137
6138 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6139 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6140 Move ...
6141 * mips-tfile.c: ... here.
6142 Don't include coretypes.h, tm.h, filenames.h.
6143 (saber_stop): Remove definition and all calls.
6144 [__SABER__]: Remove.
6145 (__LINE__): Remove default.
6146 (Size_t, Ptrdiff_t): Remove definitions.
6147 Replace by size_t, ptrdiff_t.
6148 [!MIPS_DEBUGGING_INFO]: Remove.
6149 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6150 (progname): Add const.
6151 (STATIC): Remove.
6152 Replace all uses by static.
6153 (ALIGN_SYMTABLE_OFFSET): Remove default.
6154 * mips-tdump.c: Don't include coretypes.h, tm.h.
6155 Remove !MIPS_IS_STAB guard.
6156 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6157 $(TM_H), filenames.h dependencies.
6158 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6159
991eb6ef
SH
61602011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6161
6162 From Jie Zhang
6163 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6164 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6165
420ccc84
SH
61662011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6167
6168 From Bernd Schmidt
6169 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6170 account and save/restore RETS.
6171 (PROFILE_BEFORE_PROLOGUE): Define.
6172 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6173 the push insn to use predecrement.
6174
9f8d69ee
SH
61752011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6176
6177 From Jie Zhang
6178 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6179
662c03f4
NC
61802011-05-04 Nick Clifton <nickc@redhat.com>
6181
6182 * config/mn10300/mn10300.c: Include cfgloop.h.
6183 (DUMP): New macro.
6184 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6185 Lcc or a FLcc insn into the instruction stream.
6186 (mn10300_block_contains_call): New function. Returns true if the
6187 given basic block contains a CALL insn.
6188 (mn10300_loop_contains_call_insn): New function. Returns true if
6189 the given loop contains a CALL insn.
6190 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6191 to use the SETLB and Lcc or FLcc insns.
6192 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6193 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6194 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6195 disable the SETLB optimization.
6196 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6197 __SETLB__ or __NO_SETLB__.
6198 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6199 (movsf_internal): Handle MDR register.
6200 (cmpsi): Make visible.
6201 (setlb): New pattern.
6202 (Lcc): New pattern.
6203 (FLcc): New pattern.
6204
843b6915
UB
62052011-05-04 Uros Bizjak <ubizjak@gmail.com>
6206
6207 PR target/48860
6208 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6209 for reg<->xmm moves.
6210 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6211 (vec_concatv2di_rex64_sse): Ditto.
6212 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6213 (*vec_extractv2di_1_rex64): Ditto.
6214
6215 Revert:
6216 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6217
6218 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6219 reg<->xmm moves.
6220 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6221
d35936ab
RG
62222011-05-04 Richard Guenther <rguenther@suse.de>
6223
6224 * tree.h (int_const_binop): Remove notrunc argument.
6225 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6226 create integer constants that are properly truncated.
6227 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6228 (const_binop): Remove zero notrunc argument to int_const_binop.
6229 (size_binop_loc): Likewise.
6230 (fold_div_compare): Likewise.
6231 (maybe_canonicalize_comparison_1): Likewise.
6232 (fold_comparison): Likewise.
6233 (fold_binary_loc): Likewise.
6234 (multiple_of_p): Likewise.
6235 * expr.c (store_constructor): Likewise.
6236 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6237 (maybe_fold_stmt_addition): Likewise.
6238 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6239 * stor-layout.c (layout_type): Likewise.
6240 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6241 * tree-sra.c (build_ref_for_offset): Likewise.
6242 (build_user_friendly_ref_for_offset): Likewise.
6243 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6244 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6245 * tree-ssa-loop-niter.c (inverse): Likewise.
6246 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6247 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6248 * tree-switch-conversion.c (check_range): Likewise.
6249 (build_constructors): Likewise.
6250 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6251 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6252 (extract_range_from_assert): Likewise.
6253 (vrp_int_const_binop): Likewise.
6254 (extract_range_from_binary_expr): Likewise.
6255 (extract_range_from_unary_expr): Likewise.
6256 (check_array_ref): Likewise.
6257 (find_case_label_range): Likewise.
6258 (simplify_div_or_mod_using_ranges): Likewise.
6259 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6260 comparing case labels for merging.
6261
8992c063
MW
62622011-05-03 Mark Wielaard <mjw@redhat.com>
6263
6264 * dwarf2out.c (debug_str_hash_forced): Removed.
6265 (gen_label_for_indirect_string): Removed.
6266 (get_debug_string_label): Removed.
6267 (AT_string_form): Generate label directly.
6268 (output_indirect_string): Test indirect_string_node for
6269 DW_FORM_strp instead of checking label and refcount.
6270 (prune_indirect_string): Removed.
6271 (prune_unused_types): Don't check debug_str_hash_forced or
6272 call prune_indirect_string.
6273
4868e6ea
AO
62742011-05-04 Alexandre Oliva <aoliva@redhat.com>
6275
6276 PR other/48093
6277 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6278
01a5c0ab
AO
62792011-05-04 Alexandre Oliva <aoliva@redhat.com>
6280
6281 PR debug/47994
6282 PR debug/47919
6283 * combine.c (try_combine): Skip debug insns at m_split tests.
6284
6ac00218
MW
62852011-04-26 Mark Wielaard <mjw@redhat.com>
6286
6287 PR42288
6288 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6289 when info_section_emitted.
6290
3af42a7b
JM
62912011-05-03 Joseph Myers <joseph@codesourcery.com>
6292
6293 * config/mips/mips-opts.h: New.
6294 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6295 to mips-opts.h.
6296 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6297 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6298 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6299 via opts pointer.
6300 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6301 mips-opts.h.
6302 (mips_abi, mips_code_readable): Don't declare.
843b6915 6303 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
6304 (mabi=): Use Enum and Var.
6305 (mips_abi): New Enum and EnumValue entries.
6306 (mcode-readable=): Use Enum and Var.
6307 (mips_code_readable_setting): New Enum and EnumValue entries.
6308 (mr10k-cache-barrier=): Use Enum and Var.
6309 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6310
1cb1a99f
JH
63112011-05-03 Jan Hubicka <jh@suse.cz>
6312
6313 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6314 replace hash by pointer map.
6315 (cgraph_node_set_element_def, cgraph_node_set_element,
6316 const_cgraph_node_set_element, varpool_node_set_element_def,
6317 varpool_node_set_element, const_varpool_node_set_element): Remove.
6318 (free_cgraph_node_set, free_varpool_node_set): New function.
6319 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6320 * tree-emutls.c: Free varpool node set.
6321 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6322 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6323 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6324 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6325 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6326 Move here from ipa.c; implement using pointer_map
6327 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6328 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6329 debug_cgraph_node_set, varpool_node_set_new,
6330 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6331 dump_varpool_node_set, debug_varpool_node_set):
6332 Move to ipa-uitls.c.
6333 * passes.c (ipa_write_summaries): Update.
6334
7f31f4db
SH
63352011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6336
7a2f7208
UB
6337 From Mike Frysinger:
6338 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6339 bf542/bf544/bf547/bf548/bf549.
7f31f4db 6340
b70fce6d
UB
63412011-05-03 Uros Bizjak <ubizjak@gmail.com>
6342
6343 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6344
265b1d82
SH
63452011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6346
6347 From Bernd Schmidt:
6348 * config/bfin/bfin.md (MOVCC): New mode_macro.
6349 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6350 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6351 comments from generated assembly.
6352
f0b568f3
SH
63532011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6354
6355 From Bernd Schmidt
6356 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6357 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6358 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6359 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6360 * config/bfin/lib1funcs.asm (___muldi3): New function.
6361
2c67cf6e
NF
63622011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6363
6364 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6365 build_function_type_list instead of build_function_type.
6366 Rearrange initialization of `args' to do so.
6367
f9ac28ad
NF
63682011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6369
6370 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6371 instead of build_function_type.
6372
22b8798c
NF
63732011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6374
6375 * config/rs6000/rs6000.c (spe_init_builtins): Call
6376 build_function_type_list instead of build_function_type.
6377 (paired_init_builtins, altivec_init_builtins): Likewise.
6378 (builtin_function_type): Likewise.
6379
4cb44528
NF
63802011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6381
6382 * config/sh/sh.c (sh_media_init_builtins): Call
6383 build_function_type_list instead of build_function_type.
6384
4c203a6a
NF
63852011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6386
6387 * config/sparc/sparc.c (sparc_file_end): Call
6388 build_function_type_list instead of build_function_type.
6389
d6a3d62b
NF
63902011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6391
6392 * config/alpha/alpha.c (alpha_init_builtins): Call
6393 build_function_type_list instead of build_function_type.
6394
de530b86
NF
63952011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6396
6397 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6398 build_function_type_list instead of build_function_type.
6399
baeec5f2
NF
64002011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6401
6402 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6403 build_function_type_list instead of build_function_type.
6404 Delete `endlink' variable.
6405
c19afe52
NF
64062011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6407
6408 * config/avr/avr.c (avr_init_builtins): Call
6409 build_function_type_list instead of build_function_type.
6410
a341df0a
NF
64112011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6412
6413 * config/picochip/picochip.c (picochip_init_builtins): Call
6414 build_function_type_list instead of build_function_type.
6415 Delete `endlink' variable.
6416
2102b1e1
NF
64172011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6418
6419 * config/bfin/bfin.c (bfin_init_builtins): Call
6420 build_function_type_list instead of build_function_type.
6421
9f111209
SH
64222011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6423
6424 From Bernd Schmidt
6425 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6426 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6427
7071d064
SH
64282011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6429
6430 From Jie Zhang:
6431 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6432 libbffastfp overrides libgcc when -mfast-fp.
6433
748f7574 64342011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
6435
6436 Originally from Bernd Schmidt
6437 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6438 * config/bfin/bfin.c (override_options): Test it and error if
6439 TARGET_FDPIC.
6440
1a3a9152
SH
64412011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6442
6443 Originally From Bernd Schmidt
6444 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6445 FD-PIC.
6446
7134c090
JL
64472011-05-03 Jeff Law <law@redhat.com>
6448
6449 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6450 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6451 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
6452 than accessing AUX field directly. Free the AUX field before
6453 clearing it.
7134c090
JL
6454 (thread_block, thread_through_loop_header): Likewise.
6455 (thread_single_edge, mark_threaded_blocks): Likewise.
6456 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6457 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 6458
2c7eebae
BS
64592011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6460
6461 * function.c (init_function_start): Call decide_function_section.
6462 * varasm.c (decide_function_section): New function.
6463 (assemble_start_function): When not using
6464 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6465 or first_function_block_is_cold.
6466 * rtl.h (decide_function_section): Declare.
6467
17038fcf
JJ
64682011-05-03 Uros Bizjak <ubizjak@gmail.com>
6469 Jakub Jelinek <jakub@redhat.com>
6470
6471 PR target/48774
6472 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6473 only succeed if req_mode is the same as set_mode.
6474
3810076b
BS
64752011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6476
6477 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6478 * genemit.c (gen_exp): Handle RETURN.
6479 * emit-rtl.c (verify_rtx_sharing): Likewise.
6480 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6481 * rtl.c (copy_rtx): RETURN is shared.
6482 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6483 (ret_rtx): New.
6484 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6485 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6486 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6487 * config/cris/cris.c (cris_expand_return): Likewise.
6488 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6489 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6490 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6491 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6492 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6493 Likewise.
6494 * config/v850/v850.c (expand_epilogue): Likewise.
6495 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6496 * config/arm/arm.md (epilogue): Likewise.
6497 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6498 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6499 variable to ret_reg.
6500
9efdb4ad
RG
65012011-05-03 Richard Guenther <rguenther@suse.de>
6502
6503 PR lto/48846
6504 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6505 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6506 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6507
60a45536
RG
65082011-05-03 Richard Guenther <rguenther@suse.de>
6509
6510 * c-decl.c (grokdeclarator): Instead of looking at
6511 TREE_OVERFLOW check if the constant fits in the index type.
6512
3188ed59
RS
65132011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6514
6515 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6516 (vec_store_lanes<mode><mode>): Likewise.
6517
272c6793
RS
65182011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6519
6520 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6521 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6522 convert_optab_index values.
6523 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6524 * genopinit.c (optabs): Initialize the new optabs.
6525 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6526 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6527 (expand_STORE_LANES): New functions.
6528 * tree.h (build_array_type_nelts): Declare.
6529 * tree.c (build_array_type_nelts): New function.
6530 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6531 (vect_model_load_cost): Likewise.
6532 (vect_store_lanes_supported, vect_load_lanes_supported)
6533 (vect_record_strided_load_vectors): Declare.
6534 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6535 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6536 (vect_transform_strided_load): Split out statement recording into...
6537 (vect_record_strided_load_vectors): ...this new function.
6538 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6539 (write_vector_array, create_array_ref): New functions.
6540 (vect_model_store_cost): Add store_lanes_p argument.
6541 (vect_model_load_cost): Add load_lanes_p argument.
6542 (vectorizable_store): Try to use store-lanes functions for
6543 interleaved stores.
6544 (vectorizable_load): Likewise load-lanes and loads.
6545 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6546 to vect_model_store_cost.
6547 (vect_build_slp_tree): Likewise vect_model_load_cost.
6548
0f6d54f7
RS
65492011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6550
6551 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6552 * hooks.c (hook_bool_mode_uhwi_false): New function.
6553 * target.def (array_mode_supported_p): New hook.
6554 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6555 * doc/tm.texi: Regenerate.
6556 * stor-layout.c (mode_for_array): New function.
6557 (layout_type): Use it.
6558 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6559 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6560
b15eacc7
EB
65612011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6562
6563 PR target/48723
6564 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6565 for -fstack-check if the size to allocate is negative.
6566
575bfb00
LC
65672011-05-02 Lawrence Crowl <crowl@google.com>
6568
6569 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6570 (timevar_cond_start): New for starting a timer only when it is not
6571 already running.
6572 (timevar_cond_stop): New for stopping a timer when it was not already
6573 running.
6574
6575 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6576 (timevar_cond_start): New as above.
6577 (timevar_cond_stop): New as above.
6578
6579 * timevar.def: Add start/stop timers for compiler phases,
6580 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6581 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6582 and TV_PHASE_FINALIZE.
6583 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6584 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6585 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6586 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6587 Make unused TV_OVERLOAD into a start/stop timer.
6588
6589 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6590 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6591 to indicate that they are start/stop timers.
6592
6593 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6594 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6595 Move initialization to do_compile.
6596 (do_compile): Add initialization from above.
6597 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6598
6599 * c-decl.c (c_write_global_declarations): Add start/stop of
6600 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6601
6602 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6603 or TV_PARSE_INLINE, as appropriate.
6604 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6605 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6606
3533b943
JM
66072011-05-02 Jason Merrill <jason@redhat.com>
6608
6609 PR c++/40975
6610 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6611
2609a0ce
SM
66122011-05-02 Simon Martin <simartin@users.sourceforge.net>
6613
6614 PR c/35445
6615 * c-decl.c (finish_decl): Only create a composite if the types are
6616 compatible.
6617
6b0e4cbb
JM
66182011-05-02 Joseph Myers <joseph@codesourcery.com>
6619
6620 * config/fr30/fr30-protos.h (Mmode): Don't define.
6621 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6622 definition where used.
6623 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6624 define. Expand definitions where used.
6625 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6626 Expand definitions where used.
6627 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6628 rx_function_arg, rx_function_arg_advance,
6629 rx_function_arg_boundary): Expand definitions of those macros.
6630 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6631 definition where used.
6632
4e938ce6
UB
66332011-05-02 Uros Bizjak <ubizjak@gmail.com>
6634
6635 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6636 reg<->xmm moves.
6637 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6638 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6639 with *movv2sf_internal_rex64_avx.
6640 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6641 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6642 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6643 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6644 "vex" in "prefix" attribute calculation.
6645 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6646
36019c19
SH
66472011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6648
7a2f7208
UB
6649 PR target/47951
6650 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6651 inputs match the output.
36019c19 6652
f69ea688
AS
66532011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6654
6655 PR target/47955
6656 * config/m68k/m68k.c (m68k_expand_prologue): Set
6657 current_function_static_stack_size.
6658
c33406f5
JH
66592011-05-02 Jan Hubicka <jh@suse.cz>
6660
6661 * lto-streamer.c (lto_streamer_cache_insert_1,
6662 lto_streamer_cache_lookup, lto_streamer_cache_create,
6663 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6664 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6665
47c94d21
JM
66662011-05-02 Joseph Myers <joseph@codesourcery.com>
6667
6668 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6669 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6670 config/m68k/t-opts: New files.
6671 * config/m68k/m68k-tables.opt: New file (generated).
6672 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6673 extra_options and m68k/t-opts to tmake_file.
6674 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6675 (all_isas): Initialize using m68k-isas.def.
6676 (all_microarchs): Initialize using m68k-microarchs.def.
6677 (m68k_find_selection): Remove.
6678 (m68k_handle_option): Don't assert that global structures are in
6679 use. Use error_at. Access variables via opts pointer. Don't
6680 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6681 directly for -m68020-40 and -m68020-60.
6682 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6683 m68k_tune_entry here.
6684 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6685 to m68k-opts.h.
6686 (m68k_library_id_string): Remove declaration.
4e938ce6 6687 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
6688 (m68k_library_id_string): New Variable.
6689 (march=, mcpu=, mtune=): Use Enum and Var.
6690
e562bf36
RG
66912011-05-02 Richard Guenther <rguenther@suse.de>
6692
6693 * varasm.c (output_constructor_regular_field): Compute zero-based
6694 index with double-ints. Make sure to ICE instead of producing
6695 wrong code.
6696 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6697 in asserts. Properly use a signed type.
6698
6bec6c98
UB
66992011-05-02 Uros Bizjak <ubizjak@gmail.com>
6700
6701 * config/i386/sse.md (V): New mode iterator.
6702 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6703 TARGET_SSE2.
6704 (V_256): Rename from AVX256MODE.
6705 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6706 condition to all users.
6707 (VF1): Ditto.
6708 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6709 condition to all users.
6710 (VF_128): Make V4SF mode unconditional.
6711 (VF_256): Rename from AVX256MODEF2P.
6712 (VI4F_128): Rename from SSEMODE4S.
6713 (VI8F_128): Rename from SSEMODE2D.
6714 (VI4F_256): Rename from AVX256MODE8P.
6715 (VI8F_256): Rename from AVX256MODE4P.
6716 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6717 (ssescalarmodesuffix): Remove SF and DF modes.
6718 (SSEMODE124): Remove.
6719 (SSEMODE1248): Ditto.
6720 (SSEMODEF2P): Ditto.
6721 (AVXMODEF2P): Ditto.
6722 (AVXMODEFDP): Ditto.
6723 (AVXMODEFSP): Ditto.
6724 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6725 unconditional.
6726 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6727 unconditional.
6728 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6729 xop_pcmov_<mode>256. Use V mode iterator.
6730
6731 Adjust RTX patterns globally for renamed mode attributes.
6732
2dfdcb4b
UW
67332011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6734
6735 * haifa-sched.c (sched_emit_insn): Emit insn before first
6736 non-scheduled insn. Inform back-end about new insn. Add
6737 new insn to scheduled_insns list.
6738
90bc4623
RG
67392011-05-02 Richard Guenther <rguenther@suse.de>
6740
6741 PR tree-optimization/48822
6742 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6743 (process_scc): Indicate which iteration we start.
6744
bc0fe8cb
JH
67452011-05-02 Jan Hubicka <jh@suse.cz>
6746
6747 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6748 (lto_section_overrun): New.
6749 * lto-section-out.c (append_block): Rename to ...
6750 (lto_append_block): ... this one; export.
6751 (lto_output_1_stream): Move lto lto-streamer.h
6752 (lto_output_data_stream): Update.
6753 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6754 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6755 functions.
6756
f070a9d1
RG
67572011-05-02 Richard Guenther <rguenther@suse.de>
6758
6759 * tree.c (tree_code_counts): New global array.
6760 (record_node_allocation_statistics): Count individual tree codes.
6761 (dump_tree_statistics): Dump individual code stats.
6762
09dfe187
JH
67632011-05-01 Jan Hubicka <jh@suse.cz>
6764
6765 * ipa-inline.c (caller_growth_limits): Fix thinko when
6766 looking for largest stack frame.
6767 * ipa-inline.h (dump_inline_summary): Declare.
6768 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6769 on stack usage.
6770 (dump_inline_summary): Export.
6771 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6772
6f76a878
AS
67732011-05-01 Anatoly Sokolov <aesok@post.ru>
6774
6775 * reginfo.c (memory_move_cost): Change rclass argument type form
6776 'enum reg_class' to reg_class_t.
6777 * reload.h (memory_move_cost): Update prototype.
6778 * postreload.c reload_cse_simplify_set): Change type dclass var to
6779 reg_class_t.
6780 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6781 Update prototype.
6782 (ira_allocate_and_set_costs): Change aclass argument type form
6783 'enum reg_class' to reg_class_t.
6bec6c98 6784 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
6785 Change aclass argument type to reg_class_t.
6786 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6787 to reg_class_t.
6788 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6789 memory_move_cost call.
6790
6791 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6792 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6793 Change type tmp var to reg_class_t.
6794
9a4ac625
JH
67952011-04-30 Jan Hubicka <jh@suse.cz>
6796
6797 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6798 inlining into function with flatten attribute.
6799 (want_inline_small_function_p): Be more realistic about inlining
6800 cold calls where callee size grows.
6801
dd8352ee
JH
68022011-04-30 Jan Hubicka <jh@suse.cz>
6803
6804 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6805 flags.
6806
46e43d2b
AS
68072011-04-30 Anatoly Sokolov <aesok@post.ru>
6808
6809 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6810 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6811 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6812 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6813 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6814 (print_operand): Rename to...
6815 (sparc_print_operand): ...this. Make static. Adjust
6816 sparc_print_operand function call.
6817 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6818 functions.
6819
ecb62563
JH
68202011-04-30 Jan Hubicka <jh@suse.cz>
6821
6bec6c98 6822 PR middle-end/48752
ecb62563
JH
6823 * ipa-inline.c (early_inliner): Disable when doing late
6824 addition of function.
6825
edb9b69e
JJ
68262011-04-30 Jakub Jelinek <jakub@redhat.com>
6827
be80a87e
JJ
6828 * dwarf2out.c (get_address_mode): New inline.
6829 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6830 if not dwarf_strict emit
6831 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6832 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6833 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6834 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6835 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6836 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6837 mem_loc_descriptor callers.
6838 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6839 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6840 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6841 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6842 (base_types): New variable.
6843 (get_base_type_offset, calc_base_type_die_sizes,
6844 base_type_for_mode, mark_base_types, base_type_cmp,
6845 move_marked_base_types): New functions.
6846 (calc_die_sizes): Assert that die_offset is 0 or equal to
6847 next_die_offset.
6848 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6849 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6850 callers. If not dwarf_strict, call mem_loc_descriptor even for
6851 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6852 (gen_subprogram_die): Don't give up on call site parameters
6853 with non-integral or large integral modes. Adjust
6854 mem_loc_descriptor callers.
6855 (prune_unused_types): Call prune_unused_types_mark on base_types
6856 vector entries.
6857 (resolve_addr): Call mark_base_types.
6858 (dwarf2out_finish): Call move_marked_base_types.
6859
edb9b69e
JJ
6860 PR tree-optimization/48809
6861 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6862 type.
6863 (gen_inbound_check): Don't compute index_expr - range_min in utype
6864 again, instead reuse SSA_NAME initialized in build_arrays.
6865 Remove two useless gsi_for_stmt calls.
6866
a6545a3d
JL
68672011-04-29 Jeff Law <law@redhat.com>
6868
6869 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6870
af8bca3c
MJ
68712011-04-29 Martin Jambor <mjambor@suse.cz>
6872
6873 * cgraph.h (cgraph_postorder): Remove declaration.
6874 * ipa-utils.h (ipa_free_postorder_info): Declare.
6875 (ipa_reverse_postorder): Likewise.
6876 * cgraphunit.c: Include ipa-utils.h.
6877 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6878 * ipa-inline.c: Include ipa-utils.h.
6879 (ipa_inline): Update call to ipa_reverse_postorder.
6880 * ipa-pure-const.c (propagate_pure_const): Update call to
6881 ipa_reduced_postorder and ipa_print_order. Call
6882 ipa_free_postorder_info to clean up.
6883 (propagate_nothrow): Likewise.
6884 * ipa-reference.c (propagate): Removed a useless call to
6885 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6886 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6887 * ipa.c: Include ipa-utils.h.
6888 (ipa_profile): Update call to ipa_reverse_postorder.
6889 (cgraph_postorder): Moved to...
6890 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6891 (ipa_utils_print_order): Renamed to ipa_print_order.
6892 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6893 comments.
6894 (ipa_free_postorder_info): New function.
6895 * passes.c: Include ipa-utils.h.
6896 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6897 (ipa_write_summaries): Likewise.
6898 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6899 (cgraphunit.o): Likewise.
6900 (ipa.o): Likewise.
6901 (ipa-inline.o): Likewise.
6902
b15c64ee
JH
69032011-04-29 Jan Hubicka <jh@suse.cz>
6904
6905 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6906 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6907 * ipa-inline.h (clause_t): Turn into unsigned int.
6908 * ipa-inline-analysis.c (add_clause): Do more simplification.
6909 (and_predicates): Shortcut more cases.
6910 (predicates_equal_p): Move forward; check that clauses are properly
6911 ordered.
6912 (or_predicates): Shortcut more cases.
6913 (edge_execution_predicate): Rewrite as...
6914 (set_cond_stmt_execution_predicate): ... this function; handle
6915 __builtin_constant_p.
6916 (set_switch_stmt_execution_predicate): New .
6917 (compute_bb_predicates): New.
6918 (will_be_nonconstant_predicate): Update TODO.
6919 (estimate_function_body_sizes): Use compute_bb_predicates
6920 and free them later, always try to estimate if stmt is constant.
6921 (estimate_time_after_inlining, estimate_size_after_inlining):
6922 Gracefully handle optimized out edges.
6923 (read_predicate): Fix off by one error.
6924
a88fdc2a
NP
69252011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6926
6927 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6928
d984c8ef
XDL
69292011-04-27 Xinliang David Li <davidxl@google.com>
6930
6931 * tree-profile.c (init_ic_make_global_vars): Set
6932 tls attribute on ic vars.
6933 * coverage.c (coverage_end_function): Initialize
6934 function_list with zero.
6935
45a2c477
RG
69362011-04-29 Richard Guenther <rguenther@suse.de>
6937
6938 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6939 for the type of the result.
6940 (fold_builtin_isascii): Likewise.
6941 (fold_builtin_toascii): Use integer_type_node where appropriate.
6942 (fold_builtin_logb): Likewise.
6943 (fold_builtin_frexp): Likewise.
6944 (fold_builtin_strstr): Likewise.
6945 (fold_builtin_strpbrk): Likewise.
6946 (fold_builtin_fputs): Likewise.
6947 (fold_builtin_sprintf): Likewise.
6948 (fold_builtin_snprintf): Likewise.
6949 (fold_builtin_printf): Likewise.
6950 (do_mpfr_remquo): Use a proper type for the assigned constant.
6951 (do_mpfr_lgamma_r): Likewise.
6952 * dwarf2out.c (resolve_one_addr): Use size_int.
6953 * except.c (init_eh): Likewise.
6954 (assign_filter_values): Use integer_type_node for filter values.
6955 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6956 indices.
6957 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6958 for EH region numbers.
6959 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6960 for the shift amount.
6961
eb6c3df1
RG
69622011-04-29 Richard Guenther <rguenther@suse.de>
6963
6964 * expr.h (expand_shift): Rename to ...
6965 (expand_variable_shift): ... this.
6966 (expand_shift): Take a constant shift amount.
6967 * expmed.c (expand_shift): Rename to ...
6968 (expand_variable_shift): ... this.
6969 (expand_shift): New wrapper around expand_variable_shift.
6970 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6971 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6972 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6973 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6974 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6975 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6976 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6977 emit_store_flag_1, emit_store_flag): Likewise.
6978 * builtins.c (expand_builtin_signbit): Likewise.
6979 * calls.c (load_register_parameters): Likewise.
6980 * function.c (assign_parm_setup_block): Likewise.
6981 * lower-subreg.c (resolve_shift_zext): Likewise.
6982 * optabs.c (widen_bswap, expand_abs_nojump,
6983 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6984 * spu/spu.c (spu_expand_extv): Likewise.
6985 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6986
9f616812
RG
69872011-04-29 Richard Guenther <rguenther@suse.de>
6988
6989 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6990 for the remapped region number.
6991 * predict.c (build_predict_expr): Use integer_type_node for the
6992 predict kind.
6993 * fold-const.c (fold_binary_loc): Use integer_type_node for
6994 the shift amount. Use a proper type for the PLUS_EXPR operand.
6995
b823cdfe
MM
69962011-04-29 Michael Matz <matz@suse.de>
6997
6998 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6999 other trees that just builtins.
7000 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7001
413581ba
RG
70022011-04-29 Richard Guenther <rguenther@suse.de>
7003
7004 * tree-nested.c (get_trampoline_type): Use size_int.
7005 (get_nl_goto_field): Likewise.
7006 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7007 for all indexes.
7008 (lower_eh_constructs_2): Likewise.
7009 (lower_resx): Likewise.
7010 (lower_eh_dispatch): Likewise.
7011 * tree-mudflap.c (mf_build_string): Use size_int.
7012 (mudflap_register_call): Use integer_type_node for the flag.
7013 (mudflap_enqueue_constant): Use size_int.
7014 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7015 instead of rebuilding it.
7016
5c04e9f4
RG
70172011-04-29 Richard Guenther <rguenther@suse.de>
7018
7019 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7020 Handle OBJ_TYPE_REF.
7021 (find_func_aliases_for_call): Use it more consistently.
7022
5c24671b
AO
70232011-04-29 Alexandre Oliva <aoliva@redhat.com>
7024
7025 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7026 (rank_for_schedule): Use it.
7027 (schedule_block): Set it.
7028
10adac51
XDL
70292011-04-28 David Li <davidxl@google.com>
7030
7031 * tree.c (crc32_string): Use crc32_byte.
7032 (crc32_byte): New function.
7033 * tree.h (crc32_byte): New function.
7034 * gcov.c (read_graph_file): Handle new cfg_cksum.
7035 (read_count_file): Ditto.
7036 * profile.c (instrument_values): Ditto.
7037 (get_exec_counts): Ditto.
7038 (read_profile_edge_counts): Ditto.
7039 (compute_branch_probabilities): Ditto.
7040 (compute_value_histograms): Ditto.
7041 (branch_prob): Ditto.
7042 (end_branch_prob): Ditto.
7043 * coverage.c (read_counts_file): Ditto.
7044 (get_coverage_counts): Ditto.
7045 (tree_coverage_counter_addr): Ditto.
7046 (coverage_checksum_string): Ditto.
7047 (coverage_begin_output): Ditto.
7048 (coverage_end_function): Ditto.
7049 (build_fn_info_type): Ditto.
7050 (build_fn_info_value): Ditto.
7051 * libgcov.c (gcov_exit): Ditto.
7052 * gcov-dump.c (tag_function): Ditto.
7053 (compute_checksum): Remove.
7054
5d6358a5
AM
70552011-04-29 Alan Modra <amodra@gmail.com>
7056
7057 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7058 unspec plus offset. Tidy macho code.
7059
85ad2ef5
MJ
70602011-04-29 Martin Jambor <mjambor@suse.cz>
7061
7062 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7063 node instead of a decl. Update all callers.
7064 * cgraph.h: Update declaration.
7065
437f4a00
IR
70662011-04-28 Ira Rosen <ira.rosen@linaro.org>
7067
7068 PR tree-optimization/48765
7069 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7070 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7071 to indicate if loop aware SLP is being used. Scan the statements
7072 and update the vectorization factor according to the type of
7073 vectorization before statement analysis.
7074 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7075 pass it to vect_analyze_loop_operations.
7076 (vectorizable_reduction): Set number of copies to 1 in case of pure
7077 SLP statement.
7078 * tree-vect-stmts.c (vectorizable_conversion,
7079 vectorizable_assignment, vectorizable_shift,
7080 vectorizable_operation, vectorizable_type_demotion,
7081 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7082 Likewise.
7083 (vectorizable_condition): Move the check that it is not SLP
7084 vectorization before the number of copies check.
7085 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7086 to vectorize the loop using SLP.
7087
c6fc44f3
JJ
70882011-04-28 Jakub Jelinek <jakub@redhat.com>
7089
7090 PR middle-end/48597
7091 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7092 inline asm.
7093
6c0170ea
JM
70942011-04-28 Joseph Myers <joseph@codesourcery.com>
7095
7096 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7097 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7098 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7099 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7100 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7101 linux*.h headers.
6bec6c98 7102 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
7103 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7104 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7105 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 7106 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
7107 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7108 REG_NAME.
7109 * config/i386/linux.h (REG_NAME): Don't define.
7110 * config/i386/linux64.h (REG_NAME): Don't define.
7111 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7112 Undefine before defining.
7113
970dabbd
JH
71142011-04-28 Jan Hubicka <jh@suse.cz>
7115
6bec6c98
UB
7116 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7117 nonconstant_names array.
970dabbd
JH
7118 (estimate_function_body_sizes): Build nonconstant_names array; handle
7119 BUILT_IN_CONSTANT_P.
7120
8d3e3924
RG
71212011-04-28 Richard Guenther <rguenther@suse.de>
7122
7123 PR bootstrap/48804
7124 Revert
7125 2011-04-28 Richard Guenther <rguenther@suse.de>
7126
7127 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7128 as late as possible.
6bec6c98 7129
8576f20a
RG
71302011-04-28 Richard Guenther <rguenther@suse.de>
7131
7132 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7133 (debug_constraint): Do it here.
7134 (dump_constraints): And here.
7135 (rewrite_constraints): And here.
7136 (dump_constraint_edge): Remove.
7137 (dump_constraint_graph): Rewrite to produce DOT output.
7138 (solve_constraints): Build succ graph as late as possible.
7139 Dump constraint graphs before and after solving.
7140
e38811ce
RG
71412011-04-28 Richard Guenther <rguenther@suse.de>
7142
7143 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7144 New function split out from ...
7145 (find_func_aliases): ... here. Call it.
7146 (find_func_aliases_for_call): Likewise.
7147
fbaf0d0c
GDR
71482011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7149
7150 * internal-fn.h (internal_fn_name_array): Declare.
7151 (internal_fn_flags_array): Likewise.
7152
cbb734aa
UB
71532011-04-27 Uros Bizjak <ubizjak@gmail.com>
7154
7155 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7156 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7157 Move from sse.md.
7158 (ssemodefsuffix): Remove.
7159 (ssevecmodesuffix): New mode attribute.
7160 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7161 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7162 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7163 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7164 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7165 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7166 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7167 ssemodesuffix mode attribute.
7168 (float splitters): Use ssevecmodesuffix mode attribute.
7169 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7170 (sseinsmode): Rename from avxvecmode.
7171 (avxsizesuffix): Rename from avxmodesuffix.
7172 (sseintvecmode): Rename from avxpermvecmode.
7173 (ssedoublevecmode): Rename from ssedoublesizemode.
7174 (ssehalfvecmode): Rename from avxhalfvecmode.
7175 (ssescalarmode): Rename from avxscalarmode.
7176 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7177 templates for ssemodesuffix mode attribute.
7178 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7179 mode attribute.
7180
7181 Adjust RTX patterns globally for renamed mode attributes.
7182
991278ab
JH
71832011-04-27 Jan Hubcika <jh@suse.cz>
7184
7185 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7186 * ipa-inline-analysis.c: Include alloc-pool.h.
7187 (edge_predicate_pool): New.
7188 (trye_predicate_p): New function
7189 (false_predicate_p): New function.
7190 (add_clause): Sanity check that false clauses are "optimized";
7191 never add clauses to predicate that is already known to be false.
7192 (and_predicate): Use flase_predicate_p.
7193 (evaulate_predicate): Rename to ...
7194 (evaluate_predicate): ... this one; update all callers; assert
7195 that false is not listed among possible truths.
7196 (dump_predicate): Use true_predicate_p.
7197 (account_size_time): Use false_predicate_p.
7198 (evaulate_conditions_for_edge): Rename to ...
7199 (evaluate_conditions_for_edge) ... this one.
7200 (edge_set_predicate): New function.
7201 (inline_edge_duplication_hook): Duplicate edge predicates.
7202 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 7203 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
7204 (dump_inline_summary): Update.
7205 (estimate_function_body_sizes): Set edge predicates.
7206 (estimate_calls_size_and_time): Handle predicates.
7207 (estimate_callee_size_and_time): Update.
7208 (remap_predicate): Add toplev_predicate; update comment.
7209 (remap_edge_predicates): New function.
7210 (inline_merge_summary): Compute toplev predicate; update.
7211 (read_predicate): New function.
7212 (read_inline_edge_summary): Use it.
7213 (inline_read_section): Likewise.
7214 (write_predicate): New function.
7215 (write_inline_edge_summary): Use it.
7216 (inline_write_summary): Likewise.
7217 (inline_free_summary): Free alloc pool and edge summary vec.
7218
648b5f85
RG
72192011-04-27 Richard Guenther <rguenther@suse.de>
7220
7221 * tree-ssa-structalias.c (changed_count): Remove.
7222 (changed): Use a bitmap.
7223 (unify_nodes): Adjust.
7224 (do_sd_constraint): Likewise.
7225 (do_ds_constraint): Likewise.
7226 (do_complex_constraint): Likewise.
7227 (solve_graph): Likewise.
7228
4d5dcfb2
JH
72292011-04-27 Jan Hubicka <jh@suse.cz>
7230
7231 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7232
200eb7d2
UB
72332011-04-27 Uros Bizjak <ubizjak@gmail.com>
7234
7235 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7236 (avx_vperm2f128_*_operand): Ditto.
7237 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7238 Use avx_vpermilp_parallel in insn condition.
7239 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7240 Use avx_vperm2f128_parallel in insn condition.
7241
7d6e2521
RG
72422011-04-27 Richard Guenther <rguenther@suse.de>
7243
7244 * Makefile.in (tree-ssa-structalias.o): Remove
7245 gt-tree-ssa-structalias.h dependency.
7246 (GTFILES): Remove tree-ssa-structalias.c.
7247 * tree.c (allocate_decl_uid): New function.
7248 (make_node_stat): Use it.
7249 (copy_node_stat): Likewise.
7250 * tree.h (allocate_decl_uid): Declare.
7251 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7252 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7253 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 7254 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
7255 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7256 (struct heapvar_map): Likewise.
7257 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7258 heapvar_insert): Likewise.
7259 (make_heapvar_for): Rename to ...
7260 (make_heapvar): ... this. Simplify.
7261 (fake_var_decl_obstack): New global var.
7262 (build_fake_var_decl): New function.
7263 (make_constraint_from_heapvar): Adjust.
7264 (handle_lhs_call): Likewise.
7265 (create_function_info_for): Likewise.
7266 (intra_create_variable_infos): Likewise.
7267 (init_alias_vars): Allocate fake_var_decl_obstack.
7268 (init_alias_heapvars, delete_alias_heapvars): Remove.
7269 (compute_points_to_sets): Do not call init_alias_heapvars.
7270 (ipa_pta_execute): Likewise.
7271 (delete_points_to_sets): Free fake_var_decl_obstack.
7272
526ed6c2
UW
72732011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7274
7275 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7276 (si_from_UTItype, si_to_UTItype): New functions.
7277 (__udivmodti4): Use them to implement type-punning.
7278 * config/spu/multi3.c (union qword_TItype): New data type.
7279 (si_from_TItype, si_to_TItype): New functions.
7280 (__multi3): Use them to implement type-punning.
7281
c187d33c
UW
72822011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7283
7284 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7285
40982661
JH
72862011-04-27 Jan Hubicka <jh@suse.cz>
7287
7288 * ipa-prop.c (function_insertion_hook_holder): New holder.
7289 (ipa_add_new_function): New function.
200eb7d2
UB
7290 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7291 Register/deregister holder.
40982661 7292
9aef53ee
RG
72932011-04-27 Richard Guenther <rguenther@suse.de>
7294
7295 PR tree-optimization/48772
200eb7d2 7296 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 7297
f63d806d
RG
72982011-04-27 Richard Guenther <rguenther@suse.de>
7299
7300 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7301 TARGET_MEM_REF handling.
7302
e1ea7451
NC
73032011-04-27 Nick Clifton <nickc@redhat.com>
7304
9b5db25d
NC
7305 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7306 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7307 (REG_CLASS_NAMES): Likewise.
7308 (REG_CLASS_CONTENTS): Likewise.
7309 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7310 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7311 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7312 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7313 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7314 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7315 duplicate register classes.
97d20907 7316 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
7317 (frv_register_move_cost): Likewise.
7318
e1ea7451
NC
7319 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7320 end of the regno_reg_class array.
7321
5c2f94b4
JJ
73222011-04-27 Jakub Jelinek <jakub@redhat.com>
7323
7324 PR c/48742
7325 * c-typeck.c (build_binary_op): Don't wrap arguments if
7326 int_operands is true.
7327
57a944d7
KK
73282011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7329
7330 PR target/48767
7331 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7332 targetm.calls.must_pass_in_stack for void type.
7333
898b8927
JH
73342011-04-26 Jan Hubicka <jh@suse.cz>
7335
7336 * cgraphbuild.c (build_cgraph_edges): Update call
7337 of cgraph_create_edge and cgraph_create_indirect_edge.
7338 * cgraph.c (cgraph_create_edge_including_clones,
7339 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7340 cgraph_update_edges_for_call_stmt_node): Do not take nest
7341 argument; do not initialize call_stmt_size/time.
7342 (dump_cgraph_node): Do not dump nest.
7343 (cgraph_clone_edge): Do not take loop_nest argument;
7344 do not propagate it; do not clone call_stmt_size/time.
7345 (cgraph_clone_node): Likewise.
7346 (cgraph_create_virtual_clone): Update.
7347 * cgraph.h (struct cgraph_edge): Remove
7348 call_stmt_size/call_stmt_time/loop_nest.
7349 (cgraph_create_edge, cgraph_create_indirect_edge,
7350 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7351 prototype.
7352 * tree-emutls.c (gen_emutls_addr): Update.
7353 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7354 loop_nest; handle indirect calls, too.
7355 (clone_inlined_nodes): Do not care about updating inline summaries.
7356 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7357 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7358 stream call_stmt_size/call_stmt_time/loop_nest.
7359 * ipa-inline.c (edge_badness): Update.
7360 (ipa_inline): dump summaries after inlining.
7361 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 7362 New.
898b8927
JH
7363 (inline_edge_summary): New function.
7364 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7365 (inline_edge_removal_hook): Handle edge summaries.
7366 (inline_edge_duplication_hook): New hook.
7367 (inline_summary_alloc): Alloc hooks.
7368 (initialize_growth_caches): Do not register removal hooks.
7369 (free_growth_caches); Do not free removal hook.
7370 (dump_inline_edge_summary): New function.
7371 (dump_inline_summary): Use it.
7372 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7373 (inline_update_callee_summaries): New function.
7374 (inline_merge_summary): Use it.
7375 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7376 (read_inline_edge_summary): New function.
7377 (inline_read_section): Use it.
7378 (write_inline_edge_summary): New function.
7379 (inline_write_summary): Use it.
7380 (inline_free_summary): Free edge new holders.
7381 * tree-inline.c (copy_bb): Update.
7382
ffa03772
JM
73832011-04-26 Jason Merrill <jason@redhat.com>
7384
7385 * tree-eh.c (lower_try_finally_switch): Create the label along with
7386 the CASE_LABEL_EXPR.
7387
6d7b45ad
DM
73882011-04-26 David S. Miller <davem@davemloft.net>
7389 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7390
7391 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7392 * configure: Regenerate.
7393
df10b6d4
MM
73942011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7395
7396 PR target/48258
7397 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7398 reduction.
7399 (VEC_reduc): New code iterator and splitters for vector reduction.
7400 (VEC_reduc_name): Ditto.
7401 (VEC_reduc_rtx): Ditto.
7402 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7403 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7404
7405 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7406 support for extracting SF on VSX.
7407
7408 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7409 generating xscvspdp.
7410 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7411 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7412 double add, minimum, maximum vector reduction.
7413 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7414 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7415 optimize double vector reduction.
7416 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7417
35a5db04
JM
74182011-04-26 Joseph Myers <joseph@codesourcery.com>
7419
7420 * config/fr30/fr30.h (inhibit_libc): Don't define.
7421 * config/m32r/m32r-protos.h: Correct comment.
7422 * config/v850/v850.h (GHS_default_section_names,
7423 GHS_current_section_names): Use tree, not union tree_node *.
7424
2f964ad6
XDL
74252011-04-26 Xinliang David Li <davidxl@google.com>
7426
200eb7d2 7427 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
7428 * c-family/c-opts.c (c_common_handle_option): Set
7429 warn_maybe_uninitialized.
7430 * opts.c (common_handle_option): Ditto.
7431 * common.opt: New option.
7432 * tree-ssa.c (warn_uninit): Add one more parameter.
7433 (warn_uninitialized_var): Pass warning code.
7434 * tree-flow.h: Interface change.
7435
9c7bd91a
RO
74362011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7437
200eb7d2 7438 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
7439 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7440 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7441
c2f36e21
RO
74422011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7443
7444 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7445 * config/mips/mips.opt (mmips-tfile): Remove.
7446
7447 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7448 mips-tdump reference to ...
200eb7d2 7449 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
7450 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7451 reference by Tru64 UNIX.
7452
2c9da85b
JJ
74532011-04-26 Jakub Jelinek <jakub@redhat.com>
7454
0c5f6539
JJ
7455 PR debug/48768
7456 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7457 is error_mark_node, set value to NULL.
7458
2c9da85b
JJ
7459 PR tree-optimization/48734
7460 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7461 if return value from maybe_fold_*_comparsions isn't something
7462 the code is prepared to handle.
7463
77fa1d54
UB
74642011-04-26 Uros Bizjak <ubizjak@gmail.com>
7465
7466 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7467 mode check.
7468 (ext_QIreg_nomode_operands): Remove.
7469 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7470 (*andsi_1): Ditto.
7471 (*andhi_1): Ditto.
7472
0e2a6c2b
AS
74732011-04-26 Andrew Stubbs <ams@codesourcery.com>
7474
7475 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7476
961562d8
RB
74772011-04-26 Richard Guenther <rguenther@suse.de>
7478
7479 * c-typeck.c (build_unary_op): Do not expand array-refs via
7480 pointer arithmetic. Only adjust qualifiers for function types.
7481
74822011-04-26 Richard Guenther <rguenther@suse.de>
7483
7484 PR middle-end/48694
7485 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7486 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
7487 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7488 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 7489
a0d260fc
PC
74902011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7491
6bec6c98 7492 * doc/extend.texi: Document __underlying_type.
a0d260fc 7493
4d583bb9
SB
74942011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7495
7496 * config/rs6000/titan.md (automata_option "progress"): Remove.
7497
1f3fcdc3
JL
74982011-04-25 Jeff Law <law@redhat.com>
7499
7500 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7501
e5b0dad8
JK
75022011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 * system.h (ENUM_BITFIELD): Remove.
7505
5157a881 75062011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 7507 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
7508
7509 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7510 for STORE_FLAG_VALUE==-1 case.
7511
ed4c109e
RS
75122011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7513
7514 PR target/43804
7515 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7516 LEGITIMATE_PIC_OPERAND_P.
7517
f3181aa2
JH
75182011-04-24 Jan Hubicka <jh@suse.cz>
7519
7520 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7521 WPA hack.
77fa1d54
UB
7522 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7523 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7524 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
7525 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7526 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7527 Sanity check predicate length.
7528 (remap_predicate): Likewise; sanity check jump functions.
7529 (inline_read_section, inline_write_summary): Sanity check
7530 predicate length.
7531
5307cbaa
PC
75322011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7533
7534 PR other/48748
7535 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7536 __is_literal_type, and __is_trivial; update throughout about
7537 possibly cv-qualified void types.
7538
bebd5f99
GP
75392011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7540
7541 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7542 testsuite and make it version agnostic.
7543
7ee28a74
JH
75442011-04-22 Jan Hubicka <jh@suse.cz>
7545
7546 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7547
16997bc0
JJ
75482011-04-23 Jakub Jelinek <jakub@redhat.com>
7549
7550 PR c/48685
7551 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7552 to VOID_TYPE even around MODIFY_EXPR.
7553
f94d4ab1
MS
75542011-04-22 Mike Stump <mikestump@comcast.net>
7555
1a84c183 7556 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
7557 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7558 comment.
7559
632b4f8e
JH
75602011-04-22 Jan Hubicka <jh@suse.cz>
7561
7562 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
7563 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7564 ipa-prop.c; update all uses.
632b4f8e 7565 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
7566 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7567 merge summary of inlined function into former caller.
632b4f8e
JH
7568 * ipa-inline.c (max_benefit): Remove.
7569 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
7570 (update_caller_keys): Use
7571 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
7572 (update_callee_keys): Likewise.
7573 (update_all_callee_keys): Likewise.
77fa1d54
UB
7574 (inline_small_functions): Do not collect max_benefit; do not reset
7575 estimated_growth; call free_growth_caches and initialize_growth_caches.
7576 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7577 struct size_time_entry): New structures.
632b4f8e 7578 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
7579 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7580 and estimated_growth.
632b4f8e
JH
7581 (edge_growth_cache_entry): New structure.
7582 (node_growth_cache, edge_growth_cache): New global vars.
7583 (estimate_growth): Turn into inline.
7584 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7585 initialize_growth_caches, free_growth_caches): Declare.
7586 (estimate_edge_growth): Rewrite.
7587 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
7588 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7589 functions.
632b4f8e
JH
7590 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7591 (NUM_CONDITIONS): New constant.
7592 (predicate_conditions): New enum.
7593 (IS_NOT_CONSTANT): New constant.
7594 (edge_removal_hook_holder): New var.
7595 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
7596 (true_predicate, single_cond_predicate, false_predicate,
7597 not_inlined_predicate, add_condition, add_clause, and_predicates,
7598 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7599 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
7600 evaulate_conditions_for_edge): New functions.
7601 (inline_summary_alloc): Move to heap.
7602 (inline_node_removal_hook): Clear condition and entry vectors.
7603 (inline_edge_removal_hook): New function.
7604 (initialize_growth_caches, free_growth_caches): New function.
7605 (dump_inline_summary): Update.
7606 (edge_execution_predicate): New function.
7607 (will_be_nonconstant_predicate): New function.
7608 (estimate_function_body_sizes): Compute BB and constantness predicates.
7609 (compute_inline_parameters): Do not clear estimated_growth.
7610 (estimate_edge_size_and_time): New function.
7611 (estimate_calls_size_and_time): New function.
7612 (estimate_callee_size_and_time): New function.
7613 (remap_predicate): New function.
7614 (inline_merge_summary): New function.
7615 (do_estimate_edge_time): New function based on...
7616 (estimate_edge_time): ... this one.
7617 (do_estimate_edge_growth): New function.
7618 (do_estimate_growth): New function based on....
7619 (estimate_growth): ... this one.
7620 (inline_analyze_function): Analyze after deciding on jump functions.
7621 (inline_read_section): New function.
7622 (inline_read_summary): Use it.
7623 (inline_write_summary): Write all the new data.
7624 * ipa-prop.c (ipa_get_param_decl_index): Export.
7625 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
7626 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7627 Declare.
7628 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
7629 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7630 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7631 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7632 cgraph_edge_inlinable_p): Remove.
7633 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
7634 (cgraph_process_new_functions): Update call of
7635 compute_inline_parameters.
632b4f8e 7636
1df5b0db
RG
76372011-04-22 Richard Guenther <rguenther@suse.de>
7638
7639 * tree.c (build_int_cst): Properly create canonicalized integer
7640 constants.
7641 (build_int_cst_type): Remove scary comments.
7642
ae01169c
XDL
76432011-04-22 Xinliang David Li <davidxl@google.com>
7644
7645 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7646 by default when -Wno-error is not specified.
7647 * opts-global.c (decode_options): Remove call to
7648 control_warning_options.
7649
93dfac24
JJ
76502011-04-22 Jakub Jelinek <jakub@redhat.com>
7651
7652 PR tree-optimization/48717
7653 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7654 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7655
1b5f5069
JM
76562011-04-22 Joseph Myers <joseph@codesourcery.com>
7657
7658 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7659 definition where used.
7660
144f4153
JJ
76612011-04-22 Jakub Jelinek <jakub@redhat.com>
7662
7663 PR c/48716
7664 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7665 TREE_STATIC variables declared inside of some OpenMP construct.
7666
f9fd305b
MJ
76672011-04-22 Martin Jambor <mjambor@suse.cz>
7668
7669 PR middle-end/48585
1d284ec5 7670 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 7671
49819fef
AM
76722011-04-22 Alexander Monakov <amonakov@ispras.ru>
7673
7674 PR c/36750
7675 * c-typeck.c (pop_init_level): Do not warn about initializing
7676 with ` = {0}'.
7677
401f6699
AM
76782011-04-22 Alan Modra <amodra@gmail.com>
7679
7680 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7681 when returning call_cookie.
7682 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7683 pointers, to functions with no more vector args than the current
7684 function, and some non-local calls for ABI_V4.
7685 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7686 sibcall_nonlocal_aix64): Combine to ..
7687 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7688 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7689 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7690 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7691 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7692 operand.
7693 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7694 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7695 sibcall_value_symbolic_64): Delete.
7696
903d1e67
XDL
76972011-04-21 Xinliang David Li <davidxl@google.com>
7698
7699 * cgraph.h: Remove pid.
7700 * cgraph.c: Remove pid.
7701 * value-prof.c (init_node_map): New function.
7702 (del_node_map): New function.
7703 (find_func_by_funcdef_no): New function.
7704 (gimple_ic_transform): Call new function.
7705 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7706 * function.c (get_last_funcdef_no): New function.
7707 * function.h (get_last_funcdef_no): New function.
7708 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7709 to libgcov function.
7710 (tree-profiling): Call node map init and delete function.
7711
7378e95f
ILT
77122011-04-21 Ian Lance Taylor <iant@google.com>
7713
7714 * godump.c (go_format_type): Use exported Go name for anonymous
7715 field name.
7716
e84a6fcf
NF
77172011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7718
7719 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7720 Call builtin_function_type_list instead of builtin_function_type.
7721 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7722
4fe058e2
NF
77232011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7724
7725 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7726 build_function_type_list instead of build_function_type.
7727 Delete variable `endlink'.
7728
1ba0a2d2
NF
77292011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7730
7731 * config/s390/s390.c (s390_init_builtins): Call
7732 build_function_type_list instead of build_function_type.
7733
c0676219
NF
77342011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7735
7736 * config/ia64/ia64.c (ia64_init_builtins): Call
7737 build_function_type_list instead of builtin_function_type.
7738
6ddfda8a
ER
77392011-04-21 Easwaran Raman <eraman@google.com>
7740
3a6448ea 7741 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
7742 (add_stack_var): ...and its reference here...
7743 (expand_stack_vars): ...and here.
7744 (stack_var_cmp): Sort by descending order of size.
7745 (partition_stack_vars): Change heuristic.
1d284ec5 7746 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
7747 (dump_stack_var_partition): Add newline after each partition.
7748
23756963
DA
77492011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7750 Jeff Law <law@redhat.com>
7751
77fa1d54 7752 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
7753 * gengtype.c (matching_file_name_substitute): Likewise.
7754
aa2a43d2
RG
77552011-04-21 Richard Guenther <rguenther@suse.de>
7756
7757 PR lto/48703
1d284ec5 7758 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 7759
4d931f41
EB
77602011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7761
7762 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7763
f103fa7a
RG
77642011-04-21 Richard Guenther <rguenther@suse.de>
7765
7766 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7767 file name.
7768
e19f6650
RG
77692011-04-21 Richard Guenther <rguenther@suse.de>
7770
7771 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7772 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7773 Use DECL_P, not SSA_VAR_P.
7774 (ptr_derefs_may_alias_p): Likewise.
7775 (ptr_deref_may_alias_ref_p_1): Likewise.
7776 (decl_refs_may_alias_p): Likewise.
7777 (refs_may_alias_p_1): Likewise.
7778 (ref_maybe_used_by_call_p_1): Likewise.
7779 (call_may_clobber_ref_p_1): Likewise.
7780 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7781 are either MEM_REF or TARGET_MEM_REF.
7782 (indirect_refs_may_alias_p): Likewise.
7783 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7784 for MEM_EXPR of indirect calls.
7785
9d1831bb
TG
77862011-04-21 Tristan Gingold <gingold@adacore.com>
7787
7788 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7789 (dst_file_info_struct): Remove flen field.
7790 (lookup_filename): Remove code that set flen field.
7791
f199c029
TG
77922011-04-21 Tristan Gingold <gingold@adacore.com>
7793
7794 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7795
2894086e
UB
77962011-04-21 Uros Bizjak <ubizjak@gmail.com>
7797
7798 PR target/48708
7799 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7800 vec_extract and vec_concat for non-SSE4_1 targets.
7801
53f94a5c
RG
78022011-04-21 Richard Guenther <rguenther@suse.de>
7803
7804 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7805 return statements.
7806
f0dca5ba
JM
78072011-04-21 Joseph Myers <joseph@codesourcery.com>
7808
7809 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7810 undefine.
7811 (FILE): Don't undefine.
7812
984514ac
JM
78132011-04-21 Joseph Myers <joseph@codesourcery.com>
7814
7815 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7816 struct rtx_def *.
7817 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7818 struct rtx_def *.
7819 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 7820 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
7821 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7822 rtx_def *.
7823 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7824 definitions where used.
7825 * config/microblaze/microblaze.h (struct microblaze_args): Use
7826 rtx, not struct rtx_def *.
7827 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7828 rtx_def *.
2894086e
UB
7829 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7830 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
7831 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7832 not struct rtx_def *.
7833 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7834 struct rtx_def *.
7835 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7836 rtx_def *.
2894086e 7837 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 7838
0b5a2724
RS
78392011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7840
7841 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7842 operand_equal_p to compare DR_BASE_ADDRESSes.
7843 (vect_check_interleaving): Likewise.
7844
4b18d683
RS
78452011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7846
7847 PR target/46329
7848 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7849 for all Neon struct constants.
7850
1a627b35
RS
78512011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7852
7853 * target.def (legitimate_constant_p): New hook.
7854 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7855 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7856 * doc/tm.texi: Regenerate.
7857 * hooks.h (hook_bool_mode_rtx_true): Declare.
7858 * hooks.c (hook_bool_mode_rtx_true): Define.
7859 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7860 * calls.c (precompute_register_parameters): Replace uses of
7861 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7862 (emit_library_call_value_1): Likewise.
7863 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7864 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7865 * ira-costs.c (scan_one_insn): Likewise.
7866 * recog.c (general_operand, immediate_operand): Likewise.
7867 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7868 * reload1.c (init_eliminable_invariants): Likewise.
7869
7870 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7871 mode argument.
7872 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7873 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7874 argument.
7875 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7876 * config/alpha/predicates.md (input_operand): Update call to
7877 alpha_legitimate_constant_p.
7878
7879 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7880 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7881 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7882 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7883 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7884 (arm_legitimate_constant_p): New functions.
7885 (arm_cannot_force_const_mem): Make static.
7886
7887 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7888
7889 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7890 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7891 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7892 instead of bfin_legitimate_constant_p.
7893 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7894 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7895
7896 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7897
7898 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7899
7900 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7901 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7902 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7903 (frv_legitimate_constant_p): Make static. Add a mode argument.
7904
7905 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7906 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7907 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7908
7909 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7910 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7911 * config/i386/i386.c (legitimate_constant_p): Rename to...
7912 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7913 argument.
7914 (ix86_cannot_force_const_mem): Update accordingly.
7915 (ix86_legitimate_address_p): Likewise.
7916 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7917 * config/i386/i386.md: Update commentary.
7918
7919 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7920 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7921 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7922 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7923
7924 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7925
7926 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7927 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7928 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7929 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7930
7931 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7932 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7933 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7934
7935 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7936 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7937 (m32r_legitimate_constant_p): New function.
7938
7939 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7940 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7941 LEGITIMATE_CONSTANT_P.
7942 (LEGITIMATE_CONSTANT_P): Delete.
7943 * config/m68k/m68k.c (m68k_expand_prologue): Call
7944 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7945 (m68k_legitimate_constant_p): New function.
7946 * config/m68k/m68k.md: Update comments.
7947
7948 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7949 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7950 (mcore_legitimate_constant_p): New function.
7951
7952 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7953 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7954 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7955 Add a mode argument.
7956 (mep_legitimate_address): Update accordingly.
7957 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7958
7959 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7960 Delete.
7961 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7962 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7963 static. Check OP's mode for VOIDmode.
7964 (microblaze_legitimate_constant_p): New function.
7965 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7966
7967 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7968 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7969 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7970 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7971 * config/mips/predicates.md: Update comments.
7972
7973 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7974 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7975 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7976 (mmix_legitimate_constant_p): Make static, return a bool, and take
7977 a mode argument.
7978 (mmix_print_operand_address): Update accordingly.
7979
7980 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7981 Delete.
7982 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
7983 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7984 static. Add a mode argument.
1a627b35
RS
7985 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7986
7987 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7988
7989 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7990 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7991 (pa_legitimate_constant_p): New function.
7992
7993 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7994
7995 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7996 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7997 (pdp11_legitimate_constant_p): New function.
7998
7999 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8000 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8001 (rs6000_legitimate_constant_p): New function.
8002
8003 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8004 (rx_legitimate_constant_p): ...this.
8005 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8006 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8007 (rx_legitimate_constant_p): ...this.
8008 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8009 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8010
8011 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8012 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8013 * config/s390/s390.c (legitimate_constant_p): Rename to...
8014 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8015 and add a mode argument.
8016 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8017
8018 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8019
8020 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8021 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8022 (sh_legitimate_constant_p): New function.
8023
8024 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8025 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8026 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8027 (legitimate_constant_p): Rename to...
8028 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8029 argument.
8030 (constant_address_p): Update accordingly.
8031
8032 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8033 argument and return a bool.
8034 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8035 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8036 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8037 (spu_rtx_costs): Update accordingly.
8038 * config/spu/predicates.md (vec_imm_operand): Likewise.
8039
8040 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8041
8042 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8043 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8044 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8045
8046 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8047 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8048 * config/vax/vax.c (legitimate_constant_p): Likewise.
8049
8050 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8051 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8052 (xtensa_legitimate_constant_p): New function.
8053
fbbf66e7
RS
80542011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8055
8056 * target.def (cannot_force_const_mem): Add a mode argument.
8057 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8058 * doc/tm.texi: Regenerate.
8059 * hooks.h (hook_bool_mode_rtx_false): Declare.
8060 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8061 (hook_bool_mode_const_rtx_true): Likewise.
8062 (hook_bool_mode_rtx_false): New function.
8063 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8064 to be non-VOID. Update call to cannot_force_const_mem.
8065 (find_reloads): Update accordingly.
8066 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8067 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8068 argument.
8069 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8070 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8071 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8072 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8073 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8074 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8075 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8076 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8077 (m68k_cannot_force_const_mem): ...this new function.
8078 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8079 argument.
8080 (mips_const_insns, mips_legitimize_const_move): Update calls.
8081 (mips_secondary_reload_class): Likewise.
8082 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8083 (pa_cannot_force_const_mem): ...this new function.
2894086e 8084 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
8085 (rs6000_cannot_force_const_mem): ...this new function.
8086 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8087 argument.
8088 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8089 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8090 to...
8091 (xtensa_cannot_force_const_mem): ...this new function.
8092
b861891b
NF
80932011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8094
8095 * config/mips/mips.c (mips16_build_function_stub): Call
8096 build_function_type_list instead of build_function_type.
8097 (mips16_build_call_stub): Likewise.
8098
34149ed5
NF
80992011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8100
8101 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8102 instead of build_function_type.
8103
12526412
NF
81042011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8105
8106 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8107 instead of build_function_type.
8108
3b84d61f
UB
81092011-04-20 Uros Bizjak <ubizjak@gmail.com>
8110
8111 PR target/48678
8112 * config/i386/i386.md (insv): Change operand 0 constraint to
8113 "register_operand". Change operand 1 and 2 constraint to
8114 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8115 * config/i386/sse.md (sse4_1_pinsrb): Export.
8116 (sse2_pinsrw): Ditto.
8117 (sse4_1_pinsrd): Ditto.
8118 (sse4_1_pinsrq): Ditto.
8119 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8120 * config/i386/i386.c (ix86_expand_pinsr): New.
8121
4a25752b
ER
81222011-04-20 Easwaran Raman <eraman@google.com>
8123
8124 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8125 containing union type only with -fstrict-aliasing.
8126
04695783
JM
81272011-04-20 Jim Meyering <meyering@redhat.com>
8128
8129 Remove useless if-before-free tests.
8130 * calls.c (expand_call, save_area): Likewise.
8131 * cfgcleanup.c (try_forward_edges): Likewise.
8132 * collect2.c (collect_execute): Likewise.
8133 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8134 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8135 * coverage.c (coverage_checksum_string): Likewise.
8136 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8137 * cselib.c (cselib_init): Likewise.
8138 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8139 (df_set_clean_cfg): Likewise.
8140 * function.c (free_after_compilation): Likewise.
8141 * gcc.c (do_spec_1, main): Likewise.
8142 * gcov.c (create_file_names): Likewise.
8143 * gensupport.c (identify_predicable_attribute): Likewise.
8144 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8145 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8146 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8147 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8148 * ipa-pure-const.c (local_pure_const): Likewise.
8149 * ipa-reference.c (propagate): Likewise.
8150 * ira-costs.c (free_ira_costs): Likewise.
8151 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8152 * matrix-reorg.c (mat_free): Likewise.
8153 * prefix.c (get_key_value): Likewise.
8154 * profile.c (compute_value_histograms): Likewise.
8155 * reload1.c (free_reg_equiv): Likewise.
8156 * sched-deps.c (free_deps): Likewise.
8157 * sel-sched-ir.c (fence_clear): Likewise.
8158 * sese.c (set_rename, if_region_set_false_region): Likewise.
8159 * tree-data-ref.c (free_rdg): Likewise.
8160 * tree-eh.c (lower_try_finally): Likewise.
8161 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8162 * tree-ssa-live.c (delete_var_map): Likewise.
8163 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8164 * tree-ssa-pre.c (phi_trans_add): Likewise.
8165
6788475a
JJ
81662011-04-20 Jakub Jelinek <jakub@redhat.com>
8167
8168 PR tree-optimization/48611
8169 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8170 beyond ERT_MUST_NOT_THROW region.
8171
0eda4033
CM
81722011-04-20 Catherine Moore <clm@codesourcery.com>
8173
8174 * config/mips/mips.opt (mfix-24k): New.
8175 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8176 * config/mips/mips.md (length): Increase by 4 for stores if
8177 fixing 24K errata.
8178 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8179 all noreorder if fixing 24K errata.
8180 * doc/invoke.texi: Document mfix-24k.
8181
01475747
CLT
81822011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8183
8184 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 8185 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 8186
bc2c1a60
AS
81872011-04-20 Andrew Stubbs <ams@codesourcery.com>
8188
8189 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8190 (const_ok_for_op): ... to here.
8191
583722ee
KT
81922011-04-20 Kai Tietz <ktietz@redhat.com>
8193
2894086e
UB
8194 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8195 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 8196
422c0989
AS
81972011-04-20 Andrew Stubbs <ams@codesourcery.com>
8198
8199 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8200
d7978bff
RG
82012011-04-20 Richard Guenther <rguenther@suse.de>
8202
8203 PR tree-optimization/47892
8204 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8205 are if-convertible.
8206
818412ba
EB
82072011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8208
8209 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8210
b501ce4e
TG
82112011-04-20 Tristan Gingold <gingold@adacore.com>
8212
8213 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8214
516edfdd
GJL
82152011-04-20 Georg-Johann Lay <avr@gjlay.de>
8216
8217 PR target/18145
8218
8219 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8220 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8221 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8222 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8223 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8224
8225 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8226 New prototype.
8227
8228 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8229 (avr_asm_named_section, avr_asm_output_aligned_common,
8230 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8231 New functions to update...
8232 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8233 (avr_asm_init_sections): Overwrite section callbacks for
8234 data_section, bss_section.
8235 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8236 from here to...
8237 (avr_file_end): ...here.
8238
dafc9511
RG
82392011-04-20 Richard Guenther <rguenther@suse.de>
8240
8241 PR middle-end/48695
8242 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 8243 objects and types here. Adjust for their offset before comparing.
dafc9511 8244
1da0876c
RS
82452011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8246
8247 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8248 statement per copy.
8249
25583c4f
RS
82502011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8251
8252 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8253 (GIMPLE_H): Include $(INTERNAL_FN_H).
8254 (OBJS-common): Add internal-fn.o.
8255 (internal-fn.o): New rule.
8256 * internal-fn.def: New file.
8257 * internal-fn.h: Likewise.
8258 * internal-fn.c: Likewise.
8259 * gimple.h: Include internal-fn.h.
8260 (GF_CALL_INTERNAL): New gf_mask.
8261 (gimple_statement_call): Put fntype into a union with a new
8262 internal_fn field.
8263 (gimple_build_call_internal): Declare.
8264 (gimple_build_call_internal_vec): Likewise.
8265 (gimple_call_same_target_p): Likewise.
8266 (gimple_call_internal_p): New function.
8267 (gimple_call_internal_fn): Likewise.
8268 (gimple_call_fntype): Return null for internal calls.
8269 (gimple_call_set_fntype): Assert that the function is not internal.
8270 (gimple_call_set_fn): Likewise.
8271 (gimple_call_set_fndecl): Likewise.
8272 (gimple_call_set_internal_fn): New function.
8273 (gimple_call_addr_fndecl): Handle null functions.
8274 (gimple_call_return_type): Likewise null types.
8275 * gimple.c (gimple_build_call_internal_1): New function.
8276 (gimple_build_call_internal): Likewise.
8277 (gimple_build_call_internal_vec): Likewise.
8278 (gimple_call_same_target_p): Likewise.
8279 (gimple_call_flags): Handle calls to internal functions.
8280 (gimple_call_fnspec): New function.
8281 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8282 (gimple_has_side_effects): Handle null functions.
8283 (gimple_rhs_has_side_effects): Likewise.
8284 (gimple_call_copy_skip_args): Handle calls to internal functions.
8285 * cfgexpand.c (expand_call_stmt): Likewise.
8286 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8287 * gimple-fold.c (gimple_fold_call): Handle null functions.
8288 (gimple_fold_stmt_to_constant_1): Don't fold
8289 calls to internal functions.
8290 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8291 functions.
8292 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8293 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8294 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8295 (do_warn_unused_result): Likewise.
8296 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8297 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8298 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8299 the target of a call.
8300 (initialize_hash_element): Update accordingly.
8301 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8302 (iterative_hash_hashable_expr): Handle calls to internal functions.
8303 (print_expr_hash_elt): Likewise.
8304 * tree-ssa-pre.c (can_value_number_call): Likewise.
8305 (eliminate): Handle null functions.
8306 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8307 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8308 (find_func_aliases): Likewise.
8309 * value-prof.c (gimple_ic_transform): Likewise.
8310 (gimple_indirect_call_to_profile): Likewise.
8311 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8312 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8313
1a3118e9
JH
83142011-04-19 Jan Hubicka <jh@suse.cz>
8315
8316 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
8317 * ipa-inline.c (inline_small_functions): Compute summaries first,
8318 populate heap later.
1a3118e9 8319
fee8b6da
JH
83202011-04-19 Jan Hubicka <jh@suse.cz>
8321
8322 * cgraph.h (save_inline_function_body): Remove.
8323 * ipa-inline-transform.c: New file, broke out of...
8324 * ipa-inline.c: ... this one; Update toplevel comment.
8325 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8326 make global.
8327 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8328 (cgraph_mark_inline_edge): Rename to inline_call; move to
8329 ipa-inline-transform.c.
8330 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8331 move to ipa-inline-transform.c
8332 (recursive_inlining, inline_small_functions, flatten_function,
8333 ipa_inline, inline_always_inline_functions,
8334 early_inline_small_functions): Update.
8335 (inline_transform): Move to ipa-inline-transform.c.
8336 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8337 Declare.
8338 * Makefile.in (ipa-inline-transform.o): New file.
8339 * cgraphunit.c (save_inline_function_body): Move to
8340 ipa-inline-transform.c
8341
f0679612
DD
83422011-04-19 DJ Delorie <dj@redhat.com>
8343
8344 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8345 registers if we already know there aren't any.
8346 (m32c_emit_epilogue): Don't emit a barrier here.
8347 (m32c_emit_eh_epilogue): Likewise.
8348 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8349 operands at expand time.
8350 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8351 int" wchar type.
8352 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8353 duplicates. Provide aliases instead.
8354 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8355 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8356 the compiler.
8357
32257ddc
AS
83582011-04-19 Anatoly Sokolov <aesok@post.ru>
8359
8360 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8361 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8362 (general_or_i64_p, sparc_register_move_cost): New function.
8363
60bea929
RO
83642011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8365
8366 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 8367 Add lynx, mipssde. Sort table.
60bea929 8368
444b3995 83692011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 8370
9d12f71a
EB
8371 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8372 not negative.
444b3995 8373
d708ce50
JJ
83742011-04-19 Jakub Jelinek <jakub@redhat.com>
8375
8376 PR target/48678
8377 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8378 is a SUBREG with non-MODE_INT mode inside of it.
8379
49c471e3
MJ
83802011-04-19 Martin Jambor <mjambor@suse.cz>
8381
8382 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8383 also according to actual contants.
8384 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8385 (gimple_fold_call): Use it.
8386 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8387
0004f992
MJ
83882011-04-19 Martin Jambor <mjambor@suse.cz>
8389
8390 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8391 non-pointer assignments.
8392
40591473
MJ
83932011-04-19 Martin Jambor <mjambor@suse.cz>
8394
8395 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8396 account anc_offset and otr_type from the indirect edge info.
8397 * ipa-prop.c (get_ancestor_addr_info): New function.
8398 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8399 get_ancestor_addr_info, call it.
8400 (ipa_note_param_call): Do not initialize information about polymorphic
8401 calls, return the indirect call graph edge. Remove the last
8402 parameter, adjust all callers.
8403 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8404 parameters. Initialize polymorphic information in the indirect edge.
8405
abe36b81
EB
84062011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8407
8408 PR lto/48148
8409 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8410 the types if they have different enumeration identifiers.
8411
e6416b30
JH
84122011-04-19 Jan Hubicka <jh@suse.cz>
8413
8414 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8415 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8416 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8417 (optimize_function_for_size_p) ... here.
8418
d39132ea
RG
84192011-04-19 Richard Guenther <rguenther@suse.de>
8420
8421 PR lto/48207
8422 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8423 langhook.
8424
ff7037dc
EB
84252011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8426
8427 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8428 if DECL_NO_INLINE_WARNING_P is set on the function.
8429
c1ee2892
BS
84302011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8431
8432 PR fortran/47976
8433 * reload1.c (inc_for_reload): Return void. All callers changed.
8434 (emit_input_reload_insns): Don't try to delete previous output
8435 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
8436
84372011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8438
8439 * gengtype.h: Updated copyright year.
8440 (struct input_file_st): Add inpisplugin field.
8441 (type_fileloc): New function.
8442 * gengtype.c
8443 (write_typed_struct_alloc_def): Add gcc_assert.
8444 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8445 (write_typed_alloc_defns): Don't output for plugin files.
8446 (input_file_by_name): Clear inpisplugin field.
8447 (main): Set inpisplugin field for plugin files.
8448
897e0a89
NP
84492011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8450
8451 * gengtype-state.c (string_eq): New.
8452 (read_state): Use string_eq instead of strcmp when creating the
8453 state_ident_tab.
8454
363ee90e
WG
84552011-04-19 Wei Guozhi <carrot@google.com>
8456
8457 PR target/47855
8458 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8459 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8460 linkage.
8461 * config/arm/constraints.md (Uu): New constraint.
8462 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8463
18a24fed
TG
84642011-04-19 Tristan Gingold <gingold@adacore.com>
8465
8466 * config.gcc (-*-*-*vms): Added.
8467 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8468 definitions moved.
8469 * config/vms/vms-ld.c: New file.
8470 * config/vms/vms-ar.c: New file.
8471 * config/vms/t-vmsnative: New file.
8472
1c13f168
XDL
84732011-04-18 Xinliang David Li <davidxl@google.com>
8474
8475 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8476
84825707
JJ
84772011-04-18 Jakub Jelinek <jakub@redhat.com>
8478
8479 PR middle-end/48661
8480 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8481 if TREE_TYPE (v) is non-NULL.
8482
8483 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8484 gimple_get_virt_mehtod_for_binfo.
8485 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8486 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8487 callers.
8488 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8489
7d4f8d02 84902011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
8491 Steve Ellcey <sje@cup.hp.com>
8492
7d4f8d02
EB
8493 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8494 use its mode as source mode if it isn't VOIDmode.
7254cb57 8495
474e8e70
DCR
84962011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8497
8498 * doc/passes.texi: Fill crossref nodes.
8499
cff41484
JM
85002011-04-18 Jim Meyering <meyering@redhat.com>
8501
7d4f8d02 8502 Fix doubled-word typos in comments and strings
cff41484
JM
8503 * config/alpha/vms-unwind.h: s/for for/for/
8504 * config/arm/unwind-arm.h: Likewise.
8505 * config/microblaze/microblaze.c: Likewise.
8506 * config/sh/constraints.md: s/in in/in/
8507 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8508
f60c2554
UB
85092011-04-18 Uros Bizjak <ubizjak@gmail.com>
8510
8511 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8512 (AVX_FLOAT_MODE_P): Ditto.
8513 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8514 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8515 (AVX_VEC_FLOAT_MODE_P): Ditto.
8516 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8517 (UNSPEC_MASKSTORE): Ditto.
8518 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8519 Merge from <sse>_movmsk<ssemodesuffix> and
8520 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8521 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8522 iterator.
8523 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8524 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8525 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8526
09a2806f
JH
85272011-04-18 Jan Hubicka <jh@suse.cz>
8528
8a8dccb2
JH
8529 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8530
09a2806f
JH
8531 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8532 (want_inline_function_called_once_p): Break out the logic from
8533 ipa_inline.
8534 (edge_badness): Ensure that profile is not misupdated.
8535 (lookup_recursive_calls): Prioritize by call frequencies.
8536 (inline_small_functions): Move program size estimates here;
8537 actually process whole queue even when unit growth has been
8538 met. (to properly compute inline_failed reasons and for the
f60c2554 8539 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
8540 (ipa_inline): Remove unit summary code; first inline hot calls
8541 of functions called once, cold calls next.
8542 (order, nnodes): Remove unused variables.
8543 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8544 (GTFILES): Remove ipa-inline.c
8545 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8546
3eea52ef
EB
85472011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8548
8549 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8550
229a1c59 85512011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 8552 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
8553
8554 * arm.c (neon_builtin_type_bits): Remove.
8555 (typedef enum neon_builtin_mode): New.
8556 (T_MAX): Don't define.
8557 (typedef enum neon_builtin_datum): Remove bits, codes[],
8558 num_vars and base_fcode. Add mode, code and fcode.
8559 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8560 VAR10): Change accordingly.
8561 (neon_builtin_data[]): Change accordingly
8562 (arm_init_neon_builtins): Change accordingly.
8563 (neon_builtin_compare): Remove.
8564 (locate_neon_builtin_icode): Remove.
8565 (arm_expand_neon_builtin): Change accordingly.
8566
8567 * arm.h (enum arm_builtins): Move to ...
8568 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8569
8570 * arm.c (arm_builtin_decl): Declare.
8571 (TARGET_BUILTIN_DECL): Define.
8572 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8573 (arm_builtin_decls[]): New.
8574 (arm_init_neon_builtins): Store builtin declarations in
8575 arm_builtin_decls[].
8576 (arm_init_tls_builtins): Likewise.
8577 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8578 (arm_builtin_decl): New.
8579
75e802cc
RG
85802011-04-18 Richard Guenther <rguenther@suse.de>
8581
8582 * tree.c (upper_bound_in_type): Build properly canonicalized
8583 INTEGER_CSTs.
8584 (lower_bound_in_type): Likewise.
8585
3b45a007
RG
85862011-04-18 Richard Guenther <rguenther@suse.de>
8587
8588 * gimple.h (gimple_call_addr_fndecl): New function.
8589 (gimple_call_fndecl): Use it.
8590 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8591 for direct calls.
8592 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8593 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8594
d25a79ea
RG
85952011-04-18 Richard Guenther <rguenther@suse.de>
8596
8597 PR middle-end/48650
8598 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8599
7d5fc814
EB
86002011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8601
8602 PR lto/48492
8603 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8604 DECL_IN_CONSTANT_POOL without RTL.
8605
7e7cfcf6
UW
86062011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8607 Ira Rosen <ira.rosen@linaro.org>
8608
8609 PR target/48252
8610 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8611 to match neon_vzip/vuzp/vtrn_internal.
8612 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8613 outputs explicitly dependent on both inputs.
8614 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8615
49eab32e
JJ
86162011-04-18 Jakub Jelinek <jakub@redhat.com>
8617
8618 PR tree-optimization/48616
8619 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8620 whether the shift is by scalar or vector based on whether all SLP
8621 scalar stmts have the same rhs.
8622
e54170f4
CLT
86232011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8624
8625 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8626 memory operands.
8627
b14ee6c9
RS
86282011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8629
269e0e18 8630 PR target/43700
b14ee6c9
RS
8631 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8632 registers.
8633
10158cd3
JH
86342011-04-17 Jan Hubicka <jh@suse.cz>
8635
8636 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
8637 * cgrpahunit.c (cgraph_finalize_function): Do not set
8638 finalized_by_frontend.
10158cd3
JH
8639 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8640 finalized_by_frontend.
8641
2e9bb6ba
JH
86422011-04-17 Jan Hubicka <jh@suse.cz>
8643
8644 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8645 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8646 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
8647 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8648 method.
2e9bb6ba
JH
8649 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8650 gimple-fold.c
8651 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8652
beb628e1
EB
86532011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8654
8655 PR lto/48538
8656 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8657 is non-null before accessing it.
8658 (input_cgraph): Remove trailing spaces.
8659
3e2fdd24
RE
86602011-04-17 Revital Eres <revital.eres@linaro.org>
8661
8662 * params.def (sms-min-sc): New param flag.
8663 * modulo-sched.c (sms_schedule): Use it.
8664 * doc/invoke.texi (sms-min-sc): Document it.
8665
4c0f7679
JH
86662011-04-17 Jan Hubicka <jh@suse.cz>
8667
8668 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8669 present, also set gimple_call_set_cannot_inline.
8670 * ipa-inline.c: Update toplevel comment.
8671 (MAX_TIME): Remove.
8672 (cgraph_clone_inlined_nodes): Fix linebreaks.
8673 (cgraph_check_inline_limits): Restructure to ...
8674 (caller_growth_limits): ... this one; be more tolerant
8675 on growth in nested inline chains; add explanatory comment;
8676 fix stack accounting thinko introduced by previous patch.
8677 (cgraph_default_inline_p): Remove.
8678 (report_inline_failed_reason): New function.
8679 (can_inline_edge_p): New function.
8680 (can_early_inline_edge_p): New function.
8681 (leaf_node_p): Move upwards in file.
8682 (want_early_inline_function_p): New function.
8683 (want_inline_small_function_p): New function.
8684 (want_inline_self_recursive_call_p): New function.
8685 (cgraph_edge_badness): Rename to ...
8686 (edge_badness) ... this one; fix linebreaks.
8687 (update_edge_key): Update call of edge_baddness; add
8688 detailed dump about queue updates.
8689 (update_caller_keys): Use can_inline_edge_p and
8690 want_inline_small_function_p.
8691 (cgraph_decide_recursive_inlining): Rename to...
8692 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
8693 want_inline_self_recursive_call_p; simplify and remove no longer
8694 valid FIXME.
4c0f7679
JH
8695 (cgraph_set_inline_failed): Remove.
8696 (add_new_edges_to_heap): Use can_inline_edge_p and
8697 want_inline_small_function_p.
8698 (cgraph_decide_inlining_of_small_functions): Rename to ...
8699 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
8700 can/want predicates; cleanup debug ouput; work edges till fibheap
8701 is exhausted and do not stop once unit growth is reached; remove
8702 later loop processing remaining edges.
4c0f7679
JH
8703 (cgraph_flatten): Rename to ...
8704 (flatten_function): ... this one; use can_inline_edge_p
8705 and can_early_inline_edge_p predicates.
8706 (cgraph_decide_inlining): Rename to ...
8707 (ipa_inline): ... this one; remove unreachable nodes before
8708 inlining functions called once; simplify the pass.
8709 (cgraph_perform_always_inlining): Rename to ...
8710 (inline_always_inline_functions): ... this one; use
f60c2554 8711 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
8712 (cgraph_decide_inlining_incrementally): Rename to ...
8713 (early_inline_small_functions): ... this one; simplify
8714 using new predicates; cleanup; make dumps prettier.
8715 (cgraph_early_inlining): Rename to ...
8716 (early_inliner): newer inline regular functions into always-inlines;
8717 fix updating of call stmt summaries.
8718 (pass_early_inline): Update for new names.
8719 (inline_transform): Fix formating.
8720 (gate_cgraph_decide_inlining): Rename to ...
8721 (pass_ipa_inline): ... this one.
8722 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8723 * ipa-inline-analysis.c (dump_inline_summary): Update.
8724 (compute_inline_parameters): Do not compute disregard_inline_limits;
8725 look for mismatching arguments.
8726 (estimate_growth): Fix handlig of non-trivial self recursion.
8727 (inline_read_summary): Do not read info->disregard_inline_limits.
8728 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
8729 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8730 and move all checks into can_inline_edge_p predicate; re-enable code
8731 comparing optimization levels.
4c0f7679
JH
8732 (expand_call_inline): Do not test inline_forbidden_into_p.
8733 * Makefile.in (ipa-inline.o): Update arguments.
8734
54333b7c
RE
87352011-04-17 Revital Eres <revital.eres@linaro.org>
8736
8737 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8738
42c2bf92
RE
87392011-04-17 Revital Eres <revital.eres@linaro.org>
8740
8741 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8742
b183e9e0
MM
87432011-04-17 Michael Matz <matz@suse.de>
8744
8745 PR tree-optimization/48622
8746 PR lto/48645
8747 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8748 in same order as they're written.
8749
b8a17fa2
JDA
87502011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8751
8752 * config/pa/predicates.md: Reorganize and simplify predicates.
8753 Eliminate duplicate code checks.
8754 (arith_operand): Rename to arith14_operand
8755 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8756 * config/pa/pa.md: Use renamed operands.
8757 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8758 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8759 arith11_operand, adddi3_operand, indexed_memory_operand,
8760 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8761 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8762 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8763 move_dest_operand, move_src_operand, prefetch_cc_operand,
8764 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8765 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8766 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8767 div_operand, int5_operand, movb_comparison_operator,
8768 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8769 arith_double_operand, ireg_operand, lhs_lshift_operand,
8770 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8771 integer_store_memory_operand): Likewise.
8772 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8773 (integer_store_memory_operand, read_only_operand,
8774 function_label_operand, borx_reg_operand,
8775 non_hard_reg_operand): Likewise.
8776 (eq_neq_comparison_operator): Delete unused operator.
8777 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8778 function_label_operand.
8779 (emit_move_sequence): Likewise.
8780
8dfb9f16
UB
87812011-04-16 Uros Bizjak <ubizjak@gmail.com>
8782
8783 * config/i386/sse.md (sseunpackmode): New mode attribute.
8784 (ssepackmode): Ditto.
8785 (vec_pack_trunc_<mode>): Macroize expander from
8786 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8787 (vec_unpacks_lo_<mode>): Macroize expander from
8788 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8789 (vec_unpacks_hi_<mode>): Macroize expander from
8790 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8791 (vec_unpacku_lo_<mode>): Macroize expander from
8792 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8793 (vec_unpacku_hi_<mode>): Macroize expander from
8794 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8795 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8796 ix86_expand_sse4_unpack.
8797 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8798
e7f23018
JH
87992011-04-16 Jan Hubicka <jh@suse.cz>
8800
8801 * cgraphbuild.c: Include ipa-inline.h.
8802 (reset_inline_failed): Use initialize_inline_failed.
8803 * cgraph.c: Include ipa-inline.h.
8804 (cgraph_create_node_1): Do not initialize estimated_growth.
8805 (initialize_inline_failed): More to ipa-inline-analysis.c
8806 (dump_cgraph_node): Do not dump inline flags.
8807 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8808 and disregard_inline_limits flags.
8809 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8810 time, size, estimated_growth.
8dfb9f16
UB
8811 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8812 Update.
e7f23018
JH
8813 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8814 DECL_DISREGARD_INLINE_LIMITS.
8815 (cgraph_analyze_function): Do not initialize
8816 node->local.disregard_inline_limits.
8817 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8818 inlinable, versionable and disregard_inline_limits.
8819 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
8820 cgraph_check_inline_limits, cgraph_default_inline_p,
8821 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8822 add_new_edges_to_heap): Update.
8823 (cgraph_decide_inlining_of_small_function): Update; set
8824 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
8825 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8826 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
8827 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8828 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8829 time, size and estimated_growth parameters.
e7f23018
JH
8830 (estimate_edge_growth): Update.
8831 (initialize_inline_failed): Declare.
8832 * ipa-split.c: Include ipa-inline.h
8833 (execute_split_functions): Update.
8834 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8835 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8836 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8837 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8838 estimated_growth to INT_MIN.
8839 (inline_node_duplication_hook): Likewise.
8840 (dump_inline_summary): Dump new fields.
8841 (compute_inline_parameters): Update.
8842 (estimate_edge_time, estimate_time_after_inlining,
8843 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8844 inline_write_summary):
8845 (initialize_inline_failed): Move here from cgraph.c.
8846 * tree-sra.c: Include ipa-inline.h.
8847 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
8848 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8849 ipa-inline.h.
e7f23018 8850
e81b8564
UB
88512011-04-16 Uros Bizjak <ubizjak@gmail.com>
8852
8853 * config/i386/sse.md (V16): New mode iterator.
8854 (VI1, VI8): Ditto.
8855 (AVXMODEQI, AVXMODEDI): Remove.
8856 (sse2, sse3): New mode attribute.
8857 (mov<mode>): Use V16 mode iterator.
8858 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8859 (push<mode>1): Use V16 mode iterator.
8860 (movmisalign<mode>): Ditto.
8861 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8862 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8863 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8864 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8865 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8866 avx_movdqu<avxmodesuffix>.
8867 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8868 *avx_movdqu<avxmodesuffix>.
8869 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8870 avx_lddqu<avxmodesuffix>.
8871 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8872 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8873 avx_movnt<AVXMODEDI:mode>.
8874 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8875 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8876
4743d438
BS
88772011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8878
8879 PR target/48629
8880 * haifa-sched.c (prune_ready_list, schedule_block): Use
8881 sched_pressure_p rather than flag_sched_pressure.
8882
748f7574 88832011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
8884
8885 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8886 cgraph_get_node instead of cgraph_get_create_node.
8887
2ba172e0
JJ
88882011-04-15 Jakub Jelinek <jakub@redhat.com>
8889
8890 * cfgexpand.c (expand_debug_expr): Use
8891 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8892
63d2a353
MM
88932011-04-15 Michael Matz <matz@suse.de>
8894
8895 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8896 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8897 * function.c (gimplify_parameters): Ditto.
8898 * gimplify.c (gimplify_vla_decl): Ditto.
8899
8900 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8901 (gimple_call_set_alloca_for_var): New inline function.
8902 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
8903 * gimple.c (gimple_build_call_from_tree): Remember
8904 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
8905 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8906
8907 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8908 calls if they were for VLA objects.
8909
dee74c34
MJ
89102011-04-15 Martin Jambor <mjambor@suse.cz>
8911
8912 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8913 of ADR_EXPRs.
8914
8e5837bc
MJ
89152011-04-15 Martin Jambor <mjambor@suse.cz>
8916
8917 PR middle-end/48601
8918 * tree-emutls.c (lower_emutls_function_body): Call
8919 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8920 result is non-NULL.
8921
0dc33c3c
NP
89222011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8923
8924 * c-decl.c (detect_field_duplicates): Call
8925 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8926
edcdea5b
NF
89272011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8928
8929 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8930 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8931 * ipa-pure-const.c (check_stmt): Call it.
8932 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8933
8456558d
RG
89342011-04-15 Richard Guenther <rguenther@suse.de>
8935
8936 PR tree-optimization/48290
8937 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8938 Properly decide inhibiting propagation based on the valueized
8939 operand. Do loop-closed SSA form preserving here ...
8940 (init_copy_prop): ... not here.
8941
266446be
L
89422011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8943
8944 PR target/48612
8945 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8946 (*ieee_smax<mode>3): Likewise.
8947
17465c6e
AK
89482011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8949
8950 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8951 Replace match_operand with match_dup for the third operand in
8952 these expanders.
8953
bce204e5
MK
89542011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8955
8956 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8957 to track processing of conditionals. Update all callers.
8958 (try_combine, simplify_if_then_else): Update.
8959
3162fdf4
MK
89602011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8961
8962 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8963 -fsched-pressure.
8964
79002a57 89652011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 8966
79002a57
GJL
8967 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8968 instead of match_operand for operand 3.
8969
4fd3a105
RS
89702011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8971
8972 * recog.h (insn_operand_data): Add an "allows_mem" field.
8973 * genoutput.c (output_operand_data): Initialize it.
8974 * optabs.c (maybe_legitimize_operand_same_code): New function.
8975 (maybe_legitimize_operand): Use it when matching the original
8976 op->value.
8977
ad19c4be
EB
89782011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8979
8980 * gimplify.c: Fix issues in comments throughout.
8981 (voidify_wrapper_expr): Fix long line.
8982 (build_stack_save_restore): Likewise.
8983 (gimplify_loop_expr): Likewise.
8984 (gimplify_compound_lval): Likewise.
8985 (gimplify_init_ctor_eval): Likewise.
8986 (gimplify_modify_expr_rhs): Likewise.
8987 (omp_notice_threadprivate_variable): Likewise.
8988
b25aa0e8 89892011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 8990
b25aa0e8
EB
8991 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8992 original one if this is not a builtin function.
e7925582 8993
09db7afe
JJ
89942011-04-14 Jakub Jelinek <jakub@redhat.com>
8995
8996 PR target/48605
8997 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8998 offset it as needed based on top 2 bits in operands[3], change
8999 MEM mode to SFmode and mask those 2 bits away from operands[3].
9000
c59633d9
NP
90012011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9002
9003 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9004 change from objc_declare_protocols() to objc_declare_protocol().
9005
5e60198b
UB
90062011-04-14 Uros Bizjak <ubizjak@gmail.com>
9007
9008 * config/i386/sse.md (sse4_1): New mode attribute.
9009 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9010 avx_blend<ssemodesuffix><avxmodesuffix> and
9011 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9012 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9013 avx_blendv<ssemodesuffix><avxmodesuffix> and
9014 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9015 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9016 avx_dp<ssemodesuffix><avxmodesuffix> and
9017 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9018 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9019 (sse4_1_packusdw): Merge with *avx_packusdw.
9020 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9021 (sse4_1_pblendw): Merge with *avx_pblendw.
9022 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9023 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9024 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9025 VF mode iterator.
9026 (sse4_1_round<ssescalarmodesuffix>): Merge with
9027 *avx_round<ssescalarmodesuffix>.
9028 (aesenc): Merge with *avx_aesenc.
9029 (aesenclast): Merge with *avx_aesenclast.
9030 (aesdec): Merge with *avx_aesdec.
9031 (aesdeclast): Merge with *avx_aesdeclast.
9032 (pclmulqdq): Merge with *pclmulqdq.
9033 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9034 New predicate.
9035 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9036
6f197850
L
90372011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9038
9039 PR middle-end/48608
9040 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9041 (align_local_variable): This. Update DECL_ALIGN.
9042 (add_stack_var): Updated.
9043 (expand_one_stack_var): Likewise.
9044
4a5ba3ed
RG
90452011-04-14 Richard Guenther <rguenther@suse.de>
9046
9047 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9048 Remove.
9049 (dse_initialize_block_local_data, dse_leave_block,
9050 record_voperand_set, get_stmt_uid): Likewise.
9051 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9052 (dse_optimize_stmt): Remove voperand set handling code.
9053 Simplify and improve to handle any kind of killing stmt.
9054 (dse_record_phi): Remove.
9055 (dse_enter_block): Simplify.
9056 (tree_ssa_dse): Likewise.
9057 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9058
10a5dd5d
JH
90592011-04-14 Jan Hubicka <jh@suse.cz>
9060
9061 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9062 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9063 (cgraph_local_info): Remove inline_summary.
9064 * ipa-cp.c: Include ipa-inline.h.
9065 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9066 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9067 accesor.
9068 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9069 (input_overwrite_node): Do not set inline summary.
9070 (input_node): Do not stream inline summary.
9071 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9072 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9073 growth; we do not have inline parameters computed for that anyway.
9074 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9075 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9076 (inline_summary_t): New type and VECtor.
9077 (debug_inline_summary, dump_inline_summaries): Declare.
9078 (inline_summary): Use VOCtor.
9079 (estimate_edge_growth): Kill hack computing call stmt size directly.
9080 * lto-section-in.c (lto_section_name): Add inline section.
9081 * ipa-inline-analysis.c: Include lto-streamer.h
9082 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9083 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9084 (inline_summary_vec): Define.
9085 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9086 dump_inline_summaries): New functions.
5e60198b
UB
9087 (estimate_function_body_sizes): Properly compute size/time of outgoing
9088 calls.
9089 (compute_inline_parameters): Alloc inline_summary; do not compute
9090 size/time of incomming calls.
10a5dd5d
JH
9091 (estimate_edge_time): Avoid missing time summary hack.
9092 (inline_read_summary): Read inline summary info.
9093 (inline_write_summary): Write inline summary info.
9094 (inline_free_summary): Free all hooks and inline summary vector.
9095 * lto-streamer.h: Add LTO_section_inline_summary section.
9096 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9097 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9098
b602d918
RS
90992011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9100
9101 * tree-vectorizer.h (vect_strided_store_supported): Add a
9102 HOST_WIDE_INT argument.
9103 (vect_strided_load_supported): Likewise.
9104 (vect_permute_store_chain): Return void.
9105 (vect_transform_strided_load): Likewise.
9106 (vect_permute_load_chain): Delete.
9107 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9108 count argument. Check that the count is a power of two.
9109 (vect_strided_load_supported): Likewise.
9110 (vect_permute_store_chain): Return void. Update after above changes.
9111 Assert that the access is supported.
9112 (vect_permute_load_chain): Likewise.
9113 (vect_transform_strided_load): Return void.
9114 * tree-vect-stmts.c (vectorizable_store): Update calls after
9115 above interface changes.
9116 (vectorizable_load): Likewise.
9117 (vect_analyze_stmt): Don't check for strided powers of two here.
9118
ab4472fa
RG
91192011-04-14 Richard Guenther <rguenther@suse.de>
9120
9121 PR tree-optimization/48590
9122 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9123 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9124 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9125 BUILT_IN_STACK_SAVE.
9126 * tree-ssa-dce.c (propagate_necessity): Handle
9127 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9128
32dabdaf
NP
91292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9130
9131 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9132 objc_declare_class.
9133
daade206
RG
91342011-04-14 Richard Guenther <rguenther@suse.de>
9135
9136 * tree.h (get_object_alignment_1): Declare.
9137 * builtins.c (get_object_alignment_1): Split out worker from ...
9138 (get_object_alignment): ... here.
9139 * fold-const.c (get_pointer_modulus_and_residue): Use
9140 get_object_alignment_1.
9141
920e8172
RS
91422011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9143
9144 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9145 type parameter.
9146 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9147 parameter. Generalise code to handle arrays as well as vectors.
9148 (vect_setup_realignment): Update accordingly.
9149 * tree-vect-stmts.c (vectorizable_store): Likewise.
9150 (vectorizable_load): Likewise.
9151
5ce1ee7f
RS
91522011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9153
9154 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9155 within the per-copy loop.
9156
6438fe33 91572011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
9158
9159 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9160 in the dump file.
9161
6438fe33 91622011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
9163
9164 * doc/options.texi (Negative): Explicitly mention that the
9165 Negative chain must be circular.
9166
61e46a7d
NF
91672011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9168
9169 * function.h (block_chainon): Declare.
9170 * function.c (block_chainon): Define.
9171
43ea6502 91722011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 9173 Eric Weddington <eric.weddington@atmel.com>
748f7574 9174 Georg-Johann Lay <avr@gjlay.de>
5e60198b 9175
f60c2554 9176 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
9177 New Includes
9178 (avr_init_builtins, avr_expand_builtin,
9179 avr_expand_delay_cycles, avr_expand_unop_builtin,
9180 avr_expand_binop_builtin ): New functions.
9181 (avr_builtin_id): New enum
9182 (struct avr_builtin_description): New struct
9183 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9184 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 9185
43ea6502 9186 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 9187 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
9188 UNSPECV_DELAY_CYCLES): new enumeration values
9189 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9190 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9191 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9192 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9193 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9194 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9195 "fmulsu"): New insns
5e60198b 9196
43ea6502
AS
9197 * config/avr/avr-c.c: fix line endings
9198 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9199 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9200 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9201 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9202 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 9203
43ea6502
AS
9204 * doc/extend.texi (AVR Built-in Functions): New node
9205 (Target Builtins): Add documentation of AVR
9206 built-in functions.
9207
8a9b55f3
GJL
92082011-04-14 Georg-Johann Lay <avr@gjlay.de>
9209
9210 PR target/44643
9211 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9212 alone. Error if non-const data has attribute progmem.
9213
94bd1825
NF
92142011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9215
9216 * tree.h (struct tree_constructor): Include tree_typed instead of
9217 tree_common.
9218 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9219 TS_TYPED instead of TS_COMMON.
9220
5e60198b 92212011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
9222
9223 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9224 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9225 (sse2_psadbw): Merge with *avx_psadbw.
9226 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9227 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9228 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9229 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9230 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9231 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9232 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9233 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9234 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9235 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9236 (ssse3_palignrti): Merge with *avx_palignrti.
9237
4b1a4694
NF
92382011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9239
9240 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9241 * tree-ssanames.c (fini_ssanames): VEC_free it.
9242 (make_ssa_name_fn): Update for VECness of free_ssanames.
9243 (release_ssa_name, release_dead_ssa_names): Likewise.
9244 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9245 tree_common.
9246 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9247 TS_TYPED instead of TS_COMMON.
9248
4da3b811
NF
92492011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9250
9251 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9252 statistics_counter_event.
9253 * tree-ssa-copyrename.c (stats): Define.
9254 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9255 statistics_counter_event.
9256 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9257 (bswap_stats, widen_mul_stats): Define.
9258 (insert_reciprocals): Increment rdivs_inserted.
9259 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9260 rfuncs_inserted. Add calls to statistics_counter_event.
9261 (execute_cse_sincos_1): Increment inserted.
9262 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9263 statistics_counter_event.
9264 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9265 of bswap_stats. Add calls to statistics_counter_event.
9266 (convert_mult_to_widen): Increment widen_mults_inserted.
9267 (convert_plusminus_to_widen): Increment maccs_inserted.
9268 (convert_mult_to_fma): Increment fmas_inserted.
9269 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9270 calls to statistics_counter_event.
9271
89fa552a
VM
92722011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9273
9274 PR rtl-optimization/48455
9275 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9276 `temp_costs->mem_cost'.
9277
03dfc36d
JH
92782011-04-13 Jan Hubicka <jh@suse.cz>
9279
9280 * ipa-inline.h: New file.
9281 * ipa-inline-analysis.c: New file. Broken out of ...
9282 * ipa-inline.c: ... this file; update toplevel comment;
9283 include ipa-inline.h
9284 (inline_summary): Move to ipa-inline.h
9285 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9286 ipa-inline-analysis.c.
7d4f8d02
EB
9287 (cgraph_estimate_time_after_inlining): Rename to
9288 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
9289 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9290 to estimate_edge_growth.
9291 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9292 rename to estimate_size_after_inlining.
9293 (cgraph_mark_inline_edge): Update for new naming convention.
9294 (cgraph_check_inline_limits): Likewise.
9295 (cgraph_edge_badness): Likewise.
9296 (cgraph_decide_recursive_inlining): Likewise.
9297 (cgraph_decide_inlining_of_small_functions): Likewise.
9298 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
9299 (cgraph_estimate_growth): Rename to estimate_growth; move to
9300 ipa-inline-analysis.c.
03dfc36d
JH
9301 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9302 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9303 (compute_inline_parameters): Likewise.
9304 (compute_inline_parameters_for_current): Likewise.
9305 (pass_inline_parameters): Likewise.
9306 (inline_indirect_intraprocedural_analysis): Likewise.
9307 (analyze_function): Rename to inline_analyze_function; likewise.
9308 (add_new_function): Move to ipa-inline-analysis.c.
9309 (inline_generate_summary): Likewise.
9310 (inline_read_summary): Likewise.
9311 (inline_write_summary): Likewise.
9312 * Makefile.in (ipa-inline-analysis.c): New file.
9313
7673c962
RO
93142011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9315
9316 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9317 * configure: Regenerate.
9318
9698252f
NF
93192011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9320
9321 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9322 instead of tree_common.
9323 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9324 Likewise.
9325 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9326 TS_TYPED rather than TS_COMMON.
9327 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9328
3a7bfdd5
GJL
93292011-04-01 Georg-Johann Lay <avr@gjlay.de>
9330
9331 PR target/45263
86d83530
GJL
9332 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9333 r20 around calls of __tablejump_elpm__
3a7bfdd5 9334
20790697
JJ
93352011-04-13 Jakub Jelinek <jakub@redhat.com>
9336
9337 PR middle-end/48591
9338 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9339 NULL.
9340 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9341
094d7661
BS
93422011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9343
9344 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9345 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9346 (cfi_vec): New typedef.
9347 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9348 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9349 (cie_cfi_vec): New static variable.
9350 (cie_cfi_head): Delete.
9351 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9352 declaration changed. Use vector rather than list operations.
9353 (new_cfi): Don't initialize the dw_cfi_next field.
9354 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9355 rather than list operations.
9356 (lookup_cfa): Use vector rather than list operations.
9357 (output_cfis): New argument upto. Accept a cfi_vec rather than
9358 a dw_cfi_ref list head as argument. All callers changed.
9359 Iterate over the vector using upto as a maximum index.
9360 (output_all_cfis): New static function.
9361 (output_fde): Use vector rather than list operations. Use the
9362 new upto argument for output_cfis rather than manipulating a
9363 list.
9364 (dwarf2out_begin_prologue): Change initializations to match
9365 new struct members.
9366 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9367 from the vector length rather than searching for the end of a list.
9368 Use output_all_cfis.
9369 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9370
673a5740
NC
93712011-04-13 Nick Clifton <nickc@redhat.com>
9372
9373 * config/rx/rx.md (movmemsi): Do not use this pattern when
9374 volatile pointers are involved.
9375
1ee8b298
UB
93762011-04-13 Uros Bizjak <ubizjak@gmail.com>
9377
9378 * config/i386/sse.md (pinsrbits): Remove.
9379 (sse2_packsswb): Merge with *avx_packsswb.
9380 (sse2_packssdw): Merge with *avx_packssdw.
9381 (sse2_packuswb): Merge with *avx_packuswb.
9382 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9383 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9384 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9385 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9386 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9387 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9388 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9389 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9390 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9391 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9392 (sse2_loadld): Merge with *avx_loadld.
9393 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9394 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9395 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9396 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9397 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9398
81f653d6
NF
93992011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9400
9401 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9402 calling TREE_CHAIN.
9403 * print-tree.c (print_node): Likewise.
9404 * tree-inline.c (copy_tree_r): Likewise.
9405 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9406 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9407 instead of TS_COMMON.
9408 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9409 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9410 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9411 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9412 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9413 ...and these...
9414 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9415 * tree.h: ...here.
9416 (TREE_CHAIN): Check for a TS_COMMON structure.
9417 (TREE_TYPE): Check for a TS_TYPED structure.
9418
748f7574 94192011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
9420
9421 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9422 cgraph_get_create_node instead of cgraph_node.
9423
eb345401
NP
94242011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9425
9426 * c-parser.c (c_parser_initelt): Updated call to
9427 objc_build_message_expr.
9428 (c_parser_postfix_expression): Likewise.
9429
a6c46762
KT
94302011-04-12 Kai Tietz <ktietz@redhat.com>
9431
9432 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9433 MASK_MS_BITFIELD_LAYOUT bit.
9434
b4ccfed9
JJ
94352011-04-12 Jakub Jelinek <jakub@redhat.com>
9436
9437 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9438 assert it is always true.
9439 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9440 moves.
9441
0d8a2528
NP
94422011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9443
9444 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9445 compiling Objective-C to be more efficient.
9446
06bd234a
AF
94472011-04-12 Axel Freyn <axel-freyn@gmx.de>
9448
9449 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9450 argv_copied.
9451
28569ac3
RS
94522011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9453
9454 * recog.h, genoutput.c, optabs.c: Revert last patch.
9455
ae59e00d
RR
94562011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9457
81b1e7eb
UB
9458 PR target/48090
9459 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 9460
cff1b7e0
RS
94612011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9462
9463 * recog.h (insn_operand_data): Add an "allows_mem" field.
9464 * genoutput.c (output_operand_data): Initialize it.
9465 * optabs.c (maybe_legitimize_operand_same_code): New function.
9466 (maybe_legitimize_operand): Use it when matching the original
9467 op->value.
9468
77059241
RS
94692011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9470
9471 * genpreds.c (process_define_predicate): Move most processing
9472 to gensupport.c. Continue to validate the expression.
9473 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9474 (process_define_predicate): Move processing to gensupport.c.
9475 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9476 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9477 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9478 argument.
9479 (valid_predicate_name_p): New function, split out from old
9480 genpreds.c:process_define_predicate.
9481 (process_define_predicate): New function, combining code from
9482 old genpreds.c and genrecog.c functions.
9483 (process_rtx): Call it for DEFINE_PREDICATE and
9484 DEFINE_SPECIAL_PREDICATE.
9485
6308e208
RS
94862011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9487
9488 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9489 size of a '%A' memory reference.
9490 (T_DREG, T_QREG): New neon_builtin_type_bits.
9491 (arm_init_neon_builtins): Assert that the load and store operands
9492 are neon_struct_operands.
9493 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9494 (NEON_ARG_MEMORY): New builtin_arg.
9495 (neon_dereference_pointer): New function.
9496 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9497 Handle NEON_ARG_MEMORY.
9498 (arm_expand_neon_builtin): Update after above interface changes.
9499 Use NEON_ARG_MEMORY for loads and stores.
9500 * config/arm/predicates.md (neon_struct_operand): New predicate.
9501 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9502 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9503 (V_four_elem): Tweak formatting.
9504 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9505 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9506 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9507 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9508 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9509 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9510 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9511 Use %A in the output template.
9512 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9513 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9514 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9515 the width of the memory access. Remove post-increment.
9516 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9517
e5db8f2f
NC
95182011-04-12 Nick Clifton <nickc@redhat.com>
9519
9520 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9521 instruction for interrupt handlers if the target is the basic V850
9522 architecture.
9523 (expand_epilogue): Likewise.
9524
74f091d6
JJ
95252011-04-12 Jakub Jelinek <jakub@redhat.com>
9526
9527 PR rtl-optimization/48549
9528 * combine.c (propagate_for_debug): Also stop after BB_END of
9529 this_basic_block. Process LAST and just stop processing after it.
9530 (combine_instructions): If last_combined_insn has been deleted,
9531 set last_combined_insn to its PREV_INSN.
9532
f20ca725
RG
95332011-04-12 Richard Guenther <rguenther@suse.de>
9534
9535 PR tree-optimization/46076
9536 * gimple.h (struct gimple_statement_call): Add fntype field.
9537 (gimple_call_fntype): Adjust.
9538 (gimple_call_set_fntype): New function.
9539 * gimple.c (gimple_build_call_1): Set the call function type.
9540 * gimplify.c (gimplify_call_expr): Preserve the function
9541 type the frontend used for the call.
9542 (gimplify_modify_expr): Likewise.
9543 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9544 function type.
9545 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9546 function type.
9547 * tree-ssa.c (useless_type_conversion_p): Function pointer
9548 conversions are useless.
9549
a358e188
MJ
95502011-04-12 Martin Jambor <mjambor@suse.cz>
9551
9552 * cgraph.h (cgraph_node): Remove function declaration.
9553 (cgraph_create_node): Declare.
9554 (cgraph_get_create_node): Likewise.
9555 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9556 Updated all callers.
9557 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9558 the decl does not already exist. Call cgraph_get_create_node instead
9559 of cgraph_node.
9560 (cgraph_get_create_node): New function.
9561 (cgraph_same_body_alias): Update comment.
9562 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9563 assert it does not return NULL.
9564 (cgraph_update_edges_for_call_stmt): Likewise.
9565 (cgraph_clone_edge): Likewise.
9566 (cgraph_create_virtual_clone): Likewise.
9567 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9568 instead of cgraph_node.
9569 (cgraph_add_new_function): Call cgraph_create_node or
9570 cgraph_get_create_node instead of cgraph_node.
9571 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9572 instead of cgraph_node.
9573 (record_eh_tables): Likewise.
9574 (mark_address): Likewise.
9575 (mark_load): Likewise.
9576 (build_cgraph_edges): Call cgraph_get_create_node instead
9577 of cgraph_node.
9578 (rebuild_cgraph_edges): Likewise.
9579 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9580 instead of cgraph_node.
9581 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9582 cgraph_node.
9583 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9584 cgraph_create_node instead of cgraph_node.
9585 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9586 of cgraph_node.
9587 * lto-cgraph.c (input_node): Likewise.
9588 * lto-streamer-in.c (input_function): Likewise.
9589 * varasm.c (mark_decl_referenced): Likewise.
9590 (assemble_alias): Likewise.
9591
fe660d7b
MJ
95922011-04-12 Martin Jambor <mjambor@suse.cz>
9593
9594 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9595 instead of cgraph_node and assert it does not return NULL.
9596 * lto-streamer-in.c (lto_read_body): Likewise.
9597 * omp-low.c (new_omp_context): Likewise.
9598 (create_task_copyfn): Likewise.
9599 * tree-emutls.c (lower_emutls_function_body): Likewise.
9600 * matrix-reorg.c (transform_allocation_sites): Likewise.
9601
bae5cddf
JJ
96022011-04-12 Jakub Jelinek <jakub@redhat.com>
9603
9604 PR c/48552
9605 * c-typeck.c (build_asm_expr): Error out on attempts to use
9606 void type outputs or inputs for constraints that allow reg or
9607 don't allow memory.
9608
06eb52ca
CLT
96092011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9610 Richard Earnshaw <rearnsha@arm.com>
9611
9612 PR target/48250
9613 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9614 to use sign-magnitude offsets. Reject unsupported unaligned
9615 cases. Add detailed description in comments.
9616 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9617 condition from TARGET_32BIT to TARGET_ARM.
9618
648a616b
NF
96192011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9620
9621 * tree.h (struct typed_tree): New.
9622 (struct tree_common): Include it instead of tree_base.
9623 (TREE_TYPE): Update for new location of type field.
9624 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9625 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9626 (union tree_node): Add typed field.
9627 * treestruct.def (TS_TYPED): New.
9628 * lto-streamer.c (check_handled_ts_structures): Handle it.
9629 * tree.c (MARK_TS_TYPED): New macro.
9630 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9631
1e6d1da0
EB
96322011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9633
9634 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9635 (force_nonfallthru): Do not alter the loop nest if no basic block
9636 was created.
9637
96382011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
9639
9640 * config/i386/sse.md (VI): New mode iterator.
9641 (SSEMODEI): Remove.
9642 (AVX256MODEI): Ditto.
9643 (AVXMODEF4P): Ditto.
9644 (avxvecpsmode): Ditto.
9645 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9646 (sse2_andnot<mode>3): New expander.
9647 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9648 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9649 (<any_logic:code><mode>3): Use VI mode iterator.
9650 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9651 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9652 (*andnottf3): Handle AVX three-operand constraints.
9653 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9654
b1372d5d 96552011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 9656 Robert Millan <rmh@gnu.org>
b1372d5d
JM
9657
9658 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9659 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9660 GNU_USER_DYNAMIC_LINKER64): Define.
9661 (REG_NAME): Don't undefine.
9662 (MD_UNWIND_SUPPORT): Undefine.
9663 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9664 (REG_NAME): Don't undefine.
9665 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 9666 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 9667
761c0c6e
JM
96682011-04-11 Joseph Myers <joseph@codesourcery.com>
9669
9670 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9671 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9672
26e0228f
XDL
96732011-04-11 Xinliang David Li <davidxl@google.com>
9674
9675 * value-profile.c (check_ic_target): New function.
9676 (gimple_ic_transform): Sanity check indirect call target.
9677 * gimple-low.c (gimple_check_call_args): Interface change.
9678 (gimple_check_call_matching_types): New function.
9679 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
9680
96812011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9682
9683 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9684 tree-pretty-print.h & realmpfr.h.
9685
a58dfa49
VM
96862011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9687
9688 PR middle-end/48464
9689 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9690 (setup_allocno_and_important_classes): Ditto.
9691
107fd1c1
JM
96922011-04-11 Joseph Myers <joseph@codesourcery.com>
9693
9694 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9695 GNU_USER_DYNAMIC_LINKER.
9696 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9698 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9699 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9700 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9701 GNU_USER_TARGET_OS_CPP_BUILTINS.
9702 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9704 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9705 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9706 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9707 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9708 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9709 GNU_USER_TARGET_OS_CPP_BUILTINS.
9710 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9711 GNU_USER_DYNAMIC_LINKER.
9712 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9713 GNU_USER_TARGET_OS_CPP_BUILTINS.
9714 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9715 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9716 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9717 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9718 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9719 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9720 GNU_USER_DYNAMIC_LINKER64): Remove.
9721 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9722 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9723 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9724 GNU_USER_DYNAMIC_LINKER.
9725 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9726 GNU_USER_TARGET_OS_CPP_BUILTINS.
9727 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9728 GNU_USER_TARGET_OS_CPP_BUILTINS.
9729 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9730 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9731 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9732 GNU_USER_TARGET_OS_CPP_BUILTINS.
9733 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9734 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9735 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9736 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9737 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9738 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9739 GNU_USER_DYNAMIC_LINKER.
9740 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9741 GNU_USER_TARGET_OS_CPP_BUILTINS.
9742 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9744 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9745 GNU_USER_DYNAMIC_LINKER.
9746 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9747 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9748 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9750 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9751 GNU_USER_DYNAMIC_LINKER.
9752 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9753 GNU_USER_DYNAMIC_LINKERN32.
9754 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9755 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9756 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9757 GNU_USER_DYNAMIC_LINKER32.
9758 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9761 GNU_USER_DYNAMIC_LINKER.
9762 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9763 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9764 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9765 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 9766 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
9767 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9768 GNU_USER_DYNAMIC_LINKER32.
9769 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9770 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9771 GNU_USER_DYNAMIC_LINKER.
9772 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9773 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9774 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9775 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9776 GNU_USER_DYNAMIC_LINKER64.
9777 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9778 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9779 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9780 GNU_USER_DYNAMIC_LINKER.
9781 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9783 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9784 GNU_USER_DYNAMIC_LINKER.
9785 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9786 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9787 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9788 GNU_USER_DYNAMIC_LINKER32.
9789 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9790 GNU_USER_DYNAMIC_LINKER64.
9791 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9792 GNU_USER_DYNAMIC_LINKER64.
9793 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9794 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9795 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9796 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 9797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 9798
e24609cf
JM
97992011-04-11 Joseph Myers <joseph@codesourcery.com>
9800
9801 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9802 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9803 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9804 GNU_USER_DYNAMIC_LINKER.
9805 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9806 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9807 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9808 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9809 GNU_USER_DYNAMIC_LINKER64.
9810 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9811 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9812 GNU_USER_LINK_EMULATION.
9813 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9814 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9815 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9816 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9817 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9818 CPP_SPEC, CC1_SPEC): Remove.
9819 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9820 (GNU_USER_DYNAMIC_LINKER): Define.
9821 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9822 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9823 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9824 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9825 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9826 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9827 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9828 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9829 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9830 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9831 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9832 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9833 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9834 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9835 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9836 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9837 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9838 GNU_USER_DYNAMIC_LINKER.
9839 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9840 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9841 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9842 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9843 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9844 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9845 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9846 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9847 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 9848 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 9849
b8ce4e94
KT
98502011-04-11 Kai Tietz <ktietz@redhat.com>
9851
9852 PR target/9601
9853 PR target/11772
9854 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9855 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9856 comment.
9857 (ix86_is_msabi_thiscall): Removed.
9858 (ix86_is_type_thiscall): Likewise.
9859 (ix86_get_callcvt): New function.
9860 (ix86_comp_type_attributes): Simplify check.
9861 (ix86_function_regparm): Use ix86_get_callcvt for calling
9862 convention attribute checks.
9863 (ix86_return_pops_args): Likewise.
9864 (ix86_static_chain): Likewise.
9865 (x86_this_parameter): Likewise.
9866 (x86_output_mi_thunk): Likewise.
9867 (ix86_function_type_abi): Optimize check for types without attributes.
9868 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9869 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9870 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9871 by flag-values.
9872 (IX86_BASE_CALLCVT): Helper macro.
9873 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9874 Use ix86_get_callcvt for calling convention attribute checks and avoid
9875 symbol-decoration for stdcall in TARGET_RTD case.
9876 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9877 Likewise.
9878 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9879 for declaration.
9880
798dd0ba
UB
98812011-04-11 Uros Bizjak <ubizjak@gmail.com>
9882
9883 * config/i386/sse.md (VI_128): New mode iterator.
9884 (VI12_128): Rename from SSEMODE12.
9885 (VI14_128): Rename from SSEMODE14.
9886 (VI124_128): New mode iterator.
9887 (VI24_128): Rename from SSEMODE248.
9888 (VI248_128): Rename from SSEMODE248.
9889 (SSEMODE124C8): Remove.
9890 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9891 (*sse2_<plusminus_insn><mode>3): Merge with
9892 *avx_<plusminus_insn><mode>3.
9893 (*mulv8hi3): Merge with *avx_mulv8hi3.
9894 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9895 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9896 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9897 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9898 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9899 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9900 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9901 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9902 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9903 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9904 (*<smaxmin:code>v8hi3): Ditto.
9905 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9906 (*<smaxmin:code>v16qi3): Ditto.
9907 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9908 (*sse2_eq<mode>3): Ditto.
9909 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9910 (*sse2_gt<mode>3): Ditto.
9911 (vcondv2di): Split out of vcond<mode>.
9912 (vconduv2di): Split out of vcondu<mode>.
9913
956011be
RG
99142011-04-11 Richard Guenther <rguenther@suse.de>
9915
9916 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9917 before calling tree_low_cst.
9918
e6313a78
RG
99192011-04-11 Richard Guenther <rguenther@suse.de>
9920
9921 * stor-layout.c (layout_type): Compute all array index size operations
9922 in the original type.
9923 (initialize_sizetypes): Add comment.
9924 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9925
e69d7376
JM
99262011-04-11 Joseph Myers <joseph@codesourcery.com>
9927
9928 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9929
9f9ebcdf
MJ
99302011-04-11 Martin Jambor <mjambor@suse.cz>
9931
9932 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9933 of cgraph_node, handle NULL return value.
9934 (cgraph_global_info): Likewise.
9935 (cgraph_rtl_info): Likewise.
9936 * tree-inline.c (estimate_num_insns): Likewise.
9937 * gimplify.c (unshare_body): Likewise.
9938 (unvisit_body): Likewise.
9939 (gimplify_body): Likewise.
9940 * predict.c (optimize_function_for_size_p): Likewise.
9941 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9942 (call_may_clobber_ref_p_1): Likewise.
9943 * varasm.c (function_section_1): Likewise.
9944 (assemble_start_function): Likewise.
9945
581985d7
MJ
99462011-04-11 Martin Jambor <mjambor@suse.cz>
9947
9948 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9949 of cgraph_node.
9950 * final.c (rest_of_clean_state): Likewise.
9951 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9952 * passes.c (pass_init_dump_file): Likewise.
9953 (execute_all_ipa_transforms): Likewise.
9954 (function_called_by_processed_nodes_p): Likewise.
9955 * predict.c (maybe_hot_frequency_p): Likewise.
9956 (probably_never_executed_bb_p): Likewise.
9957 (compute_function_frequency): Likewise.
9958 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9959 (unnest_nesting_tree_1): Likewise.
9960 (lower_nested_functions): Likewise.
9961 * tree-optimize.c (execute_fixup_cfg): Likewise.
9962 (tree_rest_of_compilation): Likewise.
9963 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9964 * tree-sra.c (ipa_early_sra): Likewise.
9965 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9966 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9967 * ipa.c (record_cdtor_fn): Likewise.
9968 * ipa-inline.c (cgraph_early_inlining): Likewise.
9969 (compute_inline_parameters_for_current): Likewise.
9970 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9971 * ipa-pure-const.c (local_pure_const): Likewise.
9972 * ipa-split.c (split_function): Likewise.
9973 (execute_split_functions): Likewise.
9974 * cgraphbuild.c (build_cgraph_edges): Likewise.
9975 (rebuild_cgraph_edges): Likewise.
9976 (cgraph_rebuild_references): Likewise.
9977 (remove_cgraph_callee_edges): Likewise.
9978 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9979 (verify_cgraph_node): Likewise.
9980 (cgraph_analyze_functions): Likewise.
9981 (cgraph_preserve_function_body_p): Likewise.
9982 (save_inline_function_body): Likewise.
9983 (save_inline_function_body): Likewise.
9984 * tree-inline.c (copy_bb): Likewise.
9985 (optimize_inline_calls): Likewise.
9986
57dbdc5a
MJ
99872011-04-11 Martin Jambor <mjambor@suse.cz>
9988
9989 PR tree-optimization/48195
9990 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9991 ipa_check_create_edge_args.
9992 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9993 ipa_check_create_edge_args.
9994 * ipa-inline.c (inline_generate_summary): Do not call
9995 ipa_check_create_node_params and ipa_check_create_edge_args.
9996 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9997 ipa_check_create_edge_args.
9998
d108e679
AS
99992011-04-09 Anatoly Sokolov <aesok@post.ru>
10000
10001 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10002 instead of loop.
10003 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10004 * function.c (record_hard_reg_sets): Likewise.
10005 * ira.c (compute_regs_asm_clobbered): Likewise.
10006 * sched-deps.c (sched_analyze_1): Likewise.
10007 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10008
3411bc59
XDL
100092011-04-09 Xinliang David Li <davidxl@google.com>
10010
10011 PR tree-optimization/PR48484
10012 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10013 has_valid_pred lazily
10014
b365495a
DS
100152011-04-09 Duncan Sands <baldrick@free.fr>
10016
10017 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10018
68bc509a
EB
100192011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10020
10021 * combine.c (combine_validate_cost): Adjust comments. Set registered
10022 cost of I0 to zero at the end, if any.
10023
041e059f
XDL
100242011-04-08 Xinliang David Li <davidxl@google.com>
10025
68bc509a
EB
10026 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10027 to insane profile data.
041e059f 10028
444b3995
XDL
100292011-04-08 Xinliang David Li <davidxl@google.com>
10030
10031 * ipa-cp.c (ipcp_update_profiling): Correct
10032 negative scale factor due to insane profile data.
10033
6a801cf2
XDL
100342011-04-08 Xinliang David Li <davidxl@google.com>
10035
10036 * final.c (dump_basic_block_info): New function.
10037 (final): Dump basic block.
10038 (final_scan_insn): Remove old dump.
10039
d5f3624e
SK
100402011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10041
68bc509a
EB
10042 PR target/47829
10043 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10044 crtbegin/crtend.
d5f3624e 10045
42821aff
MM
100462011-04-08 Michael Matz <matz@suse.de>
10047
10048 PR middle-end/48389
10049 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10050 functions.
10051 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10052 * rtl.h (rebuild_jump_labels_chain): Declare.
10053 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10054 insns inserted on edges.
10055
ad7be009
JM
100562011-04-08 Joseph Myers <joseph@codesourcery.com>
10057
10058 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10059 * config/arm/arm-arches.def: New.
10060 * config/arm/arm-opts.h: New.
10061 * config/arm/genopt.sh: New.
10062 * config/arm/arm-tables.opt: New (generated).
10063 * config/arm/arm.c (arm_handle_option, arm_target_help,
10064 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10065 (all_architectures): Get most table contents from arm-arches.def.
10066 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10067 arm_selected_tune here.
10068 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10069 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10070 (march=, mcpu=, mtune=): Use Enum and Var.
10071 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10072 (arm.o): Update dependencies.
ecbb6fb7 10073
42821aff 100742011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
10075
10076 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10077 of header_file.
10078 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10079 (write_typed_alloc_defns): Likewise.
10080 (main): Calls write_typed_alloc_defns with output_header.
10081
8d189b3f
VM
100822011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10083
68bc509a 10084 PR inline-asm/48435
8d189b3f
VM
10085 * ira-color.c (setup_profitable_hard_regs): Add comments.
10086 Don't take prohibited hard regs into account.
10087 (setup_conflict_profitable_regs): Rename to
10088 get_conflict_profitable_regs.
10089 (check_hard_reg_p): Check prohibited hard regs.
10090
44f370bf
NF
100912011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10092
10093 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10094 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10095 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10096
483d7ad3
JDA
100972011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10098
10099 PR target/48366
10100 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 10101 move from floating point to shift amount register.
483d7ad3
JDA
10102 (emit_move_sequence): Remove secondary reload support for floating
10103 point to shift amount amount register copies.
10104 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10105 amount register copies.
10106 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10107 register, return false if mode isn't a scalar integer mode.
10108 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10109
97e03fa1
RG
101102011-04-08 Richard Guenther <rguenther@suse.de>
10111
10112 * gimple.c (gimple_call_flags): Remove kludge.
10113
9d40778b
AM
101142011-04-08 Alexander Monakov <amonakov@ispras.ru>
10115
10116 * sel-sched.c (sel_region_init): Move call to
10117 sel_setup_region_sched_flags after setup_current_loop_nest.
10118
19ac7892
AB
101192011-04-08 Andrey Belevantsev <abel@ispras.ru>
10120
10121 PR rtl-optimization/48272
19ac7892
AB
10122 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10123 init_insn_reg_pressure_info. Adjust a caller.
10124 * sched-int.h (init_insn_reg_pressure_info): Declare.
10125 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10126 when sched-pressure is enabled.
10127
0f8c63cc
RG
101282011-04-08 Richard Guenther <rguenther@suse.de>
10129
10130 * gimple.c (gimple_set_modified): Do not queue calls to
10131 MODIFIED_NORETURN_CALLS here ...
10132 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10133
5e5a425e
RG
101342011-04-08 Richard Guenther <rguenther@suse.de>
10135
10136 PR lto/48467
10137 * toplev.c (lang_dependent_init): Do not open asm_out_file
10138 in WPA mode, nor perform debug machinery initialization.
10139 (finalize): Do not unlink asm_out_file in WPA mode.
10140
9bfc434b
RG
101412011-04-08 Richard Guenther <rguenther@suse.de>
10142
10143 * gimple.h (gimple_call_fntype): New function.
10144 (gimple_call_return_type): Use it.
10145 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10146 * gimple-low.c (gimple_check_call_args): Likewise.
10147 * gimple.c (gimple_call_flags): Likewise.
10148 (gimple_call_arg_flags): Likewise.
10149 (gimple_call_return_flags): Likewise.
10150 * tree-cfg.c (verify_gimple_call): Likewise.
10151 (do_warn_unused_result): Likewise.
10152 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10153 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10154
7c1f0b40
DM
101552011-04-08 Dmitry Melnik <dm@ispras.ru>
10156
10157 PR rtl-optimization/48235
10158 * sel-sched.c (code_motion_process_successors): Recompute the last
10159 insn in basic block if control flow changed.
10160 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10161 Update condition for ilist_remove.
10162
ea4d630f
AM
101632011-04-08 Alexander Monakov <amonakov@ispras.ru>
10164
10165 PR rtl-optimization/48302
10166 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10167 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10168 it to record added preheader blocks.
10169 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10170 on to sel_add_loop_preheaders.
10171 (sel_region_init): Move call to setup_current_loop_nest after
10172 sel_init_bbs.
10173
07643d76
AM
101742011-04-08 Alexander Monakov <amonakov@ispras.ru>
10175
10176 PR target/48273
10177 * cfgloop.h (loop_has_exit_edges): New helper.
10178 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10179 non-clonable.
10180 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10181 that have no exit edges.
10182
1f3b2b4e
AM
101832011-04-08 Alexander Monakov <amonakov@ispras.ru>
10184
10185 PR rtl-optimization/48442
10186 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10187 all callers. Adjust assert.
10188
554f1948
JJ
101892011-04-08 Jakub Jelinek <jakub@redhat.com>
10190
10191 PR tree-optimization/48377
10192 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10193 is_packed to true even for types with smaller TYPE_ALIGN than
10194 TYPE_SIZE.
10195
ddf72388
RG
101962011-04-08 Richard Guenther <rguenther@suse.de>
10197
10198 PR bootstrap/48513
10199 * doc/tm.texi: Re-generate.
10200
0c27e2d8
WG
102012011-04-08 Wei Guozhi <carrot@google.com>
10202
10203 PR target/47855
10204 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10205 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10206 * config/arm/arm.md (*push_multi): Change the length computation to
10207 call a C function.
10208
07c5f94e
AS
102092011-04-08 Anatoly Sokolov <aesok@post.ru>
10210
10211 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10212 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10213 * doc/tm.texi: Regenerate.
10214 * system.h (ASM_OUTPUT_BSS): Poison.
10215 * varasm.c (asm_output_bss): Remove function.
10216 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 10217
07c5f94e
AS
10218 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10219 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10220 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10221 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10222 Likewise.
10223 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10224 Likewise.
10225 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10226 Likewise.
10227 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10228
5f2c36e1
JM
102292011-04-07 Joseph Myers <joseph@codesourcery.com>
10230
10231 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10232 EnumValue lines.
10233
39e7722b
JM
102342011-04-07 Joseph Myers <joseph@codesourcery.com>
10235
10236 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10237 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10238 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10239 OPT_mcpu32.
10240 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10241 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10242 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10243 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10244 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10245 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10246 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10247 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10248 options. Don't map other m68k options manually. Don't handle
10249 old-style options as canonical.
10250 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 10251 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 10252
cf103ca4
EB
102532011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10254
10255 * basic-block.h (force_nonfallthru): Move to...
10256 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10257 (force_nonfallthru): ...here.
10258 * cfghooks.c (force_nonfallthru): New function.
10259 * cfgrtl.c (force_nonfallthru): Rename into...
10260 (rtl_force_nonfallthru): ...this.
10261 (commit_one_edge_insertion): Do not set AUX field.
10262 (commit_edge_insertions): Do not discover new basic blocks.
10263 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10264 (cfg_layout_rtl_cfg_hooks): Likewise.
10265 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10266 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10267 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10268
14431f58
AS
102692011-04-07 Anatoly Sokolov <aesok@post.ru>
10270
10271 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10272 Remove macros.
10273
3729983c
UB
102742011-04-07 Uros Bizjak <ubizjak@gmail.com>
10275
10276 * config/i386/sse.md: Update copyright year.
10277 (avxcvtvecmode): Remove.
10278 (sse_movhlps): Merge with *avx_movhlps.
10279 (sse_movlhps): Merge with *avx_movlhps.
10280 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10281 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10282 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10283 (sse_loadhps): Merge with *avx_loadhps.
10284 (sse_storelps): Merge with *avx_storelps.
10285 (sse_loadlps): Merge with *avx_loadlps.
10286 (sse_movss): Merge with *avx_movss.
10287 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10288 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10289 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10290 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10291 (vec_set<mode>_0): Ditto.
10292 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10293 (sse4_1_insertps): Merge with *avx_insertps.
10294 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10295 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10296 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10297 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10298 (sse2_storehpd): Merge with *avx_storehpd.
10299 (sse2_loadhpd): Merge with *avx_loadhpd.
10300 (sse2_loadlpd): Merge with *avx_loadlpd.
10301 (sse2_movsd): Merge with *avx_movsd.
10302 (*vec_concatv2df): Merge with *vec_concatv2df.
10303
4e626909
JJ
103042011-04-07 Jakub Jelinek <jakub@redhat.com>
10305
10306 PR debug/48343
10307 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 10308 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
10309 (try_combine): Add last_combined_insn parameter, pass it instead of
10310 i3 to propagate_for_debug.
10311
3729983c 103122011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
10313
10314 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10315 to handle MDR <-> data register transfers.
10316 (movhi_internal): Likewise.
10317
20c03367
AM
103182011-04-07 Alan Modra <amodra@gmail.com>
10319
10320 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10321 previous stack info.
10322
bf22920b
TV
103232011-04-07 Tom de Vries <tom@codesourcery.com>
10324
10325 PR target/43920
10326 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10327 flow_find_cross_jump. Swap variables to implement backward replacement.
10328 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10329
823918ae
TV
103302011-04-07 Tom de Vries <tom@codesourcery.com>
10331
10332 PR target/43920
10333 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
10334 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10335 and bb2.
10336 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10337 src1 or src2. Redirect edges to the last basic block. Update
10338 frequency and count on multiple basic blocks in case of fallthru.
823918ae 10339
472c95f5
TV
103402011-04-07 Tom de Vries <tom@codesourcery.com>
10341
10342 PR target/43920
10343 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10344 function.
3729983c
UB
10345 (old_insns_match_p): Change return type. Replace return false/true
10346 with return dir_none/dir_both. Use can_replace_by.
10347 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10348 direction from dir_p. Register replacement direction in dir, last_dir
10349 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
10350 merge_dir. Return replacement direction in dir_p.
10351 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10352 return type of old_insns_match_p.
10353 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10354 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10355 flow_find_cross_jump.
10356 * basic-block.h (enum replace_direction): New type.
10357 (flow_find_cross_jump): Add parameter to declaration.
10358
a95d4000
UB
103592011-04-06 Uros Bizjak <ubizjak@gmail.com>
10360
10361 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10362 (AVXMODEDCVTPS2DQ): Ditto.
10363 (VEC_FLOAT_MODE): Ditto.
10364 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10365 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10366 (<any_logic:code><mode>3): Use VF mode iterator.
10367 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10368 Use VF mode iterator.
10369 (copysign<mode>3): Use VF mode iterator.
10370 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10371 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10372 (*<any_logic:code><MODEF:mode>3): Merge with
10373 *avx_<any_logic:code><MODEF:mode>3.
10374 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10375 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10376 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10377 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10378 (sse2_cvtdq2ps): Use %v modifier.
10379 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10380 (avx_cvtps2dq<avxmodesuffix>): Remove.
10381 (sse2_cvtps2dq): Use %v modifier.
10382 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10383 (avx_cvttps2dq<avxmodesuffix>): Remove.
10384 (sse2_cvttps2dq): Use %v modifier.
10385 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10386 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10387 (sse2_cvtsd2siq): Fix insn template.
10388 (sse2_cvtsd2siq_2): Ditto.
10389 (sse2_cvttsd2siq): Ditto.
10390 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10391 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10392
ad01c437
JM
103932011-04-06 Joseph Myers <joseph@codesourcery.com>
10394
10395 * gcov-io.c: Use GCC Runtime Library Exception.
10396
fe846284
JJ
103972011-04-06 Jakub Jelinek <jakub@redhat.com>
10398
10399 PR debug/48466
10400 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10401 as base_reg whatever register reg has been eliminated to, instead
10402 of hardcoding STACK_POINTER_REGNUM.
10403
acce4e77
JM
104042011-04-06 Joseph Myers <joseph@codesourcery.com>
10405
10406 * doc/tm.texi.in: Document C target hooks as separate from general
10407 target hooks.
10408 * doc/tm.texi: Regenerate.
10409 * genhooks.c (struct hook_desc): Add docname field.
10410 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10411 docname field.
10412 (hook_array): Include c-target.def.
10413 (emit_documentation): Use docname field in output.
10414 (emit_init_macros): Take docname argument. Only emit definitions
10415 for hooks matching docname.
10416 (main): Expect additional arguments in all cases. Pass argument
10417 to emit_init_macros.
10418 * target.def: Move initial macro definitions and comments to
10419 target-hooks-macros.h.
10420 (gcc_targetcm): Move to c-family/c-target.def.
10421 * target.h (targetcm): Move declaration to c-family/c-target.h.
10422 * targhooks.c (default_handle_c_option): Move to
10423 c-family/c-opts.c.
10424 * targhooks.h (default_handle_c_option): Move declaration to
10425 c-family/c-common.h.
10426 * target-hooks-macros.h: New file.
10427 * config.gcc (target_has_targetcm): Define and use to add to
10428 c_target_objs and cxx_target_objs.
10429 * config/default-c.c: New file.
10430 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10431 of target.h and target-def.h.
10432 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10433 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10434 darwin_check_cfstring_format_arg): Make static.
10435 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10436 TARGET_STRING_OBJECT_REF_TYPE_P,
10437 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10438 * config/darwin-protos.h (darwin_objc_construct_string,
10439 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10440 declare.
10441 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10442 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 10443 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
10444 * config/t-darwin (darwin-c.o): Update dependencies.
10445 * system.h (TARGET_HAS_TARGETCM): Poison.
10446 * Makefile.in (TARGET_H): Update.
10447 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10448 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10449 (default-c.o): New target.
10450 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 10451 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
10452 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10453 c-target.def.
10454 (build/genhooks.o): Update dependencies.
10455
275b4baa 104562011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 10457
275b4baa
RG
10458 * ipa-inline.c (enum inlining_mode): Remove.
10459 (cgraph_flatten): Use some other token.
10460 (cgraph_edge_early_inlinable_p): New function, split out from ...
10461 (cgraph_perform_always_inlining): New function, split out from ...
10462 (cgraph_decide_inlining_incrementally): ... here.
10463 (cgraph_mark_inline_edge): Adjust.
10464 (cgraph_early_inlining): Re-structure.
10465 (pass_early_inline): Require SSA form.
10466
f15b8bdf 104672011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
10468 Julian Brown <julian@codesourcery.com>
10469 Mark Shinwell <shinwell@codesourcery.com>
10470
10471 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10472 LO_REGS only for Thumb-1.
10473 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10474 be used in short instructions when optimising for size on Thumb-2.
10475
516426da
EB
104762011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10477
10478 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10479 associated with user returns to be preserved.
10480
96621ebf
TG
104812011-04-06 Tristan Gingold <gingold@adacore.com>
10482
f15b8bdf
EB
10483 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10484 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
10485 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10486 if XCOFF_DEBUGGING_INFO.
10487
07c0852e
UB
104882011-04-06 Uros Bizjak <ubizjak@gmail.com>
10489
10490 * config/i386/i386.md (attribute isa): New.
10491 (attribute enabled): New.
10492 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10493 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10494 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10495 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10496 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10497 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10498 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10499 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10500
10501 * config/i386/sse.md (VF): New mode iterator.
10502 (VF1): Ditto.
10503 (VF2): Ditto.
10504 (VF_128): Ditto.
10505 (SSEMODEF4): Remove.
10506 (attribute sse): Handle V8SF and V4DF modes.
10507 (<absneg:code><mode>2): Use VF mode iterator.
10508 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10509 mode iterator.
10510 (<plusminus_insn><mode>3): Use VF mode iterator.
10511 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10512 Use VF mode iterator.
10513 (<sse>_vm<plusminus_insn><mode>3): Merge with
10514 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10515 (mul<mode>3): Use VF mode iterator.
10516 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10517 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10518 mode iterator.
10519 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10520 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10521 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10522 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10523 mode iterator.
10524 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10525 Use VF1 mode iterator.
10526 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10527 (sqrt<VF2:mode>2): New expander.
10528 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10529 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10530 and sqrtv2df2. Use VF mode iterator.
10531 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10532 mode iterator.
10533 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10534 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10535 Use VF1 mode iterator.
10536 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10537 (<smaxmin:code><mode>3): Use VF mode iterator.
10538 (*<smaxmin:code><mode>3_finite): Merge with
10539 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10540 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10541 (<sse>_vm<smaxmin:code><mode>2): Merge with
10542 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10543 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10544 mode iterator.
10545 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10546 mode iterator.
10547 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10548 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10549 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10550 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10551 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10552 VF mode iterator.
10553 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10554 Use VF_128 mode iterator.
10555 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10556 mode iterator.
10557 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10558 VF_128 mode iterator.
10559 (vcond<mode>): Use VF mode iterator.
10560 * config/i386/predicates.md (sse_comparison_operator): Merge with
10561 avx_comparison_float_operator. Do not declare as special_predicate.
10562 * config/i386/i386.c (struct builtin_description): Update for renamed
10563 compare patterns.
10564 (ix86_expand_args_builtin): Ditto.
10565 (ix86_expand_sse_compare_mask): Ditto.
10566
ff5d142c
RG
105672011-04-06 Richard Guenther <rguenther@suse.de>
10568
10569 * tree-inline.c (estimate_num_insns): For calls simply account
10570 for all passed arguments and a used return value.
10571
d7d1d041 105722011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 10573
d7d1d041
RG
10574 PR tree-optimization/47663
10575 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10576 call_stmt_time fields.
10577 (cgraph_edge_inlinable_p): Declare.
10578 (cgraph_edge_recursive_p): New inline function.
10579 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10580 (cgraph_clone_edge): Copy it.
10581 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10582 Account for call stmt time.
10583 (cgraph_estimate_time_after_inlining): Take edge argument.
10584 (cgraph_estimate_edge_growth): Account call stmt size.
10585 (cgraph_estimate_size_after_inlining): Take edge argument.
10586 (cgraph_mark_inline_edge): Adjust.
10587 (cgraph_check_inline_limits): Likewise.
10588 (cgraph_recursive_inlining_p): Remove.
10589 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10590 (cgraph_decide_recursive_inlining): Take edge argument and
10591 adjust.
10592 (cgraph_decide_inlining_of_small_functions): Do not avoid
10593 diags for recursive inlining here.
10594 (cgraph_flatten): Adjust.
10595 (cgraph_decide_inlining_incrementally): Likewise.
10596 (estimate_function_body_sizes): Remove call cost handling.
10597 (compute_inline_parameters): Initialize caller edge call costs.
10598 (cgraph_estimate_edge_growth): New function.
10599 (cgraph_estimate_growth): Use it.
10600 (cgraph_edge_badness): Likewise.
10601 (cgraph_check_inline_limits): Take an edge argument.
10602 (cgraph_decide_inlining_of_small_functions): Adjust.
10603 (cgraph_decide_inlining): Likewise.
10604 * tree-inline.c (estimate_num_insns): Only account for call
10605 return value if it is used.
10606 (expand_call_inline): Avoid diagnostics on recursive inline
10607 functions here.
10608 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10609 (input_edge): Input edge call costs.
10610
2feb95f7
RO
106112011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10612
10613 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10614
26fbd9c2
JW
106152011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10616
10617 * doc/invoke.texi (Spec Files): Fix typo.
10618
694dc0ca
EB
106192011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10620
10621 * profile.c (branch_prob): Move declaration of local variable. Remove
10622 obsolete ??? comment. Expand the location explicitly instead of using
10623 the LOCATION_FILE and LOCATION_LINE macros.
10624
4925d0d5
WG
106252011-04-06 Wei Guozhi <carrot@google.com>
10626
10627 PR target/47855
10628 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10629 (arm_cond_branch): Likewise.
10630 (arm_cond_branch_reversed): Likewise.
10631 (arm_jump): Likewise.
10632 (push_multi): Likewise.
10633 * config/arm/constraints.md (Py): New constraint.
10634
f55dfa2f
NF
106352011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10636
10637 PR bootstrap/48471
10638 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10639 Move these...
10640 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10641 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10642 #ifdef DBX_DEBUGGING_INFO.
10643
fca96842
BS
106442011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10645
10646 PR bootstrap/48403
10647 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10648 if old and new states differ.
10649
30b83e38
JM
106502011-04-05 Joseph Myers <joseph@codesourcery.com>
10651
10652 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10653 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10654 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10655 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10656 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10657 mcfv4e): Use Alias.
10658 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10659 ColdFire options to -mcpu= options.
10660
277a9aa5
JL
106612011-04-05 Jeff Law <law@redhat.com>
10662
10663 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10664 check if BB is a successor of LOOP->header and return
10665 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10666
c1e2610e
SB
106672011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10668
10669 * cprop.c (struct reg_use): Remove.
10670 (reg_use_table): Make an array of RTX.
10671 (find_used_regs, constprop_register, local_cprop_pass,
10672 bypass_block): Simplify users of reg_use_table.
10673 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10674 on one of the uses found by find_used_regs.
10675
e532f586
NF
106762011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10677
10678 PR bootstrap/48469
10679 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10680 declaration.
10681
3fb7c055
NF
106822011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10683
10684 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10685 as an rtx.
10686 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10687
b71b43d9
SB
106882011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10689
10690 PR middle-end/48441
10691 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10692
b405b274
NF
106932011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10694
10695 * combine.c: Include obstack.h.
10696 (struct insn_link): Define.
10697 (uid_log_links): Adjust type.
10698 (FOR_EACH_LOG_LINK): New macro.
10699 (insn_link_obstack): Declare.
10700 (alloc_insn_link): Define.
10701 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10702 type of link variables.
10703 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10704 (try_combine, record_promoted_values, distribute_notes): Likewise.
10705 (distribute_links): Likewise. Tweak prototype.
10706 (clear_log_links): Delete.
10707 (adjust_for_new_dest): Call alloc_insn_link.
10708 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10709
6409abe3
NF
107102011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10711
10712 * gcse.c (modify_mem_list): Convert to an array of VECs.
10713 (canon_modify_mem_list, compute_transp): Tweak formatting.
10714 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10715 (load_killed_in_block_p): Likewise.
10716 (record_last_mem_set_info): Likewise.
10717 (clear_modify_mem_tables): Likewise.
10718
170d8157
TV
107192011-04-05 Tom de Vries <tom@codesourcery.com>
10720
10721 PR middle-end/48461
10722 * function.c (emit_use_return_register_into_block): Only define if
10723 HAVE_return.
10724
c5911a55
EB
107252011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10726
10727 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10728
abd016e6
JM
107292011-04-05 Joseph Myers <joseph@codesourcery.com>
10730
10731 * config/rx/rx-opts.h: New.
10732 * config/rx/rx.c (rx_cpu_type): Remove.
10733 (rx_handle_option): Don't assert that global structures are in
10734 use. Access variables via opts pointer. Defer most handling of
10735 OPT_mint_register_. Use error_at.
10736 (rx_option_override): Handle deferred OPT_mint_register_ here.
10737 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10738 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10739 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10740 (rx_cpu_types): New Enum and EnumValue entries.
10741 (mint-register=): Use Defer and use Var accordingly.
10742
1ed13f83
NF
107432011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10744
10745 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10746 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10747 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10748 Move these...
10749 (debug_free_queue, debug_nesting, symbol_queue_index):
10750 ...and these...
10751 * dbxout.c: ...to here. Make static.
10752
6ce1edcf
NF
107532011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10754
10755 * gcse.c (modify_pair): Define. Define a VEC of it.
10756 (canon_modify_mem_list): Convert to an array of VECs.
10757 (free_insn_expr_list_list): Delete.
10758 (clear_modify_mem_tables): Call VEC_free instead.
10759 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10760 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10761 (canon_list_insert, compute_transp): Likewise.
10762
c201ac94
TV
107632011-04-05 Tom de Vries <tom@codesourcery.com>
10764
10765 PR target/43920
10766 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10767 for size.
10768
4c029f40
TV
107692011-04-05 Tom de Vries <tom@codesourcery.com>
10770
10771 PR target/43920
10772 * function.c (emit_use_return_register_into_block): New function.
10773 (thread_prologue_and_epilogue_insns): Use
10774 emit_use_return_register_into_block.
10775
2a562b0a
TV
107762011-04-05 Tom de Vries <tom@codesourcery.com>
10777
10778 PR target/43920
10779 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10780 insn.
10781
0248bceb
TV
107822011-04-05 Tom de Vries <tom@codesourcery.com>
10783
10784 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10785
ffa94123
YZ
107862011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10787
798dd0ba
UB
10788 * config/arm/arm.md (define_constants for unspec): Replace with
10789 define_c_enum.
10790 (define_constants for unspecv): Replace with define_c_enum.
10791 * config/arm/neon.md (define_constants for unspec): Replace with
10792 define_c_enum.
ffa94123 10793
3b8f9b46
RH
107942011-04-04 Richard Henderson <rth@redhat.com>
10795
720cf80f 10796 PR bootstrap/48400
3b8f9b46
RH
10797 * dwarf2out.c (output_line_info): Always emit line info from
10798 at least one section.
10799 (dwarf2out_init): Create text_section_line_info here ...
10800 (set_cur_line_info_table): ... not here.
10801
720cf80f 108022011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
10803
10804 PR target/48380
10805 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 10806 not called.
e5b0e1ca 10807
720cf80f 10808 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 10809
196565d4
SB
108102011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10811
b77f9eab
SB
10812 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10813 (expr_equiv_p): Remove.
10814 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10815 (hash_scan_set): Update call to insert_set_in_table.
10816 (dump_hash_table): Dump <dest, src> pair.
10817 (lookup_set): Simplify. Lookup <dest, src> pair.
10818 (compute_transp): Remove, fold heavily simplified code into...
10819 (compute_local_properties): ...here. Expect COMP and TRANSP
10820 unconditionally.
10821 (find_avail_set): Take set directly from struct expr.
10822 (find_bypass-set): Likewise.
10823 (bypass_block): Likewise.
10824 (cprop_insn): Likewise. Remove redundant INSN_P test.
10825
384d7a55
SB
10826 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10827 checks on form of COND from find_implicit_sets to here.
10828 (find_implicit_sets): Cleanup control flow. Split critical edges
10829 if it exposes implicit sets. Allocate/resize implicit_sets as
10830 necessary.
10831 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10832 changed something. Run df_analyze after find_implicit_sets if any
10833 edges were split. Do not allocate implicit_sets here.
10834
3084ce69
SB
10835 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10836 (gcse_obstack): Renamed to cprop_obstack.
10837 (GNEW, GNEWVEC, GNEWVAR): Remove.
10838 (gmalloc): Remove.
10839 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10840 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10841 (gcse_alloc): Likewise, and rename to cprop_alloc.
10842 (alloc_gcse_men, free_gcse_mem): Remove.
10843 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10844 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10845 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10846
196565d4
SB
10847 * cprop.c (oprs_not_set_p): Remove.
10848 (mark_set, mark_clobber): Remove.
10849 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10850 (reg_not_set_p): New function.
10851 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10852 (cprop_insn): Likewise.
10853 (cprop_jump): Use FOR_EACH_EDGE.
10854
9b69cf83
BS
108552011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10856
10857 PR bootstrap/48403
10858 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10859 (rank_for_schedule): Use scheduled_insns vector instead of
10860 last_scheduled_insn.
10861 (ok_for_early_queue_removal): Likewise.
10862 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10863 we have a dbg_cnt.
10864 (choose_ready): Likewise.
10865 (commit_schedule): Use VEC_iterate.
10866 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10867 a dbg_cnt, use it and ensure the first insn is in the ready list.
10868 (haifa_sched_init): Allocate scheduled_insns.
10869 (sched_extend_ready_list): Don't allocate it; reserve space.
10870 (haifa_sched_finish): Free it.
10871
24f48c2f
JM
108722011-04-04 Joseph Myers <joseph@codesourcery.com>
10873
10874 * optc-gen.awk: Always remove type from Variable entry before
10875 recording in var_seen.
10876
8effe856
EB
108772011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10878
10879 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10880 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10881 call to tidy_fallthru_edges.
10882
413519ae
JM
108832011-04-04 Joseph Myers <joseph@codesourcery.com>
10884
10885 * doc/options.texi (ToLower): Document.
3729983c 10886 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
10887 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10888 * opts.h (cl_option): Add cl_tolower field.
10889 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10890 arguments with lowercase strings.
10891 * config/rx/rx.opt (mcpu=): Add ToLower.
10892 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10893 argument.
10894
7d34a1b0
RS
108952011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10896
10897 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10898
c30e7434
RS
108992011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10900
10901 * config/vax/vax.c: Include reload.h.
10902
112a861d
AS
109032011-04-04 Anatoly Sokolov <aesok@post.ru>
10904
10905 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10906 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10907 (sparc_preferred_reload_class): New function.
10908
e8c6bb74
JJ
109092011-04-04 Jakub Jelinek <jakub@redhat.com>
10910
2aeaa366 10911 PR debug/48401
e8c6bb74
JJ
10912 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10913 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10914
2c081caf
NF
109152011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10916
10917 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10918 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10919
53802f27
AS
109202011-04-03 Anatoly Sokolov <aesok@post.ru>
10921
10922 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10923 (ASM_OUTPUT_ALIGNED_BSS): Define.
10924
e89964e3
MM
109252011-04-03 Michael Matz <matz@suse.de>
10926
10927 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10928 and next_slot members.
10929 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10930 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10931 (lto_streamer_cache_append): Declare.
10932 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10933 unsigned index, remove offset parameter, ensure that we append
10934 or update existing entries.
10935 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10936 parameter, update next_slot for append.
10937 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10938 parameter.
10939 (lto_streamer_cache_insert_at): Likewise.
10940 (lto_streamer_cache_append): New function.
10941 (lto_streamer_cache_lookup): Use unsigned index.
10942 (lto_streamer_cache_get): Likewise.
10943 (lto_record_common_node): Don't test tree_node_can_be_shared.
10944 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10945 (lto_streamer_cache_delete): Don't free offsets member.
10946 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10947 (lto_output_string_with_length): Use lto_output_data_stream.
10948 (lto_output_tree_header): Remove ix parameter, don't write it.
10949 (lto_output_builtin_tree): Likewise.
10950 (lto_write_tree): Adjust callers to above, don't track and write
10951 offset, write unsigned index.
10952 (output_unreferenced_globals): Don't emit all global vars.
10953 (write_global_references): Use unsigned indices.
10954 (lto_output_decl_state_refs): Likewise.
10955 (write_symbol): Likewise.
10956 * lto-streamer-in.c (lto_input_chain): Move earlier.
10957 (input_function): Use unsigned index.
10958 (input_alias_pairs): Don't read and then ignore all global vars.
10959 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10960 don't pass it back, use lto_streamer_cache_append.
10961 (lto_register_var_decl_in_symtab): Use unsigned index.
10962 (lto_register_function_decl_in_symtab): Likewise.
10963 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10964 index.
10965 (lto_get_builtin_tree): Don't read index, use
10966 lto_streamer_cache_append.
10967 (lto_read_tree): Adjust call to lto_materialize_tree.
10968
10969 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10970 don't use function calls in arguments to MIN.
10971
10972 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10973 twice.
10974
10975 * gimple.c (gimple_type_leader_entry): Mark deletable.
10976
b9a5b5b2
AM
109772011-04-03 Alan Modra <amodra@gmail.com>
10978
10979 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10980
ac6a641b
MM
109812011-04-03 Michael Matz <matz@suse.de>
10982
10983 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10984 an integer.
10985 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10986
0038d4e0
MM
109872011-04-03 Michael Matz <matz@suse.de>
10988
e9c18386 10989 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
10990 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10991 without function context.
10992 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10993 current_function_decl and cfun.
10994
91f2fae8
MM
109952011-04-03 Michael Matz <matz@suse.de>
10996
10997 * tree.c (decl_init_priority_insert): Don't create entry for
10998 default priority.
10999 (decl_fini_priority_insert): Ditto.
11000 (fields_compatible_p, find_compatible_field): Remove.
11001 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11002 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11003
da29e070
EB
110042011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11005
11006 * combine.c (try_combine): Remove useless local variable.
11007
4979c28b 110082011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 11009 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
11010
11011 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11012 non-variable offsets and compare the remaining bases of the two
11013 accesses instead of looking for exact same data-ref.
11014
b4ddcaee
KT
110152011-04-02 Kai Tietz <ktietz@redhat.com>
11016
f90298e1
KT
11017 PR target/48416
11018 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11019
b4ddcaee
KT
11020 * i386.c (ix86_is_msabi_thiscall): New helper function.
11021 (ix86_is_type_thiscall): New helper function.
11022 (ix86_comp_type_attributes): Handle thiscall for method-functions
11023 special.
11024 (init_cumulative_args): Likewise.
11025 (find_drap_reg): Likewise.
11026 (ix86_static_chain): Likewise.
11027 (x86_this_parameter): Likewise.
11028 (x86_output_mi_thunk): Likewise.
11029
2a9d769a 110302011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
11031 Nicolas Setton <setton@adacore.com>
11032 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
11033
11034 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11035 (add_gnat_descriptive_type_attribute): New function.
11036 (gen_array_type_die): Call it.
11037 (gen_enumeration_type_die): Likewise.
11038 (gen_struct_or_union_type_die): Likewise.
11039 (modified_type_die): Likewise.
11040 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11041 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11042 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11043
15a03a11
JJ
110442011-04-01 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR bootstrap/48148
11047 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11048 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11049
11050 Revert:
11051 2011-03-17 Richard Guenther <rguenther@suse.de>
11052
11053 PR bootstrap/48148
11054 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11055 origin for decls in other ltrans units.
11056 (input_varpool_node): Likewise.
11057
19228b93
JJ
110582011-04-01 Jakub Jelinek <jakub@redhat.com>
11059
11060 PR middle-end/48335
11061 * expr.c (expand_assignment): Handle all possibilities
11062 if TO_RTX is CONCAT.
e9c18386 11063 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
11064 (store_split_bit_field): If SUBREG_REG (op0) or
11065 op0 itself has smaller mode than word, return it
11066 for offset 0 and const0_rtx for out-of-bounds stores.
11067 If word is const0_rtx, skip it.
11068
88cb339e
N
110692011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11070
11071 * config/h8300/h8300.c (print_operand_address): Rename to...
11072 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11073 Call h8300_print_operand and h8300_print_operand_address instead of
11074 print_operand and print_operand_address. Declare.
11075 (print_operand): Renake to...
11076 (h8300_print_operand): ...this. Make static. Adjust comments.
11077 Call h8300_print_operand instead of print_operand. Declare.
11078 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11079 (h8300_register_move_cost): Likewise.
11080 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11081 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11082 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11083 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11084 * config/h8300/h8300-protos.h (print_operand): Delete.
11085 (print_operand_address): Delete.
11086
756d6ee9
RH
110872011-04-01 Richard Henderson <rth@redhat.com>
11088
11089 PR 48400
11090 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11091 in strict mode before dwarf4. Re-order tests to early out
11092 before switching sections.
11093
ceaaaeab
NF
110942011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11095
11096 * config/h8300/constraints.md: New file.
11097 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11098 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11099 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11100 * config/h8300/predicates.md (bit_operand): Likewise.
11101 (incdec_operand): Use satisfies_constraint_M and
11102 satisfies_constraint_O. Don't use C code block.
11103 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11104 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11105 (compute_mov_length): Use satisfies_constraint_G.
11106 (fix_bit_operand): Use satisfies_constraint_U.
11107 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11108 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11109 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11110 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11111 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11112 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11113 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11114 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11115 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11116 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11117 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11118 (EXTRA_MEMORY_CONSTRAINT): Delete.
11119
08ae38e0
AP
111202011-04-01 Andrew Pinski <pinskia@gmail.com>
11121 Michael Meissner <meissner@linux.vnet.ibm.com>
11122
11123 PR target/48262
11124 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11125 operands, as per the specifications.
11126
11127 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11128 (vec_extract_evenv4sf): Ditto.
11129 (vec_extract_evenv8hi): Ditto.
11130 (vec_extract_evenv16qi): Ditto.
11131 (vec_extract_oddv4si): Ditto.
11132
bdb0b0f6
MW
111332011-03-31 Mark Wielaard <mjw@redhat.com>
11134
11135 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11136 high_pc attribute if the CU has no associated code. Only output
11137 DW_AT_entry_pc for CU if not generating strict dwarf and
11138 dwarf_version < 4.
11139
722279e4
BS
111402011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11141
11142 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11143 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11144 out of ...
11145 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11146 * final.c (final_start_function): Call the new function rather
11147 than using a NULL argument for dwarf2out_frame_debug.
11148
c5dd277d
BS
11149 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11150 that contains the prologue.
11151
ec4efea9
BS
11152 * haifa-sched.c (queue_insn): New arg REASON. All callers
11153 changed. Print it in debugging output.
11154
2a6a0d80
BS
11155 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11156
86014d07
BS
11157 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11158 Split most of the code into...
11159 (begin_move_insn): ... here. New function.
11160 (ebb_sched_info): Add a pointer to it.
11161 * haifa-sched.c (scheduled_insns): New static variable.
11162 (sched_extend_ready_list): Allocate it.
11163 (schedule_block): Use it to record the order of scheduled insns.
11164 Perform RTL changes to move insns only after all scheduling
11165 decisions have been made.
11166 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11167 begin_move_insn field.
11168 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11169 * sched-int.h (struct haifa_sched_info): Remove second argument
11170 from begin_schedule_ready hook. Add new member begin_move_insn.
11171 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11172 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11173
9d701248
BS
11174 * haifa-sched.c (prune_ready_list): New function, broken out of
11175 schedule_block.
11176 (schedule_block): Use it.
11177
1ca1dad5
UW
111782011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11179
11180 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11181
49568e45
KT
111822011-04-01 Kai Tietz <ktietz@redhat.com>
11183
11184 * config.gcc (*-*-mingw*): Allow as option the
11185 posix threading model.
07c0852e 11186 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
11187 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11188 definition.
11189 (CPP_SPEC): Add pthread/no-pthread handling.
11190 (LIB_SPEC): Likewise.
11191 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11192 (LIB_SPEC): Likewise.
11193 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11194 flag to pass -pthread option for shared libgcc build.
11195 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11196 for shared libgcc build.
11197 * config/i386/t-mingw-pthread: New file.
11198 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11199 New define to enable use of library pthread by default.
11200 * config/i386/mingw.opt (pthread): New driver option.
11201 (no-pthread): New driver option.
e9c18386 11202 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
11203 * config/i386/mingw-w64.opt: Likewise.
11204
748f7574 112052011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
11206
11207 * c-decl.c (grokdeclarator): Fix formatting.
11208
f04713ee
RS
112092011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11210
11211 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11212 instead of n_operands.
11213 (set_storage_via_setmem): Likewise.
11214 * optabs.c (maybe_gen_insn): Likewise.
11215 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11216 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11217 (mips_expand_builtin_direct): Likewise.
11218 * config/spu/spu.c (expand_builtin_args): Likewise.
11219
b29387ee
RS
112202011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11221
11222 * recog.h (insn_data_d): Add n_generator_args.
11223 * genoutput.c (data): Likewise.
11224 (output_insn_data): Print it.
11225 (max_opno, num_dups): Delete.
11226 (scan_operands): Just fill in "d->operand[...]".
11227 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11228
e792559a
RS
112292011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11230
11231 * gensupport.h (pattern_stats): New structure.
11232 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11233 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11234 (max_operand_1, max_operand_vec): Delete.
11235 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11236
e8110d6f
NF
112372011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11238
11239 * emit-rtl.c (emit_pattern_after_setloc): New function.
11240 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11241 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11242 (emit_pattern_after): New function.
11243 (emit_insn_after, emit_jump_insn_after): Call it.
11244 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11245 (emit_pattern_before_setloc): New function.
11246 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11247 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11248 Likewise.
11249 (emit_pattern_before): New function.
11250 (emit_insn_before, emit_jump_insn_before): Call it.
11251 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11252
576f85f1
RH
112532011-03-31 Richard Henderson <rth@redhat.com>
11254
11255 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11256 (dw_separate_line_info_entry): Remove.
11257 (enum dw_line_info_opcode): New.
11258 (dw_line_info_entry): Use it.
11259 (dw_line_info_table, dw_line_info_table_p): New.
11260 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11261 (line_info_table, line_info_label_num): Remove.
11262 (line_info_table_in_use): Remove.
11263 (separate_line_info_table): Remove.
11264 (separate_line_info_table_allocated): Remove.
11265 (separate_line_info_table_in_use): Remove.
11266 (LINE_INFO_TABLE_INCREMENT): Remove.
11267 (line_info_label_num): New.
11268 (cur_line_info_table): New.
11269 (text_section_line_info, cold_text_section_line_info): New.
11270 (separate_line_info): New.
11271 (SEPARATE_LINE_CODE_LABEL): Remove.
11272 (print_dwarf_line_table): Remove.
11273 (debug_dwarf): Don't dump it.
11274 (output_one_line_info_table): New.
11275 (output_line_info): Use it.
11276 (new_line_info_table): New.
11277 (set_cur_line_info_table): New.
11278 (dwarf2out_switch_text_section): Use it.
11279 (dwarf2out_begin_function): Likewise.
11280 (push_dw_line_info_entry): New.
11281 (dwarf2out_source_line): Rewrite for new line info tables.
11282 (dwarf2out_init): Remove dead initailizations.
11283
300d83d9
JM
112842011-03-31 Joseph Myers <joseph@codesourcery.com>
11285
11286 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11287 various flags.
11288 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11289 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11290 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11291 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11292 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11293 * opt-functions.awk (flag_init, switch_bit_fields): New.
11294 (switch_flags): Don't handle flags moved to bit-fields. Don't
11295 generate CL_MISSING_OK or CL_SAVE.
11296 * optc-gen.awk: Update to generate bit-field output as well as
11297 flags field.
11298 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11299 bit-field instead of CL_REJECT_DRIVER flag.
11300 * opts-common.c (generate_canonical_option,
11301 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11302 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11303 instead of CL_REJECT_NEGATIVE flag.
11304 * toplev.c (print_switch_values): Use cl_report bit-field instead
11305 of CL_REPORT flag.
11306
d4d73ce2
EB
113072011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11308
11309 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11310 a zero minimum index only if it is redundant.
11311
b8faca75
VM
113122011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11313
11314 PR rtl-optimization/48381
11315 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11316 instead of ira_class_hard_reg_index for calculating conflicting
11317 hard registers.
11318
7d11cebe
SB
113192011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11320
11321 * cprop.c: Clean up hash table building.
11322 (reg_avail_info): Remove.
11323 (oprs_available_p): Remove.
11324 (record_last_reg_set_info): Remove.
11325 (record_last_set_info): Remove.
11326 (reg_available_p): New function.
11327 (gcse_constant_p): Do not treat unfolded conditions as constants.
11328 (make_set_regs_unavailable): New function.
11329 (hash_scan_set): Simplify with new reg_available_p.
11330 (compute_hash_table_work): Traverse insns stream only once.
11331 Do not compute reg_avail_info. Traverse insns in reverse order.
11332 Record implicit sets after recording explicit sets from the block.
11333
98faf84f
MM
113342011-03-31 Michael Matz <matz@suse.de>
11335
e9c18386 11336 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 11337
f52d97da
AS
113382011-03-31 Anatoly Sokolov <aesok@post.ru>
11339
11340 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11341 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11342 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11343 (h8300_mode_dependent_address_p): New function.
11344 (h8300_get_index): Make static.
11345
e16b6fd0
JL
113462011-03-31 Jeff Law <law@redhat.com>
11347
10c51983
JL
11348 * reload1.c (elimination_effects): Fix typo in recent change.
11349
e9c18386 11350 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
11351 typo potentially leading to null pointer dereference.
11352
11353 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11354 (setup_save_areas): Corresponding changes to avoid useless
11355 assignments.
11356
11357 * jump.c (reversed_comparison_code_parts): Avoid successive return
11358 statements when REVERSE_CONDITION is defined.
11359
11360 * expr.c (expand_assignment): Avoid useless assignments.
11361 (expand_expr_real_1): Likewise.
11362 (expand_expr_real_2): Avoid useless statements.
11363
11364 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11365
11366 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11367
11368 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11369 statements.
11370
11371 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11372
eb1eb914
JM
113732011-03-31 Joseph Myers <joseph@codesourcery.com>
11374
11375 PR target/47109
11376 * doc/tm.texi.in (TARGET_VERSION): Remove.
11377 * doc/tm.texi: Regenerate.
11378 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11379 * collect2.c (main): Don't use TARGET_VERSION.
11380 * mips-tdump.c (main): Don't use TARGET_VERSION.
11381 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 11382 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
11383 * config/rs6000/vxworksae.h: Remove.
11384 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11385 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11386 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11387 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11388 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11389 * config/arm/arm.h (TARGET_VERSION): Remove.
11390 * config/arm/coff.h (TARGET_VERSION): Remove.
11391 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11392 * config/arm/elf.h (TARGET_VERSION): Remove.
11393 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11394 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11395 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11396 * config/arm/pe.h (TARGET_VERSION): Remove.
11397 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11398 * config/arm/semi.h (TARGET_VERSION): Remove.
11399 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11400 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11401 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11402 * config/avr/avr.h (TARGET_VERSION): Remove.
11403 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11404 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11405 * config/frv/frv.h (TARGET_VERSION): Remove.
11406 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11407 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11408 * config/i386/darwin.h (TARGET_VERSION): Remove.
11409 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11410 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11411 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11412 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11413 * config/i386/gnu.h (TARGET_VERSION): Remove.
11414 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11415 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11416 * config/i386/linux.h (TARGET_VERSION): Remove.
11417 * config/i386/linux64.h (TARGET_VERSION): Remove.
11418 * config/i386/lynx.h (TARGET_VERSION): Remove.
11419 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11420 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11421 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11422 * config/i386/netware.h (TARGET_VERSION): Remove.
11423 * config/i386/nto.h (TARGET_VERSION): Remove.
11424 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11425 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11426 * config/ia64/elf.h (TARGET_VERSION): Remove.
11427 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11428 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11429 * config/ia64/linux.h (TARGET_VERSION): Remove.
11430 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11431 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11432 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11433 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11434 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11435 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11436 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11437 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11438 * config/m68k/linux.h (TARGET_VERSION): Remove.
11439 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11440 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11441 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11442 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11443 * config/mep/mep.h (TARGET_VERSION): Remove.
11444 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11445 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11446 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11447 * config/mips/linux.h (TARGET_VERSION): Remove.
11448 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11449 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11450 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11451 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11452 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11453 * config/pa/pa.h (TARGET_VERSION): Remove.
11454 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11455 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11456 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11457 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11458 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11459 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11460 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11461 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11462 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11463 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11464 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11465 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11466 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11467 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11468 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11469 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11470 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11471 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11472 * config/s390/linux.h (TARGET_VERSION): Remove.
11473 * config/s390/s390.h (TARGET_VERSION): Remove.
11474 * config/s390/tpf.h (TARGET_VERSION): Remove.
11475 * config/score/score.h (TARGET_VERSION): Remove.
11476 * config/sh/linux.h (TARGET_VERSION): Remove.
11477 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11478 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11479 * config/sh/sh.h (TARGET_VERSION): Remove.
11480 * config/sh/sh64.h (TARGET_VERSION): Remove.
11481 * config/sh/superh.h (TARGET_VERSION): Remove.
11482 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11483 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11484 * config/sparc/linux.h (TARGET_VERSION): Remove.
11485 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11486 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11487 TARGET_NAME32, TARGET_NAME): Remove.
11488 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11489 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11490 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11491 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11492 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11493 * config/spu/spu.h (TARGET_VERSION): Remove.
11494 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11495 * config/v850/v850.h (TARGET_VERSION): Remove.
11496 * config/vax/linux.h (TARGET_VERSION): Remove.
11497 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11498 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11499 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11500
ace31bca
EB
115012011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11502
11503 PR target/48142
11504 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11505 frame-related from frame-unrelated adjustments to the stack pointer.
11506
76f9db36
JJ
115072011-03-31 Jakub Jelinek <jakub@redhat.com>
11508
11509 * common.opt (fdebug-types-section): Move earlier.
11510 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11511
b7826465
AT
115122011-03-31 Andreas Tobler <andreast@fgznet.ch>
11513
11514 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11515 var.
11516
1290e54c
NF
115172011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11518
11519 * tree.h (CASE_CHAIN): Define.
11520 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11521 (gimple_redirect_edge_and_branch): Likewise.
11522
bddc98e1
VM
115232011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11524
11525 PR middle-end/48367
11526 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11527 calculation.
11528
c865e437
JL
115292011-03-30 Jeff Law <law@redhat.com>
11530
b3750213 11531 * PR bootstrap/48371
c865e437
JL
11532 * reload1.c (reload): Fix botch in last change.
11533
11534 * reload.h (struct reload): Fix typo introduced in last change.
11535
2cdf9574
JM
115362011-03-30 Joseph Myers <joseph@codesourcery.com>
11537
11538 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11539 Undocumented. Remove help text.
11540 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11541 -mhard-float.
11542
666a21a2
JM
115432011-03-30 Joseph Myers <joseph@codesourcery.com>
11544
11545 * doc/options.texi (NegativeAlias): Document.
11546 (Alias): Mention NegativeAlias.
11547 * opt-functions.awk: Handle NegativeAlias.
e9c18386 11548 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
11549 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11550 * opts.h (CL_NEGATIVE_ALIAS): Define.
11551 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11552 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11553 OPT_mspe_.
11554 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11555 Alias entries.
11556 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11557 mno-spe and mno-isel instead of mspe=no and -misel=no.
11558
0fa4e351
MW
115592011-03-29 Mark Wielaard <mjw@redhat.com>
11560
11561 * common.opt (fdebug-types-section): New flag.
11562 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11563 * dwarf2out.c (use_debug_types): New define.
11564 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11565 (print_die): Guard output of type unit signatures using
11566 use_debug_types.
11567 (build_abbrev_table): Replace assert of dwarf_version >= 4
11568 with assert on use_debug_types.
11569 (size_of_die): Likewise.
11570 (unmark_dies): Likewise.
11571 (value_format): Decide AT_ref_external form on use_debug_types.
11572 (output_die): Replace dwarf_version version check guard with
11573 use_debug_types where appropriate.
11574 (modified_type_die): Likewise.
11575 (gen_reference_type_die): Likewise.
11576 (dwarf2out_start_source_file): Likewise.
11577 (dwarf2out_end_source_file): Likewise.
11578 (prune_unused_types_walk_attribs): Likewise.
11579 (dwarf2out_finish): Likewise.
11580
4648deb4
VM
115812011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11582
11583 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11584
4f431835
RS
115852011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11586
11587 PR rtl-optimization/48332
11588 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11589 mode of input operand N and modeN to its actual mode.
11590
f2034d06
JL
115912011-03-30 Jeff Law <law@redhat.com>
11592
11593 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11594 define accessor macro.
11595 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11596 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11597 (reg_equiv_init): Likewise.
11598 (reg_equivs_size): New variable.
11599 (reg_equiv_init_size): Remove.
11600 (allocate_initial_values): Move prototype to here from....
11601 * integrate.h (allocate_initial_values): Remove prototype.
11602 * integrate.c: Include reload.h.
11603 (allocate_initial_values): Corresponding changes.
11604 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11605 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11606 (update_equiv_regs): Corresponding changes.
11607 (ira): Corresponding changes.
11608 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11609 (push_secondary_reload): Corresponding changes.
11610 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11611 (make_memloc, find_reloads_address): Corresponding changes.
11612 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11613 (find_reloads_address_1): Corresponding changes.
11614 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11615 (refers_to_regno_for_reload_p): Corresponding changes.
11616 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11617 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11618 * reload1.c: Include ggc.h.
11619 (grow_reg_equivs): New function.
11620 (replace_pseudos_in, reload): Corresponding changes.
11621 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11622 (eliminate_regs_1, elimination_effects): Corresponding changes.
11623 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11624 (delete_output_reload): Likewise.
11625 * caller-save.c (mark_referenced_regs): Corresponding changes.
11626 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11627 * frv/predicates.md (frv_load_operand): Corresponding changes.
11628 * microblaze/microblaze.c (double_memory_operand): Corresponding
11629 changes.
11630 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11631 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 11632 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
11633 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11634 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11635 changes.
11636 * pa/pa.c (emit_move_sequence): Corresponding changes.
11637 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11638
159b81b0
RS
116392011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11640
11641 PR target/47551
11642 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11643 structure modes. Don't check neon_vector_mem_operand for
11644 vector or structure modes.
11645
a6217191
RS
116462011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11647 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11648
11649 PR target/43590
11650 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11651 operand 1 and reshuffle the operands to match.
11652 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11653
bd837408
CS
116542011-03-30 Christian Schüler <cschueler@gmx.de>
11655
6955d771 11656 PR driver/48208
bd837408 11657 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 11658
6955d771 11659 PR driver/48260
bd837408
CS
11660 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11661 handler function.
11662 * config/darwin.opt: Added '-arch' option.
11663
e9c0470a
NC
116642011-03-30 Nick Clifton <nickc@redhat.com>
11665
11666 * config/rx/rx.md: Add peepholes and patterns to combine
11667 extending loads and simple arithmetic instructions.
11668 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
11669 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11670 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 11671 modes to use pre-decrement and post-increment addressing.
e9c18386 11672 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 11673 addresses.
e9c18386
UB
11674 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11675 (rx_memory_move_cost): Adjust cost of stores.
11676 (rx_adjust_insn_length): New function.
e9c0470a 11677
8a87e7ab
JJ
116782011-03-30 Jakub Jelinek <jakub@redhat.com>
11679
11680 PR c/48305
11681 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11682 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11683 matching arg00/arg01 types.
11684
12486e03
EB
116852011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11686
11687 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11688 last_location to UNKNOWN_LOCATION.
11689
0b99eef6
L
116902011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11691
11692 PR target/48349
11693 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11694 FLOAT_SSE_REGS.
11695
023592aa
JM
116962011-03-30 Joseph Myers <joseph@codesourcery.com>
11697 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11698
11699 PR bootstrap/48337
11700 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11701 Init(PROCESSOR_V7).
11702 (sparc_cpu): Likewise.
11703 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11704 PROCESSOR_V7.
11705
ad3b266b
VM
117062011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11707
11708 PR target/48336
11709 PR middle-end/48342
11710 PR rtl-optimization/48345
11711 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11712 hard regs for given mode from profitable regs when doing secondary
11713 allocation.
11714
633c9126
JL
117152011-03-29 Jeff Law <law@redhat.com>
11716
11717 PR bootstrap/48327
11718 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11719 do_not_duplicate field.
11720 (lookup_redirection_data): Corresponding changes.
11721 (create_duplicates): Always create a template block.
11722 (redirect_edges): Remove code which reused the original block
11723 when it was going to become unreachable code.
11724 (thread_block): Don't set do_not_duplicate field.
11725
eb50f63a
JM
117262011-03-29 Joseph Myers <joseph@codesourcery.com>
11727
11728 * lto-opts.c (register_user_option_p, lto_register_user_option):
11729 Make type argument unsigned.
11730 * lto-streamer.h (lto_register_user_option): Make type argument
11731 unsigned.
11732 * opth-gen.awk: Make CL_* macros unsigned.
11733 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11734 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11735 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11736 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11737 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11738 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11739 (find_opt): Make lang_mask argument unsigned.
11740
76763a6d
VM
117412011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11742
11743 PR rtl-optimization/48331
11744 PR rtl-optimization/48334
11745 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11746 for any used algorithm.
11747
5c82436e
VM
117482011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11749
11750 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11751 to parent_max.
11752
7a81008b
UB
117532011-03-29 Uros Bizjak <ubizjak@gmail.com>
11754
11755 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11756 (alpha_option_override): Don't set alpha_sr_alias_set.
11757 (emit_frame_store_1): Use gen_frame_mem rather than calling
11758 set_mem_alias_set.
11759 (alpha_expand_epilogue): Ditto.
11760
86c8d1f6
IR
117612011-03-29 Ira Rosen <ira.rosen@linaro.org>
11762
11763 PR tree-optimization/48290
11764 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11765 vectorization, check that relevant phis in the basic block after
11766 the inner loop are really inner loop's exit phis.
11767
0d12220f
RS
117682011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11769
e8cf17e7 11770 PR debug/48190
0d12220f
RS
11771 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11772 (cached_dw_loc_list_def): New structure.
11773 (cached_dw_loc_list): New typedef.
11774 (cached_dw_loc_list_table): New variable.
11775 (cached_dw_loc_list_table_hash): New function.
11776 (cached_dw_loc_list_table_eq): Likewise.
11777 (add_location_or_const_value_attribute): Take a bool cache_p.
11778 Cache the list when the parameter is true.
11779 (gen_formal_parameter_die): Update caller.
11780 (gen_variable_die): Likewise.
11781 (dwarf2out_finish): Likewise.
11782 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11783 while generating debug info for the decl.
11784 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11785 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11786 (resolve_addr): Cache the result of resolving a chain of
11787 location lists.
11788
1756cb66
VM
117892011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11790
11791 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11792 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 11793
1756cb66
VM
11794 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11795 after regstat_init_n_sets_and_refs.
11796
11797 * ira.c: Add more comments at the top.
11798 (setup_stack_reg_pressure_class, setup_pressure_classes):
11799 Add comments how we compute the register pressure classes.
11800 (setup_allocno_and_important_classes): Add more comments.
11801 (setup_class_translate_array, reorder_important_classes)
11802 (setup_reg_class_relations): Add comments.
11803
11804 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11805 start of the file.
11806
11807 * ira-color.c: Add 2011 to the Copyright line.
11808 (assign_hard_reg): Add more comments.
11809 (improve_allocation): Ditto.
11810
11811 * ira-costs.c: Add 2011 to the Copyright line.
11812 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11813 comments.
11814 (setup_regno_cost_classes_by_mode): Ditto.
11815
11816 Initial patches from ira-improv branch:
11817
11818 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11819
f60c2554 11820 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
11821 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11822 (ira_create_allocno): Remove initialization of
11823 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11824 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11825 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11826 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11827 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11828 Initialize ALLOCNO_ADD_DATA.
11829 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11830 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11831 ALLOCNO_REG.
11832 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11833 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11834
11835 * ira.c (ira_reallocate): Remove.
11836 (setup_pressure_classes): Call
11837 ira_init_register_move_cost_if_necessary. Use
11838 ira_register_move_cost instead of ira_get_register_move_cost.
11839 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11840 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11841
11842 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11843 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11844 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11845 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11846 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11847 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11848 Fix formatting.
7a81008b 11849 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
11850 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11851 (struct allocno_color_data): New.
11852 (allocno_color_data_t): New typedef.
11853 (allocno_color_data): New definition.
11854 (ALLOCNO_COLOR_DATA): New macro.
11855 (struct object_color_data): New.
11856 (object_color_data_t): New typedef.
11857 (object_color_data): New definition.
11858 (OBJECT_COLOR_DATA): New macro.
11859 (update_copy_costs, calculate_allocno_spill_cost): Call
11860 ira_init_register_move_cost_if_necessary. Use
11861 ira_register_move_cost instead of ira_get_register_move_cost.
11862 (move_spill_restore, update_curr_costs): Ditto.
11863 (allocno_spill_priority): Make it inline.
7a81008b 11864 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
11865 (struct coalesce_data, coalesce_data_t): New.
11866 (allocno_coalesce_data): New definition.
11867 (ALLOCNO_COALESCE_DATA): New macro.
11868 (merge_allocnos, coalesced_allocno_conflict_p): Use
11869 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11870 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11871 (coalesce_allocnos): Ditto.
11872 (setup_coalesced_allocno_costs_and_nums): Ditto.
11873 (collect_spilled_coalesced_allocnos): Ditto.
11874 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11875 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11876 (coalesce_spill_slots): Ditto.
11877 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11878 free allocno_coalesce_data.
11879
11880 * ira-conflicts.c: Fix formatting.
11881 (process_regs_for_copy): Call
11882 ira_init_register_move_cost_if_necessary. Use
11883 ira_register_move_cost instead of ira_get_register_move_cost.
11884 (build_object_conflicts): Optimize.
11885
11886 * ira-costs.c (record_reg_classes): Optimize. Call
11887 ira_init_register_move_cost_if_necessary. Use
11888 ira_register_move_cost, ira_may_move_in_cost, and
11889 ira_may_move_out_cost instead of ira_get_register_move_cost and
11890 ira_get_may_move_cost.
11891 (record_address_regs): Ditto.
11892 (scan_one_insn): Optimize.
11893 (find_costs_and_classes): Optimize.
11894 (process_bb_node_for_hard_reg_moves): Call
11895 ira_init_register_move_cost_if_necessary. Use
11896 ira_register_move_cost instead of ira_get_register_move_cost.
11897
11898 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11899 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11900 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11901 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11902 definitions.
11903 (ira_initiate_emit_data, ira_finish_emit_data)
11904 (create_new_allocno): New functions.
7a81008b 11905 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
11906 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11907 Use ira_register_move_cost instead of ira_get_register_move_cost.
11908
11909 * ira-int.h: Fix some comments.
7a81008b
UB
11910 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11911 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
11912 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11913 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11914 add_data.
11915 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11916 bitfield after mode. Make hard_regno a short int. Make
11917 hard_regno short. Remove first_coalesced_allocno and
11918 next_coalesced_allocno. Move mem_optimized_dest_p,
11919 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11920 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11921 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11922 temp, colorable_p. Add new member add_data.
11923 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11924 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11925 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11926 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11927 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11928 (ALLOCNO_ADD_DATA): New macro.
11929 (ira_emit_data_t): New typedef.
11930 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11931 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11932 from struct ira_allocno.
11933 (ALLOCNO_EMIT_DATA): New macro.
11934 (ira_allocno_emit_data, allocno_emit_reg): New.
11935 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 11936 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
11937 (OBJECT_ADD_DATA): New macro.
11938 (ira_reallocate): Remove.
11939 (ira_initiate_emit_data, ira_finish_emit_data): New.
11940 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11941 (ira_init_register_move_cost_if_necessary): New.
11942 (ira_object_conflict_iter_next): Merge into
11943 ira_object_conflict_iter_cond.
7a81008b 11944 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 11945
f60c2554 11946 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
11947 ira_init_register_move_cost_if_necessary. Use
11948 ira_register_move_cost instead of ira_get_register_move_cost.
11949
11950 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11951
11952 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11953
11954 * ira-costs.c: Fix formatting.
11955 (cost_classes, cost_classes_num): Remove.
11956 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11957 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11958 (cost_classes_del, cost_classes_htab): New.
11959 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11960 (initiate_regno_cost_classes, setup_cost_classes): New.
11961 (setup_regno_cost_classes_by_aclass): New.
7a81008b 11962 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
11963 (record_reg_classes): Use regno_cost_classes instead of
11964 cost_classes. Move checking opposite operand up.
11965 (record_address_regs): Use regno_cost_classes
11966 instead of cost_classes.
11967 (scan_one_insn): Ditto. Use always general register.
11968 (print_allocno_costs): Use regno_cost_classes instead of
11969 cost_classes.
11970 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11971 (find_costs_and_classes): Set up cost classes for each registers.
11972 Use also their mode for this. Use regno_cost_classes instead of
11973 cost_classes.
11974 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11975 cost_classes.
11976 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11977 (ira_costs, ira_set_pseudo_classes): Call
11978 initiate_regno_cost_classes and finish_regno_cost_classes.
11979
11980 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11981
11982 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11983
11984 * target.def (ira_cover_classes): Remove.
11985
7a81008b 11986 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
11987
11988 * doc/tm.texi.in: Ditto.
11989
11990 * ira-conflicts.c: Remove mentioning cover classes from the file.
11991 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 11992 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
11993
11994 * targhooks.c (default_ira_cover_classes): Remove.
11995
11996 * targhooks.h (default_ira_cover_classes): Ditto.
11997
11998 * haifa-sched.c: Remove mentioning cover classes from the file.
11999 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12000 ira_pressure_classes and ira_pressure_classes_num instead of
12001 ira_reg_class_cover_size and ira_reg_class_cover. Use
12002 sched_regno_pressure_class instead of sched_regno_cover_class.
12003 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12004 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12005
12006 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12007 classes from the file.
12008 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12009 (struct object_hard_regs, struct object_hard_regs_node): New.
12010 (struct ira_object): New members profitable_hard_regs,
12011 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12012 (struct ira_allocno): Rename cover_class to aclass. Rename
12013 cover_class_cost and updated_cover_class_cost to class_cost and
12014 updated_class_cost. Remove splay_removed_p and
12015 left_conflict_size. Add new members colorable_p.
12016 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12017 (ALLOCNO_COLORABLE_P): New macro.
12018 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12019 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12020 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12021 (OBJECT_...): Rename parameter C to O.
12022 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12023 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12024 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12025 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12026 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12027 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12028 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12029 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12030 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12031 x_ira_reg_class_subunion.
12032 (ira_max_memory_move_cost, ira_max_register_move_cost)
12033 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12034 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12035 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 12036 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
12037 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12038 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12039 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12040 (ira_tune_allocno_costs_and_cover_classes): Rename to
12041 ira_tune_allocno_costs.
12042 (ira_debug_hard_regs_forest): New.
12043 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12044 (ira_object_conflict_iter_next): Fix comments.
7a81008b 12045 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
12046 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12047 cover_class to aclass.
12048 (ira_allocate_and_accumulate_costs): Ditto.
12049 (ira_allocate_and_set_or_copy_costs): Ditto.
12050
12051 * opts.c (decode_options): Remove ira_cover_class check.
12052
12053 * ira-color.c: Remove mentioning cover classes from the file. Use
12054 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12055 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12056 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12057 (splay-tree.h): Remove include.
12058 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12059 before copy_freq_compare_func.
12060 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12061 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12062 New definitions.
12063 (hard_regs_roots, hard_regs_node_vec): Ditto.
12064 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12065 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12066 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12067 (create_new_object_hard_regs_node): Ditto.
12068 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 12069 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
12070 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12071 Ditto.
12072 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12073 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12074 (remove_unused_object_hard_regs_nodes): Ditto.
12075 (enumerate_object_hard_regs_nodes): Ditto.
12076 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12077 (object_hard_regs_subnode_t): Ditto.
12078 (struct object_hard_regs_subnode): Ditto.
12079 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12080 (setup_object_hard_regs_subnode_index): Ditto.
12081 (get_object_hard_regs_subnodes_num): Ditto.
12082 (form_object_hard_regs_nodes_forest): Ditto.
12083 (finish_object_hard_regs_nodes_tree): Ditto.
12084 (finish_object_hard_regs_nodes_forest): Ditto.
12085 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 12086 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
12087 (pseudos_have_intersected_live_ranges_p): Rename to
12088 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12089 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12090 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12091 (update_copy_costs): Remove assert. Skip cost update if the hard
12092 reg does not belong the class.
12093 (assign_hard_reg): Process only profitable hard regs.
12094 (uncolorable_allocnos_num): Make it scalar.
12095 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12096 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12097 and ira_reg_class_max_nregs.
12098 (bucket_allocno_compare_func): Check frequency first.
12099 (sort_bucket): Add compare function as a parameter.
12100 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12101 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12102 (push_allocno_to_stack): Rewrite for checking new allocno
12103 colorability.
7a81008b 12104 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
12105 (push_only_colorable): Pass new parameter to sort_bucket.
12106 (push_allocno_to_spill): Remove.
12107 (allocno_spill_priority_compare): Make it inline and rewrite.
12108 (splay_tree_allocate, splay_tree_free): Remove.
12109 (allocno_spill_sort_compare): New function.
12110 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12111 build and use splay tree. Choose first allocno in uncolorable
12112 allocno bucket to spill. Remove setting spill cost.
12113 (all_conflicting_hard_regs): Remove.
12114 (setup_allocno_available_regs_num): Check only profitable hard
12115 regs. Print info about hard regs nodes.
12116 (setup_allocno_left_conflicts_size): Remove.
12117 (put_allocno_into_bucket): Don't call
7a81008b 12118 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
12119 (improve_allocation): New.
12120 (color_allocnos): Call setup_profitable_hard_regs,
12121 form_object_hard_regs_nodes_forest, improve_allocation,
12122 finish_object_hard_regs_nodes_forest. Setup spill cost.
12123 (print_loop_title): Use pressure classes.
12124 (color_allocnso): Ditto.
12125 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12126 and allocnos_for_spilling.
12127 (ira_sort_regnos_for_alter_reg): Don't setup members
12128 {first,next}_coalesced_allocno.
12129 (color): Remove allocating and freeing removed_splay_allocno_vec.
12130 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12131 prohibited_class_mode_regs.
12132
12133 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12134 formatting.
12135 (update_allocno_pressure_excess_length): Use pressure classes.
12136 (inc_register_pressure, dec_register_pressure): Check for pressure
12137 class.
12138 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12139 pressure class. Use ira_reg_class_nregs instead of
12140 ira_reg_class_max_nregs.
12141 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12142 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12143 (single_reg_class): Use ira_reg_class_nregs instead of
12144 ira_reg_class_max_nregs.
12145 (process_bb_node_lives): Use pressure classes.
12146
12147 * ira-emit.c: Remove mentioning cover classes from the file. Use
12148 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12149 (change_loop): Use pressure classes.
12150 (modify_move_list): Call ira_set_allocno_class instead of
12151 ira_set_allocno_cover_class.
12152
12153 * ira-build.c: Remove mentioning cover classes from the file. Use
12154 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12155 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12156 ALLOCNO_UPDATED_CLASS_COST instead of
12157 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12158 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12159 (ira_create_allocno): Remove initialization of
12160 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12161 ALLOCNO_COLORABLE_P.
12162 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12163 Update conflict regs for the objects.
12164 (create_cap_allocno): Remove assert. Don't propagate
12165 ALLOCNO_AVAILABLE_REGS_NUM.
12166 (ira_free_allocno_costs): New function.
12167 (finish_allocno): Change a part of code into call of
12168 ira_free_allocno_costs.
12169 (low_pressure_loop_node_p): Use pressure classes.
12170 (object_range_compare_func): Don't compare classes.
12171 (setup_min_max_conflict_allocno_ids): Ditto.
12172
12173 * loop-invariant.c: Remove mentioning cover classes from the file.
12174 Use ira_pressure_classes and ira_pressure_classes_num instead of
12175 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
12176 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12177 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12178 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
12179 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12180 STACK_REG_COVER_CLASS.
12181 (get_regno_cover_class): Rename to get_regno_pressure_class.
12182 (move_loop_invariants): Initialize and finalize regstat.
12183
12184 * ira.c: Remove mentioning cover classes from the file. Add
12185 comments about coloring without cover classes. Use ALLOCNO_CLASS
12186 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12187 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12188 setup_class_subset_and_memory_move_costs.
12189 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12190 (setup_cover_and_important_classes): Rename to
12191 setup_allocno_and_important_classes.
12192 (setup_class_translate_array): New.
12193 (setup_class_translate): Call it for allocno and pressure classes.
12194 (cover_class_order): Rename to allocno_class_order.
12195 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12196 of ira_class_translate.
12197 (reorder_important_classes): Set up ira_important_class_nums.
12198 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12199 (print_class_cover): Rename to print_classes. Add parameter.
12200 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12201 Print pressure classes too.
12202 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12203 setup_reg_subclasses.
7a81008b 12204 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12205 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12206 (setup_prohibited_class_mode_regs): Use
7a81008b 12207 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
12208 (clarify_prohibited_class_mode_regs): New function.
12209 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12210 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12211 (ira_init_once): Initialize them.
12212 (free_register_move_costs): Process them.
12213 (ira_init): Move calls of find_reg_classes and
12214 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12215 Call clarify_prohibited_class_mode_regs.
12216 (ira_no_alloc_reg): Remove.
12217 (too_high_register_pressure_p): Use pressure classes.
12218
12219 * sched-deps.c: Remove mentioning cover classes from the file.
12220 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12221 ira_pressure_classes and ira_pressure_classes_num instead of
12222 ira_reg_class_cover_size and ira_reg_class_cover.
12223 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12224 sched_regno_pressure_class instead of sched_regno_cover_class.
12225 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12226 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12227
12228 * ira.h: Add 2010 to Copyright.
12229 (ira_no_alloc_reg): Remove external.
12230 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12231 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12232 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12233 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12234 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12235 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12236 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12237 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12238 x_ira_no_alloc_regs.
7a81008b 12239 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12240 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12241 ira_allocno_classes_num and ira_allocno_classes.
12242 (ira_class_translate): Rename to ira_allocno_class_translate.
12243 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12244 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12245 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12246 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12247 (ira_no_alloc_regs): New.
12248
12249 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12250 classes from the file. Use ALLOCNO_CLASS instead of
12251 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12252 ALLOCNO_COVER_CLASS_COST.
12253 (regno_cover_class): Rename to regno_aclass.
12254 (record_reg_classes): Use ira_reg_class_subunion instead of
12255 ira_reg_class_union.
12256 (record_address_regs): Check overflow.
12257 (scan_one_insn): Ditto.
7a81008b 12258 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
12259 (print_pseudo_costs): Use REG_N_REFS.
12260 (find_costs_and_classes): Use classes intersected with them on the
12261 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12262 ira_reg_class_union. Use ira_allocno_class_translate and
12263 regno_aclass instead of ira_class_translate and regno_cover_class.
12264 Modify code for finding regno_aclass. Setup preferred classes for
12265 the next pass.
12266 (setup_allocno_cover_class_and_costs): Rename to
12267 setup_allocno_class_and_costs. Use regno_aclass instead of
12268 regno_cover_class. Use ira_set_allocno_class instead of
12269 ira_set_allocno_cover_class.
12270 (init_costs, finish_costs): Use regno_aclass instead of
12271 regno_cover_class.
12272 (ira_costs): Use setup_allocno_class_and_costs instead of
12273 setup_allocno_cover_class_and_costs.
12274 (ira_tune_allocno_costs_and_cover_classes): Rename to
12275 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12276 by processing objects. Use ira_reg_class_max_nregs instead of
12277 ira_reg_class_nregs.
12278
12279 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12280
12281 * sched-int.h: Remove mentioning cover classes from the file.
12282 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12283
12284 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12285 classes from the file.
12286 (struct reg_pref): Rename coverclass into allocnoclass.
12287 (reg_cover_class): Rename to reg_allocno_class.
12288
7a81008b 12289 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
12290
12291 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12292
12293 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12294
12295 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12296
12297 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12298
12299 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12300
12301 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12302
12303 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12304
12305 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12306
12307 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12308
12309 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12310 (i386_ira_cover_classes): Ditto.
12311
12312 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12313
12314 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12315
12316 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12317
12318 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12319
12320 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12321
12322 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12323
12324 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12325 (mips_ira_cover_classes): Ditto.
12326
12327 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12328
12329 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12330
12331 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12332
12333 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12334
12335 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12336
12337 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12338 (IRA_COVER_CLASSES_VSX): Ditto.
12339
12340 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12341 (rs6000_ira_cover_classes): Ditto.
12342
12343 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12344
12345 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12346
12347 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12348
12349 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12350
12351 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12352
12353 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12354
12355 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12356
12357 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12358
12359 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12360
12361 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12362
2b80199f
JJ
123632011-03-29 Jakub Jelinek <jakub@redhat.com>
12364
71dae1fe
JJ
12365 PR debug/48253
12366 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12367 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12368 dw_fde_unlikely_section_end_label, cold_in_std_section,
12369 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12370 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12371 fields.
12372 (output_fde): Use dw_fde_second_{begin,end} if second is
12373 true, otherwise dw_fde_{begin,end}.
12374 (output_call_frame_info): Test dw_fde_second_begin != NULL
12375 instead of dw_fde_switched_sections.
12376 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12377 fields, initialize new fields. Initialize in_std_section
12378 unconditionally from the first partition.
12379 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12380 dw_fde_second_begin is non-NULL.
12381 (dwarf2out_switch_text_section): Stop initializing removed
12382 dw_fde_struct fields, initialize new fields, initialize
12383 also dw_fde_end here. Set dw_fde_switch_cfi even when
12384 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12385 (struct var_loc_list_def): Add last_before_switch field.
12386 (arange_table, arange_table_allocated, arange_table_in_use,
12387 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12388 (size_of_aranges): Count !in_std_section and !second_in_std_section
12389 hunks in fdes, instead of looking at arange_table_in_use.
12390 (output_aranges): Add aranges_length argument, don't call
12391 size_of_aranges here. Instead of using aranges_table*
12392 emit ranges for fdes when !in_std_section resp.
12393 !second_in_std_section.
12394 (dw_loc_list): Break ranges crossing section switch.
12395 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 12396 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
12397 (gen_subprogram_die): Don't call add_arange. Use
12398 dw_fde_{begin,end} for first partition and if switched
12399 section dw_fde_second_{begin,end} for the second.
12400 (var_location_switch_text_section_1,
12401 var_location_switch_text_section): New functions.
12402 (dwarf2out_begin_function): Initialize cold_text_section even
12403 when function_section () isn't text_section.
12404 (prune_unused_types): Don't walk arange_table.
12405 (dwarf2out_finish): Don't needlessly test
12406 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12407 If info_section_emitted, call size_of_aranges and if it indicates
12408 non-empty .debug_aranges, call output_aranges with the computed
12409 size. Stop using removed dw_fde_struct fields, use
12410 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12411 for second.
12412
2b80199f
JJ
12413 PR debug/48203
12414 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12415 create ENTRY_VALUE if incoming or address of incoming's MEM
12416 is a hard REG.
12417 * dwarf2out.c (mem_loc_descriptor): Don't emit
12418 DW_OP_GNU_entry_value of DW_OP_fbreg.
12419 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12420 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12421 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12422 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12423 ENTRY_VALUE_EXPs.
12424 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12425 is a REG_P or MEM_P with REG_P address, compute hash directly
12426 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12427 (preserve_only_constants): Don't clear VALUES forwaring
12428 ENTRY_VALUE to some other VALUE.
12429
8a445129
RS
124302011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12431
12432 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12433 instead of GEN_INT.
12434
c82fee88
EB
124352011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12436
12437 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12438 block before expanding the statement.
12439 (expand_gimple_stmt_1): Likewise. Set them here...
12440 (expand_gimple_stmt): ...and not here. Tidy.
12441 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12442 unknown.
12443
e45425ec
SB
124442011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12445
12446 * Makefile.in: New rule for cprop.o.
12447 * gcse.c: Move constant/copy propagation to cprop.c.
12448 (compute_local_properties): Only handle expression tables.
12449 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12450 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12451 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12452 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 12453 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
12454 compute_cprop_data, find_used_regs, try_replace_reg,
12455 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12456 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12457 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12458 find_bypass_set, reg_killed_on_edge, bypass_block,
12459 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12460 execute_rtl_cprop, pass_rtl_cprop): Move to...
12461 * cprop.c: ...here. New file, constant/copy propagation for RTL
12462 moved from gcse.c to here with minor cleanups in duplicated code.
12463
c09d5426
L
124642011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12465
12466 * config/i386/i386.c (flag_opts): Fix a typo in
12467 -mavx256-split-unaligned-store.
12468
9eaa7740
AS
124692011-03-28 Anatoly Sokolov <aesok@post.ru>
12470
12471 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12472 LIBCALL_VALUE): Remove macros.
12473 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12474 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12475 (h8300_function_value, h8300_libcall_value,
12476 h8300_function_value_regno_p): New functions.
12477
dcec2be2
AS
124782011-03-28 Anatoly Sokolov <aesok@post.ru>
12479
12480 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12481
520af9ec
JL
124822011-03-28 Jeff Law <law@redhat.com>
12483
12484 * tree-ssa-threadupdate.c (redirect_edges): Call
12485 create_edge_and_update_destination_phis as needed.
12486 (create_edge_and_update_destination_phis): Accept new BB argument.
12487 All callers updated.
12488 (thread_block): Do not update the profile when threading around
12489 intermediate blocks.
12490 (thread_single_edge): Likewise.
12491 (determine_bb_domination_status): If BB is not a successor of the
12492 loop header, return NONDOMINATING.
12493 (register_jump_thread): Note when we register a jump thread around
12494 an intermediate block.
12495 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12496 (thread_across_edge): Use it.
12497
7450b54f
TG
124982011-03-28 Tristan Gingold <gingold@adacore.com>
12499
12500 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12501 when for_return is 2.
12502
649beb33
JL
125032011-03-28 Jeff Law <law@redhat.com>
12504
12505 * var-tracking.c (canonicalize_values_mark): Delete unused
12506 lhs assignment.
12507 (canonicalize_values_star, set_variable_part): Likewise.
12508 (clobber_variable_part, delete_variable_part): Likewise.
12509
d5b8da97
SB
125102011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12511
12512 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12513
322dd859
MJ
125142011-03-28 Martin Jambor <mjambor@suse.cz>
12515
12516 * tree-inline.c (expand_call_inline): Do not check that destination
12517 node is analyzed.
12518 (optimize_inline_calls): Assert that destination node is analyzed.
12519 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12520 not call tree_lowering_passes.
12521 * cgraph.h (cgraph_analyze_function): Declare.
12522 * cgraphunit.c (cgraph_analyze_function): Make public.
12523
aa53e58b
JM
125242011-03-28 Joseph Myers <joseph@codesourcery.com>
12525
12526 * config/sparc/sparc-opts.h: New.
12527 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12528 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12529 (sparc_option_override): Store processor_type enumeration rather
12530 than string in cpu_default. Remove name and enumeration from
12531 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12532 without using sparc_select. Use target_flags_explicit instead of
12533 fpu_option_set.
12534 * config/sparc/sparc.h (enum processor_type): Move to
12535 sparc-opts.h.
12536 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12537 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12538 HeaderInclude entry.
12539 (mcpu=, mtune=): Use Var and Enum.
12540 (sparc_processor_type): New Enum and EnumValue entries.
12541
dd350eba
RO
125422011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12543 Iain Sandoe <iains@gcc.gnu.org>
12544
12545 PR target/48245
12546 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12547
1b29f05e
EB
125482011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12549
12550 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12551 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12552 Insert new statements at it in lieu of STMT.
12553 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12554 * tree-vect-stmts.c (vectorizable_store): Likewise.
12555 (vectorizable_load): Likewise.
12556
506e6808
UB
125572011-03-28 Uros Bizjak <ubizjak@gmail.com>
12558
12559 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12560 (divtf3): Ditto.
12561 (multf3): Ditto.
12562 (subtf3): Ditto.
12563
2e939ee9
L
125642011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12565
12566 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12567 unaligned 256bit load/store.
12568 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12569 (*avx_movdqu<avxmodesuffix>): Likewise.
12570
5e85ab88
JDA
125712011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12572
12573 PR target/48288
12574 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12575 * config/pa/pa.md (iordi3): Use new predicate in expander.
12576 (iorsi3): Likewise.
12577
47be3d6d
AS
125782011-03-27 Anatoly Sokolov <aesok@post.ru>
12579
506e6808 12580 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 12581 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
12582 * config/mips/mips-protos.h (mips_function_value): Remove.
12583 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
12584 (mips_function_value_1): ... this. Make static. Handle receiving
12585 the function type in 'fn_decl_or_type' argument.
12586 (mips_function_value, mips_libcall_value,
12587 mips_function_value_regno_p): New function.
12588 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12589 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12590
d253656a
L
125912011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12592
12593 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12594 and -mavx256-split-unaligned-store.
12595 (ix86_option_override_internal): Split 32-byte AVX unaligned
12596 load/store by default.
12597 (ix86_avx256_split_vector_move_misalign): New.
12598 (ix86_expand_vector_move_misalign): Use it.
12599
12600 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12601 -mavx256-split-unaligned-store.
12602
12603 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12604 256bit load/store. Generate unaligned store on misaligned memory
12605 operand.
12606 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12607 256bit load/store.
12608 (*avx_movdqu<avxmodesuffix>): Likewise.
12609
12610 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12611 -mavx256-split-unaligned-store.
12612
1ea9206a
RS
126132011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12614
12615 PR target/38598
12616 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12617 Update commentary.
12618
b99ce2a8
RS
126192011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12620
12621 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12622 opno arguments with an expand_operand. Use create_input_operand.
12623 (mips_prepare_builtin_target): Delete.
12624 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12625 functions.
12626 (mips_expand_builtin_direct): Use create_output_operand and
12627 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12628 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12629 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12630
69d52339
IR
126312011-03-27 Ira Rosen <ira.rosen@linaro.org>
12632
12633 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12634 function.
12635 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12636
ba5e9aca
EB
126372011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12638
12639 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12640 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12641 basic blocks and call commit_edge_insertions directly.
12642 (fixup_abnormal_edges): Move from here to...
12643 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12644 on the edges and return whether some have actually been inserted.
12645 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12646 compensation code.
12647
5d369d58
AB
126482011-03-26 Andrey Belevantsev <abel@ispras.ru>
12649
12650 PR rtl-optimization/48144
12651 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12652 (merge_expr_data): ... here.
12653 (av_set_intersect): Rename to av_set_code_motion_filter.
12654 Update all callers. Call merge_history_vect when an expression
12655 is found in both sets.
12656 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12657
f082c000
AM
126582011-03-26 Alan Modra <amodra@gmail.com>
12659
12660 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12661 cmodel medium addresses.
12662 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12663 64-bit gpr loads and stores.
12664 (rs6000_secondary_reload_ppc64): New function.
12665 * config/rs6000/rs6000-protos.h: Declare it.
12666 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12667
8ac5e12e
AM
126682011-03-26 Alan Modra <amodra@gmail.com>
12669
12670 PR target/47487
12671 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12672 GNU Go in traceback table.
12673
c2654ded
RH
126742011-03-25 Richard Henderson <rth@redhat.com>
12675
12676 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12677 if there are exactly 6 operands.
12678 (set_storage_via_setmem): Similarly.
12679
ba78087b
KT
126802011-03-25 Kai Tietz <ktietz@redhat.com>
12681
12682 * collect2.c (write_c_file_stat): Handle backslash
12683 as right-hand directory separator.
12684 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12685 checking just for slash.
12686 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12687 instead of checking for trailing slash.
12688 * gcc.c (record_temp_file): Use filename_cmp instead
12689 of strcmp.
12690 (do_spec_1): Likewise.
12691 (replace_outfile_spec_function): Likewise.
12692 (is_directory): Use filename_ncmp instead of strncmp.
12693 (print_multilib_info): Likewise.
12694 * gcov.c (find_source): Use filename_cmp instead
12695 instead of strcmp.
12696 (make_gcov_file_name): Fix order of slash/backslash
12697 checks.
12698 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12699 (add_standard_paths): Likewise.
12700 * mips-tfile.c (saber_stop): Handle backslash.
12701 * prefix.c (update_path): Use filename_ncmp instead of
12702 strncmp.
12703 * profile.c (output_location): Use filename_cmp instead
12704 of strcmp.
12705 * read-md.c (handle_toplevel_file): Handle backslash.
12706 * tlink.c (frob_extension): Likewise.
12707 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12708 strcmp.
12709 * tree-dump.c (dequeue_and_dump): Handle backslash.
12710 * tree.c (get_file_function_name): Likewise.
12711 * gengtype.c (read_input_list): Likewise.
12712 (get_file_realbasename): Likewise.
12713 (get_output_file_with_visibility): Use filename_cmp
12714 instead of strcmp.
12715
75f6ec9a
RS
127162011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12717
12718 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12719 case to VFPv1.
12720
6c4e2997
NF
127212011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12722
12723 * fold-const.c (expr_location_or): New function.
12724 (fold_truth_not_expr): Call it.
12725
0edf1bb2
JL
127262011-03-25 Jeff Law <law@redhat.com>
12727
12728 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12729 va_end.
12730 * c-family/c-common.c (def_fn_type): Likewise.
12731 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12732 * emit-rtl.c (gen_rtvec): Likewise.
12733 * lto/lto-lang.c (def_fn_type): Likewise.
12734
fdc2de95
RG
127352011-03-25 Richard Guenther <rguenther@suse.de>
12736
12737 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12738 also generate copies.
12739 (fini_copy_prop): Handle constant values properly.
12740
21385db0
JJ
127412011-03-25 Jakub Jelinek <jakub@redhat.com>
12742
12743 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12744 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12745 (hash_loc_operands, compare_loc_operands): Handle
12746 DW_OP_GNU_entry_value.
12747
6510e8bb
KT
127482011-03-25 Kai Tietz <ktietz@redhat.com>
12749
12750 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12751 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12752 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12753 comment and use macro TARGET_64BIT_MS_ABI instead.
12754 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12755 and change default behavior for 32-bit MS_ABI.
12756 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12757 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12758 32-bit, too.
12759 (ix86_cfun_abi): Likewise.
12760 (ix86_maybe_switch_abi): Adjust comment.
12761 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12762 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12763 instead of checking for SYSV_ABI.
12764 (ix86_nsaved_sseregs): Likewise.
12765 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12766 to 16 bytes.
12767 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12768 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12769 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12770 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12771 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12772
34019e28
RG
127732011-03-25 Richard Guenther <rguenther@suse.de>
12774
12775 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12776 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12777 (verify_gimple): Remove.
12778 * tree-cfg.c (verify_gimple_call): Merge verification
12779 from verify_stmts.
12780 (verify_gimple_phi): Merge verification from verify_stmts.
12781 (verify_gimple_label): New function.
12782 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12783 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12784 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12785 (verify_stmts): Rename to verify_gimple_in_cfg.
12786 (verify_gimple_in_cfg): New function.
12787 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12788 * tree-ssa.c (verify_ssa): Likewise.
12789 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12790
605896f5
RG
127912011-03-25 Richard Guenther <rguenther@suse.de>
12792
12793 * passes.c (init_optimization_passes): Add FRE pass after
12794 early SRA.
12795
7baa7c13
BS
127962011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12797 Andrew Stubbs <ams@codesourcery.com>
12798
12799 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12800 for Cortex-A8.
12801 (arm_movdi_vfp_cortexa8): New pattern.
12802 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12803 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12804 instructions when tuning for Cortex-A8. Set attribute "arch".
12805 * config/arm/arm.md: Move include arm-tune.md up a bit.
12806 (define_attr "arch"): Add "onlya8" and "nota8" values.
12807 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12808
45dbce1b
NF
128092011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12810
4ff08abf 12811 PR bootstrap/48282
45dbce1b
NF
12812 Revert:
12813 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12814
12815 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12816 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12817 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12818 * passes.c (init_optimization_passes): Move
12819 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12820
ac9a30ae
KT
128212011-03-25 Kai Tietz <ktietz@redhat.com>
12822
12823 * c-typeck.c (comptypes_internal): Replace target
12824 hook call of comp_type_attributes by version in tree.c file.
12825 * gimple.c (gimple_types_compatible_p_1): Likewise.
12826 * tree-ssa.c (useless_type_conversion_p): Likewise.
12827 * tree.c (build_type_attribute_qual_variant): Likewise.
12828 (attribute_value_equal): New static helper function.
12829 (comp_type_attributes): New function.
12830 (merge_attributes): Use attribute_value_equal for comparison.
12831 (attribute_list_contained): Likewise.
12832 * tree.h (comp_type_attributes): New prototype.
12833
afdac116
RG
128342011-03-25 Richard Guenther <rguenther@suse.de>
12835
12836 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12837 of complex types at -O0.
12838 (verify_gimple_assign_binary): Likewise.
12839 (verify_gimple_assign_ternary): Likewise.
12840
ec6165f8
MW
128412011-03-24 Mark Wielaard <mjw@redhat.com>
12842
12843 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12844 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12845
2a5ac39a
MW
128462011-03-24 Mark Wielaard <mjw@redhat.com>
12847
12848 PR debug/48041
12849 * dwarf2out.c (output_abbrev_section): Only write table when
12850 abbrev_die_table_in_use > 1.
12851
e533b2a4
RH
128522011-02-24 Richard Henderson <rth@redhat.com>
12853
12854 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12855 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12856 (alpha_expand_unaligned_load_words): Use extql.
12857 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12858 (emit_insxl): Handle all modes for consistency.
12859
0b2a7367
RH
128602011-02-24 Richard Henderson <rth@redhat.com>
12861
12862 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12863 (alpha_expand_unaligned_load): Likewise.
12864 (alpha_expand_unaligned_store): Likewise.
12865 (alpha_expand_unaligned_load_words): Likewise.
12866 (alpha_expand_unaligned_store_words): Likewise.
12867 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12868 (alpha_split_lock_test_and_set_12): Likewise.
12869 (print_operand, alpha_fold_builtin_extxx): Likewise.
12870 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12871 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12872 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12873 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12874 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12875 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12876 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12877 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12878 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12879 (extwl, extll, extql): Similarly.
12880 (inswh, inslh, insqh): Similarly.
12881 (mskbl, mskwl, mskll, mskql): Similarly.
12882 (mskwh, msklh, mskqh): Similarly.
12883
315b2bef
RH
128842011-02-24 Richard Henderson <rth@redhat.com>
12885
12886 * config/alpha/alpha.md (attribute isa): Add er, ner.
12887 (attribute enabled): Handle them.
12888 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12889
67102517
RH
128902011-02-24 Richard Henderson <rth@redhat.com>
12891
12892 * config/alpha/alpha.md (attribute isa): Add vms.
12893 (attribute enabled): Handle it.
12894 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12895 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12896 (*movtf): Rename from *movtf_internal for consistency.
12897 (*movsi): Merge with *movsi_nt_vms.
12898 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12899 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12900 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12901 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12902
6aba5cb4
RH
129032011-02-24 Richard Henderson <rth@redhat.com>
12904
12905 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12906 (extendqisi2, extendhisi2): Likewise.
12907 (extendqidi2): Simplify BWX/non-BWX expansions.
12908 (extendhidi2): Similarly.
12909
bdfb351b
RH
129102011-02-24 Richard Henderson <rth@redhat.com>
12911
12912 * config/alpha/alpha.md (attribute isa): New.
12913 (attribute enabled): New.
12914 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12915 (zero_extendqisi2, zero_extendqidi2): Similarly.
12916 (zero_extendhisi2, zero_extendhidi2): Similarly.
12917 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12918
6abe71eb
RH
129192011-02-24 Richard Henderson <rth@redhat.com>
12920
12921 * config/alpha/predicates.md (input_operand): Revert last change;
12922 update comment to mention 32-bit VMS rather than Windows.
12923
7114321e
NF
129242011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12925
12926 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12927 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12928 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12929 * passes.c (init_optimization_passes): Move
12930 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12931
c8679567
EB
129322011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12933
12934 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12935
27173058
UB
129362011-03-24 Uros Bizjak <ubizjak@gmail.com>
12937
12938 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12939 correctly.
12940
6f0c9f06
JJ
129412011-03-24 Jakub Jelinek <jakub@redhat.com>
12942
12943 PR debug/48204
12944 * simplify-rtx.c (simplify_const_unary_operation): Call
12945 real_convert when changing mode class with FLOAT_EXTEND.
12946
662666e5
NC
129472011-03-24 Nick Clifton <nickc@redhat.com>
12948
12949 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12950 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12951 * config/rx/rx.c (rx_option_override): Set align_jumps,
12952 align_loops and align_labels if not set by the user.
12953 (rx_align_for_label): New function.
12954 (rx_max_skip_for_label): New function.
12955 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12956 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12957 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12958 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12959 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12960
2b99b2b8
RS
129612011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12962
12963 PR rtl-optimization/48263
12964 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12965 and original commutative_p handling. Use maybe_gen_insn.
12966
ccecd6ea
AK
129672011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12968
12969 * reload.c (find_reloads_subreg_address): Add address_reloaded
12970 parameter and return true there if the full address has been
12971 reloaded.
12972 (find_reloads_toplev): Pass address_reloaded flag.
12973 (find_reloads_address_1): Don't use address_reloaded parameter.
12974
67295642
JL
129752011-03-24 Jeff Law <law@redhat.com>
12976
12977 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12978 unused variable "ann".
12979 (remove_unused_locals): Likewise.
12980
12981 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12982 statement.
12983
12984 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12985 after it is freed.
12986
212aa74f
AK
129872011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12988
12989 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12990 for invalid symbolic addresses.
12991 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12992 larl operands.
12993
fe784e0d
EB
129942011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12995
12996 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12997 the argument in calls to fold_truth_not_expr.
12998
63ee8641
NF
129992011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13000
13001 * tree.c (record_node_allocation_statistics): New function.
13002 (make_node_stat, copy_node_stat, build_string): Call it.
13003 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13004 (build1_stat, build_omp_clause): Likewise.
13005
61be2a1c
RS
130062011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13007
13008 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13009 last commit.
13010
a881aaa7
RG
130112011-03-24 Richard Guenther <rguenther@suse.de>
13012
13013 PR tree-optimization/48271
13014 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13015 blocks that still exist.
13016
dbaa912c
RG
130172011-03-24 Richard Guenther <rguenther@suse.de>
13018
13019 PR tree-optimization/48270
13020 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13021 not free datarefs before ddrs.
13022
1d60cc55
EB
130232011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13024
13025 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13026 from the address built for a reference with variable offset.
13027
c78dd519
UB
130282011-03-24 Uros Bizjak <ubizjak@gmail.com>
13029
13030 PR target/48237
13031 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13032 alternatives that can be handled with movq or movabsq insn.
13033 (*movdf_internal): Disable for !TARGET_64BIT.
13034 (*movdf_internal_nointeger): Ditto.
13035 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13036
b25b9e8f
NF
130372011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13038
13039 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13040 (FUNCTION_ARG_ADVANCE): Likewise.
13041 * tm.texi.in: Change references to them to hook references.
13042 * tm.texi: Regenerate.
c78dd519 13043 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
13044 (default_function_incoming_arg): Likewise.
13045 (default_function_arg_advance): Likewise.
c78dd519 13046 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
13047 (function_arg_advance): Likewise.
13048 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13049
190b2187
RG
130502011-03-24 Richard Guenther <rguenther@suse.de>
13051
13052 PR middle-end/48269
13053 * tree-object-size.c (addr_object_size): Do not double-account
13054 for MEM_REF offsets.
13055
a183b5c7
DN
130562011-03-24 Diego Novillo <dnovillo@google.com>
13057
13058 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 13059 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
13060 (lto_input_data_block): Move from lto-opts.c. Make extern.
13061 Update all users.
13062 (lto_input_string): Rename from input_string. Make extern.
13063 Update all users.
13064 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13065 output_string_with_length.
13066 Output 0 to indicate a non-NULL string. Update all callers to
13067 not emit 0.
13068 (lto_output_string): Rename from output_string. Make extern.
13069 Update all users.
13070 (lto_output_decl_state_streams): Make extern.
13071 (lto_output_decl_state_refs): Make extern.
13072 * lto-streamer.h (lto_input_string): Declare.
13073 (lto_input_data_block): Declare.
13074 (lto_output_string): Declare.
13075 (lto_output_string_with_length): Declare.
13076 (lto_output_decl_state_streams): Declare.
13077 (lto_output_decl_state_refs): Declare.
13078
cfef45c8
RG
130792011-03-24 Richard Guenther <rguenther@suse.de>
13080
13081 PR tree-optimization/46562
13082 * tree.c (build_invariant_address): New function.
13083 * tree.h (build_invariant_address): Declare.
13084 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13085 a renamed function moved ...
13086 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13087 Take valueization callback parameter.
13088 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13089 * gimple-fold.h: New file.
13090 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13091 (ccp_fold, fold_const_aggregate_ref,
13092 fold_ctor_reference, fold_nonarray_ctor_reference,
13093 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13094 get_base_constructor): Move ...
13095 * gimple-fold.c: ... here.
13096 (gimple_fold_stmt_to_constant_1): New function
13097 split out from ccp_fold. Take a valueization callback parameter.
13098 Valueize all operands.
13099 (gimple_fold_stmt_to_constant): New wrapper function.
13100 (fold_const_aggregate_ref_1): New function split out from
13101 fold_const_aggregate_ref. Take a valueization callback parameter.
13102 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13103 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13104 invariant POINTER_PLUS_EXPRs to invariant form.
13105 (vn_valueize): New function.
13106 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13107 * tree-vrp.c (vrp_valueize): New function.
13108 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13109 to fold statements to constants.
13110 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13111 function declarations.
13112 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13113 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13114
5e0a7e40
RS
131152011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13116
13117 * config/h8300/predicates.md (jump_address_operand): Fix register
13118 mode check.
13119
bfe068c3
IR
131202011-03-24 Ira Rosen <ira.rosen@linaro.org>
13121
13122 * doc/invoke.texi (max-stores-to-sink): Document.
13123 * params.h (MAX_STORES_TO_SINK): Define.
13124 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13125 if either vectorization or if-conversion is disabled.
13126 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13127 tree-vect-data-refs.c vect_equal_offsets.
13128 (dr_equal_offsets_p): New function.
13129 (find_data_references_in_bb): Remove static.
13130 * tree-data-ref.h (find_data_references_in_bb): Declare.
13131 (dr_equal_offsets_p): Likewise.
13132 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13133 (vect_drs_dependent_in_basic_block): Update calls to
13134 vect_equal_offsets.
13135 (vect_check_interleaving): Likewise.
13136 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13137 (cond_if_else_store_replacement): Rename to...
13138 (cond_if_else_store_replacement_1): ... this. Change arguments and
13139 documentation.
13140 (cond_if_else_store_replacement): New function.
13141 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13142 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13143
4908b0bf
CLT
131442011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13145
13146 PR target/46934
13147 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13148 to subtract lower bound instead of GEN_INT().
13149
2be478a2
JW
131502011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13151
13152 PR other/48179
13153 PR other/48221
13154 PR other/48234
13155 * doc/extend.texi (Alignment): Move section to match order in TOC.
13156 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13157 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13158
0c617be4
JL
131592011-03-23 Jeff Law <law@redhat.com>
13160
13161 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13162 before removing the edge.
13163
13164 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13165 it may have been freed by redirect_branch_edge or
13166 redirect_edge_succ_nodup.
13167
58da96fe
RG
131682011-03-23 Richard Guenther <rguenther@suse.de>
13169
c78dd519 13170 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
13171 (check_va_list_escapes): Likewise.
13172 (check_all_va_list_escapes): Likewise.
13173
b8beb4d1
RG
131742011-03-23 Richard Guenther <rguenther@suse.de>
13175
13176 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13177 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13178 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13179 (alias.o): Likewise.
13180 (ipa-type-escape.o): Remove.
13181 (ipa-struct-reorg.o): Likewise.
13182 (GTFILES): Remove ipa-struct-reorg.c.
13183 * alias.c: Do not include ipa-type-escape.h.
13184 * tree-ssa-alias.c: Likewise.
13185 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13186 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13187 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13188 and ipa-type-escape passes.
13189 * tree-pass.h (pass_ipa_type_escape): Remove.
13190 (pass_ipa_struct_reorg): Likewise.
13191 * ipa-struct-reorg.h: Remove.
13192 * ipa-struct-reorg.c: Likewise.
13193 * ipa-type-escape.h: Likewise.
13194 * ipa-type-escape.c: Likewise.
13195 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13196 (--param struct-reorg-cold-struct-ratio): Likewise.
13197 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13198 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13199 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13200
f137aa63
AK
132012011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13202
13203 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13204 cpu attribute value.
13205 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13206 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13207 * config/s390/s390.c (processor_flags_table): New constant array.
13208 (s390_handle_arch_option): Remove.
13209 (s390_handle_option): Remove s390_handle_arch_option invocations
13210 and OPT_mwarn_framesize_ handling.
13211 (s390_option_override): Remove s390_handle_arch_option invocation.
13212 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13213 warnings.
13214 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13215 * config/s390/s390.opt (s390_tune, s390_arch)
13216 (march=): Replace s390_arch_option enum and values with
13217 processor_type. Set variable name to s390_arch. Set
13218 initialization value.
13219 (mtune=): Replace s390_arch_option with processor_type. Set
13220 variable name to s390_tune. Set initialization value.
13221
bf90208f
JB
132222011-03-23 Julian Brown <julian@codesourcery.com>
13223
13224 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13225 accesses which are not naturally aligned.
13226
3460fdf3
RS
132272011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13228
13229 PR target/47553
13230 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13231
a5c7d693
RS
132322011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13233
13234 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13235 parameter from "int" to "enum insn_code".
13236 (expand_operand_type): New enum.
13237 (expand_operand): New structure.
13238 (create_expand_operand): New function.
13239 (create_fixed_operand, create_output_operand): Likewise
13240 (create_input_operand, create_convert_operand_to): Likewise.
13241 (create_convert_operand_from, create_address_operand): Likewise.
13242 (create_integer_operand): Likewise.
13243 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13244 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13245 (expand_insn, expand_jump_insn): Likewise.
13246 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13247 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13248 (expand_movstr, expand_builtin___clear_cache): Likewise.
13249 (expand_builtin_lock_release): Likewise.
13250 * explow.c (allocate_dynamic_stack_space): Likewise.
13251 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13252 and use the default handling in that case.
13253 * expmed.c (check_predicate_volatile_ok): Delete.
13254 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13255 (emit_cstore): Likewise.
13256 * expr.c (emit_block_move_via_movmem): Likewise.
13257 (set_storage_via_setmem, expand_assignment): Likewise.
13258 (emit_storent_insn, try_casesi): Likewise.
13259 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13260 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13261 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13262 (expand_twoval_unop, expand_twoval_binop): Likewise.
13263 (expand_unop_direct, emit_indirect_jump): Likewise.
13264 (emit_conditional_move, vector_compare_rtx): Likewise.
13265 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13266 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13267 (expand_sync_lock_test_and_set): Likewise.
13268 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13269 (emit_unop_insn): Likewise.
13270 (expand_copysign_absneg): Change icode to an insn_code.
13271 (create_convert_operand_from_type): New function.
13272 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13273 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13274 (expand_insn, expand_jump_insn): Likewise.
13275 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13276 than const_int_operand for operand 2.
13277
78fadbab
AK
132782011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13279
13280 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13281 if possible.
13282
5f02387d
NF
132832011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13284
13285 * emit-rtl.c (emit_pattern_before_noloc): New function.
13286 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13287 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13288 (emit_pattern_after_noloc): New function.
13289 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13290 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13291
fdf3e18a
NF
132922011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13293
13294 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13295 (__ffsDI2): Likewise.
13296
42d085c1
RH
132972011-03-22 Richard Henderson <rth@redhat.com>
13298
13299 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13300 of !TARGET_ABI_OPEN_VMS.
13301 (alpha_trampoline_init, alpha_start_function): Likewise.
13302 (alpha_expand_epilogue, alpha_file_start): Likewise.
13303 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13304 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13305 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13306 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13307 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13308
cabbe12a
JM
133092011-03-22 Joseph Myers <joseph@codesourcery.com>
13310
13311 * config/s390/s390-opts.h: New.
13312 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13313 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13314 s390_stack_guard): Remove.
13315 (s390_handle_arch_option): Return void. Take enum
13316 s390_arch_option value instead of string and searching array.
13317 (s390_handle_option): Don't assert that global structures are in
13318 use. Access variables via opts pointer. Use error_at. Don't use
13319 sscanf for -mstack-guard= or -mstack-size=. Update call to
13320 s390_handle_arch_option.
13321 (s390_option_override): Update call to s390_handle_arch_option.
13322 (s390_emit_prologue): Use %d format for s390_stack_size in
13323 diagnostic. Use %wd for HOST_WIDE_INT.
13324 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13325 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13326 * config/s390/s390.opt (config/s390/s390-opts.h): New
13327 HeaderInclude entry.
13328 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13329 s390_arch_flags, s390_warn_framesize): New Variable entries.
13330 (s390_arch_option): New Enum and EnumValue entries.
13331 (march=): Use Enum instead of Var.
13332 (mstack-guard=, mstack-size=): Use UInteger and Var.
13333 (mtune=): Use Enum.
13334
05b12036
JM
133352011-03-22 Joseph Myers <joseph@codesourcery.com>
13336
13337 * config/score/score.c (score_handle_option): Don't assert that
13338 global structures are in use. Access target_flags via opts
13339 pointer. Use value of -march= option to determine target_flags
13340 settings.
13341 * config/score/score.opt (march=): Use Enum.
13342 (score_arch): New Enum and EnumValue entries.
13343
dd51e35a
JM
133442011-03-22 Joseph Myers <joseph@codesourcery.com>
13345
13346 * config/mep/mep.c (option_mtiny_specified): Remove.
13347 (mep_option_override): Move register handling for -mivc2 from
13348 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13349 instead of option_mtiny_specified.
13350 (mep_handle_option): Access target_flags via opts pointer. Don't
13351 assert that global structures are in use. Defer part of -mivc2
13352 handling and move it to mep_option_override.
13353 * config/mep/mep.opt (IVC2): New Mask entry.
13354 (mivc2): Use Var and Defer instead of Mask.
13355
4a8d3d91
JM
133562011-03-22 Joseph Myers <joseph@codesourcery.com>
13357
13358 * config/v850/v850-opts.h: New.
13359 * config/v850/v850.c (small_memory): Replace with
13360 small_memory_physical_max array. Make that array static const.
13361 (v850_handle_memory_option): Take integer value of argument. Take
13362 gcc_options pointer, option text and location. Return void.
13363 Update for changes to small memory structures.
13364 (v850_handle_option): Access target_flags via opts pointer. Don't
13365 assert that global structures are in use. Update calls to
13366 v850_handle_memory_option.
c78dd519
UB
13367 (v850_encode_data_area): Update references to small memory settings.
13368 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
13369 (enum small_memory_type): Move to v850-opts.h.
13370 * config/v850/v850.opt (config/v850/v850-opts.h): New
13371 HeaderInclude entry.
13372 (small_memory_max): New Variable entry.
13373 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13374 (mtda, mzda): Likewise.
13375
117fdbfa
JM
133762011-03-22 Joseph Myers <joseph@codesourcery.com>
13377
13378 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13379 pointer. Don't assert that global structures are in use.
13380
d715091c
JM
133812011-03-22 Joseph Myers <joseph@codesourcery.com>
13382
13383 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13384 via opts pointer. Don't assert that global structures are in use.
13385
1bb721dc
JM
133862011-03-22 Joseph Myers <joseph@codesourcery.com>
13387
13388 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13389 (munix=93): Use Var.
13390 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13391 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13392 * config/pa/pa-opts.h: New.
13393 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13394 (pa_handle_option): Don't assert that global structures are in
13395 use. Access target_flags via opts pointer. Don't handle
13396 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13397 OPT_munix_98 here.
13398 (pa_option_override): Handle deferred OPT_mfixed_range_.
13399
cd8d8754
JM
134002011-03-22 Joseph Myers <joseph@codesourcery.com>
13401
13402 * config/mn10300/mn10300-opts.h: New.
13403 * config/mn10300/mn10300.c (mn10300_processor,
13404 mn10300_tune_string): Remove.
13405 (mn10300_handle_option): Don't assert that global structures are
13406 in use. Access mn10300_processor via opts pointer. Don't handle
13407 OPT_mtune_ here.
13408 * config/mn10300/mn10300.h (enum processor_type): Move to
13409 mn10300-opts.h.
13410 (mn10300_processor): Remove.
13411 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13412 HeaderInclude entry.
13413 (mn10300_processor): New Variable entry.
13414 (mtune=): Use Var.
13415
24e6e6b1
JM
134162011-03-22 Joseph Myers <joseph@codesourcery.com>
13417
13418 * config/microblaze/microblaze.c: Don't include opts.h.
13419 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13420 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13421 (mno-clearbss): Use Var and Warn.
13422
8a784afb
JM
134232011-03-22 Joseph Myers <joseph@codesourcery.com>
13424
13425 * config/m32r/m32r-opts.h: New.
13426 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13427 (m32r_handle_option): Don't assert that global structures are in
13428 use. Access target_flags and m32r_cache_flush_func via opts
13429 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13430 OPT_mno_flush_trap here.
13431 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13432 include of m32r-opts.h.
13433 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13434 HeaderInclude entry.
13435 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13436 (mmodel=): Use Enum and Var.
13437 (m32r_model): New Enum and EnumValue entries.
13438 (mno-flush-trap): Use Var.
13439 (msdata=): Use Enum and Var.
13440 (m32r_sdata): New Enum and EnumValue entries.
13441
bbfc9a8c
JM
134422011-03-22 Joseph Myers <joseph@codesourcery.com>
13443
13444 * config/m32c/m32c.c: Don't include opts.h.
13445 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13446 m32c_handle_option): Remove.
13447 (m32c_option_override): Check global_options_set.x_target_memregs
13448 instead of target_memregs_set.
13449 * config/m32c/m32c.h (target_memregs): Remove.
13450 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13451 variable.
13452
e24b8335
JM
134532011-03-22 Joseph Myers <joseph@codesourcery.com>
13454
13455 * config/iq2000/iq2000-opts.h: New.
13456 * config/iq2000/iq2000.c: Don't include opts.h.
13457 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13458 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
13459 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13460 HeaderInclude entry.
13461 (iq2000_tune): New Variable entry.
13462 (march=): Add comment. Use Enum.
13463 (iq2000_arch): New Enum and EnumValue entries.
13464 (mcpu=): Use Enum and Var.
13465 (iq2000_tune): New Enum and EnumValue entries.
13466
e6cc0c98
JM
134672011-03-22 Joseph Myers <joseph@codesourcery.com>
13468
13469 * config/ia64/ia64-opts.h: New.
13470 * config/ia64/ia64.c (ia64_tune): Remove.
13471 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13472 here. Use error_at.
13473 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13474 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13475 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13476 HeaderInclude entry.
13477 (ia64_tune): New Variable entry.
13478 (mfixed-range=): Use Defer and Var.
13479 (mtune=): Use Enum and Var.
13480 (ia64_tune): New Enum and EnumValue entries.
13481
db25893c
JM
134822011-03-22 Joseph Myers <joseph@codesourcery.com>
13483
13484 * config/frv/frv-opts.h: New.
13485 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13486 frv-opts.h.
13487 (frv_cpu_type): Remove.
13488 * config/frv/frv.c: Don't include opts.h.
13489 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13490 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
13491 (frv_cpu_type): New Variable entry.
13492 (frv_cpu): New Enum and EnumValue entries.
13493
6c223f5d
JM
134942011-03-22 Joseph Myers <joseph@codesourcery.com>
13495
13496 * config/cris/cris.c (cris_handle_option): Access target_flags via
13497 opts pointer. Don't assert that global structures are in use.
13498 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13499 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13500
bbd399cf
JM
135012011-03-22 Joseph Myers <joseph@codesourcery.com>
13502
13503 * config/bfin/bfin-opts.h: New.
13504 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13505 bfin_si_revision, bfin_workarounds): Remove.
13506 (bfin_cpus): Make static const.
13507 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13508 not bfin_lib_id_given.
13509 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13510 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 13511 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
13512 * config/bfin/bfin.h: Include bfin-opts.h.
13513 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13514 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13515 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13516 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13517 entries.
13518
5e1b4d5a
JM
135192011-03-22 Joseph Myers <joseph@codesourcery.com>
13520
13521 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13522 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13523 or -msoft-float here.
13524 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13525 -msoft-float and -mhard-float.
c78dd519 13526 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
13527 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13528 msoft-float.
13529 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13530 -msoft-float.
13531 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13532 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13533 not mhard-float.
13534 (LIBGCC_SPEC): Don't handle -msoft-float.
13535 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13536 -mhard-float.
13537 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13538 msoft-float.
13539 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13540 -mfloat-abi=*, not -msoft-float and -mhard-float.
13541 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13542 -msoft-float.
13543 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13544 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13545 mhard-float and msoft-float.
13546 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13547 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13548 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13549 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13550 mhard-float.
13551 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13552 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13553 msoft-float.
13554 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13555 not mhard-float.
13556 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13557 not msoft-float.
13558
800d1de1
RH
135592011-03-22 Richard Henderson <rth@redhat.com>
13560
13561 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13562 TARGET_ABI_WINDOWS_NT.
13563 (alpha_output_function_end_prologue): Likewise.
13564 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13565 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13566 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13567 (trap, *movsi_nt_vms): Likewise.
13568 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13569 (*tablejump_osf_nt_internal): Remove.
13570 * config/alpha/predicates.md (input_operand): Only test Pmode.
13571
c59ddd2b
JM
135722011-03-22 Joseph Myers <joseph@codesourcery.com>
13573
13574 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13575 via opts pointer. Use error_at. Don't assert that global
13576 structures are in use.
13577
1333f97f
JM
135782011-03-22 Joseph Myers <joseph@codesourcery.com>
13579
13580 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13581 (ix86_handle_option): Access ix86_isa_flags and
13582 ix86_isa_flags_explicit via opts pointer. Don't assert that
13583 global structures are in use.
13584 (ix86_function_specific_save, ix86_function_specific_restore):
13585 Update ix86_isa_flags_explicit field name.
c78dd519 13586 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
13587 (ix86_isa_flags_explicit): Rename TargetSave entry to
13588 x_ix86_isa_flags_explicit.
13589
75db85d8
RH
135902011-03-22 Richard Henderson <rth@redhat.com>
13591
13592 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13593 (alpha_option_override, direct_return): Likewise.
13594 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13595 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13596 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13597 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13598 (alpha_expand_epilogue, alpha_end_function): Likewise.
13599 (alpha_init_libfuncs): Likewise.
13600 (struct machine_function): Remove unicosmk members.
13601 (print_operand) ['t']: Remove.
13602 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13603 unicosmk_output_module_name, unicosmk_output_common,
13604 current_section_align, unicosmk_output_text_section_asm_op,
13605 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13606 unicosmk_section_type_flags, unicosmk_unique_section,
13607 unicosmk_asm_named_section, unicosmk_insert_attributes,
13608 unicosmk_output_align, unicosmk_defer_case_vector,
13609 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13610 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13611 unicosmk_output_ssib, unicosmk_add_call_info_word,
13612 unicosmk_extern_head, unicosmk_output_default_externs,
13613 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13614 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13615 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13616 * config/alpha/alpha-protos.h: Update.
13617 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13618 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13619 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13620 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13621 (*mulsi_se, mulvsi3): Likewise.
13622 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13623 (*divmodsi_internal, call, call_value, realign): Likewise.
13624 (moddi3, umoddi3): Likewise; remove duplicate expander.
13625 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13626 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13627 (*movdi_nofix): Remove r/U alternative.
13628 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13629 * config/alpha/constraints.md ("U"): Remove.
13630 * config/alpha/predicates.md (call_operand"): Don't test
13631 TARGET_ABI_UNICOSMK.
13632
96e45421
JM
136332011-03-22 Joseph Myers <joseph@codesourcery.com>
13634
13635 * target.def (handle_option): Take gcc_options and
13636 cl_decoded_option pointers and location_t.
13637 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13638 * doc/tm.texi: Regenerate.
13639 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13640 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13641 * lto-opts.c (lto_reissue_options): Generate option structure for
13642 targetm.handle_option call.
13643 * opts.c (target_handle_option): Update call to
13644 targetm.handle_option. Remove assertions about values now passed
13645 down to hook.
13646 * targhooks.c (default_target_handle_option): New.
13647 * targhooks.h (default_target_handle_option): Declare.
13648 * config/alpha/alpha.c: Include opts.h.
13649 (alpha_handle_option): Update to new hook interface.
13650 * config/arm/arm.c: Include opts.h.
13651 (arm_handle_option): Update to new hook interface.
13652 * config/arm/t-arm (arm.o): Update dependencies.
13653 * config/bfin/bfin.c: Include opts.h.
13654 (bfin_handle_option): Update to new hook interface.
13655 * config/cris/cris.c: Include opts.h.
13656 (cris_handle_option): Update to new hook interface.
13657 * config/frv/frv.c: Include opts.h.
13658 (frv_handle_option): Update to new hook interface.
13659 * config/i386/i386.c: Include opts.h.
13660 (ix86_handle_option): Update to new hook interface.
13661 (ix86_valid_target_attribute_inner_p): Generate option structure
13662 for call to ix86_handle_option.
13663 * config/i386/t-i386 (i386.o): Update dependencies.
13664 * config/ia64/ia64.c: Include opts.h.
13665 (ia64_handle_option): Update to new hook interface.
13666 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13667 * config/iq2000/iq2000.c: Include opts.h.
13668 (iq2000_handle_option): Update to new hook interface.
13669 * config/m32c/m32c.c: Include opts.h.
13670 (m32c_handle_option): Update to new hook interface.
13671 * config/m32r/m32r.c: Include opts.h.
13672 (m32r_handle_option): Update to new hook interface.
13673 * config/m68k/m68k.c: Include opts.h.
13674 (m68k_handle_option): Update to new hook interface.
13675 * config/mep/mep.c: Include opts.h.
13676 (mep_handle_option): Update to new hook interface.
13677 * config/microblaze/microblaze.c: Include opts.h.
13678 (microblaze_handle_option): Update to new hook interface.
13679 * config/mips/mips.c: Include opts.h.
13680 (mips_handle_option): Update to new hook interface.
13681 * config/mn10300/mn10300.c: Include opts.h.
13682 (mn10300_handle_option): Update to new hook interface.
13683 * config/pa/pa.c: Include opts.h.
13684 (pa_handle_option): Update to new hook interface.
13685 * config/pdp11/pdp11.c: Include opts.h.
13686 (pdp11_handle_option): Update to new hook interface.
13687 * config/rs6000/rs6000.c: Include opts.h.
13688 (rs6000_handle_option): Update to new hook interface.
13689 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13690 * config/rx/rx.c: Include opts.h.
13691 (rx_handle_option): Update to new hook interface.
13692 * config/s390/s390.c: Include opts.h.
13693 (s390_handle_option): Update to new hook interface.
13694 * config/score/score.c: Include opts.h.
13695 (score_handle_option): Update to new hook interface.
13696 * config/sh/sh.c: Include opts.h.
13697 (sh_handle_option): Update to new hook interface.
13698 * config/sparc/sparc.c: Include opts.h.
13699 (sparc_handle_option): Update to new hook interface.
13700 * config/v850/v850.c: Include opts.h.
13701 (v850_handle_option): Update to new hook interface.
13702
66017846
JM
137032011-03-22 Joseph Myers <joseph@codesourcery.com>
13704
13705 * gcc.c (driver_unknown_option_callback): Only permit and save
13706 unknown -Wno- options.
13707 (driver_wrong_lang_callback): Save options directly instead of via
13708 driver_unknown_option_callback.
13709
e8b97ccd
EB
137102011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13711
13712 * combine.c (simplify_set): Try harder to find the best CC mode when
13713 simplifying a nested COMPARE on the RHS.
13714
ebb9f8b0
JM
137152011-03-22 Joseph Myers <joseph@codesourcery.com>
13716
13717 * config/alpha/gnu.h: Remove.
13718 * config/arc: Remove directory.
13719 * config/arm/netbsd.h: Remove.
13720 * config/arm/t-pe: Remove.
13721 * config/crx: Remove directory.
13722 * config/i386/netbsd.h: Remove.
13723 * config/m68hc11: Remove directory.
13724 * config/m68k/uclinux-oldabi.h: Remove.
13725 * config/mcore/mcore-pe.h: Remove.
13726 * config/mcore/t-mcore-pe: Remove.
13727 * config/netbsd-aout.h: Remove.
13728 * config/rs6000/gnu.h: Remove.
13729 * config/sh/sh-symbian.h: Remove.
13730 * config/sh/symbian-base.c: Remove.
13731 * config/sh/symbian-c.c: Remove.
13732 * config/sh/symbian-cxx.c: Remove.
13733 * config/sh/symbian-post.h: Remove.
13734 * config/sh/symbian-pre.h: Remove.
13735 * config/sh/t-symbian: Remove.
13736 * config/svr3.h: Remove.
13737 * config/vax/netbsd.h: Remove.
13738 * config.build: Don't handle i[34567]86-*-pe.
13739 * config.gcc: Remove handling of deprecations for most deprecated
13740 targets.
13741 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13742 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13743 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13744 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13745 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13746 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13747 Remove cases.
13748 * config.host: Don't handle i[34567]86-*-pe.
13749 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13750 (ASM_SPEC32): Don't handle -mcall-gnu.
13751 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13752 -mcall-gnu.
13753 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13754 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13755 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13756 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13757 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13758 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13759 conditional on SYMBIAN.
13760 * configure.ac: Don't handle powerpc*-*-gnu*.
13761 * configure: Regenerate.
13762 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13763 * doc/install-old.texi (m6811, m6812): Don't mention.
13764 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13765 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13766 (m68k-uclinuxoldabi): Don't mention.
13767 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13768 Remove.
13769 (-mcall-gnu): Remove.
13770 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13771 families): Remove constraint documentation.
13772
999a7d80
MS
137732011-03-22 Marius Strobl <marius@FreeBSD.org>
13774
13775 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13776 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13777 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13778
45540bcf
MM
137792011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13780
13781 PR target/48226
13782 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13783 vector when peeking at the next token for vector, don't expand the
13784 keywords.
13785
980a0ff4
GJL
137862011-03-21 Georg-Johann Lay <avr@gjlay.de>
13787
13788 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13789 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13790 * config/avr/avr.c (init_cumulative_args)
13791 (avr_function_arg_advance): Use it.
13792 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13793 sibcall epilogues.
13794 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13795 (avr_function_ok_for_sibcall): ...this new function.
13796 (avr_lookup_function_attribute1): New static Function.
13797 (avr_naked_function_p, interrupt_function_p)
13798 (signal_function_p, avr_OS_task_function_p)
13799 (avr_OS_main_function_p): Use it.
13800 * config/avr/avr.md ("sibcall", "sibcall_value")
13801 ("sibcall_epilogue"): New expander.
13802 ("*call_insn", "*call_value_insn"): New insn.
13803 ("call_insn", "call_value_insn"): Remove
13804 ("call", "call_value", "epilogue"): Change expander to handle
13805 sibling calls.
13806
49168734
NC
138072011-03-21 Nick Clifton <nickc@redhat.com>
13808
13809 * doc/invoke.texi (Overall Options): Move closing brace to end of
13810 options list.
13811 (Optimization Options): Add missing @gol.
13812 (Directory Options): Likewise.
13813 (i386 and x86-64 Options): Likewise.
13814 (RS6000 and PowerPC Options): Likewise.
13815 (i386 and x86-64 Windows Options): Likewise.
13816 (V850 Options): Add text missing from descriptions.
13817
bdfe906f
RH
138182011-03-22 Richard Henderson <rth@redhat.com>
13819
13820 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13821 (avr_incoming_return_addr_rtx): New.
13822 (emit_push_byte): New.
13823 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13824 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13825 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13826 (emit_pop_byte): New.
13827 (expand_epilogue): Use it. Pop frame pointer by bytes.
13828 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13829 (INCOMING_RETURN_ADDR_RTX): New.
13830 (INCOMING_FRAME_SP_OFFSET): New.
13831 (ARG_POINTER_CFA_OFFSET): New.
13832 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13833 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13834 (pophi): Remove.
13835
d090a5aa
RH
13836 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13837
fdf3e18a
NF
138382011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13839
13840 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13841 (FUNCTION_ARG_ADVANCE): Likewise.
13842 * tm.texi.in: Change references to them to hook references.
13843 * tm.texi: Regenerate.
13844 * targhooks.c (default_function_arg): Eliminate check for target
13845 macro.
13846 (default_function_incoming_arg): Likewise.
13847 (default_function_arg_advance): Likewise.
c78dd519 13848 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
13849 (function_arg_advance): Likewise.
13850 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13851
009d3fcf
NF
138522011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13853
13854 * tree.c (build_call_1): New function.
13855 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13856
7bec30e1
RG
138572011-03-22 Richard Guenther <rguenther@suse.de>
13858
13859 PR tree-optimization/48228
13860 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13861 for single-arg PHIs.
13862
0b7e851b
AB
138632011-03-22 Andrey Belevantsev <abel@ispras.ru>
13864
13865 PR rtl-optimization/48143
13866 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13867 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13868 sse2_cvtps2pd): Likewise.
13869
d89afca5
AK
138702011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13871
13872 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13873
f471fe72
RG
138742011-03-22 Richard Guenther <rguenther@suse.de>
13875
13876 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13877 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13878 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13879 and REALIGN_LOAD_EXPR.
13880 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13881 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13882 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13883 DOT_PROD_EXPR case ...
13884 (expand_expr_real_2): ... here.
13885 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13886 and REALIGN_LOAD_EXPR.
13887 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13888 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13889 (vect_create_epilog_for_reduction): Likewise.
13890 (vectorizable_reduction): Likewise.
13891 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13892 * tree-vect-stmts.c (vectorizable_load): Likewise.
13893
f2f81d57
EB
138942011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13895
13896 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13897
ab081dd6
AK
138982011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13899
13900 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13901 handling for PLTOFF/GOTOFF.
13902
6fd5332b
NC
139032011-03-22 Nick Clifton <nickc@redhat.com>
13904
13905 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13906 trailing backslash from the end of the macro definition.
13907
01841ac0
AK
139082011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13909
13910 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13911 and PLT unspecs.
13912
2ef6ce06
RS
139132011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13914
13915 * expr.h (prepare_operand): Move to...
13916 * optabs.h (prepare_operand): ...here and change the insn code
13917 parameter from "int" to "enum insn_code".
13918 (insn_operand_matches): Declare.
13919 * expr.c (init_expr_target): Use insn_operand_matches.
13920 (compress_float_constant): Likewise.
13921 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13922 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13923 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
13924 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13925 Likewise.
2ef6ce06
RS
13926 (gen_cond_trap): Likewise.
13927 (prepare_operand): Likewise. Change icode to an insn_code.
13928 (insn_operand_matches): New function.
13929 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13930 * reload1.c (gen_reload): Likewise.
13931 * targhooks.c (default_secondary_reload): Likewise.
13932
9e43ad68
UB
139332011-03-21 Uros Bizjak <ubizjak@gmail.com>
13934
9a96da32
UB
13935 * config/alpha/alpha.md (unspec): New define_c_enum.
13936 (unspecv): Ditto.
13937
139382011-03-21 Uros Bizjak <ubizjak@gmail.com>
13939
13940 PR debug/48214
9e43ad68
UB
13941 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13942 between a call and its CALL_ARG_LOCATION note.
13943
31408f60
EB
139442011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13945
13946 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13947
139482011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
13949
13950 PR c/42544
13951 PR c/48197
13952 * c-common.c (shorten_compare): If primopN is first sign-extended
13953 to opN and then zero-extended to result type, set primopN to opN.
13954
9dfd55f5
DJ
139552011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13956
13957 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13958 for barrier handlers.
13959
f3c33d9d
MM
139602011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13961
13962 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13963 UNSPEC constants to be in the unspec enumeration, and redefine
13964 all UNSPECV constants to be in the unspecv enumeration, so that
13965 dumps print which unspec/unspec_volatile this is.
13966 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13967 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13968 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13969 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13970 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13971
13972 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13973 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13974 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13975 * config/rs6000/sync.md (isync, lwsync): Ditto.
13976
ac43f774
RG
139772011-03-21 Richard Guenther <rguenther@suse.de>
13978
13979 * params.def (lto-min-partition): Fix typo.
13980
411cdbd8
RG
139812011-03-21 Richard Guenther <rguenther@suse.de>
13982
13983 PR c/47939
13984 * c-decl.c (grokdeclarator): Drop to the main variant only
13985 for array types. Drop flag_gen_aux_info check.
13986
1cd9e416
RG
139872011-03-21 Richard Guenther <rguenther@suse.de>
13988
13989 PR translation/47911
13990 * params.def (lto-partitions): Fix typo.
13991 (lto-min-partition): Fix wording.
13992
ada5ad67
AT
139932011-03-21 Andreas Tobler <andreast@fgznet.ch>
13994
13995 * config/rs6000/t-freebsd: Remove duplication from file.
13996
f9613c9a
RG
139972011-03-21 Richard Guenther <rguenther@suse.de>
13998
13999 PR middle-end/47661
14000 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14001
9bfbc1eb
RG
140022011-03-21 Richard Guenther <rguenther@suse.de>
14003
14004 PR lto/48210
14005 * params.def (lto-partitions): Require at least 1 partition.
14006
a2268084
RO
140072011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14008
14009 * gthr-solaris.h: Remove.
14010 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14011 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14012 (LIB_SPEC): Likewise.
14013 * config/sol2.opt (threads): Remove.
9e43ad68 14014 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
14015 (sparc*-*-solaris2*): Likewise.
14016 * configure.ac (enable_threads): Enable solaris support.
14017 * configure: Regenerate.
9e43ad68 14018 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
14019 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14020 solaris.
14021
c43d9a1b
RO
140222011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14023
14024 * config.gcc: Obsolete *-*-solaris2.8*.
14025 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14026
084239f4
RO
140272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14028
14029 PR bootstrap/48135
14030 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14031 reference. Solaris 8 perl works.
14032
64cadbe7
RO
140332011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14034
14035 PR bootstrap/48135
14036 * doc/install.texi (Prerequisites): Move jar etc. up.
14037 Explain support library version requirements.
14038
eb975109
RO
140392011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14040
14041 PR bootstrap/48135
14042 * doc/install.texi (Prerequisites): Move Perl to build
14043 requirements. Always necessary on Solaris 2 with Sun ld.
14044
8a509ffd
RO
140452011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14046
14047 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14048 binutils 2.21.
14049 (Specific, i?86-*-solaris2.[89]): Likewise.
14050 (Specific, i?86-*-solaris2.10): Likewise.
14051 (Specific, mips-sgi-irix6): Likewise.
14052 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14053 Update for binutils 2.21.
14054
8fbc58a1
RO
140552011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14056
14057 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14058 Allow -fuse-linker-plugin for non-default plugin linker.
14059 * configure: Regenerate.
14060
7e84ad0b
NP
140612011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14062
14063 PR bootstrap/48167
14064 * gengtype.c (files_rules): Added rule for cp/parser.h.
14065
2f36e14b
JJ
140662011-03-21 Jakub Jelinek <jakub@redhat.com>
14067
14068 PR target/48213
14069 * config/s390/s390.c (s390_delegitimize_address): Don't call
14070 lowpart_subreg if orig_x has BLKmode.
14071
62d784f7
KT
140722011-03-21 Kai Tietz <ktietz@redhat.com>
14073
14074 PR target/12171
9e43ad68
UB
14075 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14076 * tree.h (attribute_spec): Add new member affects_type_identity.
14077 * attribs.c (empty_attribute_table): Adjust attribute_spec
14078 initializers.
62d784f7
KT
14079 * config/alpha/alpha.c: Likewise.
14080 * config/arc/arc.c: Likewise.
14081 * config/arm/arm.c: Likewise.
14082 * config/avr/avr.c: Likewise.
14083 * config/bfin/bfin.c: Likewise.
14084 * config/crx/crx.c: Likewise.
14085 * config/darwin.h: Likewise.
14086 * config/h8300/h8300.c: Likewise.
14087 * config/i386/cygming.h: Likewise.
14088 * config/i386/i386.c: Likewise.
14089 * config/ia64/ia64.c: Likewise.
14090 * config/m32c/m32c.c: Likewise.
14091 * config/m32r/m32r.c: Likewise.
14092 * config/m68hc11/m68hc11.c: Likewise.
14093 * config/m68k/m68k.c: Likewise.
14094 * config/mcore/mcore.c: Likewise.
14095 * config/mep/mep.c: Likewise.
14096 * config/microblaze/microblaze.c: Likewise.
14097 * config/mips/mips.c: Likewise.
14098 * config/rs6000/rs6000.c: Likewise.
14099 * config/rx/rx.c: Likewise.
14100 * config/sh/sh.c: Likewise.
14101 * config/sol2.h: Likewise.
14102 * config/sparc/sparc.c: Likewise.
14103 * config/spu/spu.c: Likewise.
14104 * config/stormy16/stormy16.c: Likewise.
14105 * config/v850/v850.c: Likewise.
14106
54833ec0
CLT
141072011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14108
14109 * simplify-rtx.c (simplify_binary_operation_1): Handle
14110 (xor (and A B) C) case when B and C are both constants.
14111
14a41392
MX
141122011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14113
14114 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14115
806c3492
EB
141162011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14117
14118 PR bootstrap/48168
14119 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14120
65e0a0f3
JJ
141212011-03-20 Jakub Jelinek <jakub@redhat.com>
14122
14123 PR rtl-optimization/48156
14124 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14125 assume df and df_lr are not NULL.
14126
b6a75dda
RR
141272011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14128
14129 PR debug/48023
14130 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14131 between a call and its CALL_ARG_LOCATION note.
14132
5969b52d
KK
141332011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14134
14135 PR debug/48178
14136 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14137 between a call and its corresponding CALL_ARG_LOCATION note.
14138
f773c2bd
AS
141392011-03-19 Anatoly Sokolov <aesok@post.ru>
14140
14141 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14142 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14143 * haifa-sched.c (setup_ref_regs): Ditto.
14144 * caller-save.c (add_used_regs_1): Ditto.
14145 * dse.c (look_for_hardregs): Ditto.
14146 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14147 * sched-rgn.c (check_live_1): Ditto.
14148
8bf872f9
JM
141492011-03-18 Joseph Myers <joseph@codesourcery.com>
14150
14151 * c-decl.c (diagnose_mismatched_decls): Give an error for
14152 redefining a typedef with variably modified type.
14153
ff8e2159
JM
141542011-03-18 Joseph Myers <joseph@codesourcery.com>
14155
14156 * c-decl.c (grokfield): Don't allow typedefs for structures or
14157 unions with no tag by default.
14158 * doc/extend.texi (Unnamed Fields): Update.
14159
16cc4440
UB
141602011-03-18 Uros Bizjak <ubizjak@gmail.com>
14161
14162 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14163 Rewrite using indirect functions.
14164 (lwp_slwpcb): Ditto.
14165 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14166 (avx_vinsertf128<mode>): Ditto.
14167
e101e12e
AK
141682011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14169
14170 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14171 unspecs.
14172
4627c7fb
AK
141732011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14174
14175 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 14176 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 14177
2d36b47f
MK
141782011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14179
14180 PR rtl-optimization/48170
14181 * gcse.c (hoist_code): Remove bogus asserts.
14182
2a3d7659
JL
141832011-03-18 Georg-Johann Lay <avr@gjlay.de>
14184
14185 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14186 computation for prologue/epilogue.
14187
34c3ef05
RO
141882011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14189
14190 * Makefile.in (check-consistency): Remove.
14191
81f2b976
JJ
141922011-03-18 Jakub Jelinek <jakub@redhat.com>
14193
14194 PR debug/48176
14195 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14196 arange_table_in_use is 0, but either text_section_used or
14197 cold_text_section_used is true. Don't call it if
14198 !info_section_emitted.
14199
68fd7765
AS
142002011-03-18 Anatoly Sokolov <aesok@post.ru>
14201
14202 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14203 FUNCTION_VALUE_REGNO_P): Remove.
14204 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14205 Remove.
14206 * config/avr/avr.c (avr_ret_register): Make static inline.
14207 (avr_function_value_regno_p): New function.
14208 (avr_libcall_value): Make static. Add 'func' argument.
14209 (avr_function_value): Make static. Rename 'func' argument to
14210 'fn_decl_or_type', forward it to avr_libcall_value. Call
14211 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 14212 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 14213
b4ef8aac
JM
142142011-03-18 Jason Merrill <jason@redhat.com>
14215
14216 PR c++/23372
14217 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14218
09a52fc3
RG
142192011-03-18 Richard Guenther <rguenther@suse.de>
14220
14221 * doc/install.texi (--enable-gold): Remove.
14222 (--with-plugin-ld): Document.
14223 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14224
2a3d7659 142252011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
14226
14227 PR middle-end/47790
14228 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14229 again after expansion changes.
14230
2abbb0fe
CLT
142312011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14232
14233 * combine.c (try_combine): Do simplification only call of
14234 subst() on i2 even when i1 is present. Update comments.
14235
2efd0aa6
KK
142362011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14237
14238 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14239 and UNSPEC_PCREL_SYMOFF.
14240
30a49b23
AK
142412011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14242
14243 * config/s390/s390.md: Use define_c_enum for the unspec constant
14244 definitions.
14245
419e1853
JJ
142462011-03-18 Richard Henderson <rth@redhat.com>
14247 Jakub Jelinek <jakub@redhat.com>
14248
14249 PR bootstrap/48161
14250 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14251 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14252
37875856
L
142532011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14254
14255 PR middle-end/47725
14256 * combine.c (cant_combine_insn_p): Don't check zero/sign
14257 extended hard registers.
14258
76069764
L
142592011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14260
14261 PR middle-end/47725
14262 * combine.c (cant_combine_insn_p): Check zero/sign extended
14263 hard registers.
14264
24da2019
AS
142652011-03-17 Anatoly Sokolov <aesok@post.ru>
14266
14267 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14268 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14269 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14270 Change return type to bool.
14271 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14272
a82ff31f
JJ
142732011-03-17 Jakub Jelinek <jakub@redhat.com>
14274
8b29c87a
JJ
14275 PR debug/48163
14276 * var-tracking.c (prepare_call_arguments): If CALL target
14277 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14278 pc instead of looking it up using cselib_lookup and use
14279 Pmode for it if x has VOIDmode.
14280 * dwarf2out.c (gen_subprogram_die): If also both first and
14281 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14282
a82ff31f
JJ
14283 PR debug/48163
14284 * function.c (assign_parms): For data.passed_pointer parms
14285 use MEM of data.entry_parm instead of data.entry_parm itself
14286 as DECL_INCOMING_RTL.
14287 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14288 also when passed and declared mode is the same, DECL_RTL
14289 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14290 a MEM too.
14291
82ce305c
JL
142922011-03-16 Jeff Law <law@redhat.com>
14293
14294 PR rtl-optimization/37273
14295 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14296 handle them like argument loads from stack slots. Do not double
14297 count memory for memory constants and argument loads from stack slots.
14298
fe58e02b
L
142992011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14300
14301 PR debug/48160
14302 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14303
6fc4dbc7
L
143042011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14305
14306 PR target/48171
14307 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14308
db3ed0b3
JJ
143092011-03-17 Jakub Jelinek <jakub@redhat.com>
14310
8054a389
JJ
14311 PR bootstrap/48153
14312 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14313 if dwarf_strict.
14314 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14315 Clear call_arg_locations and call_arg_loc_last always.
14316
db3ed0b3
JJ
14317 PR middle-end/48152
14318 * var-tracking.c (prepare_call_arguments): If argument needs to be
14319 passed by reference, adjust argtype and mode.
14320
1bce4ff3
RG
143212011-03-17 Richard Guenther <rguenther@suse.de>
14322
14323 PR middle-end/48134
14324 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14325 a value make sure to fold the statement.
14326
7c71147d
CLT
143272011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14328
14329 PR target/43872
14330 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14331 return condition with !cfun->calls_alloca.
14332
0e1ee172
RG
143332011-03-17 Richard Guenther <rguenther@suse.de>
14334
14335 PR bootstrap/48148
14336 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14337 origin for decls in other ltrans units.
14338 (input_varpool_node): Likewise.
14339
f8bce518
RG
143402011-03-17 Richard Guenther <rguenther@suse.de>
14341
14342 PR middle-end/48165
14343 * tree-object-size.c (compute_object_offset): Properly return
14344 the offset operand of MEM_REFs as sizetype.
14345
1b6fa860
JJ
143462011-03-17 Jakub Jelinek <jakub@redhat.com>
14347
dabd47e7
JJ
14348 PR rtl-optimization/48141
14349 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14350 * dse.c: Include params.h.
14351 (active_local_stores_len): New variable.
14352 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14353 to NULL.
14354 (record_store, check_mem_read_rtx): Decrease it when removing
14355 from the chain.
14356 (scan_insn): Likewise. Increase it when adding to chain, if it
14357 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14358 set active_local_stores to NULL before the addition.
14359 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14360
1b6fa860
JJ
14361 PR rtl-optimization/48141
14362 * dse.c (record_store): If no positions are needed in an insn
14363 that cannot be deleted, at least unchain it from active_local_stores.
14364
7b5cb7d6
DS
143652011-03-16 Dodji Seketeli <dodji@redhat.com>
14366
14367 PR debug/47510
14368 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14369 (lookup_type_die_strip_naming_typedef): ... here.
14370 (get_context_die): Use it.
14371 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14372 the anonymous struct named by the naming typedef.
14373
585e9d9d
L
143742011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14375
14376 PR target/48154
14377 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14378 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14379
6261ab0e
JL
143802011-03-16 Jeff Law <law@redhat.com>
14381
14382 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 14383 check for operands of conditional. Allow type to be a pointer.
6261ab0e 14384
0b0081ec
RG
143852011-03-16 Richard Guenther <rguenther@suse.de>
14386
14387 PR tree-optimization/48149
14388 * fold-const.c (fold_binary_loc): Fold
14389 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14390
64a3d647
RG
143912011-03-16 Richard Guenther <rguenther@suse.de>
14392
14393 PR tree-optimization/26134
14394 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14395 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14396 (non_rewritable_mem_ref_base): Handle complex type component
14397 accesses, constrain offsets for vector and complex extracts
14398 more properly.
14399
ef13324e
RG
144002011-03-16 Richard Guenther <rguenther@suse.de>
14401
14402 PR tree-optimization/48146
14403 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14404 operands avoiding the need for renaming.
14405
f0eddb90
RG
144062011-03-16 Richard Guenther <rguenther@suse.de>
14407
14408 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14409 constant folding. Move MEM_REF canonicalization first.
14410 Rely on fold_const_aggregate_ref for initializer folding.
14411 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14412
e42348b8
JJ
144132011-03-16 Jakub Jelinek <jakub@redhat.com>
14414
29f10e71
JJ
14415 PR middle-end/48136
14416 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14417 arg0/arg1 or their arguments are always fold converted to matching
14418 types.
14419
e42348b8
JJ
14420 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14421 to nargs.
14422
55b46574
RO
144232011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14424
14425 PR lto/46944
14426 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14427 Handle in-tree gold.
14428 (ld_vers): Extract binutils version for gold.
14429 (gcc_cv_ld_hidden): Handle gold here.
14430 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14431 * configure: Regenerate.
14432 * config.in: Regenerate.
14433 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14434 -fuse-linker-plugin otherwise.
14435 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14436 (LINK_COMMAND_SPEC): Use it.
14437 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14438
2b1c5433
JJ
144392011-03-16 Jakub Jelinek <jakub@redhat.com>
14440
c2969d8e
JJ
14441 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14442 * calls.c: Remove debug.h include.
14443 (emit_call_1): Don't call virtual_call_token debug hook.
14444 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14445 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14446 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14447 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14448 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14449 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14450 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14451 dwarf2out_virtual_call): Remove.
14452 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14453 copy_call_info and virtual_call hooks.
14454 (dwarf2out_init): Don't initialize vcall_insn_table,
14455 debug_dcall_section and debug_vcall_section.
14456 (prune_unused_types): Don't mark nodes from dcall_table.
14457 (dwarf2out_finish): Don't output dcall or vcall tables.
14458 * final.c (final_scan_insn): Don't call direct_call or
14459 virtual_call debug hooks.
14460 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14461 virtual_call_token, copy_call_info and virtual_call hooks.
14462 (debug_nothing_uid): Remove prototype.
14463 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14464 copy_call_info and virtual_call hooks.
14465 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14466 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14467 * debug.c (do_nothing_debug_hooks): Likewise.
14468 (debug_nothing_uid): Remove.
14469 * doc/invoke.texi (-fenable-icf-debug): Remove.
14470 * common.opt (-fenable-icf-debug): Likewise.
14471
325f5379
JJ
14472 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14473 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14474 call's MEM. Handle functions returning aggregate through a hidden
14475 first pointer. For virtual calls add clobbered pc to call arguments
14476 chain.
14477 * dwarf2out.c (gen_subprogram_die): Emit
14478 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14479 can't be emitted.
14480
a58a8e4b
JJ
14481 PR debug/45882
14482 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14483 * rtl.h (ENTRY_VALUE_EXP): Define.
14484 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14485 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14486 * print-rtl.c (print_rtx): Likewise.
14487 * gengtype.c (adjust_field_rtx_def): Likewise.
14488 * var-tracking.c (vt_add_function_parameter): Adjust
14489 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14490 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14491 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14492 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14493 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14494
2b1c5433
JJ
14495 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14496 Call var_location debug hook even on CALL_INSNs.
14497 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14498 * rtl.def (ENTRY_VALUE): New.
14499 * dwarf2out.c: Include cfglayout.h.
14500 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14501 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14502 (struct call_arg_loc_node): New type.
14503 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14504 tail_call_site_count): New variables.
14505 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14506 DW_TAG_GNU_call_site_parameter.
14507 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14508 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14509 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14510 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14511 and DW_AT_GNU_all_source_call_sites.
14512 (mem_loc_descriptor): Handle ENTRY_VALUE.
14513 (add_src_coords_attributes): Don't add enything if
14514 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14515 (dwarf2out_abstract_function): Save and clear call_arg_location,
14516 call_site_count and tail_call_site_count around dwarf2out_decl call.
14517 (gen_call_site_die): New function.
14518 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14519 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14520 (dwarf2out_function_decl): Clear call_arg_locations,
14521 call_arg_loc_last, set call_site_count and tail_call_site_count
14522 to -1 and free block_map.
14523 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14524 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14525 followed by any real instructions.
14526 (dwarf2out_begin_function): Set call_site_count and
14527 tail_call_site_count to 0.
14528 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14529 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14530 attempt to force a DIE for it and worst case remove the attribute.
14531 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14532 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14533 the decl itself.
14534 * var-tracking.c: Include tm_p.h.
14535 (vt_stack_adjustments): For calls call note_register_arguments.
14536 (argument_reg_set): New variable.
14537 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14538 ensure the VALUE is resolved.
14539 (call_arguments): New variable.
14540 (prepare_call_arguments): New function.
14541 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14542 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14543 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14544 always use the best expression.
14545 (vt_expand_loc): Add ignore_cur_loc argument.
14546 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14547 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14548 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14549 note for all calls.
14550 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14551 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14552 argument. Don't call cselib_preserve_only_values and
14553 cselib_reset_table.
14554 (note_register_arguments): New function.
14555 (vt_initialize): Compute argument_reg_set. Call
14556 vt_add_function_parameters before processing basic blocks instead of
14557 afterwards. For calls call prepare_call_arguments before calling
14558 cselib_process_insn.
14559 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14560 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14561 (var-tracking.o): Depend on $(TM_P_H).
14562 * cfglayout.h (insn_scope): New prototype.
14563 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14564 * cfglayout.c (insn_scope): No longer static.
14565 * insn-notes.def (CALL_ARG_LOCATION): New.
14566 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14567 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14568 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14569 nothing for DECL_EXTERNAL BLOCK_VARS.
14570
9ef13bd0
AM
145712011-03-16 Alan Modra <amodra@gmail.com>
14572
14573 PR target/45844
14574 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14575 create invalid offset address for vsx splat insn.
14576 * config/rs6000/predicates.md (splat_input_operand): New.
14577 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14578
56b67510
XDL
145792011-03-15 Xinliang David Li <davidxl@google.com>
14580
14581 PR c/47837
14582 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14583 (normalize_preds): New function.
14584 (is_use_properly_guarded): Normalize def predicates.
14585
80fffdef
RR
145862011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14587
732f37c6 14588 PR target/46788
80fffdef
RR
14589 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14590 in the output template.
14591
930672ad
RG
145922011-03-15 Richard Guenther <rguenther@suse.de>
14593
14594 PR middle-end/47650
14595 * tree-pretty-print.c (dump_function_declaration): Properly
14596 dump unprototyped and varargs function types.
14597
c7ee7b45
RG
145982011-03-15 Richard Guenther <rguenther@suse.de>
14599
14600 PR tree-optimization/13954
14601 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14602 and friends.
14603
b2ad5e37
RG
146042011-03-15 Richard Guenther <rguenther@suse.de>
14605
14606 PR tree-optimization/48037
14607 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14608 selects into BIT_FIELD_REFs.
14609 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14610 vector select.
14611
7ee93d4e
JJ
146122011-03-15 Jakub Jelinek <jakub@redhat.com>
14613
14614 PR tree-optimization/48129
14615 * builtins.c (fold_builtin_snprintf): Convert to type of
14616 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14617 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14618
e106efc7
RG
146192011-03-15 Richard Guenther <rguenther@suse.de>
14620
14621 PR tree-optimization/41490
14622 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14623 value but with VUSE.
14624 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14625 return statements.
14626 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14627 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14628 * tree-tailcall.c (find_tail_calls): Ignore returns.
14629
17dea42f
RG
146302011-03-15 Richard Guenther <rguenther@suse.de>
14631
14632 PR middle-end/48031
14633 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14634 or variable-indexed array accesses when in gimple form.
14635
01c77a60
RG
146362011-03-15 Richard Guenther <rguenther@suse.de>
14637
16cc4440 14638 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 14639
77b0791e
AM
146402011-03-15 Alan Modra <amodra@gmail.com>
14641
14642 PR target/48032
14643 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14644 presume symbol_refs without a symbol_ref_decl are suitably
14645 aligned, nor other trees we may see here. Handle anchor symbols.
14646 (legitimate_constant_pool_address_p): Comment. Add mode param.
14647 Check cmodel=medium addresses. Adjust all calls.
14648 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14649 creating cmodel=medium optimized access to locals.
14650 * config/rs6000/constraints.md (R): Pass QImode to
14651 legitimate_constant_pool_address_p.
14652 * config/rs6000/predicates.md (input_operand): Pass mode to
14653 legitimate_constant_pool_address_p.
14654 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14655 Update prototype.
14656
35f61ba4
MM
146572011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14658
14659 PR target/48053
14660 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14661 64-bit constants being loaded into registers other than GPRs such
14662 as loading 0 into a VSX register.
14663
07332e6d
RO
146642011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14665
16cc4440 14666 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 14667
de888d90
JJ
146682011-03-14 Jakub Jelinek <jakub@redhat.com>
14669
ba3ceb2d
JJ
14670 PR middle-end/47917
14671 * builtins.c (fold_builtin_snprintf): New function.
14672 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14673 (fold_builtin_4): Likewise.
14674
2e64f8b8
JJ
14675 PR middle-end/38878
14676 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14677 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14678 and C - X == X also strip nops from +/-/p+ operand.
14679 When optimizing -X == C, fold C to arg0's type.
14680
de888d90
JJ
14681 PR debug/47946
14682 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14683 emit it as add_AT_int instead of add_AT_unsigned.
14684
146852011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
14686
14687 * unwind-dw2.c: Include sys/sdt.h if it exists.
14688 (_Unwind_DebugHook): Use STAP_PROBE2.
14689 * config.in, configure: Rebuild.
14690 * configure.ac: Check for sys/sdt.h.
14691
d34abfd2
UB
146922011-03-14 Uros Bizjak <ubizjak@gmail.com>
14693
14694 * config/i386/i386.md (ROUND_FLOOR): New constant.
14695 (ROUND_CEIL): Ditto.
14696 (ROUND_TRUNC): Ditto.
14697 (ROUND_MXCSR): Ditto.
14698 (ROUND_NO_EXC): Ditto.
14699 (rint<mode>2): Use new defines instead of numerical constants.
14700 (floor<mode>2): Ditto.
14701 (ceil<mode>2): Ditto.
14702 (btrunc<mode>2): Ditto.
14703 * config/i386/i386-builtin-types.def: Define ROUND function type
14704 aliases.
14705 * config/i386/i386.c (enum ix86_builtins): Add
14706 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14707 (struct builtin_description): Add
14708 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14709 (ix86_expand_sse_round): New static function.
14710 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14711 function types.
14712 (ix86_builtin_vectorized_function): Handle
14713 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14714
87f9e23d
TT
147152011-03-14 Tom Tromey <tromey@redhat.com>
14716
14717 * c-parser.c (c_parser_asm_string_literal): Clear
14718 warn_overlength_strings.
14719
b3ab9ea2
TT
147202011-03-14 Tom Tromey <tromey@redhat.com>
14721
14722 * c-parser.c (disable_extension_diagnostics): Save
14723 warn_overlength_strings.
14724 (restore_extension_diagnostics): Restore warn_overlength_strings.
14725
6bd73dd8
JJ
147262011-03-14 Jakub Jelinek <jakub@redhat.com>
14727
14728 * BASE-VER: Change to 4.7.0.
14729
7f4d6e1b
RG
147302011-03-14 Richard Guenther <rguenther@suse.de>
14731
14732 PR middle-end/48098
14733 * tree.c (build_vector_from_val): Adjust assert to requirements
14734 and reality.
14735
c6104ef1
JJ
147362011-03-14 Jakub Jelinek <jakub@redhat.com>
14737
14738 PR bootstrap/48102
d34abfd2 14739 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 14740
dfa95e19
AT
147412011-03-14 Andreas Tobler <andreast@fgznet.ch>
14742
f60c2554 14743 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
14744 terms of target_flags_explicit. Adjust copyright year.
14745
14746 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14747 * config/rs6000/t-freebsd: New file. Add override for
14748 LIB2FUNCS_EXTRA.
14749
bb322018
CD
147502011-03-13 Chris Demetriou <cgd@google.com>
14751
14752 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14753 (-fno-diagnostics-show-option): this, to reflect current default.
14754 (-Werror=): Update text about -fno-diagnostics-show-option.
14755
12b1c80b
PB
147562011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14757
14758 PR target/48053
14759 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14760 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14761 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14762 mode is not V2DImode or V2DFmode.
14763 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14764 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14765 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14766 registers to 0.
14767 (movdi_internal64): Likewise.
14768
57d598f7
SP
147692011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14770
14771 PR tree-optimization/47127
14772 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14773 parameter.
14774 (set_cloog_options): Same.
14775 (scop_to_clast): Same.
14776 (print_clast_stmt): Do not call cloog_state_malloc and
14777 cloog_state_free.
14778 (print_generated_program): Same.
14779 (gloog): Same.
14780 * graphite-clast-to-gimple.h (cloog_state): Declared.
14781 (scop_to_clast): Adjust declaration.
14782 * graphite.c (cloog_state): Defined here.
14783 (graphite_initialize): Call cloog_state_malloc.
14784 (graphite_finalize): Call cloog_state_free.
14785
f231b5ff
JM
147862011-03-11 Jason Merrill <jason@redhat.com>
14787
14788 * attribs.c (lookup_attribute_spec): Take const_tree.
14789 * tree.h: Adjust.
14790
6a4e2bd5
JM
147912011-03-11 Joseph Myers <joseph@codesourcery.com>
14792
14793 * config/sparc/sparc.c (sparc_option_override): Use
14794 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14795
a758fd67
RG
147962011-03-11 Richard Guenther <rguenther@suse.de>
14797
14798 PR tree-optimization/48067
14799 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14800 multiplication result will be only used once on the target
14801 stmt.
14802
03dfda54
RG
148032011-03-11 Richard Guenther <rguenther@suse.de>
14804
14805 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14806
5f11a50a
RG
148072011-03-11 Richard Guenther <rguenther@suse.de>
14808
14809 PR lto/48073
14810 * tree.c (find_decls_types_r): Do not walk types only reachable
14811 from IDENTIFIER_NODEs.
14812
4074f163
JJ
148132011-03-11 Jakub Jelinek <jakub@redhat.com>
14814
14815 PR middle-end/48044
14816 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14817 all vnode->force_output nodes as needed.
14818
30f7cdcd
JM
148192011-03-11 Jason Merrill <jason@redhat.com>
14820
14821 PR c++/48069
14822 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14823 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14824
62ecfeb8
MJ
148252011-03-11 Martin Jambor <mjambor@suse.cz>
14826
14827 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14828 cgraph_node.
14829
e89e03ab
JJ
148302011-03-11 Jakub Jelinek <jakub@redhat.com>
14831
14832 PR tree-optimization/48063
14833 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14834 inline functions called once if !tree_can_inline_p (node->callers).
14835
efbe978b 148362011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 14837
efbe978b
EB
14838 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14839 extra_objs.
9d6193a7
CL
14840 * config/score/score3.c: Delete.
14841 * config/score/score3.h: Delete.
14842 * config/score/mul-div.S: Delete.
14843 * config/score/sfp-machine.h: Add new file.
14844 * config/score/constraints.md: Add new file.
14845 * config/score/t-score-softfp: Add new file.
efbe978b 14846 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
14847 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14848 (score7_extra_constraint): Delete.
efbe978b 14849 (score7_option_override): Remove unused code.
9d6193a7
CL
14850 * config/score/score.c: Remove score3 and score5 define and code.
14851 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 14852 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
14853 * config/score/score.opt: Remove score3 and score5 options.
14854
5de27cca
JDA
148552011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14856
14857 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14858 when _HPUX_SOURCE is defined.
14859 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14860
18d92053
JM
148612011-03-10 Jason Merrill <jason@redhat.com>
14862
14863 PR c++/48029
14864 * stor-layout.c (layout_type): Don't set structural equality
14865 on arrays of incomplete type.
14866 * tree.c (type_hash_eq): Handle comparing them properly.
14867
67a2f76d
JJ
148682011-03-10 Jakub Jelinek <jakub@redhat.com>
14869
14870 PR debug/48043
18d92053 14871 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
14872 result mode matches original rtl mode.
14873
d845b2f9
NC
148742011-03-10 Nick Clifton <nickc@redhat.com>
14875
14876 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 14877 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 14878
db7ec035
JJ
148792011-03-09 Jakub Jelinek <jakub@redhat.com>
14880
14881 PR rtl-optimization/47866
14882 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14883 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14884 if target wasn't scalar.
14885 * function.c (assign_stack_temp_for_type): Assert that neither
14886 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14887 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14888 macro.
14889 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14890
5d304e47
AK
148912011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14892
14893 * config/s390/s390-protos.h (s390_label_align): New prototype.
14894 * config/s390/s390.c (s390_label_align): New function.
14895 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14896
93b826f0
MM
148972011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14898
14899 PR target/47755
14900 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14901 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14902 (output_vec_const_move): Ditto.
14903
ef78aed6
AS
149042011-03-08 Anatoly Sokolov <aesok@post.ru>
14905
14906 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14907 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14908 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14909 Change 'rclass' argument and result type to reg_class_t.
14910 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14911
5f892aa0
GJL
149122011-03-08 Georg-Johann Lay <avr@gjlay.de>
14913
9e43ad68
UB
14914 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14915 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14916 (TARGET_MEMORY_MOVE_COST): Define.
14917 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 14918
32bd2409
JJ
149192011-03-08 Jakub Jelinek <jakub@redhat.com>
14920
530a4800
JJ
14921 PR debug/47881
14922 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14923 removed anything.
14924
32bd2409
JJ
14925 PR tree-optimization/48022
14926 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14927 for EQ/NE_EXPR.
14928
c7148991
JJ
149292011-03-07 Jakub Jelinek <jakub@redhat.com>
14930
14931 PR debug/47991
14932 * var-tracking.c (find_use_val): Return NULL for
14933 cui->sets && cui->store_p BLKmode MEMs.
14934
43070a6e
AS
149352011-03-07 Anatoly Sokolov <aesok@post.ru>
14936
14937 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14938 Remove.
14939 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14940 xstormy16_print_operand_address): Remove.
14941 * config/stormy16/stormy16.c (xstormy16_print_operand,
14942 xstormy16_print_operand_address): Make static.
14943 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14944
efbe978b 149452011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
14946
14947 PR target/47862
14948 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14949 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14950 before definition.
14951
cec8ac0b
ZD
149522011-03-07 Zdenek Dvorak <ook@ucw.cz>
14953
14954 PR bootstrap/48000
14955 * cfgloopmanip.c (fix_bb_placements): Return immediately
14956 if FROM is BASE_LOOP's header.
14957
59527282
PW
149582011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14959
14960 * gimplify.c (gimplify_function_tree): Fix building calls
14961 to __builtin_return_address.
14962
617718f7
AM
149632011-03-07 Alan Modra <amodra@gmail.com>
14964
14965 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14966 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14967 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14968 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14969 return_mode args.
14970 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14971 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14972 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14973 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14974 * config/rs6000/rs6000.c
14975 (rs6000_elf_end_indicate_exec_stack): Rename to..
14976 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14977 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14978 (rs6000_file_start): ..here.
14979 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14980 file scope variables.
14981 (call_ABI_of_interest): New function.
14982 (init_cumulative_args): Set above vars when function return value
14983 is a float, vector, or small struct.
14984 (rs6000_function_arg_advance_1): Likewise for function args.
14985 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14986 references float args.
14987
38528d50
MX
149882011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14989
14990 * doc/cfg.texi: Remove "See" before @ref.
14991 * doc/invoke.texi: Likewise.
14992
f42cf4f4
JM
149932011-03-05 Jason Merrill <jason@redhat.com>
14994
14995 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14996
804a304d
AG
149972011-03-05 Anthony Green <green@moxielogic.com>
14998
14999 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15000
634ee309
ZD
150012011-03-05 Zdenek Dvorak <ook@ucw.cz>
15002
15003 PR rtl-optimization/47899
15004 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15005 to flow_loop_nested_p when moving the loop upward.
15006
6fe471c8
RE
150072011-03-05 Richard Earnshaw <rearnsha@arm.com>
15008
15009 PR target/47719
15010 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15011
cc58ceee
JJ
150122011-03-05 Jakub Jelinek <jakub@redhat.com>
15013
15014 PR tree-optimization/47967
15015 * ipa-cp.c (build_const_val): Return NULL instead of creating
15016 VIEW_CONVERT_EXPR for mismatching sizes.
15017 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15018 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15019 give up on versioning.
15020
ea868305
AM
150212011-03-05 Alan Modra <amodra@gmail.com>
15022
15023 PR target/47986
15024 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15025 full cmodel medium/large lo_sum + high addresses.
15026
bc6ce334
AK
150272011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15028
15029 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15030 pool references in UNSPEC_LTREL_OFFSET.
15031
87e7b310
JH
150322011-03-04 Jan Hubicka <jh@suse.cz>
15033
15034 PR lto/47497
15035 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15036 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
15037 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15038 Add node pointers.
87e7b310
JH
15039 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15040 cgraph_add_thunk): Add node pointers.
15041 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15042 associated to right node.
15043 (input_node): Update use of cgraph_same_body_alias
15044 and cgraph_add_thunk.
15045
d9c64246
CF
150462011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15047
15048 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
15049 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15050 modes when the flag -mprefer-avx128 is on.
d9c64246 15051
08707076
RS
150522011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15053
15054 * dwarf2out.c (compare_loc_operands): Fix address handling.
15055
52517c81
AM
150562011-03-04 Alan Modra <amodra@gmail.com>
15057
15058 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15059
b147c5b9
RG
150602011-03-04 Richard Guenther <rguenther@suse.de>
15061
15062 PR middle-end/47968
15063 * expmed.c (extract_bit_field_1): Prefer vector modes that
15064 vec_extract patterns can handle.
15065
8750672f
RG
150662011-03-04 Richard Guenther <rguenther@suse.de>
15067
15068 PR middle-end/47975
15069 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15070
9eac0f2a
RH
150712011-03-04 Richard Henderson <rth@redhat.com>
15072
15073 * explow.c (emit_stack_save): Remove 'after' parameter.
15074 (emit_stack_restore): Likewise.
15075 * expr.h: Update to match.
15076 * builtins.c, calls.c, stmt.c: Likewise.
15077 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15078 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15079 * function.c (expand_function_end): Insert the emit_stack_save
15080 sequence before parm_birth_insn instead of after.
15081
dfee1406
UB
150822011-03-03 Uros Bizjak <ubizjak@gmail.com>
15083
15084 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15085 (ssse3_pmaddubsw128): Ditto.
15086 (ssse3_pmaddubsw): Ditto.
15087
f1d4c3de
SE
150882011-03-03 Steve Ellcey <sje@cup.hp.com>
15089
15090 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15091
71f3a3f5
JJ
150922011-03-03 Jakub Jelinek <jakub@redhat.com>
15093
423ed416
JJ
15094 PR c/47963
15095 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15096 on TYPE_SIZE_UNIT if it is a DECL.
15097
71f3a3f5
JJ
15098 PR debug/47283
15099 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15100 first operand is not is_gimple_mem_ref_addr, try to fold it.
15101 If the operand still isn't is_gimple_mem_ref_addr, clear
15102 MEM_EXPR on op0.
15103
4b1a5c0d
RG
151042011-03-03 Richard Guenther <rguenther@suse.de>
15105
15106 PR middle-end/47283
15107 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15108 match comment.
15109 (refs_may_alias_p_1): For release branches return true if
15110 we are confused by our input.
15111
b46616fd
AK
151122011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15113
15114 * config/s390/s390.c (s390_function_value): Rename to ...
15115 (s390_function_and_libcall_value): ... this.
15116 (s390_function_value): New function.
15117 (s390_libcall_value): New function.
dfee1406 15118 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
15119 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15120 target macro definitions.
15121 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15122
46d8fabb
JM
151232011-03-02 Joseph Myers <joseph@codesourcery.com>
15124
15125 * config/i386/freebsd64.h (CC1_SPEC): Define.
15126 * config/i386/linux64.h (CC1_SPEC): Define.
15127 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15128
6b1ce545
AS
151292011-03-02 Anatoly Sokolov <aesok@post.ru>
15130
15131 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15132 Remove.
15133 * config/stormy16/stormy16.c: Include reload.h.
15134 (xstormy16_memory_move_cost): New function.
15135 (TARGET_MEMORY_MOVE_COST): Define.
15136
34161e98
RS
151372011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15138
15139 PR rtl-optimization/47925
15140 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15141 with side effects. Remove the more-specific check for volatile asms.
15142
f60a97cf
AM
151432011-03-02 Alan Modra <amodra@gmail.com>
15144
15145 PR target/47935
15146 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15147 toc relative addresses for valid offsets.
15148
f2ca11ca
RG
151492011-03-01 Richard Guenther <rguenther@suse.de>
15150
15151 PR tree-optimization/47890
15152 * tree-vect-loop.c (get_initial_def_for_induction): Set
15153 related stmt properly.
15154
7a00d9ea
RG
151552011-03-01 Richard Guenther <rguenther@suse.de>
15156
15157 PR lto/47924
15158 * lto-streamer.c (lto_record_common_node): Also register
15159 the canonical type.
15160
06c7edcc
RG
151612011-03-01 Richard Guenther <rguenther@suse.de>
15162
15163 PR lto/46911
15164 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15165 Do not stream DECL_ABSTRACT_ORIGIN.
15166 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15167 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15168 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15169 Do not stream DECL_ABSTRACT_ORIGIN.
15170 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15171 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15172
998871e9
AS
151732011-02-28 Anatoly Sokolov <aesok@post.ru>
15174
15175 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15176 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 15177 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
15178 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15179 Add 'outgoing' argument.
15180 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15181 function.
15182 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15183 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15184
94369251
KT
151852011-02-28 Kai Tietz <kai.tietz@onevision.com>
15186
15187 PR debug/28047
15188 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15189 (lookup_filename): Likewise.
b2e2ea67 15190 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 15191
80a832cd
JJ
151922011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15193 Jakub Jelinek <jakub@redhat.com>
15194
15195 PR middle-end/47893
15196 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15197 (assign_stack_local_1): Change last argument type to int.
15198 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15199 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 15200 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
15201 (assign_stack_local): Adjust caller.
15202 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15203 of assign_stack_local, pass 0 as last argument.
15204 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15205 callers.
15206
1b500976
JJ
152072011-02-28 Jakub Jelinek <jakub@redhat.com>
15208
f61c6f34
JJ
15209 PR debug/47283
15210 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15211 Use target address_mode and pointer_mode hooks instead of hardcoded
15212 Pmode and ptr_mode. Handle some simple cases of extending if
15213 POINTERS_EXTEND_UNSIGNED < 0.
15214 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15215 Call convert_debug_memory_address.
15216 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15217 convert_debug_memory_address.
15218
1b500976
JJ
15219 PR middle-end/46790
15220 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15221 * configure: Regenerated.
15222 * config.in: Regenerated.
15223 * varasm.c (default_function_section): Return NULL
b2e2ea67 15224 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 15225
2f2935b6
MJ
152262011-02-28 Martin Jambor <mjambor@suse.cz>
15227
15228 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15229 the description to match the printed values.
15230
474086eb
RG
152312011-02-28 Richard Guenther <rguenther@suse.de>
15232
15233 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15234 of the copied scope tree.
15235
15bf6f3a
RW
152362011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15237
15238 * doc/extend.texi (Function Attributes): Avoid deeply (and
15239 wrongly) nested tables.
15240
f6b439c9
JJ
152412011-02-27 Jakub Jelinek <jakub@redhat.com>
15242
15243 PR middle-end/47903
15244 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15245 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15246 r isn't op0 nor op1.
15247
1d8ca2c7
GJL
152482011-02-23 Georg-Johann Lay <avr@gjlay.de>
15249
15250 * config/avr/avr.md: Remove magic comment for emacs.
15251
593fca4b
GJL
152522011-02-23 Georg-Johann Lay <avr@gjlay.de>
15253
15254 PR target/45261
15255 * config/avr/avr.c (avr_option_override): Use error on bad options.
15256 (avr_help): New function.
15257 (TARGET_HELP): Define.
15258
6609216e
GJL
152592011-02-22 Georg-Johann Lay <avr@gjlay.de>
15260
15261 PR target/42240
15262 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15263 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15264
03d458af
GP
152652011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15266
15267 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15268 (ARM Options): Ditto.
15269 (i386 and x86-64 Options): Ditto.
15270 (RX Options): Ditto.
15271 (SPARC Options): Ditto.
15272
1c379b78
TC
152732011-02-26 Tijl Coosemans <tijl@coosemans.org>
15274
15275 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15276 FreeBSD 6 and later. Generally use cpu generic.
15277
d5ed058c 152782011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 15279
d5ed058c
GP
15280 * doc/cpp.texi: Update copyright years.
15281
509d65dd 152822011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 15283
509d65dd 15284 PR target/46898
308d39cd
SB
15285 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15286
509d65dd 152872011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 15288
509d65dd 15289 PR target/46898
308d39cd
SB
15290 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15291 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15292 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15293 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 15294 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
15295 (gen_int_relational): Move declarations to start of function.
15296
822ba6d7
EB
152972011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15298
15299 PR tree-optimization/45470
15300 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15301 can throw internally only.
15302 * tree-vect-stmts.c (vectorizable_call): Likewise.
15303
ef795fc2
AS
153042011-02-24 Anatoly Sokolov <aesok@post.ru>
15305
15306 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15307 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15308 * config/stormy16/stormy16-protos.h
15309 (xstormy16_preferred_reload_class): Remove.
15310 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15311 static. Change 'rclass' argument and return type to reg_class_t.
15312 (TARGET_PREFERRED_RELOAD_CLASS,
15313 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15314
1c3277ee
RG
153152011-02-24 Richard Guenther <rguenther@suse.de>
15316
15317 * lto-streamer-in.c (input_bb): Do not find referenced vars
15318 in debug statements.
15319
67e18edb
JM
153202011-02-23 Jason Merrill <jason@redhat.com>
15321
15322 * common.opt (fabi-version): Document v5 and v6.
15323
b14fad9d
RG
153242011-02-23 Richard Guenther <rguenther@suse.de>
15325
15326 PR tree-optimization/47849
15327 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15328
7fcf46f5
JZ
153292011-02-23 Jie Zhang <jie@codesourcery.com>
15330
15331 * opts-common.c (decode_cmdline_option): Print empty string
15332 argument as "" in decoded->orig_option_with_args_text.
15333 * gcc.c (execute): Print empty string argument as ""
15334 in the verbose output.
15335 (do_spec_1): Keep empty string argument.
15336
f85b70fd
NF
153372011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15338
15339 * config.gcc: Declare score-* and crx-* obsolete.
15340
b152a615
JZ
153412011-02-23 Jie Zhang <jie@codesourcery.com>
15342
15343 PR rtl-optimization/47763
15344 * web.c (web_main): Ignore naked clobber when replacing register.
15345
bb6e77bc
AS
153462011-02-22 Anatoly Sokolov <aesok@post.ru>
15347
15348 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15349 Remove.
15350
68bf6491
SP
153512011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15352
15353 PR doc/47848
15354 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15355
88ee1fc7
MS
153562011-02-22 Mike Stump <mikestump@comcast.net>
15357
15358 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15359 assembler.
15360 * configure: Regenerate.
15361
6042d1dd
CLT
153622011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15363
15364 PR rtl-optimization/46002
15365 * ira-color.c (update_copy_costs): Change class intersection
15366 test to reg_class_contents[] test of 'hard_regno'.
15367
7de97f9e
JM
153682011-02-21 Joseph Myers <joseph@codesourcery.com>
15369
15370 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15371 than Driver option.
15372 * config/hpux11.opt (mt): Likewise.
15373 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15374 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15375 * config/vax/elf.opt (mno-asm-pic): Likewise.
15376 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15377
d1d46f9f
MS
153782011-02-21 Mike Stump <mikestump@comcast.net>
15379
15380 PR target/47822
15381 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15382 tree so we can get save the type.
15383 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15384 for CFString instead of trying to use past the end of the builtins.
15385 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15386 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15387 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15388 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15389 Rename to darwin_builtin_cfstring.
15390 (darwin_init_cfstring_builtins): Return the built type.
15391
23e0d930
UB
153922011-02-21 Uros Bizjak <ubizjak@gmail.com>
15393
15394 PR target/47840
15395 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15396 (_mm256_insert_epi64): Use _mm_insert_epi64.
15397
192997cf
AS
153982011-02-21 Anatoly Sokolov <aesok@post.ru>
15399
15400 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15401 * config/stormy16/stormy16-protos.h
15402 (xstormy16_mode_dependent_address_p): Remove.
15403 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15404 Make static. Change return type to bool. Change argument type to
15405 const_rtx. Remove dead code.
15406 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15407
e292d003
RG
154082011-02-21 Richard Guenther <rguenther@suse.de>
15409
15410 PR lto/47820
15411 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15412 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15413 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15414 TUs context.
23e0d930 15415 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
15416 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15417
77f846e9
RG
154182011-02-20 Richard Guenther <rguenther@suse.de>
15419
15420 PR lto/47822
15421 * tree.c (free_lang_data_in_decl): Clean builtins from
15422 the TU decl BLOCK_VARS.
23e0d930 15423
b2cddfc8
AO
154242011-02-19 Alexandre Oliva <aoliva@redhat.com>
15425
15426 PR debug/47620
15427 PR debug/47630
15428 * haifa-sched.c (fix_tick_ready): Skip tick computation
15429 for debug insns.
15430
becf4c11
RG
154312011-02-19 Richard Guenther <rguenther@suse.de>
15432
15433 PR lto/47647
15434 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15435 Remove lazy BLOCK_VARS streaming.
15436 (lto_input_ts_block_tree_pointers): Likewise.
15437 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15438
27f98305
JM
154392011-02-19 Joseph Myers <joseph@codesourcery.com>
15440
15441 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15442
064bf3f4
JM
154432011-02-19 Joseph Myers <joseph@codesourcery.com>
15444
15445 * config/i386/biarch32.h, config/i386/mach.h,
15446 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15447
9215ddc3
JJ
154482011-02-19 Jakub Jelinek <jakub@redhat.com>
15449
15450 PR target/47800
15451 * config/i386/i386.md (peephole2 for shift and plus): Use
15452 operands[1] original mode in the first insn.
15453
8b021004
MS
154542011-02-18 Mike Stump <mikestump@comcast.net>
15455
65ded153 15456 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 15457
f84ae14c
JH
154582011-02-18 Jan Hubicka <jh@suse.cz>
15459
15460 PR middle-end/47788
65ded153
EB
15461 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15462 to zero when the function is not inlinable at all.
f84ae14c 15463
eddabc80
JDA
154642011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15465
15466 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15467 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15468 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15469 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15470 * config/pa/t-pa64: Likewise.
15471 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15472
ca3da783
JJ
154732011-02-18 Jakub Jelinek <jakub@redhat.com>
15474
15475 PR driver/47787
15476 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15477
430aa868
JDA
154782011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15479
15480 PR target/47792
15481 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15482
4bf7ff7e
AS
154832011-02-18 Anatoly Sokolov <aesok@post.ru>
15484
15485 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15486 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15487 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15488 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15489 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15490 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15491 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15492 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15493 m32r_legitimate_address_p): New functions.
15494 * config/m32r/constraints.md (constraint "S"): Don't use
15495 STORE_PREINC_PREDEC_P.
15496 (constraint "U"): Don't use LOAD_POSTINC_P.
15497
7efcf910
CLT
154982011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15499
15500 PR rtl-optimization/46178
15501 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15502 compute ira_hard_regno_cover_class[].
15503
237d6259
RG
155042011-02-18 Richard Guenther <rguenther@suse.de>
15505
15506 PR lto/47798
15507 * lto-streamer.h (lto_global_var_decls): Declare.
15508 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15509 statics for global var processing.
15510
12d80acc
RG
155112011-02-18 Richard Guenther <rguenther@suse.de>
15512
15513 PR tree-optimization/47737
15514 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15515 edge dominance check.
15516
abfea58d
JJ
155172011-02-18 Jakub Jelinek <jakub@redhat.com>
15518
15519 PR debug/47780
15520 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15521 avoid invalid rtx sharing.
15522
f73c8882
GP
155232011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15524
15525 * doc/cpp.texi (Obsolete Features): Add background on the
15526 origin of assertions.
15527
d764a8e6
IS
155282011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15529
15530 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 15531 objc_abi == 2.
d764a8e6
IS
15532 * config/darwin.c (output_objc_section_asm_op): Added support for
15533 ABI v1 and v2.
15534 (is_objc_metadata): New.
15535 (darwin_objc2_section): New.
15536 (darwin_objc1_section): New.
15537 (machopic_select_section): Added support for ABI v1 and v2.
15538 (darwin_emit_objc_zeroed): New.
15539 (darwin_output_aligned_bss): Detect objc metadata and treat it
15540 appropriately.
15541 (darwin_asm_output_aligned_decl_common): Same.
15542 (darwin_asm_output_aligned_decl_local): Same.
15543 * config/darwin-sections.def: Updated for ABI v1 and v2.
15544 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15545 compiling Objective-C code for the NeXT runtime, default to using
15546 ABI version 0 for 32-bit, and version 2 for 64-bit.
15547
0a8134ca
JM
155482011-02-17 Joseph Myers <joseph@codesourcery.com>
15549
15550 * common.opt (optimize_fast): New Variable.
15551 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15552 instead of local variable ofast.
15553
0a256240
NP
155542011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15555
15556 * doc/invoke.texi (fobjc-abi-version): Documented.
15557 (fobjc-nilcheck): Documented.
15558 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15559 version.
15560
fa381cb2
JM
155612011-02-17 Joseph Myers <joseph@codesourcery.com>
15562
15563 PR driver/47390
15564 * common.opt (export-dynamic): New Driver option.
15565 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15566
5437eaa6
JM
155672011-02-17 Joseph Myers <joseph@codesourcery.com>
15568
15569 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15570
bb7e6d55
AO
155712011-02-17 Alexandre Oliva <aoliva@redhat.com>
15572 Jan Hubicka <jh@suse.cz>
15573
15574 PR debug/47106
15575 PR debug/47402
15576 * cfgexpand.c (account_used_vars_for_block): Remove.
15577 (estimated_stack_frame_size): Use referenced vars.
15578 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15579 that were referenced in the original function. Test src_fn
15580 rather than cfun. Drop redundant get_var_ann.
15581 (setup_one_parameter): Drop redundant get_var_ann.
15582 (declare_return_variable): Likewise.
15583 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15584 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15585 * ipa-inline.c (compute_inline_parameters): Do not compute
15586 disregard_inline_limits here.
bb7e6d55
AO
15587 (compute_inlinable_for_current, pass_inlinable): New.
15588 (pass_inline_parameters): Require PROP_referenced_vars.
15589 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 15590 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
15591 (cgraph_analyze_function): Set .disregard_inline_limits.
15592 * tree-sra.c (convert_callers): Compute inliner parameters
15593 only for functions already in SSA form.
15594
f181a8a7
JM
155952011-02-17 Joseph Myers <joseph@codesourcery.com>
15596
15597 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15598 -mlittle-endian-data.
15599
c6869789
JM
156002011-02-17 Joseph Myers <joseph@codesourcery.com>
15601
15602 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15603 -mno-fpu, not -fpu and -no-fpu.
15604 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15605 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15606
fbf4bfd3
UB
156072011-02-17 Uros Bizjak <ubizjak@gmail.com>
15608
15609 PR target/43653
15610 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15611 input reload with PLUS RTX.
15612
70be5dc7
JM
156132011-02-16 Joseph Myers <joseph@codesourcery.com>
15614
15615 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15616 of InverseVar(MDMX).
15617
30b1646e
JM
156182011-02-16 Joseph Myers <joseph@codesourcery.com>
15619
15620 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15621 --m4-340.
15622
ab7b71e9
JM
156232011-02-16 Joseph Myers <joseph@codesourcery.com>
15624
15625 * config/mn10300/mn10300.opt (mno-crt0): New.
15626
466f3f08
JM
156272011-02-16 Joseph Myers <joseph@codesourcery.com>
15628
15629 * config/m68k/uclinux.opt (static-libc): New Driver option.
15630
8226cd7b
JM
156312011-02-16 Joseph Myers <joseph@codesourcery.com>
15632
15633 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15634
45cab1d7
JM
156352011-02-16 Joseph Myers <joseph@codesourcery.com>
15636
15637 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15638 %{muser-extend-enabled}.
15639
65aab64f
RG
156402011-02-16 Richard Guenther <rguenther@suse.de>
15641
15642 PR tree-optimization/47738
15643 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15644 the TODO from tree_predictive_commoning.
15645
fc2fa4fb
JL
156462011-02-15 Jeff Law <law@redhat.com>
15647
15648 Revert
15649 2011-01-25 Jeff Law <law@redhat.com>
15650
15651 PR rtl-optimization/37273
15652 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15653 handle them like argument loads from stack slots. Do not double
15654 count memory for memory constants and argument loads from stack slots.
15655
4e380b8e
L
156562011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15657
15658 PR middle-end/47725
15659 * combine.c (cant_combine_insn_p): Revert the last change.
15660
e3a69bb4
MM
156612011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15662
15663 PR target/47755
15664 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15665 mode for vector constants. Remove code that checks for TImode.
15666
de650422
AO
156672011-02-15 Alexandre Oliva <aoliva@redhat.com>
15668
15669 PR debug/47106
15670 PR debug/47402
15671 * cgraph.h (compute_inline_parameters): Return void.
15672 * ipa-inline.c (compute_inline_parameters): Adjust.
15673
30925d94
AO
156742011-02-15 Alexandre Oliva <aoliva@redhat.com>
15675
15676 PR debug/47106
15677 PR debug/47402
15678 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15679 rather than decl.
15680 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15681 * ipa-inline.c (compute_inline_parameters): Adjust.
15682
1b9a784a
AO
156832011-02-15 Alexandre Oliva <aoliva@redhat.com>
15684
15685 PR debug/47106
15686 PR debug/47402
15687 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15688 Adjust all users. Pass FN to...
15689 * tree-flow-inline.h (first_referenced_var): ... this. Add
15690 fn argument.
15691 * ipa-struct-reorg.c: Adjust.
15692 * tree-dfa.c: Adjust.
15693 * tree-into-ssa.c: Adjust.
15694 * tree-sra.c: Adjust.
15695 * tree-ssa-alias.c: Adjust.
15696 * tree-ssa-live.c: Adjust.
15697 * tree-ssa.c: Adjust.
15698 * tree-ssanames.c: Adjust.
15699 * tree-tailcall.c: Adjust.
15700
27c6b086
AO
157012011-02-15 Alexandre Oliva <aoliva@redhat.com>
15702
15703 PR debug/47106
15704 PR debug/47402
15705 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15706 Adjust all callers.
15707 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15708 * tree-flow-inline.h: Adjust.
15709 * gimple-pretty-print.c: Adjust.
15710 * tree-into-ssa.c: Adjust.
15711 * tree-ssa.c: Adjust.
15712 * cfgexpand.c: Adjust.
15713
679e8183
NF
157142011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15715
fbf4bfd3
UB
15716 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15717 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15718 (EXTRA_CONSTRAINT): Delete.
15719 * config/iq2000/constraints.md: New file.
15720 * config/iq2000/iq2000.md: Include it.
679e8183
NF
15721 (define_insn ""): Delete.
15722 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15723 unsupported constraint letters from patterns.
15724 (call_value, call_value_internal1): Likewise.
15725 (call_value_multiple_internal1): Likewise.
15726
a45d420a
NC
157272011-02-15 Nick Clifton <nickc@redhat.com>
15728
15729 * config/mn10300/mn10300.c: Include tm-constrs.h.
15730 (struct liw_data): New data structure describing an LIW candidate
15731 instruction.
15732 (extract_bundle): Use struct liw_data. Allow small integer
15733 operands for some instructions.
15734 (check_liw_constraints): Use struct liw_data. Remove swapped
15735 parameter. Add comments describing the checks. Fix bug when
15736 assigning the source of liw1 to the source of liw2.
15737 (liw_candidate): Delete. Code moved into extract_bundle.
15738 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15739 before swapping.
15740 * config/mn10300/predicates.md (liw_operand): New predicate.
15741 Allows registers and small integer constants.
15742 * config/mn10300/constraints.md (O): New constraint. Accetps
15743 integers in the range -8 to +7 inclusive.
15744 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15745 for moving a small integer into a register. Give this alternative
15746 LIW attributes.
15747 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15748 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15749 using the J,K,L and M constraints,
15750 (liw): Remove SI mode on second operands to allow for HI and QI
15751 mode values.
15752 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15753 instruction.
15754
8a73faf1
L
157552011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15756
15757 PR middle-end/47725
15758 * combine.c (cant_combine_insn_p): Check zero/sign extended
15759 hard registers.
15760
48feba28
RG
157612011-02-15 Richard Guenther <rguenther@suse.de>
15762
15763 PR tree-optimization/47743
15764 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15765 for a non-type-compatible VN lookup bail out.
15766
ad1c1eeb
NF
157672011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15768
15769 * config/fr30/constraints.md: New file.
15770 * config/fr30/fr30.md: Include it.
15771 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15772 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15773 (EXTRA_CONSTRAINT): Delete.
15774
49ac143d
NF
157752011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15776
15777 * config/frv/constraints.md: New file.
15778 * config/frv/predicates.md: Include it.
15779 * config/frv/frv.c (reg_class_from_letter): Delete.
15780 (frv_option_override): Don't initialize it.
15781 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15782 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15783 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15784 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15785 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15786 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15787 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15788 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15789 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15790 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15791 (REG_CLASS_FROM_CONSTRAINT): Delete.
15792
c95f9494
JJ
157932011-02-15 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR middle-end/47581
15796 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15797 if frame size is 0 in a leaf function.
15798
13aed611
RO
157992011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15800
15801 PR pch/14940
15802 * config/alpha/host-osf.c: New file.
15803 * config/alpha/x-osf: New file.
15804 * config.host (alpha*-dec-osf*): Use it.
15805
b09c3081
AS
158062011-02-14 Anatoly Sokolov <aesok@post.ru>
15807
15808 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15809 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15810 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15811 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15812 type to const_rtx.
15813 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15814
d634083b
NF
158152011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15816
15817 * config/stormy16/constraints.md: New file.
15818 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15819 Use satisfies_constraint_Q and satisfies_constraint_R.
15820 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15821 Delete.
15822 (xstormy16_legitiamte_address_p): Declare.
15823 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15824 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15825 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 15826 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
15827 Un-staticize.
15828 (xstormy16_extra_constraint_p): Delete.
15829
c7dd803e
EB
158302011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15831
15832 PR tree-optimization/46494
15833 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15834 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15835 (pass_rtl_loop_done): Add TODO_verify_flow.
15836 * fwprop.c (pass_rtl_fwprop): Likewise.
15837 * modulo-sched.c (pass_sms): Likewise.
15838 * tree-ssa-dom.c (pass_dominator): Likewise.
15839 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15840 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15841 (pass_tree_loop_done): Likewise.
15842 * tree-ssa-pre.c (execute_pre): Likewise.
15843 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15844 * tree-ssa-sink.c (pass_sink_code): Likewise.
15845 * tree-vrp.c (pass_vrp): Likewise.
15846
c6150df6
NF
158472011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15848
c7dd803e
EB
15849 * config/v850/constraints.md: New file.
15850 * config/v850/v850.md: Include it.
15851 * config/v850/predicates.md (reg_or_0_operand): Use
15852 satisfies_constraint_G.
15853 (special_symbolref_operand): Use satisfies_constraint_K.
15854 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15855 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15856 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15857 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15858 (EXTRA_CONSTRAINT): Delete.
15859 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15860 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15861 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 15862
30dd1ea3
AS
158632011-02-14 Anatoly Sokolov <aesok@post.ru>
15864
15865 PR target/47696
15866 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15867 description.
15868
944f4bb3
NF
158692011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15870
15871 * config/mcore/constraints.md: New file.
15872 * config/mcore/mcore.md: Include it.
15873 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15874 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15875 (REG_CLASS_FROM_LETTER): Delete.
15876 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15877 insn_const_int_ok_for_constraint.
15878 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15879 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15880 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15881 (EXTRA_CONSTRAINT): Delete.
15882
ad56a54c
RO
158832011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15884
15885 PR ada/41929
15886 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15887 (IS_SIGHANDLER): Define.
15888 (sparc64_is_sighandler): New function, split off from
15889 sparc64_fallback_frame_state.
15890 (sparc_is_sighandler): New function, split off from
15891 sparc_fallback_frame_state.
15892 (sparc64_fallback_frame_state): Merge with ...
15893 (sparc_fallback_frame_state): ... this into ...
15894 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
15895 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15896 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15897 stack instead of hardcoded offsets.
ad56a54c 15898
fbf4bfd3 158992011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
15900
15901 PR target/45808
15902 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15903
029c8f3e
RW
159042011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15905
15906 * configure: Regenerate.
15907
a016dc83
JM
159082011-02-12 Joseph Myers <joseph@codesourcery.com>
15909
15910 PR driver/45731
15911 * gcc.c (asm_options): Correct spec matching --target-help.
15912
8957a0ec
MJ
159132011-02-12 Martin Jambor <mjambor@suse.cz>
15914
15915 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15916 to gimple call error.
15917
6ef828bc
MS
159182011-02-12 Mike Stump <mikestump@comcast.net>
15919
15920 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15921 comments in backslash regions.
15922
a4015be5
MS
159232011-02-12 Mike Stump <mikestump@comcast.net>
15924 Jakub Jelinek <jakub@redhat.com>
15925 Iain Sandoe <iains@gcc.gnu.org>
15926
15927 PR target/47324
15928 * dwarf2out.c (output_cfa_loc): When required, apply the
15929 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15930 (output_loc_sequence): Likewise.
15931 (output_loc_operands_raw): Likewise.
15932 (output_loc_sequence_raw): Likewise.
15933 (output_cfa_loc): Likewise.
15934 (output_loc_list): Suppress register number adjustment when
15935 calling output_loc_sequence()
15936 (output_die): Likewise.
15937
5378dda2
AS
159382011-02-12 Anatoly Sokolov <aesok@post.ru>
15939
15940 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15941 Remove macros.
15942 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15943 xtensa_memory_move_cost): New functions.
15944 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15945
f3d533d3
AO
159462011-02-12 Alexandre Oliva <aoliva@redhat.com>
15947
15948 PR lto/47225
15949 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15950 in the current directory.
15951 * configure: Rebuilt.
15952
9d53403c
IS
159532011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15954
15955 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 15956 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
15957 correct indents of the preceding block.
15958
a350a6c8
IS
159592011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15960
15961 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15962 the switch.
15963
bab79a40
JM
159642011-02-11 Joseph Myers <joseph@codesourcery.com>
15965
15966 * common.opt (nostartfiles): New Driver option.
15967
1bbc6693
XDL
159682011-02-11 Xinliang David Li <davidxl@google.com>
15969
15970 PR tree-optimization/47707
15971 * tree-chrec.c (convert_affine_scev): Keep type precision.
15972
1da7d8c0
EB
159732011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15974
15975 PR tree-optimization/47420
15976 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15977
159782011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
15979
15980 PR rtl-optimization/47614
15981 * rtl.h (check_for_inc_dec): Declare.
15982 * dse.c (check_for_inc_dec): Externalize...
15983 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15984 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15985
4df47bca
JM
159862011-02-11 Joseph Myers <joseph@codesourcery.com>
15987
15988 PR driver/47678
15989 * gcc.c (main): Do not compile inputs if there were errors in
15990 option handling.
15991 * opts-common.c (read_cmdline_option): Check for wrong language
15992 after other error checks.
15993
61502ca8
NF
159942011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15995
15996 * cgraph.c: Fix comment typos.
15997 * cgraph.h: Likewise.
15998 * cgraphunit.c: Likewise.
15999 * ipa-cp.c: Likewise.
16000 * ipa-inline.c: Likewise.
16001 * ipa-prop.c: Likewise.
16002 * ipa-pure-const.c: Likewise.
16003 * ipa-ref.c: Likewise.
16004 * ipa-reference.c: Likewise.
16005
b63f974e
JJ
160062011-02-11 Jakub Jelinek <jakub@redhat.com>
16007
d50c5e0c
JJ
16008 PR debug/47684
16009 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 16010
6dd2a13c
RO
160112011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16012
16013 PR testsuite/47400
16014 * doc/sourcebuild.texi (Require Support): Document
16015 dg-require-ascii-locale.
16016
4a087ccf
MX
160172011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16018
16019 * doc/lto.texi (Write summary): Fix missing parentheses.
16020
a4403164
DD
160212011-02-10 DJ Delorie <dj@redhat.com>
16022
16023 * config/m32c/m32c.c (m32c_option_override): Disable
16024 -fcombine-stack-adjustments until flag value tracking and compare
16025 optimization can be rewritten.
16026
4fac45bd
PB
160272011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16028
16029 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16030 PROCESSOR_POWER7.
16031 (PROCESSOR_DEFAULT64): Likewise.
16032
72602cd1
RH
160332011-02-10 Richard Henderson <rth@redhat.com>
16034
16035 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16036 change from 2011-02-03.
16037 * config/rx/rx.c (flags_from_code): Likewise.
16038 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16039 is valid, n/pz otherwise.
16040 (rx_select_cc_mode): Return CCmode if Y is not zero.
16041
ea57f573
RG
160422011-02-10 Richard Guenther <rguenther@suse.de>
16043
ea4c3e65 16044 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 16045
92b1d23b
RG
160462011-02-10 Richard Guenther <rguenther@suse.de>
16047
16048 PR tree-optimization/47677
16049 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16050
525a2d06
JJ
160512011-02-10 Jakub Jelinek <jakub@redhat.com>
16052
16053 PR target/47665
16054 * combine.c (make_compound_operation): Only change shifts into
16055 multiplication for SCALAR_INT_MODE_P.
16056
06c969bd
JZ
160572011-02-10 Jie Zhang <jie@codesourcery.com>
16058
16059 PR testsuite/47622
16060 Revert
16061 2011-02-05 Jie Zhang <jie@codesourcery.com>
16062 PR debug/42631
16063 * web.c (entry_register): Don't clobber the number of the
16064 first uninitialized reference in used[].
16065
282ec48e
RG
160662011-02-09 Richard Guenther <rguenther@suse.de>
16067
16068 PR tree-optimization/47664
16069 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16070 all edges again.
16071
df98c3e8
DE
160722011-02-09 David Edelsohn <dje.gcc@gmail.com>
16073
d0f21cd6
DE
16074 PR target/46481
16075 PR target/47032
df98c3e8
DE
16076 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16077 PROCESSOR_POWER7.
16078 (PROCESSOR_DEFAULT64): Same.
16079 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16080
67b6839f
RO
160812011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16082
16083 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16084
4fd73214
MJ
160852011-02-09 Martin Jambor <mjambor@suse.cz>
16086
16087 PR middle-end/45505
16088 * tree-sra.c (struct access): New flags grp_scalar_read and
16089 grp_scalar_write. Changed description of assignment read and write
16090 flags.
16091 (dump_access): Dump new flags, reorder all of them.
16092 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16093 to detect multiple scalar reads.
16094 (analyze_access_subtree): Use the new scalar read write flags instead
16095 of the old flags. Adjusted comments.
16096
91140cd3
DD
160972011-02-08 DJ Delorie <dj@redhat.com>
16098
16099 PR target/47548
16100 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16101 patterns.
16102
4254bbfe
JM
161032011-02-08 Joseph Myers <joseph@codesourcery.com>
16104
16105 * config/m68k/uclinux.opt: New.
16106 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16107
f1fda84e
JM
161082011-02-08 Joseph Myers <joseph@codesourcery.com>
16109
16110 * config/cris/elf.opt (sim): New Driver option.
16111
4933ae74
JM
161122011-02-08 Joseph Myers <joseph@codesourcery.com>
16113
16114 * config/xtensa/elf.opt: New.
16115 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16116
4ad70280
JM
161172011-02-08 Joseph Myers <joseph@codesourcery.com>
16118
16119 * config/vax/elf.opt: New.
16120 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16121
20893707
JM
161222011-02-08 Joseph Myers <joseph@codesourcery.com>
16123
16124 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16125
b8e7038e
JM
161262011-02-08 Joseph Myers <joseph@codesourcery.com>
16127
16128 * config/gnu-user.opt: New.
16129 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16130 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16131 *-*-uclinux*): Use gnu-user.opt.
16132
e1c5225a
TS
161332011-02-08 Thomas Schwinge <thomas@schwinge.name>
16134
16135 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16136 * config/i386/gnu.h (CPP_SPEC): Likewise.
16137
5e46b0c6
ILT
161382011-02-08 Ian Lance Taylor <iant@google.com>
16139
16140 * common.opt (fcx-limited-range): Add SetByCombined flag.
16141 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16142 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16143 (fassociative-math, freciprocal-math): Likewise.
16144 (funsafe-math-optimizations): Likewise.
16145 * opth-gen.awk: Handle SetByCombined.
16146 * optc-gen.awk: Likewise.
ea4c3e65 16147 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
16148 (set_unsafe_math_optimizations_flags): Likewise.
16149 * doc/options.texi (Option properties): Document SetByCombined.
16150
32243d46
JM
161512011-02-08 Joseph Myers <joseph@codesourcery.com>
16152
16153 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16154 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16155 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16156 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16157 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16158
479c1fb3
SP
161592011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16160
16161 PR tree-optimization/46834
16162 PR tree-optimization/46994
16163 PR tree-optimization/46995
16164 * graphite-sese-to-poly.c (used_outside_reduction): New.
16165 (detect_commutative_reduction): Call used_outside_reduction.
16166 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16167 translate_scalar_reduction_to_array only when at least one
16168 loop-phi/close-phi tuple has been detected.
16169
3865a06f
RG
161702011-02-08 Richard Guenther <rguenther@suse.de>
16171
16172 PR middle-end/47639
16173 * tree-vect-generic.c (expand_vector_operations_1): Update
16174 stmts here ...
16175 (expand_vector_operations): ... not here. Cleanup EH info
16176 and the CFG if required.
16177
62902f3f
RG
161782011-02-08 Richard Guenther <rguenther@suse.de>
16179
16180 PR tree-optimization/47641
16181 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16182 require type compatibility.
16183
0efb9d64
AK
161842011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16185
16186 * gimple-low.c (lower_function_body): Don't remove the location of
16187 the return statement here.
16188 (lower_gimple_return): Do it here instead but only if the return
16189 statement is actually used twice.
16190
034b8ae4
RG
161912011-02-08 Richard Guenther <rguenther@suse.de>
16192
16193 PR tree-optimization/47632
16194 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16195 unused up_to_stmt parameter, return whether cfg-cleanup is
16196 necessary, remove EH info properly.
16197 (forward_propagate_into_gimple_cond): Adjust caller.
16198 (forward_propagate_into_cond): Likewise.
16199 (forward_propagate_comparison): Likewise.
16200 (tree_ssa_forward_propagate_single_use_vars): Make
16201 forward_propagate_comparison case similar to the two others.
16202
298362c8
NC
162032011-02-08 Nick Clifton <nickc@redhat.com>
16204
16205 * config/mn10300/mn10300.opt (mliw): New command line option.
16206 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16207 (liw_bundling): New automaton.
16208 (liw): New attribute.
16209 (liw_op): New attribute.
16210 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16211 (movsi_internal): Add LIW attributes.
16212 (andsi3): Likewise.
16213 (iorsi3): Likewise.
16214 (xorsi3): Likewise.
16215 (addsi3): Separate register and immediate alternatives.
16216 Add LIW attributes.
16217 (subsi3): Likewise.
16218 (cmpsi): Likewise.
16219 (aslsi3): Likewise.
16220 (lshrsi3): Likewise.
16221 (ashrsi3): Likewise.
16222 (liw): New pattern.
16223 * config/mn10300/mn10300.c (liw_op_names): New
16224 (mn10300_print_operand): Handle 'W' operand descriptor.
16225 (extract_bundle): New function.
16226 (check_liw_constraints): New function.
16227 (liw_candidate): New function.
16228 (mn10300_bundle_liw): New function.
16229 (mn10300_reorg): New function.
16230 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16231 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16232 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16233 __LIW__ or __NO_LIW__.
16234 * doc/invoke.texi: Describe the -mliw command line option.
16235
90488014
JDA
162362011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16237
16238 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16239 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16240 pthread_mutex_unlock): Remove.
16241 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16242 * config/pa/t-pa64: Likewise.
16243 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16244 shared libc if not linking against libpthread.
16245 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16246
689ff841
IS
162472011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16248
16249 PR target/47558
16250 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16251 on 10.6 and later to ensure that we always use the unwinder from
16252 the system. Only add -no_compact_unwind when tarteting darwin
16253 10.6 or later.
16254
821014aa
SE
162552011-02-07 Steve Ellcey <sje@cup.hp.com>
16256
16257 PR target/46997
16258 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16259 (vec_interleave_lowv2sf): Ditto.
16260 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16261 (vec_extract_oddv2sf): Ditto.
16262
41cf94fb
MS
162632011-02-07 Mike Stump <mikestump@comcast.net>
16264
62dea57d 16265 PR target/42333
41cf94fb
MS
16266 Add __ieee_divdc3 entry point.
16267 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16268 entry point.
16269 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16270 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16271 * config/darwin.c (darwin_rename_builtins): Add.
16272 * config/darwin-protos.h (darwin_rename_builtins): Add.
16273
ee09a3dd
MM
162742011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16275
16276 PR target/47636
16277 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16278 for the condition.
16279
83296cd0
MS
162802011-02-07 Mike Stump <mikestump@comcast.net>
16281
ea4c3e65 16282 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 16283
0f4e946f
DC
162842011-02-07 Denis Chertykov <chertykov@gmail.com>
16285
16286 PR target/47534
16287 * config/avr/libgcc.S (exit): Move .endfunc
16288
1ec87690
RG
162892011-02-07 Richard Guenther <rguenther@suse.de>
16290
16291 PR tree-optimization/47615
16292 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16293 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16294 (run_scc_vn): Initialize it.
16295 (visit_reference_op_load): Use it.
16296 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16297
b46ae6da
UW
162982011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16299
16300 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16301 DImode trapping arithmetic libfuncs.
16302
c0aae19c
RG
163032011-02-07 Richard Guenther <rguenther@suse.de>
16304
16305 PR tree-optimization/47621
16306 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16307 two duplicates ...
16308 (execute_update_addresses_taken): ... here. Make it more
16309 conservative in what we accept.
16310
295d926b
JM
163112011-02-06 Joseph Myers <joseph@codesourcery.com>
16312
16313 * config/sparc/freebsd.h (ASM_SPEC): Define.
16314 * config/sparc/vxworks.h (ASM_SPEC): Define.
16315
bdeb2471
JM
163162011-02-06 Joseph Myers <joseph@codesourcery.com>
16317
16318 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16319
d5d3781a
SB
163202011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16321
16322 * doc/invoke.texi: Remove reference to compiler internals from
16323 user documentation.
16324
16325 * reg-notes.def: Remove REG_VALUE_PROFILE.
16326 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16327
c42c09fc
JJ
163282011-02-05 Jakub Jelinek <jakub@redhat.com>
16329
16330 PR middle-end/47610
16331 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 16332 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 16333
beea2755
JZ
163342011-02-05 Jie Zhang <jie@codesourcery.com>
16335
16336 PR debug/42631
16337 * web.c (entry_register): Don't clobber the number of the
16338 first uninitialized reference in used[].
16339
a130584a
SP
163402011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16341
16342 PR tree-optimization/46194
16343 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16344 (build_classic_dist_vector_1): Do not represent classic distance
16345 vectors when the access functions are variating in different loops.
16346
962101ac
JM
163472011-02-04 Joseph Myers <joseph@codesourcery.com>
16348
16349 * config/mips/iris6.opt: New.
16350 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16351
55eaaa5b
RH
163522011-02-04 Richard Henderson <rth@redhat.com>
16353 Steve Ellcey <sje@cup.hp.com>
16354
16355 PR target/46997
16356 * config/ia64/predicates.md (mux1_brcst_element): New.
16357 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16358 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16359 (ia64_unpack_sign): New.
16360 (ia64_expand_unpack): Rewrite using new routines.
16361 (ia64_expand_widen_sum): Ditto.
16362 (ia64_expand_dot_prod_v8qi): Ditto.
16363 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16364 routines, add endian check.
16365 (pmpy2_even): Rename from pmpy2_r, add endian check.
16366 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16367 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16368 (vec_widen_smult_hi_v4hi): Ditto.
16369 (vec_widen_umult_lo_v4hi): Ditto.
16370 (vec_widen_umult_hi_v4hi): Ditto.
16371 (mulv2si3): Change endian checks.
16372 (sdot_prodv4hi): Rewrite with new calls.
16373 (udot_prodv4hi): New.
16374 (vec_pack_ssat_v4hi): Add endian check.
16375 (vec_pack_usat_v4hi): Ditto.
16376 (vec_pack_ssat_v2si): Ditto.
16377 (max1_even): Rename from max1_r, add endian check.
16378 (max1_odd): Rename from max1_l, add endian check.
16379 (*mux1_rev): Format change.
16380 (*mux1_mix): Ditto.
16381 (*mux1_shuf): Ditto.
16382 (*mux1_alt): Ditto.
16383 (*mux1_brcst_v8qi): Use new predicate.
16384 (vec_extract_evenv8qi): Remove endian check.
16385 (vec_extract_oddv8qi): Ditto.
16386 (vec_interleave_lowv4hi): Format change.
16387 (vec_interleave_highv4hi): Ditto.
16388 (mix2_even): Rename from mix2_r, add endian check.
16389 (mix2_odd): Rename from mux2_l, add endian check.
16390 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16391 (vec_extract_evenodd_helper): Format change.
16392 (vec_extract_evenv4hi): Remove endian check.
16393 (vec_extract_oddv4hi): Remove endian check.
16394 (vec_interleave_lowv2si): Format change.
16395 (vec_interleave_highv2si): Format change.
16396 (vec_initv2si): Remove endian check.
16397 (vecinit_v2si): Add endian check.
16398 (reduc_splus_v2sf): Add endian check.
16399 (reduc_smax_v2sf): Ditto.
16400 (reduc_smin_v2sf): Ditto.
16401 (vec_initv2sf): Remove endian check.
16402 (fpack): Add endian check.
16403 (fswap): Add endian check.
16404 (vec_interleave_highv2sf): Add endian check.
16405 (vec_interleave_lowv2sf): Add endian check.
16406 (fmix_lr): Add endian check.
16407 (vec_setv2sf): Format change.
16408 (*vec_extractv2sf_0_be): Use shift to extract operand.
16409 (*vec_extractv2sf_1_be): New.
16410 (vec_pack_trunc_v4hi): Add endian check.
16411 (vec_pack_trunc_v2si): Format change.
16412
dcde5957
JJ
164132011-02-04 Jakub Jelinek <jakub@redhat.com>
16414
16415 PR inline-asm/23200
16416 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 16417 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
16418 (stmt_is_replaceable_p): New function.
16419 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16420 callers.
16421 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16422 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16423 SSA_NAME_DEF_STMT.
16424 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16425
a64a8e5a
JM
164262011-02-04 Joseph Myers <joseph@codesourcery.com>
16427
16428 * config/rs6000/xilinx.opt: New.
16429 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16430
4da2ed2f
JM
164312011-02-04 Joseph Myers <joseph@codesourcery.com>
16432
16433 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16434
a6e508f9
AS
164352011-02-03 Anatoly Sokolov <aesok@post.ru>
16436
16437 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16438 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16439 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16440 secondary_reload_info, xtensa_secondary_reload): Remove.
16441 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16442 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16443 (xtensa_preferred_reload_class): Make static. Change return and
16444 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16445 Use CONST_DOUBLE_P predicate.
16446 (xtensa_preferred_output_reload_class): New function.
16447 (xtensa_secondary_reload): Make static.
16448
82dc0de3
JM
164492011-02-03 Joseph Myers <joseph@codesourcery.com>
16450
16451 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16452 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16453 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16454
7fece979
JJ
164552011-02-03 Jakub Jelinek <jakub@redhat.com>
16456
16457 PR middle-end/31490
16458 * output.h (SECTION_RELRO): Define.
16459 (SECTION_MACH_DEP): Adjust.
16460 (get_variable_section): New prototype.
16461 * varpool.c (varpool_finalize_named_section_flags): New function.
16462 (varpool_assemble_pending_decls): Call it.
16463 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16464 * cgraphunit.c (cgraph_output_in_order): Call
16465 varpool_finalize_named_section_flags.
16466 * varasm.c (get_section): Allow section flags conflicts between
16467 relro and read-only sections if the section hasn't been declared yet.
16468 Set SECTION_OVERRIDE after diagnosing section type conflict.
16469 (get_variable_section): No longer static.
16470 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16471 readonly sections that need relocations.
16472 (decl_readonly_section_1): New function.
16473 (decl_readonly_section): Use it.
16474
16475 Revert:
509d65dd 16476 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
16477 Steve Ellcey <sje@cup.hp.com>
16478
16479 PR middle-end/31490
16480 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16481 if section attribute used.
16482
d18d5478
JJ
164832011-02-03 Jakub Jelinek <jakub@redhat.com>
16484
16485 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16486 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16487 (darwin_init_sections): Remove assertion.
16488
6479ed4b
NC
164892011-02-03 Nick Clifton <nickc@redhat.com>
16490
16491 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16492 lt and ge.
38be4072 16493 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
16494 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16495 instead of "n" and "pz".
16496 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16497 CC_FLAG_S.
16498
89843f5d
JJ
164992011-02-03 Jakub Jelinek <jakub@redhat.com>
16500
65450d64
JJ
16501 PR target/47312
16502 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16503 fma, expand FMA_EXPR as fma{,f,l} call.
16504
7d58701c
JJ
16505 PR lto/47274
16506 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16507 copy them into a unsigned char variable and pass address of it to
16508 lto_output_data_stream.
16509
89843f5d
JJ
16510 PR target/47564
16511 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16512 around backend_init_target and lang_dependent_init_target calls.
16513 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16514 (verify_cgraph_node): Don't call set_cfun here. Use
16515 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16516 Set error_found for incorrectly represented calls to thunks.
16517
4deef538
AO
165182011-02-03 Alexandre Oliva <aoliva@redhat.com>
16519
16520 PR debug/43092
16521 PR rtl-optimization/43494
16522 * rtl.h (for_each_inc_dec_fn): New type.
16523 (for_each_inc_dec): Declare.
16524 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16525 (for_each_inc_dec_find_inc_dec): New fn.
16526 (for_each_inc_dec_find_mem): New fn.
16527 (for_each_inc_dec): New fn.
16528 * dse.c (struct insn_size): Remove.
16529 (replace_inc_dec, replace_inc_dec_mem): Remove.
16530 (emit_inc_dec_insn_before): New fn.
16531 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16532 (canon_address): Pass mem modes to cselib_lookup.
16533 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16534 (cselib_lookup_from_insn): Likewise.
16535 (cselib_subst_to_values): Likewise.
16536 * cselib.c (find_slot_memmode): New var.
16537 (cselib_find_slot): New fn. Use it instead of
16538 htab_find_slot_with_hash everywhere.
16539 (entry_and_rtx_equal_p): Use find_slot_memmode.
16540 (autoinc_split): New fn.
16541 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16542 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16543 Deal with autoinc. Special-case recursion into MEMs.
16544 (cselib_hash_rtx): Likewise.
16545 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16546 address and MEM modes.
16547 (cselib_subst_to_values): Add memmode, pass it on.
16548 Deal with autoinc.
16549 (cselib_lookup): Add memmode argument, pass it on.
16550 (cselib_lookup_from_insn): Add memmode.
16551 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16552 (struct cselib_record_autoinc_data): New.
16553 (cselib_record_autoinc_cb): New fn.
16554 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16555 mode to cselib_lookup. Reset autoinced REGs here instead of...
16556 (cselib_process_insn): ... here.
16557 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16558 to cselib_lookup.
16559 (add_uses): Likewise, also to cselib_subst_to_values.
16560 (add_stores): Likewise.
16561 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16562 cselib_subst_to_values.
16563 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16564 * gcse.c (do_local_cprop): Adjusted.
16565 * postreload.c (reload_cse_simplify_set): Adjusted.
16566 (reload_cse_simplify_operands): Adjusted.
16567 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16568
1551d44a
AO
165692011-02-03 Alexandre Oliva <aoliva@redhat.com>
16570
16571 PR tree-optimization/45122
16572 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16573 unsafe assumptions when there's more than one loop exit.
16574
c9485473
MM
165752011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16576
16577 PR target/47272
16578 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16579 Document using vector double with the load/store builtins, and
16580 that the load/store builtins always use Altivec instructions.
16581
16582 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16583 to use altivec memory instructions, even on VSX.
16584 (vector_altivec_store_<mode>): Ditto.
16585
16586 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16587 function.
16588
16589 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16590 V2DF, V2DI support to load/store overloaded builtins.
16591
16592 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16593 altivec load/store builtins for V2DF/V2DI types.
16594
16595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16596 set avoid indexed addresses on power6 if -maltivec.
16597 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16598 vector_altivec_load/vector_altivec_store builtins.
16599 (altivec_expand_st_builtin): Ditto.
16600 (altivec_expand_builtin): Add VSX memory builtins.
16601 (rs6000_init_builtins): Add V2DI types to internal types.
16602 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16603 load/store builtins.
16604 (rs6000_address_for_altivec): Insure memory address is appropriate
16605 for Altivec.
16606
16607 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16608 vec_vsx_ld and vec_vsx_st.
16609 (vsx_store_<mode>): Ditto.
16610
16611 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16612 variables to hold long long types for VSX vector memory builtins.
16613 (RS6000_BTI_unsigned_long_long): Ditto.
16614 (long_long_integer_type_internal_node): Ditti.
16615 (long_long_unsigned_type_internal_node): Ditti.
16616
16617 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16618 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16619 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16620
16621 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16622 short cuts.
16623 (vec_vsx_st): Ditto.
16624
b24d1acf
JM
166252011-02-02 Joseph Myers <joseph@codesourcery.com>
16626
16627 * config/pa/pa-hpux10.opt: New.
16628 * config/hpux11.opt (pthread): New Driver option.
16629 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16630 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16631
aa18dd0f
JM
166322011-02-02 Joseph Myers <joseph@codesourcery.com>
16633
16634 * config/ia64/vms.opt: New.
16635 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16636
28fc3eee
MM
166372011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16638
16639 PR target/47580
16640 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16641 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16642 generator functions.
16643 (vsx_floatuns<VSi><mode>2): Ditto.
16644 (vsx_fix_trunc<mode><VSi>2): Ditto.
16645 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16646
b5838b1f
JM
166472011-02-02 Joseph Myers <joseph@codesourcery.com>
16648
16649 * config/i386/djgpp.opt (posix): New Driver option.
16650
0db8fa89
GP
166512011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16652
16653 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16654 Move to the unsupported targets list.
16655
9cd4f22a
PB
166562011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16657
16658 PR rtl-optimization/47525
16659 * df-scan.c: Update copyright years.
16660 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16661 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16662
9ed8059c
RO
166632011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16664
16665 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16666 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16667 (ASM_OUTPUT_ASCII): Remove.
16668 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16669
2a737389
JL
166702011-02-02 Jeff Law <law@redhat.com>
16671
16672 PR middle-end/47543
16673 * reload.c (find_reloads_address): Handle reg+d address where both
16674 components are invalid by reloading the entire address.
16675
9dac82c4
SP
166762011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16677 Richard Guenther <rguenther@suse.de>
16678
16679 PR tree-optimization/40979
16680 PR bootstrap/47044
16681 * passes.c (init_optimization_passes): After LIM call copy_prop
16682 and DCE to clean up.
16683 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16684
14dd9aab
SP
166852011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16686
16687 PR tree-optimization/47576
16688 PR tree-optimization/47555
16689 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16690 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16691 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16692 * tree-scalar-evolution.c (follow_ssa_edge): Use
16693 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16694
5cbf5c20
RG
166952011-02-02 Richard Guenther <rguenther@suse.de>
16696
16697 PR tree-optimization/47566
16698 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16699
83d70792
AO
167002011-02-02 Alexandre Oliva <aoliva@redhat.com>
16701
e829c321
AO
16702 PR debug/47106
16703 PR debug/47402
16704 * tree-inline.c (declare_return_variable): Remove unused caller
16705 variable.
16706
83d70792
AO
16707 PR debug/47106
16708 PR debug/47402
16709 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16710 * cfgexpand.c (account_used_vars_for_block): Use them.
16711 * tree-nrv.c (tree_nrv): Likewise.
16712 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16713 (dump_scope_block): Likewise.
16714 (remove_unused_locals): Likewise.
16715
aaa2ac93
AO
16716 PR debug/47106
16717 PR debug/47402
16718 * tree-inline.c (declare_return_variable): Add result decl to
16719 local decls only once.
16720 * gimple-low.c (record_vars_into): Mark newly-created variables
16721 as referenced.
16722
a59d15cf
AO
167232011-02-02 Alexandre Oliva <aoliva@redhat.com>
16724
16725 PR debug/47498
16726 PR debug/47501
16727 PR debug/45136
16728 PR debug/45130
16729 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16730 debug insns.
16731 (no_real_insns_p, schedule_block, set_priorities): Drop special
16732 treatment of boundary debug insns.
38be4072 16733 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
16734 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16735 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16736 (BOUNDARY_DEBUG_INSN_P): Likewise.
16737 (SCHEDULE_DEBUG_INSN_P): Likewise.
16738 * sched-rgn.c (init_ready_list): Drop special treatment of
16739 boundary debug insns.
16740 * final.c (rest_of_clean_state): Clear notes' BB.
16741
6fc2f091
JM
167422011-02-01 Joseph Myers <joseph@codesourcery.com>
16743
16744 * config/openbsd.opt (assert=): New Driver option.
16745
fc523387
JM
167462011-02-01 Joseph Myers <joseph@codesourcery.com>
16747
16748 * config/i386/nto.opt: New.
16749 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16750
6d9821e5
JM
167512011-02-01 Joseph Myers <joseph@codesourcery.com>
16752
16753 * config/i386/netware.opt: New.
16754 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16755
cef932d4
JM
167562011-02-01 Joseph Myers <joseph@codesourcery.com>
16757
16758 * config/interix.opt (posix): New Driver option.
16759
22843acd
DD
167602011-02-01 DJ Delorie <dj@redhat.com>
16761
56490b74
DD
16762 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16763
22843acd
DD
16764 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16765 class for A0/A1.
16766
199c8f2f
SP
167672011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16768
16769 PR tree-optimization/47561
16770 * toplev.c (process_options): Print the Graphite flags. Add
16771 flag_loop_flatten to the list of options requiring Graphite.
16772
926bcf22
JM
167732011-02-01 Joseph Myers <joseph@codesourcery.com>
16774
16775 * config/i386/cygming.opt (posix): New Driver option.
16776
59793c51
JM
167772011-02-01 Joseph Myers <joseph@codesourcery.com>
16778
16779 * config/arm/vxworks.opt: New.
16780 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16781
183c38a4
JM
167822011-02-01 Joseph Myers <joseph@codesourcery.com>
16783
16784 * config/alpha/elf.opt: New.
16785 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16786 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16787
9939e416
RG
167882011-02-01 Richard Guenther <rguenther@suse.de>
16789
16790 PR tree-optimization/47559
16791 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16792 store-motion on references that can throw.
16793
4a3c9687
BS
167942011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16795
16796 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16797 * tree-pass.h (TDF_CSELIB): New macro.
16798 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16799 cselib_lookup): Check for it rather than for TDF_DETAILS.
16800
dd3b31fb
L
168012011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16802
16803 PR driver/47547
16804 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16805 is HOST_BIT_BUCKET.
16806
16807 * opts.c (finish_options): Don't add x_aux_base_name if it is
16808 HOST_BIT_BUCKET.
16809
34c1de79
RG
168102011-02-01 Richard Guenther <rguenther@suse.de>
16811
16812 PR tree-optimization/47555
16813 Revert
16814 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16815
16816 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16817
dd2804d2
SB
168182011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16819
16820 PR gcc/46692
16821 * config/lm32/t-lm32: Add multilib for all CPU options.
16822
3fd3b156
RG
168232011-02-01 Richard Guenther <rguenther@suse.de>
16824
16825 PR tree-optimization/47541
16826 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16827 sure to have a field at offset zero.
16828
f16072b6
JM
168292011-01-31 Joseph Myers <joseph@codesourcery.com>
16830
16831 * config/arc/arc.opt (EB, EL): New Driver options.
16832
6456cf2e
JM
168332011-01-31 Joseph Myers <joseph@codesourcery.com>
16834
16835 * config/alpha/osf5.opt: New.
16836 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16837
cdde6ab4
JM
168382011-01-31 Joseph Myers <joseph@codesourcery.com>
16839
16840 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16841
7633415c
SP
168422011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16843
16844 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16845 -floop-interchange.
16846 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16847 is an alias of -floop-interchange and that it requires the
16848 Graphite infrastructure.
16849 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16850 flag_loop_interchange based on the value of flag_tree_loop_linear.
16851
0425d6f5
JJ
168522011-01-31 Jakub Jelinek <jakub@redhat.com>
16853 Richard Guenther <rguenther@suse.de>
16854
16855 PR tree-optimization/47538
16856 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16857 type instead of r1type, except for comparisons. For right
16858 shifts and comparisons punt if there are mismatches in
16859 sizetype vs. non-sizetype types.
16860
500b16c3
RO
168612011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16862
16863 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16864 avx_runtime.
16865
e279edb0
RO
168662011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16867
16868 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16869 version number.
16870 * configure: Regenerate.
16871
c6092243
RO
168722011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16873
16874 * configure.ac (gcc_cv_ld_static_option): Define.
16875 (gcc_cv_ld_dynamic_option): Define.
16876 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16877 instead.
16878 (HAVE_LD_STATIC_DYNAMIC): Update message.
16879 (LD_STATIC_OPTION): Define.
16880 (LD_DYNAMIC_OPTION): Define.
16881 * configure: Regenerate.
16882 * config.in: Regenerate.
16883 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16884 HAVE_LD_STATIC_DYNAMIC]: Use them.
16885
d7862be3
NC
168862011-01-31 Nick Clifton <nickc@redhat.com>
16887
16888 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16889 registers inside interrupt handlers if the handler is not a leaf
16890 function.
16891
ba4ec0e0
NC
168922011-01-31 Nick Clifton <nickc@redhat.com>
16893
16894 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16895 reg_renumber returning an INVALID_REGNUM.
16896
29a63921
AO
168972011-01-31 Alexandre Oliva <aoliva@redhat.com>
16898
16899 PR libgcj/44341
16900 * doc/install.texi: Document host options discarded when cross
16901 configuring target libraries.
16902
ef591d3f
AO
169032011-01-31 Alexandre Oliva <aoliva@redhat.com>
16904
16905 Reverted:
16906 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16907 PR debug/45136
16908 PR debug/45130
16909 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16910 debug insns.
16911 (no_real_insns_p, schedule_block, set_priorities): Drop special
16912 treatment of boundary debug insns.
38be4072 16913 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
16914 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16915 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16916 (BOUNDARY_DEBUG_INSN_P): Likewise.
16917 (SCHEDULE_DEBUG_INSN_P): Likewise.
16918 * sched-rgn.c (init_ready_list): Drop special treatment of
16919 boundary debug insns.
16920 * final.c (rest_of_clean-state): Clear notes' BB.
16921
61052244
AM
169222011-01-31 Alan Modra <amodra@gmail.com>
16923
16924 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16925 toc relative expressions as we do in print_operand_address.
16926
c4c8962b
KH
169272011-01-30 Kazu Hirata <kazu@codesourcery.com>
16928
16929 * doc/extend.texi: Follow spelling conventions.
16930 * doc/invoke.texi: Fix a typo.
16931
e543b94c
JM
169322011-01-30 Joseph Myers <joseph@codesourcery.com>
16933
16934 * config/hpux11.opt: New.
16935 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16936 ia64*-*-hpux*): Use hpux11.opt.
16937
509d65dd 169382011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
16939
16940 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16941 to tmake_file.
16942
7be03a0e
GP
169432011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16944
16945 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16946 support sites.
16947
419d1d37
GP
169482011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16949
b596ed64
GP
16950 * doc/install.texi (Binaries): Remove outdated reference for
16951 Motorola 68HC11/68HC12 downloads.
16952
169532011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 16954
419d1d37
GP
16955 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16956 Drepper's paper.
16957
4406d0e9
JW
169582011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16959
16960 PR bootstrap/47147
16961 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16962 used by NetBSD.
16963
38be4072 169642011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
16965
16966 * value-prof.c (check_counter): Corrected error message.
16967
0cd98787
JZ
169682011-01-29 Jie Zhang <jie@codesourcery.com>
16969
16970 * config/arm/arm.c (arm_legitimize_reload_address): New.
16971 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16972 arm_legitimize_reload_address.
38be4072 16973 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 16974
9b798ac5
ILT
169752011-01-28 Ian Lance Taylor <iant@google.com>
16976
16977 * godump.c (go_define): Ignore macros whose definitions include
16978 two adjacent operands.
16979
591e29d9
JJ
169802011-01-28 Jakub Jelinek <jakub@redhat.com>
16981
16982 PR target/42894
16983 * varasm.c (force_const_mem): Store copy of x in desc->constant
16984 instead of x itself.
16985 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16986 itself into REG_EQUAL note.
16987
62dcc44a
JM
169882011-01-28 Joseph Myers <joseph@codesourcery.com>
16989
16990 * config/freebsd.opt (posix, rdynamic): New Driver options.
16991
c9f58b9a
RO
169922011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16993
16994 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16995 -Bstatic/-Bdynamic.
16996 * configure: Regenerate.
16997
5f02b9db
JM
169982011-01-27 Joseph Myers <joseph@codesourcery.com>
16999
17000 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17001 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17002
5df97412
AS
170032011-01-27 Anatoly Sokolov <aesok@post.ru>
17004
17005 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17006 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17007 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17008 (s390_preferred_reload_class): Make static. Change return and
17009 'rclass' argument type to reg_class_t.
17010
779d4b91
JH
170112011-01-27 Jan Hubicka <jh@suse.cz>
17012
17013 PR middle-end/46949
17014 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17015 (process_function_and_variable_attributes): Check defined weakrefs.
17016
e80b21ed
MJ
170172011-01-27 Martin Jambor <mjambor@suse.cz>
17018
17019 PR tree-optimization/47228
17020 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17021 build_ref_for_offset.
17022
6dcc4f31
UW
170232011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17024
17025 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17026
509d65dd 170272011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
17028
17029 PR rtl-optimization/46856
17030 * postreload.c (reload_combine_recognize_const_pattern): Do not
17031 separate cc0 setter and user on cc0 targets.
17032
04af8788
NP
170332011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17034
17035 PR c/43082
17036 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17037 passed a VOID_TYPE expression, immediately emit an error and
17038 return error_mark_node.
17039
f7a60085
JL
170402011-01-26 Jeff Law <law@redhat.com>
17041
17042 PR rtl-optimization/47464
17043 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17044 rather than may_trap_p as needed.
17045
5c2917ec
DD
170462011-01-26 DJ Delorie <dj@redhat.com>
17047
17048 PR rtl-optimization/46878
17049 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17050 setter/user dependency as well.
17051
bef16e87
EB
170522011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17053
17054 PR rtl-optimization/44469
17055 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17056 after removing trivially dead basic blocks.
17057
c75d884b
JM
170582011-01-26 Joseph Myers <joseph@codesourcery.com>
17059
17060 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17061 * config/frv/frv.h (LINK_SPEC): Likewise.
17062 * config/i386/netware.h (LINK_SPEC): Likewise.
17063 * config/m68k/linux.h (ASM_SPEC): Likewise.
17064 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17065 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17066 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17067 * config/sparc/linux.h (ASM_SPEC): Likewise.
17068 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17069 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17070
d3153553
JM
170712011-01-26 Joseph Myers <joseph@codesourcery.com>
17072
17073 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17074 * config/frv/frv.h (ASM_SPEC): Likewise.
17075 * config/m68k/linux.h (ASM_SPEC): Likewise.
17076 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17077 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17078 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17079 * config/sparc/linux.h (ASM_SPEC): Likewise.
17080 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17081 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17082
b89b1e9d
JM
170832011-01-26 Joseph Myers <joseph@codesourcery.com>
17084
17085 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17086 * config/frv/frv.h (LINK_SPEC): Likewise.
17087 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17088
12eb1a9c
JM
170892011-01-26 Joseph Myers <joseph@codesourcery.com>
17090
17091 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17092 * config/frv/frv.h (ASM_SPEC): Likewise.
17093 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17094 * config/m68k/linux.h (ASM_SPEC): Likewise.
17095 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17096 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17097 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17098 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17099 * config/sparc/linux.h (ASM_SPEC): Likewise.
17100 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17101 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17102 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17103
e435f098
SE
171042011-01-26 Steve Ellcey <sje@cup.hp.com>
17105
17106 PR target/46997
17107 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17108 (*mux2): Ditto.
17109 (vec_extract_evenodd_help): Ditto.
17110 (vec_extract_evenv4hi): Ditto.
17111 (vec_extract_oddv4hi): Ditto.
17112 (vec_interleave_lowv2si): Ditto.
17113 (vec_interleave_highv2si): Ditto.
17114 (vec_extract_evenv2si): Ditto.
17115 (vec_extract_oddv2si: Ditto.
17116 (vec_pack_trunc_v2si): Ditto.
17117
34f0eee0
JH
171182011-01-22 Jan Hubicka <jh@suse.cz>
17119
17120 PR target/47237
17121 * cgraph.h (cgraph_local_info): New field can_change_signature.
17122 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17123 signature can change.
17124 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17125 can change.
17126 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17127 (cgraph_function_versioning): We can not change signature of functions
17128 that don't allow that.
17129 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17130 (lto_input_node): Likewise.
38be4072
UB
17131 * ipa-inline.c (compute_inline_parameters): Compute
17132 local.can_change_signature.
34f0eee0 17133 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
17134 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17135 functions that can not change signature.
34f0eee0 17136 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
17137 init_cumulative_args): Do not use local calling conventions
17138 for functions that can not change signature.
34f0eee0 17139
980ca891
JH
171402011-01-22 Jan Hubicka <jh@suse.cz>
17141
17142 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17143
768e3c60
RG
171442011-01-26 Richard Guenther <rguenther@suse.de>
17145
17146 PR tree-optimization/47190
61052244
AM
17147 * cgraphunit.c (process_common_attributes): New function.
17148 (process_function_and_variable_attributes): Use it.
768e3c60 17149
21d6a1c7
RG
171502011-01-26 Richard Guenther <rguenther@suse.de>
17151
17152 PR lto/47423
17153 * cgraphbuild.c (record_eh_tables): Record reference to personality
17154 function.
17155
48bb58b1
AO
171562011-01-26 Alexandre Oliva <aoliva@redhat.com>
17157
17158 PR debug/45454
17159 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17160 non-debug insns from moving up.
17161
58c741a6
DK
171622011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17163
17164 PR target/40125
17165 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17166 t-dlldir{,-x} fragment for build and add it to tmake_file.
17167 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17168 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17169 * config/i386/t-dlldir: New file.
17170 (SHLIB_DLLDIR): Define.
17171 * config/i386/t-dlldir-x: New file.
17172 (SHLIB_DLLDIR): Define.
17173 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17174 (SHLIB_INSTALL): Use it.
17175
bff99262
CLT
171762011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17177
17178 PR target/47246
17179 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17180 lower bound of the allowed Thumb-2 coprocessor load/store
17181 index range to -256. Add explaining comment.
17182
82c03907
ILT
171832011-01-25 Ian Lance Taylor <iant@google.com>
17184
17185 * godump.c (go_define): Improve lexing of macro expansion to only
17186 accept expressions which match Go spec.
17187
47ea1edf
DK
171882011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17189
d4dba752 17190 PR c++/43601
47ea1edf
DK
17191 * tree.c (handle_dll_attribute): Handle it.
17192 * doc/extend.texi (@item dllexport): Mention it.
17193 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17194
744f0946
ILT
171952011-01-25 Ian Lance Taylor <iant@google.com>
17196
17197 PR tree-optimization/26854
17198 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17199 (decl_jump_unsafe): Move higher in file, with no other change.
17200 (bind): Set has_jump_unsafe_decl if appropriate.
17201 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17202 (check_earlier_gotos): Likewise.
17203 (c_check_switch_jump_warnings): Likewise.
17204
5734f2b3
JW
172052011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17206
17207 * doc/invoke.texi (Warning Options): Add missing hyphen.
17208 (-fprofile-dir): Minor grammatical fixes.
17209 (-fbranch-probabilities): Likewise.
17210
9bdbdcef
AO
172112011-01-25 Alexandre Oliva <aoliva@redhat.com>
17212
17213 PR debug/45136
17214 PR debug/45130
17215 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17216 debug insns.
17217 (no_real_insns_p, schedule_block, set_priorities): Drop special
17218 treatment of boundary debug insns.
38be4072 17219 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
17220 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17221 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17222 (BOUNDARY_DEBUG_INSN_P): Likewise.
17223 (SCHEDULE_DEBUG_INSN_P): Likewise.
17224 * sched-rgn.c (init_ready_list): Drop special treatment of
17225 boundary debug insns.
17226 * final.c (rest_of_clean-state): Clear notes' BB.
17227
b305e3da
SP
172282011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17229
17230 * Makefile.in (LAMBDA_H): Removed.
17231 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17232 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17233 lambda-trans.o, and tree-loop-linear.o.
17234 (lto-symtab.o): Remove dependence on LAMBDA_H.
17235 (tree-loop-linear.o): Remove rule.
17236 (lambda-mat.o): Same.
17237 (lambda-trans.o): Same.
17238 (lambda-code.o): Same.
17239 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17240 (tree-vect-slp.o): Same.
17241 * hwint.h (gcd): Moved here.
17242 (least_common_multiple): Same.
17243 * lambda-code.c: Removed.
17244 * lambda-mat.c: Removed.
17245 * lambda-trans.c: Removed.
17246 * lambda.h: Removed.
17247 * tree-loop-linear.c: Removed.
17248 * lto-symtab.c: Do not include lambda.h.
17249 * omega.c (gcd): Removed.
17250 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17251 * tree-data-ref.c (print_lambda_vector): Moved here.
17252 (lambda_vector_copy): Same.
17253 (lambda_matrix_copy): Same.
17254 (lambda_matrix_id): Same.
17255 (lambda_vector_first_nz): Same.
17256 (lambda_matrix_row_add): Same.
17257 (lambda_matrix_row_exchange): Same.
17258 (lambda_vector_mult_const): Same.
17259 (lambda_vector_negate): Same.
17260 (lambda_matrix_row_negate): Same.
17261 (lambda_vector_equal): Same.
17262 (lambda_matrix_right_hermite): Same.
17263 * tree-data-ref.h: Do not include lambda.h.
17264 (lambda_vector): Moved here.
17265 (lambda_matrix): Same.
17266 (dependence_level): Same.
17267 (lambda_transform_legal_p): Removed declaration.
17268 (lambda_collect_parameters): Same.
17269 (lambda_compute_access_matrices): Same.
17270 (lambda_vector_gcd): Same.
17271 (lambda_vector_new): Same.
17272 (lambda_vector_clear): Same.
17273 (lambda_vector_lexico_pos): Same.
17274 (lambda_vector_zerop): Same.
17275 (lambda_matrix_new): Same.
17276 * tree-flow.h (least_common_multiple): Removed declaration.
17277 * tree-parloops.c (lambda_trans_matrix): Moved here.
17278 (LTM_MATRIX): Same.
17279 (LTM_ROWSIZE): Same.
17280 (LTM_COLSIZE): Same.
17281 (LTM_DENOMINATOR): Same.
17282 (lambda_trans_matrix_new): Same.
17283 (lambda_matrix_vector_mult): Same.
17284 (lambda_transform_legal_p): Same.
17285 * tree-pass.h (pass_linear_transform): Removed declaration.
17286 * tree-ssa-loop.c (tree_linear_transform): Removed.
17287 (gate_tree_linear_transform): Removed.
17288 (pass_linear_transform): Removed.
17289 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17290 flag_loop_interchange.
17291
6bdfdb96
JJ
172922011-01-25 Jakub Jelinek <jakub@redhat.com>
17293
17294 PR tree-optimization/47265
17295 PR tree-optimization/47443
17296 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17297 if name still has some uses.
17298
e4cba915
MJ
172992011-01-25 Martin Jambor <mjambor@suse.cz>
17300
17301 PR tree-optimization/47382
17302 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17303 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17304
509d65dd 173052011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
17306
17307 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17308 sjlj_except_unwind_info.
17309
194313e2
RG
173102011-01-25 Richard Guenther <rguenther@suse.de>
17311
17312 PR tree-optimization/47426
17313 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17314 visible functions results escape.
17315
147a0bcf
JJ
173162011-01-25 Jakub Jelinek <jakub@redhat.com>
17317
17318 PR target/45701
17319 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17320 (arm_get_frame_offsets): Use it.
17321
db963b52
SP
173222011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17323 Jakub Jelinek <jakub@redhat.com>
17324
17325 PR tree-optimization/47271
17326 * tree-if-conv.c (bb_postdominates_preds): New.
17327 (if_convertible_bb_p): Call bb_postdominates_preds.
17328 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17329 (predicate_scalar_phi): Call bb_postdominates_preds.
17330
bcddd3b9
NC
173312011-01-25 Nick Clifton <nickc@redhat.com>
17332
17333 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17334 * config/rx/rx.c (rx_function_value): Likewise.
17335 (rx_promote_function_mode): Likewise.
17336 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17337 in order to make it legitimate.
38be4072
UB
17338 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17339 make sure that the first operand is the same as the result register.
bcddd3b9
NC
17340 (addsi3_unspec): Delete.
17341 (subdi3): Do not accept immediate operands.
17342 (subdi3_internal): Likewise.
17343
7e6cb022
JL
173442011-01-25 Jeff Law <law@redhat.com>
17345
17346 PR rtl-optimization/37273
17347 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17348 handle them like argument loads from stack slots. Do not double
17349 count memory for memory constants and argument loads from stack slots.
17350
9ffa621e
JJ
173512011-01-25 Jakub Jelinek <jakub@redhat.com>
17352
17353 PR tree-optimization/47427
17354 PR tree-optimization/47428
17355 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17356 coalesce if the new root var would be TREE_READONLY.
17357
5bd6e652
RG
173582011-01-25 Richard Guenther <rguenther@suse.de>
17359
17360 PR middle-end/47414
17361 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17362 correct type for TBAA.
17363
7c48ea69
SP
173642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17365
17366 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17367 (close_phi_written_to_memory): Call for_each_index with
17368 dr_indices_valid_in_loop.
17369
38013f25
SP
173702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17371
17372 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17373 when it is initialized.
17374
5c640e29
SP
173752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17376
17377 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17378 call to graphite_find_data_references_in_stmt.
17379 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17380 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17381 call to graphite_find_data_references_in_stmt.
17382 (analyze_drs_in_stmts): Same.
17383 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17384 in which the scalar analysis of indices is performed.
17385 (create_data_ref): Same. Update call to dr_analyze_indices.
17386 (find_data_references_in_stmt): Update call to create_data_ref.
17387 (graphite_find_data_references_in_stmt): Same.
17388 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17389 declaration.
17390 (create_data_ref): Same.
17391 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17392 call to create_data_ref.
17393
ac53c069
SP
173942011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17395
17396 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 17397 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 17398
3d17df15
SP
173992011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17400
17401 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17402 VAR_DECL, PARM_DECL, and RESULT_DECL.
17403
c513da01
SP
174042011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17405
17406 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17407 in a reduction PBB.
17408 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17409 that have already been marked as PBB_IS_REDUCTION.
17410
3a292d59
SP
174112011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17412
17413 * graphite-scop-detection.c (same_close_phi_node): New.
17414 (remove_duplicate_close_phi): New.
17415 (make_close_phi_nodes_unique): New.
17416 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17417
ba858447
SP
174182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17419
17420 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17421 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17422 of both data references to be the same.
17423
8d865c56
SP
174242011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17425
38be4072
UB
17426 * graphite-dependences.c (build_lexicographical_constraint): Remove
17427 the gdim parameter.
17428 (build_lexicographical_constraint): Adjust call to
17429 ppl_powerset_is_empty.
8d865c56
SP
17430 (dependence_polyhedron): Same.
17431 (graphite_legal_transform_dr): Same.
17432 (graphite_carried_dependence_level_k): Same.
38be4072
UB
17433 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17434 parameter.
8d865c56
SP
17435 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17436
50034a36
SP
174372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17438
17439 * graphite-sese-to-poly.c
17440 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17441 (close_phi_written_to_memory): New.
17442 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17443 and unshare_expr.
17444
0deada9e
SP
174452011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17446
17447 * doc/install.texi: Update the expected version number of PPL to 0.11.
17448 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17449 #if PPL_VERSION_MINOR < 11.
17450
d7d3d6af
SP
174512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17452
17453 * graphite-dependences.c: Include graphite-cloog-util.h.
17454 (new_poly_ddr): Inlined into dependence_polyhedron.
17455 (free_poly_ddr): Moved close by new_poly_ddr.
17456 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17457 Early return NULL when ppl_powerset_is_empty returns true.
17458 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17459 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17460 (graphite_legal_transform_dr): Call new_poly_ddr.
17461 (graphite_carried_dependence_level_k): Same.
17462 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17463 (dot_transformed_deps_stmt_1): Removed.
17464 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17465 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17466 (dot_deps_1): Call dot_deps_2.
17467 * Makefile.in (graphite-dependences.o): Add missing dependence on
17468 graphite-cloog-util.h.
17469
28c5db57
SP
174702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17471
17472 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17473 (build_lexicographical_constraint): Same.
17474 (dependence_polyhedron_1): Same.
17475 (graphite_legal_transform_dr): Same.
17476 (graphite_carried_dependence_level_k): Same.
17477 * graphite-ppl.c (ppl_powerset_is_empty): New.
17478 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17479 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17480
5168d98f
SP
174812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17482
17483 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17484 the "a followed by b" relation and document it.
17485
4a40293a
SP
174862011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17487
17488 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17489 iteration when the bag of constraints is empty.
17490
271fb6fa
SP
174912011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17492
17493 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17494
92d23680
SP
174952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17496
17497 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17498 nest and two loop depths as parameters.
17499 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17500 lst_perfect_nestify.
17501
2f51deff
SP
175022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17503
17504 * graphite-dependences.c (print_pddr): Call
17505 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17506
07f3593c
SP
175072011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17508
17509 * graphite-ppl.c (debug_gmp_value): New.
17510 * graphite-ppl.h (debug_gmp_value): Declared.
17511
3fae6099
TG
175122011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17513
17514 * doc/install.texi: Document availability of cloog-0.16.
17515
1c3ba85b
SP
175162011-01-25 Vladimir Kargov <kargov@gmail.com>
17517
17518 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17519 invalid postdominance info.
17520
e8ba94fc
JH
175212011-01-24 Jan Hubicka <jh@suse.cz>
17522
17523 PR c/21659
17524 * doc/extend.texi (weak pragma): Drop claim that it must
17525 appear before definition.
17526 * varasm.c (merge_weak, declare_weak): Only sanity check
17527 that DECL is not output at a time it is declared weak.
17528
2b6e2d13
KZ
175292011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17530
17531 * machmode.def: Fixed comments.
1c3ba85b 17532
9841210f
KT
175332011-01-24 Kai Tietz <kai.tietz@onevision.com>
17534
17535 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17536
175372011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
17538
17539 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 17540 WORDS_BIG_ENDIAN.
e046112d 17541
a6c5070a
L
175422011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17543
17544 PR target/46519
17545 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17546 (block_info): Add scanned and prev.
17547 (move_or_delete_vzeroupper_2): Return if the basic block
17548 has been scanned and the upper 128bit state is unchanged
17549 from the last scan.
17550 (move_or_delete_vzeroupper_1): Return true if the exit
17551 state is changed.
17552 (move_or_delete_vzeroupper): Visit basic blocks using the
17553 work-list based algorithm based on vt_find_locations in
17554 var-tracking.c.
17555
17556 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17557
a40d79d7
NC
175582011-01-24 Nick Clifton <nickc@redhat.com>
17559
17560 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17561 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17562 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17563 then define __v850e1__.
17564 * doc/invoke.texi: Document -mv850es.
17565
440eb8de
RH
175662011-01-24 Richard Henderson <rth@redhat.com>
17567
17568 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17569 compound unordered comparisons.
17570 * config/rx/rx.c (rx_split_fp_compare): Remove.
17571 * config/rx/rx-protos.h: Update.
17572 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17573 (cbranchsf4): Don't call rx_split_fp_compare.
17574 (*cbranchsf4): Use rx_split_cbranch.
17575 (*cmpsf): Don't accept "i" constraint.
17576 (*conditional_branch): Only valid after reload.
17577 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17578
3ff79f99
MM
175792011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17580
17581 PR target/47385
17582 * config/rs6000/altivec.md (vector constant splitters): Add
17583 support for creating vector single precision constants if -mvsx is
17584 used and we would create the constant using Altivec primitives.
17585
ff3d9d08
BS
175862011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17587 Richard Sandiford <rdsandiford@googlemail.com>
17588
17589 PR rtl-optimization/47166
17590 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17591 mechanism for PRE_MODIFY and POST_MODIFY.
17592 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17593 reloadreg.
17594
7fcaf152
AS
175952011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17596
8788adb6 17597 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 17598
d09b58c4
JH
175992011-01-22 Jan Hubicka <jh@suse.cz>
17600
17601 PR lto/47333
17602 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17603
e8ff8c5a
JH
176042011-01-22 Jan Hubicka <jh@suse.cz>
17605
17606 PR tree-optimization/43884
17607 PR lto/44334
8788adb6 17608 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
17609 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17610
ccaed3ba
AS
176112011-01-22 Anatoly Sokolov <aesok@post.ru>
17612
17613 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17614 * config/s390/s390.c (s390_register_move_cost,
17615 s390_memory_move_cost): New.
17616 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17617
0cecee06
UW
176182011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17619
17620 PR middle-end/47401
17621 * except.c (sjlj_assign_call_site_values): Move setting the
17622 crtl->uses_eh_lsda flag to ...
17623 (sjlj_mark_call_sites): ... here.
17624 (sjlj_emit_function_enter): Support NULL dispatch label.
17625 (sjlj_build_landing_pads): In a function with no landing pads
17626 that still has must-not-throw regions, generate code to register
17627 a personality function with empty LSDA.
17628
e692f276
RH
176292011-01-21 Richard Henderson <rth@redhat.com>
17630
1b7ae0b7
RH
17631 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17632
3843787f
RH
17633 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17634
e692f276
RH
17635 * compare-elim.c: New file.
17636 * Makefile.in (OBJS-common): Add it.
17637 (compare-elim.o): New.
17638 * common.opt (fcompare-elim): New.
17639 * opts.c (default_options_table): Add OPT_fcompare_elim.
17640 * tree-pass.h (pass_compare_elim_after_reload): New.
17641 * passes.c (init_optimization_passes): Add it.
17642 * recog.h: Protect against re-inclusion.
17643 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17644 * doc/invoke.texi (-fcompare-elim): Document it.
17645 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17646 * doc/tm.texi: Rebuild.
17647
9a7c2050
NC
176482011-01-22 Nick Clifton <nickc@redhat.com>
17649
17650 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17651 rx_split_fp_compare.
17652
15ba5696
NC
176532011-01-22 Nick Clifton <nickc@redhat.com>
17654
17655 * config/rx/rx.md (UNSPEC_CONST): New.
17656 (deallocate_and_return): Wrap the amount popped off the stack in
17657 an UNSPEC_CONST in order to stop it being rejected by
17658 -mmax-constant-size.
17659 (pop_and_return): Add a "(return)" rtx.
17660 (call): Drop the immediate operand.
17661 (call_internal): Likewise.
17662 (call_value): Likewise.
17663 (call_value_internal): Likewise.
17664 (sibcall_internal): Likewise.
17665 (sibcall_value_internal): Likewise.
17666 (sibcall): Likewise. Generate an explicit call using
17667 sibcall_internal.
17668 (sibcall_value): Likewise.
17669 (mov<>): FAIL if a constant operand is not legitimate.
17670 (addsi3_unpsec): New pattern.
9a7c2050 17671
38be4072 17672 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
17673 (ok_for_max_constant): New function.
17674 (gen_safe_add): New function.
17675 (rx_expand_prologue): Use gen_safe_add.
17676 (rx_expand_epilogue): Likewise.
17677 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17678 UNSPEC CONSTs.
17679
caaf13d3
JL
176802011-01-21 Jeff Law <law@redhat.com>
17681
17682 PR tree-optimization/47053
17683 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17684 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17685 statements are deleted.
17686 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17687 is nonempty, then purge dead edges and cleanup the CFG.
17688
12c30f2f
AO
176892011-01-21 Alexandre Oliva <aoliva@redhat.com>
17690
17691 PR debug/47402
17692 Temporarily revert:
17693 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17694 PR debug/47106
17695 * tree-dfa.c (create_var_ann): Mark variable as used.
17696
7360d2ac
JJ
176972011-01-21 Jakub Jelinek <jakub@redhat.com>
17698
aaa52a96
JJ
17699 PR middle-end/45566
17700 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17701 notes from other section in hot/cold partitioning even if
17702 last_action is -3. Increment call_site_base.
17703
7360d2ac
JJ
17704 PR rtl-optimization/47366
17705 * fwprop.c (forward_propagate_into): Return bool. If
17706 any changes are made, -fnon-call-exceptions is used and
17707 REG_EH_REGION note is present, call purge_dead_edges
17708 and return true if it purged anything.
17709 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17710 any EH edges were purged.
17711
e90b336f
JL
177122011-01-21 Jeff Law <law@redhat.com>
17713
17714 PR rtl-optimization/41619
17715 * caller-save.c (setup_save_areas): Break out code to determine
17716 which hard regs are live across calls by examining the reload chains
17717 so that it is always used.
17718 Eliminate code which checked REG_N_CALLS_CROSSED.
17719
3ffe07e1
JJ
177202011-01-21 Jakub Jelinek <jakub@redhat.com>
17721
17722 PR tree-optimization/47355
17723 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17724 NOP has non-debug uses beyond PHIs in new_bb.
17725
1c7d0b34
AO
177262011-01-21 Alexandre Oliva <aoliva@redhat.com>
17727
17728 PR debug/47106
17729 * cfgexpand.c (account_used_vars_for_block): Only account vars
17730 that are annotated as used.
17731 (estimated_stack_frame_size): Don't set TREE_USED.
17732 * tree-dfa.c (create_var_ann): Mark variable as used.
17733
f99cc488
RG
177342011-01-21 Richard Guenther <rguenther@suse.de>
17735
17736 PR middle-end/47395
17737 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17738
3bc27de7
RG
177392011-01-21 Richard Guenther <rguenther@suse.de>
17740
17741 PR tree-optimization/47365
17742 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17743 (vn_reference_lookup_pieces): Adjust.
17744 (vn_reference_lookup): Likewise.
17745 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17746 (vn_reference_lookup_3): Only look through kills if in
17747 VN_WALKREWRITE mode.
17748 (vn_reference_lookup_pieces): Adjust.
17749 (vn_reference_lookup): Likewise.
17750 (visit_reference_op_load): Likewise.
17751 (visit_reference_op_store): Likewise.
17752 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17753 (compute_avail): Likewise.
17754 (eliminate): Likewise.
17755
d8debb1d
JJ
177562011-01-21 Jakub Jelinek <jakub@redhat.com>
17757
17758 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17759 DECL_IGNORED_P non-reg vars if they are used.
17760
3a2df831
JJ
17761 PR tree-optimization/47391
17762 * varpool.c (const_value_known_p): Return false if
17763 decl is volatile.
17764
1dd584a2
KT
177652011-01-21 Kai Tietz <kai.tietz@onevision.com>
17766
17767 PR bootstrap/47215
17768 * config/i386/i386.c (ix86_local_alignment): Handle
17769 case for va_list_type_node is nil.
17770 (ix86_canonical_va_list_type): Likewise.
17771
7f9f095e
AM
177722011-01-21 Alan Modra <amodra@gmail.com>
17773
17774 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17775 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17776
837b01f6
RR
177772011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17778
17779 * config/arm/arm.md (define_attr type): Rename f_load
17780 and f_store to f_fpa_load and f_fpa_store. Update.
17781 (write_conflict): Deal with rename fallout.
17782 (*push_fp_multi): Likewise.
17783 * config/arm/fpa.md (f_load): Use f_fpa_load.
17784 (f_store): Use f_fpa_store.
17785 (*movsf_fpa): Likewise.
17786 (*movdf_fpa): Likewise.
17787 (*movxf_fpa): Likewise.
17788 (*thumb2_movsf_fpa): Likewise.
17789 (*thumb2_movdf_fpa): Likewise.
17790 (*thumb2_movxf_fpa): Likewise.
17791 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17792 f_loadd and f_stored.
17793 (*thumb2_movdi_vfp): Likewise.
17794 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17795 (*thumb2_movsi_vfp): Likewise.
17796 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17797 Use f_loads instead of f_load.
17798 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17799
a1a79768
AS
178002011-01-20 Anatoly Sokolov <aesok@post.ru>
17801
17802 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17803 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17804 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17805 (xtensa_mode_dependent_address_p): New function.
17806 (constantpool_address_p): Make static. Change return type to bool.
17807 Change argument type to const_rtx. Use CONST_INT_P predicate.
17808
427f6cec
AO
178092011-01-20 Alexandre Oliva <aoliva@redhat.com>
17810
17811 PR debug/46583
17812 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17813
583ac69c
JJ
178142011-01-20 Jakub Jelinek <jakub@redhat.com>
17815
17816 PR debug/47283
17817 * cfgexpand.c (expand_debug_expr): Instead of generating
17818 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17819 etc. handling.
17820
93e452ed
RG
178212011-01-20 Richard Guenther <rguenther@suse.de>
17822
17823 PR middle-end/47370
17824 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17825 the pointer operand of MEM_REFs.
17826
28fc44f3
JJ
178272011-01-20 Jakub Jelinek <jakub@redhat.com>
17828
17829 PR tree-optimization/46130
17830 * ipa-split.c (consider_split): If return_bb contains non-virtual
17831 PHIs other than for retval or if split_function would not adjust it,
17832 refuse to split.
17833
ddd268f2
RG
178342011-01-20 Richard Guenther <rguenther@suse.de>
17835
17836 PR tree-optimization/47167
17837 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17838 Revert previous change, only avoid enumeral type changes.
17839
882020aa
MS
178402011-01-19 Mike Stump <mikestump@comcast.net>
17841
17842 * doc/tm.texi.in (BRANCH_COST): Englishify.
17843 * doc/tm.texi (BRANCH_COST): Likewise.
17844
7edb6247
DS
178452011-01-19 Dodji Seketeli <dodji@redhat.com>
17846
17847 PR c++/47291
17848 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
17849 (gen_scheduled_generic_parms_dies): New functions.
17850 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17851 generation for the end of CU compilation.
17852 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 17853
23d5ed5d
AO
178542011-01-19 Alexandre Oliva <aoliva@redhat.com>
17855
17856 PR debug/46240
17857 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17858 debug bind stmt on merge edges.
17859
37d6a488
AO
178602011-01-19 Alexandre Oliva <aoliva@redhat.com>
17861
17862 PR debug/47079
17863 PR debug/46724
17864 * function.c (instantiate_expr): Instantiate incoming rtl of
17865 implicit arguments, and recurse on VALUE_EXPRs.
17866 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17867 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17868
689f2c82
AO
178692011-01-19 Alexandre Oliva <aoliva@redhat.com>
17870
17871 * c-parser.c (c_parser_for_statement): Initialize
17872 collection_expression.
17873
03029de4
JM
178742011-01-19 Joseph Myers <joseph@codesourcery.com>
17875
17876 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17877
3e03217e
JM
178782011-01-19 Joseph Myers <joseph@codesourcery.com>
17879
17880 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17881 (LINK_SHLIB_SPEC): Don't use %(link_path).
17882 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17883
5bbe9b3f
JM
178842011-01-19 Joseph Myers <joseph@codesourcery.com>
17885
17886 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17887 (NO_SHARED_LIB_SUPPORT): Remove.
17888 (LINK_SHLIB_SPEC): Remove one conditional definition.
17889
368e0b39
JM
178902011-01-19 Joseph Myers <joseph@codesourcery.com>
17891
17892 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17893 %{call_shared}.
17894 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17895 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17896 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17897 %{call_shared} and conditionals on these options not being passed.
17898 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17899 %{call_shared}.
17900
ed7656f6
JJ
179012011-01-19 Jakub Jelinek <jakub@redhat.com>
17902
68457901
JJ
17903 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17904 simplify.
17905
ed7656f6
JJ
17906 * ipa-split.c: Spelling fixes.
17907
e0d1958f
RH
179082011-01-19 Richard Henderson <rth@redhat.com>
17909
17910 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17911 (*mulsi3): Likewise.
17912
27098b6b
RH
17913 * longlong.h [__mn10300__] (count_leading_zeros): New.
17914 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17915 [__mn10300__] (add_ssaaaa, subddmmss): New.
17916 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17917 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17918
d6be7c36
UW
179192011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17920
17921 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17922
b1efde2a
RH
179232011-01-19 Richard Henderson <rth@redhat.com>
17924
44217823
RH
17925 * config/mn10300/mn10300.md (addsi3_flags): New.
17926 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17927 (subsi3_flags, subc_internal, subdi3): New.
17928 (subdi3_internal, *subdi3_degenerate): New.
17929 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17930
37a185d7
RH
17931 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17932 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17933 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17934 * config/mn10300/mn10300-protos.h: Update.
17935 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17936 (return_ret): Likewise. Rename from return_internal_regs.
17937 (return_internal): Remove.
17938
040c5757
RH
17939 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17940 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17941 (mn10300_legitimate_constant_p): Likewise.
17942 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17943 (mn10300_frame_size): New.
17944 (mn10300_expand_prologue): Use it.
17945 (mn10300_expand_epilogue): Likewise.
17946 (mn10300_initial_offset): Likewise.
17947 * config/mn10300/mn10300-protos.h: Update.
17948 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17949 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17950 (prologue, epilogue, return_internal): Tidy output code.
17951 (mn10300_store_multiple_operation, return): Likewise.
17952 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17953 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17954 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17955 (load_pic, am33_load_pic): New.
17956 (mn10300_load_pic0, mn10300_load_pic1): New.
17957
bad41521
RH
17958 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17959 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17960 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17961 (cc_flags_for_mode, cc_flags_for_code): New.
17962 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17963 overflow flag is not valid. Validate that the flags we need
17964 for the comparison are valid.
17965 (mn10300_output_cmp): Remove.
17966 (mn10300_output_add): New.
17967 (mn10300_select_cc_mode): Use cc_flags_for_code.
17968 (mn10300_split_cbranch): New.
17969 (mn10300_match_ccmode): New.
17970 (mn10300_split_and_operand_count): New.
17971 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17972 to the function.
17973 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17974 (addsi3): ... here. Use mn10300_output_add.
17975 (*addsi3_flags): New.
17976 (*am33_subsi3, *mn10300_subsi3): Merge...
17977 (subsi3): ... here. Use attribute isa.
17978 (*subsi3_flags): New.
17979 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17980 when possible.
17981 (*am33_andsi3, *mn10300_andsi3): Merge...
17982 (andsi3): ... here.
17983 (*andsi3_flags): New.
17984 (andsi3 splitters): New.
17985 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17986 (iorsi3): ... here.
17987 (*iorsi3_flags): New.
17988 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17989 (xorsi3): ... here.
17990 (*xorsi3_flags): New.
17991 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17992 (one_cmplsi2): ... here.
17993 (*one_cmplsi2_flags): New.
17994 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17995 instead of "dax" in constraints. Use mn10300_split_cbranch.
17996 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17997 use matching constraints to eliminate a self-comparison.
17998 (*integer_conditional_branch): Rename from integer_conditional_branch.
17999 Use int_mode_flags to match CC_REG.
18000 (*cbranchsi4_btst, *btstsi): New.
18001 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18002 mn10300_split_cbranch.
18003 (*am33_cmpsf): Rename from am33_cmpsf.
18004 (*float_conditional_branch): Rename from float_conditional_branch.
18005 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18006 (zero_extendqisi2): ... here.
18007 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18008 (zero_extendhisi2): ... here.
18009 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18010 (extendqisi2): ... here.
18011 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18012 (extendhisi2): ... here.
18013 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18014 (ashlsi3): ... here.
18015 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18016 (lshrsi3): ... here.
18017 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18018 (ashrsi3): ... here.
18019 (consecutive add peephole): Remove.
18020 * config/mn10300/predicates.md (label_ref_operand): New.
18021 (int_mode_flags): New.
18022 (CCZN_comparison_operator): New.
18023
9efb4993
RH
18024 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18025 (throughput_42_latency_43): New reservation.
18026 (mulsidi3, umulsidi3): New expanders.
18027 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18028 the MDR register to allocation; separately allocate the low and
18029 high parts of the DImode result.
18030 (umulsidi3_internal): Similarly.
18031 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18032 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18033 (udivsi3, umodsi3): Remove.
18034 (udivmodsi4, divmodsi4): New expanders.
18035 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18036 (*divmodsi4): Simiarly.
18037 (ext_internal): New.
18038
c25a21f5
RH
18039 * config/mn10300/constraints.md ("z"): New constraint.
18040 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18041 (FIXED_REGISTERS): Don't fix MDR.
18042 (CALL_USED_REGSITERS): Reformat nicely.
18043 (REG_ALLOC_ORDER): Add MDR.
18044 (enum regclass): Add MDR_REGS.
18045 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18046 (IRA_COVER_CLASSES): Add MDR_REGS.
18047 (REGNO_REG_CLASS): Handle MDR_REG.
18048 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18049 (mn10300_register_move_cost): Likewise.
18050 * config/mn10300/mn10300.md (MDR_REG): New.
18051 (*movsi_internal): Handle moves to/from MDR_REGS.
18052
36846b26
RH
18053 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18054 POST_MODIFY.
18055 (mn10300_secondary_reload): Tidy combination reload classes.
18056 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18057 addresses for AM33. Allow symbolic offsets for reg+imm.
18058 (mn10300_regno_in_class_p): New.
18059 (mn10300_legitimize_reload_address): New.
18060 * config/mn10300/mn10300.h (enum reg_class): Remove
18061 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18062 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18063 SP_OR_GENERAL_REGS.
18064 (REG_CLASS_NAMES): Update to match.
18065 (REG_CLASS_CONTENTS): Likewise.
18066 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18067 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18068 (REGNO_IN_RANGE_P): Remove.
18069 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18070 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18071 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18072 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18073 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18074 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18075 (REGNO_GENERAL_P): New.
18076 (HAVE_POST_MODIFY_DISP): New.
18077 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18078 (LEGITIMIZE_RELOAD_ADDRESS): New.
18079 * config/mn10300/mn10300-protos.h: Update.
18080
8b119bb6
RH
18081 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18082 DATA_REGS for AM33 stack-pointer destination.
18083 (mn10300_preferred_output_reload_class): Likewise.
18084 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18085 into a form appropriate for ...
18086 (TARGET_SECONDARY_RELOAD): New.
18087 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18088 * config/mn10300/mn10300-protos.h: Update.
18089 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18090 reload_insi; use the "A" constraint for the scratch; handle AM33
18091 moves of sp to non-address registers.
18092
b1efde2a
RH
18093 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18094 (*movqi_internal): ... here.
18095 (*am33_movhi, *mn10300_movhi): Merge into...
18096 (*movhi_internal): ... here.
18097 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18098 as the source/destination of moves from/to SP.
18099 (movsf): Only allow for AM33-2.
1c3ba85b 18100 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
18101 any integer constant constraint. Only allow for AM33-2. Tidy
18102 all of the alternative outputs.
18103 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18104 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18105 for MN103.
18106 (udivsi3, umodsi3): New patterns for MN103 only.
18107
b899fd78
JR
181082011-01-19 Joern Rennecke <amylaar@spamcop.net>
18109
18110 * doc/tm.texi.in: Spell out that a lack of register class unions
18111 can lead to ICEs.
18112 * doc/tm.texi: Regenerate.
18113
afaaa67d
JJ
181142011-01-19 Jakub Jelinek <jakub@redhat.com>
18115
2e0642cd
JJ
18116 PR rtl-optimization/47337
18117 * dce.c (check_argument_store): New function.
18118 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18119
afaaa67d
JJ
18120 PR tree-optimization/47290
18121 * tree-eh.c (infinite_empty_loop_p): New function.
18122 (cleanup_empty_eh): Use it.
18123
d2cd871f
SE
181242011-01-18 Steve Ellcey <sje@cup.hp.com>
18125
18126 PR target/46997
18127 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18128 (a64_expand_widen_sum): Ditto.
18129 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18130 (vec_extract_evenodd_help): Ditto.
18131 (vec_extract_evenv4hi): Ditto.
18132 (vec_extract_oddv4hi): Ditto.
18133 (vec_extract_evenv2si): Ditto.
18134 (vec_extract_oddv2si): Ditto.
18135 (vec_extract_evenv2sf): Ditto.
18136 (vec_extract_oddv2sf): Ditto.
18137 (vec_pack_trunc_v4hi: Ditto.
18138 (vec_pack_trunc_v2si): Ditto.
18139 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18140 (vec_interleave_highv8qi): Ditto.
18141 (mix1_r): Ditto.
18142 (vec_extract_oddv8qi): Ditto.
18143 (vec_interleave_lowv4hi): Ditto.
18144 (vec_interleave_highv4hi): Ditto.
18145 (vec_interleave_lowv2si): Ditto.
18146 (vec_interleave_highv2si): Ditto.
18147
41a1208a
JDA
181482011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18149
18150 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18151 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18152 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18153 (pa_c_mode_for_suffix): New.
18154 (TARGET_EXPAND_BUILTIN): Define.
18155 (TARGET_C_MODE_FOR_SUFFIX): Define.
18156 (pa_builtins): Define.
18157 (pa_init_builtins): Register __float128 type and init new support
18158 builtins.
18159 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18160 * config/pa/quadlib.c (_U_Qfcopysign): New.
18161
1ecad98e
EB
181622011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18163
18164 PR middle-end/46894
18165 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18166 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18167 are defined.
18168
d4f2460a
UW
181692011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18170
18171 PR tree-optimization/47179
18172 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18173 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18174
4994da65
RG
181752011-01-18 Richard Guenther <rguenther@suse.de>
18176
18177 PR rtl-optimization/47216
18178 * emit-rtl.c: Include tree-flow.h.
18179 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18180 of replicating it with different semantics.
18181 * Makefile.in (emit-rtl.o): Adjust.
18182
1eb458d1
RR
181832011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18184
38be4072 18185 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 18186 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 18187
e7ef91dc
JJ
181882011-01-18 Jakub Jelinek <jakub@redhat.com>
18189
18190 PR rtl-optimization/47299
18191 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 18192 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
18193 * expmed.c (expand_widening_mult): Don't try to optimize constant
18194 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18195 before using it.
18196
535b7874
RW
181972011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18198
18199 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18200 spacing after 'e.g.', typos, comma, hyphenation.
18201
27bf36f3
RH
182022011-01-17 Richard Henderson <rth@redhat.com>
18203
8a5b5449
RH
18204 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18205 (rx_restricted_mem_operand): New.
18206 (rx_shift_operand): Use register_operand.
18207 (rx_source_operand, rx_compare_operand): Likewise.
18208 * config/rx/rx.md (addsi3_flags): New expander.
18209 (adddi3): Rewrite as expander.
18210 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18211 (subsi3_flags): New expander.
18212 (subdi3): Rewrite as expander.
18213 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18214
784f69be
RH
18215 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18216 (rx_init_builtins): Remove sat builtin.
18217 (rx_expand_builtin): Likewise.
18218 * config/rx/rx.md (ssaddsi3): New.
18219 (*sat): Rename from sat. Represent the CC_REG input.
18220
f033541c
RH
18221 * config/rx/predicates.md (rshift_operator): New.
18222 * config/rx/rx.c (rx_expand_insv): Remove.
18223 * config/rx/rx-protos.h: Update.
18224 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18225 operand to the canonical position.
18226 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18227 (*bitclr, *bitclr_in_memory): Similarly.
18228 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18229 (insv): Retain the zero_extract in the expansion.
18230
34fee389
RH
18231 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18232 (bswaphi2, bitinvert, revw): Likewise.
18233
265c835f
RH
18234 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18235 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18236 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18237 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18238 (bitset, bitset_in_memory): Likewise.
18239 (bitinvert, bitinvert_in_memory): Likewise.
18240 (bitclr, bitclr_in_memory): Likewise.
18241 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18242 (rx_strend, rx_cmpstrn): Likewise.
18243 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18244 (bitop peep2 patterns): Remove.
18245
b4d83be3
RH
18246 * config/rx/rx.c (rx_match_ccmode): New.
18247 * config/rx/rx-protos.h: Update.
18248 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18249 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18250 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18251 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18252 (fix_truncsfsi2, floatsisf2): Likewise.
18253 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18254 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18255 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18256 (*subsi3_flags, *xorsi3_flags): New.
18257
d0acb939
RH
18258 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18259
c06fc3d9
RH
18260 * config/rx/rx.c (rx_print_operand): Remove workaround for
18261 unsplit comparison operations.
18262
2882702b
RH
18263 * config/rx/rx.md (movsicc): Split after reload.
18264 (*movsicc): Merge *movsieq and *movsine via match_operator.
18265 (*stcc): New pattern.
18266
6f7310f2
RH
18267 * config/rx/rx.c (rx_float_compare_mode): Remove.
18268 * config/rx/rx.h (rx_float_compare_mode): Remove.
18269 * config/rx/rx.md (cstoresi4): Split after reload.
18270 (*sccc): New pattern.
18271
e963cb1a
RH
18272 * config/rx/predicates.md (label_ref_operand): New.
18273 (rx_z_comparison_operator): New.
18274 (rx_zs_comparison_operator): New.
18275 (rx_fp_comparison_operator): New.
18276 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18277 Validate that the flags are set properly for the comparison.
18278 (rx_gen_cond_branch_template): Remove.
18279 (rx_cc_modes_compatible): Remove.
18280 (mode_from_flags): New.
18281 (flags_from_code): Rename from flags_needed_for_conditional.
18282 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18283 (rx_select_cc_mode): Likewise.
18284 (rx_split_fp_compare): New.
18285 (rx_split_cbranch): New.
18286 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18287 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18288 (*cbranchsf4): Similarly.
18289 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18290 match_operator and rx_split_cbranch.
18291 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18292 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18293 (*cmpsi): Rename from cmpsi.
18294 (*tstsi): Rename from tstsi.
18295 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18296 (*conditional_branch): Rename from conditional_branch.
18297 (*reveresed_conditional_branch): Remove.
18298 (b<code>): Remove expander.
18299 * config/rx/rx-protos.h: Update.
18300
af530bb4
RH
18301 * config/rx/rx.c (rx_compare_redundant): Remove.
18302 * config/rx/rx.md (cmpsi): Don't use it.
18303 * config/rx/rx-protos.h: Update.
18304
27bf36f3
RH
18305 * config/rx/rx-modes.def (CC_F): New mode.
18306 * config/rx/rx.c (rx_select_cc_mode): New.
18307 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18308 * config/rx/rx-protos.h: Update.
18309
d7fde127
RH
183102011-01-17 Richard Henderson <rth@redhat.com>
18311
18312 * except.c (dump_eh_tree): Fix stray ; after for statement.
18313
6ff38230
RG
183142011-01-17 Richard Guenther <rguenther@suse.de>
18315
18316 PR tree-optimization/47313
18317 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18318 handling before copying the body. Properly deal with
18319 by-reference result in SSA form.
18320
114ce554
ILT
183212011-01-17 Ian Lance Taylor <iant@google.com>
18322
bf5cd92b 18323 PR target/47219
114ce554
ILT
18324 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18325 (struct_value_alias_set): Don't define.
18326 (sparc_option_override): Don't set sparc_sr_alias_set and
18327 struct_value_alias_set.
18328 (save_or_restore_regs): Use gen_frame_mem rather than calling
18329 set_mem_alias_set.
18330 (sparc_struct_value_rtx): Likewise.
18331
98c6d93c
L
183322011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18333
18334 PR target/47318
7a81008b 18335 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
18336 (_mm_maskstore_pd): Likewise.
18337 (_mm_maskload_ps): Likewise.
18338 (_mm_maskstore_ps): Likewise.
18339 (_mm256_maskload_pd): Change mask to __m256i.
18340 (_mm256_maskstore_pd): Likewise.
18341 (_mm256_maskload_ps): Likewise.
18342 (_mm256_maskstore_ps): Likewise.
18343
18344 * config/i386/i386-builtin-types.def: Updated.
18345 (ix86_expand_special_args_builtin): Likewise.
18346
18347 * config/i386/i386.c (bdesc_special_args): Update
18348 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18349 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18350 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18351 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18352
18353 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18354 Use <avxpermvecmode> on mask register.
18355 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18356
b9361af2 183572011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
18358 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18359 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
18360
18361 PR target/46655
18362 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18363 if <= USHRT_MAX in 32-bit mode.
18364
b7ae9eb5
RW
183652011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18366
18367 * doc/install.texi (Configuration, Specific): Wrap long
18368 lines in examples. Allow line wrapping in long options
18369 and URLs where beneficial for PDF output.
18370
4377fad9
RS
183712011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18372
18373 * config/mips/mips.c (mips_classify_symbol): Don't return
18374 SYMBOL_PC_RELATIVE for nonlocal labels.
18375
55959ffa 183762011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 18377
55959ffa
EB
18378 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18379
183802011-01-15 Jan Hubicka <jh@suse.cz>
18381
18382 PR tree-optimization/47276
be46831f
JH
18383 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18384 declarations as needed.
18385
05842ff5
MJ
183862011-01-15 Martin Jambor <mjambor@suse.cz>
18387
18388 * common.opt (fdevirtualize): New flag.
18389 * doc/invoke.texi (Option Summary): Document it.
18390 * opts.c (default_options_table): Add devirtualize flag.
18391 * ipa-prop.c (detect_type_change): Return immediately if
18392 devirtualize flag is not set.
18393 (detect_type_change_ssa): Likewise.
18394 (compute_known_type_jump_func): Likewise.
18395 (ipa_analyze_virtual_call_uses): Likewise.
18396
f65cf2b7
MJ
183972011-01-14 Martin Jambor <mjambor@suse.cz>
18398
18399 PR tree-optimization/45934
18400 PR tree-optimization/46302
18401 * ipa-prop.c (type_change_info): New type.
18402 (stmt_may_be_vtbl_ptr_store): New function.
18403 (check_stmt_for_type_change): Likewise.
18404 (detect_type_change): Likewise.
18405 (detect_type_change_ssa): Likewise.
18406 (compute_complex_assign_jump_func): Check for dynamic type change.
18407 (compute_complex_ancestor_jump_func): Likewise.
18408 (compute_known_type_jump_func): Likewise.
18409 (compute_scalar_jump_functions): Likewise.
18410 (ipa_analyze_virtual_call_uses): Likewise.
18411 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18412
eb5bb0fd
JM
184132011-01-14 Joseph Myers <joseph@codesourcery.com>
18414
18415 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18416 * config/i386/i386.opt (msse5): New Alias.
18417
f2060fbe
JM
184182011-01-14 Joseph Myers <joseph@codesourcery.com>
18419
18420 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18421 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18422 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18423 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18424
3a7b4385
JM
184252011-01-14 Joseph Myers <joseph@codesourcery.com>
18426
18427 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18428 -mcpu options.
18429 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18430 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18431 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18432 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18433 Likewise.
18434 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18435
a7b778f8
JM
184362011-01-14 Joseph Myers <joseph@codesourcery.com>
18437
38be4072 18438 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 18439
a7edae0a
MS
184402011-01-14 Mike Stump <mikestump@comcast.net>
18441
18442 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18443 * config/fr30/fr30.md: Likweise
18444 (movsi_push): Likewise.
18445 (movsi_pop): Likewise.
18446 (enter_func): Likewise.
18447 * config/moxie/moxie.md (movsi_push): Likewise.
18448 (movsi_pop): Likewise.
18449
cbabf03f
JM
184502011-01-14 Joseph Myers <joseph@codesourcery.com>
18451
18452 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18453 %{no_archive} %{exact_version}.
18454 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18455 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18456 %{no_archive} %{exact_version}.
18457 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18458 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18459 * config/mips/vxworks.h: Likewise.
18460
438da41a
JM
184612011-01-14 Joseph Myers <joseph@codesourcery.com>
18462
38be4072 18463 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 18464
da290a42
JM
184652011-01-14 Joseph Myers <joseph@codesourcery.com>
18466
18467 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18468 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18469
8989d00e
JM
184702011-01-14 Joseph Myers <joseph@codesourcery.com>
18471
18472 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18473 -nodefaultlib.
18474
a3010a69
JM
184752011-01-14 Joseph Myers <joseph@codesourcery.com>
18476
18477 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18478 for mcpu not cpu.
18479 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18480 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18481 not cpu.
18482 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18483 Don't handle -shlib.
18484
e7f2f537
JM
184852011-01-14 Joseph Myers <joseph@codesourcery.com>
18486
18487 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18488 (CC1_SPEC): Don't handle -profile.
18489
34830bfd
JM
184902011-01-14 Joseph Myers <joseph@codesourcery.com>
18491
18492 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18493 * config/mips/mips.h (CC1_SPEC): Likewise.
18494
b2d36e74
JM
184952011-01-14 Joseph Myers <joseph@codesourcery.com>
18496
18497 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18498 * config/mips/mips.h (CC1_SPEC): Likewise.
18499
dabadc52
JM
185002011-01-14 Joseph Myers <joseph@codesourcery.com>
18501
18502 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18503 * config/m32r/linux.h (LINK_SPEC): Likewise.
18504 * config/mips/linux.h (LINK_SPEC): Likewise.
18505 * config/mips/linux64.h (LINK_SPEC): Likewise.
18506 * config/sparc/linux.h (LINK_SPEC): Likewise.
18507 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18508 LINK_SPEC): Likewise.
18509 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18510
43ee6785
JM
185112011-01-14 Joseph Myers <joseph@codesourcery.com>
18512
18513 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18514 %{version:-v}.
18515 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18516
45e79dfd
JM
185172011-01-14 Joseph Myers <joseph@codesourcery.com>
18518
18519 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18520 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18521
37e9e71d
JM
185222011-01-14 Joseph Myers <joseph@codesourcery.com>
18523
18524 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18525
bb127cd8
RO
185262011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18527
18528 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18529 supports -Bstatic/-Bdynamic.
18530 * configure: Regenerate.
18531
89a012ea 185322011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 18533 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
18534
18535 PR target/46037
18536 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18537 when checking debug_info_level. Test write_symbols instead of
18538 debug_hooks->var_location when setting flag_var_tracking_uninit.
18539
7352c013
RG
185402011-01-14 Richard Guenther <rguenther@suse.de>
18541
18542 PR tree-optimization/47179
18543 * target.def (ref_may_alias_errno): New target hook.
18544 * targhooks.h (default_ref_may_alias_errno): Declare.
18545 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18546 (default_ref_may_alias_errno): New function.
18547 * target.h (struct ao_ref_s): Declare.
18548 * tree-ssa-alias.c: Include target.h.
18549 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18550 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18551 (targhooks.o): Likewise.
18552 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18553 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18554
9a6c9288
RG
185552011-01-14 Richard Guenther <rguenther@suse.de>
18556
18557 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18558
0fdb0d27
RG
185592011-01-14 Richard Guenther <rguenther@suse.de>
18560
18561 PR tree-optimization/47280
18562 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18563 return CFG changes.
18564 (tree_ssa_forward_propagate_single_use_vars): Deal with
18565 CFG changes from associate_plusminus.
18566
8f66db3b
RG
185672011-01-14 Richard Guenther <rguenther@suse.de>
18568
18569 PR middle-end/47281
18570 Revert
18571 2011-01-11 Richard Guenther <rguenther@suse.de>
18572
280d9630
EB
18573 PR tree-optimization/46076
18574 * tree-ssa.c (useless_type_conversion_p): Conversions from
18575 unprototyped to empty argument list function types are useless.
8f66db3b 18576
6c0c92e6
RG
185772011-01-14 Richard Guenther <rguenther@suse.de>
18578
18579 PR tree-optimization/47286
280d9630 18580 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 18581
db09f943
MJ
185822011-01-14 Martin Jambor <mjambor@suse.cz>
18583
18584 PR middle-end/46823
18585 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18586
dde8a3a4
AS
185872011-01-13 Anatoly Sokolov <aesok@post.ru>
18588
18589 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18590 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18591 * config/xtensa/xtensa.c (xtensa_libcall_value,
18592 xtensa_function_value_regno_p): New functions.
18593 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18594
a2b63a20
KT
185952011-01-13 Kai Tietz <kai.tietz@onevision.com>
18596
18597 PR c++/47213
18598 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18599 PE specific hook.
18600 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18601 New function prototype.
18602 * config/i386/winnt.c (i386_pe_assemble_visibility):
18603 Warn only if attribute was specified by user.
18604
b41f0b34
MM
186052011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18606
18607 PR target/47251
18608 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18609 floating point.
18610 (floatunsdidf2_fcfidu): Ditto.
18611
3f3c098d
AK
186122011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18613
18614 * config/s390/s390.c (print_operand_address): Replace 'error' with
18615 'output_operand_lossage'.
18616 (print_operand): Likewise.
18617
29fa95ed
JL
186182011-01-13 Jeff Law <law@redhat.com>
18619
280d9630 18620 PR rtl-optimization/39077
29fa95ed
JL
18621 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18622 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18623 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18624 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18625 * gcse.c (prune_insertions_deletions): New function.
18626 (compute_pre_data): Use it.
18627
71d12276
DS
186282011-01-13 Dodji Seketeli <dodji@redhat.com>
18629
18630 PR debug/PR46973
18631 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18632 static function.
61052244 18633 (prune_unused_types_mark): Use it.
71d12276 18634
9b0f04e7
AB
186352011-01-13 Andrey Belevantsev <abel@ispras.ru>
18636
18637 PR rtl-optimization/45352
1c3ba85b 18638 * sel-sched.c: Update copyright years.
9b0f04e7 18639 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 18640 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 18641
d6a3e264
RH
186422011-01-12 Richard Henderson <rth@redhat.com>
18643
a49b692a
RH
18644 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18645 (TARGET_MD_ASM_CLOBBERS): New.
18646
126b1483
RH
18647 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18648 (TARGET_DELEGITIMIZE_ADDRESS): New.
18649
f3d9d2e0
RH
18650 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18651 (clzsi2, *bsch): New patterns.
18652
d84760c9
RH
18653 * config/mn10300/mn10300.md (INT): New mode iterator.
18654 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18655
ec815d65
RH
18656 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18657 flag_split_wide_types.
18658
d6a3e264
RH
18659 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18660 (mn10300_trampoline_init): Rewrite without a template, an immediate
18661 load and a direct branch.
18662 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18663
0f8ab434
AS
186642011-01-12 Anatoly Sokolov <aesok@post.ru>
18665
18666 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18667 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18668 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18669 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18670
d8a24b65
KT
186712011-01-12 Kai Tietz <kai.tietz@onevision.com>
18672
18673 PR debug/47209
18674 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18675 of type.
18676
56e22cab
JH
186772011-01-12 Jan Hubicka <jh@suse.cz>
18678
18679 PR driver/47244
18680 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18681 (PLUGIN_COND_CLOSE): New macro.
18682 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18683
4b18b3c2
RG
186842011-01-12 Richard Guenther <rguenther@suse.de>
18685
18686 PR lto/47259
18687 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18688 register variables in a MEM_REF.
18689
8e38461c
JM
186902011-01-12 Joseph Myers <joseph@codesourcery.com>
18691
18692 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18693 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18694 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18695 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18696 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18697 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18698 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18699 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18700 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18701 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18702 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18703 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18704 * config/gnu-user.h: New. Copied from linux.h.
18705 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18706 GNU_USER_TARGET_STARTFILE_SPEC.
18707 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18708 GNU_USER_TARGET_ENDFILE_SPEC.
18709 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18710 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18711 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18712 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18713 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18714 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18715 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18716 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18717 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18718 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18719 * config/arm/linux-eabi.h (CC1_SPEC): Use
18720 GNU_USER_TARGET_CC1_SPEC.
18721 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18722 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18723 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18724 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18725 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18726 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18727 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18728 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18729
a570fc16
RG
187302011-01-12 Richard Guenther <rguenther@suse.de>
18731
18732 PR other/46946
18733 * doc/invoke.texi (ffast-math): Document it is turned on
18734 with -Ofast.
18735
b0223c3e
JH
187362011-01-12 Jan Hubicka <jh@suse.cz>
18737
18738 PR tree-optimization/47233
ca1e00b3
EB
18739 * opts.c (common_handle_option): Disable ipa-reference with profile
18740 feedback.
b0223c3e 18741
1c3ba85b 187422011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
18743
18744 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
18745 error message.
18746
d853ee42
NP
187472011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18748
18749 * c-parser.c (c_lex_one_token): Updated and reindented some
18750 comments. No changes in code.
18751
4053a5a0
ILT
187522011-01-11 Ian Lance Taylor <iant@google.com>
18753
18754 * godump.c (go_output_var): Don't output the variable if there is
18755 already a type with the same name.
18756
fa3e04d2
ILT
187572011-01-11 Ian Lance Taylor <iant@google.com>
18758
18759 * godump.c (go_format_type): Don't generate float80.
18760
885fe07c
RH
187612011-01-11 Richard Henderson <rth@redhat.com>
18762
72d6e3c5
RH
18763 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18764 declaration. Rewrite for both speed and size.
18765 (mn10300_address_cost_1): Remove.
18766 (mn10300_register_move_cost): New.
18767 (mn10300_memory_move_cost): New.
18768 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18769 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18770 extensions, shifts, BSWAP, CLZ.
18771 (mn10300_wide_const_load_uses_clr): Remove.
18772 (TARGET_REGISTER_MOVE_COST): New.
18773 (TARGET_MEMORY_MOVE_COST): New.
18774 * config/mn10300/mn10300-protos.h: Update.
18775 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18776
df37c023
RH
18777 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18778 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18779 * config/mn10300/mn10300-protos.h: Update.
18780 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18781 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18782 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18783 (*test_int_bitfield, *test_byte_bitfield): Remove.
18784 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 18785 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 18786
85a337b5
RH
18787 * config/mn10300/constraints.md ("c"): Rename from "A".
18788 ("A", "D"): New constraint letters.
18789 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18790 (fmssf4, fnmasf4, fnmssf4): Likewise.
18791
a5c727e3
RH
18792 * config/mn10300/mn10300.md (isa): New attribute.
18793 (enabled): New attribute.
18794
0d9e23f4
RH
18795 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18796 (abssf2, negsf2): Define only for hardware fp.
18797 (sqrtsf2): Reformat.
18798 (addsf3, subsf3, mulsf3): Merge expander and insn.
18799
c157b3f0
RH
18800 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18801 (DEBUGGER_AUTO_OFFSET): Remove.
18802 (DEBUGGER_ARG_OFFSET): Remove.
18803
cc909bba
RH
18804 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18805 Emit register stores with the same offsets as the hardware.
18806 (mn10300_store_multiple_operation): Don't check that the register
18807 save offsets are monotonic.
18808 * config/mn10300/mn10300-protos.h: Update.
18809
e3b5c2f3
RH
18810 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18811
885fe07c
RH
18812 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18813 in terms of the value on the stack, not the MDR register.
18814
6e701822
JH
188152011-01-11 Jan Hubicka <jh@suse.cz>
18816
18817 PR lto/45721
18818 PR lto/45375
18819 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18820 (symbol_alias_set_destroy, symbol_alias_set_contains,
18821 propagate_aliases_backward): Declare.
18822 * lto-streamer-out.c (struct sets): New sturcture.
18823 (trivally_defined_alias): New function.
18824 (output_alias_pair_p): Rewrite.
18825 (output_unreferenced_globals): Fix output of alias pairs.
18826 (produce_symtab): Likewise.
18827 * ipa.c (function_and_variable_visibility): Set weak alias destination
18828 as needed in lto.
18829 * varasm.c (symbol_alias_set_t): Remove.
18830 (symbol_alias_set_destroy): Export.
18831 (propagate_aliases_forward, propagate_aliases_backward): New functions
18832 based on ...
18833 (compute_visible_aliases): ... this one; remove.
18834 (trivially_visible_alias): New
18835 (trivially_defined_alias): New.
18836 (remove_unreachable_alias_pairs): Rewrite.
18837 (finish_aliases_1): Reorganize code checking if alias is defined.
18838 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18839 in LTO mode.
18840
1b248907
RG
188412011-01-11 Richard Guenther <rguenther@suse.de>
18842
18843 PR tree-optimization/46076
18844 * tree-ssa.c (useless_type_conversion_p): Conversions from
18845 unprototyped to empty argument list function types are useless.
18846
b1923f0a
RG
188472011-01-11 Richard Guenther <rguenther@suse.de>
18848
18849 PR middle-end/45235
18850 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18851 volatile MEMs as MEM_READONLY_P.
18852
e98965af
RG
188532011-01-11 Richard Guenther <rguenther@suse.de>
18854
18855 PR tree-optimization/47239
18856 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18857
9f9ca914
JL
188582011-01-11 Jeff Law <law@redhat.com>
18859
1ee3ea05 18860 PR tree-optimization/47086
9f9ca914
JL
18861 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18862 IVs from statements that might throw.
18863
345fdcb7
JH
188642011-01-10 Jan Hubicka <jh@suse.cz>
18865
18866 PR lto/45375
18867 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18868
c459c97b
JH
188692011-01-10 Jan Hubicka <jh@suse.cz>
18870
18871 PR lto/45375
18872 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18873 when correcting profile.
18874
06c9eb51
JH
188752011-01-10 Jan Hubicka <jh@suse.cz>
18876
18877 PR lto/46083
18878 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18879 DECL_FINI_PRIORITY.
18880 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18881 Restore DECL_FINI_PRIORITY.
18882
ae9fd815
RW
188832011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18884
18885 * doc/gimple.texi: Fix quoting of multi-word return values in
18886 @deftypefn statements. Ensure presence of return value. Wrap
18887 overlong @deftypefn lines.
18888 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18889 descriptions of removed functions.
18890 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18891 of multi-word return value in @deftypefn statement.
18892
0ecb4a7c
RW
188932011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18894
18895 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18896 (Conditional Expressions, Logical Operators)
18897 (Statement and operand traversals): Do not indent smallexample
18898 code. Fix duplicate function argument in example.
18899
2e5e346d
JL
189002011-01-10 Jeff Law <law@redhat.com>
18901
1ee3ea05 18902 PR tree-optimization/47141
2e5e346d
JL
18903 * ipa-split.c (split_function): Handle case where we are
18904 returning a value and the return block has a virtual operand phi.
18905
cf9712cc
JH
189062011-01-10 Jan Hubicka <jh@suse.cz>
18907
1c3ba85b 18908 PR tree-optimization/47234
cf9712cc
JH
18909 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18910 (pass_feedback_split_functions): Declare.
18911 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18912 tree-profile.
18913 * ipa-split.c (gate_split_functions): Update comments; disable
18914 split-functions for profile_arc_flag and branch_probabilities.
18915 (gate_feedback_split_functions): New function.
18916 (execute_feedback_split_functions): New function.
18917 (pass_feedback_split_functions): New global var.
18918
94cd932c
L
189192011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18920
18921 PR lto/46760
18922 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18923 calling gimple_call_set_cannot_inline.
18924
fbbfcaf1
IS
189252011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18926
18927 * config/darwin-sections.def: Remove unused section.
18928
d06865bf
DK
189292011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18930
18931 PR c++/47218
18932 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18933
96bbfbac
NP
189342011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18935
18936 PR objc/47232
18937 * c-parser.c (c_parser_declaration_or_fndef): Improved
18938 error message.
18939
1ba6516f
KT
189402011-01-09 Kai Tietz <kai.tietz@onevision.com>
18941
18942 * config/i386/winnt.c (i386_pe_start_function): Make sure
18943 to switch back to function's section.
18944
0c5d770e
IS
189452011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18946
18947 PR gcc/46902
18948 PR testsuite/46912
18949 * plugin.c: Move include of dlfcn.h from here...
18950 * system.h: ... to here.
18951
189522011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
18953
18954 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18955 file name.
18956 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18957 two extra empty pages in PDF output.
18958
046608a3
NP
189592011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18960
18961 PR objc/47078
18962 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18963 for error recovery purposes behave as if it was not specified so
18964 that the default type is usd.
18965
8cb114b9
JH
189662011-01-07 Jan Hubicka <jh@suse.cz>
18967
18968 PR tree-optmization/46469
18969 * ipa.c (function_and_variable_visibility): Clear needed flags on
18970 nodes with external decls; handle weakrefs merging correctly.
18971
b294a75e
JM
189722011-01-07 Joseph Myers <joseph@codesourcery.com>
18973
18974 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18975 not false.
18976
96bdf9b4
JH
189772011-01-07 Jan Hubicka <jh@suse.cz>
18978
f60c2554 18979 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
18980 and no longer claim that gold is required for linker plugin.
18981 * configure: Regenerate.
18982 * gcc.c (PLUGIN_COND): New macro.
18983 (LINK_COMMAND_SPEC): Use it.
18984 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18985 * config.in (HAVE_LTO_PLUGIN): New.
18986 * configure.ac (--with-lto-plugin): New parameter; autodetect
18987 HAVE_LTO_PLUGIN.
18988
17afc0fe
JH
189892011-01-07 Jan Hubicka <jh@suse.cz>
18990
18991 PR tree-optimization/46367
18992 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18993 when we can update original.
18994 (cgraph_mark_inline_edge): Sanity check.
18995 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18996
d4c48c0f
UW
189972011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18998
18999 * config/spu/spu.h (ASM_COMMENT_START): Define.
19000
96f5b137
L
190012011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19002
19003 PR driver/42445
19004 * gcc.c (%>S): New.
19005 (SWITCH_KEEP_FOR_GCC): Likewise.
19006 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19007 (do_spec_1): Handle "%>".
19008
19009 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19010
c6a8f6de
JJ
190112011-01-07 Jakub Jelinek <jakub@redhat.com>
19012
c21bbd7a
JJ
19013 PR target/47201
19014 * config/i386/i386.c (ix86_delegitimize_address): If
19015 simplify_gen_subreg fails, return orig_x.
19016
c6a8f6de
JJ
19017 PR bootstrap/47187
19018 * value-prof.c (gimple_stringop_fixed_value): Handle
19019 lhs of the call properly.
19020
fe95fbf9
JH
190212011-01-07 Jan Hubicka <jh@suse.cz>
19022
19023 PR lto/45375
19024 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19025
14d11d40
IS
190262011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19027
72e961c8
EB
19028 * target.def (function_switched_text_sections): New hook.
19029 * doc/tm.texi: Regenerated.
19030 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19031 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
19032 (final_scan_insn): Call function_switched_text_sections when a
19033 mid-function section change occurs.
14d11d40 19034 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
19035 * config/darwin-protos.h (darwin_function_switched_text_sections):
19036 Likewise.
14d11d40 19037 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 19038 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19039
0b764288
IS
190402011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19041
19042 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19043 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19044 the secondary code fragment when outputting for DWARF == 2.
19045
2ac6bb04
AS
190462011-01-07 Anatoly Sokolov <aesok@post.ru>
19047
19048 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19049 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19050 Remove.
19051 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19052 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19053
9f82de11
EB
190542011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19055
19056 PR debug/46704
280d9630
EB
19057 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19058 when it is not empty.
9f82de11
EB
19059
190602011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 19061
1ed72abf 19062 Bobcat Enablement
14b52538 19063 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 19064 (case ${target}): Add btver1.
14b52538 19065 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 19066 -march=native recognize btver1 processors.
14b52538 19067 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 19068 btver1 def_and_undef
14b52538 19069 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
19070 btver1 cost table.
19071 (m_BTVER1): New definition.
19072 (m_AMD_MULTIPLE): Includes m_BTVER1.
19073 (initial_ix86_tune_features): Add btver1 tune.
19074 (processor_target_table): Add btver1 entry.
19075 (static const char *const cpu_names): Add btver1 entry.
19076 (software_prefetching_beneficial_p): Add btver1.
19077 (ix86_option_override_internal): Add btver1 instruction sets.
19078 (ix86_issue_rate): Add btver1.
19079 (ix86_adjust_cost): Add btver1.
14b52538 19080 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
19081 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19082 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
19083 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19084
e1a973d8
RO
190852011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19086
19087 PR target/43309
19088 * config/i386/i386.c (legitimize_tls_address)
19089 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19090 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19091 (tls_initial_exec_64_sun): New pattern.
19092
c73f67c5
GP
190932011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19094
19095 * doc/invoke.texi (Overall Options): Improve wording and markup
19096 of the description of -wrapper.
19097
bc4c6f9c
JM
190982011-01-06 Joseph Myers <joseph@codesourcery.com>
19099
19100 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19101 rdynamic, threads): New Driver options.
19102
adb75db0
RO
191032011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19104
19105 PR target/38118
19106 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19107 if coming from .tdata.
19108 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19109
402c1cb4
JH
191102011-01-06 Jan Hubicka <jh@suse.cz>
19111
19112 PR lto/47188
19113 * collect2.c (main): Do not enable LTOmode when plugin is active.
19114
a4da6485
RO
191152011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19116
19117 PR other/45915
19118 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19119 --version output if supported.
19120 * configure: Regenerate.
19121
028dbdf4
JM
191222011-01-06 Joseph Myers <joseph@codesourcery.com>
19123
19124 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19125 Driver options.
19126
dfe776dd
JJ
191272011-01-06 Jakub Jelinek <jakub@redhat.com>
19128
19129 PR c/47150
19130 * c-convert.c (convert): When converting a complex expression
19131 other than COMPLEX_EXPR to a different complex type, ensure
19132 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19133 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19134 when converting COMPLEX_TYPE.
19135
210dedfe
IR
191362011-01-06 Ira Rosen <irar@il.ibm.com>
19137
19138 PR tree-optimization/47139
19139 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19140 only the last reduction value is used outside the loop. Update
19141 documentation.
19142
cd33a412
JM
191432011-01-05 Joseph Myers <joseph@codesourcery.com>
19144
19145 * config/rtems.opt: New.
19146 * config.gcc (*-*-rtems*): Use rtems.opt.
19147
819edd94
CF
191482011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19149
19150 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19151 processors do not support 3DNow instructions.
19152
dc242c4a
UW
191532011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19154
19155 * config/spu/spu.c (spu_option_override): Set parameter
19156 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19157
be286227
JH
191582011-01-05 Jan Hubicka <jh@suse.cz>
19159
19160 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19161 at the command line.
19162
644e637f
MJ
191632011-01-05 Martin Jambor <mjambor@suse.cz>
19164
19165 PR lto/47162
19166 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19167 deltas on streamed outgoing edges.
19168 (output_node_opt_summary): Output info for outgoing edges only when
19169 the node is in new parameter set.
19170 (output_cgraph_opt_summary): New parameter set, passed to the two
19171 aforementioned functions. Update its forward declaration and its
19172 callee too.
19173
7bd11157
TT
191742011-01-05 Tom Tromey <tromey@redhat.com>
19175
19176 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19177 operator to c_finish_omp_atomic.
19178 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19179 (build_unary_op): Update.
19180 (build_modify_expr): Update.
19181 (build_asm_expr): Update.
19182
f626b979
UW
191832011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19184
19185 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19186 newly inserted insns.
19187 (pad_bb): Likewise.
19188 (spu_emit_branch_hint): Likewise.
19189 (insert_hbrp_for_ilb_runout): Likewise.
19190 (spu_machine_dependent_reorg): Call df_finish_pass after
19191 schedule_insns returns.
19192
4c825c02
UW
191932011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19194
19195 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19196
5e9fba51
EB
191972011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19198
19199 PR tree-optimization/47005
19200 * tree-sra.c (struct access): Add 'non_addressable' bit.
19201 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19202 (decide_one_param_reduction): Return 0 if the parameter is passed by
19203 reference and one of the accesses in the group is non_addressable.
19204
3ebb5ca6
EB
192052011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19206
19207 PR tree-optimization/47056
19208 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19209 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19210 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19211
d5d4d14e
EB
192122011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19213
19214 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19215 initializer. Skip view conversions from aggregate types.
19216
d996ef70
KT
192172011-01-04 Kai Tietz <kai.tietz@onevision.com>
19218
19219 PR bootstrap/47055
19220 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19221
509d65dd 192222011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
19223
19224 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19225 obvious typo.
19226
55c623b5
UW
192272011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19228
19229 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19230 on empty epilogue sequences.
19231
b98d6b35
JM
192322011-01-04 Joseph Myers <joseph@codesourcery.com>
19233
19234 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19235 non-static): New Driver options.
19236
a0d43bac
JZ
192372011-01-04 Jie Zhang <jie@codesourcery.com>
19238
19239 PR driver/47137
19240 * gcc.c (default_compilers[]): Set combinable field to 0
19241 for all assembly languages.
19242
2b18eb32
MX
192432011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19244
19245 * config/mips/loongson3a.md: New file.
19246 * config/mips/mips.md: Include loongson3a.md.
19247 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19248 TUNE_LOONGSON_3A.
19249
42a48c4f
EB
192502011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19251
19252 PR middle-end/47017
19253 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19254 instead of convert_memory_address_addr_space on the base expression.
19255
9c1732c4
UW
192562011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19257
19258 * config/spu/spu.c (spu_option_override): Update error text
19259 for bad -march= / -mtune= values.
19260
aa474365
UW
192612011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19262
19263 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19264 if branch-hint optimization will be performed.
19265
9766135b
JJ
192662011-01-03 Jakub Jelinek <jakub@redhat.com>
19267
371556ee
JJ
19268 PR tree-optimization/47148
19269 * ipa-split.c (split_function): Convert arguments to
19270 DECL_ARG_TYPE if possible.
19271
1ac12fa2
JJ
19272 PR tree-optimization/47155
19273 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19274 when computing uns.
19275
9766135b
JJ
19276 PR rtl-optimization/47157
19277 * combine.c (try_combine): If undobuf.other_insn becomes
19278 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19279 and set *new_direct_jump_p too.
19280
f4a2e571
SP
192812011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19282
19283 PR tree-optimization/47021
19284 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19285
9f8e43c0
JJ
192862011-01-03 Jakub Jelinek <jakub@redhat.com>
19287
19288 * gcc.c (process_command): Update copyright notice dates.
19289 * gcov.c (print_version): Likewise.
19290 * gcov-dump.c (print_version): Likewise.
19291 * mips-tfile.c (main): Likewise.
19292 * mips-tdump.c (main): Likewise.
19293
1a2e38f3
MJ
192942011-01-03 Martin Jambor <mjambor@suse.cz>
19295
19296 PR tree-optimization/46801
19297 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19298 aggregate fields start at byte boundary instead of the bit-field flag.
19299
56b721c5
L
193002011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19301
19302 PR driver/47137
19303 * gcc.c (main): Revert revision 168407.
19304
839d549b
MJ
193052011-01-03 Martin Jambor <mjambor@suse.cz>
19306
19307 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19308
4ce99a20 193092011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
19310
19311 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19312 vector optab to expand vector/scalar shift, update gimple to vector.
19313
76df0ae6
MJ
193142011-01-03 Martin Jambor <mjambor@suse.cz>
19315
19316 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19317 a thunk.
19318
ce47fda3
MJ
193192011-01-03 Martin Jambor <mjambor@suse.cz>
19320
19321 PR tree-optimization/46984
19322 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19323 HOST_WIDE_INT.
19324 (cgraph_create_indirect_edge): Fixed line length.
19325 (cgraph_indirect_call_info): Declare.
19326 (cgraph_make_edge_direct) Update declaration.
19327 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19328 (cgraph_create_indirect_edge): Use it.
19329 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19330 callees.
19331 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19332 the new thunk_delta representation.
19333 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19334 HOST_WIDE_INT.
19335 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19336 (ipa_read_indirect_edge_info): Likewise.
19337 * lto-cgraph.c (output_edge_opt_summary): New function.
19338 (output_node_opt_summary): Call it on all outgoing edges.
19339 (input_edge_opt_summary): New function.
19340 (input_node_opt_summary): Call it on all outgoing edges.
19341
1e67fa1f
L
193422011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19343
19344 PR driver/47137
19345 * gcc.c (main): Don't check have_o when settting combine_inputs.
19346
6656b2ac
EB
193472011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19348
19349 * regrename.c: Add general comment describing the pass.
19350 (struct du_head): Remove 'length' field.
19351 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19352 (regrename_optimize): Do not sort chains. Rework comments, add others.
19353 Force renaming to the preferred class (if any) in the first pass and do
19354 not consider registers that belong to it in the second pass.
19355 (create_new_chain): Do not set 'length' field.
19356 (scan_rtx_reg): Likewise.
19357
bc470c24
JJ
193582011-01-02 Jakub Jelinek <jakub@redhat.com>
19359
4e996296
JJ
19360 PR tree-optimization/47140
19361 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19362 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19363 to bit_value_binop.
19364
bc470c24 19365 PR rtl-optimization/47028
6656b2ac
EB
19366 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19367 parm_birth_insn instead of at the beginning of first bb.
bc470c24 19368
5af62fcd 193692011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
19370
19371 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19372 Remove the word "see" before "@pxref".
19373 * doc/rtl.texi: Remove the word "see" before "@pxref".
19374
0e20c89f
JH
193752011-01-01 Jan Hubicka <jh@suse.cz>
19376
6656b2ac
EB
19377 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19378 memory.
0e20c89f 19379
220e83ca
KT
193802011-01-01 Kai Tietz <kai.tietz@onevision.com>
19381
19382 PR target/38662
6656b2ac 19383 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 19384
ad41bd84 19385\f
797103eb 19386Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
19387
19388Copying and distribution of this file, with or without modification,
19389are permitted in any medium without royalty provided the copyright
19390notice and this notice are preserved.