]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Revert spurious change to mn10300_get_live_callee_saved_regs
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
880962ac
GJL
12011-06-28 Georg-Johann Lay <avr@gjlay.de>
2
3 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
4 avr-*-* and avr-*-rtems* targets.
5
6 * config/avr/elf.h: New file.
7 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8 (TARGET_ASM_SELECT_SECTION): Define.
9 (INIT_SECTION_ASM_OP): Undefine.
10 (FINI_SECTION_ASM_OP): Undefine.
11 (READONLY_DATA_SECTION_ASM_OP): Undefine.
12 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
13 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
14 * config/avr/avr.h:
15 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
16 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
17 (MAX_OFILE_ALIGNMENT): Move to elf.h.
18 (STRING_LIMIT): Move to elf.h.
19 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
20 (ASM_DECLARE_OBJECT_NAME): Remove.
21 (ESCAPES): Remove.
22 (ASM_OUTPUT_SKIP): Remove.
23 (DWARF2_DEBUGGING_INFO): Remove.
24 (OBJECT_FORMAT_ELF): Remove.
25 (USER_LABEL_PREFIX): Remove.
26 (ASM_OUTPUT_EXTERNAL): Remove.
27 (ASM_OUTPUT_ASCII): Remove.
28 (TYPE_ASM_OP): Remove.
29 (SIZE_ASM_OP): Remove.
30 (WEAK_ASM_OP): Remove.
31 (STRING_ASM_OP): Remove.
32 (SET_ASM_OP): Remove.
33 (ASM_WEAKEN_LABEL): Remove.
34 (TYPE_OPERAND_FMT): Remove.
35 (ASM_DECLARE_FUNCTION_SIZE): Remove.
36 (ASM_FINISH_DECLARE_OBJECT): Remove.
37 (NO_DOLLAR_IN_LABEL): Remove.
38 (ASM_GENERATE_INTERNAL_LABEL): Remove.
39 (ASM_OUTPUT_CASE_LABEL): Remove.
40 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
41 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
42 (gas_output_ascii): Remove.
43 (gas_output_limited_string): Remove.
44 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
45 * config/avr/avr-protos.h
46 (gas_output_ascii): Remove prototye.
47 (gas_output_limited_string): Remove prototype.
48
a1b5eb93
RE
492011-06-27 Richard Earnshaw <rearnsha@arm.com>
50
51 PR target/48637
52 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
53 asm operands.
54
310e71a8
JH
552011-06-27 Jan Hubicka <jh@suse.cz>
56
57 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
58 instead of references in node.
59
171da07a
RH
602011-06-27 Richard Henderson <rth@redhat.com>
61
62 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
63 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
64 inside ifdef.
65
dc2a58da
JJ
662011-06-27 Jakub Jelinek <jakub@redhat.com>
67
56300785
JJ
68 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
69
45d439ac
JJ
70 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
71 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
72 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
73 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
74 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
75 (evaluate_stmt, execute_fold_all_builtins): Handle
76 BUILT_IN_ASSUME_ALIGNED.
77 * tree-ssa-dce.c (propagate_necessity): Likewise.
78 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
79 call_may_clobber_ref_p_1): Likewise.
80 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
81 (expand_builtin_assume_aligned): New function.
82 * doc/extend.texi (__builtin_assume_aligned): Document.
83
dc2a58da
JJ
84 PR debug/49544
85 * cselib.c (promote_debug_loc): If cselib_preserve_constants
86 and l has two DEBUG_INSN owned locs instead of just one, adjust
87 the second location's setting_insn too.
88
0d72f628
RO
892011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90
91 PR libmudflap/38738
92 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
93
bebd619e
NC
942011-06-27 Nick Clifton <nickc@redhat.com>
95
96 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
97 convert bit position of highest bit set into a count of the high
98 zero bits.
99
353b39fa
EB
1002011-06-27 Eric Botcazou <ebotcazou@adacore.com>
101
102 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
103
a7af037b
EB
1042011-06-27 Eric Botcazou <ebotcazou@adacore.com>
105
106 PR lto/48492
107 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
108 to a NULL parent.
109
1c86160a
RG
1102011-06-27 Richard Guenther <rguenther@suse.de>
111
112 PR tree-optimization/49394
113 * passes.c (execute_one_pass): Restore current_pass after
114 applying IPA transforms.
115
5da49a9d
KT
1162011-06-27 Kai Tietz <ktietz@redhat.com>
117
118 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
119 out of type precision after operation.
120 (find_bswap): Take for limit value the integer auto-
121 promotion into account.
122
9242213f
EB
1232011-06-27 Eric Botcazou <ebotcazou@adacore.com>
124
125 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
126 forward scan as well.
127
db8b22ef
TG
1282011-06-27 Tristan Gingold <gingold@adacore.com>
129
130 PR target/44241
131 * config/vms/vms-protos.h: New file.
132 * config/vms/vms-crtlmap.map: New file.
133 * config/vms/vms.c: New file.
134 * config/vms/make-crtlmap.awk: New file.
135 * config/vms/vms-crtl.h: File removed.
136 * config/vms/vms-crtl-64.h: File removed.
137 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
138 * config/alpha/vms64.h: Do not include vms-crtl-64.h
139 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
140 clear some builtins on VMS. Calls vms_patch_builtins.
141 (avms_asm_output_external): Remove.
142 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
143 (struct crtl_name_spec): Remove
144 (DO_CTRL_NAMES): Remove.
145 * config/ia64/vms.h (struct crtl_name_spec): Remove
146 (DO_CTRL_NAMES): Remove.
147 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
148 clear some builtins on VMS. Calls vms_patch_builtins.
149 (ia64_asm_output_external): Remove DO_CRTL_NAME.
150 * config/ia64/vms64.h: Do not include vms-crtl-64.h
151 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
152 tm_p_file.
153
b213221d
TG
1542011-06-27 Tristan Gingold <gingold@adacore.com>
155
156 * config/alpha/alpha.c (alpha_end_function): Always generate .end
157 directive on VMS.
158
157b9300
EB
1592011-06-27 Eric Botcazou <ebotcazou@adacore.com>
160
161 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
162 the function receives nonlocal gotos.
163
ccbf5bb4
RG
1642011-06-27 Richard Guenther <rguenther@suse.de>
165
166 PR tree-optimization/49536
167 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
168 For non-scalar inner types use a scalar type according to
169 the scalar inner mode.
170
fe4cd14b
RG
1712011-06-27 Richard Guenther <rguenther@suse.de>
172
173 PR tree-optimization/49365
174 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
175
afc3f22f
RS
1762011-06-27 Richard Guenther <rguenther@suse.de>
177
178 PR tree-optimization/49169
179 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
180 the alignment of function decls.
181
92590751 1822011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
183
184 PR target/47997
185 * config/darwin.c (darwin_mergeable_string_section): Place string
186 constants in '.cstring' rather than '.const' when CF/NSStrings are
187 active.
188
605354f3
EB
1892011-06-26 Eric Botcazou <ebotcazou@adacore.com>
190
191 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
192 (emit_save_register_window): Likewise.
193 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
194 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
195 Swap back %o7/%i7 in register naming.
196
0e9197f5
IS
1972011-06-25 Iain Sandoe <iains@gcc.gnu.org>
198
199 PR driver/49371
200 * config/darwin.c (darwin_override_options): Improve warning when
201 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
202 is given with fpie/fPIE.
203 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
204 * config/darwin9.h (PIE_SPEC): New.
53461199 205
605354f3 2062011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
207
208 * timevar.c (timevar_print): Increase width for display of timevar
209 name.
210
f796c438
JJ
2112011-06-24 Jakub Jelinek <jakub@redhat.com>
212
213 PR c++/46400
214 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
215 instead of TYPE_CHAIN for chain_next for types.
216
a7289eaf
RH
2172011-06-24 Richard Henderson <rth@redhat.com>
218
219 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
220 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
221 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
222 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
223 (sparc_flat_expand_prologue): Emit individual instructions
224 instead of one of the above.
225
c4b9a87e
ER
2262011-06-24 Easwaran Raman <eraman@google.com>
227
228 PR rtl-optimization/49429
229 PR target/49454
230 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
231 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
232 used to copy y into x.
233 * calls.c (initialize_argument_information): Mark
234 an argument addressable if it is passed by invisible reference.
235 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
236 if it is passed by reference.
237
5ac6c59e
L
2382011-06-24 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR rtl-optimization/49504
241 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
242 subtraction of a pointer in Pmode if pointers extend unsigned.
243 (num_sign_bit_copies1): Likewise.
5ac6c59e 244
b807e627
MJ
2452011-06-24 Martin Jambor <mjambor@suse.cz>
246
247 PR tree-optimizations/49516
248 * tree-sra.c (sra_modify_assign): Choose the safe path for
249 aggregate copies if we also did scalar replacements.
250
9a1ea4b9
RR
2512011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
252
253 PR target/49335
254 * config/arm/predicates.md (add_operator): New.
255 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
256 in Thumb2.
257
949cfd0a
AK
2582011-06-24 Andi Kleen <ak@linux.intel.com>
259
260 * tree-sra.c (type_internals_preclude_sra_p): Add msg
261 parameter. Split up ifs and report reason in *msg.
262 (reject): Add.
263 (find_var_candiate): Add msg variable.
264 Split up ifs and report reason to reject.
265 (find_param_candidates): Add msg variable.
266 Pass msg to type_internals_preclude_sra_p.
267
49e9c661 2682011-06-23 Jeff Law <law@redhat.com>
ad3577df 269
b0c11403
JL
270 PR middle-end/48770
271 * reload.h (reload): Change to return a bool.
272 * ira.c (ira): If requested by reload, run a fast DCE pass after
273 reload has completed. Fix comment typo.
274 * reload1.c (need_dce): New file scoped static.
275 (reload): Set reload_completed here. Return whether or not a DCE
276 pass after reload is needed.
277 (delete_dead_insn): Set need_dce as needed.
278
ad3577df
JL
279 PR middle-end/49465
280 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
281 to detect threading through joiner block. If there was already
282 an edge to the new target, then do not change the PHI nodes.
283
7cf64710
JJ
2842011-06-23 Jakub Jelinek <jakub@redhat.com>
285
286 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
287 get_pointer_alignment to see if base isn't sufficiently aligned.
288
febb1302
JH
2892011-06-23 Jan Hubicka <jh@suse.cz>
290
291 PR tree-optimize/49373
292 * tree-pass.h (all_late_ipa_passes): Declare.
293 * cgraphunit.c (init_lowered_empty_function): Fix properties.
294 (cgraph_optimize): Execute late passes; remove unreachable funcions after
295 materialization.
296 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or LTOing.
297 * passes.c (all_late_ipa_passes): Declare.
298 (dump_passes, register_pass): Handle late ipa passes.
299 (init_optimization_passes): Move ipa_pta to late passes; schedule fixup_cfg
300 at beggining of all_passes.
301 (apply_ipa_transforms): New function.
302 (execute_one_pass): When doing simple ipa pass, apply all transforms.
303
4c77620d
JM
3042011-06-23 Joseph Myers <joseph@codesourcery.com>
305
306 * params.c: Include common/common-target.h. Don't include tm.h.
307 (lang_independent_params): Move from toplev.c.
308 (global_init_params): New.
309 * params.h (global_init_params): Declare.
310 * target.def (default_params): Move to common-target.def.
311 * toplev.c (lang_independent_options): Remove.
312 (lang_independent_params): Move to params.c.
313 (general_init): Use global_init_params.
314 * common/common-target.def (option_default_params): Move from
315 target.def.
316 * common/config/ia64/ia64-common.c: Include params.h.
317 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
318 from ia64.c.
319 * common/config/rs6000/rs6000-common.c: Include params.h.
320 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
321 from rs6000.c.
322 * common/config/sh/sh-common.c: Include params.h.
323 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
324 from sh.c.
325 * common/config/spu/spu-common.c: Include params.h.
326 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
327 from spu.c.
328 * config/ia64/ia64.c (ia64_option_default_params,
329 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
330 * config/rs6000/rs6000.c (rs6000_option_default_params,
331 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
332 * config/sh/sh.c (sh_option_default_params,
333 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
334 * config/spu/spu.c (spu_option_default_params,
335 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
336 * Makefile.in (OBJS): Remove params.o.
337 (OBJS-libcommon-target): Add params.o.
338 (params.o, $(common_out_object_file)): Update dependencies.
339 * doc/tm.texi: Regenerate.
340
6aad1e38
AM
3412011-06-23 Alan Modra <amodra@gmail.com>
342
343 PR bootstrap/49383
344 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
345 invocation for 2011-06-09 changes.
346
4fb489e7
JJ
3472011-06-22 Jakub Jelinek <jakub@redhat.com>
348
fb79f500
JJ
349 PR libgomp/49490
350 * omp-low.c (expand_omp_for_static_nochunk): Only
351 use n ceil/ nthreads size for the first
352 n % nthreads threads in the team instead of
353 all threads except for the last few ones which
354 get less work or none at all.
355
4fb489e7
JJ
356 PR debug/49496
357 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
358 uses.
359
9c7c9f10
RG
3602011-06-22 Richard Guenther <rguenther@suse.de>
361
362 PR tree-optimization/49493
363 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
364 Refer to the alias target of variables.
365 (associate_varinfo_to_alias_1): Remove.
366 (ipa_pta_execute): Do not associate aliases with anything.
367 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
368 (cgraph_function_node): Likewise.
369 (cgraph_function_or_thunk_node): Likewise.
370 (varpool_variable_node): Likewise.
371
7cf13d1f
NS
3722011-06-22 Nathan Sidwell <nathan@codesourcery.com>
373
374 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
375 typo.
376 * config.gcc (arm*-*-linux*): Default to gnu tls.
377 (arm*-*-*): Add --with-tls option.
378 (all_defaults): Add 'tls'.
379
78a8eb4e
RH
3802011-06-22 Richard Henderson <rth@redhat.com>
381
382 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
383 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
384 (dwarf2out_frame_debug_cfa_window_save): Rename from
385 dwarf2out_window_save; make static.
386 * tree.h (dwarf2out_window_save): Don't declare.
387
388 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
389 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
390 (emit_save_register_window): Rename from gen_save_register_window;
391 emit the insn and add REG_CFA_* notes.
392 (sparc_expand_prologue): Update to match.
393 * config/sparc/sparc.md (save_register_window_1): Simplify from
394 save_register_window<P:mode>.
395
3b4c46d7
L
3962011-06-22 H.J. Lu <hongjiu.lu@intel.com>
397
398 PR target/49497
399 * config/i386/i386.md (*lea_general_2): Always allow SImode.
400 (*lea_general_2_zext): Likewise.
401 (imul to lea peepholes): Use const359_operand and check
402 TARGET_PARTIAL_REG_STALL.
403
404 * config/i386/predicates.md (const359_operand): New.
405
4399cf59
MM
4062011-06-22 Michael Matz <matz@suse.de>
407
408 * cgraphunit.c (assemble_thunk): Use correct return type.
409
31a0c825
DP
4102011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
411 Dmitry Melnik <dm@ispras.ru>
412
413 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
414 (neon_output_shift_immediate): Ditto.
415 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
416 prototype.
417 (neon_output_shift_immediate): Ditto.
418 * config/arm/neon.md (vashl<mode>3): Modified constraint.
419 (vashr<mode>3_imm): New insn pattern.
420 (vlshr<mode>3_imm): Ditto.
421 (vashr<mode>3): Modified constraint.
422 (vlshr<mode>3): Ditto.
423 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
424 predicate.
425 (imm_for_neon_rshift_operand): Ditto.
426 (imm_lshift_or_reg_neon): Ditto.
427 (imm_rshift_or_reg_neon): Ditto.
428
429 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
430
ddb555ed
JJ
4312011-06-22 Jakub Jelinek <jakub@redhat.com>
432
36dc1a88
JJ
433 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
434 builtin calls even if likelyvalue is not CONSTANT.
435 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
436 Return get_value_for_expr of first operand
437 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
438 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
439 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
440 their non-checking counterparts.
441 (call_may_clobber_ref_p_1): Likewise.
442 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
443 like their non-checking counterparts.
444 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
445 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
446 like their non-checking counterparts.
447 (find_func_clobbers): Likewise.
448 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
449 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
450
41cd4957
JJ
451 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
452 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
453 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
454 of base type reference as argument.
455 (resolve_addr_in_expr): Likewise. Fix keep computation.
456 (convert_descriptor_to_signed): Renamed to...
457 (convert_descriptor_to_mode): ... this. For wider types convert
458 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
459 untyped.
460 (typed_binop): New function.
461 (scompare_loc_descriptor, ucompare_loc_descriptor,
462 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
463 default to unsigned type instead of signed.
464
ddb555ed
JJ
465 PR debug/47858
466 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
467 (gimple_build_debug_source_bind_stat): New prototype.
468 (gimple_build_debug_source_bind): Define.
469 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
470 gimple_debug_source_bind_get_value,
471 gimple_debug_source_bind_get_value_ptr,
472 gimple_debug_source_bind_set_var,
473 gimple_debug_source_bind_set_value): New inlines.
474 * gimple.c (gimple_build_debug_source_bind_stat): New function.
475 * gimple-pretty-print.c (dump_gimple_debug): Handle
476 GIMPLE_DEBUG_SOURCE_BIND.
477 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
478 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
479 * tree-parloops.c (eliminate_local_variables,
480 separate_decls_in_region): Likewise.
481 (separate_decls_in_region_debug): Renamed from
482 separate_decls_in_region_debug_bind. Handle
483 gimple_debug_source_bind_p.
484 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
485 prototypes.
486 (DECL_HAS_DEBUG_ARGS_P): Define.
487 (struct tree_function_decl): Add has_debug_args_flag field.
488 * tree.c (debug_args_for_decl): New variable.
489 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
490 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
491 (rewrite_debug_stmt_uses): New function.
492 (rewrite_stmt): Use it to rewrite debug stmt uses.
493 * rtl.def (DEBUG_PARAMETER_REF): New.
494 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
495 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
496 DEBUG_PARAMETER_REF.
497 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
498 * print-rtl.c (print_rtx): Likewise.
499 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
500 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
501 debug stmts in the first bb.
502 * tree-inline.c (remap_ssa_name): If remapping default def
503 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
504 a source bind debug stmt.
505 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
506 (maybe_move_debug_stmts_to_successors): Likewise.
507 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
508 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
509 debug args vector from old_decl to new_decl.
510 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
511 or modified parameters, add debug bind stmts before call
512 setting DEBUG_EXPR_DECL which is remembered in debug args
513 vector.
514 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
515 on DECL_DEBUG_EXPRs from debug args vector.
516 (expand_debug_source_expr): New function.
517 (expand_debug_locations): Use it for source bind insns.
518 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
519 * var-tracking.c (prepare_call_arguments): Add debug args
520 to call_arguments if any.
521 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
522 output_loc_operands, output_loc_operands_raw,
523 resolve_addr_in_expr, compare_loc_operands): Handle
524 DW_OP_GNU_parameter_ref.
525 (get_ref_die_offset, parameter_ref_descriptor): New functions.
526 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
527 (gen_subprogram_die): Handle parameters identified by
528 DEBUG_PARAMETER_REF.
529
ccdc2164
NS
5302011-06-22 Nathan Sidwell <nathan@codesourcery.com>
531
532 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
533 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
534 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
535 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
536 (arm_tls_descseq_addr): New.
537 (legitimize_tls_address): Add tlsdesc support.
538 (arm_cannot_copy_insn_p): Check for tlscall.
539 (arm_emit_tls_decoration): Likewise.
540 * config/arm/arm.h (TARGET_GNU2_TLS): New.
541 (OPTION_DEFAULT_SPECS): Add with-tls support.
542 * config/arm/arm.md (R1_REGNUM): Define.
543 (tlscall): New.
544 * config/arm/arm.opt (tls_type): New enumeration type and values.
545 (mtls-dialect): New switch.
546 * config/arm/arm-opts.h (enum tls_type): New.
547
70e41a6a
NP
5482011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
549
550 * attribs.c (register_attribute): Added assert to check that all
551 attribute specs are registered with a name that is not empty and
552 does not start with '_'.
553 (decl_attributes): Avoid the lookup of the "naked" attribute spec
554 if the function has no attributes.
555 * tree.c (is_attribute_with_length_p): Removed.
556 (is_attribute_p): Removed.
557 (private_is_attribute_p): New.
558 (private_lookup_attribute): New.
559 (lookup_attribute): Removed.
560 (lookup_ident_attribute): New.
561 (remove_attribute): Require the first argument to be in the form
562 'text', not '__text__'. Updated asserts.
563 (merge_attributes): Use lookup_ident_attributes instead of
564 lookup_attribute.
565 (merge_dllimport_decl_attributes): Use remove_attribute.
566 (attribute_list_contained): Likewise.
567 (attribute_list_equal): Immediately return 1 if the arguments are
568 identical pointers.
569 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
570 'int'. Require the first argument to be in the form 'text', not
571 '__text__'. Require the second argument to be an identifier.
572 (lookup_attribute): Made inline. Require the first argument to be
573 in the form 'text', not '__text__'.
574 (private_is_attribute_p, private_lookup_attribute): New.
575 Updated comments.
576
e0a8ecf2
AM
5772011-06-21 Andrew MacLeod <amacleod@redhat.com>
578
579 * builtins.c: Add sync_ or SYNC__ to builtin names.
580 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
581 * omp-low.c: Add sync_ or SYNC__ to builtin names.
582
663827d3 5832011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 584
663827d3
GJL
585 PR target/33049
586 * config/avr/avr.md (extzv): New expander.
587 (*extzv): New insn.
588 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
589 * config/avr/constraints.md (C04): New constraint.
590 * doc/md.texi (Machine Constraints): Document it.
591
146aef0b
JJ
5922011-06-21 Jakub Jelinek <jakub@redhat.com>
593
594 PR middle-end/49489
595 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
596 unsignedp argument instead of 1 for clrsb_optab.
597 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
598 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
599 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
600 * optabs.c (widen_leading): Call widen_operand and expand_unop
601 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 602 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 603
c0503294
GJL
6042011-06-21 Georg-Johann Lay <avr@gjlay.de>
605
606 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
607
3801c801
BS
6082011-06-21 Bernd Schmidt <bernds@codesourcery.com>
609
0bddee8e
BS
610 * gensupport.c (add_define_attr): New static function.
611 (is_predicable): Allow multi-alternative lists for the "predicable"
612 attribute.
613 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
614 (process_one_cond_exec): Call alter_attrs_for_insn.
615 * doc/md.texi (Defining Attributes): Mention some standard names.
616 (Conditional Execution): Update documentation for "predicable".
617
3801c801
BS
618 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
619 __builtin_clrsbll): Document.
620 * doc/rtl.texi (clrsb): New entry.
621 * optabs.c (widen_leading): Renamed from widen_clz. New argument
622 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
623 (expand_unop): Handle clrsb_optab.
624 (init_optabs): Initialize it.
625 * optabs.h (enum optab_index): New entry OTI_clrsb.
626 (clrsb_optab): Define.
627 * genopinit.c (optabs): Add an entry for it.
628 * builtins.c (expand_builtin): Handle clrsb builtin functions.
629 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
630 BUILT_IN_CLRSBLL): New.
631 * rtl.def (CLRSB): New code.
632 * dwarf2out.c (mem_loc_descriptor): Handle it.
633 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
634 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
635 and popcount.
636 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
637 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
638 (__ctzDI2): Move declaration.
639 * config/bfin/bfin.md (clrsbsi2): New expander.
640 (signbitssi2): Use the CLRSB rtx.
641 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
642 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
643
55f01229
RG
6442011-06-21 Richard Guenther <rguenther@suse.de>
645
637c11bd 646 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 647
5181cd6a
IR
6482011-06-21 Ira Rosen <ira.rosen@linaro.org>
649
650 PR tree-optimization/49478
651 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
652 with constant operand.
653
e4ee3d70
RG
6542011-06-21 Richard Guenther <rguenther@suse.de>
655
656 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 657
7b7ec6c5
RG
6582011-06-21 Richard Guenther <rguenther@suse.de>
659
660 PR tree-optimization/49483
661 * tree-vect-stmts.c (vectorizable_assignment): Also handle
662 VIEW_CONVERT_EXPR conversions.
663
1b916ca6
JM
6642011-06-21 Joseph Myers <joseph@codesourcery.com>
665
666 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
667 * config/avr/avr-tables.opt: New file (generated).
668 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
669 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
670 avr-mcus.def.
671 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
672 (avr_option_override): Don't process -mmcu= argument here. Set
673 avr_current_device using avr_mcu_index.
637c11bd 674 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
675 * config/avr/avr.opt (mmcu=): Use Enum.
676 * config/avr/t-avr (avr-devices.o): Update dependencies.
677 ($(srcdir)/config/avr/avr-tables.opt): New.
678 * target.def (help): Remove.
679 * doc/tm.texi.in (TARGET_HELP): Remove.
680 * doc/tm.texi: Regenerate.
681 * opts.c: Don't include target.h.
682 (common_handle_option): Don't call targetm.help.
683 * system.h (TARGET_HELP): Poison.
684 * Makefile.in (opts.o): Update dependencies.
685
7ecfa34f
RO
6862011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
687
688 * config/usegld.h: New file.
689 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
690 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 691 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
692 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
693 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
694 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
695 Define.
7ecfa34f
RO
696 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
697 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
698 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
699 (STACK_CHECK_STATIC_BUILTIN): Define.
700 * config/sol2.opt (compat-bsd): Remove.
701 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
702 * config/sol2-bi.h: New file.
703 * config/sol2-gld.h: Remove.
704 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
705 (NO_DBX_BNSYM_ENSYM): Remove.
706 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
707 (STACK_CHECK_STATIC_BUILTIN): Remove.
708 Test USE_GLD instead of TARGET_GNU_LD.
709 * config/i386/sol2-10.h: Rename to ...
710 * config/i386/sol2-bi.h .. this.
711 (SUBTARGET_EXTRA_SPECS): Redefine.
712 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
713 (MULTILIB_DEFAULTS): Remove.
714 (DEFAULT_ARCH32_P): Define.
715 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
716 (ARCH64_SUBDIR): Define.
717 Test USE_GLD instead of TARGET_GNU_LD.
718 (I386_EMULATION): Rename to ...
719 (ARCH32_EMULATION): ... this.
720 (X86_64_EMULATION): Rename to ...
721 (ARCH64_EMULATION): ... this.
722 (TARGET_LD_EMULATION): Remove.
723 (LINK_ARCH_SPEC): Remove.
724 * config/i386/sol2-gas.h: Remove.
725 * config/i386/t-sol2-10: Rename to ...
726 * config/i386/t-sol2-64: ... this.
727 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
728 (AS_SPARC64_FLAG): Define.
729 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
730 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
731 depending on TARGET_CPU_DEFAULT.
732 (CPP_CPU_SPEC): Redefine.
733 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
734 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
735 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
736 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
737 ASM_ARCH_DEFAULT_SPEC): Redefine.
738 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
739 LINK_ARCH_DEFAULT_SPEC.
740 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
741 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
742 (ARCH64_SUBDIR): Define.
743 (LINK_ARCH64_SPEC): Redefine.
744 (CC1_SPEC): Redefine.
745 (OPTION_DEFAULT_SPECS): Redefine.
746 (MULTILIB_DEFAULTS): Define.
747 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
748 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
749 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
750 (NO_DBX_BNSYM_ENSYM): Remove.
751 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
752 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
753 (TARGET_ASM_NAMED_SECTION): Likewise.
754 (STACK_CHECK_STATIC_BUILTIN): Remove.
755 * config/sparc/sol2-bi.h: Remove.
756 * config/sparc/sol2-gas-bi.h: Remove.
757 * config/sparc/sol2-gas.h: Remove.
758 * config/sparc/sol2-gld-bi.h: Remove.
759 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
760 common parts ...
761 (*-*-solaris2*): ... here.
762
4b583c43 7632011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 764
4b583c43 765 PR other/43564
637c11bd
UB
766 * ipa-inline.c (can_inline_edge_p): Check
767 !DECL_DISREGARD_INLINE_LIMITS.
768
3bb556ad 7692011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 770
3bb556ad
CB
771 PR middle-end/49139
772 * cgraphunit.c (process_function_and_variable_attributes): warn when
773 always_inline functions that are not inline.
637c11bd
UB
774 * ipa-inline-transform.c (inline_transform): Always call
775 optimize_inline.
776 * tree-inline.c (tree_inlinable_function_p): Use error instead
777 of sorry.
3bb556ad 778 (expand_call_inline): Likewise.
637c11bd 779
f1ee724c
JJ
7802011-06-21 Jakub Jelinek <jakub@redhat.com>
781
782 * Makefile.in (dg_target_exps): Set.
783 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
784 instead of 7, try to divide it more evenly.
785
7862011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6
CF
787
788 PR i386/49089
789 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
790 (avx256_split_unaligned_store): New definition.
791 (ix86_option_override_internal): Enable avx256 unaligned load/store
792 splitting only when avx256_split_unaligned_load/store is set.
793
998c75b6
BS
7942011-06-20 Bernd Schmidt <bernds@codesourcery.com>
795
796 * regrename.c (scan_rtx_reg): Handle the case where we write to an
797 open chain in a smaller mode without failing the entire block.
798
83a8cbda
L
7992011-06-20 H.J. Lu <hongjiu.lu@intel.com>
800
801 PR middle-end/47725
802 * combine.c (cant_combine_insn_p): Don't check zero/sign
803 extended hard registers.
804
3a769784
AM
8052011-06-21 Alan Modra <amodra@gmail.com>
806
807 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
808 CONST high part large-toc address.
809 (rs6000_tls_referenced_p): Make static.
810 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
811
d1e32c4a
L
8122011-06-20 H.J. Lu <hongjiu.lu@intel.com>
813
814 PR middle-end/47725
815 * combine.c (cant_combine_insn_p): Check zero/sign extended
816 hard registers.
817
c2954af9
RR
8182011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
819
820 PR target/49385
821 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
822 one of the operands is a register.
823
a95015b6
KT
8242011-06-20 Kai Tietz <ktietz@redhat.com>
825
637c11bd
UB
826 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
827 operations in combination with binary and.
a95015b6 828
49a30d00
BS
8292011-06-20 Bernd Schmidt <bernds@codesourcery.com>
830
831 * regrename.c (do_replace): Don't update notes.
832
3bae1d98
AM
8332011-06-20 Alan Modra <amodra@gmail.com>
834
835 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
836 of toc-relative address in CONST.
837 (rs6000_delegitimize_address): Recognize changed address.
838 (rs6000_legitimize_reload_address): Likewise.
839 (rs6000_emit_move): Don't force these constants to memory.
840 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
841 toc-relative address in CONST.
842 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
843 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
844
10937b0c
L
8452011-06-18 H.J. Lu <hongjiu.lu@intel.com>
846
637c11bd 847 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
848 (count_trailing_zeros): Likewise.
849
0c587260
L
8502011-06-18 H.J. Lu <hongjiu.lu@intel.com>
851
852 PR other/49325
853 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
854 .init_array can be used with .ctors on targets.
855 * configure: Regenerated.
856
c020c92b
EB
8572011-06-18 Eric Botcazou <ebotcazou@adacore.com>
858
859 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
860 if the element type is volatile.
861
cd35bcf7
JH
8622011-06-18 Jan Hubicka <jh@suse.cz>
863
864 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
865 extra name aliases.
866 (lto_symtab_resolve_can_prevail_p): Likewise.
867 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
868 * cgraphbuild.c (record_reference): Remove extra body alias code.
869 (mark_load): Likewise.
870 (mark_store): Likewise.
871 * cgraph.h (varpool_node): Remove extra_name filed;
872 add alias_of and extraname_alias.
873 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
874 (varpool_alias_aliased_node): New inline function.
875 (varpool_variable_node): New function.
876 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
877 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
878 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
879 (input_varpool_node): Likewise.
880 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
881 (varpool_externally_visible_p): Remove extra body alias code.
882 (function_and_variable_visibility): Likewise.
883 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
884 (ipa_pta_execute): Use it.
885 * varpool.c (varpool_remove_node): Remove extra name alias code.
886 (varpool_mark_needed_node): Likewise.
887 (varpool_analyze_pending_decls): Analyze aliases.
888 (assemble_aliases): New functoin.
889 (varpool_assemble_decl): Use it.
890 (varpool_create_variable_alias): New function.
891 (varpool_extra_name_alias): Rewrite.
892 (varpool_for_node_and_aliases): New function.
893
c96b4102
JJ
8942011-06-18 Jakub Jelinek <jakub@redhat.com>
895
896 PR target/49411
897 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
898 last_arg_constant and last argument doesn't match its predicate,
899 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
900 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
901 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
902 spelling of error message.
903 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
904 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
905 const_0_to_255_operand instead of const_int_operand.
906
907 Revert:
908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
909
910 * config/i386/sse.md (blendbits): Remove mode attribute.
911 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
912 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
913 Check integer value of operand 3 in insn constraint.
914
9a2091cd
HPN
9152011-06-17 Hans-Peter Nilsson <hp@axis.com>
916
917 PR rtl-optimization/48542
918 * reload.c (find_equiv_reg): Stop looking when finding a
919 setjmp-type call.
920 * reload1.c (reload_as_needed): Invalidate all reload
921 registers when crossing a setjmp-type call.
922
361b51c0
JL
9232011-06-16 Jeff Law <law@redhat.com>
924
925 * tree-ssa-threadupdate.c (struct redirection_data): New field
926 intermediate_edge.
927 (THREAD_TARGET2): Define.
637c11bd 928 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
929 (lookup_redirection_data): Drop useless argument. Extract the
930 outgoing_edge and intermediate edge from E. Callers updated.
931 (copy_phi_args, update_destination_phis): New functions.
932 (fix_duplicate_block_edges): Likewise.
933 (create_edge_and_update_destination_phis): Duplicate all the edges
934 hung off e->aux. Use copy_phi_args.
935 (create_duplicates): Use fix_duplicate_block_edges.
936 (fixup_template_block): Likewise.
937 (redirect_edges): If necessary, redirect the joiner block's incoming
938 edge to the duplicate of the joiner block.
939 (thread_block): Don't muck up loops when threading through a joiner
940 block.
637c11bd 941 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
942 (mark_threaded_blocks, register_jump_thread): Likewise.
943 * tree-flow.h (register_jump_thread): Add new argument. Callers
944 updated.
945 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
946 (thread_across_edge): Handle threading through a joiner block.
637c11bd 947
ee460e75
MJ
9482011-06-16 Martin Jambor <mjambor@suse.cz>
949
950 PR tree-optimization/49343
951 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
952 calculate offset, provide 2nd operand for the new COMPONENT_REF.
953
a285ba2e
IS
9542011-06-16 Iain Sandoe <iains@gcc.gnu.org>
955
956 * config/darwin-protos.h (machopic_select_rtx_section): Move to
957 inside RTX_CODE ifdef.
958
0703f020
TV
9592011-06-16 Tom de Vries <tom@codesourcery.com>
960
961 PR target/45098
637c11bd
UB
962 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
963 Disallow NULL pointer for pointer arithmetic.
0703f020 964
900c07da
RR
9652011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
966
967 PR target/49398
968 Revert.
969 2011-06-10 Wei Guozhi <carrot@google.com>
970
971 PR target/45335
972 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
973 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
974 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
975 related peephole2.
976 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
977 related peephole2.
978 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
979 (arm_legitimate_ldrd_p): New prototype.
980 (arm_output_ldrd): New prototype.
981 * config/arm/arm.c (arm_check_ldrd_operands): New function.
982 (arm_legitimate_ldrd_p): New function.
983 (arm_output_ldrd): New function.
984
c020c92b 9852011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
986
987 PR middle-end/46500
988 * doc/tm.texi.in: Update Copyright date.
989 * doc/tm.texi: Regenerate.
990 * targhooks.c (default_setup_incoming_varargs): Replace
991 CUMULATIVE_ARGS* argument type with cumulative_args_t.
992 (default_pretend_outgoing_varargs_named): Likewise.
993 (hook_pass_by_reference_must_pass_in_stack): Likewise.
994 (hook_callee_copies_named): Likewise.
995 (default_function_arg_advance): Likewise.
996 (default_function_arg): Likewise.
997 (default_function_incoming_arg): Likewise.
998 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
999 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1000 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1001 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1002 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1003 * targhooks.h (default_setup_incoming_varargs): Likewise.
1004 (default_pretend_outgoing_varargs_named): Likewise.
1005 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1006 (hook_callee_copies_named): Likewise.
1007 (default_function_arg_advance): Likewise.
1008 (default_function_arg): Likewise.
1009 (default_function_incoming_arg): Likewise.
1010 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1011 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1012 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1013 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1014 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1015 * target.def (pass_by_reference): Likewise.
1016 (setup_incoming_varargs, strict_argument_naming): Likewise.
1017 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1018 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1019 (function_incoming_arg): Likewise.
1020 * target.h: Don't include "tm.h" .
1021 (cumulative_args_t): New typedef.
1022 [GCC_TM_H] (get_cumulative_args): New static inline function.
1023 [GCC_TM_H] (pack_cumulative_args): Likewise.
1024 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1025 argument type with cumulative_args_t.
1026 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1027 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1028 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1029 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1030 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1031 (frv_function_arg_1): Likewise.
1032 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1033 (s390_function_arg_advance, s390_function_arg): Likewise.
1034 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1035 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1036 (m32c_strict_argument_naming): Likewise.
1037 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1038 (spu_function_arg_advance): Likewise.
1039 (spu_setup_incoming_varargs): Likewise. Make static.
1040 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1041 Remove prototype.
1042 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1043 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1044 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1045 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1046 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1047 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1048 (mep_pass_by_reference, mep_function_arg): Likewise.
1049 (mep_function_arg_advance): Likewise.
1050 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1051 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1052 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1053 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1054 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1055 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1056 (ix86_setup_incoming_varargs): Likewise.
1057 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1058 (sh_strict_argument_naming): Likewise.
1059 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1060 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1061 (sh_function_arg_advance, sh_function_arg): Likewise.
1062 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1063 (pdp11_function_arg_advance): Likewise.
1064 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1065 Likewise.
1066 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1067 * config/avr/avr.c (avr_function_arg): Likewise.
1068 (avr_function_arg_advance): Likewise.
1069 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1070 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1071 (xtensa_function_arg_1): Likewise.
637c11bd
UB
1072 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1073 Likewise.
d5cc9181
JR
1074 (xstormy16_function_arg): Likewise.
1075 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1076 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1077 (fr30_function_arg_advance): Likewise.
1078 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1079 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1080 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1081 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1082 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1083 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1084 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1085 (cris_function_arg, cris_function_incoming_arg): Likewise.
1086 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1087 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1088 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1089 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1090 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1091 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1092 (mn10300_arg_partial_bytes): Likewise.
1093 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1094 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1095 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1096 (ia64_function_arg_1): Likewise.
1097 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1098 (m68k_function_arg): Likewise.
1099 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1100 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1101 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1102 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1103 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1104 (picochip_arg_advance): Likewise.
1105 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1106 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1107 (mcore_function_arg_advance): Likewise.
1108 * config/score/score.c (score_pass_by_reference): Likewise.
1109 (score_function_arg_advance): Likewise.
1110 (score_arg_partial_bytes): Likewise. Make static.
1111 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1112 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1113 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1114 (arm_function_arg, arm_function_arg_advance): Likewise.
1115 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1116 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1117 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1118 (pa_function_arg): Likewise.
1119 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1120 (mips_function_arg, mips_function_arg_advance): Likewise.
1121 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1122 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1123 * config/vax/vax.c (vax_function_arg): Likewise.
1124 (vax_function_arg_advance): Likewise.
1125 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1126 (h8300_function_arg_advance): Likewise.
1127 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1128 (v850_strict_argument_naming, v850_function_arg): Likewise.
1129 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1130 (v850_setup_incoming_varargs): Likewise.
1131 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1132 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1133 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1134 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1135 with const void *.
1136 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1137 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1138 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1139 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1140 * calls.c (emit_call_1): Change type of args_so_far to
1141 cumulative_args_t. Changed all callers.
1142 (initialize_argument_information): Likewise.
1143 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1144 * dse.c (get_call_args): Likewise.
1145 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1146 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1147 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1148 New member args_so_far_v. Changed all users.
1149 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1150 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1151 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1152 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1153 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
1154 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1155 Likewise.
d5cc9181
JR
1156 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1157 m32r_pass_by_reference.
1158
51312233
IR
11592011-06-16 Ira Rosen <ira.rosen@linaro.org>
1160
1161 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1162 argument to be a VEC of statements.
637c11bd
UB
1163 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1164 assert that pattern statements have to have their vector type set.
51312233
IR
1165 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1166 Change the first argument to be a VEC of statements. Update
1167 documentation.
1168 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1169 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
1170 (vect_recog_widen_mult_pattern): Change the first argument to be a
1171 VEC of statements. Update documentation. Check that the constant is
1172 INTEGER_CST. Support multiplication by a constant that fits an
1173 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
1174 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1175 call. Handle additional pattern statements if necessary.
1176
fd4df33d
NC
11772011-06-16 Nick Clifton <nickc@redhat.com>
1178
1179 PR target/49427
1180 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1181 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1182 md_file, extra_modes, out_file and extra_options are these are all
1183 deduced from cpu_type.
1184
fbd05da0
GJL
11852011-06-16 Georg-Johann Lay <avr@gjlay.de>
1186
1187 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1188 truncation mask to 63.
1189
0ad8bb3b
GJL
11902011-06-16 Georg-Johann Lay <avr@gjlay.de>
1191
1192 PR target/49313
1193 PR target/29524
1194 * longlong.h: Add AVR support:
1195 (count_leading_zeros): New macro.
1196 (count_trailing_zeros): New macro.
1197 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
1198 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1199 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1200 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1201 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
1202 (LIB2FUNCS_EXCLUDE): Add _clz.
1203 * config/avr/libgcc.S (XCALL): Move up in file.
1204 (XJMP): New C Macro.
1205 (DEFUN): New asm macro.
1206 (ENDF): New asm macro.
1207 (__ffssi2): New function.
1208 (__ffshi2): New function.
1209 (__loop_ffsqi2): New function.
1210 (__ctzsi2): New function.
1211 (__ctzhi2): New function.
1212 (__clzdi2): New function.
1213 (__clzsi2): New function.
1214 (__clzhi2): New function.
1215 (__paritydi2): New function.
1216 (__paritysi2): New function.
1217 (__parityhi2): New function.
59c1e10b 1218 (__parityqi2): New function.
0ad8bb3b
GJL
1219 (__popcounthi2): New function.
1220 (__popcountsi2): New function.
1221 (__popcountdi2): New function.
1222 (__popcountqi2): New function.
1223 (__bswapsi2): New function.
1224 (__bswapdi2): New function.
1225 (__ashldi3): New function.
1226 (__ashrdi3): New function.
1227 (__lshrdi3): New function.
1228 Fix suspicous lines.
1229
12430896
RG
12302011-06-16 Richard Guenther <rguenther@suse.de>
1231
1232 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1233 the same as x != 0.
637c11bd
UB
1234 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1235 to (bool) X & 1.
12430896
RG
1236 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1237 equality compares against zero for the lower bit.
1238
09302442
JJ
12392011-06-16 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR tree-optimization/49419
1242 * tree-vrp.c (execute_vrp): Call init_range_assertions
1243 before estimate_numbers_of_iterations, call
1244 free_number_of_iterations_estimates before calling
1245 remove_range_assertions.
1246
81c41166
RE
12472011-06-16 Revital Eres <revital.eres@linaro.org>
1248
1249 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1250 (struct partial_schedule): Add rows_length field.
1251 (verify_partial_schedule): Check rows_length.
1252 (ps_insert_empty_row): Handle rows_length.
1253 (create_partial_schedule): Likewise.
1254 (free_partial_schedule): Likewise.
1255 (reset_partial_schedule): Likewise.
1256 (create_ps_insn): Remove rest_count argument.
1257 (remove_node_from_ps): Update rows_length.
1258 (add_node_to_ps): Update rows_length and call create_ps_insn
1259 without passing row_rest_count.
1260 (rotate_partial_schedule): Update rows_length.
1261
d24dc7b3
RE
12622011-06-16 Revital Eres <revital.eres@linaro.org>
1263
1264 * ddg.c (add_intra_loop_mem_dep): New function.
1265 (build_intra_loop_deps): Call it.
1266
361b51c0 12672011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
1268
1269 * df-problems.c (df_lr_local_compute): Manually CSE
1270 PIC_OFFSET_TABLE_REGNUM.
1271 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1272 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1273
85ce9375
JH
12742011-06-13 Jan Hubicka <jh@suse.cz>
1275
1276 * cgraphunit.c (handle_alias_pairs): New function.
1277 (cgraph_finalize_compilation_unit): Use it.
1278 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1279 as externally visible.
1280
a577c405
RG
12812011-06-15 Richard Guenther <rguenther@suse.de>
1282
1283 * expr.c (expand_expr_real_2): Reduce all integral types to
1284 bitfield precision.
1285 (expand_expr_real_1): Likewise.
1286
93536c97
MJ
12872011-06-15 Martin Jambor <mjambor@suse.cz>
1288
1289 PR tree-optimization/48613
1290 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1291 ipa_node_params_vector is NULL.
fd4df33d 1292
ba45cfc4
JJ
12932011-06-15 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR debug/49382
1296 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
1297 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1298 location in the list, even if it is modified before first real insn.
ba45cfc4 1299 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 1300 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 1301
6fc5966f
AM
13022011-06-15 Alexander Monakov <amonakov@ispras.ru>
1303
1304 PR target/49349
1305 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1306 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1307 above a fence. Update comments.
1308 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1309 placed just above it. Do not allow NULL place_to_insert.
1310
9d5e7640
IR
13112011-06-15 Ira Rosen <ira.rosen@linaro.org>
1312
1313 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1314 (slpeel_tree_peel_loop_to_edge): Don't call
1315 remove_dead_stmts_from_loop.
1316 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1317 remove irrelevant pattern statements. For irrelevant statements
1318 check if it is the last statement of a detected pattern, use
1319 corresponding pattern statement instead.
1320 (destroy_loop_vec_info): No need to remove pattern statements,
1321 only free stmt_vec_info.
1322 (vect_transform_loop): For irrelevant statements check if it is
1323 the last statement of a detected pattern, use corresponding
1324 pattern statement instead.
1325 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1326 pattern statements. Set basic block for the new statement.
1327 (vect_pattern_recog): Update documentation.
1328 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1329 operands of pattern statements.
1330 (vectorizable_call): Fix printing. In case of a pattern statement
1331 use the lhs of the original statement when creating a dummy
1332 statement to replace the original call.
1333 (vect_analyze_stmt): For irrelevant statements check if it is
1334 the last statement of a detected pattern, use corresponding
1335 pattern statement instead.
1336 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1337 statements use gsi of the original statement.
1338
677f3fa8
JM
13392011-06-14 Joseph Myers <joseph@codesourcery.com>
1340
1341 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1342 common/common-target-def.h.
1343 * target.def (default_target_flags, handle_option,
1344 supports_split_stack, optimization_table, init_struct,
1345 except_unwind_info, unwind_tables_default, have_named_sections):
1346 Move to common/common-target.def.
1347 * target.h (enum opt_levels, struct default_options): Move to
1348 common/common-target.h.
1349 * targhooks.c (default_except_unwind_info,
1350 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1351 default_target_handle_option, empty_optimization_table): Move to
1352 common/common-targhooks.c.
1353 * targhooks.h (default_except_unwind_info,
1354 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1355 default_target_handle_option, empty_optimization_table): Move to
1356 common/common-targhooks.h.
1357 * common/common-target-def.h: Include common/common-targhooks.h.
1358 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1359 defined.
1360 * common/common-target.def (handle_option, option_init_struct,
1361 option_optimization_table, default_target_flags,
1362 except_unwind_info, supports_split_stack, unwind_tables_default,
1363 have_named_sections): Move from target.def.
1364 (HOOK_PREFIX): Undefine at end of file.
1365 * common/common-target.h: Include input.h.
1366 (enum opt_levels, struct default_options): Move from target.h.
1367 * common/common-targhooks.c, common/common-targhooks.h: New.
1368 * config.gcc (target_has_targetm_common): Default to yes.
1369 (moxie*): Set target_has_targetm_common=no.
1370 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1371 * doc/tm.texi: Regenerate.
1372 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1373 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1374 (GCC_OBJS): Remove vec.o.
1375 (OBJS): Remove hooks.o and vec.o.
1376 (OBJS-libcommon-target): Add vec.o, hooks.o and
1377 common/common-targhooks.o.
1378 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1379 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1380 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1381 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1382 Update dependencies.
1383 (common/common-targhooks.o): New.
637c11bd 1384 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
1385 * common/config/pa/pa-common.c: Include more headers. Take
1386 copyright dates from pa.c.
1387 (pa_option_optimization_table, pa_handle_option,
1388 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1389 TARGET_HANDLE_OPTION): Move from pa.c.
1390 * common/config/alpha/alpha-common.c,
1391 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1392 common/config/bfin/bfin-common.c,
1393 common/config/cris/cris-common.c,
1394 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1395 common/config/h8300/h8300-common.c,
1396 common/config/i386/i386-common.c,
1397 common/config/ia64/ia64-common.c,
1398 common/config/iq2000/iq2000-common.c,
1399 common/config/lm32/lm32-common.c,
1400 common/config/m32c/m32c-common.c,
1401 common/config/m32r/m32r-common.c,
1402 common/config/m68k/m68k-common.c,
1403 common/config/mcore/mcore-common.c,
1404 common/config/mep/mep-common.c,
1405 common/config/microblaze/microblaze-common.c,
1406 common/config/mips/mips-common.c,
1407 common/config/mmix/mmix-common.c,
1408 common/config/mn10300/mn10300-common.c,
1409 common/config/pdp11/pdp11-common.c,
1410 common/config/picochip/picochip-common.c,
1411 common/config/rs6000/rs6000-common.c,
1412 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1413 common/config/score/score-common.c, common/config/sh/sh-common.c,
1414 common/config/sparc/sparc-common.c,
1415 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1416 common/config/vax/vax-common.c,
1417 common/config/xstormy16/xstormy16-common.c,
1418 common/config/xtensa/xtensa-common.c: New.
1419 * config/alpha/alpha.c: Include common/common-target.h.
1420 (alpha_option_optimization_table, alpha_handle_option,
1421 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1422 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1423 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1424 * config/arm/arm.c (arm_option_optimization_table,
1425 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1426 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1427 arm-common.c.
1428 * config/avr/avr.c (avr_option_optimization_table,
1429 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1430 to avr-common.c.
1431 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1432 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1433 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1434 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1435 * config/cris/cris.c (cris_option_optimization_table,
1436 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1437 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1438 cris-common.c.
1439 * config/fr30/fr30.c (fr30_option_optimization_table,
1440 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1441 to fr30-common.c.
1442 * config/frv/frv.c (frv_option_optimization_table,
1443 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1444 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1445 * config/h8300/h8300.c (h8300_option_optimization_table,
1446 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1447 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1448 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1449 * config/i386/i386.c: Include common/common-target.h.
1450 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1451 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1452 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1453 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1454 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1455 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1456 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1457 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1458 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1459 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1460 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1461 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1462 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1463 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1464 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1465 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1466 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1467 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1468 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1469 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1470 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1471 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1472 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1473 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1474 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1475 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1476 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1477 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1478 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1479 ix86_option_optimization_table, ix86_option_init_struct,
1480 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1481 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1482 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1483 i386-common.c.
1484 * config/i386/t-i386 (i386.o): Update dependencies.
1485 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1486 * config/ia64/ia64.c (ia64_option_optimization_table,
1487 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1488 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1489 ia64_handle_option): Move to ia64-common.c.
1490 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1491 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1492 * config/lm32/lm32.c (lm32_option_optimization_table,
1493 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1494 to lm32-common.c.
1495 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1496 m32c-common.c.
1497 * config/m32r/m32r.c (m32r_option_optimization_table,
1498 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1499 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1500 m32r_handle_option): Move to m32r-common.c.
1501 (m32r_memory_move_cost): Remove comment referring to
1502 TARGET_HANDLE_OPTION.
1503 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1504 Move to m68k-common.c.
1505 * config/mcore/mcore.c (mcore_option_optimization_table,
1506 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1507 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1508 * config/mep/mep.c (mep_option_optimization_table,
1509 mep_handle_option, TARGET_HANDLE_OPTION,
1510 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1511 Move to mep-common.c.
1512 * config/microblaze/microblaze.c
1513 (microblaze_option_optimization_table,
1514 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1515 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1516 * config/mips/mips.c (mips_handle_option,
1517 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1518 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1519 mips-common.c.
1520 * config/mmix/mmix.c (mmix_option_optimization_table,
1521 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1522 Move to mmix-common.c.
1523 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1524 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1525 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1526 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1527 * config/pa/pa.c: Include common/common-target.h.
1528 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1529 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1530 pa_handle_option): Move to pa-common.c.
1531 (pa_option_override): Use targetm_common.except_unwind_info.
1532 (pa_asm_output_mi_thunk, pa_function_section): Use
1533 targetm_common.have_named_sections.
1534 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1535 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1536 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1537 pdp11_handle_option, pdp11_option_init_struct): Move to
1538 pdp11-common.c.
1539 * config/picochip/picochip.c (picochip_option_optimization_table,
1540 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1541 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1542 * config/rs6000/rs6000.c: Include common/common-target.h.
1543 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1544 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1545 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1546 rs6000_handle_option): Move to rs6000-common.c.
1547 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1548 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1549 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1550 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1551 * config/s390/s390.c (processor_flags_table,
1552 s390_option_optimization_table, s390_option_init_struct,
1553 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1554 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1555 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1556 * config/s390/s390.h (processor_flags_table): Declare.
1557 * config/score/score.c (score_option_optimization_table,
1558 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1559 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1560 score_handle_option): Move to score-common.c.
1561 * config/sh/sh.c (sh_option_optimization_table,
1562 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1563 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1564 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1565 * config/sparc/sparc.c: Include common/common-target.h.
1566 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1567 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1568 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1569 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1570 spu_option_init_struct): Move to spu-common.c.
1571 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1572 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1573 * config/v850/v850.c (small_memory_physical_max,
1574 v850_handle_memory_optionn v850_handle_option,
1575 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1576 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1577 v850-common.c.
637c11bd 1578 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
1579 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1580 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1581 Move to xtensa-common.c.
1582 * cfglayout.c: Include common/common-target.h.
1583 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1584 * cfgrtl.c: Include common/common-target.h.
1585 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1586 targetm_common.have_named_sections.
1587 * dbxout.c: Include common/common-target.h.
1588 (dbxout_function_end): Use targetm_common.have_named_sections.
1589 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1590 targetm_common.except_unwind_info.
1591 * dwarf2out.c: Include common/common-target.h.
1592 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1593 dwarf2out_begin_prologue, dwarf2out_frame_init,
1594 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1595 targetm_common.except_unwind_info.
1596 * except.c: Include common/common-target.h.
1597 (init_eh, finish_eh_generation,
1598 output_one_function_exception_table): Use
1599 targetm_common.except_unwind_info.
637c11bd 1600 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
1601 * explow.c: Include common/common-target.h.
1602 * expr.c: Include common/common-target.h.
637c11bd 1603 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
1604 * function.c: Include common/common-target.h.
1605 (expand_function_end): Use targetm_common.except_unwind_info.
1606 * haifa-sched.c: Include common/common-target.h.
637c11bd 1607 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
1608 * lto-opts.c: Include common/common-target.h instead of target.h.
1609 (lto_reissue_options): Use targetm_common.handle_option.
1610 * opts.c: Include common/common-target.h.
1611 (target_handle_option): Use targetm_common.handle_option.
1612 (init_options_struct): Update comment referring to
1613 targetm.target_option.optimization. Use
1614 targetm_common.default_target_flags,
1615 targetm_common.unwind_tables_default and
1616 targetm_common.option_init_struct.
1617 (default_options_optimization): Use
1618 targetm_common.option_optimization_table.
1619 (finish_options): Use targetm_common.except_unwind_info,
1620 targetm_common.unwind_tables_default,
1621 targetm_common.have_named_sections and
1622 targetm_common.supports_split_stack.
1623 * toplev.c: Include common/common-target.h.
1624 (process_options): Use targetm_common.have_named_sections.
1625 * tree-tailcall.c: Include common/common-target.h.
637c11bd 1626 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 1627 * tree.c: Include common/common-target.h.
637c11bd 1628 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
1629 * varasm.c: Include common/common-target.h.
1630 (resolve_unique_section, hot_function_section,
1631 default_function_section): Use targetm_common.have_named_sections.
1632
d26c7090
ER
16332011-06-14 Easwaran Raman <eraman@google.com>
1634
1635 PR rtl-optimization/44194
1636 * dse.c: Include tree-flow.h
1637 (insn_info): Add new field non_frame_wild_read.
1638 (group_info): Add new fields escaped_n and escaped_p.
1639 (kill_on_calls): New variable.
1640 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1641 (dse_step0): Initialize kill_on_calls.
1642 (can_escape): New function.
1643 (set_usage_bits): Add additional parameter; record information
1644 about escaped locations.
637c11bd 1645 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
1646 (dse_step2_nospill): Set kill_on_calls based on
1647 group->escaped_n and group->escaped_n.
1648 (add_wild_read): Refactor into...
1649 (reset_active_stores): ... New function, and
1650 (free_read_records): ... New function.
1651 (add_non_frame_wild_read): New function.
1652 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 1653 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
1654 (dse_step5_nospill): Call scan_reads_nospill for instructions
1655 marked as non_frame_wild_read.
637c11bd 1656 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 1657
c49a6962
JM
16582011-06-14 Joseph Myers <joseph@codesourcery.com>
1659
1660 * common/common-target-def.h, common/common-target.def,
1661 common/common-target.h, common/config/default-common.c,
1662 common/config/pa/pa-common.c: New files.
1663 * Makefile.in (common_out_file, common_out_object_file,
1664 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1665 (OBJS-libcommon-target): Include $(common_out_object_file).
1666 (prefix.o): Update dependencies.
1667 ($(common_out_object_file), common/common-target-hooks-def.h,
1668 s-common-target-hooks-def-h): New.
1669 (s-tm-texi): Also check timestamp on common-target.def.
1670 (build/genhooks.o): Update dependencies.
1671 * config.gcc (common_out_file, target_has_targetm_common): Define.
1672 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1673 TARGET_ALWAYS_STRIP_DOTDOT.
1674 * configure.ac (common_out_object_file): Define.
1675 (common_out_file, common_out_object_file): Substitute.
1676 (common): Create directory.
1677 * configure: Regenerate.
1678 * doc/tm.texi.in (targetm_common): Document.
1679 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1680 * doc/tm.texi: Regenerate.
1681 * genhooks.c (hook_array): Also include common/common-target.def.
1682 * prefix.c (tm.h): Don't include.
1683 (common/common-target.h): Include.
1684 (ALWAYS_STRIP_DOTDOT): Don't define.
1685 (update_path): Use targetm_common.always_strip_dotdot instead of
1686 ALWAYS_STRIP_DOTDOT.
1687 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1688
22c5fa5f
DL
16892011-06-14 David Li <davidxl@google.com>
1690
1691 * passes.c (execute_function_todo): Remove TODO_dump_func.
1692 (execute_one_pass): Remove TODO_dump_func.
1693 (execute_function_dump): New function.
1694 * tree-vrp.c: Remove TODO_dump_func.
1695 * regrename.c: Remove TODO_dump_func.
1696 * fwprop.c: Remove TODO_dump_func.
1697 * tree-into-ssa.c: Remove TODO_dump_func.
1698 * tree-complex.c: Remove TODO_dump_func.
1699 * tracer.c: Remove TODO_dump_func.
1700 * tree-loop-distribution.c: Remove TODO_dump_func.
1701 * postreload-gcse.c: Remove TODO_dump_func.
1702 * postreload.c: Remove TODO_dump_func.
1703 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1704 * tree-tailcall.c: Remove TODO_dump_func.
1705 * ipa-cp.c: Remove TODO_dump_func.
1706 * final.c: Remove TODO_dump_func.
1707 * tree-emutls.c: Remove TODO_dump_func.
1708 * omp-low.c: Remove TODO_dump_func.
1709 * tree-ssa-dse.c: Remove TODO_dump_func.
1710 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1711 * auto-inc-dec.c: Remove TODO_dump_func.
1712 * reorg.c: Remove TODO_dump_func.
1713 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1714 * tree-ssa-ccp.c: Remove TODO_dump_func.
1715 * compare-elim.c: Remove TODO_dump_func.
1716 * mode-switching.c: Remove TODO_dump_func.
1717 * modulo-sched.c: Remove TODO_dump_func.
1718 * tree-call-cdce.c: Remove TODO_dump_func.
1719 * cse.c: Remove TODO_dump_func.
1720 * web.c: Remove TODO_dump_func.
1721 * tree-stdarg.c: Remove TODO_dump_func.
1722 * lto-streamer-out.c: Remove TODO_dump_func.
1723 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1724 * tree-ssa-dom.c: Remove TODO_dump_func.
1725 * tree-nrv.c: Remove TODO_dump_func.
1726 * loop-init.c: Remove TODO_dump_func.
1727 * gimple-low.c: Remove TODO_dump_func.
1728 * ipa-inline.c: Remove TODO_dump_func.
1729 * tree-ssa-sink.c: Remove TODO_dump_func.
1730 * jump.c: Remove TODO_dump_func.
1731 * ifcvt.c: Remove TODO_dump_func.
1732 * tree-ssa-loop.c: Remove TODO_dump_func.
1733 * recog.c: Remove TODO_dump_func.
1734 * dse.c: Remove TODO_dump_func.
1735 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1736 * matrix-reorg.c: Remove TODO_dump_func.
1737 * tree-eh.c: Remove TODO_dump_func.
1738 * regmove.c: Remove TODO_dump_func.
1739 * function.c: Remove TODO_dump_func.
1740 * tree-vectorizer.c: Remove TODO_dump_func.
1741 * ipa-split.c: Remove TODO_dump_func.
1742 * gcse.c: Remove TODO_dump_func.
1743 * tree-if-conv.c: Remove TODO_dump_func.
1744 * init-regs.c: Remove TODO_dump_func.
1745 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1746 * implicit-zee.c: Remove TODO_dump_func.
1747 * lower-subreg.c: Remove TODO_dump_func.
1748 * bt-load.c: Remove TODO_dump_func.
1749 * tree-dfa.c: Remove TODO_dump_func.
1750 * except.c: Remove TODO_dump_func.
1751 * emit-rtl.c: Remove TODO_dump_func.
1752 * store-motion.c: Remove TODO_dump_func.
1753 * cfgexpand.c: Remove TODO_dump_func.
1754 * tree-cfgcleanup.c: Remove TODO_dump_func.
1755 * cfgcleanup.c: Remove TODO_dump_func.
1756 * tree-ssa-pre.c: Remove TODO_dump_func.
1757 * tree-sra.c: Remove TODO_dump_func.
1758 * tree-mudflap.c: Remove TODO_dump_func.
1759 * tree-ssa-copy.c: Remove TODO_dump_func.
1760 * cfglayout.c: Remove TODO_dump_func.
1761 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1762 * tree-ssa-dce.c: Remove TODO_dump_func.
1763 * ira.c: Remove TODO_dump_func.
1764 * tree-ssa.c: Remove TODO_dump_func.
1765 * integrate.c: Remove TODO_dump_func.
1766 * tree-optimize.c: Remove TODO_dump_func.
1767 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1768 * tree-object-size.c: Remove TODO_dump_func.
1769 * combine.c: Remove TODO_dump_func.
1770 * bb-reorder.c: Remove TODO_dump_func.
1771 * cprop.c: Remove TODO_dump_func.
1772 * var-tracking.c: Remove TODO_dump_func.
1773 * tree-profile.c: Remove TODO_dump_func.
1774 * tree-vect-generic.c: Remove TODO_dump_func.
1775 * reg-stack.c: Remove TODO_dump_func.
1776 * sched-rgn.c: Remove TODO_dump_func.
1777 * tree-ssa-structalias.c: Remove TODO_dump_func.
1778 * tree-switch-conversion.c: Remove TODO_dump_func.
1779 * tree-cfg.c: Remove TODO_dump_func.
1780 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1781 * combine-stack-adj.c: Remove TODO_dump_func.
1782 * dce.c: Remove TODO_dump_func.
1783 * tree-ssanames.c: Remove TODO_dump_func.
1784 * regcprop.c: Remove TODO_dump_func.
1785
fa465762
L
17862011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1787
1788 PR middle-end/47364
1789 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1790 and properly handle result not in Pmode.
1791
7d8d16c3
RM
17922011-06-14 Robert Millan <rmh@gnu.org>
1793
1794 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1795 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1796 `config/linux.h'.
1797
1798 * config/i386/kfreebsd-gnu64.h: New file.
1799 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1800 with `i386/kfreebsd-gnu64.h'.
1801
1802 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1803 (GNU_USER_LINK_EMULATION64): New macros.
1804 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1805 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1806 of hardcoding `elf_i386' and `elf_x86_64'.
1807
0ccef3d2
NC
18082011-06-14 Nick Clifton <nickc@redhat.com>
1809
1810 PR target/49403
1811 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1812
1813 PR target/49402
1814 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1815
8a76c4a0
JJ
18162011-06-14 Jakub Jelinek <jakub@redhat.com>
1817
1ace6185
JJ
1818 PR fortran/49103
1819 * tree.h (DECL_NONSHAREABLE): Define.
1820 (struct tree_decl_common): Change decl_common_unused to
1821 decl_nonshareable_flag.
1822 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1823 Ignore vars with DECL_NONSHAREABLE bit set.
1824 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1825 on stores to automatic aggregate vars.
1826
8a76c4a0
JJ
1827 PR rtl-optimization/49390
1828 Revert:
1829 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1830
1831 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1832 MEM_ALIAS_SET.
1833
b4a9343c
ZD
18342011-06-14 Zdenek Dvorak <ook@ucw.cz>
1835 Tom de Vries <tom@codesourcery.com>
1836
1837 PR target/45098
1838 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1839 Document changed semantics.
1840 (max_stmt_executions, max_stmt_executions_int): Declare.
1841 * tree-data-ref.c (estimated_loop_iterations)
1842 (estimated_loop_iterations_int): Move functions...
1843 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1844 (estimated_loop_iterations_int): here.
1845 (record_estimate): Change nb_iterations_upper_bound and
1846 nb_iterations_estimate semantics.
1847 (max_stmt_executions, max_stmt_executions_int): New function.
1848 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1849 (max_stmt_executions_tree): this.
1850 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1851 estimated_loop_iterations_tree.
1852 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1853 max_stmt_executions_int instead of estimated_loop_iterations_int.
1854 * predict.c (predict_loops): Idem.
1855 * tree-parloops.c (parallelize_loops): Idem.
1856 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1857 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1858 (init_omega_for_ddr_1): Idem.
1859 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1860 (loop_prefetch_arrays): Idem
1861 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1862 max_stmt_executions instead of estimated_loop_iterations.
1863 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1864 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1865 instead of nb_iterations_upper_bound.
1866
d2640c43
JH
18672011-06-13 Jan Hubicka <jh@suse.cz>
1868
1869 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1870
40873cdd
RH
18712011-06-14 Richard Henderson <rth@redhat.com>
1872
1873 PR debug/48459
1874 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1875 (based_loc_descr): Assert it's true.
1876 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1877 aborting immediately.
1878
73e8cb24
SL
18792011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1880 Mingfeng Wu <mingfeng@faraday-tech.com>
1881
1882 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1883
f835f0a7
JH
18842011-06-13 Jan Hubicka <jh@suse.cz>
1885
1886 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1887
ee6f1177
JH
18882011-06-13 Jan Hubicka <jh@suse.cz>
1889
1890 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1891 similarly to DECL_COMDAT.
1892 * cgraphunit.c (cgraph_analyze_function): Likewise.
1893 * ipa.c (function_and_variable_visibility): Likewise.
1894
618abf9a
JH
18952011-06-13 Jan Hubicka <jh@suse.cz>
1896
1897 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1898 BINFO_VIRTUALS when streaming for ltrans unit.
1899
a45fe02f
DE
19002011-06-13 David Edelsohn <dje.gcc@gmail.com>
1901
1902 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1903 (movdi_internal64): Same.
1904
19052011-06-13 Edmar Wienskoski <edmar@freescale.com>
1906
e641e495 1907 PR target/44618
7d8d16c3
RM
1908 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1909 a set of similar patterns, where the MATCH_OPERAND for the function
1910 argument is replaced with individual references to hardware registers.
a45fe02f
DE
1911 (save_fpregs_<mode>): Ditto
1912 (restore_gpregs_<mode>): Ditto
1913 (return_and_restore_gpregs_<mode>): Ditto
1914 (return_and_restore_fpregs_<mode>): Ditto
1915 (return_and_restore_fpregs_aix_<mode>): Ditto
1916
8775a18b
JH
19172011-06-13 Jan Hubicka <jh@suse.cz>
1918
1919 * ipa-utils.c (postorder_stack): New structure.
1920 (ipa_reverse_postorder): Handle aliases.
1921
19222011-06-13 Jan Hubicka <jh@suse.cz>
1923
1924 * ipa-inline.c (reset_edge_caches): Walk aliases.
1925 (update_caller_keys): Do not test inlinability of aliases.
1926 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1927 (do_estimate_growth): Fix typo.
1928
6c69a029
JH
19292011-06-13 Jan Hubicka <jh@suse.cz>
1930
1931 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1932 (can_remove_node_now_p): ... here; handle same comdat groups.
1933 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1934 (inline_call): Update use of can_remove_node_now_p.
1935
10c63ba4 19362011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 1937
10c63ba4 1938 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
1939 condition to disallow non-identical memory locations.
1940 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1941 preference to bit manipulation instructions.
495f8c14 1942
9aa3f5c5
JH
19432011-06-13 Jan Hubicka <jh@suse.cz>
1944
1945 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1946 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1947 (nonremovable_p): New function.
1948 (cgraph_can_remove_if_no_direct_calls_p): New function.
1949 (used_from_object_file_p): New functoin.
10c63ba4
EB
1950 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1951 references from aliases.
9aa3f5c5
JH
1952 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1953 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
1954 (want_inline_function_called_once_p): Use it; accept aliases called
1955 once, too.
9aa3f5c5
JH
1956 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1957
30cecf17
RR
19582011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1959
1960 PR target/48454
1961 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1962 correctly for the case with Quad vectors.
1963
29f85237
JJ
19642011-06-13 Jakub Jelinek <jakub@redhat.com>
1965 Ira Rosen <ira.rosen@linaro.org>
1966
1967 PR tree-optimization/49352
1968 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1969 all, make sure loop_use_stmt after the loop is a def stmt of a used
1970 SSA_NAME that is the only one defined inside of the loop. Don't
1971 check for COND_EXPR and GIMPLE_BINARY_RHS.
1972 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1973 check_reduction is true.
1974
c3e3f090
JH
19752011-06-11 Jan Hubicka <jh@suse.cz>
1976
1977 PR middle-end/49373
1978 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1979
516e0768
JH
19802011-06-11 Jan Hubicka <jh@suse.cz>
1981
1982 PR middle-end/48836
1983 * ipa-inline-transform.c: Include tree-pass.h
1984 (inline_transform): Set TODO_update_ssa_only_virtuals.
1985 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1986
903b0a8b
JH
19872011-06-11 Jan Hubicka <jh@suse.cz>
1988
1989 PR middle-end/49378
1990 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1991 aliases and thunks.
1992
44542f8e
IR
19932011-06-12 Ira Rosen <ira.rosen@linaro.org>
1994
1995 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1996 Take number of iterations to peel into account for equally frequent
1997 misalignment values.
1998
ea89702b
JH
19992011-06-11 Jan Hubicka <jh@suse.cz>
2000
637c11bd
UB
2001 * lto-streamer-out.c (produce_symtab): Stream out the newly
2002 represented aliases.
ea89702b 2003
380ed5ed
JH
20042011-06-11 Jan Hubicka <jh@suse.cz>
2005
637c11bd
UB
2006 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2007 varying args.
380ed5ed
JH
2008 (ipa_update_after_lto_read): Likewise.
2009 (ipa_write_node_info): Do not sream call_with_var_arguments.
2010 (ipa_read_node_info): Likewise.
2011
00cfc363
JH
20122011-06-11 Jan Hubicka <jh@suse.cz>
2013
2014 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2015
39e2db00
JH
20162011-06-11 Jan Hubicka <jh@suse.cz>
2017
2018 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2019 (lto_symtab_resolve_can_prevail_p): Likewise.
2020 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2021 * cgraph.c (same_body_aliases_done): New global var.
2022 (cgraph_same_body_alias_1): Rename to ...
2023 (cgraph_create_function_alias): ... this one; reorg to new
2024 representation.
2025 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2026 record references when asked to.
2027 (cgraph_add_thunk): Fix formating.
2028 (cgraph_get_node): Kill same body alias code.
2029 (cgraph_node_for_asm): Likewise.
2030 (cgraph_remove_same_body_alias): Remove.
2031 (cgraph_remove_node): Kill same body alias code.
2032 (cgraph_mark_address_taken_node): Mark also the aliased function
2033 as having address taken.
2034 (dump_cgraph_node): Dump same body aliases.
2035 (cgraph_for_node_thunks_and_aliases): Update for new alias
2036 representation.
2037 (cgraph_for_node_and_aliases): Likewise.
2038 * cgraph.h (same_body): Kll pointer.
2039 (same_body_alias): Update comment.
2040 (same_body_aliases_done): Declare.
2041 (cgraph_remove_same_body_alias): Remove declaration.
2042 (cgraph_create_function_alias): Declare.
2043 (cgraph_process_same_body_aliases): Declare.
2044 (cgraph_function_with_gimple_body_p): Check for alias.
2045 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2046 (cgraph_alias_aliased_node): New function.
2047 (cgraph_function_node): Update for new aliases.
2048 (cgraph_function_or_thunk_node): Likewise.
2049 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2050 (inline_call): Remove dead aliases.
10c63ba4
EB
2051 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2052 name hack for same body aliases.
39e2db00
JH
2053 (clone_of_p): Look through aliases.
2054 (verify_cgraph_node): Verify aliases.
2055 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2056 (cgraph_process_same_body_aliases): New function.
2057 (process_function_and_variable_attributes): Disable weakref warning on
2058 alias.
2059 (cgraph_analyze_functions): Handle aliases.
2060 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2061 (assemble_thunks): Rename to ...
2062 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2063 (cgraph_expand_function): Remove alias output code.
2064 (cgraph_output_in_order): Skip aliases.
2065 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2066 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2067 (ipa_record_reference): Do not assert on alias references.
2068 (ipa_ref_has_aliases_p): New function.
2069 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2070 (ipa_ref_has_aliases_p): Declare.
2071 * lto-cgraph.c (lto_output_node): Handle aliases.
2072 (input_node): Likewise.
2073 * lto-streamer-out.c (lto_output): Skip aliases.
2074 (produce_symtab): Kill same_body_alias code.
2075 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2076 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2077 * ipa-inline.c (update_caller_keys): Walk aliases.
2078 (inline_small_functions): Fix thinko in previous patch.
2079 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2080 (function_and_variable_visibility): Do not walk same body aliases.
2081 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2082 (ipa_pta_execute): Use it.
2083
9ee65b55
UB
20842011-06-11 Uros Bizjak <ubizjak@gmail.com>
2085
2086 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2087 (*vec_dupv2df): Rename from vec_dupv2df.
2088 (vec_dupv2df): New expander.
2089
20902011-06-11 Uros Bizjak <ubizjak@gmail.com>
2091
2092 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2093
20942011-06-11 Uros Bizjak <ubizjak@gmail.com>
2095
2096 * config/i386/i386.md: Use default value in "isa" attribute.
2097 * config/i386/sse.md: Ditto.
2098 * config/i386/mmx.md: Ditto.
2099
ba68a139
WG
21002011-06-10 Wei Guozhi <carrot@google.com>
2101
2102 PR target/45335
2103 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2104 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2105 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2106 related peephole2.
2107 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2108 related peephole2.
2109 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2110 (arm_legitimate_ldrd_p): New prototype.
2111 (arm_output_ldrd): New prototype.
2112 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2113 (arm_legitimate_ldrd_p): New function.
2114 (arm_output_ldrd): New function.
2115
deced1e2
XDL
21162011-06-10 David Li <davidxl@google.com>
2117
2118 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2119 * passes.c (passr_eq): New function.
2120 (create_pass_tab): New function.
2121 (pass_traverse): New function.
2122 (dump_one_pass): New function.
2123 (dump_pass_list): New function.
2124 (dump_passes): New function.
2125
71fb4f92
JH
21262011-06-10 Jan Hubicka <jh@suse.cz>
2127
2128 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2129 setting the nothrow flag.
2130 * ipa-reference.c (propagate): Skip aliases.
2131 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2132 (propagate_nothrow): Skip aliases; do not update cgraph.
2133 (local_pure_const): Do not update cgraph.
2134 * tree-profile.c (tree_profiling): Do fixup_cfg.
2135
41817394
JH
21362011-06-10 Jan Hubicka <jh@suse.cz>
2137
2138 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2139 (cgraph_local_node_p): ... here; handle aliases.
2140 (has_addr_references_p): Break out from ...;
2141 (cgraph_remove_unreachable_nodes) ... here.
2142
fb37c1de
JH
21432011-06-10 Jan Hubicka <jh@suse.cz>
2144
2145 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
2146 * common.opt (flag_inline_functions_called_once): Do not
2147 initialize to 1.
fb37c1de 2148
0818c24c
JH
21492011-06-10 Jan Hubicka <jh@suse.cz>
2150
2151 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
2152 (ipcp_initialize_node_lattices): Do not deal with aliases;
2153 Do not try to propagate through thunks.
0818c24c
JH
2154 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2155
c8246dbe
JH
21562011-06-10 Jan Hubicka <jh@suse.cz>
2157
9ee65b55
UB
2158 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2159 for indirect calls.
c8246dbe
JH
2160 (ipa_read_node_info): Likewise.
2161
d7e2a1c1
BS
21622011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2163
2164 PR lto/49302
2165 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2166 (build_and_insert_call): Likewise.
2167 (build_and_insert_ref): New.
2168 (gimple_expand_builtin_pow): Minor cleanup.
2169 (gimple_expand_builtin_cabs): New.
2170 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 2171
749f25d8
JH
21722011-06-10 Jan Hubicka <jh@suse.cz>
2173
2174 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2175 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2176 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2177 (ipcp_propagate_stage): Skip aliases when propagating.
2178 (ipcp_need_redirect_p): Skip aliases.
2179 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2180 collect_callers_of_node.
2181 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2182 for aliases.
2183 (ipa_compute_jump_functions): Look through aliases.
2184
8340fbd7
RO
21852011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2186
2187 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2188
9aaa7e47
HPN
21892011-06-10 Hans-Peter Nilsson <hp@axis.com>
2190
2191 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2192 Adjust comments.
2193 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2194
f1724940
JH
21952011-06-10 Jan Hubicka <jh@suse.cz>
2196
2197 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2198 Update call of gimple_get_virt_method_for_binfo.
2199 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2200 refuse_thunks parameter.
2201 (gimple_fold_call): Update.
2202 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2203
a6f834c5
JH
22042011-06-10 Jan Hubicka <jh@suse.cz>
2205
2206 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2207 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2208 worker for cgraph_for_node_and_aliases.
2209 (convert_callers_for_node): Break out from ...
2210 (convert_callers): ... here.
2211 (modify_function): Use collect_callers_of_node.
2212 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2213
7871eee3
RG
22142011-06-10 Richard Guenther <rguenther@suse.de>
2215
2216 PR tree-optimization/49361
2217 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2218 when not already in gimple form.
2219
dae957ae
RG
22202011-06-10 Richard Guenther <rguenther@suse.de>
2221
2222 PR bootstrap/49344
2223 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2224 FOR_EACH_PHI_OR_STMT_USE.
2225
a5b1779f
JH
22262011-06-10 Jan Hubicka <jh@suse.cz>
2227
2228 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2229 (clone_inlined_nodes): ... here.
2230 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2231 to real destination prior inlining.
2232 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2233 can_early_inline_edge_p, want_early_inline_function_p,
2234 want_early_inline_function_p, want_inline_small_function_p,
2235 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2236 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2237 add_new_edges_to_heap, inline_small_functions, flatten_function,
2238 inline_always_inline_functions, early_inline_small_functions): Use
2239 cgraph_function_or_thunk_node.
2240 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2241 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2242 (do_estimate_edge_growth_1): Break out from ...
2243 (do_estimate_growth) ... here; walk aliases.
2244 (inline_generate_summary): Skip aliases.
2245
c1ae3ca5
RG
22462011-06-10 Richard Guenther <rguenther@suse.de>
2247
9ee65b55
UB
2248 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2249 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 2250
b504a918
PC
22512011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2252
2253 * tree.h (error_operand_p): Add.
2254 * dbxout.c (dbxout_type_fields): Use the latter.
2255 * c-decl.c (add_stmt): Likewise.
2256 * gimplify.c (omp_add_variable, omp_notice_variable,
2257 gimplify_scan_omp_clauses): Likewise.
2258
3f5ea9dc 22592011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 2260
3f5ea9dc
GJL
2261 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2262 when a value is actually passed in regs.
2263
b11b0904 22642011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 2265 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
2266
2267 * doc/invoke.texi (SPARC options): Add -mflat.
2268 * config/sparc/sparc.opt: Likewise.
2269 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2270 (sparc_flat_expand_prologue): Declare.
2271 (sparc_flat_expand_epilogue): Likewise.
2272 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2273 (CPP_ENDIAN_SPEC): Replace with...
2274 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2275 (CPP_SPEC): Adjust to above change.
2276 (EXTRA_SPECS): Likewise.
2277 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2278 (INCOMING_REGNO): Likewise.
2279 (OUTGOING_REGNO): Likewise.
2280 (LOCAL_REGNO): Likewise.
2281 (SETUP_FRAME_ADDRESSES): Likewise.
2282 (FIXED_REGISTERS): Set 0 for %fp.
2283 (CALL_USED_REGISTERS): Likewise.
2284 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2285 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2286 (RETURN_ADDR_REGNUM): Define.
2287 (RETURN_ADDR_RTX): Use it.
2288 (INCOMING_RETURN_ADDR_REGNUM): Define.
2289 (INCOMING_RETURN_ADDR_RTX): Use it.
2290 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2291 (EH_RETURN_REGNUM): Define.
2292 (EH_RETURN_STACKADJ_RTX): Use it.
2293 (EH_RETURN_HANDLER_RTX): Delete.
2294 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2295 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2296 Delete.
2297 (struct machine_function): Add frame_size, apparent_frame_size,
2298 frame_base_reg, frame_base_offset, n_global_fp_regs and
2299 save_local_in_regs_p fields.
2300 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2301 sparc_frame_base_offset, sparc_n_global_fp_regs,
2302 sparc_save_local_in_regs_p): New macros.
2303 (sparc_option_override): Error out if -fcall-saved-REG is specified
2304 for Out registers.
2305 (eligible_for_restore_insn): Fix formatting.
2306 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2307 (eligible_for_sibcall_delay): Likewise.
2308 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2309 (sparc_legitimate_address_p): Adjust to above change.
2310 (save_global_or_fp_reg_p): New predicate.
2311 (return_addr_reg_needed_p): Likewise.
2312 (save_local_or_in_reg_p): Likewise.
2313 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2314 (SORR_SAVE, SORR_RESTORE): Delete.
2315 (sorr_pred_t): New typedef.
2316 (sorr_act_t): New enum.
2317 (save_or_restore_regs): Rename to...
2318 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2319 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2320 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2321 mechanism. Add CFI information for double-word saves in 32-bit mode.
2322 (emit_adjust_base_to_offset): New function extracted from...
2323 (emit_save_or_restore_regs): ...this. Rename the rest to...
2324 (emit_save_or_restore_regs_global_fp_regs): ...this.
2325 (emit_save_or_restore_regs_local_in_regs): New function.
2326 (gen_create_flat_frame_[123]): New functions.
2327 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2328 (sparc_flat_expand_prologue): New function.
2329 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2330 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2331 (sparc_flat_expand_epilogue): New function.
2332 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2333 (output_return): Likewise.
2334 (output_sibcall): Likewise.
2335 (sparc_output_mi_thunk): Likewise.
2336 (sparc_frame_pointer_required): Likewise.
2337 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2338 function optimization.
2339 * config/sparc/sparc.md (flat): New attribute.
2340 (prologue): Add TARGET_FLAT handling.
2341 (save_register_window): Disable if TARGET_FLAT.
2342 (create_flat_frame_[123]): New patterns.
2343 (epilogue): Add TARGET_FLAT handling.
2344 (sibcall_epilogue): Likewise.
2345 (eh_return): New expander.
2346 (eh_return_internal): New insn and splitter.
2347 (return_internal): Add TARGET_FLAT handling.
2348 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2349 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2350 (nonlocal_goto): Add TARGET_FLAT handling.
2351 * config/sparc/t-elf: Add -mflat multilib.
2352 * config/sparc/t-leon: Likewise.
2353
fede8efa
JH
23542011-06-10 Jan Hubicka <jh@suse.cz>
2355
2356 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2357 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2358 (self_recursive_p): Use cgraph_function_node.
2359 (propagate_pure_const): Likewise.
2360 (propagate_nothrow): Likewise.
2361 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2362 cgraph_function_node.
2363 (propagate_bits): Likewise.
2364 (propagate): Likewise.
2365
0127c76f
RR
23662011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2367 Richard Earnshaw <rearnsha@arm.com>
2368
9ee65b55 2369 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
2370 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2371 (*thumb2_movdi_vfp): Delete.
2372 (*arm_movdi_vfp_cortexa8): Delete.
2373 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2374 (*movdi_vfp_cortexa8): Likewise.
2375
f93fe5a0
RG
23762011-06-10 Richard Guenther <rguenther@suse.de>
2377
2378 * stor-layout.c (initialize_sizetypes): Give names to all
2379 sizetype kinds.
2380
f2164f87
IR
23812011-06-10 Ira Rosen <ira.rosen@linaro.org>
2382
2383 PR tree-optimization/49318
2384 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2385 irrelevant pattern statements.
2386
3f91c962
HPN
23872011-06-10 Hans-Peter Nilsson <hp@axis.com>
2388
3d223145
HPN
2389 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2390
3f91c962
HPN
2391 PR bootstrap/49354
2392 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2393 to last assignment.
2394
b125ad45
JH
23952011-06-09 Jan Hubicka <jh@suse.cz>
2396
2397 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2398 do not recompute reachable flag.
2399 (cgraph_finalize_function, cgraph_analyze_functions): Set
2400 redefined_extern_inline here.
2401
be330ed4
JH
24022011-06-09 Jan Hubicka <jh@suse.cz>
2403
2404 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2405 (cgraph_only_called_directly_p): ... this one; bring offline.
2406 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2407 varpool_used_from_object_file_p): Drop names from the declaratoin.
2408 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2409 collect_callers_of_node): New.
2410 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2411 (cgraph_edge_recursive_p): Use cgraph_function_node.
2412 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2413 (cgraph_node_cannot_be_local_p_1): Break out from ...
2414 (cgraph_node_can_be_local_p): ... here; walk aliases.
2415 (cgraph_for_node_thunks_and_aliases): New function.
2416 (cgraph_for_node_and_aliases): New function.
2417 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
2418 (cgraph_make_node_local) ... here; use
2419 cgraph_for_node_thunks_and_aliases.
be330ed4 2420 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
2421 (cgraph_set_nothrow_flag) ... here;
2422 use cgraph_for_node_thunks_and_aliases.
be330ed4 2423 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
2424 (cgraph_set_const_flag) ... here;
2425 use cgraph_for_node_thunks_and_aliases.
be330ed4 2426 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
2427 (cgraph_set_pure_flag) ... here;
2428 use cgraph_for_node_thunks_and_aliases.
be330ed4 2429 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
2430 (cgraph_propagate_frequency) ... here; use
2431 cgraph_for_node_thunks_and_aliases.
be330ed4 2432 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
2433 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2434 New functions.
be330ed4
JH
2435 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2436
2ea91d6b
HPN
24372011-06-10 Hans-Peter Nilsson <hp@axis.com>
2438
2439 PR rtl-optimization/49154
2440 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2441 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2442 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2443 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2444 * config/cris/cris.h (cris_register_move_cost): Remove
2445 !TARGET_V32 code. Tweak comments.
2446
9cf4fb5a
JH
24472011-06-09 Jan Hubicka <jh@suse.cz>
2448
2449 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2450 address taken.
2451
6049a4c8
HPN
24522011-06-10 Hans-Peter Nilsson <hp@axis.com>
2453
c577822e 2454 PR rtl-optimization/49154
9ee65b55
UB
2455 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2456 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 2457
54e1e4f7 2458 PR rtl-optimization/49154
6049a4c8
HPN
2459 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2460 register classes.
2461 * doc/tm.texi: Regenerate.
2462
3be68b64
KK
24632011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2464
2465 PR target/49307
2466 * config/sh/sh.md (UNSPEC_CHKADD): New.
2467 (chk_guard_add): New define_insn_and_split.
2468 (symGOT_load): Use chk_guard_add instead of blockage.
2469
bf806a90
KT
24702011-06-09 Kai Tietz <ktietz@redhat.com>
2471
2472 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2473
d5a9738b
EB
24742011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2475
2476 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2477
527e82c2
WG
24782011-06-09 Wei Guozhi <carrot@google.com>
2479
2480 PR target/46975
2481 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2482 (peephole2 for conditional move): Generate 16 bit instructions.
2483
b8bc3a43
UB
24842011-06-09 Uros Bizjak <ubizjak@gmail.com>
2485
2486 * config/i386/i386.md (*movdi_internal_rex64): Merge
2487 alternatives 6 and 8.
2488
4745da6e
DL
24892011-06-09 David Li <davidxl@google.com>
2490
2491 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2492 * passes.c (passr_eq): New function.
2493 (create_pass_tab): New function.
2494 (pass_traverse): New function.
2495 (dump_one_pass): New function.
2496 (dump_pass_list): New function.
2497 (dump_passes): New function.
2498
bdf67bcb
DL
24992011-06-09 David Li <davidxl@google.com>
2500
2501 * tree-complex.c (tree_lower_complex): Gate cleanup.
2502 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2503 (execute_optimize_stdarg): Ditto.
2504 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2505 (execute_cleanup_eh_1): Ditto.
2506 (execute_cleanup_eh): Ditto.
2507 * gcse.c (gate_rtl_pre): Ditto.
2508 (execute_rtl_pre): Ditto.
2509 * except.c (finish_eh_generation): Ditto.
2510 (convert_to_eh_region_ranges): Ditto.
2511 * cprop.c (one_cprop_pass): Ditto.
2512
547fdef8
BS
25132011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2514
2515 PR target/48673
2516 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2517 in all basic blocks.
2518
10e48e39
RO
25192011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2520
2521 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2522 (HAVE_ENABLE_EXECUTE_STACK): Define.
2523 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2524 (HAVE_ENABLE_EXECUTE_STACK): Define.
2525 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2526 (HAVE_ENABLE_EXECUTE_STACK): Define.
2527 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2528 (ENABLE_EXECUTE_STACK): Remove.
2529 (HAVE_ENABLE_EXECUTE_STACK): Define.
2530 [IN_LIBGCC2]: Don't include <windows.h>.
2531 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2532 (HAVE_ENABLE_EXECUTE_STACK): Define.
2533 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2534 (HAVE_ENABLE_EXECUTE_STACK): Define.
2535 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2536 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2537 (HAVE_ENABLE_EXECUTE_STACK): Define.
2538 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2539 (HAVE_ENABLE_EXECUTE_STACK): Define.
2540 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2541 (HAVE_ENABLE_EXECUTE_STACK): Define.
2542 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2543 (HAVE_ENABLE_EXECUTE_STACK): Define.
2544 * config/alpha/alpha.c (alpha_trampoline_init): Test
2545 HAVE_ENABLE_EXECUTE_STACK.
2546 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2547 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2548 (sparc64_initialize_trampoline): Likewise.
2549 * libgcc2.c [L_enable_execute_stack]: Remove.
2550 * system.h (ENABLE_EXECUTE_STACK): Poison.
2551 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2552 * doc/tm.texi: Regenerate.
2553 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2554
8ced31fe
JJ
25552011-06-09 Jakub Jelinek <jakub@redhat.com>
2556
2557 PR middle-end/49308
2558 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2559 variable. After resetting and rescanning insn continue with previous
2560 statement.
2561
ee610fcd
RO
25622011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2563
2564 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2565 (gcc_cv_ld_hidden): Likewise.
2566 * configure: Regenerate.
2567 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2568 (ix86_stack_protect_fail): Mark unused.
2569 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2570 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2571 [TARGET_MACHO]: Don't define.
2572 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2573 (TARGET_STACK_PROTECT_FAIL): Likewise.
2574 (rs6000_stack_protect_fail): Mark unused.
2575 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 2576 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 2577
8f2e22ff
AK
25782011-06-08 Andi Kleen <ak@linux.intel.com>
2579
2580 * varasm.c (get_section): Print location of other conflict
2581 for section conflicts.
2582
815cecbe
AK
25832011-06-08 Andi Kleen <ak@linux.intel.com>
2584
2585 * config/i386/driver-i386.c (host_detect_local_cpu):
2586 Add model 0x2d Intel CPU.
2587
1460ec5c
AK
25882011-06-08 Andi Kleen <ak@linux.intel.com>
2589
2590 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
2591 (globalize_reg): Add decl parameter. Compute location. Pass location
2592 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
2593 * rtl.h (globalize_reg): Update prototype.
2594 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2595
df17530a
MX
25962011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2597
2598 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2599
409fed48
KK
26002011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2601
2602 PR target/49305
2603 * config/sh/predicates.md (general_movsrc_operand): Check
2604 mode for memory with indexed address for QI and HImode.
2605 (general_movdst_operand): Likewise.
2606
87c16a45
NP
26072011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2608
b8bc3a43 2609 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 2610
49931fcb
AO
26112011-06-08 Alexandre Oliva <aoliva@redhat.com>
2612
2613 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2614 (num_ssa_operands): Likewise.
2615 (op_iter_init_phiuse): Forward-declare.
2616 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2617
29494d1f
NC
26182011-06-08 Nick Clifton <nickc@redhat.com>
2619
2620 * doc/invoke.texi (ARM Options): Update description of
2621 -mthumb-interwork.
2622
4ffae7ff
L
26232011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2624
2625 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2626 unknown Intel family 0x6 CPUs.
2627
d9c77712
MJ
26282011-06-08 Martin Jambor <mjambor@suse.cz>
2629
2630 * tree-sra.c (mark_rw_status): Removed.
2631 (analyze_access_subtree): New parameter parent instead of
2632 mark_read and mark_write, propagate from that.
2633
b1def36c
JB
26342011-06-08 Julian Brown <julian@codesourcery.com>
2635
2636 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2637 for double-precision helper functions in hard-float mode if only
2638 single-precision arithmetic is supported in hardware.
2639
6c8e9fc9
AM
26402011-06-08 Alexander Monakov <amonakov@ispras.ru>
2641
2642 PR rtl-optimization/49303
2643 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2644 code_motion_path_driver returned 0 or 1.
2645 (sel_region_finish): Clear h_d_i_d.
2646
c2bbcb0d
KK
26472011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2648
2649 * config/sh/sh.c (prepare_move_operands): Set pic register
2650 appropriately for global and local dynamic tls models even
2651 if flag_pic is unset.
2652
6976ae51
JM
26532011-06-07 Jason Merrill <jason@redhat.com>
2654
2655 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2656
bb5b1f5e
XDL
26572011-06-07 Xinliang David Li <davidxl@google.com>
2658 * passes.c (enable_disable_pass): Handle assembler name.
2659 (is_pass_explicitly_enabled_or_disabled): Ditto.
2660
91ffe356
RO
26612011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2662
2663 PR tree-optimization/48497
2664 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2665
06bc3ec7
BS
26662011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2667
2668 PR tree-optimization/46728
2669 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2670 to use gimple_val_nonnegative_real_p.
2671 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2672 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 2673
c074d740
L
26742011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2675
2676 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2677
8973b112
SG
26782011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2679
2680 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2681 constant vectors.
2682
67b88453
RG
26832011-06-07 Richard Guenther <rguenther@suse.de>
2684
2685 * stor-layout.c (initialize_sizetypes): Initialize all
2686 sizetypes based on target definitions.
2687 (set_sizetype): Remove.
2688 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2689 * tree.h (set_sizetype): Remove.
2690
1dcad079
NC
26912011-06-07 Nick Clifton <nickc@redhat.com>
2692
2693 * config.gcc: Unify V850 architecture options and add support for
2694 newer V850 architectures.
2695 * config/v850/t-v850e: Delete.
2696
009db074
RG
26972011-06-07 Richard Guenther <rguenther@suse.de>
2698
2699 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2700 Call set_sizetype from here.
2701
f373314f
AS
27022011-06-07 Andrew Stubbs <ams@codesourcery.com>
2703
2704 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2705 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2706
c536876e
AS
27072011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2708 Andrew Stubbs <ams@codesourcery.com>
2709
2710 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2711 multiplies.
2712 * doc/md.texi (Canonicalization of Instructions): Document widening
2713 multiply canonicalization.
2714
308dc890
JJ
27152011-06-07 Jakub Jelinek <jakub@redhat.com>
2716
2717 PR gcov-profile/49299
b8bc3a43 2718 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 2719
383d9c83
IR
27202011-06-07 Ira Rosen <ira.rosen@linaro.org>
2721
2722 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2723 a pointer.
2724 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2725 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2726 vect_recog_pow_pattern): Likewise.
2727 (vect_pattern_recog_1): Remove declaration.
2728 (widened_name_p): Remove declaration. Add new argument to specify
2729 whether to check that both types are either signed or unsigned.
2730 (vect_recog_widen_mult_pattern): Update documentation. Handle
2731 unsigned patterns and multiplication by constants.
2732 (vect_pattern_recog_1): Update vect_recog_func references. Use
2733 statement information from the statement returned from pattern
2734 detection functions.
2735 (vect_pattern_recog): Update vect_recog_func reference.
2736 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2737 multiplication by a constant use the type of the other operand.
2738
4de4b0f2
RS
27392011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2740
2741 PR rtl-optimization/49145
2742 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2743
a9d24544
JJ
27442011-06-06 Jakub Jelinek <jakub@redhat.com>
2745
99a5e049
JJ
2746 PR debug/49262
2747 * dwarf2out.c (native_encode_initializer): Decrement count in each
2748 iteration.
2749
04902d4c
JJ
2750 PR debug/49294
2751 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2752 non-MODE_INT modes.
2753
a9d24544
JJ
2754 PR c++/49264
2755 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2756 if stmt folded into nothing.
b8bc3a43
UB
2757 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2758 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
2759 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2760 to be NULL. Don't compute count and frequency if new_call is NULL.
2761
47c79d56
DN
27622011-06-04 Diego Novillo <dnovillo@google.com>
2763
2764 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2765 (cgraph.o): Likewise.
2766 (cgraphunit.o): Likewise.
2767 * cgraphunit.c: Include lto-streamer.h
2768 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2769 if LTO is enabled.
2770 * lto-streamer-in.c (unpack_value_fields): Call
2771 streamer_hooks.unpack_value_fields if set.
2772 (lto_materialize_tree): For unhandled nodes, first try to
2773 call lto_streamer_hooks.alloc_tree, if it exists.
2774 (lto_input_ts_decl_common_tree_pointers): Move reading of
2775 DECL_INITIAL to lto_streamer_read_tree.
2776 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2777 (lto_streamer_read_tree): New.
2778 (lto_reader_init): Rename from lto_init_reader.
2779 Move initialization code to lto/lto.c.
2780 * lto-streamer-out.c (pack_value_fields): Call
2781 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
2782 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2783 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 2784 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
2785 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2786 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2787 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2788 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
2789 (lto_streamer_write_tree): New.
2790 (lto_output): Call lto_streamer_init directly.
2791 (lto_writer_init): Remove.
2792 * lto-streamer.c (streamer_hooks): New.
2793 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2794 instead of lto_preload_common_nodes.
2795 (lto_is_streamable): Move from lto-streamer.h
2796 (lto_streamer_hooks_init): New.
2797 (streamer_hooks): New.
2798 (streamer_hooks_init): New.
2799 * lto-streamer.h (struct output_block): Forward declare.
2800 (struct lto_input_block): Likewise.
2801 (struct data_in): Likewise.
2802 (struct bitpack_d): Likewise.
2803 (struct streamer_hooks): Declare.
2804 (streamer_hooks): Declare.
2805 (lto_streamer_hooks_init): Declare.
2806 (lto_streamer_write_tree): Declare.
2807 (lto_streamer_read_tree): Declare.
2808 (streamer_hooks_init): Declare.
2809 (lto_is_streamable): Move to lto-streamer.c
2810
22afe143
AK
28112011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2812
2813 * longlong.h (smul_ppmm): The resulting register pair contains the
2814 higher order word first.
2815
3906ea1b
BS
28162011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2817
2818 PR tree-optimization/46728
2819 * builtins.c (powi_table): Remove.
2820 (powi_lookup_cost): Remove.
2821 (powi_cost): Remove.
2822 (expand_powi_1): Remove.
2823 (expand_powi): Remove.
2824 (expand_builtin_pow_root): Remove.
2825 (expand_builtin_pow): Remove.
2826 (expand_builtin_powi): Eliminate handling of constant exponent.
2827 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 2828
3598cabd
AO
28292011-06-06 Alexandre Oliva <aoliva@redhat.com>
2830
2831 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2832
a7a110bb
AO
28332011-06-06 Alexandre Oliva <aoliva@redhat.com>
2834
2835 * dce.c (reset_unmarked_insns_debug_uses): New.
2836 (delete_unmarked_insns): Skip debug insns.
2837 (prescan_insns_for_dce): Likewise.
2838 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2839 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2840 active reg can be found.
2841 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2842 (convert_regs_1): Use it.
2843
6d8402ac
AO
28442011-06-06 Alexandre Oliva <aoliva@redhat.com>
2845
2846 * tree-pretty-print.c (dump_function_header): Add flags.
2847 Don't dump decl_uid with nouid.
2848 * tree-pretty-print.h (dump_function_header): Adjust.
2849 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2850 * passes.c (pass_init_dump_file): Pass dump_flags on.
2851 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2852
f75e1f1e
AO
28532011-06-06 Alexandre Oliva <aoliva@redhat.com>
2854
2855 PR bootstrap/49270
2856 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2857
275311c4
MP
28582011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2859
2860 PR tree-optimization/49243
2861 * calls.c (setjmp_call_p): Also check if fndecl has the
2862 returns_twice attribute.
2863
aa4203e7
RO
28642011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2865
2866 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2867 -ffast-math etc.
2868
48f9d59a
RH
28692011-06-06 Richard Henderson <rth@redhat.com>
2870 Georg-Johann Lay <avr@gjlay.de>
2871
2872 PR target/42210
2873 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2874 New predicates.
2875 * config/avr/avr.md ("insv"): New insn expander.
2876 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2877 "*insv.not.io", "*insv.reg"): New insns.
2878
11494830
HPN
28792011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2880
2881 PR target/49285
b8bc3a43
UB
2882 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2883 to nonimmediate_operand from memory_operand for the operand that is to
2884 be forced to memory by the expander. Lose the constraints.
11494830 2885
679e70df
EB
28862011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2887
2888 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2889 EH return when delayed branches are disabled.
2890
4d3d7f15
UB
28912011-06-05 Uros Bizjak <ubizjak@gmail.com>
2892
2893 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2894 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2895 calculation.
2896 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2897 Simplify MODE_V1DF and MODE_V2SF handling.
2898 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2899 Simplify MODE_SF handling.
2900
a45c0557
JH
29012011-06-04 Jan Hubicka <jh@suse.cz>
2902
2903 PR tree-optimization/48893
2904 PR tree-optimization/49091
2905 PR tree-optimization/49179
2906 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2907 Bounds check.
2908
26740835
JH
29092011-06-04 Jan Hubicka <jh@suse.cz>
2910
2911 PR lto/48954
b8bc3a43
UB
2912 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2913 bitmaps.
26740835 2914
014ab419
JW
29152011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2916
2917 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2918
407bcba7
JJ
29192011-06-04 Jakub Jelinek <jakub@redhat.com>
2920
2921 PR target/49281
2922 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2923 to be strictly smaller than 1 << shiftcount.
2924
e3195c52
JH
29252011-06-04 Jan Hubicka <jh@suse.cz>
2926
2927 PR tree-optimize/48929
2928 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2929 of empty predicate.
2930
047d33a0
AO
29312011-06-04 Alexandre Oliva <aoliva@redhat.com>
2932
2933 PR debug/48333
2934 * calls.c (emit_call_1): Prefer the __builtin declaration of
2935 builtin functions.
2936
dc587809
DN
29372011-06-03 Diego Novillo <dnovillo@google.com>
2938
2939 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2940 (lto_input_tree_pointers): Likewise.
2941 * lto-streamer-out.c (pack_value_fields): Likewise.
2942 (lto_output_tree_pointers): Likewise.
2943 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2944 and OPTIMIZATION_NODE.
2945
58cd1d70
RO
29462011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2947
2948 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2949 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2950 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2951 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2952 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2953 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2954 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2955 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2956 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2957 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2958 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2959 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2960 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2961 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2962 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2963 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2964 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2965 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2966 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2967 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2968 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2969 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2970 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2971 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2972 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2973 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2974 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2975 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2976 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2977 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2978 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2979 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2980 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2981 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2982 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2983 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2984 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2985 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2986 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2987 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2988 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2989 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2990 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2991 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2992 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2993 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2994 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2995 * system.h (MD_UNWIND_SUPPORT): Poison.
2996 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2997 * doc/tm.texi: Regenerate.
2998 * unwind-dw2.c: Include md-unwind-support.h instead of
2999 MD_UNWIND_SUPPORT.
3000 * config/ia64/unwind-ia64.c: Likewise.
3001 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3002
10c63ba4 30032011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
3004
3005 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3006
1b7a0148
RH
30072011-06-03 Richard Henderson <rth@redhat.com>
3008 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3009
3010 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3011 (sigill_hdlr): Correct insn, insn size.
3012 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3013
737346fa
RO
30142011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3015
3016 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3017 t-slibgcc-dummy.
3018 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3019 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3020 * config/mips/t-iris: Remove.
3021 * config/mips/t-irix6: New file.
3022 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3023
c192cee6
RO
30242011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3025
3026 * Makefile.in (LIB2ADDEHDEP): Remove.
3027 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3028 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3029 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3030 * config/t-darwin (LIB2ADDEHDEP): Remove.
3031 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3032 * config/t-linux (LIB2ADDEHDEP): Remove.
3033
d5828cc7
DN
30342011-06-03 Diego Novillo <dnovillo@google.com>
3035
3036 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3037 (lto_register_var_decl_in_symtab): Likewise.
3038 (lto_register_function_decl_in_symtab): Likewise.
3039 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 3040 logic to uniquify_nodes.
d5828cc7 3041
ee33b5f0
RO
30422011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3043
3044 * config/alpha/t-osf5: Remove.
3045 * config/alpha/t-osf-pthread: Remove.
3046 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3047 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3048
16868d84
JB
30492011-06-03 Julian Brown <julian@codesourcery.com>
3050
3051 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3052 (strongarm1110): Use strongarm tuning.
4d3d7f15 3053 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
3054 * config/arm/arm.c (arm_strongarm_tune): New.
3055 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3056 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3057 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3058 setting, using previous defaults or 1 for Cortex-A5.
3059 (arm_option_override): Set max_insns_skipped from current tuning.
3060
1cec1285
NS
30612011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3062
3063 * doc/install.texi (Options specification): Document --with-specs.
3064
eed55426
RR
30652011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3066
3067 * config/arm/neon.md (orndi3_neon): Actually split it.
3068
d5b6cc25
AO
30692011-06-02 Alexandre Oliva <aoliva@redhat.com>
3070
3071 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3072 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3073
2ba42841
AO
30742011-06-02 Alexandre Oliva <aoliva@redhat.com>
3075
3076 PR debug/47590
3077 * target.def (delay_sched2, delay_vartrack): New.
3078 * doc/tm.texi.in: Update.
3079 * doc/tm.texi: Rebuild.
3080 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3081 * var-tracking.c (gate_handle_var_tracking): Likewise.
3082 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3083 (bfin_flag_var_tracking): Drop.
3084 (output_file_start): Don't save and override flag_var_tracking.
3085 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3086 (bfin_reorg): Test original variables.
3087 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3088 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3089 (ia64_flag_var_tracking): Drop.
3090 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3091 (ia64_file_start): Don't save and override flag_var_tracking.
3092 (ia64_override_options_after_change): Ditto
3093 flag_schedule_insns_after_reload.
3094 (ia64_reorg): Test original variables.
3095 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3096 (picochip_flag_var_tracking): Drop.
3097 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3098 (picochip_option_override): Don't save and override
3099 flag_schedule_insns_after_reload.
3100 (picochip_asm_file_start): Ditto flag_var_tracking.
3101 (picochip_reorg): Test original variables.
3102 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3103 (TARGET_DELAY_VARTRACK): Define.
3104 (spu_var_tracking): New.
3105 (spu_machine_dependent_reorg): Call it.
3106 (asm_file_start): Don't save and override flag_var_tracking.
3107
a700b5f0
KK
31082011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3109
3110 PR target/49163
3111 * config/sh/predicates.md (general_movsrc_operand): Return 0
3112 for memory and memory subreg of which address is an invalid
3113 indexed address for QI and HImode.
3114 (general_movdst_operand): Likewise.
3115
76015c34
EB
31162011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3117
3118 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3119 edges only, when there is a non-local label in the function.
3120 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3121
4e76acd2
UB
31222011-06-02 Uros Bizjak <ubizjak@gmail.com>
3123
3124 * config/i386/constraints.md (Y3): New register constraint.
3125 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3126 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3127 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3128 *sse2_interleave_lowv2df.
3129
288f605f
JB
31302011-06-02 Julian Brown <julian@codesourcery.com>
3131
3132 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3133 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3134 (arm_cortex_a5_tune): New.
3135
7ec70105
JB
31362011-06-02 Julian Brown <julian@codesourcery.com>
3137
153668ec
JB
3138 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3139 * config/arm/arm.c (arm_default_branch_cost): New.
3140 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3141 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3142 (arm_fa726_tune): Set branch_cost field using
3143 arm_default_branch_cost.
3144 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3145 current_tune structure.
3146 * dojump.c (tm_p.h): Include file.
3147
31482011-06-02 Julian Brown <julian@codesourcery.com>
3149
3150 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3151 tuning.
7ec70105
JB
3152 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3153 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3154 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3155 field.
3156 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3157 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3158 (arm_fa726te_tune): Add prefer_constant_pool setting.
3159 (arm_v6t2_tune, arm_cortex_tune): New.
3160 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3161 prefer_constant_pool setting.
3162
aad61732
UB
31632011-06-02 Uros Bizjak <ubizjak@gmail.com>
3164
4e76acd2
UB
3165 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3166 switch statement.
aad61732
UB
3167 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3168 (*movdf_internal) <case 6,7,8>: Ditto.
3169
4e76acd2 3170 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
3171 * config/i386/sse.md (vec_set<mode>_0): Merge with
3172 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3173 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3174 *vec_extractv2di_1_sse.
3175 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3176 and *vec_concatv2di_rex64_sse.
3177
6e588138
SH
31782011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3179
3180 PR target/48807
3181 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3182 of cgraph_local_info for null before attempting to use it.
3183
bc6d3f91
EB
31842011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3185
3186 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3187 (current_function_dynamic_alloc_count): Delete.
3188 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3189 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3190 (expand_builtin_update_setjmp_buf): Remove dead code.
3191 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3192 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3193 support.
3194 * function.c (instantiate_virtual_regs): Likewise.
3195 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3196 for a block with a single abnormal incoming edge.
3197 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 3198 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
3199 * config/sparc/sparc-protos.h (load_got_register): Declare.
3200 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3201 (load_got_register): Make global.
3202 (sparc_frame_pointer_required): Add 'static'.
3203 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3204 (sparc_builtin_setjmp_frame_value): New function.
3205 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3206 (save_stack_nonlocal): New expander.
3207 (restore_stack_nonlocal): Likewise.
3208 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3209 (nonlocal_goto_internal): New insn.
3210 (goto_handler_and_restore): Delete.
3211 (builtin_setjmp_setup): Likewise.
3212 (do_builtin_setjmp_setup): Likewise.
3213 (setjmp): Likewise.
3214 (builtin_setjmp_receiver): New expander.
3215
69282fee
DL
32162011-06-01 David Li <davidxl@google.com>
3217
3218 PR middle-end/49261
3219 * tree-pretty-print.c (dump_function_header): Format cleanup.
3220
e95873dd
KK
32212011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3222
3223 PR target/49238
3224 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3225 needed when original operands are used for msw_skip comparison.
3226
88c15821
JJ
32272011-06-01 Jakub Jelinek <jakub@redhat.com>
3228
3229 PR debug/49250
3230 * var-tracking.c (add_uses, add_stores): Don't call
3231 cselib_subst_to_values on ENTRY_VALUE.
3232
07233947
DN
32332011-06-01 Diego Novillo <dnovillo@google.com>
3234
3235 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3236 output_record_start with LTO_null instead of output_zero.
3237 (lto_output_ts_binfo_tree_pointers): Likewise.
3238 (lto_output_tree): Likewise.
3239 (output_eh_try_list): Likewise.
3240 (output_eh_region): Likewise.
3241 (output_eh_lp): Likewise.
3242 (output_eh_regions): Likewise.
3243 (output_bb): Likewise.
3244 (output_function): Likewise.
3245 (output_unreferenced_globals): Likewise.
3246 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3247 instead of NUM_TREE_CODES.
3248 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3249 (lto_output_int_in_range): Change << to >> when shifting VAL.
3250
4ee3537a
DN
32512011-06-01 Diego Novillo <dnovillo@google.com>
3252
3253 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3254 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3255
02972eaf
RS
32562011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3257
3258 PR target/45074
3259 * optabs.h (valid_multiword_target_p): Declare.
3260 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3261 doing multi-word operations.
3262 * optabs.c (expand_binop): Likewise.
3263 (expand_doubleword_bswap): Likewise.
3264 (expand_absneg_bit): Likewise.
3265 (expand_unop): Likewise.
3266 (expand_copysign_bit): Likewise.
3267 (multiword_target_p): New function.
3268
4d41c2d1
RS
32692011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3270
3271 PR rtl-optimization/48830
3272 PR rtl-optimization/48808
3273 PR rtl-optimization/48792
3274 * reload.c (push_reload): Check contains_reg_of_mode.
3275 * reload1.c (strip_paradoxical_subreg): New function.
3276 (gen_reload_chain_without_interm_reg_p): Use it to handle
3277 paradoxical subregs.
3278 (emit_output_reload_insns, gen_reload): Likewise.
3279
5f57dccb
DL
32802011-06-01 David Li <davidxl@google.com>
3281
3282 * predict.c : Change pass name
3283 * ipa.c: Ditto.
3284 * dce.c: Ditto.
3285 * tree-profile.c: Ditto.
3286 * except.c: Ditto.
3287
ea6cf778
DL
32882011-06-01 David Li <davidxl@google.com>
3289
3290 * tree-pretty-print.c (dump_function_header): New function.
3291 * final.c (rest_of_clean_state): Use header dumper.
3292 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3293 * passes.c (pass_init_dump_file): Use header dumper.
3294
ebdc0d4b
JJ
32952011-06-01 Jakub Jelinek <jakub@redhat.com>
3296
eeeb9b49
JJ
3297 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3298 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3299 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3300 New functions.
3301 (mem_loc_descriptor): Use them.
3302
ebdc0d4b
JJ
3303 * var-tracking.c (create_entry_value): New function.
3304 (vt_add_function_parameter): Use it.
3305
0699e415
RO
33062011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3307
3308 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3309 Include <signal.h>, <ucontext.h>.
3310 (sigill_caught): Define.
3311 (sigill_hdlr): New function.
3312 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3313 insns can be executed.
aad61732 3314 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
3315 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3316
ca24c5ad
RO
33172011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3318
3319 * config/t-slibgcc-darwin: Move to ...
aad61732 3320 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
3321 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3322 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3323 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 3324 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
3325 Remove i386/t-crtstuff from tmake_file.
3326 (i[34567]86-*-solaris2*): Remove t-svr4,
3327 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3328 t-slibgcc-dummy.
3329 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3330 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3331 sparc/t-crtfm from tmake_file.
3332 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3333 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3334 Remove extra_parts.
3335 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3336 * config/i386/t-nwld (SHLIB_LINK): Remove.
3337 * config/i386/t-rtems-i386: Rename to ...
3338 * config/i386/t-rtems: ... this.
3339 ($(T)crti.o, $(T)crtn.o): Remove.
3340 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3341 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3342 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3343 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3344 EXTRA_MULTILIB_PARTS): Remove.
3345 * config/sparc/t-sol2-64: Likewise.
3346 * config/sparc/t-sol2: Remove.
3347 * config/sparc/t-crtin: Remove.
3348 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3349 * config/i386/gmon-sol2.c: Remove.
3350 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3351 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3352 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3353 * config/i386/sol2-gc1.asm: Remove.
3354 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3355 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3356 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3357 * config/t-slibgcc-sld: Remove.
3358
a78d13c3
JJ
33592011-06-01 Jakub Jelinek <jakub@redhat.com>
3360
3361 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3362 base_type_for_mode with op_mode instead of mode.
3363
572070ef
PB
33642011-06-01 Paul Brook <paul@cpodesourcery.com>
3365
3366 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3367 Cortex-A15.
3368 * config/arm/arm-tune.md: Regenerate.
3369 * config/arm/arm-tables.opt: Regenerate.
3370 * config/arm/arm.c (FL_DIV): Rename...
3371 (FL_THUMB_DIV): ... to this.
3372 (FL_ARM_DIV): Define.
3373 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3374 (arm_arch_hwdiv): Remove.
3375 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3376 (arm_issue_rate): Add cortexr5.
3377 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3378 __ARM_ARCH_EXT_IDIV__.
3379 (TARGET_IDIV): Define.
3380 (arm_arch_hwdiv): Remove.
3381 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3382 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3383 (divsi3, udivsi3): New patterns.
3384 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3385 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3386
11026b51
MJ
33872011-06-01 Martin Jambor <mjambor@suse.cz>
3388
3389 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3390 * ipa-utils.c (searchc): Set scc_no.
3391
b6156cf2
MJ
33922011-06-01 Martin Jambor <mjambor@suse.cz>
3393
3394 * ipa-utils.c (searchc_env): New field allow_overwritable.
3395 (searchc): do not ignore edges to overwritable nodes if indicated
3396 by env->allow_overwritable.
3397 (ipa_reduced_postorder): Set env.allow_overwritable.
3398
6807da97
RG
33992011-06-01 Richard Guenther <rguenther@suse.de>
3400
3401 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3402 char_type_node.
3403 * lto-streamer.c (lto_record_common_node): Take node pointer,
3404 do not register types.
3405 (lto_preload_common_nodes): Explicitly skip preloading nodes
3406 that differ between frontends.
3407
66bd20e7 34082011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
3409
3410 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3411 NON_FLOAT_REGS.
3412
66bd20e7 34132011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
3414
3415 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3416 parameter value for dump. Dump cost on outermost call only.
3417 (rs6000_memory_move_cost): Dump cost on outermost call only.
3418
7351d8da
JJ
34192011-05-31 Jakub Jelinek <jakub@redhat.com>
3420
ead7c399
JJ
3421 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3422 DW_OP_GNU_convert ops.
3423
509f4495
JJ
3424 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3425 cselib_preserve_constants.
3426 (cselib_lookup_1): If cselib_preserve_constants,
3427 a new VALUE is being created for REG and there is a VALUE for the
3428 same register in wider mode, add another loc with lowpart SUBREG of
3429 the wider VALUE.
3430 (cselib_subst_to_values): Handle ENTRY_VALUE.
3431 * var-tracking.c (replace_expr_with_values): Return NULL for
3432 ENTRY_VALUE too.
3433 * dwarf2out.c (convert_descriptor_to_signed): New function.
3434 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3435 instead of two shifts.
3436 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3437 the right mode if needed.
3438 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3439 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3440 convert_descriptor_to_signed.
3441 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3442 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3443
7351d8da
JJ
3444 PR target/48688
3445 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3446
5cc93ee0
UB
34472011-05-31 Uros Bizjak <ubizjak@gmail.com>
3448
3449 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3450 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3451 (SWI248x): New mode iterator, rename from X87MODEI.
3452 (X87MODEI): Remove mode iterator.
3453 (X87MODEI12): Ditto.
3454 (SSEMODEI24): Ditto.
3455
f0686e78
AO
34562011-05-31 Alexandre Oliva <aoliva@redhat.com>
3457
3458 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3459 * doc/invoke.texi: Document max-vartrack-expr-depth.
3460 * var-tracking.c (EXPR_DEPTH): New.
3461 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3462
f3308413
AO
34632011-05-31 Alexandre Oliva <aoliva@redhat.com>
3464
3465 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3466 * config/i386/sse.md: Add n to negated FMA pattern names.
3467
28c14a04
AO
34682011-05-31 Alexandre Oliva <aoliva@redhat.com>
3469
3470 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3471
70efc82d
AO
34722011-05-31 Alexandre Oliva <aoliva@redhat.com>
3473
5cc93ee0 3474 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 3475
6ba5d856
UB
34762011-05-31 Uros Bizjak <ubizjak@gmail.com>
3477
3478 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3479 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3480
34812011-05-31 Uros Bizjak <ubizjak@gmail.com>
3482
3483 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3484 registers. Penalize F*r->o alternative to prevent partial memory
3485 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3486 CONST_DOUBLE immediates when optimizing function for size. Do not move
3487 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3488 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3489 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3490 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3491 alternatives.
3492 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3493
3494 (fp_register_operand splitters): Use fp_register_operand
3495 constraint. Do not use FP_REG_P in insn condition.
3496 (any_fp_register_operand splitters): Use any_fp_register_operand
3497 constraint. Do not use ANY_FP_REG_P in insn condition.
3498
533c07c5
JH
34992011-05-31 Jan Hubicka <jh@suse.cz>
3500
3501 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3502 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3503 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3504 (lto_output_edge): Use output_enum and var_len_unsigned.
3505 (lto_output_varpool_node): Likewise.
3506 (input_overwrite_node): Do not take resolution parameter;
3507 extract it from a bitpack.
3508 (input_node): Do not read resolution; use input_enum and
3509 var_len_unsigned.
3510 (input_varpool_node): Likewise.
3511 (input_edge): Likewise.
3512 (input_cgraph_1): Likewise.
3513
2611db71
RG
35142011-05-31 Richard Guenther <rguenther@suse.de>
3515
3516 * gimple.c (gimple_register_canonical_type): Do not register
3517 any types via gimple_register_type.
3518
b9e57365
JH
35192011-05-31 Jan Hubicka <jh@suse.cz>
3520
3521 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3522 of thunks.
3523
35979cc2
JJ
35242011-05-31 Jakub Jelinek <jakub@redhat.com>
3525
3526 PR rtl-optimization/49235
3527 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3528 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3529
8f7de592
IR
35302011-05-31 Ira Rosen <ira.rosen@linaro.org>
3531
3532 PR tree-optimization/49093
3533 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3534 data references.
3535
8d8a3bda
DS
35362011-05-31 Dodji Seketeli <dodji@redhat.com>
3537
3538 PR debug/49047
3539 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 3540 for concrete functions containing the code of cloned functions.
8d8a3bda 3541
2e87621c
RG
35422011-05-31 Richard Guenther <rguenther@suse.de>
3543
3544 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3545 to ...
3546 (forward_propagate_into_comparison_1): ... this.
3547 (forward_propagate_comparison): Rename to ...
3548 (forward_propagate_into_comparison): ... this. Split out
3549 real forward propagation code to ...
3550 (forward_propagate_comparison): ... this.
3551 (forward_propagate_into_gimple_cond): Remove looping.
3552 (forward_propagate_into_cond): Likewise.
3553 (simplify_not_neg_expr): Return whether we have done something.
3554 (simplify_gimple_switch): Likewise.
3555 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3556 (ssa_forward_propagate_and_combine): ... this. Re-structure
3557 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 3558 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
3559 (pass_forwprop): Adjust.
3560
5a880d5d
ILT
35612011-05-30 Ian Lance Taylor <iant@google.com>
3562
3563 * godump.c (go_format_type): Correct length of name added to
3564 obstack for anonymous field.
3565
5f133038
KK
35662011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3567
3568 PR target/49186
3569 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3570 part of the second operand is 0.
3571
b17d5426
UB
35722011-05-30 Uros Bizjak <ubizjak@gmail.com>
3573
3574 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3575 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3576 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3577 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 3578 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
3579 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3580 when optimizing function for size. Do not move CONST_DOUBLEs
3581 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
3582 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3583 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
3584 check for ANY_FP_REGNO_P instead.
3585 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3586 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3587 function for speed.
3588 * config/i386/i386.c (ix86_option_override_internal): Do not
3589 set TARGET_INTEGER_DFMODE_MOVES here.
3590
a0cd843f
L
35912011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3592
3593 PR target/49168
aad61732 3594 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 3595
006a5f38
JJ
35962011-05-30 Jakub Jelinek <jakub@redhat.com>
3597
3598 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3599 DW_TAG_rvalue_reference_type even for
3600 -gdwarf-4 -fno-debug-types-section.
3601
6e96f98a
BS
36022011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3603
3604 PR tree-optimization/46728
3605 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3606 (build_and_insert_binop): New.
3607 (gimple_expand_builtin_pow): Reorder args for
3608 build_and_insert_call; use build_and_insert_binop; add more
3609 optimizations for fractional exponents.
b17d5426 3610
4f60111f
NF
36112011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3612
3613 PR bootstrap/49190
3614
3615 Revert:
3616 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3617
3618 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3619 tree_common.
3620 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3621 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3622 TS_BASE instead of TS_COMMON.
3623 * varasm.c (assemble_name): Remove assert.
3624
3fd7879d
RS
36252011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3626
3627 * config.gcc: Keep obselete list sorted.
3628
80060f7a
JJ
36292011-05-30 Jakub Jelinek <jakub@redhat.com>
3630 Eric Botcazou <ebotcazou@adacore.com>
3631
3632 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3633 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3634 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3635 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3636 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3637
17e99cdb
RG
36382011-05-30 Richard Guenther <rguenther@suse.de>
3639
3640 * gimple.c (gimple_types_compatible_p_1): Compare record
3641 and union type members properly.
3642
42b05b6e
RG
36432011-05-30 Richard Guenther <rguenther@suse.de>
3644
3645 PR tree-optimization/49210
6ba5d856
UB
3646 * ipa-split.c (split_function): Care for the case where the call
3647 result is not trivially convertible to the result holding variable.
42b05b6e 3648
f3321158
RG
36492011-05-30 Richard Guenther <rguenther@suse.de>
3650
3651 PR tree-optimization/49218
3652 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3653 overflow occured.
3654
d12d8efe
RG
36552011-05-30 Richard Guenther <rguenther@suse.de>
3656
3657 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3658 New function split out from ...
3659 (forward_propagate_into_gimple_cond): ... here. Adjust.
3660 (forward_propagate_into_cond): Likewise.
3661 (forward_propagate_comparison): Also propagate into
3662 comparisons on assignment RHS. Change return value to
3663 behave similar to forward_propagate_into_cond.
3664 (tree_ssa_forward_propagate_single_use_vars): Handle
3665 strict-overflow warnings properly for forward_propagate_comparison.
3666
df33b41f
RO
36672011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3668
3669 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3670 from plugin linker.
3671 * configure: Regenerate.
3672
69940d4d
IR
36732011-05-30 Ira Rosen <ira.rosen@linaro.org>
3674
3675 PR tree-optimization/49199
3676 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 3677 non-reduction operands are either defined in the loop or by induction.
69940d4d 3678
226c52aa
XDL
36792011-05-29 Xinliang David Li <davidxl@google.com>
3680
3681 * opts-global.c (handle_common_deferred_options): Handle new options.
3682 * passes.c (register_one_dump_file): Call register_pass_name.
3683 (execute_one_pass): Check explicit enable/disable flag.
3684 (passr_hash): New function.
3685 (passr_eq): Ditto.
3686 (register_pass_name): Ditto.
3687 (get_pass_by_name): Ditto.
3688 (pass_hash): Ditto.
3689 (pass_eq): Ditto.
3690 (enable_pass): Ditto.
3691 (disable_pass): Ditto.
3692 (is_pass_explicitly_enabled_or_disabled): Ditto.
3693
491d8eed
UB
36942011-05-29 Uros Bizjak <ubizjak@gmail.com>
3695
3696 * config/i386/i386.md (*movoi_internal_avx): Use
3697 standard_sse_constant_opcode for alternative 0.
3698 (*movti_internal_sse): Ditto.
3699 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3700 alternative 2.
3701 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3702 sselog1 type moves.
3703 (*movsi_internal): Ditto.
3704 (*movdi_internal): Ditto. Add ssecvt type moves.
3705
eb93b31f
EB
37062011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3707
3708 PR target/48830
3709 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3710
3f831b7d
JJ
37112011-05-29 Jakub Jelinek <jakub@redhat.com>
3712
3713 PR rtl-optimization/49095
3714 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3715 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3716
ee3ee488
RS
37172011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3718
3719 PR target/43995
3720 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3721 recurse_p argument. Only follow register copies if it is set,
3722 and prevent mips_find_pic_call_symbol from recursing.
3723 (mips_find_pic_call_symbol): Add a recurse_p argument.
3724 Pass it to mips_pic_call_symbol_from_set.
3725 (mips_annotate_pic_calls): Update accordingly.
3726
65f3dedb
RS
37272011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3728
3729 * emit-rtl.c (try_split): Use a loop to search for
3730 NOTE_INSN_CALL_ARG_LOCATIONs.
3731
61e374ab
RG
37322011-05-29 Richard Guenther <rguenther@suse.de>
3733
3734 PR tree-optimization/49217
3735 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3736
fac009a8
JH
37372011-05-28 Jan Hubicka <jh@suse.cz>
3738
3739 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3740 length.
3741 (string_slot_free): Remove
3742 (create_output_block): Initialize obstack.
3743 (destroy_output_block): Free obstack.
3744 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3745 the string unless it needs to be added into the hash.
3746 (lto_output_string_with_length): Add persistent attribute;
3747 handle NULL strings.
3748 (lto_output_string): Add PERSISTENT parameter.
3749 (output_string_cst, output_identifier): Simplify.
3750 (lto_output_location_bitpack): Update.
3751 (lto_output_builtin_tree): Update.
3752 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
3753 (lto_output_string, lto_output_string_with_length): Remove
3754 declarations; functions are static now.
fac009a8 3755
fa766006
JH
37562011-05-28 Jan Hubicka <jh@suse.cz>
3757
3758 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3759 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3760 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3761 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3762 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3763 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3764 unpack_ts_decl_with_vis_value_fields,
3765 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3766 lto_get_builtin_tree): Use enum and variable length i/o.
3767 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3768 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3769 New functions.
3770 (bp_pack_enum, bp_unpack_enum): New macros.
3771
e092158b
RS
37722011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3773
3774 * genrecog.c: Remove redundant forward declarations.
3775
7ca2afa0
RS
37762011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3777
3778 * config.gcc: Deprecate mips*-*-openbsd*.
3779
a601a53a
RS
37802011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3781
3782 PR bootstrap/49195
3783 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3784 for match_op_dup.
3785
fc64b448
AP
37862011-05-27 Andrew Pinski <pinskia@gmail.com>
3787
3788 PR middle-end/48981
3789 * gengtype.c (vec_prefix_type): New function.
3790 (note_def_vec): Use vec_prefix_type and change the length
3791 attribute to be based on the prefix.
3792 * vec.c: Include coretypes.h before vec.h.
3793 (struct vec_prefix): Remove.
3794 (vec_gc_p_reserve): Change the offsetof to sizeof.
3795 (vec_gc_p_reserve_exact): Likewise.
3796 (vec_heap_p_reserve): Likewise.
3797 (vec_heap_p_reserve_exact): Likewise.
3798 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3799 (vec_stack_p_reserve): Change the offsetof to sizeof.
3800 (vec_stack_p_reserve_exact): Likewise.
3801 * vec.h (struct vec_prefix): New struct definition.
3802 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3803 (VEC_T_GTY(T,B)): Likewise.
3804 (DEF_VEC_FUNC_P(T)): Use prefix field.
3805 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3806 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3807
ba869341
BS
38082011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3809
3810 PR tree-optimization/46728
3811 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3812 (powi_as_mults): Add gimple_set_location.
3813 (build_and_insert_call): New.
3814 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3815 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 3816
d296760d
AM
38172011-05-27 Alexander Monakov <amonakov@ispras.ru>
3818
3819 * doc/contrib.texi: Update copyright years.
3820 (Contributors): Add Zdenek Sojka.
3821
38e01f9e
NF
38222011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3823
3824 * c-decl.c (c_push_function_context): Copy the current statement
3825 list stack.
3826 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3827 (finish_struct): Call building_stmt_list_p instead of checking
3828 cur_stmt_list.
3829 * c-parser.c (c_parser_postfix_expression): Likewise.
3830 * c-typeck.c (c_end_compound_stmt): Likewise.
3831 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3832 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3833 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3834 (free_stmt_list): Likewise.
3835 * tree.h (struct tree_statement_list): Include typed_tree instead
3836 of tree_common.
3837 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3838 as TS_TYPED instead of TS_COMMON.
3839
8950516e 38402011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 3841 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
3842
3843 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3844 (HAVE_AS_IX86_TLSGDPTL): Define.
3845 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3846 (HAVE_AS_IX86_TLSLDMPLT): Define.
3847 * configure: Regenerate.
3848 * config.in: Regenerate.
3849 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3850 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3851 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3852 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3853 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3854 @tlsldmplt or @plt.
3855 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3856
b0bd15f7
BS
38572011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3858
3859 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3860 and reverse_cond.
3861 (INSN_COND, INSN_REVERSE_COND): New macros.
3862 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3863 once.
3864 (sched_get_condition_with_rev): Cache the results, and look them up
3865 if possible.
3866 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3867 are clobbered by the current insn.
3868 * target.def (exposed_pipline): New sched data hook.
3869 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3870 * doc/tm.texi: Regenerate.
3871
fa65a9cf
BS
38722011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3873
3874 PR tree-optimization/49170
3875 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3876 sincos or cexp.
b0bd15f7 3877
c2299dfe
RG
38782011-05-27 Richard Guenther <rguenther@suse.de>
3879
3880 PR middle-end/49189
3881 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3882 of comparisons.
3883
a95b23b4
BS
38842011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3885
3886 * haifa-sched.c (sched_scan_info): Remove.
3887 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3888 with NULL args.
3889 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3890 Remove functions.
3891 (sched_scan): Remove.
3892 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3893 static. All callers changed.
3894 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3895 static. All callers changed.
3896 (sched_init_luids): Remove all arguments except the first. All
3897 callers changed. Don't use sched_scan.
3898 (haifa_init_h_i_d): Likewise.
3899 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3900 manually rather than using sched_init_luids. Likewise with
3901 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3902 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3903 rather than sched_init_luids with NULL args.
3904 * sel-sched-ir.c (new_insns): Remove variable.
3905 (sched_scan): New static function, previously in haifa-sched.c. Remove
3906 all arguments but the first two; all callers changed.
3907 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3908 rather than sched_init_luids.
3909 (sel_init_bbs): Remove second argument. All callers changed.
3910 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3911 with NULL arguments.
3912 (create_insn_rtx_from_pattern): Likewise.
3913 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3914 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3915 (sched_init_insn_luid, sched_extend_luids): Declare.
3916 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3917 declarations.
3918
f8f972fc
RB
39192011-05-27 Richard Guenther <rguenther@suse.de>
3920
3921 PR middle-end/49177
3922 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3923 A CMP B ? (T) true : (T) false for non-integral types T again.
3924
51a9ed47
JH
39252011-05-27 Jan Hubicka <jh@suse.cz>
3926
3927 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3928 so 0 means NULL string.
3929 (lto_output_string_with_length): ... here.
f8f972fc
RB
3930 (lto_output_string, output_string_cst, output_identifier): Update
3931 handling of NULL strings.
51a9ed47
JH
3932 (lto_output_location_bitpack): New function.
3933 (lto_output_location): Use it.
3934 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
3935 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3936 len values.
3937 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3938 values by 1.
491d8eed 3939 (input_string_internal): ... here;
f8f972fc
RB
3940 (input_string_cst, input_identifier, lto_input_string): Update handling
3941 of NULL strings.
51a9ed47
JH
3942 (lto_input_location_bitpack): New function
3943 (lto_input_location): Use it.
f8f972fc
RB
3944 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3945 values.
51a9ed47
JH
3946 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3947 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3948 (bp_pack_value): Sanity check the value range.
3949 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3950 New functions.
3951 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3952 New functions.
3953
66bd20e7 39542011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
3955
3956 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3957 call_arg_location instructions down the floor.
3958
574e418a
VM
39592011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3960
3961 PR rtl-optimization/49154
3962 * ira.c (setup_pressure_classes): Process class without sublcasses
3963 as a candidate for pressure classes.
3964
6a1a787e
RS
39652011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3966
3967 PR rtl-optimization/48575
3968 * genrecog.c (position_type): New enum.
3969 (position): New structure.
3970 (decision): Use position structure instead of a string.
3971 (root_pos, peep2_insn_pos_list): New variables.
3972 (next_position, compare_positions): New functions.
3973 (new_decision): Use position structures instead of strings.
3974 (maybe_both_true): Likewise.
3975 (change_state): Likewise.
3976 (write_tree): Likewise.
3977 (make_insn_sequence): Likewise.
3978
92e948a8
NF
39792011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3980
3981 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3982 TS_BASE instead of TS_COMMON.
3983 (find_decls_types_r): Check for TS_TYPED structure before looking at
3984 TREE_TYPE.
3985 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3986 Add chain field.
3987 (BLOCK_CHAIN): Use new chain field.
3988
66bd20e7 39892011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
3990
3991 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3992 moves expensive on Power7 also.
3993
1f498652
RG
39942011-05-26 Richard Guenther <rguenther@suse.de>
3995
3996 * fold-const.c (fold_unary_loc): Remove bogus code.
3997
a2fc3e63
NF
39982011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3999
4000 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4001 tree_common.
4002 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4003 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4004 TS_BASE instead of TS_COMMON.
4005 * varasm.c (assemble_name): Remove assert.
4006
d11bf18f
BS
40072011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4008
4009 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4010 substituted first.
4011 * libgcc-std.ver: Delete file.
4012
ac8e1875
RG
40132011-05-26 Richard Guenther <rguenther@suse.de>
4014
4015 PR tree-optimization/48702
4016 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4017 only when we know the base address is within bounds.
4018 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4019 assume the base address of TARGET_MEM_REFs is in bounds.
4020
7e32e652
RO
40212011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4022
4023 PR target/49099
4024 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4025 declaration in TARGET_SOLARIS.
4026
66bd20e7 40272011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
4028
4029 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 4030 The instruction is then expanded explicitly.
43660e0b
HS
4031 (supported_compare): Callable instruction.
4032 (compare): Likewise.
4033
1537737f
JJ
40342011-05-26 Jakub Jelinek <jakub@redhat.com>
4035
4036 PR c++/49165
4037 * gimplify.c (shortcut_cond_r): Don't special case
4038 COND_EXPRs if they have void type on one of their arms.
4039
7b1ac803
BS
40402011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4041
4042 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4043 to reduce duplication, and to achieve a slightly more logical order
4044 of operations.
4045
1aa9438f
JJ
40462011-05-26 Jakub Jelinek <jakub@redhat.com>
4047
4048 PR tree-optimization/49161
4049 * tree-vrp.c (struct case_info): New type.
4050 (compare_case_labels): Sort case_info structs instead of
4051 trees, and not primarily by CASE_LABEL uids but by
4052 label_for_block indexes.
4053 (find_switch_asserts): Put case labels into struct case_info
4054 array instead of TREE_VEC, adjust sorting, compare label_for_block
4055 values instead of CASE_LABELs.
4056
50fed7bf
RR
40572011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4058
4059 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4060 ("orndi3_neon"): Likewise.
4061 ("bic<mode>3_neon"): Likewise.
4062
48df3fa6
IR
40632011-05-26 Ira Rosen <ira.rosen@linaro.org>
4064
4065 PR tree-optimization/49038
4066 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4067 Ensure at least one epilogue iteration if required by data
4068 accesses with gaps.
4069 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4070 to mark loops that require peeling for gaps.
4071 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4072 (vect_get_known_peeling_cost): Take peeling for gaps into
4073 account.
4074 (vect_transform_loop): Generate epilogue if required by data
4075 access with gaps.
4076 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4077 loop as requiring an epilogue if there are gaps in the end of
4078 the strided group.
4079
53febcba
ILT
40802011-05-25 Ian Lance Taylor <iant@google.com>
4081
4082 * godump.c (go_format_type): Output the first field with a usable
4083 Go type, if any.
4084
dbbc4d4c
ILT
40852011-05-25 Ian Lance Taylor <iant@google.com>
4086
4087 * godump.c (go_format_type): Check for invalid type names, pointer
4088 target types, and struct field types.
4089
f03a5402
JM
40902011-05-25 Jason Merrill <jason@redhat.com>
4091
4092 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4093
c497c412
UB
40942011-05-25 Uros Bizjak <ubizjak@gmail.com>
4095
4096 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4097
e470affe
L
40982011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4099
4100 * config/i386/i386.md (*movqi_extv_1)): Put back
4101 "register_operand" check in "type" calculation.
4102 (*movqi_extzv_2): Likewise.
4103
6c81b2bc
L
41042011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4105
c497c412 4106 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 4107
0c007eb2
BS
41082011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4109
4110 PR bootstrap/49160
4111 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4112 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4113 __divxc3, __divtc3): Wrap definitions in #ifndef.
4114
521ca78e
L
41152011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4116
4117 PR target/49142
4118 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4119 "register_operand" check and replace q_regs_operand with
4120 QIreg_operand in "type" calculation.
4121 (*movqi_extv_1): Likewise.
4122 (*movqi_extzv_2_rex64): Likewise.
4123 (*movqi_extzv_2): Likewise.
4124
4125 * config/i386/predicates.md (QIreg_operand): New.
4126
29f8b844
RG
41272011-05-25 Richard Guenther <rguenther@suse.de>
4128
4129 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4130 type-based offset disambiguation, streamline MEM_REF and
4131 TARGET_MEM_REF handling.
4132
74838de3
L
41332011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4134
4135 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4136 (bdesc_special_args): Add pause intrinsic.
4137
4138 * config/i386/i386.md (UNSPEC_PAUSE): New.
4139 (pause): Likewise.
4140 (*pause): Likewise.
4141 * config/i386/ia32intrin.h (__pause): Likewise.
4142
4143 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4144 pause intrinsic.
4145
d24ad7d6
BS
41462011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4147
4148 PR tree-optimization/46728
4149 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4150 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 4151
d9f8303f
NF
41522011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4153
4154 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4155 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4156 instead of TS_COMMON.
4157
cdbf4541
BS
41582011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4159
4160 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4161 LIBGCC2_GNU_PREFIX is defined.
4162 (__N): New macro.
4163 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4164 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4165 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4166 __clz_tab): Define using __N.
4167 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4168 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4169 * target.def (libfunc_gnu_prefix): New hook.
4170 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4171 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4172 * doc/tm.texi: Regenerate.
4173 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4174 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4175 account.
4176 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4177 (init_optabs): Likewise for the bswap libfuncs.
4178 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4179 and divide.
4180 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4181 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4182 * libgcc-std.ver: Remove.
4183 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4184 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4185 libgcc-std.ver.
4186 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4187 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4188 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4189 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4190 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4191 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4192 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4193 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4194 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4195 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4196
f242c0a5
JH
41972011-05-25 Jan Hubicka <jh@suse.cz>
4198
4199 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4200 (lto_output_tree): Use output_record_start.
4201 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4202 (lto_get_pickled_tree): Use input_record_start.
4203 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4204 (lto_value_range_error): New function.
4205 * lto-streamer.h (lto_value_range_error): Declare.
4206 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4207 (lto_output_enum, lto_input_enum): New macros.
4208
a11e0df4
EB
42092011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4210
4211 * common.opt (flag_stack_usage_info): New variable.
4212 (-Wstack-usage): New option.
4213 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4214 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4215 <OPT_fstack_usage>: Likewise.
4216 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4217 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4218 of flag_stack_usage.
4219 (emit_library_call_value_1): Likewise.
4220 * explow.c (allocate_dynamic_stack_space): Likewise.
4221 * function.c (instantiate_virtual_regs ): Likewise.
4222 (prepare_function_start): Likewise.
4223 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4224 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4225 * config/arm/arm.c (arm_expand_prologue): Likewise.
4226 (thumb1_expand_prologue): Likewise.
4227 * config/avr/avr.c (expand_prologue): Likewise.
4228 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4229 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4230 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4231 * config/mips/mips.c (mips_expand_prologue): Likewise.
4232 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4233 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4234 * config/s390/s390.c (s390_emit_prologue): Likewise.
4235 * config/sh/sh.c (sh_expand_prologue): Likewise.
4236 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4237 * config/spu/spu.c (spu_expand_prologue): Likewise.
4238
e7cfe241
RG
42392011-05-25 Richard Guenther <rguenther@suse.de>
4240
4241 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4242 (gimple_canonical_types_compatible_p): Likewise.
4243
c5235f4c
JH
42442011-05-25 Jan Hubicka <jh@suse.cz>
4245
4246 PR middle-end/49062
4247 * ipa.c (function_and_variable_visibility): Only add to same
4248 comdat group list if DECL_ONE_ONLY.
4249
8242a0f6
AB
42502011-05-25 Andrey Belevantsev <abel@ispras.ru>
4251
4252 PR rtl-optimization/49014
4253 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4254
642a011d
JJ
42552011-05-25 Jakub Jelinek <jakub@redhat.com>
4256
4257 PR target/49128
4258 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4259
30a435d8
VM
42602011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4261
4262 PR rtl-optimization/48757
4263 * ira-build.c (loop_with_eh_edge_p): Rename to
4264 loop_with_complex_edge_p, check edges on complexity, make function
4265 conditional.
4266 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4267 conditional.
4268
24d1bbc7
EB
42692011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4270
4271 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4272 force flag_ira_share_save_slots to 0.
4273
65773087
EB
42742011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4275
4276 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4277 (vt_initialize): Set PROLOGUE_BB unconditionally.
4278 Add block comment about CFA_BASE_RTX machinery.
4279 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4280 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4281
4e26ba90
NP
42822011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4283
4284 PR objc/48187
4285 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4286 parsing of syntax error in ObjC instance variable lists. In
4287 particular, avoid an infinite loop if there is a stray ']'.
4288 Updated error message.
4289
936fd13c
ILT
42902011-05-24 Ian Lance Taylor <iant@google.com>
4291
4292 * godump.c (go_define): Don't accept a string immediately after
4293 another operand.
4294
f17333e3
ILT
42952011-05-24 Ian Lance Taylor <iant@google.com>
4296
4297 * godump.c (struct godump_container): Add invalid_hash field.
4298 (go_format_type): Return false if type is found in invalid_hash.
4299 (go_output_typedef): Add invalid type to invalid_hash.
4300 (go_finish): Create and delete invalid_hash.
4301
d24ad7d6 43022011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 4303
78be79d5
BS
4304 PR tree-optimization/46728
4305 * tree-ssa-math-opts.c (powi_table): New.
4306 (powi_lookup_cost): New.
4307 (powi_cost): New.
4308 (powi_as_mults_1): New.
4309 (powi_as_mults): New.
4310 (gimple_expand_builtin_powi): New.
4311 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4312 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 4313
caee412b
RO
43142011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4315
4316 PR target/3746
4317 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4318 mips-tdump native.
4319 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4320 * mips-tdump.c: Likewise.
4321
5eed4f27
L
43222011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4323
4324 PR target/49128
4325 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4326 add -mno-XXX. Handle FMA.
4327
8c5fdaae
VM
43282011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4329
4330 PR rtl-optimization/48633
4331 * ira-build.c (loop_with_eh_edge_p): New function.
4332 (mark_loops_for_removal): Use it.
4333
43342011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
4335
4336 PR rtl-optimization/48971
4337 * ira.c (setup_pressure_classes): Don't check register move cost
4338 for classes with one registers. Don't add pressure class if there
4339 is a pressure class with the same available hard registers.
4340 Check contains_reg_of_mode. Fix a typo in collecting
4341 temp_hard_regset. Ignore hard registers not belonging to a class.
4342
df1f7315
UB
43432011-05-24 Uros Bizjak <ubizjak@gmail.com>
4344
4345 PR target/49133
4346 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4347
ee0cb37c
EB
43482011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4349 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4350
4351 PR gcov-profile/48845
4352 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4353
6a20ce76
RG
43542011-05-24 Richard Guenther <rguenther@suse.de>
4355
4356 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4357 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4358 (gimple_types_compatible_p_1): Adjust.
4359 (iterative_hash_canonical_type): Do not bother about complete vs.
4360 incomplete types.
4361 (gimple_canonical_types_compatible_p): Likewise.
4362
2fcb858c
RO
43632011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4364
4365 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4366
96d91dcf
RG
43672011-05-24 Richard Guenther <rguenther@suse.de>
4368
4369 PR bootstrap/49078
4370 * gimple.c (gimple_register_canonical_type): Revert
4371 previous change.
4372 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4373 does not for a tree for the case where it matters. Cache
4374 pointer-type alias-sets.
4375
1ed1641d
JM
43762011-05-24 Joseph Myers <joseph@codesourcery.com>
4377
4378 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4379 (OBJS): Remove options.o, opts-common.o and prefix.o.
4380 (OBJS-libcommon-target): New.
4381 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4382 (BACKEND): Include libcommon-target.a.
4383 (MOSTLYCLEANFILES): Include libcommon-target.a.
4384 (libcommon-target.a): New.
4385 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4386 prefix.o.
4387
57dfdff0
JM
43882011-05-23 Joseph Myers <joseph@codesourcery.com>
4389
4390 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4391 parts of output shared with the driver.
4392 * optc-gen.awk: Don't generate parts of output not shared with the
4393 driver.
4394 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4395 * doc/options.texi (SourcerInclude): Mention options-save.c.
4396 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4397 (OBJS): Add options-save.o.
4398 (options-save.c, options-save.o): New.
4399 (options.o): Update dependencies.
4400 (gcc-options.o): Remove.
4401 (mostlyclean): Remove options-save.c.
4402
0e0d82a7
JJ
44032011-05-23 Jakub Jelinek <jakub@redhat.com>
4404
9166988f
JJ
4405 PR debug/49032
4406 * dbxout.c: Include cgraph.h.
4407 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4408 and without value expr, return NULL if no varpool node exists for
4409 it or if it is not needed.
4410 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4411
0e0d82a7
JJ
4412 PR c/49120
4413 * c-decl.c (start_decl): Convert expr to void_type_node.
4414
65712d5c
RS
44152011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4416
4417 PR rtl-optimization/48826
4418 * emit-rtl.c (try_split): When splitting a call that is followed
4419 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4420
9025085e
JJ
44212011-05-23 Jakub Jelinek <jakub@redhat.com>
4422
4423 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4424 parameters passed in memory prefer using DECL_INCOMING_RTL over
4425 the pseudos it will be copied into.
4426
34a061be
L
44272011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4428
4429 PR target/47315
4430 * config/i386/i386.c (ix86_option_override_internal): Save the
4431 initial options after checking vzeroupper.
4432
c375a3a4
DL
44332011-05-23 David Li <davidxl@google.com>
4434
4435 PR tree-optimization/48988
4436 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4437 Initialize has_valid_pred for each pred chain.
4438
e1caba18
RG
44392011-05-23 Richard Guenther <rguenther@suse.de>
4440
4441 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4442 (iterative_hash_gimple_type): Always hash type names.
4443
dde05067
NF
44442011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4445
4446 * c-typeck.c (build_function_call_vec): Tweak call to
4447 check_function_arguments.
4448
094f6ab3
RG
44492011-05-23 Richard Guenther <rguenther@suse.de>
4450
4451 PR tree-optimization/49115
4452 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4453 is not necessarily carried out, do not claim it kills the ref.
4454 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4455
9a9822e1
RG
44562011-05-23 Richard Guenther <rguenther@suse.de>
4457
4458 PR middle-end/15419
4459 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4460 what pointer types we accept for folding.
4461
c8028650
RO
44622011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4463
4464 * gthr-gnat.c: Remove.
4465 * gthr-gnat.h: Remove.
4466 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4467 * config/t-freebsd (LIB2ADDEH): Likewise.
4468 * config/t-linux (LIB2ADDEH): Likewise.
4469 * config/t-sol2 (LIB2ADDEH): Likewise.
4470 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4471 * configure.ac (target_thread_file): Remove gnat handling.
4472 * configure: Regenerate.
4473 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4474
15882fe9
TG
44752011-05-23 Tristan Gingold <gingold@adacore.com>
4476 Eric Botcazou <ebotcazou@adacore.com>
4477
4478 * gcov.c (create_file_names): If no object directory is specified,
4479 keep the directory of the file.
4480
da90c957
RO
44812011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4482
4483 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4484 * configure: Regenerate.
4485
7bba408b
JJ
44862011-05-23 Jakub Jelinek <jakub@redhat.com>
4487
4488 PR middle-end/48973
4489 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4490 failed and the comparison has a single bit signed type, use
4491 constm1_rtx instead of const1_rtx for true value.
4492 (do_store_flag): If ops->type is single bit signed type, disable
4493 signel bit test optimization and pass -1 instead of 1 as last
4494 parameter to emit_store_flag_force.
4495
bc69f7ff
TV
44962011-05-23 Tom de Vries <tom@codesourcery.com>
4497
4498 PR target/45098
4499 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4500 function.
4501 (infer_loop_bounds_from_undefined): Use new function.
4502
29cedf8e
RS
45032011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4504
4505 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4506 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4507 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4508 and -O0 otherwise.
4509 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4510
afe8b6ec
EB
45112011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4512
4513 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4514 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4515 returns true.
4516
872dab53
RS
45172011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4518
4519 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4520
145f6c5b
EB
45212011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4522
4523 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4524 UNSPEC_MOVE_PIC pattern.
4525
8ac79835
EB
45262011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4527
4528 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4529 (sparc-*-rtems*): Likewise.
4530 (sparc64-*-elf*): Likewise.
4531 (sparc64-*-rtems*): Likewise.
4532 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4533 * config/sparc/t-crtin: New file.
4534 * config/sparc/t-sol2 (crti.o): Delete rule.
4535 (crtn.o): Likewise.
4536 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4537 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4538 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4539 (ENDFILE_SPEC): Add crtn.o.
4540
5fb43dd8
TV
45412011-05-22 Tom de Vries <tom@codesourcery.com>
4542
4543 PR middle-end/48689
4544 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4545 CODE_CONTAINS_STRUCT (TS_COMMON).
4546
ccb1b17b
JJ
45472011-05-22 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR middle-end/49029
4550 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4551 only after deciding which mode to use.
4552
50ad7db2
TV
45532011-05-22 Tom de Vries <tom@codesourcery.com>
4554
4555 PR target/45098
dc0a3366 4556 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
4557 for call to get_shiftadd_cost.
4558
ef230b38
UB
45592011-05-22 Uros Bizjak <ubizjak@gmail.com>
4560
4561 PR target/49104
4562 * config/i386/cpuid.h (bit_MMXEXT): New define.
4563
15f072f9
NC
45642011-05-22 Nick Clifton <nickc@redhat.com>
4565
4566 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4567 initialisation of non-existant args[2] element. Use args[] array
4568 not arg[] array to pass arguments to build_function_type_list.
4569
e38fdc94
IR
45702011-05-22 Ira Rosen <ira.rosen@linaro.org>
4571
4572 PR tree-optimization/49087
ef230b38 4573 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 4574
5b018c65
JM
45752011-05-21 Jason Merrill <jason@redhat.com>
4576
4577 PR c++/49092
4578 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4579 static storage duration.
4580
abd9a770
EB
45812011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4582
4583 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4584 frame pointer.
4585
bd9a3248
EB
45862011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4587
4588 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4589 false if there are call-saved registers here...
4590 (sparc_can_use_return_insn_p): ...but here instead.
4591 (save_or_restore_regs): Fix thinko.
4592 (sparc_expand_prologue): Use current_function_is_leaf.
4593 (sparc_frame_pointer_required): Likewise.
4594
a5dfec9a
NC
45952011-05-21 Nick Clifton <nickc@redhat.com>
4596
4597 PR target/49098
4598 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4599
555c3771
NP
46002011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4601
4602 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4603 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4604
86fa5de4
JM
46052011-05-21 Joseph Myers <joseph@codesourcery.com>
4606
4607 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4608 * optc-gen.awk: Move common code to opt-read.awk.
4609 * opth-gen.awk: Likewise.
ef230b38 4610 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 4611
bce33ab2
NF
46122011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4613
4614 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4615
e6450c11
TV
46162011-05-20 Tom de Vries <tom@codesourcery.com>
4617
4618 PR target/45098
4619 * tree-ssa-loop-ivopts.c: Include expmed.h.
4620 (get_shiftadd_cost): New function.
4621 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4622
0e8b84ec
JJ
46232011-05-20 Jakub Jelinek <jakub@redhat.com>
4624
4625 PR bootstrap/49086
4626 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4627 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4628
946bdf67
JM
46292011-05-20 Joseph Myers <joseph@codesourcery.com>
4630
4631 * Makefile.in: Update comment referring to $(OBJS-common).
4632
c53aafdf
ILT
46332011-05-20 Ian Lance Taylor <iant@google.com>
4634
4635 * godump.c (go_output_typedef): Put enum constants in the macro
4636 hash table to avoid duplicate Go const definitions.
4637
2691e6d7
JM
46382011-05-20 Joseph Myers <joseph@codesourcery.com>
4639
4640 * Makefile.in (LIBDEPS): Add libcommon.a.
4641 (LIBS): Likewise.
4642 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4643 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4644 pretty-print.o and version.o.
4645 (OBJS-libcommon): New.
4646 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4647 (BACKEND): Add libcommon.a.
4648 (MOSTLYCLEANFILES): Likewise.
4649 (libcommon.a): New.
4650 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4651 (cpp$(exeext)): Likewise.
4652 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4653 pretty-print.o and input.o.
4654 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4655 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4656 (errors.o): Remove.
4657 (mips-tfile): Don't explicitly use version.o.
4658 (mips-tdump): Likewise.
4659 (gcov.o): Depend on $(DIAGNOSTIC_H).
4660 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4661 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4662 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4663 * gcov-dump.c: Include intl.h and diagnostic.h.
4664 (main): Initialize diagnostics.
4665 * gcov.c: Include diagnostic.h.
4666 (fnotice): Remove.
4667 (main): Initialize diagnostics.
4668 * lto-wrapper.c: Include diagnostic.h.
4669 (main): Initialize diagnostics.
4670
252b3e8c
MM
46712011-05-20 Michael Matz <matz@suse.de>
4672
4673 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4674
2ee36ba6
MM
46752011-05-20 Michael Matz <matz@suse.de>
4676 Richard Guenther <rguenther@suse.de>
4677
4678 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4679 use lto_streamer_cache_append directly instead of returning a VEC.
4680 (preload_common_node): Remove.
4681 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4682 track seen nodes.
4683 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4684
90ff582f
RG
46852011-05-20 Richard Guenther <rguenther@suse.de>
4686
4687 PR tree-optimization/49079
4688 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4689 MEM_REFs correctly for the trailing array access detection.
4690 Special case constants the same way as decls for overall size
4691 constraining.
4692
3cda91d8
UB
46932011-05-20 Uros Bizjak <ubizjak@gmail.com>
4694
4695 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4696 argument expansion.
4697
6c66f733
JJ
46982011-05-20 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR tree-optimization/49073
3cda91d8
UB
4701 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4702 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
4703 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4704
0ea80a16
RG
47052011-05-20 Richard Guenther <rguenther@suse.de>
4706
4707 PR middle-end/48849
4708 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4709 of pointer types the same way the middle-end does.
4710
fb291a1e
RG
47112011-05-20 Richard Guenther <rguenther@suse.de>
4712
3cda91d8
UB
4713 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4714 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 4715
37cb25ed
QN
47162011-05-19 Quentin Neill <quentin.neill@amd.com>
4717
4718 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4719 (fma4_fmaddsub): Likewise
4720
a30726a4
JH
47212011-05-19 Jan Hubicka <jh@suse.cz>
4722
4723 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4724 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4725 (type_pair_cache): New static var.
4726 (lookup_type_pair): Use fixed sized custom hash; make inline.
4727 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4728 calls of lookup_type_pair.
4729 (print_gimple_types_stats): Remove cache stats.
4730 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4731 and gtc_ob.
4732
0955cf61
UB
47332011-05-19 Uros Bizjak <ubizjak@gmail.com>
4734
4735 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4736 when TARGET_RDRND is active.
4737 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4738 Generate dummy SImode target register when target is NULL.
4739
12d844c8
JM
47402011-05-19 Joseph Myers <joseph@codesourcery.com>
4741
4742 * config/arm/arm-fpus.def: New.
4743 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4744 arm-fpus.def.
4745 * config/arm/arm-tables.opt: Regenerate.
4746 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4747 (arm_option_override): Don't decode FPU name to string here.
4748 * config/arm/arm.opt (mfpu=): Use Enum.
4749 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4750 Update dependencies.
4751
9e350e99
JM
47522011-05-19 Joseph Myers <joseph@codesourcery.com>
4753
4754 * collect2.c: Include diagnostic.h.
4755 (fatal_perror, fatal, error, fancy_abort): Remove.
4756 (main): Set progname. Call xmalloc_set_program_name and
4757 diagnostic_initialize.
4758 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4759 scan_libraries, resolve_lib_name): Call fatal_error instead of
4760 fatal and fatal_perror.
4761 * collect2.h (error, fatal, fatal_perror): Don't declare.
4762 * tlink.c: Include diagnostic-core.h.
4763 (recompile_files): Call fatal_error instead of fatal_perror.
4764 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4765 pretty-print.o and input.o.
4766 (collect2.o, tlink.o): Update dependencies.
4767
86ff4081
RO
47682011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4769
4770 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4771
2ca48caa
RO
47722011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4773
4774 PR target/40483
4775 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4776 COMDAT group syntax, both SPARC and x86 variants.
4777 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4778 * configure: Regenerate.
4779 * config/sol2.h (TARGET_SOLARIS): Define.
4780 (PUSHSECTION_FORMAT): Remove.
4781 (SECTION_NAME_FORMAT): Define.
4782 * config/sol2.c: Include hashtab.h.
4783 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4784 expansion, using SECTION_NAME_FORMAT.
4785 (solaris_comdat_htab): New variable.
4786 (struct comdat_entry): Define.
4787 (comdat_hash): New function.
4788 (comdat_eq): New function.
4789 (solaris_elf_asm_comdat_section): New function.
4790 (solaris_define_comdat_signature): New function.
4791 (solaris_code_end): New function.
4792 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4793 (solaris_code_end): Declare.
4794 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4795 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4796 solaris_code_end.
4797 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4798 Remove ATTRIBUTE_UNUSED.
4799 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4800 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 4801 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
4802 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4803 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4804 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4805 (PUSHSECTION_FORMAT): Remove.
4806 (SECTION_NAME_FORMAT): Redefine.
4807
da5fb469
KT
48082011-05-19 Kai Tietz <ktietz@redhat.com>
4809
4810 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4811 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4812 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4813
1651e703 48142011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
4815 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4816
4817 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4818
e497b9bd
RG
48192011-05-19 Richard Guenther <rguenther@suse.de>
4820
4821 PR middle-end/48985
4822 * tree-object-size.c (addr_object_size): If the pointed-to
4823 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4824
31b3ca64
RG
48252011-05-19 Richard Guenther <rguenther@suse.de>
4826
4827 * gimple.c (gimple_types_compatible_p_1): Compare names of
4828 the types themselves.
4829 (iterative_hash_gimple_type): And hash them that way.
4830 (gimple_register_type_1): If we register a main variant properly
4831 initialize the leader to ourselves.
4832
bb8d292d
TV
48332011-05-19 Tom de Vries <tom@codesourcery.com>
4834
4835 PR target/45098
4836 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4837 get_loop_invariant_expr_id.
4838 (get_loop_invariant_expr_id): Use get_expr_id.
4839 (parm_decl_cost): New function.
4840 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4841 Improve bound cost estimation. Use different inv_expr_id for elim and
4842 express cases.
4843
a53c5024
TV
48442011-05-19 Tom de Vries <tom@codesourcery.com>
4845
4846 PR target/45098
4847 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4848 cost_base.cost == 0.
4849
31f9eb59
L
48502011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4851
4852 PR target/49002
66bd20e7
EB
4853 * config/i386/sse.md
4854 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4855 load cast.
31f9eb59 4856
681056ae
JJ
48572011-05-18 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR tree-optimization/49039
4860 * tree-vrp.c (extract_range_from_binary_expr): For
4861 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4862 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4863
b5ee6752
TV
48642011-05-18 Tom de Vries <tom@codesourcery.com>
4865
4866 PR target/45098
4867 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4868
0bda47a3
UB
48692011-05-18 Uros Bizjak <ubizjak@gmail.com>
4870
4871 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4872 (*tls_global_dynamic_64): Ditto.
4873 (*tls_local_dynamic_base_32_gnu): Ditto.
4874 (*tls_local_dynamic_base_64): Ditto.
4875 (tls_initial_exec_64_sun): Ditto.
4876
033b0805
SH
48772011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4878
4879 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4880 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4881 bf592-none.
4882 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4883 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4884 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4885 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 4886 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
4887 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4888 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4889
ba163417
JM
48902011-05-18 Joseph Myers <joseph@codesourcery.com>
4891
4892 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 4893 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
4894 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4895 target_thread_pointer, arm_structure_size_boundary, struct
4896 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4897 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
4898 (arm_option_override) Don't process most enumerated option values here.
4899 Don't process target_fpe_name here. Work with integer not string for
4900 structure size boundary; use separate diagnostics for each case.
ba163417
JM
4901 * config/arm/arm.h (enum float_abi_type, enum
4902 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4903 to arm-opts.h.
4904 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4905 arm_structure_size_boundary): Remove.
4906 * config/arm/arm.opt (mabi=): Use Enum and Init.
4907 (arm_abi_type): New Enum and EnumValue entries.
4908 (mfloat-abi=): Use Enum and Init.
4909 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 4910 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
4911 (mfp16-format=): Use Enum and Init.
4912 (arm_fp16_format_type): New Enum and EnumValue entries.
4913 (mstructure-size-boundary=): Use UInteger and Init.
4914 (mtp=): Use Enum and Init.
4915 (arm_tp_type): New Enum and EnumValue entries.
4916
179184e3
RG
49172011-05-18 Richard Guenther <rguenther@suse.de>
4918
4919 PR tree-optimization/49018
4920 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4921 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4922 gimple_has_side_effects.
4923
93b2a207
RG
49242011-05-18 Richard Guenther <rguenther@suse.de>
4925
4926 * gimple.c (gimple_register_type_1): New function, split out from ...
4927 (gimple_register_type): ... here. Avoid infinite recursion.
4928
b010117a
IR
49292011-05-18 Ira Rosen <ira.rosen@linaro.org>
4930
4931 PR tree-optimization/41881
4932 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4933 reduction_chains along with a macro for its access.
4934 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4935 (destroy_loop_vec_info): Free reduction chains.
4936 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4937 (vect_is_slp_reduction): New function.
4938 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4939 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4940 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4941 definition types for reduction chains.
4942 (vect_supported_load_permutation_p): Don't allow permutations for
4943 reduction chains.
4944 (vect_analyze_slp_instance): Support reduction chains.
4945 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4946 (vect_get_constant_vectors): Handle reduction chains.
4947 (vect_schedule_slp_instance): Mark the first statement of the
4948 reduction chain as reduction.
4949
e14c1050
IR
49502011-05-18 Ira Rosen <ira.rosen@linaro.org>
4951
4952 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4953 names for group elements access.
4954 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4955 reduction chains as well. Remove data reference and interleaving
4956 related words from the fields names.
4957 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4958 elements access.
4959 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4960 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4961 vect_update_interleaving_chain, vect_same_range_drs,
4962 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4963 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4964 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4965 vect_analyze_group_access, vect_analyze_data_ref_access,
4966 vect_create_data_ref_ptr, vect_transform_strided_load,
4967 vect_record_strided_load_vectors): Likewise.
4968 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4969 vect_model_load_cost, vectorizable_store, vectorizable_load,
4970 vect_remove_stores, new_stmt_vec_info): Likewise.
4971 * tree-vect-slp.c (vect_build_slp_tree,
4972 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4973
51c213f7
RG
49742011-05-18 Richard Guenther <rguenther@suse.de>
4975
4976 PR middle-end/48989
4977 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4978 operand verification.
4979 (verify_gimple_assign_binary): Likewise.
4980 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4981 to non-1-precision BOOLEAN_TYPEs.
4982
8f5e5434
TV
49832011-05-18 Tom de Vries <tom@codesourcery.com>
4984
4985 PR target/45098
4986 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4987
116bc3a4
JJ
49882011-05-18 Jakub Jelinek <jakub@redhat.com>
4989
4990 PR tree-optimization/49000
4991 * tree-ssa.c (execute_update_addresses_taken): Call
4992 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4993 be rewritten and decl has been marked for renaming, reset
4994 the debug stmt.
4995
26a8964c
JM
49962011-05-17 Joseph Myers <joseph@codesourcery.com>
4997
4998 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4999 enum_opts_set when testing if attributes have set -mfpmath=.
5000
82bd45d7
RS
50012011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5002
5003 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5004
267ffce3
UB
50052011-05-17 Uros Bizjak <ubizjak@gmail.com>
5006
5007 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5008 info->entry with 0
5009 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5010 id.transform_lang_insert_block with NULL.
5011
50122011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
5013
5014 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5015 (output_fp_compare): Change args 3 and 4 to bool.
5016 (ix86_expand_call): Change arg 6 to bool.
5017 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5018 (ix86_attr_length_vex_default): Change arg 3 to bool.
5019 * config/i386/i386.md: Update all uses.
5020 * config/i386/i386.c: Ditto.
5021 (ix86_flags_dependent): Change return type to bool.
5022
5beaf664
RG
50232011-05-17 Richard Guenther <rguenther@suse.de>
5024
5025 * gimple.c (type_hash_pair_compare): Fix comparison.
5026
008bad7a
RG
50272011-05-17 Richard Guenther <rguenther@suse.de>
5028
5029 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5030 case some more, fix final hash value of the non-singleton case.
5031
36461340
RG
50322011-05-17 Richard Guenther <rguenther@suse.de>
5033
5034 PR bootstrap/49013
5035 Revert
5036 2011-05-16 Richard Guenther <rguenther@suse.de>
5037
5038 * gimple.c (gimple_types_compatible_p_1): Use names of the
5039 type itself, not its main variant.
5040 (iterative_hash_gimple_type): Likewise.
5041
6b6a59f3
RG
50422011-05-17 Richard Guenther <rguenther@suse.de>
5043
5044 * gimple.c (gimple_register_canonical_type): Use the main-variant
5045 leader for computing the canonical type.
5046
4ffc4134
NC
50472011-05-17 Nick Clifton <nickc@redhat.com>
5048
a1d8754e
NC
5049 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5050 moves.
5051
4ffc4134
NC
5052 * config/rx/rx.md: Add peephole to remove redundant extensions
5053 after loads.
39960f7a
NC
5054 (bitset_in_memory): Use rx_restricted_mem_operand.
5055 (bitinvert_in_memory): Likewise.
5056 (bitclr_in_memory): Likewise.
4ffc4134 5057
b3db92ac
KI
50582011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5059 Nick Clifton <nickc@redhat.com>
5060
5061 * config/rx/rx.md: Add peepholes to match a register move followed
5062 by a comparison of the moved register. Replace these with an
5063 addition of zero that does both actions in one instruction.
5064
8637e32a
JJ
50652011-05-17 Jakub Jelinek <jakub@redhat.com>
5066
5067 PR target/48986
5068 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5069 predicate to allow CONST_INT.
5070 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5071
8023568e
JM
50722011-05-16 Joseph Myers <joseph@codesourcery.com>
5073
5074 * opts-common.c (opt_enum_arg_to_value): New.
5075 * opts.h (opt_enum_arg_to_value): Declare.
5076 * config/i386/i386.opt (fpmath): Remove.
5077 (mfpmath=): Use Enum, Init and Save.
5078 (fpmath_unit): New Enum and EnumValue entries.
5079 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5080 name for function fpmath state.
5081 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5082 * config/i386/i386.c: Include diagnostic.h.
5083 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 5084 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 5085 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 5086 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
5087 (x86_function_specific_save, ix86_function_specific_restore):
5088 Don't handle fpmath state specially.
5089 (ix86_function_specific_print): Pass fpmath state to
5090 ix86_target_string instead of printing in this function.
5091 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5092 Handle enum attributes.
5093 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5094 (ix86_valid_target_attribute_tree): Update option_strings
5095 handling. Handle fpmath as enum option.
5096 (ix86_can_inline_p): Update field names for function fpmath state.
5097 (ix86_expand_builtin): Update call to ix86_target_string.
5098 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5099 (ix86_fpmath): Remove.
5100 * config/i386/t-i386 (i386.o): Update dependencies.
5101
9e8d926e
JM
51022011-05-16 Joseph Myers <joseph@codesourcery.com>
5103
5104 PR preprocessor/48677
5105 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5106 from decoded_options[0], not from itself.
5107
f6449011
UB
51082011-05-16 Uros Bizjak <ubizjak@gmail.com>
5109
5110 * config/i386/constraints.md (z): New constraint.
5111 * config/i386/i386.c (c): New mode attribute.
5112 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5113 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5114 constraint for operand 0.
5115 (*call_vzeroupper): Ditto.
5116 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5117 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5118 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5119 Use "lzm" constraint for operand 0.
5120 (*call_pop_vzeroupper): Ditto.
5121 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5122 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5123 constraint for operand 0.
5124 (*sibcall_vzeroupper): Ditto.
5125 (*sibcall_rex64_ms_sysv): Ditto.
5126 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5127 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5128 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5129 (*sibcall_pop_vzeroupper): Ditto.
5130 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5131 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5132 mode iterator. Use "<c>zm" constraint for operand 1.
5133 (*call_value_vzeroupper): Ditto.
5134 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 5135 for operand 1.
f6449011
UB
5136 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5137 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5138 *call_value_pop_1. Use "lzm" constraint for operand 1.
5139 (*call_value_pop_vzeroupper): Ditto.
5140 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5141 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5142 mode iterator. Use "Uz" constraint for operand 1.
5143 (*sibcall_value_vzeroupper): Ditto.
5144 (*sibcall_value_rex64_ms_sysv): Ditto.
5145 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5146 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5147 constraint for operand 1.
5148 (*sibcall_value_pop_vzeroupper): Ditto.
5149 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5150 and "z" constraint for operand 2.
5151 (*tls_global_dynamic_32_gnu): Ditto.
5152 (*tls_local_dynamic_base_32_gnu): Ditto.
5153 (*tls_local_dynamic_base_64): Ditto.
5154 (*tls_local_dynamic_32_once): Ditto.
5155 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5156 Update all callers.
5157 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5158
c11b6902
RG
51592011-05-16 Richard Guenther <rguenther@suse.de>
5160
5161 * gimple.c (gimple_types_compatible_p_1): Use names of the
5162 type itself, not its main variant.
5163 (iterative_hash_gimple_type): Likewise.
5164
1e83b5f1
RG
51652011-05-16 Richard Guenther <rguenther@suse.de>
5166
f6449011
UB
5167 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5168 always visit pointer target and function result and argument types.
1e83b5f1 5169
62e36382
JM
51702011-05-16 Jason Merrill <jason@redhat.com>
5171
5172 PR c++/48999
5173 * tree-inline.c (copy_statement_list): Put back recursion.
5174
687027a4
GJL
51752011-05-16 Georg-Johann Lay <avr@gjlay.de>
5176
5177 PR target/27663
5178 PR target/41076
5179 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5180 * config/avr/avr.md ("*ior<mode>qi.byte0",
5181 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5182
f24a5190
GJL
51832011-05-16 Georg-Johann Lay <avr@gjlay.de>
5184
5185 PR target/45099
5186 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5187 register is needed for a function argument.
5188
3066f593
RG
51892011-05-16 Richard Guenther <rguenther@suse.de>
5190
5191 * gimple.c (struct type_hash_pair): New type.
5192 (type_hash_pair_compare): New function.
f6449011 5193 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 5194
b2ab2cf4
RE
51952011-05-16 Revital Eres <revital.eres@linaro.org>
5196
f6449011 5197 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 5198
dfb737fc
UB
51992011-05-15 Uros Bizjak <ubizjak@gmail.com>
5200
5201 * config/i386/i386.md (floating point move splitters): Fix
5202 usage of standard_80387_constant_p.
f6449011 5203 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 5204
8caa1de0
UB
52052011-05-15 Uros Bizjak <ubizjak@gmail.com>
5206
5207 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5208
8a519095
EB
52092011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5210
5211 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5212 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5213 (tree_ssa_lim_finalize): Likewise.
5214
479fecd3
UB
52152011-05-14 Uros Bizjak <ubizjak@gmail.com>
5216
5217 * config/i386/constraint.md (Yd, Yx): New register constraints.
5218 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5219 Yd conditional register constraint.
5220 (*movtf_internal): Use standard_sse_constant_opcode.
5221 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5222 Yx conditional register constraint.
5223 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5224 Yd conditional register constraint. Use standard_sse_constant_p to
5225 check for valid SSE constants and call standard_sse_constant_opcode to
5226 output SSE insn.
5227 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5228 constants and call standard_sse_constant_opcode to output SSE insn.
5229 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5230 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5231 optimize_size is set.
5232 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5233
2d8c9ad5
TB
52342011-05-14 Tobias Burnus <burnus@net-b.de>
5235
5236 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5237
411a20d6
MJ
52382011-05-13 Martin Jambor <mjambor@suse.cz>
5239
5240 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5241 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5242 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5243 (evaluate_conditions_for_ipcp_clone): Removed.
5244 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5245 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5246 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5247
dc764d10
EB
52482011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5249
5250 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5251 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5252 lieu of MAY_HAVE_DEBUG_STMTS.
5253 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5254 debug statements if !MAY_HAVE_DEBUG_STMTS.
5255
9f47a24e
MT
52562011-05-13 Martin Thuresson <martint@google.com>
5257
5258 PR gcov-profile/47793
5259 * libgcov.c (gcov_exit): Support relative profile paths.
5260 * doc/invoke.texi (-fprofile-dir): Update for above change.
5261
b8a71aed
RG
52622011-05-13 Richard Guenther <rguenther@suse.de>
5263
5264 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5265 type-pair caching, do not compare hashes.
5266
eb9f9259
NF
52672011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5268
5269 PR middle-end/48965
5270 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5271 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5272
3c6cbf7a
KT
52732011-05-13 Kai Tietz <ktietz@redhat.com>
5274
5275 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5276 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5277 compatible type for TRUTH_NOT_EXPR.
5278
2e7f5dc0
L
52792011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5280
dc764d10 5281 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
5282 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5283 can_create_pseudo_p ().
5284
e834e95c
RG
52852011-05-13 Richard Guenther <rguenther@suse.de>
5286
5287 PR lto/48978
5288 * gimple.c (iterative_hash_gimple_type): Revert change in
5289 pointer target and function result and argument hashing.
5290
34203483
UB
52912011-05-13 Uros Bizjak <ubizjak@gmail.com>
5292
5293 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5294 (*movxf_internal_nointeger): Ditto.
5295 (*movdf_internal_rex64): Ditto.
5296 (*movdf_internal): Ditto.
5297 (*movdf_internal_nointeger): Ditto.
5298 (*movsf_internal): Ditto.
5299 (sincos splitters): Use can_create_pseudo ().
5300
7eb68c06
JM
53012011-05-13 Joseph Myers <joseph@codesourcery.com>
5302
5303 * config/i386/i386-opts.h: New.
5304 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5305 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5306 ix86_section_threshold): Remove.
5307 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5308 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5309 OPT_mbranch_cost_.
5310 (ix86_option_override_internal): Don't decode strings for options
5311 other than -march=, -mtune= and -mfpmath=. Don't allow for
5312 __attribute__ uses in remaining diagnostics for options with
34203483 5313 string arguments. Don't check for integer arguments being negative.
7eb68c06 5314 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 5315 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
5316 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5317 ix86_branch_cost, ix86_section_threshold): Remove.
5318 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5319 HeaderInclude.
5320 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5321 but not Var.
5322 (masm=): Use Enum and Init.
5323 (asm_dialect): New Enum and EnumValue entries.
5324 (mbranch-cost=): Use UInteger.
5325 (mlarge-data-threshold=): Use UInteger and Init.
5326 (mcmodel=): Use Enum and Init.
5327 (cmodel): New Enum and EnumValue entries.
5328 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5329 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5330 mregparm=): Use UInteger.
5331 (mstringop-strategy=): Use Enum and Init.
5332 (stringop_alg): New Enum and EnumValue entries.
5333 (mtls-dialect=): Use Enum and Init.
5334 (tls_dialect): New Enum and EnumValue entries.
5335 (mabi=): Use Enum and Init.
5336 (calling_abi): New Enum and EnumValue entries.
5337 (mveclibabi=): Use Enum and Init.
5338 (ix86_veclibabi): New Enum and EnumValue entries.
5339
f67e203c
NC
53402011-05-13 Nick Clifton <nickc@redhat.com>
5341
34203483
UB
5342 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5343 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 5344
221df0b6
KT
53452011-05-13 Kai Tietz <ktietz@redhat.com>
5346
5347 PR middle-end/48984
5348 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5349 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5350 (gimple_boolify): Check for cast for boolean_type_node instead for
5351 BOOLEAN_TYPE.
5352
208cb8cb
RG
53532011-05-13 Richard Guenther <rguenther@suse.de>
5354
5355 PR tree-optimization/48172
5356 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5357 multiplying by number of iterations for equal step.
5358 (vect_create_cond_for_alias_checks): Likewise.
5359
b88ecf55
AS
53602011-05-13 Andreas Schwab <schwab@redhat.com>
5361
5362 * configure.ac: Use AS_HELP_STRING throughout.
5363 * configure: Regenerate.
5364
569b527e
L
53652011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5366
34203483 5367 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
5368 (ix86_emit_restore_regs_using_mov): Likewise.
5369 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5370
8b9a1428
AS
53712011-05-12 Anatoly Sokolov <aesok@post.ru>
5372
5373 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5374 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5375 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5376 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5377 RTX_OK_FOR_OLO10_P): ...here.
5378 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5379 SYMBOLIC_CONST.
5380
1d15f620
KT
53812011-05-12 Kai Tietz <ktietz@redhat.com>
5382
5383 * gimplify.c (gimple_boolify): Re-boolify expression
5384 arguments even if expression type is of kind BOOLEAN_TYPE.
5385 (gimplify_boolean_expr): Removed.
5386 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5387 and XOR. Additional take care that we keep expression's type.
5388 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5389 of TRUTH_AND|OR|XOR_EXPR.
5390
c2b5fc8d
JJ
53912011-05-12 Jakub Jelinek <jakub@redhat.com>
5392
5393 PR tree-optimization/48975
5394 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5395 on all bbs here and free and clear ifc_bbs at the end.
5396
61332f77
RG
53972011-05-12 Richard Guenther <rguenther@suse.de>
5398
5399 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5400 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5401 until after simple checks.
5402 (gimple_types_compatible_p): Likewise.
5403 (iterative_hash_gimple_type): Always hash pointer targets
5404 and function return and argument types.
5405 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5406 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5407 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5408 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5409 completely in the simple compare section.
5410 (gimple_register_canonical_type): Query the cache again after
5411 registering.
5412
e2a3a5f1
RG
54132011-05-12 Richard Guenther <rguenther@suse.de>
5414
5415 PR tree-optimization/48172
5416 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5417 the number of iterations from the segment size calculation.
5418 (vect_create_cond_for_alias_checks): Adjust.
5419
2c703f3a
JJ
54202011-05-12 Jakub Jelinek <jakub@redhat.com>
5421
5422 PR debug/48967
5423 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5424 if validate_subreg fails.
5425
54262011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
5427
5428 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5429 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5430 early.
5431
87e91fca
DD
54322011-05-12 DJ Delorie <dj@redhat.com>
5433
d53903d6 5434 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
5435 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5436 created builtin into rx_builtins array.
5437 (rx_builtin_decl): New function.
34203483 5438 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 5439
5f2f13fd
DD
54402011-05-12 DJ Delorie <dj@redhat.com>
5441 Nick Clifton <nickc@redhat.com>
5442
5443 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5444 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5445 (rx_is_legitimate_address): Add pre-decrement and post-increment
5446 addressing in HImode and QImode. Fix test for out of range
5447 REG+INT addressing.
87e91fca 5448 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 5449 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 5450 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 5451 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 5452
57421f45
JM
54532011-05-11 Jason Merrill <jason@redhat.com>
5454
5455 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5456
898c90c0
EB
54572011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5460 reindent the subsequent block.
5461
79bec923
ST
54622011-05-11 Satoru Takabayashi <satorux@google.com>
5463 Paul Pluzhnikov <ppluzhnikov@google.com>
5464
34203483 5465 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
5466 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5467 * config.in: Add LINKER_HASH_STYLE.
5468 * configure.ac: Add --with-linker-hash-style.
5469 * configure: Regenerate.
79bec923 5470
d0340959
RG
54712011-05-11 Richard Guenther <rguenther@suse.de>
5472
5473 PR middle-end/48964
5474 * gimple.c (iterative_hash_canonical_type): Fix typo.
5475
cb032fee
UB
54762011-05-11 Uros Bizjak <ubizjak@gmail.com>
5477
5478 * config/i386/i386.c (legitimize_tls_address)
479fecd3 5479 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5480 expanders directly for TARGET_GNU2_TLS. Determine pic and
5481 __tls_get_addr symbol reference here. Update call to
5482 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 5483 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
5484 expanders directly for TARGET_GNU2_TLS. Determine
5485 __tls_get_addr symbol reference here. Update call to
5486 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5487 unique UNSPEC REG_EQUIV to libcall block.
5488 (ix86_tls_get_addr): Declare static.
5489 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5490 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5491 Do not determine pic and __tls_get_addr symbol reference here. Do not
5492 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5493 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5494 (tls_global_dynamic_64): Add operand 2. Do not determine
5495 __tls_get_addr symbol reference here. Do not call
5496 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5497 (tls_local_dynamic_base64): Ditto for operand 1.
5498
6d3cc8f0
EB
54992011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5500
5501 * function.c (expand_function_start): Initialize stack_check_probe_note
5502 only if the generic stack checking mechanism is used.
5503
51e020fc
RG
55042011-05-11 Richard Guenther <rguenther@suse.de>
5505
5506 PR tree-optimization/15256
5507 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5508 (A & B) | C, combine (A op CST1) op CST2.
5509 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5510 visit assigns that have uses.
5511
51545682
NF
55122011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5513
cb032fee 5514 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
5515 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5516 (unpack_ts_type_common_value_fields): ...this. Update comment.
5517 (unpack_value_fields): Adjust for renaming.
5518 (lto_input_ts_type_tree_pointers): Split into...
5519 (lto_input_ts_type_common_tree_pointer): ...this and...
5520 (lto_input_ts_type_non_common_tree_pointers): ...this.
5521 (lto_input_tree_pointers): Adjust for above split.
5522 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5523 (pack_ts_type_common_value_fields): ...this. Update comment.
5524 (lto_output_ts_type_tree_pointers): Split into...
5525 (lto_output_ts_type_common_tree_pointers): ...this and...
5526 (lto_output_ts_type_non_common_tree_pointers): ...this.
5527 (lto_output_tree_pointers): Adjust for above split.
5528 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5529 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5530 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5531 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5532 Define.
5533 (struct tree_type): Split into...
5534 (struct tree_type_common: ...this and...
5535 (struct tree_type_with_lang_specific): ...this and...
5536 (struct tree_type_non_common): ...this. Adjust accessor macros
5537 accordingly.
5538 (TYPE_VALUES_RAW): Define.
5539 (union tree_node): Update for above changes.
5540 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5541 TS_TYPE_NON_COMMON.
5542 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5543 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5544 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5545 * treestructu.def (TS_TYPE): Remove.
5546 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5547 Define.
5548
b03c3082
JJ
55492011-05-11 Jakub Jelinek <jakub@redhat.com>
5550
5551 PR debug/48159
5552 * tree-ssa.c (reset_debug_uses): New function.
5553 * tree-flow.h (reset_debug_uses): New prototype.
5554 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5555 * tree-loop-distribution.c (generate_loops_for_partition): Call
5556 reset_debug_uses on the stmts that will be removed. Keep around
5557 all debug stmts, don't count them as bits in partition bitmap.
5558 (generate_builtin): Don't count debug stmts or labels as bits in
5559 partition bitmap.
5560
b5e04de5
RG
55612011-05-11 Richard Guenther <rguenther@suse.de>
5562
5563 * gimple.c (gimple_type_hash_1): Merge with ...
5564 (gimple_type_hash): ... this.
5565 (gtc_visit): Remove mode parameter and simplify accordingly.
5566 (gimple_types_compatible_p_1): Likewise.
5567 (gimple_types_compatible_p): Likewise.
5568 (iterative_hash_gimple_type): Likewise.
5569 (visit): Likewise.
5570 (gimple_type_eq): Adjust.
5571
fc6970e4
RE
55722011-05-11 Revital Eres <revital.eres@linaro.org>
5573
5574 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5575 enters the branch create an anti edge in the opposite direction
5576 to prevent the creation of reg-moves.
5577 * modulo-sched.c: Adjust comment to reflect the fact we are
5578 scheduling closing branch.
5579 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5580 (stage_count): New field in struct partial_schedule.
5581 (calculate_stage_count): New function.
5582 (normalize_sched_times): Rename to reset_sched_times and handle
5583 incrementing the sched time of the nodes by a constant value
5584 passed as parameter.
5585 (duplicate_insns_of_cycles): Skip closing branch.
5586 (sms_schedule_by_order): Schedule closing branch.
5587 (ps_insn_find_column): Handle closing branch.
5588 (sms_schedule): Call reset_sched_times and adjust the code to
5589 support scheduling of the closing branch.
5590 (ps_insert_empty_row): Update calls to normalize_sched_times
5591 and rotate_partial_schedule functions.
5592
41a58a92
RG
55932011-05-11 Richard Guenther <rguenther@suse.de>
5594
5595 PR middle-end/48953
5596 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5597
e9f8dcf9
JM
55982011-05-11 Joseph Myers <joseph@codesourcery.com>
5599
cb032fee
UB
5600 * opts.c (finish_options): Move warning settings from process_options.
5601 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 5602
10c224a9
RG
56032011-05-11 Richard Guenther <rguenther@suse.de>
5604
5605 PR tree-optimization/18041
5606 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5607 (simplify_bitwise_binary): ... this. Handle operand conversions
5608 by applying them to the result instead.
5609 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5610
825b27de
RG
56112011-05-11 Richard Guenther <rguenther@suse.de>
5612
5613 * gimple.c (gimple_canonical_types_compatible_p): Split out
5614 from gimple_types_compatible_p and friends. Do not recurse
5615 to pointed-to types.
5616 (gimple_canonical_type_eq): Use it.
5617 (iterative_hash_canonical_type): Split out from
5618 iterative_hash_gimple_type and friends. Do not recurse
5619 to pointed-to types.
5620 (gimple_canonical_type_hash): Use it, allocate the hash here.
5621
ca756625
RE
56222011-05-11 Revital Eres <revital.eres@linaro.org>
5623
5624 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5625 recognizing doloop.
5626
b8abece3
RE
56272011-05-11 Revital Eres <revital.eres@linaro.org>
5628
5629 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5630 instead of PREV_INSN.
5631
ce7b3761
RE
56322011-05-11 Revital Eres <revital.eres@linaro.org>
5633
5634 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5635 * loop-doloop.c (doloop_condition_get): Likewise.
5636 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5637 (doloop_end): New.
5638 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5639
a9dc9d37
NF
56402011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5641
5642 * tree.def (CASE_LABEL_EXPR): Add an operand.
5643 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5644
96703596
JM
56452011-05-10 Joseph Myers <joseph@codesourcery.com>
5646
5647 * c-decl.c (c_override_global_bindings_to_false): Remove.
5648 (global_bindings_p): Don't check
5649 c_override_global_bindings_to_false.
5650 * c-tree.h (c_override_global_bindings_to_false): Remove.
5651 * c-typeck.c (composite_type): Don't set
5652 c_override_global_bindings_to_false.
5653
dbcc9f08
MM
56542011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5655
5656 PR target/48857, 48495
5657 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5658 (VSX_MODE): Ditto.
5659 (VSX_MOVE_MODE): Ditto.
5660 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5661 VSX vector types. Add V2DImode.
5662 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5663 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5664 (MODES_TIEABLE_P): Ditto.
5665
5666 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5667 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5668 VSX_VECTOR_MODE.
5669 (init_cumulative_args): Ditto.
5670 (rs6000_function_arg_boundary): Ditto.
5671 (rs6000_function_arg_advance_1): Ditto.
5672 (rs6000_function_arg): Ditto.
5673 (rs6000_function_ok_for_sibcall): Ditto.
5674 (emit_frame_save): Ditto.
5675 (rs6000_function_value): Ditto.
5676 (rs6000_libcall_value): Ditto.
5677
4a68b4ca
JM
56782011-05-10 Joseph Myers <joseph@codesourcery.com>
5679
5680 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5681 i386/darwin-lib.h to $libgcc_tm_file.
5682 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5683
bcb521e9
JM
56842011-05-10 Joseph Myers <joseph@codesourcery.com>
5685
5686 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5687
f10d3ac9
JM
56882011-05-10 Joseph Myers <joseph@codesourcery.com>
5689
cb032fee 5690 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
5691 * config/rs6000/rs6000-tables.opt: New file (generated).
5692 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5693 rs6000/rs6000-tables.opt to extra_options.
5694 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5695 * config/rs6000/rs6000.c (rs6000_select): Remove.
5696 (processor_target_table): Move contents to rs6000-cpus.def.
5697 (darwin_rs6000_override_options): Check
5698 global_options_set.x_rs6000_cpu_index instead of
5699 rs6000_select[1].string.
5700 (rs6000_option_override_internal): Likewise.
5701 (rs6000_handle_option): Don't assert that global structures are in
5702 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5703 (rs6000_default_cpu): New variable.
5704 (rs6000_file_start): Set it instead of local default_cpu. Check
5705 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5706 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5707 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5708 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5709 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5710 rs6000_select): Remove.
5711 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5712 Remove.
5713 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5714 * config/rs6000/t-rs6000
5715 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5716 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5717 global_options_set.x_rs6000_cpu_index instead of
5718 rs6000_select[1].string.
5719 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5720 global_options_set.x_rs6000_cpu_index instead of
5721 rs6000_select[1].string.
5722
80cf2e08
JM
57232011-05-10 Joseph Myers <joseph@codesourcery.com>
5724
5725 * config.gcc (libgcc_tm_file): Define instead of including files
5726 from ../../libgcc/config/ in tm_file.
cb032fee 5727 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
5728 * configure: Regenerate.
5729 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5730 libgcc_tm.h, cs-libgcc_tm.h): New.
5731 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5732 (clean): Remove libgcc_tm.h.
5733 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5734 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5735 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5736
fd01a351
GJL
57372011-05-10 Georg-Johann Lay <avr@gjlay.de>
5738
5739 PR target/48896
5740 * config/avr/avr.c (avr_ret_register): Return unsigned int
5741 instead of int.
5742 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5743 it to avr_libcall_value.
5744 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5745 expand_expr.
5746 (avr_expand_binop_builtin): Ditto.
5747 (avr_expand_unop_builtin): Ditto.
5748
34cc3c86
DD
57492011-05-10 DJ Delorie <dj@redhat.com>
5750
5751 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5752 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5753 * config/rx/rx.c (rx_align_for_label): Add label and
5754 uses_threshold parameters. Do not align when the label is not
5755 used enough.
5756 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5757
be173289
RG
57582011-05-10 Richard Guenther <rguenther@suse.de>
5759
5760 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5761 a series of conversions and apply foldings similar to what
5762 fold-const does.
5763 (tree_ssa_forward_propagate_single_use_vars): Call it.
5764
e7f78021
JJ
57652011-05-10 Jakub Jelinek <jakub@redhat.com>
5766
6ae70ea2
JJ
5767 PR tree-optimization/48611
5768 PR tree-optimization/48794
5769 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5770 referenced from RESX or EH_DISPATCH arguments.
5771
e7f78021
JJ
5772 PR debug/48928
5773 * dfp.c (decimal_to_decnumber): Handle conversion from
5774 dconst{1,2,m1,half}.
5775
fca132b9
UB
57762011-05-09 Uros Bizjak <ubizjak@gmail.com>
5777
5778 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5779 for !flag_prefer_avx128.
5780 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5781
e4c03378
EB
57822011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5783
5784 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5785 (fold_ternary_loc): Use expr_location_or.
5786
805d6a75
L
57872011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5788
5789 PR debug/48853
5790 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5791 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5792 Pmode and mem_mode is not VOIDmode.
5793
e4c03378 57942011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 5795
e4c03378
EB
5796 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5797 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 5798
51e7f377
UB
57992011-05-09 Uros Bizjak <ubizjak@gmail.com>
5800
5801 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5802 (const_pow2_1_to_8_operand): Ditto.
5803 (const_pow2_1_to_128_operand): Ditto.
5804 (const_pow2_1_to_32768_operand): Ditto.
5805 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5806 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5807 in insn constraint to check integer value of operand 3.
5808 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5809
5810 (PINSR_MODE): New mode iterator.
5811 (sse2p4_1): New mode attribute.
5812 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5813 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5814 iterator. Use const_int_operand instead of
5815 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5816 exact_log2 in insn constraint to check integer value of operand 3.
5817
58182011-05-09 Uros Bizjak <ubizjak@gmail.com>
5819
5820 * config/i386/sse.md (blendbits): Remove mode attribute.
5821 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5822 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5823 Check integer value of operand 3 in insn constraint.
5824
0ca8de87
RG
58252011-05-09 Richard Guenther <rguenther@suse.de>
5826
5827 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5828 for diagnostics.
5829 (lto_symtab_merge): Likewise. Do not register types here.
5830 (lto_symtab_merge_decls_2): Likewise.
5831 (lto_symtab_merge_decls_1): Likewise.
5832 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5833 * gimple.c (enum gtc_mode): Declare.
5834 (gimple_types_compatible_p): Make static.
5835
a9e6994a
AK
58362011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5837
5838 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5839 temporary register to match Pmode.
5840
fb55d62e
UB
58412011-05-09 Uros Bizjak <ubizjak@gmail.com>
5842
5843 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5844 and *vec_concatv4si_1_avx.
5845
eb1485a6
UB
58462011-05-09 Uros Bizjak <ubizjak@gmail.com>
5847
5848 PR rtl-optimization/48927
5849 * ira-conflicts.c (commutative_constraint_p): Use
5850 recog_data.alternative_enabled_p to disable alternatives where
5851 "enabled" attribute is false.
5852 (get_dup_num): Ditto.
5853 * ira-lives.c (single_reg_class): Ditto.
5854 (ira_implicitly_set_insn_hard_regs): Ditto.
5855
c46d001a
EB
58562011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5859 (dataflow_set_preserve_mem_locs): Likewise.
5860
58612011-05-09 Philipp Thomas <pth@suse.de>
5862
6d9e7c41
PT
5863 * config/mep/mep.c (mep_validate_vliw): Syntax description
5864 should not be translated.
5865
d371df6f
JM
58662011-05-09 Joseph Myers <joseph@codesourcery.com>
5867
5868 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5869 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 5870 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
5871 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5872 MIPS_ARCH_OPTION_NATIVE): Define.
5873 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5874 mips-cpus.def.
5875 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5876 mips_parse_cpu): Remove.
5877 (mips_cpu_info_from_opt, mips_default_arch): New.
5878 (mips_handle_option): Don't assert that global structures are in
5879 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5880 (mips_option_override): Use new variables and functions to set
eb1485a6 5881 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
5882 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5883 definition.
5884 * config/mips/mips.opt (march=): Use ToLower and Enum.
5885 (mips): Use ToLower, Enum and Var.
5886 (mtune=): Use ToLower and Enum.
5887 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5888
4fc07af9
JH
58892011-05-08 Jan Hubicka <jh@suse.cz>
5890
5891 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5892 Arrange type pairs to be UID ordered.
5893 (gimple_lookup_type_leader): Make inline.
5894
2cf320a8
NC
58952011-05-09 Nick Clifton <nickc@redhat.com>
5896
61d6def5
NC
5897 PR target/48899
5898 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5899 PROCESSOR_DEFAULT.
5900
2cf320a8
NC
5901 PR target/48897
5902 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5903 variable 's'.
5904
4f82319d
CLT
59052011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5906
5907 * combine.c (simplify_comparison): Abstract out parts into...
5908 (simplify_compare_const): ... new function.
5909 (try_combine): Generalize parallel arithmetic/compare combining
5910 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5911
74605a11
JH
59122011-05-08 Jan Hubicka <jh@suse.cz>
5913
5914 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
5915 (cgraph_create_virtual_clone): Call hooks once virtual clone
5916 is finished.
74605a11 5917 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
5918 * ipa-cp.c (ipcp_estimate_growth): Use
5919 estimate_ipcp_clone_size_and_time.
74605a11
JH
5920 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5921 * lto-cgraph.c (input_node): Update.
5922 * ipa-inline.c (recursive_inlining): Update.
5923 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5924 (evaluate_conditions_for_known_args): Break out from ...
5925 (evaluate_conditions_for_edge): ... here.
5926 (evaluate_conditions_for_ipcp_clone): New function.
5927 (inline_node_duplication_hook): Update clone summary based
5928 on parameter map.
5929 (estimate_callee_size_and_time): Rename to ...
5930 (estimate_node_size_and_time): take NODE instead of EDGE;
5931 take POSSIBLE_TRUTHS as argument.
5932 (estimate_callee_size_and_time): Update.
5933 (estimate_ipcp_clone_size_and_time): New function.
5934 (do_estimate_edge_time): Update.
5935
5c049507
RG
59362011-05-08 Richard Guenther <rguenther@suse.de>
5937
5938 PR middle-end/48908
5939 PR middle-end/48905
5940 * expmed.c (expand_shift_1): Compute adjusted constant shift
5941 amount manually.
5942
f64c36ba
EB
59432011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5944
5945 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5946
c461a957
EB
59472011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5948
5949 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5950
7c74e556
JW
59512011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5952
5953 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5954
b4c0a884
JH
59552011-05-07 Jan Hubicka <jh@suse.cz>
5956
a9bcb3f0
EB
5957 * ipa-inline-transform.c (inline_call): Account when program size
5958 decreases.
b4c0a884 5959 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
5960 (edge_badness): Reorganize to be power 2 based; fix thinko when
5961 computing badness for negative growth; update comments to match
5962 reality; better dumps.
b4c0a884 5963
c99c0026
EB
59642011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5965
5966 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5967 type to bool and adjust comment.
5968 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5969 (fold_mathfn_compare): Remove calls to global_bindings_p.
5970 (fold_inf_compare): Likewise.
5971 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5972 * c-tree.h (global_bindings_p): Adjust prototype.
5973 * c-decl.c (global_bindings_p): Return bool and simplify.
5974
1400c8e5
ZD
59752011-05-07 Zdenek Dvorak <ook@ucw.cz>
5976
5977 PR tree-optimization/48837
5978 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5979 when accumulator transformation is performed.
5980
5d0878e7
JH
59812011-05-06 Jan Hubicka <jh@suse.cz>
5982
a9bcb3f0
EB
5983 * i386.h (ix86_tune_indices): Add
5984 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 5985 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
5986 * i386.c (initial_ix86_tune_features): Add
5987 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
5988 (software_prefetching_beneficial_p): Remove predicate.
5989 (ix86_option_override_internal): Use new macro.
5990
58696ce5
JH
59912011-05-06 Jan Hubicka <jh@suse.cz>
5992
5993 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5994
c47d0034
JH
59952011-05-06 Jan Hubicka <jh@suse.cz>
5996
5997 * cgraph.c (cgraph_add_thunk): Create real function node instead
5998 of alias node; finalize it and mark needed/reachale; arrange visibility
5999 to be right and add it into the corresponding same comdat group list.
6000 (dump_cgraph_node): Dump thunks.
6001 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
6002 cgraph_function_with_gimple_body_p,
6003 cgraph_first_function_with_gimple_body,
c47d0034
JH
6004 cgraph_next_function_with_gimple_body): New functions.
6005 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6006 New macros.
6007 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6008 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6009 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6010 devirtualization when optimizing.
6011 (verify_cgraph_node): Verify thunks.
6012 (cgraph_analyze_function): Analyze thunks.
6013 (cgraph_mark_functions_to_output): Output thunks only in combination
6014 with function they are assigned to.
6015 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6016 alias into normal node.
6017 (assemble_thunks): New functoin.
6018 (cgraph_expand_function): Use it.
6019 * lto-cgraph.c (lto_output_node): Stream thunks.
6020 (input_overwrite_node): Stream in thunks.
6021 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6022 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6023 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6024 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6025 (inline_analyze_function): Do not care about thunk jump functions.
6026 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
6027 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6028 cgraph_function_with_gimple_body_p.
6029 * passes.c (do_per_function_toporder): Use
6030 cgraph_function_with_gimple_body_p.
c47d0034
JH
6031 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6032 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6033 (function_called_by_processed_nodes_p): Likewise.
6034
d8f426ec
JM
60352011-05-06 Joseph Myers <joseph@codesourcery.com>
6036
6037 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6038 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6039 entries.
6040 (mabi=): Replace with separate entries for mabi=altivec,
6041 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6042 mabi=ieeelongdouble and mabi=ibmlongdouble.
6043 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6044 check for -mabi=spe without SPE ABI support here.
6045 (rs6000_handle_option): Replace OPT_mabi_ handling with
6046 OPT_mabi_altivec and OPT_mabi_spe handling.
6047
80bde45b
CC
60482011-05-06 Cary Coutant <ccoutant@google.com>
6049
6050 * dwarf2out.c (contains_subprogram_definition): New function.
6051 (should_move_die_to_comdat): Call it.
6052
a91926b9
JL
60532011-05-06 Jeff Law <law@redhat.com>
6054
6055 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6056 remove_ctrl_stmt_and_useless_edges.
6057 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6058 (fixup_template_block, thread_single_edge): Likewise.
6059 (mark_threaded_blocks): Use THREAD_TARGET.
6060
1fc1b66d
AM
60612011-05-06 Alan Modra <amodra@gmail.com>
6062
6063 PR target/48900
6064 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6065 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6066
e194de64
UB
60672011-05-06 Uros Bizjak <ubizjak@gmail.com>
6068
6069 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6070 constraint modifier to "r".
6071
d740dc9e
JM
60722011-05-06 Joseph Myers <joseph@codesourcery.com>
6073
6074 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6075 fall through for OPT_mcmodel_.
6076
cab78b15
AK
60772011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6078
6079 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6080 instruction sizes.
e194de64 6081 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 6082
ee6824ae
RR
60832011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6084
eb1485a6
UB
6085 PR target/47930
6086 * config/arm/arm.opt (marm): Document it.
6087 (mthumb): Reject negative variant.
ee6824ae 6088
9ef58464
UB
60892011-05-06 Uros Bizjak <ubizjak@gmail.com>
6090
6091 PR target/48898
6092 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6093 Fix typo in "ccvt" variable name.
6094
155b6176
TG
60952011-05-06 Tristan Gingold <gingold@adacore.com>
6096
6097 PR target/48895
6098 * config/vms/vms-ar.c (main): Remove cwd variable.
6099
3becc47b
JJ
61002011-05-06 Jakub Jelinek <jakub@redhat.com>
6101
6102 PR debug/48902
6103 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6104
3d528853
NF
61052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6106
6107 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6108 * gimplify.c (gimplify_switch_expr): Likewise.
6109 * omp-low.c (expand_omp_sections): Likewise.
6110 * tree-eh.c (lower_try_finally_switch): Likewise.
6111 (lower_eh_dispatch): Likewise.
6112 * tree.h (build_case_label): Declare.
6113 * tree.c (build_case_label): Define.
6114
deb5046b
JM
61152011-05-05 Jason Merrill <jason@redhat.com>
6116
6117 PR c++/40975
6118 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6119 (copy_statement_list): Don't recurse.
6120 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6121 STATEMENT_LIST.
6122
013c0411
JM
61232011-05-05 Joseph Myers <joseph@codesourcery.com>
6124
6125 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6126 through from -mfpu= handling.
6127 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6128
a0905f8b
BS
61292011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6130
6131 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6132 POST_MODIFY.
6133
fc4538e4
SE
61342011-05-05 Steve Ellcey <sje@cup.hp.com>
6135
6136 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6137 for 11.31.
6138 (hppa[12]*-*-hpux11*): Ditto.
6139 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6140 * config/ia64/hpux-unix2003.h: New.
6141 * config/pa/pa-hpux1131.opt: New.
6142 * config/pa/pa-hpux1131.h: New.
6143 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6144 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 6145 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 6146
1e30c578
JJ
61472011-05-05 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR debug/48853
6150 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6151 instead of mode as 3rd argument to recursive call.
6152 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6153 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6154 VOIDmode.
6155 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6156 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6157 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6158 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6159
d19eb620
JB
61602011-05-05 Julian Brown <julian@codesourcery.com>
6161
6162 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6163 parenthesis in D-register case.
6164
c860fe8c
JM
61652011-05-05 Joseph Myers <joseph@codesourcery.com>
6166
6167 * opt-functions.awk (var_type_struct): Handle Enum options.
6168 * optc-gen.awk: Don't check range of variables of character type.
6169 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6170 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6171 rs6000_sdata_name, rs6000_explicit_options): Remove.
6172 (rs6000_option_override_internal): Check for -malign-power here.
6173 Use global_options_set instead of rs6000_explicit_options.
6174 (rs6000_parse_fpu_option): Remove.
6175 (rs6000_handle_option): Access variables via opts and opts_set
6176 pointers. Use error_at and warning_at. Add fall-through
6177 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6178 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6179 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6180 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6181 here. Don't use rs6000_parse_fpu_option.
6182 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6183 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6184 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6185 (mrecip=): Use Var.
6186 (mspe): Use Var and Save.
6187 (mtraceback=): Use Enum and Var.
6188 (rs6000_traceback_type): New Enum and EnumValue entries.
6189 (mfloat-gprs=): Use Enum, Var and Save.
6190 (rs6000_float_gprs): New Enum and EnumValue entries.
6191 (mlong-double-): use Var and Save.
6192 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6193 (malign-): Use Enum and Var.
6194 (rs6000_alignment_flags): New Enum and EnumValue entries.
6195 (mfpu=): Use Enum.
6196 (fpu_type_t): New Enum and EnumValue entries.
6197 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6198 global_options_set instead of rs6000_explicit_options.
6199 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6200 global_options_set instead of rs6000_explicit_options.
6201 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6202 global_options_set instead of rs6000_explicit_options.
6203 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6204 global_options_set instead of rs6000_explicit_options.
6205 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6206 global_options_set instead of rs6000_explicit_options.
6207 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6208 global_options_set instead of rs6000_explicit_options.
6209 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6210 definition.
6211 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6212 global_options_set instead of rs6000_explicit_options.
6213 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6214 (rs6000_cmodel): New Enum and EnumValue entries.
6215 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6216 global_options_set instead of rs6000_explicit_options.
6217 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6218 (mtls-size=): Use Enum and Var.
6219 (rs6000_tls_size): New Enum and EnumValue entries.
6220
0691dde9
MM
62212011-05-05 Michael Matz <matz@suse.de>
6222
6223 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6224 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6225 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6226 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6227 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6228 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6229 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6230 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6231 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6232 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6233 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6234 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6235 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6236 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6237 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6238 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6239
86529a49
RG
62402011-05-05 Richard Guenther <rguenther@suse.de>
6241
6242 * expmed.c (expand_variable_shift): Rename to ...
6243 (expand_shift_1): ... this. Take an expanded shift amount.
6244 For rotates recurse directly not building trees for the shift amount.
6245 (expand_variable_shift): Wrap around expand_shift_1.
6246 (expand_shift): Adjust.
6247
d0228c2e
JJ
62482011-05-05 Jakub Jelinek <jakub@redhat.com>
6249
6250 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6251
907a08d9
EB
62522011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6253
6254 * tree.h (get_pending_sizes): Remove prototype.
6255 (put_pending_size): Likewise.
6256 (put_pending_sizes): Likewise.
6257 * stor-layout.c (pending_sizes): Delete.
6258 (get_pending_sizes): Likewise.
6259 (put_pending_size): Likewise.
6260 (put_pending_sizes): Likewise.
6261 (variable_size): Do not call put_pending_size and tidy up.
6262 * function.h (struct function): Remove dont_save_pending_sizes_p.
6263 * lto-streamer-in.c (input_function): Do not stream it.
6264 * lto-streamer-out.c (output_function): Likewise.
6265 * tree-inline.c (initialize_cfun): Do not copy it.
6266 * c-decl.c (store_parm_decls): Do not set it.
6267 * omp-low.c (create_task_copyfn): Likewise.
6268 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6269
386d9c57
UB
62702011-05-05 Uros Bizjak <ubizjak@gmail.com>
6271
6272 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6273 conditions.
6274 (*movdf_internal): Ditto.
6275 (*movdf_internal_nointeger): Ditto.
6276 (*movsf_internal): Ditto.
6277
a04a722b
JM
62782011-05-05 Joseph Myers <joseph@codesourcery.com>
6279
6280 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6281 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6282 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6283 (c_variable_size): Remove.
6284 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6285 call put_pending_sizes.
6286 (get_parm_info): Add parameter expr. Use it to set
6287 arg_info->pending_sizes.
6288 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6289 get_pending_sizes.
6290 * c-parser.c (c_parser_parms_declarator): Update call to
6291 c_parser_parms_list_declarator.
6292 (c_parser_parms_list_declarator): Take parameter expr. Update
6293 call to push_parm_decl. Update recursive call. Don't call
6294 get_pending_sizes. Update calls to get_parm_info.
6295 (c_parser_objc_method_definition): Update calls to
6296 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 6297 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
6298 (c_parser_objc_method_decl): Add parameter expr. Update call to
6299 grokparm.
386d9c57 6300 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
6301 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6302 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6303
c92a6f97
MH
63042011-05-05 Michael Hope <michael.hope@linaro.org>
6305
386d9c57
UB
6306 PR pch/45979
6307 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6308 __ARM_EABI__ hosts.
c92a6f97 6309
07ea0048
UW
63102011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6311
6312 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6313 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6314 (spu_output_mi_thunk): New function.
6315
d634bfa1
RO
63162011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6317
6318 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6319 targetm.asm_out.print_operand.
6320 * config/sol2.c: Include target.h.
6321
40fda55b
JH
63222011-05-04 Jan Hubicka <jh@suse.cz>
6323
6324 * ipa-inline.c (reset_edge_caches): New function.
6325 (update_caller_keys): Add check_inlinablity_for; do not
6326 reset edge caches; remove now unnecesary loop.
386d9c57 6327 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
6328 (update_all_callee_keys): Likewise.
6329 (inline_small_functions): Sanity check cache; update code
6330 recomputing it.
6331
0360f70d
BS
63322011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6333
6334 PR rtl-optimization/47612
6335 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6336 as the last insn of the sequence to be moved.
6337
7a994646
TB
63382011-05-04 Tobias Burnus <burnus@net-b.de>
6339
6340 PR fortran/48864
6341 * doc/invoke.texi (Ofast): Document that it
6342 enables Fortran's -fno-protect-parens.
6343
7a2f7208
UB
63442011-05-04 Uros Bizjak <ubizjak@gmail.com>
6345
6346 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6347
a2d42931
EB
63482011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6349
6350 * stor-layout.c (variable_size): Do not issue errors.
6351
f81b1a3d
RG
63522011-05-04 Richard Guenther <rguenther@suse.de>
6353
6354 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6355 for array-ref indices.
6356 (tree_coverage_counter_addr): Likewise.
6357 (build_fn_info_type): Use size_int for index types.
6358 (build_gcov_info): Likewise.
6359
c62c040f
RG
63602011-05-04 Richard Guenther <rguenther@suse.de>
6361
6362 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6363 to build_int_cst.
6364 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6365 for constructor indices.
6366 (push_init_level): Likewise.
6367
1e3287d0
RG
63682011-05-04 Richard Guenther <rguenther@suse.de>
6369
6370 * explow.c (promote_mode): Move variable declarations before code.
6371
6c32445b
NF
63722011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6373
6374 * tree.h (build_function_type_array): Declare.
6375 (build_varargs_function_type_array): Declare.
6376 (build_function_type_vec, build_varargs_function_type_vec): Define.
6377 * tree.c (build_function_type_array_1): New function.
6378 (build_function_type_array): New function.
6379 (build_varargs_function_type_array): New function.
6380
fdabf269
RS
63812011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6382
6383 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6384 before setting STMT_VINFO_TYPE.
6385
a207915a
UW
63862011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6387
6388 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6389 instead of spu_pass_by_reference.
6390
5e617be8
AK
63912011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6392
6393 * calls.c (emit_library_call_value_1): Invoke
6394 promote_function_mode hook on libcall arguments.
6395 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6396 argument being NULL.
6397 * targhooks.c (default_promote_function_mode): Lisewise.
6398 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6399 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6400
6401 * doc/tm.texi: Document that TYPE argument might be NULL.
6402
486d04be
SH
64032011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6404
6405 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6406
9b19b026
SH
64072011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6408
6409 From Bernd Schmidt
6410 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6411
502bc3df
RO
64122011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6413
6414 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6415 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6416 Move ...
6417 * mips-tfile.c: ... here.
6418 Don't include coretypes.h, tm.h, filenames.h.
6419 (saber_stop): Remove definition and all calls.
6420 [__SABER__]: Remove.
6421 (__LINE__): Remove default.
6422 (Size_t, Ptrdiff_t): Remove definitions.
6423 Replace by size_t, ptrdiff_t.
6424 [!MIPS_DEBUGGING_INFO]: Remove.
6425 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6426 (progname): Add const.
6427 (STATIC): Remove.
6428 Replace all uses by static.
6429 (ALIGN_SYMTABLE_OFFSET): Remove default.
6430 * mips-tdump.c: Don't include coretypes.h, tm.h.
6431 Remove !MIPS_IS_STAB guard.
6432 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6433 $(TM_H), filenames.h dependencies.
6434 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6435
991eb6ef
SH
64362011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6437
6438 From Jie Zhang
6439 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6440 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6441
420ccc84
SH
64422011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6443
6444 From Bernd Schmidt
6445 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6446 account and save/restore RETS.
6447 (PROFILE_BEFORE_PROLOGUE): Define.
6448 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6449 the push insn to use predecrement.
6450
9f8d69ee
SH
64512011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6452
6453 From Jie Zhang
6454 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6455
662c03f4
NC
64562011-05-04 Nick Clifton <nickc@redhat.com>
6457
6458 * config/mn10300/mn10300.c: Include cfgloop.h.
6459 (DUMP): New macro.
6460 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6461 Lcc or a FLcc insn into the instruction stream.
6462 (mn10300_block_contains_call): New function. Returns true if the
6463 given basic block contains a CALL insn.
6464 (mn10300_loop_contains_call_insn): New function. Returns true if
6465 the given loop contains a CALL insn.
6466 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6467 to use the SETLB and Lcc or FLcc insns.
6468 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6469 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6470 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6471 disable the SETLB optimization.
6472 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6473 __SETLB__ or __NO_SETLB__.
6474 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6475 (movsf_internal): Handle MDR register.
6476 (cmpsi): Make visible.
6477 (setlb): New pattern.
6478 (Lcc): New pattern.
6479 (FLcc): New pattern.
6480
843b6915
UB
64812011-05-04 Uros Bizjak <ubizjak@gmail.com>
6482
6483 PR target/48860
6484 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6485 for reg<->xmm moves.
6486 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6487 (vec_concatv2di_rex64_sse): Ditto.
6488 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6489 (*vec_extractv2di_1_rex64): Ditto.
6490
6491 Revert:
6492 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6493
6494 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6495 reg<->xmm moves.
6496 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6497
d35936ab
RG
64982011-05-04 Richard Guenther <rguenther@suse.de>
6499
6500 * tree.h (int_const_binop): Remove notrunc argument.
6501 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6502 create integer constants that are properly truncated.
6503 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6504 (const_binop): Remove zero notrunc argument to int_const_binop.
6505 (size_binop_loc): Likewise.
6506 (fold_div_compare): Likewise.
6507 (maybe_canonicalize_comparison_1): Likewise.
6508 (fold_comparison): Likewise.
6509 (fold_binary_loc): Likewise.
6510 (multiple_of_p): Likewise.
6511 * expr.c (store_constructor): Likewise.
6512 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6513 (maybe_fold_stmt_addition): Likewise.
6514 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6515 * stor-layout.c (layout_type): Likewise.
6516 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6517 * tree-sra.c (build_ref_for_offset): Likewise.
6518 (build_user_friendly_ref_for_offset): Likewise.
6519 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6520 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6521 * tree-ssa-loop-niter.c (inverse): Likewise.
6522 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6523 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6524 * tree-switch-conversion.c (check_range): Likewise.
6525 (build_constructors): Likewise.
6526 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6527 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6528 (extract_range_from_assert): Likewise.
6529 (vrp_int_const_binop): Likewise.
6530 (extract_range_from_binary_expr): Likewise.
6531 (extract_range_from_unary_expr): Likewise.
6532 (check_array_ref): Likewise.
6533 (find_case_label_range): Likewise.
6534 (simplify_div_or_mod_using_ranges): Likewise.
6535 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6536 comparing case labels for merging.
6537
8992c063
MW
65382011-05-03 Mark Wielaard <mjw@redhat.com>
6539
6540 * dwarf2out.c (debug_str_hash_forced): Removed.
6541 (gen_label_for_indirect_string): Removed.
6542 (get_debug_string_label): Removed.
6543 (AT_string_form): Generate label directly.
6544 (output_indirect_string): Test indirect_string_node for
6545 DW_FORM_strp instead of checking label and refcount.
6546 (prune_indirect_string): Removed.
6547 (prune_unused_types): Don't check debug_str_hash_forced or
6548 call prune_indirect_string.
6549
4868e6ea
AO
65502011-05-04 Alexandre Oliva <aoliva@redhat.com>
6551
6552 PR other/48093
6553 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6554
01a5c0ab
AO
65552011-05-04 Alexandre Oliva <aoliva@redhat.com>
6556
6557 PR debug/47994
6558 PR debug/47919
6559 * combine.c (try_combine): Skip debug insns at m_split tests.
6560
6ac00218
MW
65612011-04-26 Mark Wielaard <mjw@redhat.com>
6562
6563 PR42288
6564 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6565 when info_section_emitted.
6566
3af42a7b
JM
65672011-05-03 Joseph Myers <joseph@codesourcery.com>
6568
6569 * config/mips/mips-opts.h: New.
6570 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6571 to mips-opts.h.
6572 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6573 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6574 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6575 via opts pointer.
6576 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6577 mips-opts.h.
6578 (mips_abi, mips_code_readable): Don't declare.
843b6915 6579 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
6580 (mabi=): Use Enum and Var.
6581 (mips_abi): New Enum and EnumValue entries.
6582 (mcode-readable=): Use Enum and Var.
6583 (mips_code_readable_setting): New Enum and EnumValue entries.
6584 (mr10k-cache-barrier=): Use Enum and Var.
6585 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6586
1cb1a99f
JH
65872011-05-03 Jan Hubicka <jh@suse.cz>
6588
6589 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6590 replace hash by pointer map.
6591 (cgraph_node_set_element_def, cgraph_node_set_element,
6592 const_cgraph_node_set_element, varpool_node_set_element_def,
6593 varpool_node_set_element, const_varpool_node_set_element): Remove.
6594 (free_cgraph_node_set, free_varpool_node_set): New function.
6595 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6596 * tree-emutls.c: Free varpool node set.
6597 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6598 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6599 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6600 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6601 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6602 Move here from ipa.c; implement using pointer_map
6603 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6604 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6605 debug_cgraph_node_set, varpool_node_set_new,
6606 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6607 dump_varpool_node_set, debug_varpool_node_set):
6608 Move to ipa-uitls.c.
6609 * passes.c (ipa_write_summaries): Update.
6610
7f31f4db
SH
66112011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6612
7a2f7208
UB
6613 From Mike Frysinger:
6614 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6615 bf542/bf544/bf547/bf548/bf549.
7f31f4db 6616
b70fce6d
UB
66172011-05-03 Uros Bizjak <ubizjak@gmail.com>
6618
6619 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6620
265b1d82
SH
66212011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6622
6623 From Bernd Schmidt:
6624 * config/bfin/bfin.md (MOVCC): New mode_macro.
6625 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6626 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6627 comments from generated assembly.
6628
f0b568f3
SH
66292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6630
6631 From Bernd Schmidt
6632 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6633 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6634 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6635 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6636 * config/bfin/lib1funcs.asm (___muldi3): New function.
6637
2c67cf6e
NF
66382011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6639
6640 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6641 build_function_type_list instead of build_function_type.
6642 Rearrange initialization of `args' to do so.
6643
f9ac28ad
NF
66442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6645
6646 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6647 instead of build_function_type.
6648
22b8798c
NF
66492011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6650
6651 * config/rs6000/rs6000.c (spe_init_builtins): Call
6652 build_function_type_list instead of build_function_type.
6653 (paired_init_builtins, altivec_init_builtins): Likewise.
6654 (builtin_function_type): Likewise.
6655
4cb44528
NF
66562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6657
6658 * config/sh/sh.c (sh_media_init_builtins): Call
6659 build_function_type_list instead of build_function_type.
6660
4c203a6a
NF
66612011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6662
6663 * config/sparc/sparc.c (sparc_file_end): Call
6664 build_function_type_list instead of build_function_type.
6665
d6a3d62b
NF
66662011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6667
6668 * config/alpha/alpha.c (alpha_init_builtins): Call
6669 build_function_type_list instead of build_function_type.
6670
de530b86
NF
66712011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6672
6673 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6674 build_function_type_list instead of build_function_type.
6675
baeec5f2
NF
66762011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6677
6678 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6679 build_function_type_list instead of build_function_type.
6680 Delete `endlink' variable.
6681
c19afe52
NF
66822011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6683
6684 * config/avr/avr.c (avr_init_builtins): Call
6685 build_function_type_list instead of build_function_type.
6686
a341df0a
NF
66872011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6688
6689 * config/picochip/picochip.c (picochip_init_builtins): Call
6690 build_function_type_list instead of build_function_type.
6691 Delete `endlink' variable.
6692
2102b1e1
NF
66932011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6694
6695 * config/bfin/bfin.c (bfin_init_builtins): Call
6696 build_function_type_list instead of build_function_type.
6697
9f111209
SH
66982011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6699
6700 From Bernd Schmidt
6701 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6702 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6703
7071d064
SH
67042011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6705
6706 From Jie Zhang:
6707 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6708 libbffastfp overrides libgcc when -mfast-fp.
6709
748f7574 67102011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
6711
6712 Originally from Bernd Schmidt
6713 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6714 * config/bfin/bfin.c (override_options): Test it and error if
6715 TARGET_FDPIC.
6716
1a3a9152
SH
67172011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6718
6719 Originally From Bernd Schmidt
6720 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6721 FD-PIC.
6722
7134c090
JL
67232011-05-03 Jeff Law <law@redhat.com>
6724
6725 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6726 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6727 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
6728 than accessing AUX field directly. Free the AUX field before
6729 clearing it.
7134c090
JL
6730 (thread_block, thread_through_loop_header): Likewise.
6731 (thread_single_edge, mark_threaded_blocks): Likewise.
6732 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6733 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 6734
2c7eebae
BS
67352011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6736
6737 * function.c (init_function_start): Call decide_function_section.
6738 * varasm.c (decide_function_section): New function.
6739 (assemble_start_function): When not using
6740 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6741 or first_function_block_is_cold.
6742 * rtl.h (decide_function_section): Declare.
6743
17038fcf
JJ
67442011-05-03 Uros Bizjak <ubizjak@gmail.com>
6745 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR target/48774
6748 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6749 only succeed if req_mode is the same as set_mode.
6750
3810076b
BS
67512011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6752
6753 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6754 * genemit.c (gen_exp): Handle RETURN.
6755 * emit-rtl.c (verify_rtx_sharing): Likewise.
6756 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6757 * rtl.c (copy_rtx): RETURN is shared.
6758 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6759 (ret_rtx): New.
6760 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6761 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6762 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6763 * config/cris/cris.c (cris_expand_return): Likewise.
6764 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6765 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6766 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6767 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6768 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6769 Likewise.
6770 * config/v850/v850.c (expand_epilogue): Likewise.
6771 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6772 * config/arm/arm.md (epilogue): Likewise.
6773 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6774 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6775 variable to ret_reg.
6776
9efdb4ad
RG
67772011-05-03 Richard Guenther <rguenther@suse.de>
6778
6779 PR lto/48846
6780 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6781 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6782 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6783
60a45536
RG
67842011-05-03 Richard Guenther <rguenther@suse.de>
6785
6786 * c-decl.c (grokdeclarator): Instead of looking at
6787 TREE_OVERFLOW check if the constant fits in the index type.
6788
3188ed59
RS
67892011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6790
6791 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6792 (vec_store_lanes<mode><mode>): Likewise.
6793
272c6793
RS
67942011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6795
6796 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6797 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6798 convert_optab_index values.
6799 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6800 * genopinit.c (optabs): Initialize the new optabs.
6801 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6802 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6803 (expand_STORE_LANES): New functions.
6804 * tree.h (build_array_type_nelts): Declare.
6805 * tree.c (build_array_type_nelts): New function.
6806 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6807 (vect_model_load_cost): Likewise.
6808 (vect_store_lanes_supported, vect_load_lanes_supported)
6809 (vect_record_strided_load_vectors): Declare.
6810 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6811 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6812 (vect_transform_strided_load): Split out statement recording into...
6813 (vect_record_strided_load_vectors): ...this new function.
6814 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6815 (write_vector_array, create_array_ref): New functions.
6816 (vect_model_store_cost): Add store_lanes_p argument.
6817 (vect_model_load_cost): Add load_lanes_p argument.
6818 (vectorizable_store): Try to use store-lanes functions for
6819 interleaved stores.
6820 (vectorizable_load): Likewise load-lanes and loads.
6821 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6822 to vect_model_store_cost.
6823 (vect_build_slp_tree): Likewise vect_model_load_cost.
6824
0f6d54f7
RS
68252011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6826
6827 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6828 * hooks.c (hook_bool_mode_uhwi_false): New function.
6829 * target.def (array_mode_supported_p): New hook.
6830 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6831 * doc/tm.texi: Regenerate.
6832 * stor-layout.c (mode_for_array): New function.
6833 (layout_type): Use it.
6834 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6835 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6836
b15eacc7
EB
68372011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6838
6839 PR target/48723
6840 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6841 for -fstack-check if the size to allocate is negative.
6842
575bfb00
LC
68432011-05-02 Lawrence Crowl <crowl@google.com>
6844
6845 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6846 (timevar_cond_start): New for starting a timer only when it is not
6847 already running.
6848 (timevar_cond_stop): New for stopping a timer when it was not already
6849 running.
6850
6851 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6852 (timevar_cond_start): New as above.
6853 (timevar_cond_stop): New as above.
6854
6855 * timevar.def: Add start/stop timers for compiler phases,
6856 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6857 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6858 and TV_PHASE_FINALIZE.
6859 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6860 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6861 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6862 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6863 Make unused TV_OVERLOAD into a start/stop timer.
6864
6865 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6866 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6867 to indicate that they are start/stop timers.
6868
6869 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6870 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6871 Move initialization to do_compile.
6872 (do_compile): Add initialization from above.
6873 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6874
6875 * c-decl.c (c_write_global_declarations): Add start/stop of
6876 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6877
6878 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6879 or TV_PARSE_INLINE, as appropriate.
6880 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6881 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6882
3533b943
JM
68832011-05-02 Jason Merrill <jason@redhat.com>
6884
6885 PR c++/40975
6886 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6887
2609a0ce
SM
68882011-05-02 Simon Martin <simartin@users.sourceforge.net>
6889
6890 PR c/35445
6891 * c-decl.c (finish_decl): Only create a composite if the types are
6892 compatible.
6893
6b0e4cbb
JM
68942011-05-02 Joseph Myers <joseph@codesourcery.com>
6895
6896 * config/fr30/fr30-protos.h (Mmode): Don't define.
6897 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6898 definition where used.
6899 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6900 define. Expand definitions where used.
6901 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6902 Expand definitions where used.
6903 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6904 rx_function_arg, rx_function_arg_advance,
6905 rx_function_arg_boundary): Expand definitions of those macros.
6906 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6907 definition where used.
6908
4e938ce6
UB
69092011-05-02 Uros Bizjak <ubizjak@gmail.com>
6910
6911 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6912 reg<->xmm moves.
6913 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6914 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6915 with *movv2sf_internal_rex64_avx.
6916 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6917 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6918 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6919 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6920 "vex" in "prefix" attribute calculation.
6921 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6922
36019c19
SH
69232011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6924
7a2f7208
UB
6925 PR target/47951
6926 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6927 inputs match the output.
36019c19 6928
f69ea688
AS
69292011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6930
6931 PR target/47955
6932 * config/m68k/m68k.c (m68k_expand_prologue): Set
6933 current_function_static_stack_size.
6934
c33406f5
JH
69352011-05-02 Jan Hubicka <jh@suse.cz>
6936
6937 * lto-streamer.c (lto_streamer_cache_insert_1,
6938 lto_streamer_cache_lookup, lto_streamer_cache_create,
6939 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6940 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6941
47c94d21
JM
69422011-05-02 Joseph Myers <joseph@codesourcery.com>
6943
6944 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6945 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6946 config/m68k/t-opts: New files.
6947 * config/m68k/m68k-tables.opt: New file (generated).
6948 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6949 extra_options and m68k/t-opts to tmake_file.
6950 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6951 (all_isas): Initialize using m68k-isas.def.
6952 (all_microarchs): Initialize using m68k-microarchs.def.
6953 (m68k_find_selection): Remove.
6954 (m68k_handle_option): Don't assert that global structures are in
6955 use. Use error_at. Access variables via opts pointer. Don't
6956 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6957 directly for -m68020-40 and -m68020-60.
6958 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6959 m68k_tune_entry here.
6960 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6961 to m68k-opts.h.
6962 (m68k_library_id_string): Remove declaration.
4e938ce6 6963 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
6964 (m68k_library_id_string): New Variable.
6965 (march=, mcpu=, mtune=): Use Enum and Var.
6966
e562bf36
RG
69672011-05-02 Richard Guenther <rguenther@suse.de>
6968
6969 * varasm.c (output_constructor_regular_field): Compute zero-based
6970 index with double-ints. Make sure to ICE instead of producing
6971 wrong code.
6972 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6973 in asserts. Properly use a signed type.
6974
6bec6c98
UB
69752011-05-02 Uros Bizjak <ubizjak@gmail.com>
6976
6977 * config/i386/sse.md (V): New mode iterator.
6978 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6979 TARGET_SSE2.
6980 (V_256): Rename from AVX256MODE.
6981 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6982 condition to all users.
6983 (VF1): Ditto.
6984 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6985 condition to all users.
6986 (VF_128): Make V4SF mode unconditional.
6987 (VF_256): Rename from AVX256MODEF2P.
6988 (VI4F_128): Rename from SSEMODE4S.
6989 (VI8F_128): Rename from SSEMODE2D.
6990 (VI4F_256): Rename from AVX256MODE8P.
6991 (VI8F_256): Rename from AVX256MODE4P.
6992 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6993 (ssescalarmodesuffix): Remove SF and DF modes.
6994 (SSEMODE124): Remove.
6995 (SSEMODE1248): Ditto.
6996 (SSEMODEF2P): Ditto.
6997 (AVXMODEF2P): Ditto.
6998 (AVXMODEFDP): Ditto.
6999 (AVXMODEFSP): Ditto.
7000 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7001 unconditional.
7002 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7003 unconditional.
7004 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7005 xop_pcmov_<mode>256. Use V mode iterator.
7006
7007 Adjust RTX patterns globally for renamed mode attributes.
7008
2dfdcb4b
UW
70092011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7010
7011 * haifa-sched.c (sched_emit_insn): Emit insn before first
7012 non-scheduled insn. Inform back-end about new insn. Add
7013 new insn to scheduled_insns list.
7014
90bc4623
RG
70152011-05-02 Richard Guenther <rguenther@suse.de>
7016
7017 PR tree-optimization/48822
7018 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7019 (process_scc): Indicate which iteration we start.
7020
bc0fe8cb
JH
70212011-05-02 Jan Hubicka <jh@suse.cz>
7022
7023 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7024 (lto_section_overrun): New.
7025 * lto-section-out.c (append_block): Rename to ...
7026 (lto_append_block): ... this one; export.
7027 (lto_output_1_stream): Move lto lto-streamer.h
7028 (lto_output_data_stream): Update.
7029 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7030 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7031 functions.
7032
f070a9d1
RG
70332011-05-02 Richard Guenther <rguenther@suse.de>
7034
7035 * tree.c (tree_code_counts): New global array.
7036 (record_node_allocation_statistics): Count individual tree codes.
7037 (dump_tree_statistics): Dump individual code stats.
7038
09dfe187
JH
70392011-05-01 Jan Hubicka <jh@suse.cz>
7040
7041 * ipa-inline.c (caller_growth_limits): Fix thinko when
7042 looking for largest stack frame.
7043 * ipa-inline.h (dump_inline_summary): Declare.
7044 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7045 on stack usage.
7046 (dump_inline_summary): Export.
7047 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7048
6f76a878
AS
70492011-05-01 Anatoly Sokolov <aesok@post.ru>
7050
7051 * reginfo.c (memory_move_cost): Change rclass argument type form
7052 'enum reg_class' to reg_class_t.
7053 * reload.h (memory_move_cost): Update prototype.
7054 * postreload.c reload_cse_simplify_set): Change type dclass var to
7055 reg_class_t.
7056 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7057 Update prototype.
7058 (ira_allocate_and_set_costs): Change aclass argument type form
7059 'enum reg_class' to reg_class_t.
6bec6c98 7060 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
7061 Change aclass argument type to reg_class_t.
7062 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7063 to reg_class_t.
7064 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7065 memory_move_cost call.
7066
7067 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7068 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7069 Change type tmp var to reg_class_t.
7070
9a4ac625
JH
70712011-04-30 Jan Hubicka <jh@suse.cz>
7072
7073 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7074 inlining into function with flatten attribute.
7075 (want_inline_small_function_p): Be more realistic about inlining
7076 cold calls where callee size grows.
7077
dd8352ee
JH
70782011-04-30 Jan Hubicka <jh@suse.cz>
7079
7080 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7081 flags.
7082
46e43d2b
AS
70832011-04-30 Anatoly Sokolov <aesok@post.ru>
7084
7085 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7086 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7087 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7088 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7089 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7090 (print_operand): Rename to...
7091 (sparc_print_operand): ...this. Make static. Adjust
7092 sparc_print_operand function call.
7093 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7094 functions.
7095
ecb62563
JH
70962011-04-30 Jan Hubicka <jh@suse.cz>
7097
6bec6c98 7098 PR middle-end/48752
ecb62563
JH
7099 * ipa-inline.c (early_inliner): Disable when doing late
7100 addition of function.
7101
edb9b69e
JJ
71022011-04-30 Jakub Jelinek <jakub@redhat.com>
7103
be80a87e
JJ
7104 * dwarf2out.c (get_address_mode): New inline.
7105 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7106 if not dwarf_strict emit
7107 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7108 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7109 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7110 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7111 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7112 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7113 mem_loc_descriptor callers.
7114 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7115 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7116 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7117 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7118 (base_types): New variable.
7119 (get_base_type_offset, calc_base_type_die_sizes,
7120 base_type_for_mode, mark_base_types, base_type_cmp,
7121 move_marked_base_types): New functions.
7122 (calc_die_sizes): Assert that die_offset is 0 or equal to
7123 next_die_offset.
7124 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7125 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7126 callers. If not dwarf_strict, call mem_loc_descriptor even for
7127 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7128 (gen_subprogram_die): Don't give up on call site parameters
7129 with non-integral or large integral modes. Adjust
7130 mem_loc_descriptor callers.
7131 (prune_unused_types): Call prune_unused_types_mark on base_types
7132 vector entries.
7133 (resolve_addr): Call mark_base_types.
7134 (dwarf2out_finish): Call move_marked_base_types.
7135
edb9b69e
JJ
7136 PR tree-optimization/48809
7137 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7138 type.
7139 (gen_inbound_check): Don't compute index_expr - range_min in utype
7140 again, instead reuse SSA_NAME initialized in build_arrays.
7141 Remove two useless gsi_for_stmt calls.
7142
a6545a3d
JL
71432011-04-29 Jeff Law <law@redhat.com>
7144
7145 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7146
af8bca3c
MJ
71472011-04-29 Martin Jambor <mjambor@suse.cz>
7148
7149 * cgraph.h (cgraph_postorder): Remove declaration.
7150 * ipa-utils.h (ipa_free_postorder_info): Declare.
7151 (ipa_reverse_postorder): Likewise.
7152 * cgraphunit.c: Include ipa-utils.h.
7153 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7154 * ipa-inline.c: Include ipa-utils.h.
7155 (ipa_inline): Update call to ipa_reverse_postorder.
7156 * ipa-pure-const.c (propagate_pure_const): Update call to
7157 ipa_reduced_postorder and ipa_print_order. Call
7158 ipa_free_postorder_info to clean up.
7159 (propagate_nothrow): Likewise.
7160 * ipa-reference.c (propagate): Removed a useless call to
7161 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7162 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7163 * ipa.c: Include ipa-utils.h.
7164 (ipa_profile): Update call to ipa_reverse_postorder.
7165 (cgraph_postorder): Moved to...
7166 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7167 (ipa_utils_print_order): Renamed to ipa_print_order.
7168 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7169 comments.
7170 (ipa_free_postorder_info): New function.
7171 * passes.c: Include ipa-utils.h.
7172 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7173 (ipa_write_summaries): Likewise.
7174 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7175 (cgraphunit.o): Likewise.
7176 (ipa.o): Likewise.
7177 (ipa-inline.o): Likewise.
7178
b15c64ee
JH
71792011-04-29 Jan Hubicka <jh@suse.cz>
7180
7181 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7182 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7183 * ipa-inline.h (clause_t): Turn into unsigned int.
7184 * ipa-inline-analysis.c (add_clause): Do more simplification.
7185 (and_predicates): Shortcut more cases.
7186 (predicates_equal_p): Move forward; check that clauses are properly
7187 ordered.
7188 (or_predicates): Shortcut more cases.
7189 (edge_execution_predicate): Rewrite as...
7190 (set_cond_stmt_execution_predicate): ... this function; handle
7191 __builtin_constant_p.
7192 (set_switch_stmt_execution_predicate): New .
7193 (compute_bb_predicates): New.
7194 (will_be_nonconstant_predicate): Update TODO.
7195 (estimate_function_body_sizes): Use compute_bb_predicates
7196 and free them later, always try to estimate if stmt is constant.
7197 (estimate_time_after_inlining, estimate_size_after_inlining):
7198 Gracefully handle optimized out edges.
7199 (read_predicate): Fix off by one error.
7200
a88fdc2a
NP
72012011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7202
7203 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7204
d984c8ef
XDL
72052011-04-27 Xinliang David Li <davidxl@google.com>
7206
7207 * tree-profile.c (init_ic_make_global_vars): Set
7208 tls attribute on ic vars.
7209 * coverage.c (coverage_end_function): Initialize
7210 function_list with zero.
7211
45a2c477
RG
72122011-04-29 Richard Guenther <rguenther@suse.de>
7213
7214 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7215 for the type of the result.
7216 (fold_builtin_isascii): Likewise.
7217 (fold_builtin_toascii): Use integer_type_node where appropriate.
7218 (fold_builtin_logb): Likewise.
7219 (fold_builtin_frexp): Likewise.
7220 (fold_builtin_strstr): Likewise.
7221 (fold_builtin_strpbrk): Likewise.
7222 (fold_builtin_fputs): Likewise.
7223 (fold_builtin_sprintf): Likewise.
7224 (fold_builtin_snprintf): Likewise.
7225 (fold_builtin_printf): Likewise.
7226 (do_mpfr_remquo): Use a proper type for the assigned constant.
7227 (do_mpfr_lgamma_r): Likewise.
7228 * dwarf2out.c (resolve_one_addr): Use size_int.
7229 * except.c (init_eh): Likewise.
7230 (assign_filter_values): Use integer_type_node for filter values.
7231 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7232 indices.
7233 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7234 for EH region numbers.
7235 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7236 for the shift amount.
7237
eb6c3df1
RG
72382011-04-29 Richard Guenther <rguenther@suse.de>
7239
7240 * expr.h (expand_shift): Rename to ...
7241 (expand_variable_shift): ... this.
7242 (expand_shift): Take a constant shift amount.
7243 * expmed.c (expand_shift): Rename to ...
7244 (expand_variable_shift): ... this.
7245 (expand_shift): New wrapper around expand_variable_shift.
7246 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7247 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7248 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7249 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7250 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7251 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7252 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7253 emit_store_flag_1, emit_store_flag): Likewise.
7254 * builtins.c (expand_builtin_signbit): Likewise.
7255 * calls.c (load_register_parameters): Likewise.
7256 * function.c (assign_parm_setup_block): Likewise.
7257 * lower-subreg.c (resolve_shift_zext): Likewise.
7258 * optabs.c (widen_bswap, expand_abs_nojump,
7259 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7260 * spu/spu.c (spu_expand_extv): Likewise.
7261 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7262
9f616812
RG
72632011-04-29 Richard Guenther <rguenther@suse.de>
7264
7265 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7266 for the remapped region number.
7267 * predict.c (build_predict_expr): Use integer_type_node for the
7268 predict kind.
7269 * fold-const.c (fold_binary_loc): Use integer_type_node for
7270 the shift amount. Use a proper type for the PLUS_EXPR operand.
7271
b823cdfe
MM
72722011-04-29 Michael Matz <matz@suse.de>
7273
7274 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7275 other trees that just builtins.
7276 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7277
413581ba
RG
72782011-04-29 Richard Guenther <rguenther@suse.de>
7279
7280 * tree-nested.c (get_trampoline_type): Use size_int.
7281 (get_nl_goto_field): Likewise.
7282 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7283 for all indexes.
7284 (lower_eh_constructs_2): Likewise.
7285 (lower_resx): Likewise.
7286 (lower_eh_dispatch): Likewise.
7287 * tree-mudflap.c (mf_build_string): Use size_int.
7288 (mudflap_register_call): Use integer_type_node for the flag.
7289 (mudflap_enqueue_constant): Use size_int.
7290 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7291 instead of rebuilding it.
7292
5c04e9f4
RG
72932011-04-29 Richard Guenther <rguenther@suse.de>
7294
7295 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7296 Handle OBJ_TYPE_REF.
7297 (find_func_aliases_for_call): Use it more consistently.
7298
5c24671b
AO
72992011-04-29 Alexandre Oliva <aoliva@redhat.com>
7300
7301 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7302 (rank_for_schedule): Use it.
7303 (schedule_block): Set it.
7304
10adac51
XDL
73052011-04-28 David Li <davidxl@google.com>
7306
7307 * tree.c (crc32_string): Use crc32_byte.
7308 (crc32_byte): New function.
7309 * tree.h (crc32_byte): New function.
7310 * gcov.c (read_graph_file): Handle new cfg_cksum.
7311 (read_count_file): Ditto.
7312 * profile.c (instrument_values): Ditto.
7313 (get_exec_counts): Ditto.
7314 (read_profile_edge_counts): Ditto.
7315 (compute_branch_probabilities): Ditto.
7316 (compute_value_histograms): Ditto.
7317 (branch_prob): Ditto.
7318 (end_branch_prob): Ditto.
7319 * coverage.c (read_counts_file): Ditto.
7320 (get_coverage_counts): Ditto.
7321 (tree_coverage_counter_addr): Ditto.
7322 (coverage_checksum_string): Ditto.
7323 (coverage_begin_output): Ditto.
7324 (coverage_end_function): Ditto.
7325 (build_fn_info_type): Ditto.
7326 (build_fn_info_value): Ditto.
7327 * libgcov.c (gcov_exit): Ditto.
7328 * gcov-dump.c (tag_function): Ditto.
7329 (compute_checksum): Remove.
7330
5d6358a5
AM
73312011-04-29 Alan Modra <amodra@gmail.com>
7332
7333 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7334 unspec plus offset. Tidy macho code.
7335
85ad2ef5
MJ
73362011-04-29 Martin Jambor <mjambor@suse.cz>
7337
7338 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7339 node instead of a decl. Update all callers.
7340 * cgraph.h: Update declaration.
7341
437f4a00
IR
73422011-04-28 Ira Rosen <ira.rosen@linaro.org>
7343
7344 PR tree-optimization/48765
7345 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7346 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7347 to indicate if loop aware SLP is being used. Scan the statements
7348 and update the vectorization factor according to the type of
7349 vectorization before statement analysis.
7350 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7351 pass it to vect_analyze_loop_operations.
7352 (vectorizable_reduction): Set number of copies to 1 in case of pure
7353 SLP statement.
7354 * tree-vect-stmts.c (vectorizable_conversion,
7355 vectorizable_assignment, vectorizable_shift,
7356 vectorizable_operation, vectorizable_type_demotion,
7357 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7358 Likewise.
7359 (vectorizable_condition): Move the check that it is not SLP
7360 vectorization before the number of copies check.
7361 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7362 to vectorize the loop using SLP.
7363
c6fc44f3
JJ
73642011-04-28 Jakub Jelinek <jakub@redhat.com>
7365
7366 PR middle-end/48597
7367 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7368 inline asm.
7369
6c0170ea
JM
73702011-04-28 Joseph Myers <joseph@codesourcery.com>
7371
7372 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7373 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7374 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7375 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7376 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7377 linux*.h headers.
6bec6c98 7378 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
7379 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7380 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7381 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 7382 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
7383 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7384 REG_NAME.
7385 * config/i386/linux.h (REG_NAME): Don't define.
7386 * config/i386/linux64.h (REG_NAME): Don't define.
7387 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7388 Undefine before defining.
7389
970dabbd
JH
73902011-04-28 Jan Hubicka <jh@suse.cz>
7391
6bec6c98
UB
7392 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7393 nonconstant_names array.
970dabbd
JH
7394 (estimate_function_body_sizes): Build nonconstant_names array; handle
7395 BUILT_IN_CONSTANT_P.
7396
8d3e3924
RG
73972011-04-28 Richard Guenther <rguenther@suse.de>
7398
7399 PR bootstrap/48804
7400 Revert
7401 2011-04-28 Richard Guenther <rguenther@suse.de>
7402
7403 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7404 as late as possible.
6bec6c98 7405
8576f20a
RG
74062011-04-28 Richard Guenther <rguenther@suse.de>
7407
7408 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7409 (debug_constraint): Do it here.
7410 (dump_constraints): And here.
7411 (rewrite_constraints): And here.
7412 (dump_constraint_edge): Remove.
7413 (dump_constraint_graph): Rewrite to produce DOT output.
7414 (solve_constraints): Build succ graph as late as possible.
7415 Dump constraint graphs before and after solving.
7416
e38811ce
RG
74172011-04-28 Richard Guenther <rguenther@suse.de>
7418
7419 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7420 New function split out from ...
7421 (find_func_aliases): ... here. Call it.
7422 (find_func_aliases_for_call): Likewise.
7423
fbaf0d0c
GDR
74242011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7425
7426 * internal-fn.h (internal_fn_name_array): Declare.
7427 (internal_fn_flags_array): Likewise.
7428
cbb734aa
UB
74292011-04-27 Uros Bizjak <ubizjak@gmail.com>
7430
7431 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7432 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7433 Move from sse.md.
7434 (ssemodefsuffix): Remove.
7435 (ssevecmodesuffix): New mode attribute.
7436 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7437 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7438 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7439 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7440 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7441 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7442 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7443 ssemodesuffix mode attribute.
7444 (float splitters): Use ssevecmodesuffix mode attribute.
7445 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7446 (sseinsmode): Rename from avxvecmode.
7447 (avxsizesuffix): Rename from avxmodesuffix.
7448 (sseintvecmode): Rename from avxpermvecmode.
7449 (ssedoublevecmode): Rename from ssedoublesizemode.
7450 (ssehalfvecmode): Rename from avxhalfvecmode.
7451 (ssescalarmode): Rename from avxscalarmode.
7452 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7453 templates for ssemodesuffix mode attribute.
7454 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7455 mode attribute.
7456
7457 Adjust RTX patterns globally for renamed mode attributes.
7458
991278ab
JH
74592011-04-27 Jan Hubcika <jh@suse.cz>
7460
7461 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7462 * ipa-inline-analysis.c: Include alloc-pool.h.
7463 (edge_predicate_pool): New.
7464 (trye_predicate_p): New function
7465 (false_predicate_p): New function.
7466 (add_clause): Sanity check that false clauses are "optimized";
7467 never add clauses to predicate that is already known to be false.
7468 (and_predicate): Use flase_predicate_p.
7469 (evaulate_predicate): Rename to ...
7470 (evaluate_predicate): ... this one; update all callers; assert
7471 that false is not listed among possible truths.
7472 (dump_predicate): Use true_predicate_p.
7473 (account_size_time): Use false_predicate_p.
7474 (evaulate_conditions_for_edge): Rename to ...
7475 (evaluate_conditions_for_edge) ... this one.
7476 (edge_set_predicate): New function.
7477 (inline_edge_duplication_hook): Duplicate edge predicates.
7478 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 7479 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
7480 (dump_inline_summary): Update.
7481 (estimate_function_body_sizes): Set edge predicates.
7482 (estimate_calls_size_and_time): Handle predicates.
7483 (estimate_callee_size_and_time): Update.
7484 (remap_predicate): Add toplev_predicate; update comment.
7485 (remap_edge_predicates): New function.
7486 (inline_merge_summary): Compute toplev predicate; update.
7487 (read_predicate): New function.
7488 (read_inline_edge_summary): Use it.
7489 (inline_read_section): Likewise.
7490 (write_predicate): New function.
7491 (write_inline_edge_summary): Use it.
7492 (inline_write_summary): Likewise.
7493 (inline_free_summary): Free alloc pool and edge summary vec.
7494
648b5f85
RG
74952011-04-27 Richard Guenther <rguenther@suse.de>
7496
7497 * tree-ssa-structalias.c (changed_count): Remove.
7498 (changed): Use a bitmap.
7499 (unify_nodes): Adjust.
7500 (do_sd_constraint): Likewise.
7501 (do_ds_constraint): Likewise.
7502 (do_complex_constraint): Likewise.
7503 (solve_graph): Likewise.
7504
4d5dcfb2
JH
75052011-04-27 Jan Hubicka <jh@suse.cz>
7506
7507 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7508
200eb7d2
UB
75092011-04-27 Uros Bizjak <ubizjak@gmail.com>
7510
7511 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7512 (avx_vperm2f128_*_operand): Ditto.
7513 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7514 Use avx_vpermilp_parallel in insn condition.
7515 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7516 Use avx_vperm2f128_parallel in insn condition.
7517
7d6e2521
RG
75182011-04-27 Richard Guenther <rguenther@suse.de>
7519
7520 * Makefile.in (tree-ssa-structalias.o): Remove
7521 gt-tree-ssa-structalias.h dependency.
7522 (GTFILES): Remove tree-ssa-structalias.c.
7523 * tree.c (allocate_decl_uid): New function.
7524 (make_node_stat): Use it.
7525 (copy_node_stat): Likewise.
7526 * tree.h (allocate_decl_uid): Declare.
7527 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7528 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7529 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 7530 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
7531 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7532 (struct heapvar_map): Likewise.
7533 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7534 heapvar_insert): Likewise.
7535 (make_heapvar_for): Rename to ...
7536 (make_heapvar): ... this. Simplify.
7537 (fake_var_decl_obstack): New global var.
7538 (build_fake_var_decl): New function.
7539 (make_constraint_from_heapvar): Adjust.
7540 (handle_lhs_call): Likewise.
7541 (create_function_info_for): Likewise.
7542 (intra_create_variable_infos): Likewise.
7543 (init_alias_vars): Allocate fake_var_decl_obstack.
7544 (init_alias_heapvars, delete_alias_heapvars): Remove.
7545 (compute_points_to_sets): Do not call init_alias_heapvars.
7546 (ipa_pta_execute): Likewise.
7547 (delete_points_to_sets): Free fake_var_decl_obstack.
7548
526ed6c2
UW
75492011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7550
7551 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7552 (si_from_UTItype, si_to_UTItype): New functions.
7553 (__udivmodti4): Use them to implement type-punning.
7554 * config/spu/multi3.c (union qword_TItype): New data type.
7555 (si_from_TItype, si_to_TItype): New functions.
7556 (__multi3): Use them to implement type-punning.
7557
c187d33c
UW
75582011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7559
7560 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7561
40982661
JH
75622011-04-27 Jan Hubicka <jh@suse.cz>
7563
7564 * ipa-prop.c (function_insertion_hook_holder): New holder.
7565 (ipa_add_new_function): New function.
200eb7d2
UB
7566 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7567 Register/deregister holder.
40982661 7568
9aef53ee
RG
75692011-04-27 Richard Guenther <rguenther@suse.de>
7570
7571 PR tree-optimization/48772
200eb7d2 7572 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 7573
f63d806d
RG
75742011-04-27 Richard Guenther <rguenther@suse.de>
7575
7576 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7577 TARGET_MEM_REF handling.
7578
e1ea7451
NC
75792011-04-27 Nick Clifton <nickc@redhat.com>
7580
9b5db25d
NC
7581 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7582 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7583 (REG_CLASS_NAMES): Likewise.
7584 (REG_CLASS_CONTENTS): Likewise.
7585 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7586 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7587 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7588 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7589 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7590 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7591 duplicate register classes.
97d20907 7592 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
7593 (frv_register_move_cost): Likewise.
7594
e1ea7451
NC
7595 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7596 end of the regno_reg_class array.
7597
5c2f94b4
JJ
75982011-04-27 Jakub Jelinek <jakub@redhat.com>
7599
7600 PR c/48742
7601 * c-typeck.c (build_binary_op): Don't wrap arguments if
7602 int_operands is true.
7603
57a944d7
KK
76042011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7605
7606 PR target/48767
7607 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7608 targetm.calls.must_pass_in_stack for void type.
7609
898b8927
JH
76102011-04-26 Jan Hubicka <jh@suse.cz>
7611
7612 * cgraphbuild.c (build_cgraph_edges): Update call
7613 of cgraph_create_edge and cgraph_create_indirect_edge.
7614 * cgraph.c (cgraph_create_edge_including_clones,
7615 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7616 cgraph_update_edges_for_call_stmt_node): Do not take nest
7617 argument; do not initialize call_stmt_size/time.
7618 (dump_cgraph_node): Do not dump nest.
7619 (cgraph_clone_edge): Do not take loop_nest argument;
7620 do not propagate it; do not clone call_stmt_size/time.
7621 (cgraph_clone_node): Likewise.
7622 (cgraph_create_virtual_clone): Update.
7623 * cgraph.h (struct cgraph_edge): Remove
7624 call_stmt_size/call_stmt_time/loop_nest.
7625 (cgraph_create_edge, cgraph_create_indirect_edge,
7626 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7627 prototype.
7628 * tree-emutls.c (gen_emutls_addr): Update.
7629 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7630 loop_nest; handle indirect calls, too.
7631 (clone_inlined_nodes): Do not care about updating inline summaries.
7632 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7633 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7634 stream call_stmt_size/call_stmt_time/loop_nest.
7635 * ipa-inline.c (edge_badness): Update.
7636 (ipa_inline): dump summaries after inlining.
7637 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 7638 New.
898b8927
JH
7639 (inline_edge_summary): New function.
7640 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7641 (inline_edge_removal_hook): Handle edge summaries.
7642 (inline_edge_duplication_hook): New hook.
7643 (inline_summary_alloc): Alloc hooks.
7644 (initialize_growth_caches): Do not register removal hooks.
7645 (free_growth_caches); Do not free removal hook.
7646 (dump_inline_edge_summary): New function.
7647 (dump_inline_summary): Use it.
7648 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7649 (inline_update_callee_summaries): New function.
7650 (inline_merge_summary): Use it.
7651 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7652 (read_inline_edge_summary): New function.
7653 (inline_read_section): Use it.
7654 (write_inline_edge_summary): New function.
7655 (inline_write_summary): Use it.
7656 (inline_free_summary): Free edge new holders.
7657 * tree-inline.c (copy_bb): Update.
7658
ffa03772
JM
76592011-04-26 Jason Merrill <jason@redhat.com>
7660
7661 * tree-eh.c (lower_try_finally_switch): Create the label along with
7662 the CASE_LABEL_EXPR.
7663
6d7b45ad
DM
76642011-04-26 David S. Miller <davem@davemloft.net>
7665 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7666
7667 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7668 * configure: Regenerate.
7669
df10b6d4
MM
76702011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7671
7672 PR target/48258
7673 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7674 reduction.
7675 (VEC_reduc): New code iterator and splitters for vector reduction.
7676 (VEC_reduc_name): Ditto.
7677 (VEC_reduc_rtx): Ditto.
7678 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7679 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7680
7681 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7682 support for extracting SF on VSX.
7683
7684 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7685 generating xscvspdp.
7686 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7687 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7688 double add, minimum, maximum vector reduction.
7689 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7690 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7691 optimize double vector reduction.
7692 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7693
35a5db04
JM
76942011-04-26 Joseph Myers <joseph@codesourcery.com>
7695
7696 * config/fr30/fr30.h (inhibit_libc): Don't define.
7697 * config/m32r/m32r-protos.h: Correct comment.
7698 * config/v850/v850.h (GHS_default_section_names,
7699 GHS_current_section_names): Use tree, not union tree_node *.
7700
2f964ad6
XDL
77012011-04-26 Xinliang David Li <davidxl@google.com>
7702
200eb7d2 7703 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
7704 * c-family/c-opts.c (c_common_handle_option): Set
7705 warn_maybe_uninitialized.
7706 * opts.c (common_handle_option): Ditto.
7707 * common.opt: New option.
7708 * tree-ssa.c (warn_uninit): Add one more parameter.
7709 (warn_uninitialized_var): Pass warning code.
7710 * tree-flow.h: Interface change.
7711
9c7bd91a
RO
77122011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7713
200eb7d2 7714 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
7715 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7716 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7717
c2f36e21
RO
77182011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7719
7720 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7721 * config/mips/mips.opt (mmips-tfile): Remove.
7722
7723 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7724 mips-tdump reference to ...
200eb7d2 7725 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
7726 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7727 reference by Tru64 UNIX.
7728
2c9da85b
JJ
77292011-04-26 Jakub Jelinek <jakub@redhat.com>
7730
0c5f6539
JJ
7731 PR debug/48768
7732 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7733 is error_mark_node, set value to NULL.
7734
2c9da85b
JJ
7735 PR tree-optimization/48734
7736 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7737 if return value from maybe_fold_*_comparsions isn't something
7738 the code is prepared to handle.
7739
77fa1d54
UB
77402011-04-26 Uros Bizjak <ubizjak@gmail.com>
7741
7742 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7743 mode check.
7744 (ext_QIreg_nomode_operands): Remove.
7745 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7746 (*andsi_1): Ditto.
7747 (*andhi_1): Ditto.
7748
0e2a6c2b
AS
77492011-04-26 Andrew Stubbs <ams@codesourcery.com>
7750
7751 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7752
961562d8
RB
77532011-04-26 Richard Guenther <rguenther@suse.de>
7754
7755 * c-typeck.c (build_unary_op): Do not expand array-refs via
7756 pointer arithmetic. Only adjust qualifiers for function types.
7757
77582011-04-26 Richard Guenther <rguenther@suse.de>
7759
7760 PR middle-end/48694
7761 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7762 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
7763 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7764 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 7765
a0d260fc
PC
77662011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7767
6bec6c98 7768 * doc/extend.texi: Document __underlying_type.
a0d260fc 7769
4d583bb9
SB
77702011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7771
7772 * config/rs6000/titan.md (automata_option "progress"): Remove.
7773
1f3fcdc3
JL
77742011-04-25 Jeff Law <law@redhat.com>
7775
7776 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7777
e5b0dad8
JK
77782011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 * system.h (ENUM_BITFIELD): Remove.
7781
5157a881 77822011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 7783 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
7784
7785 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7786 for STORE_FLAG_VALUE==-1 case.
7787
ed4c109e
RS
77882011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7789
7790 PR target/43804
7791 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7792 LEGITIMATE_PIC_OPERAND_P.
7793
f3181aa2
JH
77942011-04-24 Jan Hubicka <jh@suse.cz>
7795
7796 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7797 WPA hack.
77fa1d54
UB
7798 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7799 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7800 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
7801 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7802 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7803 Sanity check predicate length.
7804 (remap_predicate): Likewise; sanity check jump functions.
7805 (inline_read_section, inline_write_summary): Sanity check
7806 predicate length.
7807
5307cbaa
PC
78082011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7809
7810 PR other/48748
7811 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7812 __is_literal_type, and __is_trivial; update throughout about
7813 possibly cv-qualified void types.
7814
bebd5f99
GP
78152011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7816
7817 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7818 testsuite and make it version agnostic.
7819
7ee28a74
JH
78202011-04-22 Jan Hubicka <jh@suse.cz>
7821
7822 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7823
16997bc0
JJ
78242011-04-23 Jakub Jelinek <jakub@redhat.com>
7825
7826 PR c/48685
7827 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7828 to VOID_TYPE even around MODIFY_EXPR.
7829
f94d4ab1
MS
78302011-04-22 Mike Stump <mikestump@comcast.net>
7831
1a84c183 7832 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
7833 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7834 comment.
7835
632b4f8e
JH
78362011-04-22 Jan Hubicka <jh@suse.cz>
7837
7838 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
7839 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7840 ipa-prop.c; update all uses.
632b4f8e 7841 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
7842 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7843 merge summary of inlined function into former caller.
632b4f8e
JH
7844 * ipa-inline.c (max_benefit): Remove.
7845 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
7846 (update_caller_keys): Use
7847 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
7848 (update_callee_keys): Likewise.
7849 (update_all_callee_keys): Likewise.
77fa1d54
UB
7850 (inline_small_functions): Do not collect max_benefit; do not reset
7851 estimated_growth; call free_growth_caches and initialize_growth_caches.
7852 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7853 struct size_time_entry): New structures.
632b4f8e 7854 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
7855 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7856 and estimated_growth.
632b4f8e
JH
7857 (edge_growth_cache_entry): New structure.
7858 (node_growth_cache, edge_growth_cache): New global vars.
7859 (estimate_growth): Turn into inline.
7860 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7861 initialize_growth_caches, free_growth_caches): Declare.
7862 (estimate_edge_growth): Rewrite.
7863 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
7864 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7865 functions.
632b4f8e
JH
7866 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7867 (NUM_CONDITIONS): New constant.
7868 (predicate_conditions): New enum.
7869 (IS_NOT_CONSTANT): New constant.
7870 (edge_removal_hook_holder): New var.
7871 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
7872 (true_predicate, single_cond_predicate, false_predicate,
7873 not_inlined_predicate, add_condition, add_clause, and_predicates,
7874 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7875 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
7876 evaulate_conditions_for_edge): New functions.
7877 (inline_summary_alloc): Move to heap.
7878 (inline_node_removal_hook): Clear condition and entry vectors.
7879 (inline_edge_removal_hook): New function.
7880 (initialize_growth_caches, free_growth_caches): New function.
7881 (dump_inline_summary): Update.
7882 (edge_execution_predicate): New function.
7883 (will_be_nonconstant_predicate): New function.
7884 (estimate_function_body_sizes): Compute BB and constantness predicates.
7885 (compute_inline_parameters): Do not clear estimated_growth.
7886 (estimate_edge_size_and_time): New function.
7887 (estimate_calls_size_and_time): New function.
7888 (estimate_callee_size_and_time): New function.
7889 (remap_predicate): New function.
7890 (inline_merge_summary): New function.
7891 (do_estimate_edge_time): New function based on...
7892 (estimate_edge_time): ... this one.
7893 (do_estimate_edge_growth): New function.
7894 (do_estimate_growth): New function based on....
7895 (estimate_growth): ... this one.
7896 (inline_analyze_function): Analyze after deciding on jump functions.
7897 (inline_read_section): New function.
7898 (inline_read_summary): Use it.
7899 (inline_write_summary): Write all the new data.
7900 * ipa-prop.c (ipa_get_param_decl_index): Export.
7901 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
7902 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7903 Declare.
7904 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
7905 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7906 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7907 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7908 cgraph_edge_inlinable_p): Remove.
7909 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
7910 (cgraph_process_new_functions): Update call of
7911 compute_inline_parameters.
632b4f8e 7912
1df5b0db
RG
79132011-04-22 Richard Guenther <rguenther@suse.de>
7914
7915 * tree.c (build_int_cst): Properly create canonicalized integer
7916 constants.
7917 (build_int_cst_type): Remove scary comments.
7918
ae01169c
XDL
79192011-04-22 Xinliang David Li <davidxl@google.com>
7920
7921 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7922 by default when -Wno-error is not specified.
7923 * opts-global.c (decode_options): Remove call to
7924 control_warning_options.
7925
93dfac24
JJ
79262011-04-22 Jakub Jelinek <jakub@redhat.com>
7927
7928 PR tree-optimization/48717
7929 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7930 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7931
1b5f5069
JM
79322011-04-22 Joseph Myers <joseph@codesourcery.com>
7933
7934 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7935 definition where used.
7936
144f4153
JJ
79372011-04-22 Jakub Jelinek <jakub@redhat.com>
7938
7939 PR c/48716
7940 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7941 TREE_STATIC variables declared inside of some OpenMP construct.
7942
f9fd305b
MJ
79432011-04-22 Martin Jambor <mjambor@suse.cz>
7944
7945 PR middle-end/48585
1d284ec5 7946 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 7947
49819fef
AM
79482011-04-22 Alexander Monakov <amonakov@ispras.ru>
7949
7950 PR c/36750
7951 * c-typeck.c (pop_init_level): Do not warn about initializing
7952 with ` = {0}'.
7953
401f6699
AM
79542011-04-22 Alan Modra <amodra@gmail.com>
7955
7956 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7957 when returning call_cookie.
7958 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7959 pointers, to functions with no more vector args than the current
7960 function, and some non-local calls for ABI_V4.
7961 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7962 sibcall_nonlocal_aix64): Combine to ..
7963 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7964 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7965 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7966 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7967 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7968 operand.
7969 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7970 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7971 sibcall_value_symbolic_64): Delete.
7972
903d1e67
XDL
79732011-04-21 Xinliang David Li <davidxl@google.com>
7974
7975 * cgraph.h: Remove pid.
7976 * cgraph.c: Remove pid.
7977 * value-prof.c (init_node_map): New function.
7978 (del_node_map): New function.
7979 (find_func_by_funcdef_no): New function.
7980 (gimple_ic_transform): Call new function.
7981 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7982 * function.c (get_last_funcdef_no): New function.
7983 * function.h (get_last_funcdef_no): New function.
7984 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7985 to libgcov function.
7986 (tree-profiling): Call node map init and delete function.
7987
7378e95f
ILT
79882011-04-21 Ian Lance Taylor <iant@google.com>
7989
7990 * godump.c (go_format_type): Use exported Go name for anonymous
7991 field name.
7992
e84a6fcf
NF
79932011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7994
7995 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7996 Call builtin_function_type_list instead of builtin_function_type.
7997 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7998
4fe058e2
NF
79992011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8000
8001 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8002 build_function_type_list instead of build_function_type.
8003 Delete variable `endlink'.
8004
1ba0a2d2
NF
80052011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8006
8007 * config/s390/s390.c (s390_init_builtins): Call
8008 build_function_type_list instead of build_function_type.
8009
c0676219
NF
80102011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8011
8012 * config/ia64/ia64.c (ia64_init_builtins): Call
8013 build_function_type_list instead of builtin_function_type.
8014
6ddfda8a
ER
80152011-04-21 Easwaran Raman <eraman@google.com>
8016
3a6448ea 8017 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
8018 (add_stack_var): ...and its reference here...
8019 (expand_stack_vars): ...and here.
8020 (stack_var_cmp): Sort by descending order of size.
8021 (partition_stack_vars): Change heuristic.
1d284ec5 8022 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
8023 (dump_stack_var_partition): Add newline after each partition.
8024
23756963
DA
80252011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8026 Jeff Law <law@redhat.com>
8027
77fa1d54 8028 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
8029 * gengtype.c (matching_file_name_substitute): Likewise.
8030
aa2a43d2
RG
80312011-04-21 Richard Guenther <rguenther@suse.de>
8032
8033 PR lto/48703
1d284ec5 8034 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 8035
4d931f41
EB
80362011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8037
8038 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8039
f103fa7a
RG
80402011-04-21 Richard Guenther <rguenther@suse.de>
8041
8042 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8043 file name.
8044
e19f6650
RG
80452011-04-21 Richard Guenther <rguenther@suse.de>
8046
8047 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8048 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8049 Use DECL_P, not SSA_VAR_P.
8050 (ptr_derefs_may_alias_p): Likewise.
8051 (ptr_deref_may_alias_ref_p_1): Likewise.
8052 (decl_refs_may_alias_p): Likewise.
8053 (refs_may_alias_p_1): Likewise.
8054 (ref_maybe_used_by_call_p_1): Likewise.
8055 (call_may_clobber_ref_p_1): Likewise.
8056 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8057 are either MEM_REF or TARGET_MEM_REF.
8058 (indirect_refs_may_alias_p): Likewise.
8059 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8060 for MEM_EXPR of indirect calls.
8061
9d1831bb
TG
80622011-04-21 Tristan Gingold <gingold@adacore.com>
8063
8064 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8065 (dst_file_info_struct): Remove flen field.
8066 (lookup_filename): Remove code that set flen field.
8067
f199c029
TG
80682011-04-21 Tristan Gingold <gingold@adacore.com>
8069
8070 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8071
2894086e
UB
80722011-04-21 Uros Bizjak <ubizjak@gmail.com>
8073
8074 PR target/48708
8075 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8076 vec_extract and vec_concat for non-SSE4_1 targets.
8077
53f94a5c
RG
80782011-04-21 Richard Guenther <rguenther@suse.de>
8079
8080 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8081 return statements.
8082
f0dca5ba
JM
80832011-04-21 Joseph Myers <joseph@codesourcery.com>
8084
8085 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8086 undefine.
8087 (FILE): Don't undefine.
8088
984514ac
JM
80892011-04-21 Joseph Myers <joseph@codesourcery.com>
8090
8091 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8092 struct rtx_def *.
8093 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8094 struct rtx_def *.
8095 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 8096 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
8097 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8098 rtx_def *.
8099 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8100 definitions where used.
8101 * config/microblaze/microblaze.h (struct microblaze_args): Use
8102 rtx, not struct rtx_def *.
8103 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8104 rtx_def *.
2894086e
UB
8105 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8106 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
8107 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8108 not struct rtx_def *.
8109 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8110 struct rtx_def *.
8111 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8112 rtx_def *.
2894086e 8113 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 8114
0b5a2724
RS
81152011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8116
8117 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8118 operand_equal_p to compare DR_BASE_ADDRESSes.
8119 (vect_check_interleaving): Likewise.
8120
4b18d683
RS
81212011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8122
8123 PR target/46329
8124 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8125 for all Neon struct constants.
8126
1a627b35
RS
81272011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8128
8129 * target.def (legitimate_constant_p): New hook.
8130 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8131 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8132 * doc/tm.texi: Regenerate.
8133 * hooks.h (hook_bool_mode_rtx_true): Declare.
8134 * hooks.c (hook_bool_mode_rtx_true): Define.
8135 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8136 * calls.c (precompute_register_parameters): Replace uses of
8137 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8138 (emit_library_call_value_1): Likewise.
8139 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8140 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8141 * ira-costs.c (scan_one_insn): Likewise.
8142 * recog.c (general_operand, immediate_operand): Likewise.
8143 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8144 * reload1.c (init_eliminable_invariants): Likewise.
8145
8146 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8147 mode argument.
8148 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8149 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8150 argument.
8151 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8152 * config/alpha/predicates.md (input_operand): Update call to
8153 alpha_legitimate_constant_p.
8154
8155 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8156 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8157 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8158 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8159 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8160 (arm_legitimate_constant_p): New functions.
8161 (arm_cannot_force_const_mem): Make static.
8162
8163 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8164
8165 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8166 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8167 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8168 instead of bfin_legitimate_constant_p.
8169 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8170 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8171
8172 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8173
8174 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8175
8176 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8177 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8178 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8179 (frv_legitimate_constant_p): Make static. Add a mode argument.
8180
8181 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8182 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8183 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8184
8185 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8186 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8187 * config/i386/i386.c (legitimate_constant_p): Rename to...
8188 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8189 argument.
8190 (ix86_cannot_force_const_mem): Update accordingly.
8191 (ix86_legitimate_address_p): Likewise.
8192 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8193 * config/i386/i386.md: Update commentary.
8194
8195 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8196 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8197 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8198 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8199
8200 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8201
8202 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8203 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8204 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8205 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8206
8207 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8208 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8209 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8210
8211 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8212 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8213 (m32r_legitimate_constant_p): New function.
8214
8215 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8216 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8217 LEGITIMATE_CONSTANT_P.
8218 (LEGITIMATE_CONSTANT_P): Delete.
8219 * config/m68k/m68k.c (m68k_expand_prologue): Call
8220 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8221 (m68k_legitimate_constant_p): New function.
8222 * config/m68k/m68k.md: Update comments.
8223
8224 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8225 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8226 (mcore_legitimate_constant_p): New function.
8227
8228 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8229 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8230 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8231 Add a mode argument.
8232 (mep_legitimate_address): Update accordingly.
8233 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8234
8235 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8236 Delete.
8237 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8238 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8239 static. Check OP's mode for VOIDmode.
8240 (microblaze_legitimate_constant_p): New function.
8241 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8242
8243 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8244 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8245 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8246 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8247 * config/mips/predicates.md: Update comments.
8248
8249 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8250 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8251 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8252 (mmix_legitimate_constant_p): Make static, return a bool, and take
8253 a mode argument.
8254 (mmix_print_operand_address): Update accordingly.
8255
8256 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8257 Delete.
8258 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
8259 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8260 static. Add a mode argument.
1a627b35
RS
8261 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8262
8263 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8264
8265 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8266 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8267 (pa_legitimate_constant_p): New function.
8268
8269 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8270
8271 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8272 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8273 (pdp11_legitimate_constant_p): New function.
8274
8275 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8276 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8277 (rs6000_legitimate_constant_p): New function.
8278
8279 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8280 (rx_legitimate_constant_p): ...this.
8281 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8282 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8283 (rx_legitimate_constant_p): ...this.
8284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8285 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8286
8287 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8288 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8289 * config/s390/s390.c (legitimate_constant_p): Rename to...
8290 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8291 and add a mode argument.
8292 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8293
8294 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8295
8296 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8297 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8298 (sh_legitimate_constant_p): New function.
8299
8300 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8301 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8302 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8303 (legitimate_constant_p): Rename to...
8304 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8305 argument.
8306 (constant_address_p): Update accordingly.
8307
8308 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8309 argument and return a bool.
8310 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8311 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8312 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8313 (spu_rtx_costs): Update accordingly.
8314 * config/spu/predicates.md (vec_imm_operand): Likewise.
8315
8316 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8317
8318 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8319 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8320 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8321
8322 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8323 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8324 * config/vax/vax.c (legitimate_constant_p): Likewise.
8325
8326 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8327 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8328 (xtensa_legitimate_constant_p): New function.
8329
fbbf66e7
RS
83302011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8331
8332 * target.def (cannot_force_const_mem): Add a mode argument.
8333 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8334 * doc/tm.texi: Regenerate.
8335 * hooks.h (hook_bool_mode_rtx_false): Declare.
8336 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8337 (hook_bool_mode_const_rtx_true): Likewise.
8338 (hook_bool_mode_rtx_false): New function.
8339 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8340 to be non-VOID. Update call to cannot_force_const_mem.
8341 (find_reloads): Update accordingly.
8342 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8343 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8344 argument.
8345 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8346 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8347 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8348 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8349 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8350 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8351 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8352 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8353 (m68k_cannot_force_const_mem): ...this new function.
8354 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8355 argument.
8356 (mips_const_insns, mips_legitimize_const_move): Update calls.
8357 (mips_secondary_reload_class): Likewise.
8358 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8359 (pa_cannot_force_const_mem): ...this new function.
2894086e 8360 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
8361 (rs6000_cannot_force_const_mem): ...this new function.
8362 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8363 argument.
8364 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8365 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8366 to...
8367 (xtensa_cannot_force_const_mem): ...this new function.
8368
b861891b
NF
83692011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8370
8371 * config/mips/mips.c (mips16_build_function_stub): Call
8372 build_function_type_list instead of build_function_type.
8373 (mips16_build_call_stub): Likewise.
8374
34149ed5
NF
83752011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8376
8377 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8378 instead of build_function_type.
8379
12526412
NF
83802011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8381
8382 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8383 instead of build_function_type.
8384
3b84d61f
UB
83852011-04-20 Uros Bizjak <ubizjak@gmail.com>
8386
8387 PR target/48678
8388 * config/i386/i386.md (insv): Change operand 0 constraint to
8389 "register_operand". Change operand 1 and 2 constraint to
8390 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8391 * config/i386/sse.md (sse4_1_pinsrb): Export.
8392 (sse2_pinsrw): Ditto.
8393 (sse4_1_pinsrd): Ditto.
8394 (sse4_1_pinsrq): Ditto.
8395 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8396 * config/i386/i386.c (ix86_expand_pinsr): New.
8397
4a25752b
ER
83982011-04-20 Easwaran Raman <eraman@google.com>
8399
8400 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8401 containing union type only with -fstrict-aliasing.
8402
04695783
JM
84032011-04-20 Jim Meyering <meyering@redhat.com>
8404
8405 Remove useless if-before-free tests.
8406 * calls.c (expand_call, save_area): Likewise.
8407 * cfgcleanup.c (try_forward_edges): Likewise.
8408 * collect2.c (collect_execute): Likewise.
8409 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8410 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8411 * coverage.c (coverage_checksum_string): Likewise.
8412 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8413 * cselib.c (cselib_init): Likewise.
8414 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8415 (df_set_clean_cfg): Likewise.
8416 * function.c (free_after_compilation): Likewise.
8417 * gcc.c (do_spec_1, main): Likewise.
8418 * gcov.c (create_file_names): Likewise.
8419 * gensupport.c (identify_predicable_attribute): Likewise.
8420 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8421 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8422 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8423 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8424 * ipa-pure-const.c (local_pure_const): Likewise.
8425 * ipa-reference.c (propagate): Likewise.
8426 * ira-costs.c (free_ira_costs): Likewise.
8427 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8428 * matrix-reorg.c (mat_free): Likewise.
8429 * prefix.c (get_key_value): Likewise.
8430 * profile.c (compute_value_histograms): Likewise.
8431 * reload1.c (free_reg_equiv): Likewise.
8432 * sched-deps.c (free_deps): Likewise.
8433 * sel-sched-ir.c (fence_clear): Likewise.
8434 * sese.c (set_rename, if_region_set_false_region): Likewise.
8435 * tree-data-ref.c (free_rdg): Likewise.
8436 * tree-eh.c (lower_try_finally): Likewise.
8437 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8438 * tree-ssa-live.c (delete_var_map): Likewise.
8439 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8440 * tree-ssa-pre.c (phi_trans_add): Likewise.
8441
6788475a
JJ
84422011-04-20 Jakub Jelinek <jakub@redhat.com>
8443
8444 PR tree-optimization/48611
8445 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8446 beyond ERT_MUST_NOT_THROW region.
8447
0eda4033
CM
84482011-04-20 Catherine Moore <clm@codesourcery.com>
8449
8450 * config/mips/mips.opt (mfix-24k): New.
8451 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8452 * config/mips/mips.md (length): Increase by 4 for stores if
8453 fixing 24K errata.
8454 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8455 all noreorder if fixing 24K errata.
8456 * doc/invoke.texi: Document mfix-24k.
8457
01475747
CLT
84582011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8459
8460 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 8461 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 8462
bc2c1a60
AS
84632011-04-20 Andrew Stubbs <ams@codesourcery.com>
8464
8465 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8466 (const_ok_for_op): ... to here.
8467
583722ee
KT
84682011-04-20 Kai Tietz <ktietz@redhat.com>
8469
2894086e
UB
8470 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8471 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 8472
422c0989
AS
84732011-04-20 Andrew Stubbs <ams@codesourcery.com>
8474
8475 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8476
d7978bff
RG
84772011-04-20 Richard Guenther <rguenther@suse.de>
8478
8479 PR tree-optimization/47892
8480 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8481 are if-convertible.
8482
818412ba
EB
84832011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8484
8485 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8486
b501ce4e
TG
84872011-04-20 Tristan Gingold <gingold@adacore.com>
8488
8489 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8490
516edfdd
GJL
84912011-04-20 Georg-Johann Lay <avr@gjlay.de>
8492
8493 PR target/18145
8494
8495 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8496 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8497 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8498 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8499 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8500
8501 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8502 New prototype.
8503
8504 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8505 (avr_asm_named_section, avr_asm_output_aligned_common,
8506 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8507 New functions to update...
8508 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8509 (avr_asm_init_sections): Overwrite section callbacks for
8510 data_section, bss_section.
8511 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8512 from here to...
8513 (avr_file_end): ...here.
8514
dafc9511
RG
85152011-04-20 Richard Guenther <rguenther@suse.de>
8516
8517 PR middle-end/48695
8518 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 8519 objects and types here. Adjust for their offset before comparing.
dafc9511 8520
1da0876c
RS
85212011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8522
8523 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8524 statement per copy.
8525
25583c4f
RS
85262011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8527
8528 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8529 (GIMPLE_H): Include $(INTERNAL_FN_H).
8530 (OBJS-common): Add internal-fn.o.
8531 (internal-fn.o): New rule.
8532 * internal-fn.def: New file.
8533 * internal-fn.h: Likewise.
8534 * internal-fn.c: Likewise.
8535 * gimple.h: Include internal-fn.h.
8536 (GF_CALL_INTERNAL): New gf_mask.
8537 (gimple_statement_call): Put fntype into a union with a new
8538 internal_fn field.
8539 (gimple_build_call_internal): Declare.
8540 (gimple_build_call_internal_vec): Likewise.
8541 (gimple_call_same_target_p): Likewise.
8542 (gimple_call_internal_p): New function.
8543 (gimple_call_internal_fn): Likewise.
8544 (gimple_call_fntype): Return null for internal calls.
8545 (gimple_call_set_fntype): Assert that the function is not internal.
8546 (gimple_call_set_fn): Likewise.
8547 (gimple_call_set_fndecl): Likewise.
8548 (gimple_call_set_internal_fn): New function.
8549 (gimple_call_addr_fndecl): Handle null functions.
8550 (gimple_call_return_type): Likewise null types.
8551 * gimple.c (gimple_build_call_internal_1): New function.
8552 (gimple_build_call_internal): Likewise.
8553 (gimple_build_call_internal_vec): Likewise.
8554 (gimple_call_same_target_p): Likewise.
8555 (gimple_call_flags): Handle calls to internal functions.
8556 (gimple_call_fnspec): New function.
8557 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8558 (gimple_has_side_effects): Handle null functions.
8559 (gimple_rhs_has_side_effects): Likewise.
8560 (gimple_call_copy_skip_args): Handle calls to internal functions.
8561 * cfgexpand.c (expand_call_stmt): Likewise.
8562 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8563 * gimple-fold.c (gimple_fold_call): Handle null functions.
8564 (gimple_fold_stmt_to_constant_1): Don't fold
8565 calls to internal functions.
8566 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8567 functions.
8568 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8569 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8570 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8571 (do_warn_unused_result): Likewise.
8572 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8573 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8574 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8575 the target of a call.
8576 (initialize_hash_element): Update accordingly.
8577 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8578 (iterative_hash_hashable_expr): Handle calls to internal functions.
8579 (print_expr_hash_elt): Likewise.
8580 * tree-ssa-pre.c (can_value_number_call): Likewise.
8581 (eliminate): Handle null functions.
8582 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8583 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8584 (find_func_aliases): Likewise.
8585 * value-prof.c (gimple_ic_transform): Likewise.
8586 (gimple_indirect_call_to_profile): Likewise.
8587 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8588 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8589
1a3118e9
JH
85902011-04-19 Jan Hubicka <jh@suse.cz>
8591
8592 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
8593 * ipa-inline.c (inline_small_functions): Compute summaries first,
8594 populate heap later.
1a3118e9 8595
fee8b6da
JH
85962011-04-19 Jan Hubicka <jh@suse.cz>
8597
8598 * cgraph.h (save_inline_function_body): Remove.
8599 * ipa-inline-transform.c: New file, broke out of...
8600 * ipa-inline.c: ... this one; Update toplevel comment.
8601 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8602 make global.
8603 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8604 (cgraph_mark_inline_edge): Rename to inline_call; move to
8605 ipa-inline-transform.c.
8606 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8607 move to ipa-inline-transform.c
8608 (recursive_inlining, inline_small_functions, flatten_function,
8609 ipa_inline, inline_always_inline_functions,
8610 early_inline_small_functions): Update.
8611 (inline_transform): Move to ipa-inline-transform.c.
8612 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8613 Declare.
8614 * Makefile.in (ipa-inline-transform.o): New file.
8615 * cgraphunit.c (save_inline_function_body): Move to
8616 ipa-inline-transform.c
8617
f0679612
DD
86182011-04-19 DJ Delorie <dj@redhat.com>
8619
8620 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8621 registers if we already know there aren't any.
8622 (m32c_emit_epilogue): Don't emit a barrier here.
8623 (m32c_emit_eh_epilogue): Likewise.
8624 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8625 operands at expand time.
8626 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8627 int" wchar type.
8628 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8629 duplicates. Provide aliases instead.
8630 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8631 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8632 the compiler.
8633
32257ddc
AS
86342011-04-19 Anatoly Sokolov <aesok@post.ru>
8635
8636 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8637 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8638 (general_or_i64_p, sparc_register_move_cost): New function.
8639
60bea929
RO
86402011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8641
8642 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 8643 Add lynx, mipssde. Sort table.
60bea929 8644
444b3995 86452011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 8646
9d12f71a
EB
8647 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8648 not negative.
444b3995 8649
d708ce50
JJ
86502011-04-19 Jakub Jelinek <jakub@redhat.com>
8651
8652 PR target/48678
8653 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8654 is a SUBREG with non-MODE_INT mode inside of it.
8655
49c471e3
MJ
86562011-04-19 Martin Jambor <mjambor@suse.cz>
8657
8658 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8659 also according to actual contants.
8660 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8661 (gimple_fold_call): Use it.
8662 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8663
0004f992
MJ
86642011-04-19 Martin Jambor <mjambor@suse.cz>
8665
8666 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8667 non-pointer assignments.
8668
40591473
MJ
86692011-04-19 Martin Jambor <mjambor@suse.cz>
8670
8671 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8672 account anc_offset and otr_type from the indirect edge info.
8673 * ipa-prop.c (get_ancestor_addr_info): New function.
8674 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8675 get_ancestor_addr_info, call it.
8676 (ipa_note_param_call): Do not initialize information about polymorphic
8677 calls, return the indirect call graph edge. Remove the last
8678 parameter, adjust all callers.
8679 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8680 parameters. Initialize polymorphic information in the indirect edge.
8681
abe36b81
EB
86822011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8683
8684 PR lto/48148
8685 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8686 the types if they have different enumeration identifiers.
8687
e6416b30
JH
86882011-04-19 Jan Hubicka <jh@suse.cz>
8689
8690 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8691 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8692 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8693 (optimize_function_for_size_p) ... here.
8694
d39132ea
RG
86952011-04-19 Richard Guenther <rguenther@suse.de>
8696
8697 PR lto/48207
8698 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8699 langhook.
8700
ff7037dc
EB
87012011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8702
8703 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8704 if DECL_NO_INLINE_WARNING_P is set on the function.
8705
c1ee2892
BS
87062011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8707
8708 PR fortran/47976
8709 * reload1.c (inc_for_reload): Return void. All callers changed.
8710 (emit_input_reload_insns): Don't try to delete previous output
8711 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
8712
87132011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8714
8715 * gengtype.h: Updated copyright year.
8716 (struct input_file_st): Add inpisplugin field.
8717 (type_fileloc): New function.
8718 * gengtype.c
8719 (write_typed_struct_alloc_def): Add gcc_assert.
8720 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8721 (write_typed_alloc_defns): Don't output for plugin files.
8722 (input_file_by_name): Clear inpisplugin field.
8723 (main): Set inpisplugin field for plugin files.
8724
897e0a89
NP
87252011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8726
8727 * gengtype-state.c (string_eq): New.
8728 (read_state): Use string_eq instead of strcmp when creating the
8729 state_ident_tab.
8730
363ee90e
WG
87312011-04-19 Wei Guozhi <carrot@google.com>
8732
8733 PR target/47855
8734 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8735 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8736 linkage.
8737 * config/arm/constraints.md (Uu): New constraint.
8738 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8739
18a24fed
TG
87402011-04-19 Tristan Gingold <gingold@adacore.com>
8741
8742 * config.gcc (-*-*-*vms): Added.
8743 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8744 definitions moved.
8745 * config/vms/vms-ld.c: New file.
8746 * config/vms/vms-ar.c: New file.
8747 * config/vms/t-vmsnative: New file.
8748
1c13f168
XDL
87492011-04-18 Xinliang David Li <davidxl@google.com>
8750
8751 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8752
84825707
JJ
87532011-04-18 Jakub Jelinek <jakub@redhat.com>
8754
8755 PR middle-end/48661
8756 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8757 if TREE_TYPE (v) is non-NULL.
8758
8759 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8760 gimple_get_virt_mehtod_for_binfo.
8761 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8762 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8763 callers.
8764 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8765
7d4f8d02 87662011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
8767 Steve Ellcey <sje@cup.hp.com>
8768
7d4f8d02
EB
8769 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8770 use its mode as source mode if it isn't VOIDmode.
7254cb57 8771
474e8e70
DCR
87722011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8773
8774 * doc/passes.texi: Fill crossref nodes.
8775
cff41484
JM
87762011-04-18 Jim Meyering <meyering@redhat.com>
8777
7d4f8d02 8778 Fix doubled-word typos in comments and strings
cff41484
JM
8779 * config/alpha/vms-unwind.h: s/for for/for/
8780 * config/arm/unwind-arm.h: Likewise.
8781 * config/microblaze/microblaze.c: Likewise.
8782 * config/sh/constraints.md: s/in in/in/
8783 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8784
f60c2554
UB
87852011-04-18 Uros Bizjak <ubizjak@gmail.com>
8786
8787 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8788 (AVX_FLOAT_MODE_P): Ditto.
8789 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8790 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8791 (AVX_VEC_FLOAT_MODE_P): Ditto.
8792 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8793 (UNSPEC_MASKSTORE): Ditto.
8794 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8795 Merge from <sse>_movmsk<ssemodesuffix> and
8796 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8797 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8798 iterator.
8799 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8800 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8801 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8802
09a2806f
JH
88032011-04-18 Jan Hubicka <jh@suse.cz>
8804
8a8dccb2
JH
8805 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8806
09a2806f
JH
8807 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8808 (want_inline_function_called_once_p): Break out the logic from
8809 ipa_inline.
8810 (edge_badness): Ensure that profile is not misupdated.
8811 (lookup_recursive_calls): Prioritize by call frequencies.
8812 (inline_small_functions): Move program size estimates here;
8813 actually process whole queue even when unit growth has been
8814 met. (to properly compute inline_failed reasons and for the
f60c2554 8815 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
8816 (ipa_inline): Remove unit summary code; first inline hot calls
8817 of functions called once, cold calls next.
8818 (order, nnodes): Remove unused variables.
8819 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8820 (GTFILES): Remove ipa-inline.c
8821 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8822
3eea52ef
EB
88232011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8824
8825 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8826
229a1c59 88272011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 8828 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
8829
8830 * arm.c (neon_builtin_type_bits): Remove.
8831 (typedef enum neon_builtin_mode): New.
8832 (T_MAX): Don't define.
8833 (typedef enum neon_builtin_datum): Remove bits, codes[],
8834 num_vars and base_fcode. Add mode, code and fcode.
8835 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8836 VAR10): Change accordingly.
8837 (neon_builtin_data[]): Change accordingly
8838 (arm_init_neon_builtins): Change accordingly.
8839 (neon_builtin_compare): Remove.
8840 (locate_neon_builtin_icode): Remove.
8841 (arm_expand_neon_builtin): Change accordingly.
8842
8843 * arm.h (enum arm_builtins): Move to ...
8844 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8845
8846 * arm.c (arm_builtin_decl): Declare.
8847 (TARGET_BUILTIN_DECL): Define.
8848 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8849 (arm_builtin_decls[]): New.
8850 (arm_init_neon_builtins): Store builtin declarations in
8851 arm_builtin_decls[].
8852 (arm_init_tls_builtins): Likewise.
8853 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8854 (arm_builtin_decl): New.
8855
75e802cc
RG
88562011-04-18 Richard Guenther <rguenther@suse.de>
8857
8858 * tree.c (upper_bound_in_type): Build properly canonicalized
8859 INTEGER_CSTs.
8860 (lower_bound_in_type): Likewise.
8861
3b45a007
RG
88622011-04-18 Richard Guenther <rguenther@suse.de>
8863
8864 * gimple.h (gimple_call_addr_fndecl): New function.
8865 (gimple_call_fndecl): Use it.
8866 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8867 for direct calls.
8868 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8869 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8870
d25a79ea
RG
88712011-04-18 Richard Guenther <rguenther@suse.de>
8872
8873 PR middle-end/48650
8874 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8875
7d5fc814
EB
88762011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8877
8878 PR lto/48492
8879 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8880 DECL_IN_CONSTANT_POOL without RTL.
8881
7e7cfcf6
UW
88822011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8883 Ira Rosen <ira.rosen@linaro.org>
8884
8885 PR target/48252
8886 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8887 to match neon_vzip/vuzp/vtrn_internal.
8888 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8889 outputs explicitly dependent on both inputs.
8890 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8891
49eab32e
JJ
88922011-04-18 Jakub Jelinek <jakub@redhat.com>
8893
8894 PR tree-optimization/48616
8895 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8896 whether the shift is by scalar or vector based on whether all SLP
8897 scalar stmts have the same rhs.
8898
e54170f4
CLT
88992011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8900
8901 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8902 memory operands.
8903
b14ee6c9
RS
89042011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8905
269e0e18 8906 PR target/43700
b14ee6c9
RS
8907 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8908 registers.
8909
10158cd3
JH
89102011-04-17 Jan Hubicka <jh@suse.cz>
8911
8912 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
8913 * cgrpahunit.c (cgraph_finalize_function): Do not set
8914 finalized_by_frontend.
10158cd3
JH
8915 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8916 finalized_by_frontend.
8917
2e9bb6ba
JH
89182011-04-17 Jan Hubicka <jh@suse.cz>
8919
8920 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8921 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8922 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
8923 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8924 method.
2e9bb6ba
JH
8925 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8926 gimple-fold.c
8927 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8928
beb628e1
EB
89292011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8930
8931 PR lto/48538
8932 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8933 is non-null before accessing it.
8934 (input_cgraph): Remove trailing spaces.
8935
3e2fdd24
RE
89362011-04-17 Revital Eres <revital.eres@linaro.org>
8937
8938 * params.def (sms-min-sc): New param flag.
8939 * modulo-sched.c (sms_schedule): Use it.
8940 * doc/invoke.texi (sms-min-sc): Document it.
8941
4c0f7679
JH
89422011-04-17 Jan Hubicka <jh@suse.cz>
8943
8944 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8945 present, also set gimple_call_set_cannot_inline.
8946 * ipa-inline.c: Update toplevel comment.
8947 (MAX_TIME): Remove.
8948 (cgraph_clone_inlined_nodes): Fix linebreaks.
8949 (cgraph_check_inline_limits): Restructure to ...
8950 (caller_growth_limits): ... this one; be more tolerant
8951 on growth in nested inline chains; add explanatory comment;
8952 fix stack accounting thinko introduced by previous patch.
8953 (cgraph_default_inline_p): Remove.
8954 (report_inline_failed_reason): New function.
8955 (can_inline_edge_p): New function.
8956 (can_early_inline_edge_p): New function.
8957 (leaf_node_p): Move upwards in file.
8958 (want_early_inline_function_p): New function.
8959 (want_inline_small_function_p): New function.
8960 (want_inline_self_recursive_call_p): New function.
8961 (cgraph_edge_badness): Rename to ...
8962 (edge_badness) ... this one; fix linebreaks.
8963 (update_edge_key): Update call of edge_baddness; add
8964 detailed dump about queue updates.
8965 (update_caller_keys): Use can_inline_edge_p and
8966 want_inline_small_function_p.
8967 (cgraph_decide_recursive_inlining): Rename to...
8968 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
8969 want_inline_self_recursive_call_p; simplify and remove no longer
8970 valid FIXME.
4c0f7679
JH
8971 (cgraph_set_inline_failed): Remove.
8972 (add_new_edges_to_heap): Use can_inline_edge_p and
8973 want_inline_small_function_p.
8974 (cgraph_decide_inlining_of_small_functions): Rename to ...
8975 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
8976 can/want predicates; cleanup debug ouput; work edges till fibheap
8977 is exhausted and do not stop once unit growth is reached; remove
8978 later loop processing remaining edges.
4c0f7679
JH
8979 (cgraph_flatten): Rename to ...
8980 (flatten_function): ... this one; use can_inline_edge_p
8981 and can_early_inline_edge_p predicates.
8982 (cgraph_decide_inlining): Rename to ...
8983 (ipa_inline): ... this one; remove unreachable nodes before
8984 inlining functions called once; simplify the pass.
8985 (cgraph_perform_always_inlining): Rename to ...
8986 (inline_always_inline_functions): ... this one; use
f60c2554 8987 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
8988 (cgraph_decide_inlining_incrementally): Rename to ...
8989 (early_inline_small_functions): ... this one; simplify
8990 using new predicates; cleanup; make dumps prettier.
8991 (cgraph_early_inlining): Rename to ...
8992 (early_inliner): newer inline regular functions into always-inlines;
8993 fix updating of call stmt summaries.
8994 (pass_early_inline): Update for new names.
8995 (inline_transform): Fix formating.
8996 (gate_cgraph_decide_inlining): Rename to ...
8997 (pass_ipa_inline): ... this one.
8998 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8999 * ipa-inline-analysis.c (dump_inline_summary): Update.
9000 (compute_inline_parameters): Do not compute disregard_inline_limits;
9001 look for mismatching arguments.
9002 (estimate_growth): Fix handlig of non-trivial self recursion.
9003 (inline_read_summary): Do not read info->disregard_inline_limits.
9004 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
9005 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9006 and move all checks into can_inline_edge_p predicate; re-enable code
9007 comparing optimization levels.
4c0f7679
JH
9008 (expand_call_inline): Do not test inline_forbidden_into_p.
9009 * Makefile.in (ipa-inline.o): Update arguments.
9010
54333b7c
RE
90112011-04-17 Revital Eres <revital.eres@linaro.org>
9012
9013 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9014
42c2bf92
RE
90152011-04-17 Revital Eres <revital.eres@linaro.org>
9016
9017 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9018
b183e9e0
MM
90192011-04-17 Michael Matz <matz@suse.de>
9020
9021 PR tree-optimization/48622
9022 PR lto/48645
9023 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9024 in same order as they're written.
9025
b8a17fa2
JDA
90262011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9027
9028 * config/pa/predicates.md: Reorganize and simplify predicates.
9029 Eliminate duplicate code checks.
9030 (arith_operand): Rename to arith14_operand
9031 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9032 * config/pa/pa.md: Use renamed operands.
9033 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9034 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9035 arith11_operand, adddi3_operand, indexed_memory_operand,
9036 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9037 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9038 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9039 move_dest_operand, move_src_operand, prefetch_cc_operand,
9040 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9041 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9042 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9043 div_operand, int5_operand, movb_comparison_operator,
9044 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9045 arith_double_operand, ireg_operand, lhs_lshift_operand,
9046 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9047 integer_store_memory_operand): Likewise.
9048 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9049 (integer_store_memory_operand, read_only_operand,
9050 function_label_operand, borx_reg_operand,
9051 non_hard_reg_operand): Likewise.
9052 (eq_neq_comparison_operator): Delete unused operator.
9053 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9054 function_label_operand.
9055 (emit_move_sequence): Likewise.
9056
8dfb9f16
UB
90572011-04-16 Uros Bizjak <ubizjak@gmail.com>
9058
9059 * config/i386/sse.md (sseunpackmode): New mode attribute.
9060 (ssepackmode): Ditto.
9061 (vec_pack_trunc_<mode>): Macroize expander from
9062 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9063 (vec_unpacks_lo_<mode>): Macroize expander from
9064 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9065 (vec_unpacks_hi_<mode>): Macroize expander from
9066 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9067 (vec_unpacku_lo_<mode>): Macroize expander from
9068 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9069 (vec_unpacku_hi_<mode>): Macroize expander from
9070 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9071 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9072 ix86_expand_sse4_unpack.
9073 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9074
e7f23018
JH
90752011-04-16 Jan Hubicka <jh@suse.cz>
9076
9077 * cgraphbuild.c: Include ipa-inline.h.
9078 (reset_inline_failed): Use initialize_inline_failed.
9079 * cgraph.c: Include ipa-inline.h.
9080 (cgraph_create_node_1): Do not initialize estimated_growth.
9081 (initialize_inline_failed): More to ipa-inline-analysis.c
9082 (dump_cgraph_node): Do not dump inline flags.
9083 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9084 and disregard_inline_limits flags.
9085 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9086 time, size, estimated_growth.
8dfb9f16
UB
9087 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9088 Update.
e7f23018
JH
9089 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9090 DECL_DISREGARD_INLINE_LIMITS.
9091 (cgraph_analyze_function): Do not initialize
9092 node->local.disregard_inline_limits.
9093 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9094 inlinable, versionable and disregard_inline_limits.
9095 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
9096 cgraph_check_inline_limits, cgraph_default_inline_p,
9097 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9098 add_new_edges_to_heap): Update.
9099 (cgraph_decide_inlining_of_small_function): Update; set
9100 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
9101 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9102 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
9103 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9104 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9105 time, size and estimated_growth parameters.
e7f23018
JH
9106 (estimate_edge_growth): Update.
9107 (initialize_inline_failed): Declare.
9108 * ipa-split.c: Include ipa-inline.h
9109 (execute_split_functions): Update.
9110 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9111 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9112 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9113 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9114 estimated_growth to INT_MIN.
9115 (inline_node_duplication_hook): Likewise.
9116 (dump_inline_summary): Dump new fields.
9117 (compute_inline_parameters): Update.
9118 (estimate_edge_time, estimate_time_after_inlining,
9119 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9120 inline_write_summary):
9121 (initialize_inline_failed): Move here from cgraph.c.
9122 * tree-sra.c: Include ipa-inline.h.
9123 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
9124 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9125 ipa-inline.h.
e7f23018 9126
e81b8564
UB
91272011-04-16 Uros Bizjak <ubizjak@gmail.com>
9128
9129 * config/i386/sse.md (V16): New mode iterator.
9130 (VI1, VI8): Ditto.
9131 (AVXMODEQI, AVXMODEDI): Remove.
9132 (sse2, sse3): New mode attribute.
9133 (mov<mode>): Use V16 mode iterator.
9134 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9135 (push<mode>1): Use V16 mode iterator.
9136 (movmisalign<mode>): Ditto.
9137 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9138 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9139 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9140 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9141 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9142 avx_movdqu<avxmodesuffix>.
9143 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9144 *avx_movdqu<avxmodesuffix>.
9145 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9146 avx_lddqu<avxmodesuffix>.
9147 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9148 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9149 avx_movnt<AVXMODEDI:mode>.
9150 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9151 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9152
4743d438
BS
91532011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9154
9155 PR target/48629
9156 * haifa-sched.c (prune_ready_list, schedule_block): Use
9157 sched_pressure_p rather than flag_sched_pressure.
9158
748f7574 91592011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
9160
9161 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9162 cgraph_get_node instead of cgraph_get_create_node.
9163
2ba172e0
JJ
91642011-04-15 Jakub Jelinek <jakub@redhat.com>
9165
9166 * cfgexpand.c (expand_debug_expr): Use
9167 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9168
63d2a353
MM
91692011-04-15 Michael Matz <matz@suse.de>
9170
9171 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9172 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9173 * function.c (gimplify_parameters): Ditto.
9174 * gimplify.c (gimplify_vla_decl): Ditto.
9175
9176 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9177 (gimple_call_set_alloca_for_var): New inline function.
9178 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
9179 * gimple.c (gimple_build_call_from_tree): Remember
9180 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
9181 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9182
9183 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9184 calls if they were for VLA objects.
9185
dee74c34
MJ
91862011-04-15 Martin Jambor <mjambor@suse.cz>
9187
9188 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9189 of ADR_EXPRs.
9190
8e5837bc
MJ
91912011-04-15 Martin Jambor <mjambor@suse.cz>
9192
9193 PR middle-end/48601
9194 * tree-emutls.c (lower_emutls_function_body): Call
9195 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9196 result is non-NULL.
9197
0dc33c3c
NP
91982011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9199
9200 * c-decl.c (detect_field_duplicates): Call
9201 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9202
edcdea5b
NF
92032011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9204
9205 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9206 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9207 * ipa-pure-const.c (check_stmt): Call it.
9208 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9209
8456558d
RG
92102011-04-15 Richard Guenther <rguenther@suse.de>
9211
9212 PR tree-optimization/48290
9213 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9214 Properly decide inhibiting propagation based on the valueized
9215 operand. Do loop-closed SSA form preserving here ...
9216 (init_copy_prop): ... not here.
9217
266446be
L
92182011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9219
9220 PR target/48612
9221 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9222 (*ieee_smax<mode>3): Likewise.
9223
17465c6e
AK
92242011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9225
9226 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9227 Replace match_operand with match_dup for the third operand in
9228 these expanders.
9229
bce204e5
MK
92302011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9231
9232 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9233 to track processing of conditionals. Update all callers.
9234 (try_combine, simplify_if_then_else): Update.
9235
3162fdf4
MK
92362011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9237
9238 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9239 -fsched-pressure.
9240
79002a57 92412011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 9242
79002a57
GJL
9243 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9244 instead of match_operand for operand 3.
9245
4fd3a105
RS
92462011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9247
9248 * recog.h (insn_operand_data): Add an "allows_mem" field.
9249 * genoutput.c (output_operand_data): Initialize it.
9250 * optabs.c (maybe_legitimize_operand_same_code): New function.
9251 (maybe_legitimize_operand): Use it when matching the original
9252 op->value.
9253
ad19c4be
EB
92542011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9255
9256 * gimplify.c: Fix issues in comments throughout.
9257 (voidify_wrapper_expr): Fix long line.
9258 (build_stack_save_restore): Likewise.
9259 (gimplify_loop_expr): Likewise.
9260 (gimplify_compound_lval): Likewise.
9261 (gimplify_init_ctor_eval): Likewise.
9262 (gimplify_modify_expr_rhs): Likewise.
9263 (omp_notice_threadprivate_variable): Likewise.
9264
b25aa0e8 92652011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 9266
b25aa0e8
EB
9267 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9268 original one if this is not a builtin function.
e7925582 9269
09db7afe
JJ
92702011-04-14 Jakub Jelinek <jakub@redhat.com>
9271
9272 PR target/48605
9273 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9274 offset it as needed based on top 2 bits in operands[3], change
9275 MEM mode to SFmode and mask those 2 bits away from operands[3].
9276
c59633d9
NP
92772011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9278
9279 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9280 change from objc_declare_protocols() to objc_declare_protocol().
9281
5e60198b
UB
92822011-04-14 Uros Bizjak <ubizjak@gmail.com>
9283
9284 * config/i386/sse.md (sse4_1): New mode attribute.
9285 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9286 avx_blend<ssemodesuffix><avxmodesuffix> and
9287 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9288 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9289 avx_blendv<ssemodesuffix><avxmodesuffix> and
9290 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9291 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9292 avx_dp<ssemodesuffix><avxmodesuffix> and
9293 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9294 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9295 (sse4_1_packusdw): Merge with *avx_packusdw.
9296 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9297 (sse4_1_pblendw): Merge with *avx_pblendw.
9298 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9299 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9300 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9301 VF mode iterator.
9302 (sse4_1_round<ssescalarmodesuffix>): Merge with
9303 *avx_round<ssescalarmodesuffix>.
9304 (aesenc): Merge with *avx_aesenc.
9305 (aesenclast): Merge with *avx_aesenclast.
9306 (aesdec): Merge with *avx_aesdec.
9307 (aesdeclast): Merge with *avx_aesdeclast.
9308 (pclmulqdq): Merge with *pclmulqdq.
9309 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9310 New predicate.
9311 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9312
6f197850
L
93132011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9314
9315 PR middle-end/48608
9316 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9317 (align_local_variable): This. Update DECL_ALIGN.
9318 (add_stack_var): Updated.
9319 (expand_one_stack_var): Likewise.
9320
4a5ba3ed
RG
93212011-04-14 Richard Guenther <rguenther@suse.de>
9322
9323 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9324 Remove.
9325 (dse_initialize_block_local_data, dse_leave_block,
9326 record_voperand_set, get_stmt_uid): Likewise.
9327 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9328 (dse_optimize_stmt): Remove voperand set handling code.
9329 Simplify and improve to handle any kind of killing stmt.
9330 (dse_record_phi): Remove.
9331 (dse_enter_block): Simplify.
9332 (tree_ssa_dse): Likewise.
9333 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9334
10a5dd5d
JH
93352011-04-14 Jan Hubicka <jh@suse.cz>
9336
9337 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9338 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9339 (cgraph_local_info): Remove inline_summary.
9340 * ipa-cp.c: Include ipa-inline.h.
9341 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9342 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9343 accesor.
9344 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9345 (input_overwrite_node): Do not set inline summary.
9346 (input_node): Do not stream inline summary.
9347 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9348 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9349 growth; we do not have inline parameters computed for that anyway.
9350 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9351 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9352 (inline_summary_t): New type and VECtor.
9353 (debug_inline_summary, dump_inline_summaries): Declare.
9354 (inline_summary): Use VOCtor.
9355 (estimate_edge_growth): Kill hack computing call stmt size directly.
9356 * lto-section-in.c (lto_section_name): Add inline section.
9357 * ipa-inline-analysis.c: Include lto-streamer.h
9358 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9359 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9360 (inline_summary_vec): Define.
9361 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9362 dump_inline_summaries): New functions.
5e60198b
UB
9363 (estimate_function_body_sizes): Properly compute size/time of outgoing
9364 calls.
9365 (compute_inline_parameters): Alloc inline_summary; do not compute
9366 size/time of incomming calls.
10a5dd5d
JH
9367 (estimate_edge_time): Avoid missing time summary hack.
9368 (inline_read_summary): Read inline summary info.
9369 (inline_write_summary): Write inline summary info.
9370 (inline_free_summary): Free all hooks and inline summary vector.
9371 * lto-streamer.h: Add LTO_section_inline_summary section.
9372 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9373 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9374
b602d918
RS
93752011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9376
9377 * tree-vectorizer.h (vect_strided_store_supported): Add a
9378 HOST_WIDE_INT argument.
9379 (vect_strided_load_supported): Likewise.
9380 (vect_permute_store_chain): Return void.
9381 (vect_transform_strided_load): Likewise.
9382 (vect_permute_load_chain): Delete.
9383 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9384 count argument. Check that the count is a power of two.
9385 (vect_strided_load_supported): Likewise.
9386 (vect_permute_store_chain): Return void. Update after above changes.
9387 Assert that the access is supported.
9388 (vect_permute_load_chain): Likewise.
9389 (vect_transform_strided_load): Return void.
9390 * tree-vect-stmts.c (vectorizable_store): Update calls after
9391 above interface changes.
9392 (vectorizable_load): Likewise.
9393 (vect_analyze_stmt): Don't check for strided powers of two here.
9394
ab4472fa
RG
93952011-04-14 Richard Guenther <rguenther@suse.de>
9396
9397 PR tree-optimization/48590
9398 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9399 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9400 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9401 BUILT_IN_STACK_SAVE.
9402 * tree-ssa-dce.c (propagate_necessity): Handle
9403 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9404
32dabdaf
NP
94052011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9406
9407 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9408 objc_declare_class.
9409
daade206
RG
94102011-04-14 Richard Guenther <rguenther@suse.de>
9411
9412 * tree.h (get_object_alignment_1): Declare.
9413 * builtins.c (get_object_alignment_1): Split out worker from ...
9414 (get_object_alignment): ... here.
9415 * fold-const.c (get_pointer_modulus_and_residue): Use
9416 get_object_alignment_1.
9417
920e8172
RS
94182011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9419
9420 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9421 type parameter.
9422 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9423 parameter. Generalise code to handle arrays as well as vectors.
9424 (vect_setup_realignment): Update accordingly.
9425 * tree-vect-stmts.c (vectorizable_store): Likewise.
9426 (vectorizable_load): Likewise.
9427
5ce1ee7f
RS
94282011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9429
9430 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9431 within the per-copy loop.
9432
6438fe33 94332011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
9434
9435 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9436 in the dump file.
9437
6438fe33 94382011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
9439
9440 * doc/options.texi (Negative): Explicitly mention that the
9441 Negative chain must be circular.
9442
61e46a7d
NF
94432011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9444
9445 * function.h (block_chainon): Declare.
9446 * function.c (block_chainon): Define.
9447
43ea6502 94482011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 9449 Eric Weddington <eric.weddington@atmel.com>
748f7574 9450 Georg-Johann Lay <avr@gjlay.de>
5e60198b 9451
f60c2554 9452 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
9453 New Includes
9454 (avr_init_builtins, avr_expand_builtin,
9455 avr_expand_delay_cycles, avr_expand_unop_builtin,
9456 avr_expand_binop_builtin ): New functions.
9457 (avr_builtin_id): New enum
9458 (struct avr_builtin_description): New struct
9459 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9460 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 9461
43ea6502 9462 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 9463 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
9464 UNSPECV_DELAY_CYCLES): new enumeration values
9465 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9466 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9467 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9468 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9469 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9470 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9471 "fmulsu"): New insns
5e60198b 9472
43ea6502
AS
9473 * config/avr/avr-c.c: fix line endings
9474 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9475 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9476 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9477 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9478 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 9479
43ea6502
AS
9480 * doc/extend.texi (AVR Built-in Functions): New node
9481 (Target Builtins): Add documentation of AVR
9482 built-in functions.
9483
8a9b55f3
GJL
94842011-04-14 Georg-Johann Lay <avr@gjlay.de>
9485
9486 PR target/44643
9487 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9488 alone. Error if non-const data has attribute progmem.
9489
94bd1825
NF
94902011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9491
9492 * tree.h (struct tree_constructor): Include tree_typed instead of
9493 tree_common.
9494 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9495 TS_TYPED instead of TS_COMMON.
9496
5e60198b 94972011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
9498
9499 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9500 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9501 (sse2_psadbw): Merge with *avx_psadbw.
9502 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9503 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9504 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9505 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9506 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9507 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9508 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9509 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9510 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9511 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9512 (ssse3_palignrti): Merge with *avx_palignrti.
9513
4b1a4694
NF
95142011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9515
9516 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9517 * tree-ssanames.c (fini_ssanames): VEC_free it.
9518 (make_ssa_name_fn): Update for VECness of free_ssanames.
9519 (release_ssa_name, release_dead_ssa_names): Likewise.
9520 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9521 tree_common.
9522 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9523 TS_TYPED instead of TS_COMMON.
9524
4da3b811
NF
95252011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9526
9527 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9528 statistics_counter_event.
9529 * tree-ssa-copyrename.c (stats): Define.
9530 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9531 statistics_counter_event.
9532 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9533 (bswap_stats, widen_mul_stats): Define.
9534 (insert_reciprocals): Increment rdivs_inserted.
9535 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9536 rfuncs_inserted. Add calls to statistics_counter_event.
9537 (execute_cse_sincos_1): Increment inserted.
9538 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9539 statistics_counter_event.
9540 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9541 of bswap_stats. Add calls to statistics_counter_event.
9542 (convert_mult_to_widen): Increment widen_mults_inserted.
9543 (convert_plusminus_to_widen): Increment maccs_inserted.
9544 (convert_mult_to_fma): Increment fmas_inserted.
9545 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9546 calls to statistics_counter_event.
9547
89fa552a
VM
95482011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9549
9550 PR rtl-optimization/48455
9551 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9552 `temp_costs->mem_cost'.
9553
03dfc36d
JH
95542011-04-13 Jan Hubicka <jh@suse.cz>
9555
9556 * ipa-inline.h: New file.
9557 * ipa-inline-analysis.c: New file. Broken out of ...
9558 * ipa-inline.c: ... this file; update toplevel comment;
9559 include ipa-inline.h
9560 (inline_summary): Move to ipa-inline.h
9561 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9562 ipa-inline-analysis.c.
7d4f8d02
EB
9563 (cgraph_estimate_time_after_inlining): Rename to
9564 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
9565 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9566 to estimate_edge_growth.
9567 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9568 rename to estimate_size_after_inlining.
9569 (cgraph_mark_inline_edge): Update for new naming convention.
9570 (cgraph_check_inline_limits): Likewise.
9571 (cgraph_edge_badness): Likewise.
9572 (cgraph_decide_recursive_inlining): Likewise.
9573 (cgraph_decide_inlining_of_small_functions): Likewise.
9574 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
9575 (cgraph_estimate_growth): Rename to estimate_growth; move to
9576 ipa-inline-analysis.c.
03dfc36d
JH
9577 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9578 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9579 (compute_inline_parameters): Likewise.
9580 (compute_inline_parameters_for_current): Likewise.
9581 (pass_inline_parameters): Likewise.
9582 (inline_indirect_intraprocedural_analysis): Likewise.
9583 (analyze_function): Rename to inline_analyze_function; likewise.
9584 (add_new_function): Move to ipa-inline-analysis.c.
9585 (inline_generate_summary): Likewise.
9586 (inline_read_summary): Likewise.
9587 (inline_write_summary): Likewise.
9588 * Makefile.in (ipa-inline-analysis.c): New file.
9589
7673c962
RO
95902011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9591
9592 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9593 * configure: Regenerate.
9594
9698252f
NF
95952011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9596
9597 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9598 instead of tree_common.
9599 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9600 Likewise.
9601 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9602 TS_TYPED rather than TS_COMMON.
9603 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9604
3a7bfdd5
GJL
96052011-04-01 Georg-Johann Lay <avr@gjlay.de>
9606
9607 PR target/45263
86d83530
GJL
9608 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9609 r20 around calls of __tablejump_elpm__
3a7bfdd5 9610
20790697
JJ
96112011-04-13 Jakub Jelinek <jakub@redhat.com>
9612
9613 PR middle-end/48591
9614 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9615 NULL.
9616 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9617
094d7661
BS
96182011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9619
9620 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9621 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9622 (cfi_vec): New typedef.
9623 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9624 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9625 (cie_cfi_vec): New static variable.
9626 (cie_cfi_head): Delete.
9627 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9628 declaration changed. Use vector rather than list operations.
9629 (new_cfi): Don't initialize the dw_cfi_next field.
9630 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9631 rather than list operations.
9632 (lookup_cfa): Use vector rather than list operations.
9633 (output_cfis): New argument upto. Accept a cfi_vec rather than
9634 a dw_cfi_ref list head as argument. All callers changed.
9635 Iterate over the vector using upto as a maximum index.
9636 (output_all_cfis): New static function.
9637 (output_fde): Use vector rather than list operations. Use the
9638 new upto argument for output_cfis rather than manipulating a
9639 list.
9640 (dwarf2out_begin_prologue): Change initializations to match
9641 new struct members.
9642 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9643 from the vector length rather than searching for the end of a list.
9644 Use output_all_cfis.
9645 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9646
673a5740
NC
96472011-04-13 Nick Clifton <nickc@redhat.com>
9648
9649 * config/rx/rx.md (movmemsi): Do not use this pattern when
9650 volatile pointers are involved.
9651
1ee8b298
UB
96522011-04-13 Uros Bizjak <ubizjak@gmail.com>
9653
9654 * config/i386/sse.md (pinsrbits): Remove.
9655 (sse2_packsswb): Merge with *avx_packsswb.
9656 (sse2_packssdw): Merge with *avx_packssdw.
9657 (sse2_packuswb): Merge with *avx_packuswb.
9658 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9659 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9660 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9661 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9662 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9663 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9664 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9665 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9666 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9667 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9668 (sse2_loadld): Merge with *avx_loadld.
9669 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9670 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9671 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9672 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9673 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9674
81f653d6
NF
96752011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9676
9677 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9678 calling TREE_CHAIN.
9679 * print-tree.c (print_node): Likewise.
9680 * tree-inline.c (copy_tree_r): Likewise.
9681 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9682 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9683 instead of TS_COMMON.
9684 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9685 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9686 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9687 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9688 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9689 ...and these...
9690 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9691 * tree.h: ...here.
9692 (TREE_CHAIN): Check for a TS_COMMON structure.
9693 (TREE_TYPE): Check for a TS_TYPED structure.
9694
748f7574 96952011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
9696
9697 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9698 cgraph_get_create_node instead of cgraph_node.
9699
eb345401
NP
97002011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9701
9702 * c-parser.c (c_parser_initelt): Updated call to
9703 objc_build_message_expr.
9704 (c_parser_postfix_expression): Likewise.
9705
a6c46762
KT
97062011-04-12 Kai Tietz <ktietz@redhat.com>
9707
9708 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9709 MASK_MS_BITFIELD_LAYOUT bit.
9710
b4ccfed9
JJ
97112011-04-12 Jakub Jelinek <jakub@redhat.com>
9712
9713 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9714 assert it is always true.
9715 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9716 moves.
9717
0d8a2528
NP
97182011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9719
9720 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9721 compiling Objective-C to be more efficient.
9722
06bd234a
AF
97232011-04-12 Axel Freyn <axel-freyn@gmx.de>
9724
9725 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9726 argv_copied.
9727
28569ac3
RS
97282011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9729
9730 * recog.h, genoutput.c, optabs.c: Revert last patch.
9731
ae59e00d
RR
97322011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9733
81b1e7eb
UB
9734 PR target/48090
9735 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 9736
cff1b7e0
RS
97372011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9738
9739 * recog.h (insn_operand_data): Add an "allows_mem" field.
9740 * genoutput.c (output_operand_data): Initialize it.
9741 * optabs.c (maybe_legitimize_operand_same_code): New function.
9742 (maybe_legitimize_operand): Use it when matching the original
9743 op->value.
9744
77059241
RS
97452011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9746
9747 * genpreds.c (process_define_predicate): Move most processing
9748 to gensupport.c. Continue to validate the expression.
9749 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9750 (process_define_predicate): Move processing to gensupport.c.
9751 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9752 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9753 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9754 argument.
9755 (valid_predicate_name_p): New function, split out from old
9756 genpreds.c:process_define_predicate.
9757 (process_define_predicate): New function, combining code from
9758 old genpreds.c and genrecog.c functions.
9759 (process_rtx): Call it for DEFINE_PREDICATE and
9760 DEFINE_SPECIAL_PREDICATE.
9761
6308e208
RS
97622011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9763
9764 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9765 size of a '%A' memory reference.
9766 (T_DREG, T_QREG): New neon_builtin_type_bits.
9767 (arm_init_neon_builtins): Assert that the load and store operands
9768 are neon_struct_operands.
9769 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9770 (NEON_ARG_MEMORY): New builtin_arg.
9771 (neon_dereference_pointer): New function.
9772 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9773 Handle NEON_ARG_MEMORY.
9774 (arm_expand_neon_builtin): Update after above interface changes.
9775 Use NEON_ARG_MEMORY for loads and stores.
9776 * config/arm/predicates.md (neon_struct_operand): New predicate.
9777 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9778 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9779 (V_four_elem): Tweak formatting.
9780 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9781 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9782 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9783 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9784 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9785 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9786 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9787 Use %A in the output template.
9788 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9789 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9790 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9791 the width of the memory access. Remove post-increment.
9792 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9793
e5db8f2f
NC
97942011-04-12 Nick Clifton <nickc@redhat.com>
9795
9796 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9797 instruction for interrupt handlers if the target is the basic V850
9798 architecture.
9799 (expand_epilogue): Likewise.
9800
74f091d6
JJ
98012011-04-12 Jakub Jelinek <jakub@redhat.com>
9802
9803 PR rtl-optimization/48549
9804 * combine.c (propagate_for_debug): Also stop after BB_END of
9805 this_basic_block. Process LAST and just stop processing after it.
9806 (combine_instructions): If last_combined_insn has been deleted,
9807 set last_combined_insn to its PREV_INSN.
9808
f20ca725
RG
98092011-04-12 Richard Guenther <rguenther@suse.de>
9810
9811 PR tree-optimization/46076
9812 * gimple.h (struct gimple_statement_call): Add fntype field.
9813 (gimple_call_fntype): Adjust.
9814 (gimple_call_set_fntype): New function.
9815 * gimple.c (gimple_build_call_1): Set the call function type.
9816 * gimplify.c (gimplify_call_expr): Preserve the function
9817 type the frontend used for the call.
9818 (gimplify_modify_expr): Likewise.
9819 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9820 function type.
9821 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9822 function type.
9823 * tree-ssa.c (useless_type_conversion_p): Function pointer
9824 conversions are useless.
9825
a358e188
MJ
98262011-04-12 Martin Jambor <mjambor@suse.cz>
9827
9828 * cgraph.h (cgraph_node): Remove function declaration.
9829 (cgraph_create_node): Declare.
9830 (cgraph_get_create_node): Likewise.
9831 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9832 Updated all callers.
9833 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9834 the decl does not already exist. Call cgraph_get_create_node instead
9835 of cgraph_node.
9836 (cgraph_get_create_node): New function.
9837 (cgraph_same_body_alias): Update comment.
9838 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9839 assert it does not return NULL.
9840 (cgraph_update_edges_for_call_stmt): Likewise.
9841 (cgraph_clone_edge): Likewise.
9842 (cgraph_create_virtual_clone): Likewise.
9843 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9844 instead of cgraph_node.
9845 (cgraph_add_new_function): Call cgraph_create_node or
9846 cgraph_get_create_node instead of cgraph_node.
9847 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9848 instead of cgraph_node.
9849 (record_eh_tables): Likewise.
9850 (mark_address): Likewise.
9851 (mark_load): Likewise.
9852 (build_cgraph_edges): Call cgraph_get_create_node instead
9853 of cgraph_node.
9854 (rebuild_cgraph_edges): Likewise.
9855 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9856 instead of cgraph_node.
9857 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9858 cgraph_node.
9859 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9860 cgraph_create_node instead of cgraph_node.
9861 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9862 of cgraph_node.
9863 * lto-cgraph.c (input_node): Likewise.
9864 * lto-streamer-in.c (input_function): Likewise.
9865 * varasm.c (mark_decl_referenced): Likewise.
9866 (assemble_alias): Likewise.
9867
fe660d7b
MJ
98682011-04-12 Martin Jambor <mjambor@suse.cz>
9869
9870 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9871 instead of cgraph_node and assert it does not return NULL.
9872 * lto-streamer-in.c (lto_read_body): Likewise.
9873 * omp-low.c (new_omp_context): Likewise.
9874 (create_task_copyfn): Likewise.
9875 * tree-emutls.c (lower_emutls_function_body): Likewise.
9876 * matrix-reorg.c (transform_allocation_sites): Likewise.
9877
bae5cddf
JJ
98782011-04-12 Jakub Jelinek <jakub@redhat.com>
9879
9880 PR c/48552
9881 * c-typeck.c (build_asm_expr): Error out on attempts to use
9882 void type outputs or inputs for constraints that allow reg or
9883 don't allow memory.
9884
06eb52ca
CLT
98852011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9886 Richard Earnshaw <rearnsha@arm.com>
9887
9888 PR target/48250
9889 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9890 to use sign-magnitude offsets. Reject unsupported unaligned
9891 cases. Add detailed description in comments.
9892 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9893 condition from TARGET_32BIT to TARGET_ARM.
9894
648a616b
NF
98952011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9896
9897 * tree.h (struct typed_tree): New.
9898 (struct tree_common): Include it instead of tree_base.
9899 (TREE_TYPE): Update for new location of type field.
9900 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9901 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9902 (union tree_node): Add typed field.
9903 * treestruct.def (TS_TYPED): New.
9904 * lto-streamer.c (check_handled_ts_structures): Handle it.
9905 * tree.c (MARK_TS_TYPED): New macro.
9906 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9907
1e6d1da0
EB
99082011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9909
9910 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9911 (force_nonfallthru): Do not alter the loop nest if no basic block
9912 was created.
9913
99142011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
9915
9916 * config/i386/sse.md (VI): New mode iterator.
9917 (SSEMODEI): Remove.
9918 (AVX256MODEI): Ditto.
9919 (AVXMODEF4P): Ditto.
9920 (avxvecpsmode): Ditto.
9921 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9922 (sse2_andnot<mode>3): New expander.
9923 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9924 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9925 (<any_logic:code><mode>3): Use VI mode iterator.
9926 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9927 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9928 (*andnottf3): Handle AVX three-operand constraints.
9929 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9930
b1372d5d 99312011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 9932 Robert Millan <rmh@gnu.org>
b1372d5d
JM
9933
9934 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9935 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9936 GNU_USER_DYNAMIC_LINKER64): Define.
9937 (REG_NAME): Don't undefine.
9938 (MD_UNWIND_SUPPORT): Undefine.
9939 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9940 (REG_NAME): Don't undefine.
9941 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 9942 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 9943
761c0c6e
JM
99442011-04-11 Joseph Myers <joseph@codesourcery.com>
9945
9946 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9947 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9948
26e0228f
XDL
99492011-04-11 Xinliang David Li <davidxl@google.com>
9950
9951 * value-profile.c (check_ic_target): New function.
9952 (gimple_ic_transform): Sanity check indirect call target.
9953 * gimple-low.c (gimple_check_call_args): Interface change.
9954 (gimple_check_call_matching_types): New function.
9955 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
9956
99572011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9958
9959 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9960 tree-pretty-print.h & realmpfr.h.
9961
a58dfa49
VM
99622011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9963
9964 PR middle-end/48464
9965 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9966 (setup_allocno_and_important_classes): Ditto.
9967
107fd1c1
JM
99682011-04-11 Joseph Myers <joseph@codesourcery.com>
9969
9970 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9971 GNU_USER_DYNAMIC_LINKER.
9972 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9973 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9974 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9975 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9976 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9977 GNU_USER_TARGET_OS_CPP_BUILTINS.
9978 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9980 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9982 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9983 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9984 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9985 GNU_USER_TARGET_OS_CPP_BUILTINS.
9986 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9987 GNU_USER_DYNAMIC_LINKER.
9988 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9989 GNU_USER_TARGET_OS_CPP_BUILTINS.
9990 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9992 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9993 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9994 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9995 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9996 GNU_USER_DYNAMIC_LINKER64): Remove.
9997 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9998 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9999 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10000 GNU_USER_DYNAMIC_LINKER.
10001 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10002 GNU_USER_TARGET_OS_CPP_BUILTINS.
10003 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10004 GNU_USER_TARGET_OS_CPP_BUILTINS.
10005 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10006 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10007 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10008 GNU_USER_TARGET_OS_CPP_BUILTINS.
10009 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10010 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10011 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10012 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10014 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10015 GNU_USER_DYNAMIC_LINKER.
10016 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10017 GNU_USER_TARGET_OS_CPP_BUILTINS.
10018 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10019 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10020 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10021 GNU_USER_DYNAMIC_LINKER.
10022 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10023 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10024 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10025 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10026 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10027 GNU_USER_DYNAMIC_LINKER.
10028 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10029 GNU_USER_DYNAMIC_LINKERN32.
10030 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10031 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10032 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10033 GNU_USER_DYNAMIC_LINKER32.
10034 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10035 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10036 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10037 GNU_USER_DYNAMIC_LINKER.
10038 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10039 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10040 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10041 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10042 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
10043 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10044 GNU_USER_DYNAMIC_LINKER32.
10045 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10046 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10047 GNU_USER_DYNAMIC_LINKER.
10048 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10051 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10052 GNU_USER_DYNAMIC_LINKER64.
10053 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10054 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10055 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10056 GNU_USER_DYNAMIC_LINKER.
10057 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10058 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10059 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10060 GNU_USER_DYNAMIC_LINKER.
10061 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10062 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10063 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10064 GNU_USER_DYNAMIC_LINKER32.
10065 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10066 GNU_USER_DYNAMIC_LINKER64.
10067 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10068 GNU_USER_DYNAMIC_LINKER64.
10069 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10071 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10072 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10073 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 10074
e24609cf
JM
100752011-04-11 Joseph Myers <joseph@codesourcery.com>
10076
10077 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10078 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10079 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10080 GNU_USER_DYNAMIC_LINKER.
10081 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10082 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10083 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10084 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10085 GNU_USER_DYNAMIC_LINKER64.
10086 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10087 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10088 GNU_USER_LINK_EMULATION.
10089 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10090 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10091 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10092 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10093 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10094 CPP_SPEC, CC1_SPEC): Remove.
10095 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10096 (GNU_USER_DYNAMIC_LINKER): Define.
10097 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10098 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10099 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10100 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10101 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10102 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10103 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10104 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10105 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10106 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10107 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10108 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10109 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10110 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10111 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10112 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10113 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10114 GNU_USER_DYNAMIC_LINKER.
10115 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10116 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10117 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10118 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10119 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10120 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10121 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10122 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10123 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 10124 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 10125
b8ce4e94
KT
101262011-04-11 Kai Tietz <ktietz@redhat.com>
10127
10128 PR target/9601
10129 PR target/11772
10130 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10131 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10132 comment.
10133 (ix86_is_msabi_thiscall): Removed.
10134 (ix86_is_type_thiscall): Likewise.
10135 (ix86_get_callcvt): New function.
10136 (ix86_comp_type_attributes): Simplify check.
10137 (ix86_function_regparm): Use ix86_get_callcvt for calling
10138 convention attribute checks.
10139 (ix86_return_pops_args): Likewise.
10140 (ix86_static_chain): Likewise.
10141 (x86_this_parameter): Likewise.
10142 (x86_output_mi_thunk): Likewise.
10143 (ix86_function_type_abi): Optimize check for types without attributes.
10144 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10145 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10146 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10147 by flag-values.
10148 (IX86_BASE_CALLCVT): Helper macro.
10149 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10150 Use ix86_get_callcvt for calling convention attribute checks and avoid
10151 symbol-decoration for stdcall in TARGET_RTD case.
10152 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10153 Likewise.
10154 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10155 for declaration.
10156
798dd0ba
UB
101572011-04-11 Uros Bizjak <ubizjak@gmail.com>
10158
10159 * config/i386/sse.md (VI_128): New mode iterator.
10160 (VI12_128): Rename from SSEMODE12.
10161 (VI14_128): Rename from SSEMODE14.
10162 (VI124_128): New mode iterator.
10163 (VI24_128): Rename from SSEMODE248.
10164 (VI248_128): Rename from SSEMODE248.
10165 (SSEMODE124C8): Remove.
10166 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10167 (*sse2_<plusminus_insn><mode>3): Merge with
10168 *avx_<plusminus_insn><mode>3.
10169 (*mulv8hi3): Merge with *avx_mulv8hi3.
10170 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10171 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10172 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10173 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10174 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10175 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10176 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10177 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10178 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10179 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10180 (*<smaxmin:code>v8hi3): Ditto.
10181 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10182 (*<smaxmin:code>v16qi3): Ditto.
10183 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10184 (*sse2_eq<mode>3): Ditto.
10185 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10186 (*sse2_gt<mode>3): Ditto.
10187 (vcondv2di): Split out of vcond<mode>.
10188 (vconduv2di): Split out of vcondu<mode>.
10189
956011be
RG
101902011-04-11 Richard Guenther <rguenther@suse.de>
10191
10192 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10193 before calling tree_low_cst.
10194
e6313a78
RG
101952011-04-11 Richard Guenther <rguenther@suse.de>
10196
10197 * stor-layout.c (layout_type): Compute all array index size operations
10198 in the original type.
10199 (initialize_sizetypes): Add comment.
10200 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10201
e69d7376
JM
102022011-04-11 Joseph Myers <joseph@codesourcery.com>
10203
10204 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10205
9f9ebcdf
MJ
102062011-04-11 Martin Jambor <mjambor@suse.cz>
10207
10208 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10209 of cgraph_node, handle NULL return value.
10210 (cgraph_global_info): Likewise.
10211 (cgraph_rtl_info): Likewise.
10212 * tree-inline.c (estimate_num_insns): Likewise.
10213 * gimplify.c (unshare_body): Likewise.
10214 (unvisit_body): Likewise.
10215 (gimplify_body): Likewise.
10216 * predict.c (optimize_function_for_size_p): Likewise.
10217 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10218 (call_may_clobber_ref_p_1): Likewise.
10219 * varasm.c (function_section_1): Likewise.
10220 (assemble_start_function): Likewise.
10221
581985d7
MJ
102222011-04-11 Martin Jambor <mjambor@suse.cz>
10223
10224 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10225 of cgraph_node.
10226 * final.c (rest_of_clean_state): Likewise.
10227 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10228 * passes.c (pass_init_dump_file): Likewise.
10229 (execute_all_ipa_transforms): Likewise.
10230 (function_called_by_processed_nodes_p): Likewise.
10231 * predict.c (maybe_hot_frequency_p): Likewise.
10232 (probably_never_executed_bb_p): Likewise.
10233 (compute_function_frequency): Likewise.
10234 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10235 (unnest_nesting_tree_1): Likewise.
10236 (lower_nested_functions): Likewise.
10237 * tree-optimize.c (execute_fixup_cfg): Likewise.
10238 (tree_rest_of_compilation): Likewise.
10239 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10240 * tree-sra.c (ipa_early_sra): Likewise.
10241 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10242 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10243 * ipa.c (record_cdtor_fn): Likewise.
10244 * ipa-inline.c (cgraph_early_inlining): Likewise.
10245 (compute_inline_parameters_for_current): Likewise.
10246 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10247 * ipa-pure-const.c (local_pure_const): Likewise.
10248 * ipa-split.c (split_function): Likewise.
10249 (execute_split_functions): Likewise.
10250 * cgraphbuild.c (build_cgraph_edges): Likewise.
10251 (rebuild_cgraph_edges): Likewise.
10252 (cgraph_rebuild_references): Likewise.
10253 (remove_cgraph_callee_edges): Likewise.
10254 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10255 (verify_cgraph_node): Likewise.
10256 (cgraph_analyze_functions): Likewise.
10257 (cgraph_preserve_function_body_p): Likewise.
10258 (save_inline_function_body): Likewise.
10259 (save_inline_function_body): Likewise.
10260 * tree-inline.c (copy_bb): Likewise.
10261 (optimize_inline_calls): Likewise.
10262
57dbdc5a
MJ
102632011-04-11 Martin Jambor <mjambor@suse.cz>
10264
10265 PR tree-optimization/48195
10266 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10267 ipa_check_create_edge_args.
10268 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10269 ipa_check_create_edge_args.
10270 * ipa-inline.c (inline_generate_summary): Do not call
10271 ipa_check_create_node_params and ipa_check_create_edge_args.
10272 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10273 ipa_check_create_edge_args.
10274
d108e679
AS
102752011-04-09 Anatoly Sokolov <aesok@post.ru>
10276
10277 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10278 instead of loop.
10279 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10280 * function.c (record_hard_reg_sets): Likewise.
10281 * ira.c (compute_regs_asm_clobbered): Likewise.
10282 * sched-deps.c (sched_analyze_1): Likewise.
10283 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10284
3411bc59
XDL
102852011-04-09 Xinliang David Li <davidxl@google.com>
10286
10287 PR tree-optimization/PR48484
10288 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10289 has_valid_pred lazily
10290
b365495a
DS
102912011-04-09 Duncan Sands <baldrick@free.fr>
10292
10293 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10294
68bc509a
EB
102952011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10296
10297 * combine.c (combine_validate_cost): Adjust comments. Set registered
10298 cost of I0 to zero at the end, if any.
10299
041e059f
XDL
103002011-04-08 Xinliang David Li <davidxl@google.com>
10301
68bc509a
EB
10302 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10303 to insane profile data.
041e059f 10304
444b3995
XDL
103052011-04-08 Xinliang David Li <davidxl@google.com>
10306
10307 * ipa-cp.c (ipcp_update_profiling): Correct
10308 negative scale factor due to insane profile data.
10309
6a801cf2
XDL
103102011-04-08 Xinliang David Li <davidxl@google.com>
10311
10312 * final.c (dump_basic_block_info): New function.
10313 (final): Dump basic block.
10314 (final_scan_insn): Remove old dump.
10315
d5f3624e
SK
103162011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10317
68bc509a
EB
10318 PR target/47829
10319 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10320 crtbegin/crtend.
d5f3624e 10321
42821aff
MM
103222011-04-08 Michael Matz <matz@suse.de>
10323
10324 PR middle-end/48389
10325 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10326 functions.
10327 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10328 * rtl.h (rebuild_jump_labels_chain): Declare.
10329 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10330 insns inserted on edges.
10331
ad7be009
JM
103322011-04-08 Joseph Myers <joseph@codesourcery.com>
10333
10334 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10335 * config/arm/arm-arches.def: New.
10336 * config/arm/arm-opts.h: New.
10337 * config/arm/genopt.sh: New.
10338 * config/arm/arm-tables.opt: New (generated).
10339 * config/arm/arm.c (arm_handle_option, arm_target_help,
10340 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10341 (all_architectures): Get most table contents from arm-arches.def.
10342 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10343 arm_selected_tune here.
10344 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10345 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10346 (march=, mcpu=, mtune=): Use Enum and Var.
10347 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10348 (arm.o): Update dependencies.
ecbb6fb7 10349
42821aff 103502011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
10351
10352 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10353 of header_file.
10354 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10355 (write_typed_alloc_defns): Likewise.
10356 (main): Calls write_typed_alloc_defns with output_header.
10357
8d189b3f
VM
103582011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10359
68bc509a 10360 PR inline-asm/48435
8d189b3f
VM
10361 * ira-color.c (setup_profitable_hard_regs): Add comments.
10362 Don't take prohibited hard regs into account.
10363 (setup_conflict_profitable_regs): Rename to
10364 get_conflict_profitable_regs.
10365 (check_hard_reg_p): Check prohibited hard regs.
10366
44f370bf
NF
103672011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10368
10369 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10370 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10371 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10372
483d7ad3
JDA
103732011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10374
10375 PR target/48366
10376 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 10377 move from floating point to shift amount register.
483d7ad3
JDA
10378 (emit_move_sequence): Remove secondary reload support for floating
10379 point to shift amount amount register copies.
10380 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10381 amount register copies.
10382 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10383 register, return false if mode isn't a scalar integer mode.
10384 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10385
97e03fa1
RG
103862011-04-08 Richard Guenther <rguenther@suse.de>
10387
10388 * gimple.c (gimple_call_flags): Remove kludge.
10389
9d40778b
AM
103902011-04-08 Alexander Monakov <amonakov@ispras.ru>
10391
10392 * sel-sched.c (sel_region_init): Move call to
10393 sel_setup_region_sched_flags after setup_current_loop_nest.
10394
19ac7892
AB
103952011-04-08 Andrey Belevantsev <abel@ispras.ru>
10396
10397 PR rtl-optimization/48272
19ac7892
AB
10398 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10399 init_insn_reg_pressure_info. Adjust a caller.
10400 * sched-int.h (init_insn_reg_pressure_info): Declare.
10401 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10402 when sched-pressure is enabled.
10403
0f8c63cc
RG
104042011-04-08 Richard Guenther <rguenther@suse.de>
10405
10406 * gimple.c (gimple_set_modified): Do not queue calls to
10407 MODIFIED_NORETURN_CALLS here ...
10408 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10409
5e5a425e
RG
104102011-04-08 Richard Guenther <rguenther@suse.de>
10411
10412 PR lto/48467
10413 * toplev.c (lang_dependent_init): Do not open asm_out_file
10414 in WPA mode, nor perform debug machinery initialization.
10415 (finalize): Do not unlink asm_out_file in WPA mode.
10416
9bfc434b
RG
104172011-04-08 Richard Guenther <rguenther@suse.de>
10418
10419 * gimple.h (gimple_call_fntype): New function.
10420 (gimple_call_return_type): Use it.
10421 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10422 * gimple-low.c (gimple_check_call_args): Likewise.
10423 * gimple.c (gimple_call_flags): Likewise.
10424 (gimple_call_arg_flags): Likewise.
10425 (gimple_call_return_flags): Likewise.
10426 * tree-cfg.c (verify_gimple_call): Likewise.
10427 (do_warn_unused_result): Likewise.
10428 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10429 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10430
7c1f0b40
DM
104312011-04-08 Dmitry Melnik <dm@ispras.ru>
10432
10433 PR rtl-optimization/48235
10434 * sel-sched.c (code_motion_process_successors): Recompute the last
10435 insn in basic block if control flow changed.
10436 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10437 Update condition for ilist_remove.
10438
ea4d630f
AM
104392011-04-08 Alexander Monakov <amonakov@ispras.ru>
10440
10441 PR rtl-optimization/48302
10442 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10443 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10444 it to record added preheader blocks.
10445 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10446 on to sel_add_loop_preheaders.
10447 (sel_region_init): Move call to setup_current_loop_nest after
10448 sel_init_bbs.
10449
07643d76
AM
104502011-04-08 Alexander Monakov <amonakov@ispras.ru>
10451
10452 PR target/48273
10453 * cfgloop.h (loop_has_exit_edges): New helper.
10454 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10455 non-clonable.
10456 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10457 that have no exit edges.
10458
1f3b2b4e
AM
104592011-04-08 Alexander Monakov <amonakov@ispras.ru>
10460
10461 PR rtl-optimization/48442
10462 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10463 all callers. Adjust assert.
10464
554f1948
JJ
104652011-04-08 Jakub Jelinek <jakub@redhat.com>
10466
10467 PR tree-optimization/48377
10468 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10469 is_packed to true even for types with smaller TYPE_ALIGN than
10470 TYPE_SIZE.
10471
ddf72388
RG
104722011-04-08 Richard Guenther <rguenther@suse.de>
10473
10474 PR bootstrap/48513
10475 * doc/tm.texi: Re-generate.
10476
0c27e2d8
WG
104772011-04-08 Wei Guozhi <carrot@google.com>
10478
10479 PR target/47855
10480 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10481 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10482 * config/arm/arm.md (*push_multi): Change the length computation to
10483 call a C function.
10484
07c5f94e
AS
104852011-04-08 Anatoly Sokolov <aesok@post.ru>
10486
10487 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10488 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10489 * doc/tm.texi: Regenerate.
10490 * system.h (ASM_OUTPUT_BSS): Poison.
10491 * varasm.c (asm_output_bss): Remove function.
10492 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 10493
07c5f94e
AS
10494 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10495 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10496 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10497 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10498 Likewise.
10499 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10500 Likewise.
10501 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10502 Likewise.
10503 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10504
5f2c36e1
JM
105052011-04-07 Joseph Myers <joseph@codesourcery.com>
10506
10507 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10508 EnumValue lines.
10509
39e7722b
JM
105102011-04-07 Joseph Myers <joseph@codesourcery.com>
10511
10512 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10513 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10514 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10515 OPT_mcpu32.
10516 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10517 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10518 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10519 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10520 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10521 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10522 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10523 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10524 options. Don't map other m68k options manually. Don't handle
10525 old-style options as canonical.
10526 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 10527 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 10528
cf103ca4
EB
105292011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10530
10531 * basic-block.h (force_nonfallthru): Move to...
10532 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10533 (force_nonfallthru): ...here.
10534 * cfghooks.c (force_nonfallthru): New function.
10535 * cfgrtl.c (force_nonfallthru): Rename into...
10536 (rtl_force_nonfallthru): ...this.
10537 (commit_one_edge_insertion): Do not set AUX field.
10538 (commit_edge_insertions): Do not discover new basic blocks.
10539 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10540 (cfg_layout_rtl_cfg_hooks): Likewise.
10541 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10542 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10543 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10544
14431f58
AS
105452011-04-07 Anatoly Sokolov <aesok@post.ru>
10546
10547 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10548 Remove macros.
10549
3729983c
UB
105502011-04-07 Uros Bizjak <ubizjak@gmail.com>
10551
10552 * config/i386/sse.md: Update copyright year.
10553 (avxcvtvecmode): Remove.
10554 (sse_movhlps): Merge with *avx_movhlps.
10555 (sse_movlhps): Merge with *avx_movlhps.
10556 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10557 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10558 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10559 (sse_loadhps): Merge with *avx_loadhps.
10560 (sse_storelps): Merge with *avx_storelps.
10561 (sse_loadlps): Merge with *avx_loadlps.
10562 (sse_movss): Merge with *avx_movss.
10563 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10564 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10565 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10566 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10567 (vec_set<mode>_0): Ditto.
10568 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10569 (sse4_1_insertps): Merge with *avx_insertps.
10570 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10571 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10572 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10573 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10574 (sse2_storehpd): Merge with *avx_storehpd.
10575 (sse2_loadhpd): Merge with *avx_loadhpd.
10576 (sse2_loadlpd): Merge with *avx_loadlpd.
10577 (sse2_movsd): Merge with *avx_movsd.
10578 (*vec_concatv2df): Merge with *vec_concatv2df.
10579
4e626909
JJ
105802011-04-07 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR debug/48343
10583 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 10584 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
10585 (try_combine): Add last_combined_insn parameter, pass it instead of
10586 i3 to propagate_for_debug.
10587
3729983c 105882011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
10589
10590 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10591 to handle MDR <-> data register transfers.
10592 (movhi_internal): Likewise.
10593
20c03367
AM
105942011-04-07 Alan Modra <amodra@gmail.com>
10595
10596 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10597 previous stack info.
10598
bf22920b
TV
105992011-04-07 Tom de Vries <tom@codesourcery.com>
10600
10601 PR target/43920
10602 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10603 flow_find_cross_jump. Swap variables to implement backward replacement.
10604 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10605
823918ae
TV
106062011-04-07 Tom de Vries <tom@codesourcery.com>
10607
10608 PR target/43920
10609 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
10610 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10611 and bb2.
10612 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10613 src1 or src2. Redirect edges to the last basic block. Update
10614 frequency and count on multiple basic blocks in case of fallthru.
823918ae 10615
472c95f5
TV
106162011-04-07 Tom de Vries <tom@codesourcery.com>
10617
10618 PR target/43920
10619 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10620 function.
3729983c
UB
10621 (old_insns_match_p): Change return type. Replace return false/true
10622 with return dir_none/dir_both. Use can_replace_by.
10623 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10624 direction from dir_p. Register replacement direction in dir, last_dir
10625 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
10626 merge_dir. Return replacement direction in dir_p.
10627 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10628 return type of old_insns_match_p.
10629 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10630 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10631 flow_find_cross_jump.
10632 * basic-block.h (enum replace_direction): New type.
10633 (flow_find_cross_jump): Add parameter to declaration.
10634
a95d4000
UB
106352011-04-06 Uros Bizjak <ubizjak@gmail.com>
10636
10637 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10638 (AVXMODEDCVTPS2DQ): Ditto.
10639 (VEC_FLOAT_MODE): Ditto.
10640 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10641 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10642 (<any_logic:code><mode>3): Use VF mode iterator.
10643 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10644 Use VF mode iterator.
10645 (copysign<mode>3): Use VF mode iterator.
10646 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10647 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10648 (*<any_logic:code><MODEF:mode>3): Merge with
10649 *avx_<any_logic:code><MODEF:mode>3.
10650 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10651 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10652 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10653 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10654 (sse2_cvtdq2ps): Use %v modifier.
10655 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10656 (avx_cvtps2dq<avxmodesuffix>): Remove.
10657 (sse2_cvtps2dq): Use %v modifier.
10658 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10659 (avx_cvttps2dq<avxmodesuffix>): Remove.
10660 (sse2_cvttps2dq): Use %v modifier.
10661 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10662 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10663 (sse2_cvtsd2siq): Fix insn template.
10664 (sse2_cvtsd2siq_2): Ditto.
10665 (sse2_cvttsd2siq): Ditto.
10666 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10667 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10668
ad01c437
JM
106692011-04-06 Joseph Myers <joseph@codesourcery.com>
10670
10671 * gcov-io.c: Use GCC Runtime Library Exception.
10672
fe846284
JJ
106732011-04-06 Jakub Jelinek <jakub@redhat.com>
10674
10675 PR debug/48466
10676 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10677 as base_reg whatever register reg has been eliminated to, instead
10678 of hardcoding STACK_POINTER_REGNUM.
10679
acce4e77
JM
106802011-04-06 Joseph Myers <joseph@codesourcery.com>
10681
10682 * doc/tm.texi.in: Document C target hooks as separate from general
10683 target hooks.
10684 * doc/tm.texi: Regenerate.
10685 * genhooks.c (struct hook_desc): Add docname field.
10686 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10687 docname field.
10688 (hook_array): Include c-target.def.
10689 (emit_documentation): Use docname field in output.
10690 (emit_init_macros): Take docname argument. Only emit definitions
10691 for hooks matching docname.
10692 (main): Expect additional arguments in all cases. Pass argument
10693 to emit_init_macros.
10694 * target.def: Move initial macro definitions and comments to
10695 target-hooks-macros.h.
10696 (gcc_targetcm): Move to c-family/c-target.def.
10697 * target.h (targetcm): Move declaration to c-family/c-target.h.
10698 * targhooks.c (default_handle_c_option): Move to
10699 c-family/c-opts.c.
10700 * targhooks.h (default_handle_c_option): Move declaration to
10701 c-family/c-common.h.
10702 * target-hooks-macros.h: New file.
10703 * config.gcc (target_has_targetcm): Define and use to add to
10704 c_target_objs and cxx_target_objs.
10705 * config/default-c.c: New file.
10706 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10707 of target.h and target-def.h.
10708 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10709 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10710 darwin_check_cfstring_format_arg): Make static.
10711 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10712 TARGET_STRING_OBJECT_REF_TYPE_P,
10713 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10714 * config/darwin-protos.h (darwin_objc_construct_string,
10715 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10716 declare.
10717 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10718 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 10719 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
10720 * config/t-darwin (darwin-c.o): Update dependencies.
10721 * system.h (TARGET_HAS_TARGETCM): Poison.
10722 * Makefile.in (TARGET_H): Update.
10723 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10724 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10725 (default-c.o): New target.
10726 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 10727 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
10728 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10729 c-target.def.
10730 (build/genhooks.o): Update dependencies.
10731
275b4baa 107322011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 10733
275b4baa
RG
10734 * ipa-inline.c (enum inlining_mode): Remove.
10735 (cgraph_flatten): Use some other token.
10736 (cgraph_edge_early_inlinable_p): New function, split out from ...
10737 (cgraph_perform_always_inlining): New function, split out from ...
10738 (cgraph_decide_inlining_incrementally): ... here.
10739 (cgraph_mark_inline_edge): Adjust.
10740 (cgraph_early_inlining): Re-structure.
10741 (pass_early_inline): Require SSA form.
10742
f15b8bdf 107432011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
10744 Julian Brown <julian@codesourcery.com>
10745 Mark Shinwell <shinwell@codesourcery.com>
10746
10747 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10748 LO_REGS only for Thumb-1.
10749 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10750 be used in short instructions when optimising for size on Thumb-2.
10751
516426da
EB
107522011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10753
10754 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10755 associated with user returns to be preserved.
10756
96621ebf
TG
107572011-04-06 Tristan Gingold <gingold@adacore.com>
10758
f15b8bdf
EB
10759 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10760 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
10761 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10762 if XCOFF_DEBUGGING_INFO.
10763
07c0852e
UB
107642011-04-06 Uros Bizjak <ubizjak@gmail.com>
10765
10766 * config/i386/i386.md (attribute isa): New.
10767 (attribute enabled): New.
10768 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10769 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10770 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10771 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10772 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10773 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10774 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10775 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10776
10777 * config/i386/sse.md (VF): New mode iterator.
10778 (VF1): Ditto.
10779 (VF2): Ditto.
10780 (VF_128): Ditto.
10781 (SSEMODEF4): Remove.
10782 (attribute sse): Handle V8SF and V4DF modes.
10783 (<absneg:code><mode>2): Use VF mode iterator.
10784 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10785 mode iterator.
10786 (<plusminus_insn><mode>3): Use VF mode iterator.
10787 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10788 Use VF mode iterator.
10789 (<sse>_vm<plusminus_insn><mode>3): Merge with
10790 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10791 (mul<mode>3): Use VF mode iterator.
10792 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10793 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10794 mode iterator.
10795 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10796 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10797 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10798 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10799 mode iterator.
10800 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10801 Use VF1 mode iterator.
10802 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10803 (sqrt<VF2:mode>2): New expander.
10804 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10805 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10806 and sqrtv2df2. Use VF mode iterator.
10807 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10808 mode iterator.
10809 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10810 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10811 Use VF1 mode iterator.
10812 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10813 (<smaxmin:code><mode>3): Use VF mode iterator.
10814 (*<smaxmin:code><mode>3_finite): Merge with
10815 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10816 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10817 (<sse>_vm<smaxmin:code><mode>2): Merge with
10818 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10819 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10820 mode iterator.
10821 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10822 mode iterator.
10823 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10824 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10825 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10826 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10827 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10828 VF mode iterator.
10829 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10830 Use VF_128 mode iterator.
10831 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10832 mode iterator.
10833 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10834 VF_128 mode iterator.
10835 (vcond<mode>): Use VF mode iterator.
10836 * config/i386/predicates.md (sse_comparison_operator): Merge with
10837 avx_comparison_float_operator. Do not declare as special_predicate.
10838 * config/i386/i386.c (struct builtin_description): Update for renamed
10839 compare patterns.
10840 (ix86_expand_args_builtin): Ditto.
10841 (ix86_expand_sse_compare_mask): Ditto.
10842
ff5d142c
RG
108432011-04-06 Richard Guenther <rguenther@suse.de>
10844
10845 * tree-inline.c (estimate_num_insns): For calls simply account
10846 for all passed arguments and a used return value.
10847
d7d1d041 108482011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 10849
d7d1d041
RG
10850 PR tree-optimization/47663
10851 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10852 call_stmt_time fields.
10853 (cgraph_edge_inlinable_p): Declare.
10854 (cgraph_edge_recursive_p): New inline function.
10855 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10856 (cgraph_clone_edge): Copy it.
10857 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10858 Account for call stmt time.
10859 (cgraph_estimate_time_after_inlining): Take edge argument.
10860 (cgraph_estimate_edge_growth): Account call stmt size.
10861 (cgraph_estimate_size_after_inlining): Take edge argument.
10862 (cgraph_mark_inline_edge): Adjust.
10863 (cgraph_check_inline_limits): Likewise.
10864 (cgraph_recursive_inlining_p): Remove.
10865 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10866 (cgraph_decide_recursive_inlining): Take edge argument and
10867 adjust.
10868 (cgraph_decide_inlining_of_small_functions): Do not avoid
10869 diags for recursive inlining here.
10870 (cgraph_flatten): Adjust.
10871 (cgraph_decide_inlining_incrementally): Likewise.
10872 (estimate_function_body_sizes): Remove call cost handling.
10873 (compute_inline_parameters): Initialize caller edge call costs.
10874 (cgraph_estimate_edge_growth): New function.
10875 (cgraph_estimate_growth): Use it.
10876 (cgraph_edge_badness): Likewise.
10877 (cgraph_check_inline_limits): Take an edge argument.
10878 (cgraph_decide_inlining_of_small_functions): Adjust.
10879 (cgraph_decide_inlining): Likewise.
10880 * tree-inline.c (estimate_num_insns): Only account for call
10881 return value if it is used.
10882 (expand_call_inline): Avoid diagnostics on recursive inline
10883 functions here.
10884 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10885 (input_edge): Input edge call costs.
10886
2feb95f7
RO
108872011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10888
10889 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10890
26fbd9c2
JW
108912011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10892
10893 * doc/invoke.texi (Spec Files): Fix typo.
10894
694dc0ca
EB
108952011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10896
10897 * profile.c (branch_prob): Move declaration of local variable. Remove
10898 obsolete ??? comment. Expand the location explicitly instead of using
10899 the LOCATION_FILE and LOCATION_LINE macros.
10900
4925d0d5
WG
109012011-04-06 Wei Guozhi <carrot@google.com>
10902
10903 PR target/47855
10904 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10905 (arm_cond_branch): Likewise.
10906 (arm_cond_branch_reversed): Likewise.
10907 (arm_jump): Likewise.
10908 (push_multi): Likewise.
10909 * config/arm/constraints.md (Py): New constraint.
10910
f55dfa2f
NF
109112011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10912
10913 PR bootstrap/48471
10914 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10915 Move these...
10916 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10917 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10918 #ifdef DBX_DEBUGGING_INFO.
10919
fca96842
BS
109202011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10921
10922 PR bootstrap/48403
10923 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10924 if old and new states differ.
10925
30b83e38
JM
109262011-04-05 Joseph Myers <joseph@codesourcery.com>
10927
10928 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10929 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10930 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10931 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10932 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10933 mcfv4e): Use Alias.
10934 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10935 ColdFire options to -mcpu= options.
10936
277a9aa5
JL
109372011-04-05 Jeff Law <law@redhat.com>
10938
10939 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10940 check if BB is a successor of LOOP->header and return
10941 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10942
c1e2610e
SB
109432011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10944
10945 * cprop.c (struct reg_use): Remove.
10946 (reg_use_table): Make an array of RTX.
10947 (find_used_regs, constprop_register, local_cprop_pass,
10948 bypass_block): Simplify users of reg_use_table.
10949 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10950 on one of the uses found by find_used_regs.
10951
e532f586
NF
109522011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10953
10954 PR bootstrap/48469
10955 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10956 declaration.
10957
3fb7c055
NF
109582011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10959
10960 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10961 as an rtx.
10962 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10963
b71b43d9
SB
109642011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10965
10966 PR middle-end/48441
10967 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10968
b405b274
NF
109692011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10970
10971 * combine.c: Include obstack.h.
10972 (struct insn_link): Define.
10973 (uid_log_links): Adjust type.
10974 (FOR_EACH_LOG_LINK): New macro.
10975 (insn_link_obstack): Declare.
10976 (alloc_insn_link): Define.
10977 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10978 type of link variables.
10979 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10980 (try_combine, record_promoted_values, distribute_notes): Likewise.
10981 (distribute_links): Likewise. Tweak prototype.
10982 (clear_log_links): Delete.
10983 (adjust_for_new_dest): Call alloc_insn_link.
10984 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10985
6409abe3
NF
109862011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10987
10988 * gcse.c (modify_mem_list): Convert to an array of VECs.
10989 (canon_modify_mem_list, compute_transp): Tweak formatting.
10990 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10991 (load_killed_in_block_p): Likewise.
10992 (record_last_mem_set_info): Likewise.
10993 (clear_modify_mem_tables): Likewise.
10994
170d8157
TV
109952011-04-05 Tom de Vries <tom@codesourcery.com>
10996
10997 PR middle-end/48461
10998 * function.c (emit_use_return_register_into_block): Only define if
10999 HAVE_return.
11000
c5911a55
EB
110012011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11002
11003 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11004
abd016e6
JM
110052011-04-05 Joseph Myers <joseph@codesourcery.com>
11006
11007 * config/rx/rx-opts.h: New.
11008 * config/rx/rx.c (rx_cpu_type): Remove.
11009 (rx_handle_option): Don't assert that global structures are in
11010 use. Access variables via opts pointer. Defer most handling of
11011 OPT_mint_register_. Use error_at.
11012 (rx_option_override): Handle deferred OPT_mint_register_ here.
11013 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11014 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11015 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11016 (rx_cpu_types): New Enum and EnumValue entries.
11017 (mint-register=): Use Defer and use Var accordingly.
11018
1ed13f83
NF
110192011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11020
11021 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11022 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11023 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11024 Move these...
11025 (debug_free_queue, debug_nesting, symbol_queue_index):
11026 ...and these...
11027 * dbxout.c: ...to here. Make static.
11028
6ce1edcf
NF
110292011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11030
11031 * gcse.c (modify_pair): Define. Define a VEC of it.
11032 (canon_modify_mem_list): Convert to an array of VECs.
11033 (free_insn_expr_list_list): Delete.
11034 (clear_modify_mem_tables): Call VEC_free instead.
11035 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11036 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11037 (canon_list_insert, compute_transp): Likewise.
11038
c201ac94
TV
110392011-04-05 Tom de Vries <tom@codesourcery.com>
11040
11041 PR target/43920
11042 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11043 for size.
11044
4c029f40
TV
110452011-04-05 Tom de Vries <tom@codesourcery.com>
11046
11047 PR target/43920
11048 * function.c (emit_use_return_register_into_block): New function.
11049 (thread_prologue_and_epilogue_insns): Use
11050 emit_use_return_register_into_block.
11051
2a562b0a
TV
110522011-04-05 Tom de Vries <tom@codesourcery.com>
11053
11054 PR target/43920
11055 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11056 insn.
11057
0248bceb
TV
110582011-04-05 Tom de Vries <tom@codesourcery.com>
11059
11060 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11061
ffa94123
YZ
110622011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11063
798dd0ba
UB
11064 * config/arm/arm.md (define_constants for unspec): Replace with
11065 define_c_enum.
11066 (define_constants for unspecv): Replace with define_c_enum.
11067 * config/arm/neon.md (define_constants for unspec): Replace with
11068 define_c_enum.
ffa94123 11069
3b8f9b46
RH
110702011-04-04 Richard Henderson <rth@redhat.com>
11071
720cf80f 11072 PR bootstrap/48400
3b8f9b46
RH
11073 * dwarf2out.c (output_line_info): Always emit line info from
11074 at least one section.
11075 (dwarf2out_init): Create text_section_line_info here ...
11076 (set_cur_line_info_table): ... not here.
11077
720cf80f 110782011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
11079
11080 PR target/48380
11081 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 11082 not called.
e5b0e1ca 11083
720cf80f 11084 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 11085
196565d4
SB
110862011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11087
b77f9eab
SB
11088 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11089 (expr_equiv_p): Remove.
11090 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11091 (hash_scan_set): Update call to insert_set_in_table.
11092 (dump_hash_table): Dump <dest, src> pair.
11093 (lookup_set): Simplify. Lookup <dest, src> pair.
11094 (compute_transp): Remove, fold heavily simplified code into...
11095 (compute_local_properties): ...here. Expect COMP and TRANSP
11096 unconditionally.
11097 (find_avail_set): Take set directly from struct expr.
11098 (find_bypass-set): Likewise.
11099 (bypass_block): Likewise.
11100 (cprop_insn): Likewise. Remove redundant INSN_P test.
11101
384d7a55
SB
11102 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11103 checks on form of COND from find_implicit_sets to here.
11104 (find_implicit_sets): Cleanup control flow. Split critical edges
11105 if it exposes implicit sets. Allocate/resize implicit_sets as
11106 necessary.
11107 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11108 changed something. Run df_analyze after find_implicit_sets if any
11109 edges were split. Do not allocate implicit_sets here.
11110
3084ce69
SB
11111 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11112 (gcse_obstack): Renamed to cprop_obstack.
11113 (GNEW, GNEWVEC, GNEWVAR): Remove.
11114 (gmalloc): Remove.
11115 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11116 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11117 (gcse_alloc): Likewise, and rename to cprop_alloc.
11118 (alloc_gcse_men, free_gcse_mem): Remove.
11119 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11120 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11121 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11122
196565d4
SB
11123 * cprop.c (oprs_not_set_p): Remove.
11124 (mark_set, mark_clobber): Remove.
11125 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11126 (reg_not_set_p): New function.
11127 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11128 (cprop_insn): Likewise.
11129 (cprop_jump): Use FOR_EACH_EDGE.
11130
9b69cf83
BS
111312011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11132
11133 PR bootstrap/48403
11134 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11135 (rank_for_schedule): Use scheduled_insns vector instead of
11136 last_scheduled_insn.
11137 (ok_for_early_queue_removal): Likewise.
11138 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11139 we have a dbg_cnt.
11140 (choose_ready): Likewise.
11141 (commit_schedule): Use VEC_iterate.
11142 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11143 a dbg_cnt, use it and ensure the first insn is in the ready list.
11144 (haifa_sched_init): Allocate scheduled_insns.
11145 (sched_extend_ready_list): Don't allocate it; reserve space.
11146 (haifa_sched_finish): Free it.
11147
24f48c2f
JM
111482011-04-04 Joseph Myers <joseph@codesourcery.com>
11149
11150 * optc-gen.awk: Always remove type from Variable entry before
11151 recording in var_seen.
11152
8effe856
EB
111532011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11154
11155 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11156 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11157 call to tidy_fallthru_edges.
11158
413519ae
JM
111592011-04-04 Joseph Myers <joseph@codesourcery.com>
11160
11161 * doc/options.texi (ToLower): Document.
3729983c 11162 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
11163 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11164 * opts.h (cl_option): Add cl_tolower field.
11165 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11166 arguments with lowercase strings.
11167 * config/rx/rx.opt (mcpu=): Add ToLower.
11168 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11169 argument.
11170
7d34a1b0
RS
111712011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11172
11173 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11174
c30e7434
RS
111752011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11176
11177 * config/vax/vax.c: Include reload.h.
11178
112a861d
AS
111792011-04-04 Anatoly Sokolov <aesok@post.ru>
11180
11181 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11182 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11183 (sparc_preferred_reload_class): New function.
11184
e8c6bb74
JJ
111852011-04-04 Jakub Jelinek <jakub@redhat.com>
11186
2aeaa366 11187 PR debug/48401
e8c6bb74
JJ
11188 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11189 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11190
2c081caf
NF
111912011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11192
11193 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11194 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11195
53802f27
AS
111962011-04-03 Anatoly Sokolov <aesok@post.ru>
11197
11198 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11199 (ASM_OUTPUT_ALIGNED_BSS): Define.
11200
e89964e3
MM
112012011-04-03 Michael Matz <matz@suse.de>
11202
11203 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11204 and next_slot members.
11205 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11206 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11207 (lto_streamer_cache_append): Declare.
11208 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11209 unsigned index, remove offset parameter, ensure that we append
11210 or update existing entries.
11211 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11212 parameter, update next_slot for append.
11213 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11214 parameter.
11215 (lto_streamer_cache_insert_at): Likewise.
11216 (lto_streamer_cache_append): New function.
11217 (lto_streamer_cache_lookup): Use unsigned index.
11218 (lto_streamer_cache_get): Likewise.
11219 (lto_record_common_node): Don't test tree_node_can_be_shared.
11220 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11221 (lto_streamer_cache_delete): Don't free offsets member.
11222 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11223 (lto_output_string_with_length): Use lto_output_data_stream.
11224 (lto_output_tree_header): Remove ix parameter, don't write it.
11225 (lto_output_builtin_tree): Likewise.
11226 (lto_write_tree): Adjust callers to above, don't track and write
11227 offset, write unsigned index.
11228 (output_unreferenced_globals): Don't emit all global vars.
11229 (write_global_references): Use unsigned indices.
11230 (lto_output_decl_state_refs): Likewise.
11231 (write_symbol): Likewise.
11232 * lto-streamer-in.c (lto_input_chain): Move earlier.
11233 (input_function): Use unsigned index.
11234 (input_alias_pairs): Don't read and then ignore all global vars.
11235 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11236 don't pass it back, use lto_streamer_cache_append.
11237 (lto_register_var_decl_in_symtab): Use unsigned index.
11238 (lto_register_function_decl_in_symtab): Likewise.
11239 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11240 index.
11241 (lto_get_builtin_tree): Don't read index, use
11242 lto_streamer_cache_append.
11243 (lto_read_tree): Adjust call to lto_materialize_tree.
11244
11245 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11246 don't use function calls in arguments to MIN.
11247
11248 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11249 twice.
11250
11251 * gimple.c (gimple_type_leader_entry): Mark deletable.
11252
b9a5b5b2
AM
112532011-04-03 Alan Modra <amodra@gmail.com>
11254
11255 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11256
ac6a641b
MM
112572011-04-03 Michael Matz <matz@suse.de>
11258
11259 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11260 an integer.
11261 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11262
0038d4e0
MM
112632011-04-03 Michael Matz <matz@suse.de>
11264
e9c18386 11265 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
11266 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11267 without function context.
11268 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11269 current_function_decl and cfun.
11270
91f2fae8
MM
112712011-04-03 Michael Matz <matz@suse.de>
11272
11273 * tree.c (decl_init_priority_insert): Don't create entry for
11274 default priority.
11275 (decl_fini_priority_insert): Ditto.
11276 (fields_compatible_p, find_compatible_field): Remove.
11277 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11278 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11279
da29e070
EB
112802011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11281
11282 * combine.c (try_combine): Remove useless local variable.
11283
4979c28b 112842011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 11285 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
11286
11287 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11288 non-variable offsets and compare the remaining bases of the two
11289 accesses instead of looking for exact same data-ref.
11290
b4ddcaee
KT
112912011-04-02 Kai Tietz <ktietz@redhat.com>
11292
f90298e1
KT
11293 PR target/48416
11294 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11295
b4ddcaee
KT
11296 * i386.c (ix86_is_msabi_thiscall): New helper function.
11297 (ix86_is_type_thiscall): New helper function.
11298 (ix86_comp_type_attributes): Handle thiscall for method-functions
11299 special.
11300 (init_cumulative_args): Likewise.
11301 (find_drap_reg): Likewise.
11302 (ix86_static_chain): Likewise.
11303 (x86_this_parameter): Likewise.
11304 (x86_output_mi_thunk): Likewise.
11305
2a9d769a 113062011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
11307 Nicolas Setton <setton@adacore.com>
11308 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
11309
11310 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11311 (add_gnat_descriptive_type_attribute): New function.
11312 (gen_array_type_die): Call it.
11313 (gen_enumeration_type_die): Likewise.
11314 (gen_struct_or_union_type_die): Likewise.
11315 (modified_type_die): Likewise.
11316 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11317 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11318 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11319
15a03a11
JJ
113202011-04-01 Jakub Jelinek <jakub@redhat.com>
11321
11322 PR bootstrap/48148
11323 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11324 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11325
11326 Revert:
11327 2011-03-17 Richard Guenther <rguenther@suse.de>
11328
11329 PR bootstrap/48148
11330 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11331 origin for decls in other ltrans units.
11332 (input_varpool_node): Likewise.
11333
19228b93
JJ
113342011-04-01 Jakub Jelinek <jakub@redhat.com>
11335
11336 PR middle-end/48335
11337 * expr.c (expand_assignment): Handle all possibilities
11338 if TO_RTX is CONCAT.
e9c18386 11339 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
11340 (store_split_bit_field): If SUBREG_REG (op0) or
11341 op0 itself has smaller mode than word, return it
11342 for offset 0 and const0_rtx for out-of-bounds stores.
11343 If word is const0_rtx, skip it.
11344
88cb339e
N
113452011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11346
11347 * config/h8300/h8300.c (print_operand_address): Rename to...
11348 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11349 Call h8300_print_operand and h8300_print_operand_address instead of
11350 print_operand and print_operand_address. Declare.
11351 (print_operand): Renake to...
11352 (h8300_print_operand): ...this. Make static. Adjust comments.
11353 Call h8300_print_operand instead of print_operand. Declare.
11354 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11355 (h8300_register_move_cost): Likewise.
11356 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11357 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11358 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11359 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11360 * config/h8300/h8300-protos.h (print_operand): Delete.
11361 (print_operand_address): Delete.
11362
756d6ee9
RH
113632011-04-01 Richard Henderson <rth@redhat.com>
11364
11365 PR 48400
11366 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11367 in strict mode before dwarf4. Re-order tests to early out
11368 before switching sections.
11369
ceaaaeab
NF
113702011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11371
11372 * config/h8300/constraints.md: New file.
11373 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11374 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11375 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11376 * config/h8300/predicates.md (bit_operand): Likewise.
11377 (incdec_operand): Use satisfies_constraint_M and
11378 satisfies_constraint_O. Don't use C code block.
11379 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11380 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11381 (compute_mov_length): Use satisfies_constraint_G.
11382 (fix_bit_operand): Use satisfies_constraint_U.
11383 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11384 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11385 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11386 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11387 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11388 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11389 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11390 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11391 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11392 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11393 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11394 (EXTRA_MEMORY_CONSTRAINT): Delete.
11395
08ae38e0
AP
113962011-04-01 Andrew Pinski <pinskia@gmail.com>
11397 Michael Meissner <meissner@linux.vnet.ibm.com>
11398
11399 PR target/48262
11400 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11401 operands, as per the specifications.
11402
11403 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11404 (vec_extract_evenv4sf): Ditto.
11405 (vec_extract_evenv8hi): Ditto.
11406 (vec_extract_evenv16qi): Ditto.
11407 (vec_extract_oddv4si): Ditto.
11408
bdb0b0f6
MW
114092011-03-31 Mark Wielaard <mjw@redhat.com>
11410
11411 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11412 high_pc attribute if the CU has no associated code. Only output
11413 DW_AT_entry_pc for CU if not generating strict dwarf and
11414 dwarf_version < 4.
11415
722279e4
BS
114162011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11417
11418 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11419 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11420 out of ...
11421 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11422 * final.c (final_start_function): Call the new function rather
11423 than using a NULL argument for dwarf2out_frame_debug.
11424
c5dd277d
BS
11425 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11426 that contains the prologue.
11427
ec4efea9
BS
11428 * haifa-sched.c (queue_insn): New arg REASON. All callers
11429 changed. Print it in debugging output.
11430
2a6a0d80
BS
11431 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11432
86014d07
BS
11433 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11434 Split most of the code into...
11435 (begin_move_insn): ... here. New function.
11436 (ebb_sched_info): Add a pointer to it.
11437 * haifa-sched.c (scheduled_insns): New static variable.
11438 (sched_extend_ready_list): Allocate it.
11439 (schedule_block): Use it to record the order of scheduled insns.
11440 Perform RTL changes to move insns only after all scheduling
11441 decisions have been made.
11442 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11443 begin_move_insn field.
11444 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11445 * sched-int.h (struct haifa_sched_info): Remove second argument
11446 from begin_schedule_ready hook. Add new member begin_move_insn.
11447 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11448 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11449
9d701248
BS
11450 * haifa-sched.c (prune_ready_list): New function, broken out of
11451 schedule_block.
11452 (schedule_block): Use it.
11453
1ca1dad5
UW
114542011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11455
11456 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11457
49568e45
KT
114582011-04-01 Kai Tietz <ktietz@redhat.com>
11459
11460 * config.gcc (*-*-mingw*): Allow as option the
11461 posix threading model.
07c0852e 11462 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
11463 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11464 definition.
11465 (CPP_SPEC): Add pthread/no-pthread handling.
11466 (LIB_SPEC): Likewise.
11467 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11468 (LIB_SPEC): Likewise.
11469 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11470 flag to pass -pthread option for shared libgcc build.
11471 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11472 for shared libgcc build.
11473 * config/i386/t-mingw-pthread: New file.
11474 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11475 New define to enable use of library pthread by default.
11476 * config/i386/mingw.opt (pthread): New driver option.
11477 (no-pthread): New driver option.
e9c18386 11478 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
11479 * config/i386/mingw-w64.opt: Likewise.
11480
748f7574 114812011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
11482
11483 * c-decl.c (grokdeclarator): Fix formatting.
11484
f04713ee
RS
114852011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11486
11487 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11488 instead of n_operands.
11489 (set_storage_via_setmem): Likewise.
11490 * optabs.c (maybe_gen_insn): Likewise.
11491 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11492 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11493 (mips_expand_builtin_direct): Likewise.
11494 * config/spu/spu.c (expand_builtin_args): Likewise.
11495
b29387ee
RS
114962011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11497
11498 * recog.h (insn_data_d): Add n_generator_args.
11499 * genoutput.c (data): Likewise.
11500 (output_insn_data): Print it.
11501 (max_opno, num_dups): Delete.
11502 (scan_operands): Just fill in "d->operand[...]".
11503 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11504
e792559a
RS
115052011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11506
11507 * gensupport.h (pattern_stats): New structure.
11508 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11509 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11510 (max_operand_1, max_operand_vec): Delete.
11511 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11512
e8110d6f
NF
115132011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11514
11515 * emit-rtl.c (emit_pattern_after_setloc): New function.
11516 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11517 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11518 (emit_pattern_after): New function.
11519 (emit_insn_after, emit_jump_insn_after): Call it.
11520 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11521 (emit_pattern_before_setloc): New function.
11522 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11523 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11524 Likewise.
11525 (emit_pattern_before): New function.
11526 (emit_insn_before, emit_jump_insn_before): Call it.
11527 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11528
576f85f1
RH
115292011-03-31 Richard Henderson <rth@redhat.com>
11530
11531 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11532 (dw_separate_line_info_entry): Remove.
11533 (enum dw_line_info_opcode): New.
11534 (dw_line_info_entry): Use it.
11535 (dw_line_info_table, dw_line_info_table_p): New.
11536 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11537 (line_info_table, line_info_label_num): Remove.
11538 (line_info_table_in_use): Remove.
11539 (separate_line_info_table): Remove.
11540 (separate_line_info_table_allocated): Remove.
11541 (separate_line_info_table_in_use): Remove.
11542 (LINE_INFO_TABLE_INCREMENT): Remove.
11543 (line_info_label_num): New.
11544 (cur_line_info_table): New.
11545 (text_section_line_info, cold_text_section_line_info): New.
11546 (separate_line_info): New.
11547 (SEPARATE_LINE_CODE_LABEL): Remove.
11548 (print_dwarf_line_table): Remove.
11549 (debug_dwarf): Don't dump it.
11550 (output_one_line_info_table): New.
11551 (output_line_info): Use it.
11552 (new_line_info_table): New.
11553 (set_cur_line_info_table): New.
11554 (dwarf2out_switch_text_section): Use it.
11555 (dwarf2out_begin_function): Likewise.
11556 (push_dw_line_info_entry): New.
11557 (dwarf2out_source_line): Rewrite for new line info tables.
11558 (dwarf2out_init): Remove dead initailizations.
11559
300d83d9
JM
115602011-03-31 Joseph Myers <joseph@codesourcery.com>
11561
11562 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11563 various flags.
11564 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11565 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11566 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11567 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11568 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11569 * opt-functions.awk (flag_init, switch_bit_fields): New.
11570 (switch_flags): Don't handle flags moved to bit-fields. Don't
11571 generate CL_MISSING_OK or CL_SAVE.
11572 * optc-gen.awk: Update to generate bit-field output as well as
11573 flags field.
11574 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11575 bit-field instead of CL_REJECT_DRIVER flag.
11576 * opts-common.c (generate_canonical_option,
11577 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11578 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11579 instead of CL_REJECT_NEGATIVE flag.
11580 * toplev.c (print_switch_values): Use cl_report bit-field instead
11581 of CL_REPORT flag.
11582
d4d73ce2
EB
115832011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11584
11585 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11586 a zero minimum index only if it is redundant.
11587
b8faca75
VM
115882011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11589
11590 PR rtl-optimization/48381
11591 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11592 instead of ira_class_hard_reg_index for calculating conflicting
11593 hard registers.
11594
7d11cebe
SB
115952011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11596
11597 * cprop.c: Clean up hash table building.
11598 (reg_avail_info): Remove.
11599 (oprs_available_p): Remove.
11600 (record_last_reg_set_info): Remove.
11601 (record_last_set_info): Remove.
11602 (reg_available_p): New function.
11603 (gcse_constant_p): Do not treat unfolded conditions as constants.
11604 (make_set_regs_unavailable): New function.
11605 (hash_scan_set): Simplify with new reg_available_p.
11606 (compute_hash_table_work): Traverse insns stream only once.
11607 Do not compute reg_avail_info. Traverse insns in reverse order.
11608 Record implicit sets after recording explicit sets from the block.
11609
98faf84f
MM
116102011-03-31 Michael Matz <matz@suse.de>
11611
e9c18386 11612 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 11613
f52d97da
AS
116142011-03-31 Anatoly Sokolov <aesok@post.ru>
11615
11616 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11617 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11618 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11619 (h8300_mode_dependent_address_p): New function.
11620 (h8300_get_index): Make static.
11621
e16b6fd0
JL
116222011-03-31 Jeff Law <law@redhat.com>
11623
10c51983
JL
11624 * reload1.c (elimination_effects): Fix typo in recent change.
11625
e9c18386 11626 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
11627 typo potentially leading to null pointer dereference.
11628
11629 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11630 (setup_save_areas): Corresponding changes to avoid useless
11631 assignments.
11632
11633 * jump.c (reversed_comparison_code_parts): Avoid successive return
11634 statements when REVERSE_CONDITION is defined.
11635
11636 * expr.c (expand_assignment): Avoid useless assignments.
11637 (expand_expr_real_1): Likewise.
11638 (expand_expr_real_2): Avoid useless statements.
11639
11640 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11641
11642 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11643
11644 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11645 statements.
11646
11647 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11648
eb1eb914
JM
116492011-03-31 Joseph Myers <joseph@codesourcery.com>
11650
11651 PR target/47109
11652 * doc/tm.texi.in (TARGET_VERSION): Remove.
11653 * doc/tm.texi: Regenerate.
11654 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11655 * collect2.c (main): Don't use TARGET_VERSION.
11656 * mips-tdump.c (main): Don't use TARGET_VERSION.
11657 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 11658 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
11659 * config/rs6000/vxworksae.h: Remove.
11660 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11661 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11662 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11663 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11664 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11665 * config/arm/arm.h (TARGET_VERSION): Remove.
11666 * config/arm/coff.h (TARGET_VERSION): Remove.
11667 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11668 * config/arm/elf.h (TARGET_VERSION): Remove.
11669 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11670 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11671 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11672 * config/arm/pe.h (TARGET_VERSION): Remove.
11673 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11674 * config/arm/semi.h (TARGET_VERSION): Remove.
11675 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11676 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11677 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11678 * config/avr/avr.h (TARGET_VERSION): Remove.
11679 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11680 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11681 * config/frv/frv.h (TARGET_VERSION): Remove.
11682 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11683 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11684 * config/i386/darwin.h (TARGET_VERSION): Remove.
11685 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11686 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11687 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11688 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11689 * config/i386/gnu.h (TARGET_VERSION): Remove.
11690 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11691 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11692 * config/i386/linux.h (TARGET_VERSION): Remove.
11693 * config/i386/linux64.h (TARGET_VERSION): Remove.
11694 * config/i386/lynx.h (TARGET_VERSION): Remove.
11695 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11696 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11697 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11698 * config/i386/netware.h (TARGET_VERSION): Remove.
11699 * config/i386/nto.h (TARGET_VERSION): Remove.
11700 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11701 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11702 * config/ia64/elf.h (TARGET_VERSION): Remove.
11703 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11704 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11705 * config/ia64/linux.h (TARGET_VERSION): Remove.
11706 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11707 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11708 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11709 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11710 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11711 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11712 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11713 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11714 * config/m68k/linux.h (TARGET_VERSION): Remove.
11715 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11716 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11717 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11718 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11719 * config/mep/mep.h (TARGET_VERSION): Remove.
11720 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11721 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11722 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11723 * config/mips/linux.h (TARGET_VERSION): Remove.
11724 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11725 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11726 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11727 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11728 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11729 * config/pa/pa.h (TARGET_VERSION): Remove.
11730 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11731 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11732 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11733 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11734 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11735 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11736 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11737 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11738 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11739 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11740 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11741 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11742 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11743 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11744 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11745 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11746 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11747 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11748 * config/s390/linux.h (TARGET_VERSION): Remove.
11749 * config/s390/s390.h (TARGET_VERSION): Remove.
11750 * config/s390/tpf.h (TARGET_VERSION): Remove.
11751 * config/score/score.h (TARGET_VERSION): Remove.
11752 * config/sh/linux.h (TARGET_VERSION): Remove.
11753 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11754 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11755 * config/sh/sh.h (TARGET_VERSION): Remove.
11756 * config/sh/sh64.h (TARGET_VERSION): Remove.
11757 * config/sh/superh.h (TARGET_VERSION): Remove.
11758 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11759 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11760 * config/sparc/linux.h (TARGET_VERSION): Remove.
11761 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11762 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11763 TARGET_NAME32, TARGET_NAME): Remove.
11764 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11765 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11766 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11767 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11768 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11769 * config/spu/spu.h (TARGET_VERSION): Remove.
11770 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11771 * config/v850/v850.h (TARGET_VERSION): Remove.
11772 * config/vax/linux.h (TARGET_VERSION): Remove.
11773 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11774 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11775 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11776
ace31bca
EB
117772011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11778
11779 PR target/48142
11780 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11781 frame-related from frame-unrelated adjustments to the stack pointer.
11782
76f9db36
JJ
117832011-03-31 Jakub Jelinek <jakub@redhat.com>
11784
11785 * common.opt (fdebug-types-section): Move earlier.
11786 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11787
b7826465
AT
117882011-03-31 Andreas Tobler <andreast@fgznet.ch>
11789
11790 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11791 var.
11792
1290e54c
NF
117932011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11794
11795 * tree.h (CASE_CHAIN): Define.
11796 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11797 (gimple_redirect_edge_and_branch): Likewise.
11798
bddc98e1
VM
117992011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11800
11801 PR middle-end/48367
11802 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11803 calculation.
11804
c865e437
JL
118052011-03-30 Jeff Law <law@redhat.com>
11806
b3750213 11807 * PR bootstrap/48371
c865e437
JL
11808 * reload1.c (reload): Fix botch in last change.
11809
11810 * reload.h (struct reload): Fix typo introduced in last change.
11811
2cdf9574
JM
118122011-03-30 Joseph Myers <joseph@codesourcery.com>
11813
11814 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11815 Undocumented. Remove help text.
11816 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11817 -mhard-float.
11818
666a21a2
JM
118192011-03-30 Joseph Myers <joseph@codesourcery.com>
11820
11821 * doc/options.texi (NegativeAlias): Document.
11822 (Alias): Mention NegativeAlias.
11823 * opt-functions.awk: Handle NegativeAlias.
e9c18386 11824 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
11825 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11826 * opts.h (CL_NEGATIVE_ALIAS): Define.
11827 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11828 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11829 OPT_mspe_.
11830 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11831 Alias entries.
11832 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11833 mno-spe and mno-isel instead of mspe=no and -misel=no.
11834
0fa4e351
MW
118352011-03-29 Mark Wielaard <mjw@redhat.com>
11836
11837 * common.opt (fdebug-types-section): New flag.
11838 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11839 * dwarf2out.c (use_debug_types): New define.
11840 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11841 (print_die): Guard output of type unit signatures using
11842 use_debug_types.
11843 (build_abbrev_table): Replace assert of dwarf_version >= 4
11844 with assert on use_debug_types.
11845 (size_of_die): Likewise.
11846 (unmark_dies): Likewise.
11847 (value_format): Decide AT_ref_external form on use_debug_types.
11848 (output_die): Replace dwarf_version version check guard with
11849 use_debug_types where appropriate.
11850 (modified_type_die): Likewise.
11851 (gen_reference_type_die): Likewise.
11852 (dwarf2out_start_source_file): Likewise.
11853 (dwarf2out_end_source_file): Likewise.
11854 (prune_unused_types_walk_attribs): Likewise.
11855 (dwarf2out_finish): Likewise.
11856
4648deb4
VM
118572011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11858
11859 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11860
4f431835
RS
118612011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11862
11863 PR rtl-optimization/48332
11864 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11865 mode of input operand N and modeN to its actual mode.
11866
f2034d06
JL
118672011-03-30 Jeff Law <law@redhat.com>
11868
11869 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11870 define accessor macro.
11871 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11872 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11873 (reg_equiv_init): Likewise.
11874 (reg_equivs_size): New variable.
11875 (reg_equiv_init_size): Remove.
11876 (allocate_initial_values): Move prototype to here from....
11877 * integrate.h (allocate_initial_values): Remove prototype.
11878 * integrate.c: Include reload.h.
11879 (allocate_initial_values): Corresponding changes.
11880 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11881 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11882 (update_equiv_regs): Corresponding changes.
11883 (ira): Corresponding changes.
11884 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11885 (push_secondary_reload): Corresponding changes.
11886 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11887 (make_memloc, find_reloads_address): Corresponding changes.
11888 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11889 (find_reloads_address_1): Corresponding changes.
11890 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11891 (refers_to_regno_for_reload_p): Corresponding changes.
11892 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11893 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11894 * reload1.c: Include ggc.h.
11895 (grow_reg_equivs): New function.
11896 (replace_pseudos_in, reload): Corresponding changes.
11897 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11898 (eliminate_regs_1, elimination_effects): Corresponding changes.
11899 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11900 (delete_output_reload): Likewise.
11901 * caller-save.c (mark_referenced_regs): Corresponding changes.
11902 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11903 * frv/predicates.md (frv_load_operand): Corresponding changes.
11904 * microblaze/microblaze.c (double_memory_operand): Corresponding
11905 changes.
11906 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11907 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 11908 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
11909 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11910 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11911 changes.
11912 * pa/pa.c (emit_move_sequence): Corresponding changes.
11913 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11914
159b81b0
RS
119152011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11916
11917 PR target/47551
11918 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11919 structure modes. Don't check neon_vector_mem_operand for
11920 vector or structure modes.
11921
a6217191
RS
119222011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11923 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11924
11925 PR target/43590
11926 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11927 operand 1 and reshuffle the operands to match.
11928 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11929
bd837408
CS
119302011-03-30 Christian Schüler <cschueler@gmx.de>
11931
6955d771 11932 PR driver/48208
bd837408 11933 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 11934
6955d771 11935 PR driver/48260
bd837408
CS
11936 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11937 handler function.
11938 * config/darwin.opt: Added '-arch' option.
11939
e9c0470a
NC
119402011-03-30 Nick Clifton <nickc@redhat.com>
11941
11942 * config/rx/rx.md: Add peepholes and patterns to combine
11943 extending loads and simple arithmetic instructions.
11944 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
11945 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11946 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 11947 modes to use pre-decrement and post-increment addressing.
e9c18386 11948 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 11949 addresses.
e9c18386
UB
11950 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11951 (rx_memory_move_cost): Adjust cost of stores.
11952 (rx_adjust_insn_length): New function.
e9c0470a 11953
8a87e7ab
JJ
119542011-03-30 Jakub Jelinek <jakub@redhat.com>
11955
11956 PR c/48305
11957 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11958 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11959 matching arg00/arg01 types.
11960
12486e03
EB
119612011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11962
11963 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11964 last_location to UNKNOWN_LOCATION.
11965
0b99eef6
L
119662011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11967
11968 PR target/48349
11969 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11970 FLOAT_SSE_REGS.
11971
023592aa
JM
119722011-03-30 Joseph Myers <joseph@codesourcery.com>
11973 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11974
11975 PR bootstrap/48337
11976 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11977 Init(PROCESSOR_V7).
11978 (sparc_cpu): Likewise.
11979 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11980 PROCESSOR_V7.
11981
ad3b266b
VM
119822011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11983
11984 PR target/48336
11985 PR middle-end/48342
11986 PR rtl-optimization/48345
11987 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11988 hard regs for given mode from profitable regs when doing secondary
11989 allocation.
11990
633c9126
JL
119912011-03-29 Jeff Law <law@redhat.com>
11992
11993 PR bootstrap/48327
11994 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11995 do_not_duplicate field.
11996 (lookup_redirection_data): Corresponding changes.
11997 (create_duplicates): Always create a template block.
11998 (redirect_edges): Remove code which reused the original block
11999 when it was going to become unreachable code.
12000 (thread_block): Don't set do_not_duplicate field.
12001
eb50f63a
JM
120022011-03-29 Joseph Myers <joseph@codesourcery.com>
12003
12004 * lto-opts.c (register_user_option_p, lto_register_user_option):
12005 Make type argument unsigned.
12006 * lto-streamer.h (lto_register_user_option): Make type argument
12007 unsigned.
12008 * opth-gen.awk: Make CL_* macros unsigned.
12009 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12010 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12011 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12012 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12013 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12014 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12015 (find_opt): Make lang_mask argument unsigned.
12016
76763a6d
VM
120172011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12018
12019 PR rtl-optimization/48331
12020 PR rtl-optimization/48334
12021 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12022 for any used algorithm.
12023
5c82436e
VM
120242011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12025
12026 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12027 to parent_max.
12028
7a81008b
UB
120292011-03-29 Uros Bizjak <ubizjak@gmail.com>
12030
12031 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12032 (alpha_option_override): Don't set alpha_sr_alias_set.
12033 (emit_frame_store_1): Use gen_frame_mem rather than calling
12034 set_mem_alias_set.
12035 (alpha_expand_epilogue): Ditto.
12036
86c8d1f6
IR
120372011-03-29 Ira Rosen <ira.rosen@linaro.org>
12038
12039 PR tree-optimization/48290
12040 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12041 vectorization, check that relevant phis in the basic block after
12042 the inner loop are really inner loop's exit phis.
12043
0d12220f
RS
120442011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12045
e8cf17e7 12046 PR debug/48190
0d12220f
RS
12047 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12048 (cached_dw_loc_list_def): New structure.
12049 (cached_dw_loc_list): New typedef.
12050 (cached_dw_loc_list_table): New variable.
12051 (cached_dw_loc_list_table_hash): New function.
12052 (cached_dw_loc_list_table_eq): Likewise.
12053 (add_location_or_const_value_attribute): Take a bool cache_p.
12054 Cache the list when the parameter is true.
12055 (gen_formal_parameter_die): Update caller.
12056 (gen_variable_die): Likewise.
12057 (dwarf2out_finish): Likewise.
12058 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12059 while generating debug info for the decl.
12060 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12061 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12062 (resolve_addr): Cache the result of resolving a chain of
12063 location lists.
12064
1756cb66
VM
120652011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12066
12067 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12068 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 12069
1756cb66
VM
12070 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12071 after regstat_init_n_sets_and_refs.
12072
12073 * ira.c: Add more comments at the top.
12074 (setup_stack_reg_pressure_class, setup_pressure_classes):
12075 Add comments how we compute the register pressure classes.
12076 (setup_allocno_and_important_classes): Add more comments.
12077 (setup_class_translate_array, reorder_important_classes)
12078 (setup_reg_class_relations): Add comments.
12079
12080 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12081 start of the file.
12082
12083 * ira-color.c: Add 2011 to the Copyright line.
12084 (assign_hard_reg): Add more comments.
12085 (improve_allocation): Ditto.
12086
12087 * ira-costs.c: Add 2011 to the Copyright line.
12088 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12089 comments.
12090 (setup_regno_cost_classes_by_mode): Ditto.
12091
12092 Initial patches from ira-improv branch:
12093
12094 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12095
f60c2554 12096 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
12097 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12098 (ira_create_allocno): Remove initialization of
12099 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12100 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12101 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12102 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12103 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12104 Initialize ALLOCNO_ADD_DATA.
12105 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12106 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12107 ALLOCNO_REG.
12108 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12109 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12110
12111 * ira.c (ira_reallocate): Remove.
12112 (setup_pressure_classes): Call
12113 ira_init_register_move_cost_if_necessary. Use
12114 ira_register_move_cost instead of ira_get_register_move_cost.
12115 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12116 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12117
12118 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12119 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12120 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12121 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12122 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12123 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12124 Fix formatting.
7a81008b 12125 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
12126 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12127 (struct allocno_color_data): New.
12128 (allocno_color_data_t): New typedef.
12129 (allocno_color_data): New definition.
12130 (ALLOCNO_COLOR_DATA): New macro.
12131 (struct object_color_data): New.
12132 (object_color_data_t): New typedef.
12133 (object_color_data): New definition.
12134 (OBJECT_COLOR_DATA): New macro.
12135 (update_copy_costs, calculate_allocno_spill_cost): Call
12136 ira_init_register_move_cost_if_necessary. Use
12137 ira_register_move_cost instead of ira_get_register_move_cost.
12138 (move_spill_restore, update_curr_costs): Ditto.
12139 (allocno_spill_priority): Make it inline.
7a81008b 12140 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
12141 (struct coalesce_data, coalesce_data_t): New.
12142 (allocno_coalesce_data): New definition.
12143 (ALLOCNO_COALESCE_DATA): New macro.
12144 (merge_allocnos, coalesced_allocno_conflict_p): Use
12145 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12146 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12147 (coalesce_allocnos): Ditto.
12148 (setup_coalesced_allocno_costs_and_nums): Ditto.
12149 (collect_spilled_coalesced_allocnos): Ditto.
12150 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12151 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12152 (coalesce_spill_slots): Ditto.
12153 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12154 free allocno_coalesce_data.
12155
12156 * ira-conflicts.c: Fix formatting.
12157 (process_regs_for_copy): Call
12158 ira_init_register_move_cost_if_necessary. Use
12159 ira_register_move_cost instead of ira_get_register_move_cost.
12160 (build_object_conflicts): Optimize.
12161
12162 * ira-costs.c (record_reg_classes): Optimize. Call
12163 ira_init_register_move_cost_if_necessary. Use
12164 ira_register_move_cost, ira_may_move_in_cost, and
12165 ira_may_move_out_cost instead of ira_get_register_move_cost and
12166 ira_get_may_move_cost.
12167 (record_address_regs): Ditto.
12168 (scan_one_insn): Optimize.
12169 (find_costs_and_classes): Optimize.
12170 (process_bb_node_for_hard_reg_moves): Call
12171 ira_init_register_move_cost_if_necessary. Use
12172 ira_register_move_cost instead of ira_get_register_move_cost.
12173
12174 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12175 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12176 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12177 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12178 definitions.
12179 (ira_initiate_emit_data, ira_finish_emit_data)
12180 (create_new_allocno): New functions.
7a81008b 12181 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
12182 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12183 Use ira_register_move_cost instead of ira_get_register_move_cost.
12184
12185 * ira-int.h: Fix some comments.
7a81008b
UB
12186 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12187 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
12188 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12189 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12190 add_data.
12191 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12192 bitfield after mode. Make hard_regno a short int. Make
12193 hard_regno short. Remove first_coalesced_allocno and
12194 next_coalesced_allocno. Move mem_optimized_dest_p,
12195 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12196 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12197 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12198 temp, colorable_p. Add new member add_data.
12199 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12200 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12201 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12202 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12203 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12204 (ALLOCNO_ADD_DATA): New macro.
12205 (ira_emit_data_t): New typedef.
12206 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12207 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12208 from struct ira_allocno.
12209 (ALLOCNO_EMIT_DATA): New macro.
12210 (ira_allocno_emit_data, allocno_emit_reg): New.
12211 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 12212 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
12213 (OBJECT_ADD_DATA): New macro.
12214 (ira_reallocate): Remove.
12215 (ira_initiate_emit_data, ira_finish_emit_data): New.
12216 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12217 (ira_init_register_move_cost_if_necessary): New.
12218 (ira_object_conflict_iter_next): Merge into
12219 ira_object_conflict_iter_cond.
7a81008b 12220 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 12221
f60c2554 12222 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
12223 ira_init_register_move_cost_if_necessary. Use
12224 ira_register_move_cost instead of ira_get_register_move_cost.
12225
12226 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12227
12228 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12229
12230 * ira-costs.c: Fix formatting.
12231 (cost_classes, cost_classes_num): Remove.
12232 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12233 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12234 (cost_classes_del, cost_classes_htab): New.
12235 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12236 (initiate_regno_cost_classes, setup_cost_classes): New.
12237 (setup_regno_cost_classes_by_aclass): New.
7a81008b 12238 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
12239 (record_reg_classes): Use regno_cost_classes instead of
12240 cost_classes. Move checking opposite operand up.
12241 (record_address_regs): Use regno_cost_classes
12242 instead of cost_classes.
12243 (scan_one_insn): Ditto. Use always general register.
12244 (print_allocno_costs): Use regno_cost_classes instead of
12245 cost_classes.
12246 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12247 (find_costs_and_classes): Set up cost classes for each registers.
12248 Use also their mode for this. Use regno_cost_classes instead of
12249 cost_classes.
12250 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12251 cost_classes.
12252 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12253 (ira_costs, ira_set_pseudo_classes): Call
12254 initiate_regno_cost_classes and finish_regno_cost_classes.
12255
12256 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12257
12258 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12259
12260 * target.def (ira_cover_classes): Remove.
12261
7a81008b 12262 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
12263
12264 * doc/tm.texi.in: Ditto.
12265
12266 * ira-conflicts.c: Remove mentioning cover classes from the file.
12267 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 12268 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
12269
12270 * targhooks.c (default_ira_cover_classes): Remove.
12271
12272 * targhooks.h (default_ira_cover_classes): Ditto.
12273
12274 * haifa-sched.c: Remove mentioning cover classes from the file.
12275 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12276 ira_pressure_classes and ira_pressure_classes_num instead of
12277 ira_reg_class_cover_size and ira_reg_class_cover. Use
12278 sched_regno_pressure_class instead of sched_regno_cover_class.
12279 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12280 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12281
12282 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12283 classes from the file.
12284 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12285 (struct object_hard_regs, struct object_hard_regs_node): New.
12286 (struct ira_object): New members profitable_hard_regs,
12287 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12288 (struct ira_allocno): Rename cover_class to aclass. Rename
12289 cover_class_cost and updated_cover_class_cost to class_cost and
12290 updated_class_cost. Remove splay_removed_p and
12291 left_conflict_size. Add new members colorable_p.
12292 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12293 (ALLOCNO_COLORABLE_P): New macro.
12294 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12295 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12296 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12297 (OBJECT_...): Rename parameter C to O.
12298 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12299 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12300 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12301 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12302 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12303 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12304 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12305 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12306 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12307 x_ira_reg_class_subunion.
12308 (ira_max_memory_move_cost, ira_max_register_move_cost)
12309 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12310 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12311 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 12312 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
12313 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12314 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12315 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12316 (ira_tune_allocno_costs_and_cover_classes): Rename to
12317 ira_tune_allocno_costs.
12318 (ira_debug_hard_regs_forest): New.
12319 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12320 (ira_object_conflict_iter_next): Fix comments.
7a81008b 12321 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
12322 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12323 cover_class to aclass.
12324 (ira_allocate_and_accumulate_costs): Ditto.
12325 (ira_allocate_and_set_or_copy_costs): Ditto.
12326
12327 * opts.c (decode_options): Remove ira_cover_class check.
12328
12329 * ira-color.c: Remove mentioning cover classes from the file. Use
12330 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12331 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12332 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12333 (splay-tree.h): Remove include.
12334 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12335 before copy_freq_compare_func.
12336 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12337 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12338 New definitions.
12339 (hard_regs_roots, hard_regs_node_vec): Ditto.
12340 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12341 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12342 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12343 (create_new_object_hard_regs_node): Ditto.
12344 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 12345 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
12346 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12347 Ditto.
12348 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12349 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12350 (remove_unused_object_hard_regs_nodes): Ditto.
12351 (enumerate_object_hard_regs_nodes): Ditto.
12352 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12353 (object_hard_regs_subnode_t): Ditto.
12354 (struct object_hard_regs_subnode): Ditto.
12355 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12356 (setup_object_hard_regs_subnode_index): Ditto.
12357 (get_object_hard_regs_subnodes_num): Ditto.
12358 (form_object_hard_regs_nodes_forest): Ditto.
12359 (finish_object_hard_regs_nodes_tree): Ditto.
12360 (finish_object_hard_regs_nodes_forest): Ditto.
12361 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 12362 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
12363 (pseudos_have_intersected_live_ranges_p): Rename to
12364 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12365 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12366 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12367 (update_copy_costs): Remove assert. Skip cost update if the hard
12368 reg does not belong the class.
12369 (assign_hard_reg): Process only profitable hard regs.
12370 (uncolorable_allocnos_num): Make it scalar.
12371 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12372 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12373 and ira_reg_class_max_nregs.
12374 (bucket_allocno_compare_func): Check frequency first.
12375 (sort_bucket): Add compare function as a parameter.
12376 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12377 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12378 (push_allocno_to_stack): Rewrite for checking new allocno
12379 colorability.
7a81008b 12380 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
12381 (push_only_colorable): Pass new parameter to sort_bucket.
12382 (push_allocno_to_spill): Remove.
12383 (allocno_spill_priority_compare): Make it inline and rewrite.
12384 (splay_tree_allocate, splay_tree_free): Remove.
12385 (allocno_spill_sort_compare): New function.
12386 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12387 build and use splay tree. Choose first allocno in uncolorable
12388 allocno bucket to spill. Remove setting spill cost.
12389 (all_conflicting_hard_regs): Remove.
12390 (setup_allocno_available_regs_num): Check only profitable hard
12391 regs. Print info about hard regs nodes.
12392 (setup_allocno_left_conflicts_size): Remove.
12393 (put_allocno_into_bucket): Don't call
7a81008b 12394 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
12395 (improve_allocation): New.
12396 (color_allocnos): Call setup_profitable_hard_regs,
12397 form_object_hard_regs_nodes_forest, improve_allocation,
12398 finish_object_hard_regs_nodes_forest. Setup spill cost.
12399 (print_loop_title): Use pressure classes.
12400 (color_allocnso): Ditto.
12401 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12402 and allocnos_for_spilling.
12403 (ira_sort_regnos_for_alter_reg): Don't setup members
12404 {first,next}_coalesced_allocno.
12405 (color): Remove allocating and freeing removed_splay_allocno_vec.
12406 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12407 prohibited_class_mode_regs.
12408
12409 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12410 formatting.
12411 (update_allocno_pressure_excess_length): Use pressure classes.
12412 (inc_register_pressure, dec_register_pressure): Check for pressure
12413 class.
12414 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12415 pressure class. Use ira_reg_class_nregs instead of
12416 ira_reg_class_max_nregs.
12417 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12418 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12419 (single_reg_class): Use ira_reg_class_nregs instead of
12420 ira_reg_class_max_nregs.
12421 (process_bb_node_lives): Use pressure classes.
12422
12423 * ira-emit.c: Remove mentioning cover classes from the file. Use
12424 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12425 (change_loop): Use pressure classes.
12426 (modify_move_list): Call ira_set_allocno_class instead of
12427 ira_set_allocno_cover_class.
12428
12429 * ira-build.c: Remove mentioning cover classes from the file. Use
12430 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12431 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12432 ALLOCNO_UPDATED_CLASS_COST instead of
12433 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12434 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12435 (ira_create_allocno): Remove initialization of
12436 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12437 ALLOCNO_COLORABLE_P.
12438 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12439 Update conflict regs for the objects.
12440 (create_cap_allocno): Remove assert. Don't propagate
12441 ALLOCNO_AVAILABLE_REGS_NUM.
12442 (ira_free_allocno_costs): New function.
12443 (finish_allocno): Change a part of code into call of
12444 ira_free_allocno_costs.
12445 (low_pressure_loop_node_p): Use pressure classes.
12446 (object_range_compare_func): Don't compare classes.
12447 (setup_min_max_conflict_allocno_ids): Ditto.
12448
12449 * loop-invariant.c: Remove mentioning cover classes from the file.
12450 Use ira_pressure_classes and ira_pressure_classes_num instead of
12451 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
12452 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12453 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12454 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
12455 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12456 STACK_REG_COVER_CLASS.
12457 (get_regno_cover_class): Rename to get_regno_pressure_class.
12458 (move_loop_invariants): Initialize and finalize regstat.
12459
12460 * ira.c: Remove mentioning cover classes from the file. Add
12461 comments about coloring without cover classes. Use ALLOCNO_CLASS
12462 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12463 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12464 setup_class_subset_and_memory_move_costs.
12465 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12466 (setup_cover_and_important_classes): Rename to
12467 setup_allocno_and_important_classes.
12468 (setup_class_translate_array): New.
12469 (setup_class_translate): Call it for allocno and pressure classes.
12470 (cover_class_order): Rename to allocno_class_order.
12471 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12472 of ira_class_translate.
12473 (reorder_important_classes): Set up ira_important_class_nums.
12474 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12475 (print_class_cover): Rename to print_classes. Add parameter.
12476 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12477 Print pressure classes too.
12478 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12479 setup_reg_subclasses.
7a81008b 12480 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12481 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12482 (setup_prohibited_class_mode_regs): Use
7a81008b 12483 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
12484 (clarify_prohibited_class_mode_regs): New function.
12485 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12486 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12487 (ira_init_once): Initialize them.
12488 (free_register_move_costs): Process them.
12489 (ira_init): Move calls of find_reg_classes and
12490 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12491 Call clarify_prohibited_class_mode_regs.
12492 (ira_no_alloc_reg): Remove.
12493 (too_high_register_pressure_p): Use pressure classes.
12494
12495 * sched-deps.c: Remove mentioning cover classes from the file.
12496 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12497 ira_pressure_classes and ira_pressure_classes_num instead of
12498 ira_reg_class_cover_size and ira_reg_class_cover.
12499 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12500 sched_regno_pressure_class instead of sched_regno_cover_class.
12501 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12502 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12503
12504 * ira.h: Add 2010 to Copyright.
12505 (ira_no_alloc_reg): Remove external.
12506 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12507 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12508 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12509 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12510 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12511 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12512 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12513 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12514 x_ira_no_alloc_regs.
7a81008b 12515 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
12516 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12517 ira_allocno_classes_num and ira_allocno_classes.
12518 (ira_class_translate): Rename to ira_allocno_class_translate.
12519 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12520 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12521 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12522 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12523 (ira_no_alloc_regs): New.
12524
12525 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12526 classes from the file. Use ALLOCNO_CLASS instead of
12527 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12528 ALLOCNO_COVER_CLASS_COST.
12529 (regno_cover_class): Rename to regno_aclass.
12530 (record_reg_classes): Use ira_reg_class_subunion instead of
12531 ira_reg_class_union.
12532 (record_address_regs): Check overflow.
12533 (scan_one_insn): Ditto.
7a81008b 12534 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
12535 (print_pseudo_costs): Use REG_N_REFS.
12536 (find_costs_and_classes): Use classes intersected with them on the
12537 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12538 ira_reg_class_union. Use ira_allocno_class_translate and
12539 regno_aclass instead of ira_class_translate and regno_cover_class.
12540 Modify code for finding regno_aclass. Setup preferred classes for
12541 the next pass.
12542 (setup_allocno_cover_class_and_costs): Rename to
12543 setup_allocno_class_and_costs. Use regno_aclass instead of
12544 regno_cover_class. Use ira_set_allocno_class instead of
12545 ira_set_allocno_cover_class.
12546 (init_costs, finish_costs): Use regno_aclass instead of
12547 regno_cover_class.
12548 (ira_costs): Use setup_allocno_class_and_costs instead of
12549 setup_allocno_cover_class_and_costs.
12550 (ira_tune_allocno_costs_and_cover_classes): Rename to
12551 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12552 by processing objects. Use ira_reg_class_max_nregs instead of
12553 ira_reg_class_nregs.
12554
12555 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12556
12557 * sched-int.h: Remove mentioning cover classes from the file.
12558 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12559
12560 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12561 classes from the file.
12562 (struct reg_pref): Rename coverclass into allocnoclass.
12563 (reg_cover_class): Rename to reg_allocno_class.
12564
7a81008b 12565 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
12566
12567 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12568
12569 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12570
12571 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12572
12573 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12574
12575 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12576
12577 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12578
12579 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12580
12581 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12582
12583 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12584
12585 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12586 (i386_ira_cover_classes): Ditto.
12587
12588 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12589
12590 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12591
12592 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12593
12594 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12595
12596 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12597
12598 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12599
12600 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12601 (mips_ira_cover_classes): Ditto.
12602
12603 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12604
12605 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12606
12607 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12608
12609 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12610
12611 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12612
12613 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12614 (IRA_COVER_CLASSES_VSX): Ditto.
12615
12616 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12617 (rs6000_ira_cover_classes): Ditto.
12618
12619 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12620
12621 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12622
12623 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12624
12625 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12626
12627 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12628
12629 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12630
12631 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12632
12633 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12634
12635 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12636
12637 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12638
2b80199f
JJ
126392011-03-29 Jakub Jelinek <jakub@redhat.com>
12640
71dae1fe
JJ
12641 PR debug/48253
12642 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12643 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12644 dw_fde_unlikely_section_end_label, cold_in_std_section,
12645 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12646 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12647 fields.
12648 (output_fde): Use dw_fde_second_{begin,end} if second is
12649 true, otherwise dw_fde_{begin,end}.
12650 (output_call_frame_info): Test dw_fde_second_begin != NULL
12651 instead of dw_fde_switched_sections.
12652 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12653 fields, initialize new fields. Initialize in_std_section
12654 unconditionally from the first partition.
12655 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12656 dw_fde_second_begin is non-NULL.
12657 (dwarf2out_switch_text_section): Stop initializing removed
12658 dw_fde_struct fields, initialize new fields, initialize
12659 also dw_fde_end here. Set dw_fde_switch_cfi even when
12660 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12661 (struct var_loc_list_def): Add last_before_switch field.
12662 (arange_table, arange_table_allocated, arange_table_in_use,
12663 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12664 (size_of_aranges): Count !in_std_section and !second_in_std_section
12665 hunks in fdes, instead of looking at arange_table_in_use.
12666 (output_aranges): Add aranges_length argument, don't call
12667 size_of_aranges here. Instead of using aranges_table*
12668 emit ranges for fdes when !in_std_section resp.
12669 !second_in_std_section.
12670 (dw_loc_list): Break ranges crossing section switch.
12671 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 12672 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
12673 (gen_subprogram_die): Don't call add_arange. Use
12674 dw_fde_{begin,end} for first partition and if switched
12675 section dw_fde_second_{begin,end} for the second.
12676 (var_location_switch_text_section_1,
12677 var_location_switch_text_section): New functions.
12678 (dwarf2out_begin_function): Initialize cold_text_section even
12679 when function_section () isn't text_section.
12680 (prune_unused_types): Don't walk arange_table.
12681 (dwarf2out_finish): Don't needlessly test
12682 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12683 If info_section_emitted, call size_of_aranges and if it indicates
12684 non-empty .debug_aranges, call output_aranges with the computed
12685 size. Stop using removed dw_fde_struct fields, use
12686 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12687 for second.
12688
2b80199f
JJ
12689 PR debug/48203
12690 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12691 create ENTRY_VALUE if incoming or address of incoming's MEM
12692 is a hard REG.
12693 * dwarf2out.c (mem_loc_descriptor): Don't emit
12694 DW_OP_GNU_entry_value of DW_OP_fbreg.
12695 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12696 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12697 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12698 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12699 ENTRY_VALUE_EXPs.
12700 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12701 is a REG_P or MEM_P with REG_P address, compute hash directly
12702 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12703 (preserve_only_constants): Don't clear VALUES forwaring
12704 ENTRY_VALUE to some other VALUE.
12705
8a445129
RS
127062011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12707
12708 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12709 instead of GEN_INT.
12710
c82fee88
EB
127112011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12712
12713 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12714 block before expanding the statement.
12715 (expand_gimple_stmt_1): Likewise. Set them here...
12716 (expand_gimple_stmt): ...and not here. Tidy.
12717 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12718 unknown.
12719
e45425ec
SB
127202011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12721
12722 * Makefile.in: New rule for cprop.o.
12723 * gcse.c: Move constant/copy propagation to cprop.c.
12724 (compute_local_properties): Only handle expression tables.
12725 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12726 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12727 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12728 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 12729 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
12730 compute_cprop_data, find_used_regs, try_replace_reg,
12731 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12732 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12733 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12734 find_bypass_set, reg_killed_on_edge, bypass_block,
12735 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12736 execute_rtl_cprop, pass_rtl_cprop): Move to...
12737 * cprop.c: ...here. New file, constant/copy propagation for RTL
12738 moved from gcse.c to here with minor cleanups in duplicated code.
12739
c09d5426
L
127402011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12741
12742 * config/i386/i386.c (flag_opts): Fix a typo in
12743 -mavx256-split-unaligned-store.
12744
9eaa7740
AS
127452011-03-28 Anatoly Sokolov <aesok@post.ru>
12746
12747 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12748 LIBCALL_VALUE): Remove macros.
12749 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12750 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12751 (h8300_function_value, h8300_libcall_value,
12752 h8300_function_value_regno_p): New functions.
12753
dcec2be2
AS
127542011-03-28 Anatoly Sokolov <aesok@post.ru>
12755
12756 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12757
520af9ec
JL
127582011-03-28 Jeff Law <law@redhat.com>
12759
12760 * tree-ssa-threadupdate.c (redirect_edges): Call
12761 create_edge_and_update_destination_phis as needed.
12762 (create_edge_and_update_destination_phis): Accept new BB argument.
12763 All callers updated.
12764 (thread_block): Do not update the profile when threading around
12765 intermediate blocks.
12766 (thread_single_edge): Likewise.
12767 (determine_bb_domination_status): If BB is not a successor of the
12768 loop header, return NONDOMINATING.
12769 (register_jump_thread): Note when we register a jump thread around
12770 an intermediate block.
12771 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12772 (thread_across_edge): Use it.
12773
7450b54f
TG
127742011-03-28 Tristan Gingold <gingold@adacore.com>
12775
12776 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12777 when for_return is 2.
12778
649beb33
JL
127792011-03-28 Jeff Law <law@redhat.com>
12780
12781 * var-tracking.c (canonicalize_values_mark): Delete unused
12782 lhs assignment.
12783 (canonicalize_values_star, set_variable_part): Likewise.
12784 (clobber_variable_part, delete_variable_part): Likewise.
12785
d5b8da97
SB
127862011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12787
12788 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12789
322dd859
MJ
127902011-03-28 Martin Jambor <mjambor@suse.cz>
12791
12792 * tree-inline.c (expand_call_inline): Do not check that destination
12793 node is analyzed.
12794 (optimize_inline_calls): Assert that destination node is analyzed.
12795 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12796 not call tree_lowering_passes.
12797 * cgraph.h (cgraph_analyze_function): Declare.
12798 * cgraphunit.c (cgraph_analyze_function): Make public.
12799
aa53e58b
JM
128002011-03-28 Joseph Myers <joseph@codesourcery.com>
12801
12802 * config/sparc/sparc-opts.h: New.
12803 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12804 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12805 (sparc_option_override): Store processor_type enumeration rather
12806 than string in cpu_default. Remove name and enumeration from
12807 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12808 without using sparc_select. Use target_flags_explicit instead of
12809 fpu_option_set.
12810 * config/sparc/sparc.h (enum processor_type): Move to
12811 sparc-opts.h.
12812 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12813 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12814 HeaderInclude entry.
12815 (mcpu=, mtune=): Use Var and Enum.
12816 (sparc_processor_type): New Enum and EnumValue entries.
12817
dd350eba
RO
128182011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12819 Iain Sandoe <iains@gcc.gnu.org>
12820
12821 PR target/48245
12822 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12823
1b29f05e
EB
128242011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12825
12826 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12827 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12828 Insert new statements at it in lieu of STMT.
12829 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12830 * tree-vect-stmts.c (vectorizable_store): Likewise.
12831 (vectorizable_load): Likewise.
12832
506e6808
UB
128332011-03-28 Uros Bizjak <ubizjak@gmail.com>
12834
12835 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12836 (divtf3): Ditto.
12837 (multf3): Ditto.
12838 (subtf3): Ditto.
12839
2e939ee9
L
128402011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12841
12842 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12843 unaligned 256bit load/store.
12844 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12845 (*avx_movdqu<avxmodesuffix>): Likewise.
12846
5e85ab88
JDA
128472011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12848
12849 PR target/48288
12850 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12851 * config/pa/pa.md (iordi3): Use new predicate in expander.
12852 (iorsi3): Likewise.
12853
47be3d6d
AS
128542011-03-27 Anatoly Sokolov <aesok@post.ru>
12855
506e6808 12856 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 12857 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
12858 * config/mips/mips-protos.h (mips_function_value): Remove.
12859 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
12860 (mips_function_value_1): ... this. Make static. Handle receiving
12861 the function type in 'fn_decl_or_type' argument.
12862 (mips_function_value, mips_libcall_value,
12863 mips_function_value_regno_p): New function.
12864 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12865 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12866
d253656a
L
128672011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12868
12869 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12870 and -mavx256-split-unaligned-store.
12871 (ix86_option_override_internal): Split 32-byte AVX unaligned
12872 load/store by default.
12873 (ix86_avx256_split_vector_move_misalign): New.
12874 (ix86_expand_vector_move_misalign): Use it.
12875
12876 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12877 -mavx256-split-unaligned-store.
12878
12879 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12880 256bit load/store. Generate unaligned store on misaligned memory
12881 operand.
12882 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12883 256bit load/store.
12884 (*avx_movdqu<avxmodesuffix>): Likewise.
12885
12886 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12887 -mavx256-split-unaligned-store.
12888
1ea9206a
RS
128892011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12890
12891 PR target/38598
12892 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12893 Update commentary.
12894
b99ce2a8
RS
128952011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12896
12897 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12898 opno arguments with an expand_operand. Use create_input_operand.
12899 (mips_prepare_builtin_target): Delete.
12900 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12901 functions.
12902 (mips_expand_builtin_direct): Use create_output_operand and
12903 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12904 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12905 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12906
69d52339
IR
129072011-03-27 Ira Rosen <ira.rosen@linaro.org>
12908
12909 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12910 function.
12911 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12912
ba5e9aca
EB
129132011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12914
12915 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12916 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12917 basic blocks and call commit_edge_insertions directly.
12918 (fixup_abnormal_edges): Move from here to...
12919 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12920 on the edges and return whether some have actually been inserted.
12921 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12922 compensation code.
12923
5d369d58
AB
129242011-03-26 Andrey Belevantsev <abel@ispras.ru>
12925
12926 PR rtl-optimization/48144
12927 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12928 (merge_expr_data): ... here.
12929 (av_set_intersect): Rename to av_set_code_motion_filter.
12930 Update all callers. Call merge_history_vect when an expression
12931 is found in both sets.
12932 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12933
f082c000
AM
129342011-03-26 Alan Modra <amodra@gmail.com>
12935
12936 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12937 cmodel medium addresses.
12938 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12939 64-bit gpr loads and stores.
12940 (rs6000_secondary_reload_ppc64): New function.
12941 * config/rs6000/rs6000-protos.h: Declare it.
12942 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12943
8ac5e12e
AM
129442011-03-26 Alan Modra <amodra@gmail.com>
12945
12946 PR target/47487
12947 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12948 GNU Go in traceback table.
12949
c2654ded
RH
129502011-03-25 Richard Henderson <rth@redhat.com>
12951
12952 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12953 if there are exactly 6 operands.
12954 (set_storage_via_setmem): Similarly.
12955
ba78087b
KT
129562011-03-25 Kai Tietz <ktietz@redhat.com>
12957
12958 * collect2.c (write_c_file_stat): Handle backslash
12959 as right-hand directory separator.
12960 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12961 checking just for slash.
12962 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12963 instead of checking for trailing slash.
12964 * gcc.c (record_temp_file): Use filename_cmp instead
12965 of strcmp.
12966 (do_spec_1): Likewise.
12967 (replace_outfile_spec_function): Likewise.
12968 (is_directory): Use filename_ncmp instead of strncmp.
12969 (print_multilib_info): Likewise.
12970 * gcov.c (find_source): Use filename_cmp instead
12971 instead of strcmp.
12972 (make_gcov_file_name): Fix order of slash/backslash
12973 checks.
12974 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12975 (add_standard_paths): Likewise.
12976 * mips-tfile.c (saber_stop): Handle backslash.
12977 * prefix.c (update_path): Use filename_ncmp instead of
12978 strncmp.
12979 * profile.c (output_location): Use filename_cmp instead
12980 of strcmp.
12981 * read-md.c (handle_toplevel_file): Handle backslash.
12982 * tlink.c (frob_extension): Likewise.
12983 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12984 strcmp.
12985 * tree-dump.c (dequeue_and_dump): Handle backslash.
12986 * tree.c (get_file_function_name): Likewise.
12987 * gengtype.c (read_input_list): Likewise.
12988 (get_file_realbasename): Likewise.
12989 (get_output_file_with_visibility): Use filename_cmp
12990 instead of strcmp.
12991
75f6ec9a
RS
129922011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12993
12994 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12995 case to VFPv1.
12996
6c4e2997
NF
129972011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12998
12999 * fold-const.c (expr_location_or): New function.
13000 (fold_truth_not_expr): Call it.
13001
0edf1bb2
JL
130022011-03-25 Jeff Law <law@redhat.com>
13003
13004 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13005 va_end.
13006 * c-family/c-common.c (def_fn_type): Likewise.
13007 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13008 * emit-rtl.c (gen_rtvec): Likewise.
13009 * lto/lto-lang.c (def_fn_type): Likewise.
13010
fdc2de95
RG
130112011-03-25 Richard Guenther <rguenther@suse.de>
13012
13013 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13014 also generate copies.
13015 (fini_copy_prop): Handle constant values properly.
13016
21385db0
JJ
130172011-03-25 Jakub Jelinek <jakub@redhat.com>
13018
13019 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13020 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13021 (hash_loc_operands, compare_loc_operands): Handle
13022 DW_OP_GNU_entry_value.
13023
6510e8bb
KT
130242011-03-25 Kai Tietz <ktietz@redhat.com>
13025
13026 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13027 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13028 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13029 comment and use macro TARGET_64BIT_MS_ABI instead.
13030 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13031 and change default behavior for 32-bit MS_ABI.
13032 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13033 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13034 32-bit, too.
13035 (ix86_cfun_abi): Likewise.
13036 (ix86_maybe_switch_abi): Adjust comment.
13037 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13038 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13039 instead of checking for SYSV_ABI.
13040 (ix86_nsaved_sseregs): Likewise.
13041 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13042 to 16 bytes.
13043 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13044 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13045 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13046 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13047 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13048
34019e28
RG
130492011-03-25 Richard Guenther <rguenther@suse.de>
13050
13051 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13052 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13053 (verify_gimple): Remove.
13054 * tree-cfg.c (verify_gimple_call): Merge verification
13055 from verify_stmts.
13056 (verify_gimple_phi): Merge verification from verify_stmts.
13057 (verify_gimple_label): New function.
13058 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13059 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13060 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13061 (verify_stmts): Rename to verify_gimple_in_cfg.
13062 (verify_gimple_in_cfg): New function.
13063 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13064 * tree-ssa.c (verify_ssa): Likewise.
13065 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13066
605896f5
RG
130672011-03-25 Richard Guenther <rguenther@suse.de>
13068
13069 * passes.c (init_optimization_passes): Add FRE pass after
13070 early SRA.
13071
7baa7c13
BS
130722011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13073 Andrew Stubbs <ams@codesourcery.com>
13074
13075 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13076 for Cortex-A8.
13077 (arm_movdi_vfp_cortexa8): New pattern.
13078 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13079 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13080 instructions when tuning for Cortex-A8. Set attribute "arch".
13081 * config/arm/arm.md: Move include arm-tune.md up a bit.
13082 (define_attr "arch"): Add "onlya8" and "nota8" values.
13083 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13084
45dbce1b
NF
130852011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13086
4ff08abf 13087 PR bootstrap/48282
45dbce1b
NF
13088 Revert:
13089 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13090
13091 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13092 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13093 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13094 * passes.c (init_optimization_passes): Move
13095 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13096
ac9a30ae
KT
130972011-03-25 Kai Tietz <ktietz@redhat.com>
13098
13099 * c-typeck.c (comptypes_internal): Replace target
13100 hook call of comp_type_attributes by version in tree.c file.
13101 * gimple.c (gimple_types_compatible_p_1): Likewise.
13102 * tree-ssa.c (useless_type_conversion_p): Likewise.
13103 * tree.c (build_type_attribute_qual_variant): Likewise.
13104 (attribute_value_equal): New static helper function.
13105 (comp_type_attributes): New function.
13106 (merge_attributes): Use attribute_value_equal for comparison.
13107 (attribute_list_contained): Likewise.
13108 * tree.h (comp_type_attributes): New prototype.
13109
afdac116
RG
131102011-03-25 Richard Guenther <rguenther@suse.de>
13111
13112 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13113 of complex types at -O0.
13114 (verify_gimple_assign_binary): Likewise.
13115 (verify_gimple_assign_ternary): Likewise.
13116
ec6165f8
MW
131172011-03-24 Mark Wielaard <mjw@redhat.com>
13118
13119 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13120 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13121
2a5ac39a
MW
131222011-03-24 Mark Wielaard <mjw@redhat.com>
13123
13124 PR debug/48041
13125 * dwarf2out.c (output_abbrev_section): Only write table when
13126 abbrev_die_table_in_use > 1.
13127
e533b2a4
RH
131282011-02-24 Richard Henderson <rth@redhat.com>
13129
13130 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13131 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13132 (alpha_expand_unaligned_load_words): Use extql.
13133 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13134 (emit_insxl): Handle all modes for consistency.
13135
0b2a7367
RH
131362011-02-24 Richard Henderson <rth@redhat.com>
13137
13138 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13139 (alpha_expand_unaligned_load): Likewise.
13140 (alpha_expand_unaligned_store): Likewise.
13141 (alpha_expand_unaligned_load_words): Likewise.
13142 (alpha_expand_unaligned_store_words): Likewise.
13143 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13144 (alpha_split_lock_test_and_set_12): Likewise.
13145 (print_operand, alpha_fold_builtin_extxx): Likewise.
13146 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13147 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13148 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13149 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13150 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13151 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13152 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13153 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13154 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13155 (extwl, extll, extql): Similarly.
13156 (inswh, inslh, insqh): Similarly.
13157 (mskbl, mskwl, mskll, mskql): Similarly.
13158 (mskwh, msklh, mskqh): Similarly.
13159
315b2bef
RH
131602011-02-24 Richard Henderson <rth@redhat.com>
13161
13162 * config/alpha/alpha.md (attribute isa): Add er, ner.
13163 (attribute enabled): Handle them.
13164 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13165
67102517
RH
131662011-02-24 Richard Henderson <rth@redhat.com>
13167
13168 * config/alpha/alpha.md (attribute isa): Add vms.
13169 (attribute enabled): Handle it.
13170 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13171 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13172 (*movtf): Rename from *movtf_internal for consistency.
13173 (*movsi): Merge with *movsi_nt_vms.
13174 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13175 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13176 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13177 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13178
6aba5cb4
RH
131792011-02-24 Richard Henderson <rth@redhat.com>
13180
13181 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13182 (extendqisi2, extendhisi2): Likewise.
13183 (extendqidi2): Simplify BWX/non-BWX expansions.
13184 (extendhidi2): Similarly.
13185
bdfb351b
RH
131862011-02-24 Richard Henderson <rth@redhat.com>
13187
13188 * config/alpha/alpha.md (attribute isa): New.
13189 (attribute enabled): New.
13190 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13191 (zero_extendqisi2, zero_extendqidi2): Similarly.
13192 (zero_extendhisi2, zero_extendhidi2): Similarly.
13193 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13194
6abe71eb
RH
131952011-02-24 Richard Henderson <rth@redhat.com>
13196
13197 * config/alpha/predicates.md (input_operand): Revert last change;
13198 update comment to mention 32-bit VMS rather than Windows.
13199
7114321e
NF
132002011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13201
13202 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13203 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13204 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13205 * passes.c (init_optimization_passes): Move
13206 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13207
c8679567
EB
132082011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13209
13210 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13211
27173058
UB
132122011-03-24 Uros Bizjak <ubizjak@gmail.com>
13213
13214 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13215 correctly.
13216
6f0c9f06
JJ
132172011-03-24 Jakub Jelinek <jakub@redhat.com>
13218
13219 PR debug/48204
13220 * simplify-rtx.c (simplify_const_unary_operation): Call
13221 real_convert when changing mode class with FLOAT_EXTEND.
13222
662666e5
NC
132232011-03-24 Nick Clifton <nickc@redhat.com>
13224
13225 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13226 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13227 * config/rx/rx.c (rx_option_override): Set align_jumps,
13228 align_loops and align_labels if not set by the user.
13229 (rx_align_for_label): New function.
13230 (rx_max_skip_for_label): New function.
13231 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13232 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13233 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13234 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13235 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13236
2b99b2b8
RS
132372011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13238
13239 PR rtl-optimization/48263
13240 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13241 and original commutative_p handling. Use maybe_gen_insn.
13242
ccecd6ea
AK
132432011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13244
13245 * reload.c (find_reloads_subreg_address): Add address_reloaded
13246 parameter and return true there if the full address has been
13247 reloaded.
13248 (find_reloads_toplev): Pass address_reloaded flag.
13249 (find_reloads_address_1): Don't use address_reloaded parameter.
13250
67295642
JL
132512011-03-24 Jeff Law <law@redhat.com>
13252
13253 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13254 unused variable "ann".
13255 (remove_unused_locals): Likewise.
13256
13257 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13258 statement.
13259
13260 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13261 after it is freed.
13262
212aa74f
AK
132632011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13264
13265 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13266 for invalid symbolic addresses.
13267 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13268 larl operands.
13269
fe784e0d
EB
132702011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13271
13272 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13273 the argument in calls to fold_truth_not_expr.
13274
63ee8641
NF
132752011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13276
13277 * tree.c (record_node_allocation_statistics): New function.
13278 (make_node_stat, copy_node_stat, build_string): Call it.
13279 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13280 (build1_stat, build_omp_clause): Likewise.
13281
61be2a1c
RS
132822011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13283
13284 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13285 last commit.
13286
a881aaa7
RG
132872011-03-24 Richard Guenther <rguenther@suse.de>
13288
13289 PR tree-optimization/48271
13290 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13291 blocks that still exist.
13292
dbaa912c
RG
132932011-03-24 Richard Guenther <rguenther@suse.de>
13294
13295 PR tree-optimization/48270
13296 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13297 not free datarefs before ddrs.
13298
1d60cc55
EB
132992011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13300
13301 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13302 from the address built for a reference with variable offset.
13303
c78dd519
UB
133042011-03-24 Uros Bizjak <ubizjak@gmail.com>
13305
13306 PR target/48237
13307 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13308 alternatives that can be handled with movq or movabsq insn.
13309 (*movdf_internal): Disable for !TARGET_64BIT.
13310 (*movdf_internal_nointeger): Ditto.
13311 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13312
b25b9e8f
NF
133132011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13314
13315 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13316 (FUNCTION_ARG_ADVANCE): Likewise.
13317 * tm.texi.in: Change references to them to hook references.
13318 * tm.texi: Regenerate.
c78dd519 13319 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
13320 (default_function_incoming_arg): Likewise.
13321 (default_function_arg_advance): Likewise.
c78dd519 13322 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
13323 (function_arg_advance): Likewise.
13324 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13325
190b2187
RG
133262011-03-24 Richard Guenther <rguenther@suse.de>
13327
13328 PR middle-end/48269
13329 * tree-object-size.c (addr_object_size): Do not double-account
13330 for MEM_REF offsets.
13331
a183b5c7
DN
133322011-03-24 Diego Novillo <dnovillo@google.com>
13333
13334 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 13335 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
13336 (lto_input_data_block): Move from lto-opts.c. Make extern.
13337 Update all users.
13338 (lto_input_string): Rename from input_string. Make extern.
13339 Update all users.
13340 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13341 output_string_with_length.
13342 Output 0 to indicate a non-NULL string. Update all callers to
13343 not emit 0.
13344 (lto_output_string): Rename from output_string. Make extern.
13345 Update all users.
13346 (lto_output_decl_state_streams): Make extern.
13347 (lto_output_decl_state_refs): Make extern.
13348 * lto-streamer.h (lto_input_string): Declare.
13349 (lto_input_data_block): Declare.
13350 (lto_output_string): Declare.
13351 (lto_output_string_with_length): Declare.
13352 (lto_output_decl_state_streams): Declare.
13353 (lto_output_decl_state_refs): Declare.
13354
cfef45c8
RG
133552011-03-24 Richard Guenther <rguenther@suse.de>
13356
13357 PR tree-optimization/46562
13358 * tree.c (build_invariant_address): New function.
13359 * tree.h (build_invariant_address): Declare.
13360 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13361 a renamed function moved ...
13362 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13363 Take valueization callback parameter.
13364 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13365 * gimple-fold.h: New file.
13366 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13367 (ccp_fold, fold_const_aggregate_ref,
13368 fold_ctor_reference, fold_nonarray_ctor_reference,
13369 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13370 get_base_constructor): Move ...
13371 * gimple-fold.c: ... here.
13372 (gimple_fold_stmt_to_constant_1): New function
13373 split out from ccp_fold. Take a valueization callback parameter.
13374 Valueize all operands.
13375 (gimple_fold_stmt_to_constant): New wrapper function.
13376 (fold_const_aggregate_ref_1): New function split out from
13377 fold_const_aggregate_ref. Take a valueization callback parameter.
13378 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13379 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13380 invariant POINTER_PLUS_EXPRs to invariant form.
13381 (vn_valueize): New function.
13382 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13383 * tree-vrp.c (vrp_valueize): New function.
13384 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13385 to fold statements to constants.
13386 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13387 function declarations.
13388 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13389 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13390
5e0a7e40
RS
133912011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13392
13393 * config/h8300/predicates.md (jump_address_operand): Fix register
13394 mode check.
13395
bfe068c3
IR
133962011-03-24 Ira Rosen <ira.rosen@linaro.org>
13397
13398 * doc/invoke.texi (max-stores-to-sink): Document.
13399 * params.h (MAX_STORES_TO_SINK): Define.
13400 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13401 if either vectorization or if-conversion is disabled.
13402 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13403 tree-vect-data-refs.c vect_equal_offsets.
13404 (dr_equal_offsets_p): New function.
13405 (find_data_references_in_bb): Remove static.
13406 * tree-data-ref.h (find_data_references_in_bb): Declare.
13407 (dr_equal_offsets_p): Likewise.
13408 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13409 (vect_drs_dependent_in_basic_block): Update calls to
13410 vect_equal_offsets.
13411 (vect_check_interleaving): Likewise.
13412 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13413 (cond_if_else_store_replacement): Rename to...
13414 (cond_if_else_store_replacement_1): ... this. Change arguments and
13415 documentation.
13416 (cond_if_else_store_replacement): New function.
13417 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13418 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13419
4908b0bf
CLT
134202011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13421
13422 PR target/46934
13423 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13424 to subtract lower bound instead of GEN_INT().
13425
2be478a2
JW
134262011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13427
13428 PR other/48179
13429 PR other/48221
13430 PR other/48234
13431 * doc/extend.texi (Alignment): Move section to match order in TOC.
13432 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13433 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13434
0c617be4
JL
134352011-03-23 Jeff Law <law@redhat.com>
13436
13437 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13438 before removing the edge.
13439
13440 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13441 it may have been freed by redirect_branch_edge or
13442 redirect_edge_succ_nodup.
13443
58da96fe
RG
134442011-03-23 Richard Guenther <rguenther@suse.de>
13445
c78dd519 13446 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
13447 (check_va_list_escapes): Likewise.
13448 (check_all_va_list_escapes): Likewise.
13449
b8beb4d1
RG
134502011-03-23 Richard Guenther <rguenther@suse.de>
13451
13452 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13453 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13454 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13455 (alias.o): Likewise.
13456 (ipa-type-escape.o): Remove.
13457 (ipa-struct-reorg.o): Likewise.
13458 (GTFILES): Remove ipa-struct-reorg.c.
13459 * alias.c: Do not include ipa-type-escape.h.
13460 * tree-ssa-alias.c: Likewise.
13461 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13462 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13463 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13464 and ipa-type-escape passes.
13465 * tree-pass.h (pass_ipa_type_escape): Remove.
13466 (pass_ipa_struct_reorg): Likewise.
13467 * ipa-struct-reorg.h: Remove.
13468 * ipa-struct-reorg.c: Likewise.
13469 * ipa-type-escape.h: Likewise.
13470 * ipa-type-escape.c: Likewise.
13471 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13472 (--param struct-reorg-cold-struct-ratio): Likewise.
13473 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13474 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13475 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13476
f137aa63
AK
134772011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13478
13479 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13480 cpu attribute value.
13481 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13482 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13483 * config/s390/s390.c (processor_flags_table): New constant array.
13484 (s390_handle_arch_option): Remove.
13485 (s390_handle_option): Remove s390_handle_arch_option invocations
13486 and OPT_mwarn_framesize_ handling.
13487 (s390_option_override): Remove s390_handle_arch_option invocation.
13488 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13489 warnings.
13490 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13491 * config/s390/s390.opt (s390_tune, s390_arch)
13492 (march=): Replace s390_arch_option enum and values with
13493 processor_type. Set variable name to s390_arch. Set
13494 initialization value.
13495 (mtune=): Replace s390_arch_option with processor_type. Set
13496 variable name to s390_tune. Set initialization value.
13497
bf90208f
JB
134982011-03-23 Julian Brown <julian@codesourcery.com>
13499
13500 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13501 accesses which are not naturally aligned.
13502
3460fdf3
RS
135032011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13504
13505 PR target/47553
13506 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13507
a5c7d693
RS
135082011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13509
13510 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13511 parameter from "int" to "enum insn_code".
13512 (expand_operand_type): New enum.
13513 (expand_operand): New structure.
13514 (create_expand_operand): New function.
13515 (create_fixed_operand, create_output_operand): Likewise
13516 (create_input_operand, create_convert_operand_to): Likewise.
13517 (create_convert_operand_from, create_address_operand): Likewise.
13518 (create_integer_operand): Likewise.
13519 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13520 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13521 (expand_insn, expand_jump_insn): Likewise.
13522 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13523 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13524 (expand_movstr, expand_builtin___clear_cache): Likewise.
13525 (expand_builtin_lock_release): Likewise.
13526 * explow.c (allocate_dynamic_stack_space): Likewise.
13527 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13528 and use the default handling in that case.
13529 * expmed.c (check_predicate_volatile_ok): Delete.
13530 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13531 (emit_cstore): Likewise.
13532 * expr.c (emit_block_move_via_movmem): Likewise.
13533 (set_storage_via_setmem, expand_assignment): Likewise.
13534 (emit_storent_insn, try_casesi): Likewise.
13535 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13536 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13537 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13538 (expand_twoval_unop, expand_twoval_binop): Likewise.
13539 (expand_unop_direct, emit_indirect_jump): Likewise.
13540 (emit_conditional_move, vector_compare_rtx): Likewise.
13541 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13542 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13543 (expand_sync_lock_test_and_set): Likewise.
13544 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13545 (emit_unop_insn): Likewise.
13546 (expand_copysign_absneg): Change icode to an insn_code.
13547 (create_convert_operand_from_type): New function.
13548 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13549 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13550 (expand_insn, expand_jump_insn): Likewise.
13551 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13552 than const_int_operand for operand 2.
13553
78fadbab
AK
135542011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13555
13556 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13557 if possible.
13558
5f02387d
NF
135592011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13560
13561 * emit-rtl.c (emit_pattern_before_noloc): New function.
13562 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13563 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13564 (emit_pattern_after_noloc): New function.
13565 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13566 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13567
fdf3e18a
NF
135682011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13569
13570 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13571 (__ffsDI2): Likewise.
13572
42d085c1
RH
135732011-03-22 Richard Henderson <rth@redhat.com>
13574
13575 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13576 of !TARGET_ABI_OPEN_VMS.
13577 (alpha_trampoline_init, alpha_start_function): Likewise.
13578 (alpha_expand_epilogue, alpha_file_start): Likewise.
13579 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13580 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13581 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13582 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13583 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13584
cabbe12a
JM
135852011-03-22 Joseph Myers <joseph@codesourcery.com>
13586
13587 * config/s390/s390-opts.h: New.
13588 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13589 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13590 s390_stack_guard): Remove.
13591 (s390_handle_arch_option): Return void. Take enum
13592 s390_arch_option value instead of string and searching array.
13593 (s390_handle_option): Don't assert that global structures are in
13594 use. Access variables via opts pointer. Use error_at. Don't use
13595 sscanf for -mstack-guard= or -mstack-size=. Update call to
13596 s390_handle_arch_option.
13597 (s390_option_override): Update call to s390_handle_arch_option.
13598 (s390_emit_prologue): Use %d format for s390_stack_size in
13599 diagnostic. Use %wd for HOST_WIDE_INT.
13600 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13601 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13602 * config/s390/s390.opt (config/s390/s390-opts.h): New
13603 HeaderInclude entry.
13604 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13605 s390_arch_flags, s390_warn_framesize): New Variable entries.
13606 (s390_arch_option): New Enum and EnumValue entries.
13607 (march=): Use Enum instead of Var.
13608 (mstack-guard=, mstack-size=): Use UInteger and Var.
13609 (mtune=): Use Enum.
13610
05b12036
JM
136112011-03-22 Joseph Myers <joseph@codesourcery.com>
13612
13613 * config/score/score.c (score_handle_option): Don't assert that
13614 global structures are in use. Access target_flags via opts
13615 pointer. Use value of -march= option to determine target_flags
13616 settings.
13617 * config/score/score.opt (march=): Use Enum.
13618 (score_arch): New Enum and EnumValue entries.
13619
dd51e35a
JM
136202011-03-22 Joseph Myers <joseph@codesourcery.com>
13621
13622 * config/mep/mep.c (option_mtiny_specified): Remove.
13623 (mep_option_override): Move register handling for -mivc2 from
13624 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13625 instead of option_mtiny_specified.
13626 (mep_handle_option): Access target_flags via opts pointer. Don't
13627 assert that global structures are in use. Defer part of -mivc2
13628 handling and move it to mep_option_override.
13629 * config/mep/mep.opt (IVC2): New Mask entry.
13630 (mivc2): Use Var and Defer instead of Mask.
13631
4a8d3d91
JM
136322011-03-22 Joseph Myers <joseph@codesourcery.com>
13633
13634 * config/v850/v850-opts.h: New.
13635 * config/v850/v850.c (small_memory): Replace with
13636 small_memory_physical_max array. Make that array static const.
13637 (v850_handle_memory_option): Take integer value of argument. Take
13638 gcc_options pointer, option text and location. Return void.
13639 Update for changes to small memory structures.
13640 (v850_handle_option): Access target_flags via opts pointer. Don't
13641 assert that global structures are in use. Update calls to
13642 v850_handle_memory_option.
c78dd519
UB
13643 (v850_encode_data_area): Update references to small memory settings.
13644 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
13645 (enum small_memory_type): Move to v850-opts.h.
13646 * config/v850/v850.opt (config/v850/v850-opts.h): New
13647 HeaderInclude entry.
13648 (small_memory_max): New Variable entry.
13649 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13650 (mtda, mzda): Likewise.
13651
117fdbfa
JM
136522011-03-22 Joseph Myers <joseph@codesourcery.com>
13653
13654 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13655 pointer. Don't assert that global structures are in use.
13656
d715091c
JM
136572011-03-22 Joseph Myers <joseph@codesourcery.com>
13658
13659 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13660 via opts pointer. Don't assert that global structures are in use.
13661
1bb721dc
JM
136622011-03-22 Joseph Myers <joseph@codesourcery.com>
13663
13664 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13665 (munix=93): Use Var.
13666 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13667 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13668 * config/pa/pa-opts.h: New.
13669 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13670 (pa_handle_option): Don't assert that global structures are in
13671 use. Access target_flags via opts pointer. Don't handle
13672 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13673 OPT_munix_98 here.
13674 (pa_option_override): Handle deferred OPT_mfixed_range_.
13675
cd8d8754
JM
136762011-03-22 Joseph Myers <joseph@codesourcery.com>
13677
13678 * config/mn10300/mn10300-opts.h: New.
13679 * config/mn10300/mn10300.c (mn10300_processor,
13680 mn10300_tune_string): Remove.
13681 (mn10300_handle_option): Don't assert that global structures are
13682 in use. Access mn10300_processor via opts pointer. Don't handle
13683 OPT_mtune_ here.
13684 * config/mn10300/mn10300.h (enum processor_type): Move to
13685 mn10300-opts.h.
13686 (mn10300_processor): Remove.
13687 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13688 HeaderInclude entry.
13689 (mn10300_processor): New Variable entry.
13690 (mtune=): Use Var.
13691
24e6e6b1
JM
136922011-03-22 Joseph Myers <joseph@codesourcery.com>
13693
13694 * config/microblaze/microblaze.c: Don't include opts.h.
13695 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13696 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13697 (mno-clearbss): Use Var and Warn.
13698
8a784afb
JM
136992011-03-22 Joseph Myers <joseph@codesourcery.com>
13700
13701 * config/m32r/m32r-opts.h: New.
13702 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13703 (m32r_handle_option): Don't assert that global structures are in
13704 use. Access target_flags and m32r_cache_flush_func via opts
13705 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13706 OPT_mno_flush_trap here.
13707 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13708 include of m32r-opts.h.
13709 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13710 HeaderInclude entry.
13711 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13712 (mmodel=): Use Enum and Var.
13713 (m32r_model): New Enum and EnumValue entries.
13714 (mno-flush-trap): Use Var.
13715 (msdata=): Use Enum and Var.
13716 (m32r_sdata): New Enum and EnumValue entries.
13717
bbfc9a8c
JM
137182011-03-22 Joseph Myers <joseph@codesourcery.com>
13719
13720 * config/m32c/m32c.c: Don't include opts.h.
13721 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13722 m32c_handle_option): Remove.
13723 (m32c_option_override): Check global_options_set.x_target_memregs
13724 instead of target_memregs_set.
13725 * config/m32c/m32c.h (target_memregs): Remove.
13726 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13727 variable.
13728
e24b8335
JM
137292011-03-22 Joseph Myers <joseph@codesourcery.com>
13730
13731 * config/iq2000/iq2000-opts.h: New.
13732 * config/iq2000/iq2000.c: Don't include opts.h.
13733 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13734 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
13735 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13736 HeaderInclude entry.
13737 (iq2000_tune): New Variable entry.
13738 (march=): Add comment. Use Enum.
13739 (iq2000_arch): New Enum and EnumValue entries.
13740 (mcpu=): Use Enum and Var.
13741 (iq2000_tune): New Enum and EnumValue entries.
13742
e6cc0c98
JM
137432011-03-22 Joseph Myers <joseph@codesourcery.com>
13744
13745 * config/ia64/ia64-opts.h: New.
13746 * config/ia64/ia64.c (ia64_tune): Remove.
13747 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13748 here. Use error_at.
13749 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13750 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13751 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13752 HeaderInclude entry.
13753 (ia64_tune): New Variable entry.
13754 (mfixed-range=): Use Defer and Var.
13755 (mtune=): Use Enum and Var.
13756 (ia64_tune): New Enum and EnumValue entries.
13757
db25893c
JM
137582011-03-22 Joseph Myers <joseph@codesourcery.com>
13759
13760 * config/frv/frv-opts.h: New.
13761 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13762 frv-opts.h.
13763 (frv_cpu_type): Remove.
13764 * config/frv/frv.c: Don't include opts.h.
13765 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 13766 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
13767 (frv_cpu_type): New Variable entry.
13768 (frv_cpu): New Enum and EnumValue entries.
13769
6c223f5d
JM
137702011-03-22 Joseph Myers <joseph@codesourcery.com>
13771
13772 * config/cris/cris.c (cris_handle_option): Access target_flags via
13773 opts pointer. Don't assert that global structures are in use.
13774 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13775 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13776
bbd399cf
JM
137772011-03-22 Joseph Myers <joseph@codesourcery.com>
13778
13779 * config/bfin/bfin-opts.h: New.
13780 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13781 bfin_si_revision, bfin_workarounds): Remove.
13782 (bfin_cpus): Make static const.
13783 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13784 not bfin_lib_id_given.
13785 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13786 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 13787 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
13788 * config/bfin/bfin.h: Include bfin-opts.h.
13789 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13790 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13791 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13792 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13793 entries.
13794
5e1b4d5a
JM
137952011-03-22 Joseph Myers <joseph@codesourcery.com>
13796
13797 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13798 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13799 or -msoft-float here.
13800 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13801 -msoft-float and -mhard-float.
c78dd519 13802 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
13803 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13804 msoft-float.
13805 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13806 -msoft-float.
13807 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13808 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13809 not mhard-float.
13810 (LIBGCC_SPEC): Don't handle -msoft-float.
13811 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13812 -mhard-float.
13813 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13814 msoft-float.
13815 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13816 -mfloat-abi=*, not -msoft-float and -mhard-float.
13817 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13818 -msoft-float.
13819 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13820 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13821 mhard-float and msoft-float.
13822 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13823 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13824 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13825 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13826 mhard-float.
13827 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13828 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13829 msoft-float.
13830 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13831 not mhard-float.
13832 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13833 not msoft-float.
13834
800d1de1
RH
138352011-03-22 Richard Henderson <rth@redhat.com>
13836
13837 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13838 TARGET_ABI_WINDOWS_NT.
13839 (alpha_output_function_end_prologue): Likewise.
13840 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13841 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13842 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13843 (trap, *movsi_nt_vms): Likewise.
13844 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13845 (*tablejump_osf_nt_internal): Remove.
13846 * config/alpha/predicates.md (input_operand): Only test Pmode.
13847
c59ddd2b
JM
138482011-03-22 Joseph Myers <joseph@codesourcery.com>
13849
13850 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13851 via opts pointer. Use error_at. Don't assert that global
13852 structures are in use.
13853
1333f97f
JM
138542011-03-22 Joseph Myers <joseph@codesourcery.com>
13855
13856 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13857 (ix86_handle_option): Access ix86_isa_flags and
13858 ix86_isa_flags_explicit via opts pointer. Don't assert that
13859 global structures are in use.
13860 (ix86_function_specific_save, ix86_function_specific_restore):
13861 Update ix86_isa_flags_explicit field name.
c78dd519 13862 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
13863 (ix86_isa_flags_explicit): Rename TargetSave entry to
13864 x_ix86_isa_flags_explicit.
13865
75db85d8
RH
138662011-03-22 Richard Henderson <rth@redhat.com>
13867
13868 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13869 (alpha_option_override, direct_return): Likewise.
13870 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13871 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13872 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13873 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13874 (alpha_expand_epilogue, alpha_end_function): Likewise.
13875 (alpha_init_libfuncs): Likewise.
13876 (struct machine_function): Remove unicosmk members.
13877 (print_operand) ['t']: Remove.
13878 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13879 unicosmk_output_module_name, unicosmk_output_common,
13880 current_section_align, unicosmk_output_text_section_asm_op,
13881 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13882 unicosmk_section_type_flags, unicosmk_unique_section,
13883 unicosmk_asm_named_section, unicosmk_insert_attributes,
13884 unicosmk_output_align, unicosmk_defer_case_vector,
13885 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13886 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13887 unicosmk_output_ssib, unicosmk_add_call_info_word,
13888 unicosmk_extern_head, unicosmk_output_default_externs,
13889 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13890 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13891 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13892 * config/alpha/alpha-protos.h: Update.
13893 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13894 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13895 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13896 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13897 (*mulsi_se, mulvsi3): Likewise.
13898 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13899 (*divmodsi_internal, call, call_value, realign): Likewise.
13900 (moddi3, umoddi3): Likewise; remove duplicate expander.
13901 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13902 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13903 (*movdi_nofix): Remove r/U alternative.
13904 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13905 * config/alpha/constraints.md ("U"): Remove.
13906 * config/alpha/predicates.md (call_operand"): Don't test
13907 TARGET_ABI_UNICOSMK.
13908
96e45421
JM
139092011-03-22 Joseph Myers <joseph@codesourcery.com>
13910
13911 * target.def (handle_option): Take gcc_options and
13912 cl_decoded_option pointers and location_t.
13913 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13914 * doc/tm.texi: Regenerate.
13915 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13916 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13917 * lto-opts.c (lto_reissue_options): Generate option structure for
13918 targetm.handle_option call.
13919 * opts.c (target_handle_option): Update call to
13920 targetm.handle_option. Remove assertions about values now passed
13921 down to hook.
13922 * targhooks.c (default_target_handle_option): New.
13923 * targhooks.h (default_target_handle_option): Declare.
13924 * config/alpha/alpha.c: Include opts.h.
13925 (alpha_handle_option): Update to new hook interface.
13926 * config/arm/arm.c: Include opts.h.
13927 (arm_handle_option): Update to new hook interface.
13928 * config/arm/t-arm (arm.o): Update dependencies.
13929 * config/bfin/bfin.c: Include opts.h.
13930 (bfin_handle_option): Update to new hook interface.
13931 * config/cris/cris.c: Include opts.h.
13932 (cris_handle_option): Update to new hook interface.
13933 * config/frv/frv.c: Include opts.h.
13934 (frv_handle_option): Update to new hook interface.
13935 * config/i386/i386.c: Include opts.h.
13936 (ix86_handle_option): Update to new hook interface.
13937 (ix86_valid_target_attribute_inner_p): Generate option structure
13938 for call to ix86_handle_option.
13939 * config/i386/t-i386 (i386.o): Update dependencies.
13940 * config/ia64/ia64.c: Include opts.h.
13941 (ia64_handle_option): Update to new hook interface.
13942 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13943 * config/iq2000/iq2000.c: Include opts.h.
13944 (iq2000_handle_option): Update to new hook interface.
13945 * config/m32c/m32c.c: Include opts.h.
13946 (m32c_handle_option): Update to new hook interface.
13947 * config/m32r/m32r.c: Include opts.h.
13948 (m32r_handle_option): Update to new hook interface.
13949 * config/m68k/m68k.c: Include opts.h.
13950 (m68k_handle_option): Update to new hook interface.
13951 * config/mep/mep.c: Include opts.h.
13952 (mep_handle_option): Update to new hook interface.
13953 * config/microblaze/microblaze.c: Include opts.h.
13954 (microblaze_handle_option): Update to new hook interface.
13955 * config/mips/mips.c: Include opts.h.
13956 (mips_handle_option): Update to new hook interface.
13957 * config/mn10300/mn10300.c: Include opts.h.
13958 (mn10300_handle_option): Update to new hook interface.
13959 * config/pa/pa.c: Include opts.h.
13960 (pa_handle_option): Update to new hook interface.
13961 * config/pdp11/pdp11.c: Include opts.h.
13962 (pdp11_handle_option): Update to new hook interface.
13963 * config/rs6000/rs6000.c: Include opts.h.
13964 (rs6000_handle_option): Update to new hook interface.
13965 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13966 * config/rx/rx.c: Include opts.h.
13967 (rx_handle_option): Update to new hook interface.
13968 * config/s390/s390.c: Include opts.h.
13969 (s390_handle_option): Update to new hook interface.
13970 * config/score/score.c: Include opts.h.
13971 (score_handle_option): Update to new hook interface.
13972 * config/sh/sh.c: Include opts.h.
13973 (sh_handle_option): Update to new hook interface.
13974 * config/sparc/sparc.c: Include opts.h.
13975 (sparc_handle_option): Update to new hook interface.
13976 * config/v850/v850.c: Include opts.h.
13977 (v850_handle_option): Update to new hook interface.
13978
66017846
JM
139792011-03-22 Joseph Myers <joseph@codesourcery.com>
13980
13981 * gcc.c (driver_unknown_option_callback): Only permit and save
13982 unknown -Wno- options.
13983 (driver_wrong_lang_callback): Save options directly instead of via
13984 driver_unknown_option_callback.
13985
e8b97ccd
EB
139862011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13987
13988 * combine.c (simplify_set): Try harder to find the best CC mode when
13989 simplifying a nested COMPARE on the RHS.
13990
ebb9f8b0
JM
139912011-03-22 Joseph Myers <joseph@codesourcery.com>
13992
13993 * config/alpha/gnu.h: Remove.
13994 * config/arc: Remove directory.
13995 * config/arm/netbsd.h: Remove.
13996 * config/arm/t-pe: Remove.
13997 * config/crx: Remove directory.
13998 * config/i386/netbsd.h: Remove.
13999 * config/m68hc11: Remove directory.
14000 * config/m68k/uclinux-oldabi.h: Remove.
14001 * config/mcore/mcore-pe.h: Remove.
14002 * config/mcore/t-mcore-pe: Remove.
14003 * config/netbsd-aout.h: Remove.
14004 * config/rs6000/gnu.h: Remove.
14005 * config/sh/sh-symbian.h: Remove.
14006 * config/sh/symbian-base.c: Remove.
14007 * config/sh/symbian-c.c: Remove.
14008 * config/sh/symbian-cxx.c: Remove.
14009 * config/sh/symbian-post.h: Remove.
14010 * config/sh/symbian-pre.h: Remove.
14011 * config/sh/t-symbian: Remove.
14012 * config/svr3.h: Remove.
14013 * config/vax/netbsd.h: Remove.
14014 * config.build: Don't handle i[34567]86-*-pe.
14015 * config.gcc: Remove handling of deprecations for most deprecated
14016 targets.
14017 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14018 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14019 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14020 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14021 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14022 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14023 Remove cases.
14024 * config.host: Don't handle i[34567]86-*-pe.
14025 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14026 (ASM_SPEC32): Don't handle -mcall-gnu.
14027 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14028 -mcall-gnu.
14029 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14030 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14031 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14032 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14033 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14034 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14035 conditional on SYMBIAN.
14036 * configure.ac: Don't handle powerpc*-*-gnu*.
14037 * configure: Regenerate.
14038 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14039 * doc/install-old.texi (m6811, m6812): Don't mention.
14040 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14041 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14042 (m68k-uclinuxoldabi): Don't mention.
14043 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14044 Remove.
14045 (-mcall-gnu): Remove.
14046 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14047 families): Remove constraint documentation.
14048
999a7d80
MS
140492011-03-22 Marius Strobl <marius@FreeBSD.org>
14050
14051 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14052 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14053 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14054
45540bcf
MM
140552011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14056
14057 PR target/48226
14058 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14059 vector when peeking at the next token for vector, don't expand the
14060 keywords.
14061
980a0ff4
GJL
140622011-03-21 Georg-Johann Lay <avr@gjlay.de>
14063
14064 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14065 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14066 * config/avr/avr.c (init_cumulative_args)
14067 (avr_function_arg_advance): Use it.
14068 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14069 sibcall epilogues.
14070 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14071 (avr_function_ok_for_sibcall): ...this new function.
14072 (avr_lookup_function_attribute1): New static Function.
14073 (avr_naked_function_p, interrupt_function_p)
14074 (signal_function_p, avr_OS_task_function_p)
14075 (avr_OS_main_function_p): Use it.
14076 * config/avr/avr.md ("sibcall", "sibcall_value")
14077 ("sibcall_epilogue"): New expander.
14078 ("*call_insn", "*call_value_insn"): New insn.
14079 ("call_insn", "call_value_insn"): Remove
14080 ("call", "call_value", "epilogue"): Change expander to handle
14081 sibling calls.
14082
49168734
NC
140832011-03-21 Nick Clifton <nickc@redhat.com>
14084
14085 * doc/invoke.texi (Overall Options): Move closing brace to end of
14086 options list.
14087 (Optimization Options): Add missing @gol.
14088 (Directory Options): Likewise.
14089 (i386 and x86-64 Options): Likewise.
14090 (RS6000 and PowerPC Options): Likewise.
14091 (i386 and x86-64 Windows Options): Likewise.
14092 (V850 Options): Add text missing from descriptions.
14093
bdfe906f
RH
140942011-03-22 Richard Henderson <rth@redhat.com>
14095
14096 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14097 (avr_incoming_return_addr_rtx): New.
14098 (emit_push_byte): New.
14099 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14100 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14101 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14102 (emit_pop_byte): New.
14103 (expand_epilogue): Use it. Pop frame pointer by bytes.
14104 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14105 (INCOMING_RETURN_ADDR_RTX): New.
14106 (INCOMING_FRAME_SP_OFFSET): New.
14107 (ARG_POINTER_CFA_OFFSET): New.
14108 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14109 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14110 (pophi): Remove.
14111
d090a5aa
RH
14112 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14113
fdf3e18a
NF
141142011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14115
14116 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14117 (FUNCTION_ARG_ADVANCE): Likewise.
14118 * tm.texi.in: Change references to them to hook references.
14119 * tm.texi: Regenerate.
14120 * targhooks.c (default_function_arg): Eliminate check for target
14121 macro.
14122 (default_function_incoming_arg): Likewise.
14123 (default_function_arg_advance): Likewise.
c78dd519 14124 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
14125 (function_arg_advance): Likewise.
14126 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14127
009d3fcf
NF
141282011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14129
14130 * tree.c (build_call_1): New function.
14131 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14132
7bec30e1
RG
141332011-03-22 Richard Guenther <rguenther@suse.de>
14134
14135 PR tree-optimization/48228
14136 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14137 for single-arg PHIs.
14138
0b7e851b
AB
141392011-03-22 Andrey Belevantsev <abel@ispras.ru>
14140
14141 PR rtl-optimization/48143
14142 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14143 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14144 sse2_cvtps2pd): Likewise.
14145
d89afca5
AK
141462011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14147
14148 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14149
f471fe72
RG
141502011-03-22 Richard Guenther <rguenther@suse.de>
14151
14152 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14153 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14154 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14155 and REALIGN_LOAD_EXPR.
14156 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14157 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14158 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14159 DOT_PROD_EXPR case ...
14160 (expand_expr_real_2): ... here.
14161 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14162 and REALIGN_LOAD_EXPR.
14163 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14164 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14165 (vect_create_epilog_for_reduction): Likewise.
14166 (vectorizable_reduction): Likewise.
14167 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14168 * tree-vect-stmts.c (vectorizable_load): Likewise.
14169
f2f81d57
EB
141702011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14171
14172 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14173
ab081dd6
AK
141742011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14175
14176 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14177 handling for PLTOFF/GOTOFF.
14178
6fd5332b
NC
141792011-03-22 Nick Clifton <nickc@redhat.com>
14180
14181 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14182 trailing backslash from the end of the macro definition.
14183
01841ac0
AK
141842011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14185
14186 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14187 and PLT unspecs.
14188
2ef6ce06
RS
141892011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14190
14191 * expr.h (prepare_operand): Move to...
14192 * optabs.h (prepare_operand): ...here and change the insn code
14193 parameter from "int" to "enum insn_code".
14194 (insn_operand_matches): Declare.
14195 * expr.c (init_expr_target): Use insn_operand_matches.
14196 (compress_float_constant): Likewise.
14197 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14198 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14199 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
14200 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14201 Likewise.
2ef6ce06
RS
14202 (gen_cond_trap): Likewise.
14203 (prepare_operand): Likewise. Change icode to an insn_code.
14204 (insn_operand_matches): New function.
14205 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14206 * reload1.c (gen_reload): Likewise.
14207 * targhooks.c (default_secondary_reload): Likewise.
14208
9e43ad68
UB
142092011-03-21 Uros Bizjak <ubizjak@gmail.com>
14210
9a96da32
UB
14211 * config/alpha/alpha.md (unspec): New define_c_enum.
14212 (unspecv): Ditto.
14213
142142011-03-21 Uros Bizjak <ubizjak@gmail.com>
14215
14216 PR debug/48214
9e43ad68
UB
14217 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14218 between a call and its CALL_ARG_LOCATION note.
14219
31408f60
EB
142202011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14221
14222 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14223
142242011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
14225
14226 PR c/42544
14227 PR c/48197
14228 * c-common.c (shorten_compare): If primopN is first sign-extended
14229 to opN and then zero-extended to result type, set primopN to opN.
14230
9dfd55f5
DJ
142312011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14232
14233 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14234 for barrier handlers.
14235
f3c33d9d
MM
142362011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14237
14238 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14239 UNSPEC constants to be in the unspec enumeration, and redefine
14240 all UNSPECV constants to be in the unspecv enumeration, so that
14241 dumps print which unspec/unspec_volatile this is.
14242 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14243 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14244 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14245 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14246 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14247
14248 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14249 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14250 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14251 * config/rs6000/sync.md (isync, lwsync): Ditto.
14252
ac43f774
RG
142532011-03-21 Richard Guenther <rguenther@suse.de>
14254
14255 * params.def (lto-min-partition): Fix typo.
14256
411cdbd8
RG
142572011-03-21 Richard Guenther <rguenther@suse.de>
14258
14259 PR c/47939
14260 * c-decl.c (grokdeclarator): Drop to the main variant only
14261 for array types. Drop flag_gen_aux_info check.
14262
1cd9e416
RG
142632011-03-21 Richard Guenther <rguenther@suse.de>
14264
14265 PR translation/47911
14266 * params.def (lto-partitions): Fix typo.
14267 (lto-min-partition): Fix wording.
14268
ada5ad67
AT
142692011-03-21 Andreas Tobler <andreast@fgznet.ch>
14270
14271 * config/rs6000/t-freebsd: Remove duplication from file.
14272
f9613c9a
RG
142732011-03-21 Richard Guenther <rguenther@suse.de>
14274
14275 PR middle-end/47661
14276 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14277
9bfbc1eb
RG
142782011-03-21 Richard Guenther <rguenther@suse.de>
14279
14280 PR lto/48210
14281 * params.def (lto-partitions): Require at least 1 partition.
14282
a2268084
RO
142832011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14284
14285 * gthr-solaris.h: Remove.
14286 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14287 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14288 (LIB_SPEC): Likewise.
14289 * config/sol2.opt (threads): Remove.
9e43ad68 14290 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
14291 (sparc*-*-solaris2*): Likewise.
14292 * configure.ac (enable_threads): Enable solaris support.
14293 * configure: Regenerate.
9e43ad68 14294 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
14295 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14296 solaris.
14297
c43d9a1b
RO
142982011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14299
14300 * config.gcc: Obsolete *-*-solaris2.8*.
14301 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14302
084239f4
RO
143032011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14304
14305 PR bootstrap/48135
14306 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14307 reference. Solaris 8 perl works.
14308
64cadbe7
RO
143092011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14310
14311 PR bootstrap/48135
14312 * doc/install.texi (Prerequisites): Move jar etc. up.
14313 Explain support library version requirements.
14314
eb975109
RO
143152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14316
14317 PR bootstrap/48135
14318 * doc/install.texi (Prerequisites): Move Perl to build
14319 requirements. Always necessary on Solaris 2 with Sun ld.
14320
8a509ffd
RO
143212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14322
14323 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14324 binutils 2.21.
14325 (Specific, i?86-*-solaris2.[89]): Likewise.
14326 (Specific, i?86-*-solaris2.10): Likewise.
14327 (Specific, mips-sgi-irix6): Likewise.
14328 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14329 Update for binutils 2.21.
14330
8fbc58a1
RO
143312011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14332
14333 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14334 Allow -fuse-linker-plugin for non-default plugin linker.
14335 * configure: Regenerate.
14336
7e84ad0b
NP
143372011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14338
14339 PR bootstrap/48167
14340 * gengtype.c (files_rules): Added rule for cp/parser.h.
14341
2f36e14b
JJ
143422011-03-21 Jakub Jelinek <jakub@redhat.com>
14343
14344 PR target/48213
14345 * config/s390/s390.c (s390_delegitimize_address): Don't call
14346 lowpart_subreg if orig_x has BLKmode.
14347
62d784f7
KT
143482011-03-21 Kai Tietz <ktietz@redhat.com>
14349
14350 PR target/12171
9e43ad68
UB
14351 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14352 * tree.h (attribute_spec): Add new member affects_type_identity.
14353 * attribs.c (empty_attribute_table): Adjust attribute_spec
14354 initializers.
62d784f7
KT
14355 * config/alpha/alpha.c: Likewise.
14356 * config/arc/arc.c: Likewise.
14357 * config/arm/arm.c: Likewise.
14358 * config/avr/avr.c: Likewise.
14359 * config/bfin/bfin.c: Likewise.
14360 * config/crx/crx.c: Likewise.
14361 * config/darwin.h: Likewise.
14362 * config/h8300/h8300.c: Likewise.
14363 * config/i386/cygming.h: Likewise.
14364 * config/i386/i386.c: Likewise.
14365 * config/ia64/ia64.c: Likewise.
14366 * config/m32c/m32c.c: Likewise.
14367 * config/m32r/m32r.c: Likewise.
14368 * config/m68hc11/m68hc11.c: Likewise.
14369 * config/m68k/m68k.c: Likewise.
14370 * config/mcore/mcore.c: Likewise.
14371 * config/mep/mep.c: Likewise.
14372 * config/microblaze/microblaze.c: Likewise.
14373 * config/mips/mips.c: Likewise.
14374 * config/rs6000/rs6000.c: Likewise.
14375 * config/rx/rx.c: Likewise.
14376 * config/sh/sh.c: Likewise.
14377 * config/sol2.h: Likewise.
14378 * config/sparc/sparc.c: Likewise.
14379 * config/spu/spu.c: Likewise.
14380 * config/stormy16/stormy16.c: Likewise.
14381 * config/v850/v850.c: Likewise.
14382
54833ec0
CLT
143832011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14384
14385 * simplify-rtx.c (simplify_binary_operation_1): Handle
14386 (xor (and A B) C) case when B and C are both constants.
14387
14a41392
MX
143882011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14389
14390 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14391
806c3492
EB
143922011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14393
14394 PR bootstrap/48168
14395 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14396
65e0a0f3
JJ
143972011-03-20 Jakub Jelinek <jakub@redhat.com>
14398
14399 PR rtl-optimization/48156
14400 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14401 assume df and df_lr are not NULL.
14402
b6a75dda
RR
144032011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14404
14405 PR debug/48023
14406 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14407 between a call and its CALL_ARG_LOCATION note.
14408
5969b52d
KK
144092011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14410
14411 PR debug/48178
14412 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14413 between a call and its corresponding CALL_ARG_LOCATION note.
14414
f773c2bd
AS
144152011-03-19 Anatoly Sokolov <aesok@post.ru>
14416
14417 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14418 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14419 * haifa-sched.c (setup_ref_regs): Ditto.
14420 * caller-save.c (add_used_regs_1): Ditto.
14421 * dse.c (look_for_hardregs): Ditto.
14422 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14423 * sched-rgn.c (check_live_1): Ditto.
14424
8bf872f9
JM
144252011-03-18 Joseph Myers <joseph@codesourcery.com>
14426
14427 * c-decl.c (diagnose_mismatched_decls): Give an error for
14428 redefining a typedef with variably modified type.
14429
ff8e2159
JM
144302011-03-18 Joseph Myers <joseph@codesourcery.com>
14431
14432 * c-decl.c (grokfield): Don't allow typedefs for structures or
14433 unions with no tag by default.
14434 * doc/extend.texi (Unnamed Fields): Update.
14435
16cc4440
UB
144362011-03-18 Uros Bizjak <ubizjak@gmail.com>
14437
14438 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14439 Rewrite using indirect functions.
14440 (lwp_slwpcb): Ditto.
14441 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14442 (avx_vinsertf128<mode>): Ditto.
14443
e101e12e
AK
144442011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14445
14446 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14447 unspecs.
14448
4627c7fb
AK
144492011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14450
14451 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 14452 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 14453
2d36b47f
MK
144542011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14455
14456 PR rtl-optimization/48170
14457 * gcse.c (hoist_code): Remove bogus asserts.
14458
2a3d7659
JL
144592011-03-18 Georg-Johann Lay <avr@gjlay.de>
14460
14461 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14462 computation for prologue/epilogue.
14463
34c3ef05
RO
144642011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14465
14466 * Makefile.in (check-consistency): Remove.
14467
81f2b976
JJ
144682011-03-18 Jakub Jelinek <jakub@redhat.com>
14469
14470 PR debug/48176
14471 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14472 arange_table_in_use is 0, but either text_section_used or
14473 cold_text_section_used is true. Don't call it if
14474 !info_section_emitted.
14475
68fd7765
AS
144762011-03-18 Anatoly Sokolov <aesok@post.ru>
14477
14478 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14479 FUNCTION_VALUE_REGNO_P): Remove.
14480 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14481 Remove.
14482 * config/avr/avr.c (avr_ret_register): Make static inline.
14483 (avr_function_value_regno_p): New function.
14484 (avr_libcall_value): Make static. Add 'func' argument.
14485 (avr_function_value): Make static. Rename 'func' argument to
14486 'fn_decl_or_type', forward it to avr_libcall_value. Call
14487 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 14488 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 14489
b4ef8aac
JM
144902011-03-18 Jason Merrill <jason@redhat.com>
14491
14492 PR c++/23372
14493 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14494
09a52fc3
RG
144952011-03-18 Richard Guenther <rguenther@suse.de>
14496
14497 * doc/install.texi (--enable-gold): Remove.
14498 (--with-plugin-ld): Document.
14499 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14500
2a3d7659 145012011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
14502
14503 PR middle-end/47790
14504 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14505 again after expansion changes.
14506
2abbb0fe
CLT
145072011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14508
14509 * combine.c (try_combine): Do simplification only call of
14510 subst() on i2 even when i1 is present. Update comments.
14511
2efd0aa6
KK
145122011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14513
14514 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14515 and UNSPEC_PCREL_SYMOFF.
14516
30a49b23
AK
145172011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14518
14519 * config/s390/s390.md: Use define_c_enum for the unspec constant
14520 definitions.
14521
419e1853
JJ
145222011-03-18 Richard Henderson <rth@redhat.com>
14523 Jakub Jelinek <jakub@redhat.com>
14524
14525 PR bootstrap/48161
14526 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14527 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14528
37875856
L
145292011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14530
14531 PR middle-end/47725
14532 * combine.c (cant_combine_insn_p): Don't check zero/sign
14533 extended hard registers.
14534
76069764
L
145352011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14536
14537 PR middle-end/47725
14538 * combine.c (cant_combine_insn_p): Check zero/sign extended
14539 hard registers.
14540
24da2019
AS
145412011-03-17 Anatoly Sokolov <aesok@post.ru>
14542
14543 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14544 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14545 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14546 Change return type to bool.
14547 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14548
a82ff31f
JJ
145492011-03-17 Jakub Jelinek <jakub@redhat.com>
14550
8b29c87a
JJ
14551 PR debug/48163
14552 * var-tracking.c (prepare_call_arguments): If CALL target
14553 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14554 pc instead of looking it up using cselib_lookup and use
14555 Pmode for it if x has VOIDmode.
14556 * dwarf2out.c (gen_subprogram_die): If also both first and
14557 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14558
a82ff31f
JJ
14559 PR debug/48163
14560 * function.c (assign_parms): For data.passed_pointer parms
14561 use MEM of data.entry_parm instead of data.entry_parm itself
14562 as DECL_INCOMING_RTL.
14563 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14564 also when passed and declared mode is the same, DECL_RTL
14565 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14566 a MEM too.
14567
82ce305c
JL
145682011-03-16 Jeff Law <law@redhat.com>
14569
14570 PR rtl-optimization/37273
14571 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14572 handle them like argument loads from stack slots. Do not double
14573 count memory for memory constants and argument loads from stack slots.
14574
fe58e02b
L
145752011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14576
14577 PR debug/48160
14578 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14579
6fc4dbc7
L
145802011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14581
14582 PR target/48171
14583 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14584
db3ed0b3
JJ
145852011-03-17 Jakub Jelinek <jakub@redhat.com>
14586
8054a389
JJ
14587 PR bootstrap/48153
14588 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14589 if dwarf_strict.
14590 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14591 Clear call_arg_locations and call_arg_loc_last always.
14592
db3ed0b3
JJ
14593 PR middle-end/48152
14594 * var-tracking.c (prepare_call_arguments): If argument needs to be
14595 passed by reference, adjust argtype and mode.
14596
1bce4ff3
RG
145972011-03-17 Richard Guenther <rguenther@suse.de>
14598
14599 PR middle-end/48134
14600 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14601 a value make sure to fold the statement.
14602
7c71147d
CLT
146032011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14604
14605 PR target/43872
14606 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14607 return condition with !cfun->calls_alloca.
14608
0e1ee172
RG
146092011-03-17 Richard Guenther <rguenther@suse.de>
14610
14611 PR bootstrap/48148
14612 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14613 origin for decls in other ltrans units.
14614 (input_varpool_node): Likewise.
14615
f8bce518
RG
146162011-03-17 Richard Guenther <rguenther@suse.de>
14617
14618 PR middle-end/48165
14619 * tree-object-size.c (compute_object_offset): Properly return
14620 the offset operand of MEM_REFs as sizetype.
14621
1b6fa860
JJ
146222011-03-17 Jakub Jelinek <jakub@redhat.com>
14623
dabd47e7
JJ
14624 PR rtl-optimization/48141
14625 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14626 * dse.c: Include params.h.
14627 (active_local_stores_len): New variable.
14628 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14629 to NULL.
14630 (record_store, check_mem_read_rtx): Decrease it when removing
14631 from the chain.
14632 (scan_insn): Likewise. Increase it when adding to chain, if it
14633 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14634 set active_local_stores to NULL before the addition.
14635 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14636
1b6fa860
JJ
14637 PR rtl-optimization/48141
14638 * dse.c (record_store): If no positions are needed in an insn
14639 that cannot be deleted, at least unchain it from active_local_stores.
14640
7b5cb7d6
DS
146412011-03-16 Dodji Seketeli <dodji@redhat.com>
14642
14643 PR debug/47510
14644 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14645 (lookup_type_die_strip_naming_typedef): ... here.
14646 (get_context_die): Use it.
14647 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14648 the anonymous struct named by the naming typedef.
14649
585e9d9d
L
146502011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14651
14652 PR target/48154
14653 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14654 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14655
6261ab0e
JL
146562011-03-16 Jeff Law <law@redhat.com>
14657
14658 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 14659 check for operands of conditional. Allow type to be a pointer.
6261ab0e 14660
0b0081ec
RG
146612011-03-16 Richard Guenther <rguenther@suse.de>
14662
14663 PR tree-optimization/48149
14664 * fold-const.c (fold_binary_loc): Fold
14665 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14666
64a3d647
RG
146672011-03-16 Richard Guenther <rguenther@suse.de>
14668
14669 PR tree-optimization/26134
14670 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14671 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14672 (non_rewritable_mem_ref_base): Handle complex type component
14673 accesses, constrain offsets for vector and complex extracts
14674 more properly.
14675
ef13324e
RG
146762011-03-16 Richard Guenther <rguenther@suse.de>
14677
14678 PR tree-optimization/48146
14679 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14680 operands avoiding the need for renaming.
14681
f0eddb90
RG
146822011-03-16 Richard Guenther <rguenther@suse.de>
14683
14684 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14685 constant folding. Move MEM_REF canonicalization first.
14686 Rely on fold_const_aggregate_ref for initializer folding.
14687 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14688
e42348b8
JJ
146892011-03-16 Jakub Jelinek <jakub@redhat.com>
14690
29f10e71
JJ
14691 PR middle-end/48136
14692 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14693 arg0/arg1 or their arguments are always fold converted to matching
14694 types.
14695
e42348b8
JJ
14696 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14697 to nargs.
14698
55b46574
RO
146992011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14700
14701 PR lto/46944
14702 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14703 Handle in-tree gold.
14704 (ld_vers): Extract binutils version for gold.
14705 (gcc_cv_ld_hidden): Handle gold here.
14706 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14707 * configure: Regenerate.
14708 * config.in: Regenerate.
14709 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14710 -fuse-linker-plugin otherwise.
14711 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14712 (LINK_COMMAND_SPEC): Use it.
14713 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14714
2b1c5433
JJ
147152011-03-16 Jakub Jelinek <jakub@redhat.com>
14716
c2969d8e
JJ
14717 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14718 * calls.c: Remove debug.h include.
14719 (emit_call_1): Don't call virtual_call_token debug hook.
14720 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14721 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14722 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14723 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14724 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14725 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14726 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14727 dwarf2out_virtual_call): Remove.
14728 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14729 copy_call_info and virtual_call hooks.
14730 (dwarf2out_init): Don't initialize vcall_insn_table,
14731 debug_dcall_section and debug_vcall_section.
14732 (prune_unused_types): Don't mark nodes from dcall_table.
14733 (dwarf2out_finish): Don't output dcall or vcall tables.
14734 * final.c (final_scan_insn): Don't call direct_call or
14735 virtual_call debug hooks.
14736 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14737 virtual_call_token, copy_call_info and virtual_call hooks.
14738 (debug_nothing_uid): Remove prototype.
14739 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14740 copy_call_info and virtual_call hooks.
14741 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14742 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14743 * debug.c (do_nothing_debug_hooks): Likewise.
14744 (debug_nothing_uid): Remove.
14745 * doc/invoke.texi (-fenable-icf-debug): Remove.
14746 * common.opt (-fenable-icf-debug): Likewise.
14747
325f5379
JJ
14748 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14749 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14750 call's MEM. Handle functions returning aggregate through a hidden
14751 first pointer. For virtual calls add clobbered pc to call arguments
14752 chain.
14753 * dwarf2out.c (gen_subprogram_die): Emit
14754 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14755 can't be emitted.
14756
a58a8e4b
JJ
14757 PR debug/45882
14758 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14759 * rtl.h (ENTRY_VALUE_EXP): Define.
14760 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14761 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14762 * print-rtl.c (print_rtx): Likewise.
14763 * gengtype.c (adjust_field_rtx_def): Likewise.
14764 * var-tracking.c (vt_add_function_parameter): Adjust
14765 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14766 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14767 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14768 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14769 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14770
2b1c5433
JJ
14771 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14772 Call var_location debug hook even on CALL_INSNs.
14773 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14774 * rtl.def (ENTRY_VALUE): New.
14775 * dwarf2out.c: Include cfglayout.h.
14776 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14777 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14778 (struct call_arg_loc_node): New type.
14779 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14780 tail_call_site_count): New variables.
14781 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14782 DW_TAG_GNU_call_site_parameter.
14783 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14784 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14785 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14786 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14787 and DW_AT_GNU_all_source_call_sites.
14788 (mem_loc_descriptor): Handle ENTRY_VALUE.
14789 (add_src_coords_attributes): Don't add enything if
14790 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14791 (dwarf2out_abstract_function): Save and clear call_arg_location,
14792 call_site_count and tail_call_site_count around dwarf2out_decl call.
14793 (gen_call_site_die): New function.
14794 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14795 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14796 (dwarf2out_function_decl): Clear call_arg_locations,
14797 call_arg_loc_last, set call_site_count and tail_call_site_count
14798 to -1 and free block_map.
14799 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14800 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14801 followed by any real instructions.
14802 (dwarf2out_begin_function): Set call_site_count and
14803 tail_call_site_count to 0.
14804 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14805 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14806 attempt to force a DIE for it and worst case remove the attribute.
14807 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14808 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14809 the decl itself.
14810 * var-tracking.c: Include tm_p.h.
14811 (vt_stack_adjustments): For calls call note_register_arguments.
14812 (argument_reg_set): New variable.
14813 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14814 ensure the VALUE is resolved.
14815 (call_arguments): New variable.
14816 (prepare_call_arguments): New function.
14817 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14818 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14819 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14820 always use the best expression.
14821 (vt_expand_loc): Add ignore_cur_loc argument.
14822 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14823 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14824 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14825 note for all calls.
14826 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14827 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14828 argument. Don't call cselib_preserve_only_values and
14829 cselib_reset_table.
14830 (note_register_arguments): New function.
14831 (vt_initialize): Compute argument_reg_set. Call
14832 vt_add_function_parameters before processing basic blocks instead of
14833 afterwards. For calls call prepare_call_arguments before calling
14834 cselib_process_insn.
14835 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14836 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14837 (var-tracking.o): Depend on $(TM_P_H).
14838 * cfglayout.h (insn_scope): New prototype.
14839 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14840 * cfglayout.c (insn_scope): No longer static.
14841 * insn-notes.def (CALL_ARG_LOCATION): New.
14842 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14843 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14844 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14845 nothing for DECL_EXTERNAL BLOCK_VARS.
14846
9ef13bd0
AM
148472011-03-16 Alan Modra <amodra@gmail.com>
14848
14849 PR target/45844
14850 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14851 create invalid offset address for vsx splat insn.
14852 * config/rs6000/predicates.md (splat_input_operand): New.
14853 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14854
56b67510
XDL
148552011-03-15 Xinliang David Li <davidxl@google.com>
14856
14857 PR c/47837
14858 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14859 (normalize_preds): New function.
14860 (is_use_properly_guarded): Normalize def predicates.
14861
80fffdef
RR
148622011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14863
732f37c6 14864 PR target/46788
80fffdef
RR
14865 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14866 in the output template.
14867
930672ad
RG
148682011-03-15 Richard Guenther <rguenther@suse.de>
14869
14870 PR middle-end/47650
14871 * tree-pretty-print.c (dump_function_declaration): Properly
14872 dump unprototyped and varargs function types.
14873
c7ee7b45
RG
148742011-03-15 Richard Guenther <rguenther@suse.de>
14875
14876 PR tree-optimization/13954
14877 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14878 and friends.
14879
b2ad5e37
RG
148802011-03-15 Richard Guenther <rguenther@suse.de>
14881
14882 PR tree-optimization/48037
14883 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14884 selects into BIT_FIELD_REFs.
14885 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14886 vector select.
14887
7ee93d4e
JJ
148882011-03-15 Jakub Jelinek <jakub@redhat.com>
14889
14890 PR tree-optimization/48129
14891 * builtins.c (fold_builtin_snprintf): Convert to type of
14892 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14893 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14894
e106efc7
RG
148952011-03-15 Richard Guenther <rguenther@suse.de>
14896
14897 PR tree-optimization/41490
14898 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14899 value but with VUSE.
14900 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14901 return statements.
14902 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14903 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14904 * tree-tailcall.c (find_tail_calls): Ignore returns.
14905
17dea42f
RG
149062011-03-15 Richard Guenther <rguenther@suse.de>
14907
14908 PR middle-end/48031
14909 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14910 or variable-indexed array accesses when in gimple form.
14911
01c77a60
RG
149122011-03-15 Richard Guenther <rguenther@suse.de>
14913
16cc4440 14914 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 14915
77b0791e
AM
149162011-03-15 Alan Modra <amodra@gmail.com>
14917
14918 PR target/48032
14919 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14920 presume symbol_refs without a symbol_ref_decl are suitably
14921 aligned, nor other trees we may see here. Handle anchor symbols.
14922 (legitimate_constant_pool_address_p): Comment. Add mode param.
14923 Check cmodel=medium addresses. Adjust all calls.
14924 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14925 creating cmodel=medium optimized access to locals.
14926 * config/rs6000/constraints.md (R): Pass QImode to
14927 legitimate_constant_pool_address_p.
14928 * config/rs6000/predicates.md (input_operand): Pass mode to
14929 legitimate_constant_pool_address_p.
14930 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14931 Update prototype.
14932
35f61ba4
MM
149332011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14934
14935 PR target/48053
14936 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14937 64-bit constants being loaded into registers other than GPRs such
14938 as loading 0 into a VSX register.
14939
07332e6d
RO
149402011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14941
16cc4440 14942 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 14943
de888d90
JJ
149442011-03-14 Jakub Jelinek <jakub@redhat.com>
14945
ba3ceb2d
JJ
14946 PR middle-end/47917
14947 * builtins.c (fold_builtin_snprintf): New function.
14948 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14949 (fold_builtin_4): Likewise.
14950
2e64f8b8
JJ
14951 PR middle-end/38878
14952 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14953 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14954 and C - X == X also strip nops from +/-/p+ operand.
14955 When optimizing -X == C, fold C to arg0's type.
14956
de888d90
JJ
14957 PR debug/47946
14958 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14959 emit it as add_AT_int instead of add_AT_unsigned.
14960
149612011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
14962
14963 * unwind-dw2.c: Include sys/sdt.h if it exists.
14964 (_Unwind_DebugHook): Use STAP_PROBE2.
14965 * config.in, configure: Rebuild.
14966 * configure.ac: Check for sys/sdt.h.
14967
d34abfd2
UB
149682011-03-14 Uros Bizjak <ubizjak@gmail.com>
14969
14970 * config/i386/i386.md (ROUND_FLOOR): New constant.
14971 (ROUND_CEIL): Ditto.
14972 (ROUND_TRUNC): Ditto.
14973 (ROUND_MXCSR): Ditto.
14974 (ROUND_NO_EXC): Ditto.
14975 (rint<mode>2): Use new defines instead of numerical constants.
14976 (floor<mode>2): Ditto.
14977 (ceil<mode>2): Ditto.
14978 (btrunc<mode>2): Ditto.
14979 * config/i386/i386-builtin-types.def: Define ROUND function type
14980 aliases.
14981 * config/i386/i386.c (enum ix86_builtins): Add
14982 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14983 (struct builtin_description): Add
14984 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14985 (ix86_expand_sse_round): New static function.
14986 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14987 function types.
14988 (ix86_builtin_vectorized_function): Handle
14989 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14990
87f9e23d
TT
149912011-03-14 Tom Tromey <tromey@redhat.com>
14992
14993 * c-parser.c (c_parser_asm_string_literal): Clear
14994 warn_overlength_strings.
14995
b3ab9ea2
TT
149962011-03-14 Tom Tromey <tromey@redhat.com>
14997
14998 * c-parser.c (disable_extension_diagnostics): Save
14999 warn_overlength_strings.
15000 (restore_extension_diagnostics): Restore warn_overlength_strings.
15001
6bd73dd8
JJ
150022011-03-14 Jakub Jelinek <jakub@redhat.com>
15003
15004 * BASE-VER: Change to 4.7.0.
15005
7f4d6e1b
RG
150062011-03-14 Richard Guenther <rguenther@suse.de>
15007
15008 PR middle-end/48098
15009 * tree.c (build_vector_from_val): Adjust assert to requirements
15010 and reality.
15011
c6104ef1
JJ
150122011-03-14 Jakub Jelinek <jakub@redhat.com>
15013
15014 PR bootstrap/48102
d34abfd2 15015 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 15016
dfa95e19
AT
150172011-03-14 Andreas Tobler <andreast@fgznet.ch>
15018
f60c2554 15019 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
15020 terms of target_flags_explicit. Adjust copyright year.
15021
15022 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15023 * config/rs6000/t-freebsd: New file. Add override for
15024 LIB2FUNCS_EXTRA.
15025
bb322018
CD
150262011-03-13 Chris Demetriou <cgd@google.com>
15027
15028 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15029 (-fno-diagnostics-show-option): this, to reflect current default.
15030 (-Werror=): Update text about -fno-diagnostics-show-option.
15031
12b1c80b
PB
150322011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15033
15034 PR target/48053
15035 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15036 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15037 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15038 mode is not V2DImode or V2DFmode.
15039 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15040 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15041 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15042 registers to 0.
15043 (movdi_internal64): Likewise.
15044
57d598f7
SP
150452011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15046
15047 PR tree-optimization/47127
15048 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15049 parameter.
15050 (set_cloog_options): Same.
15051 (scop_to_clast): Same.
15052 (print_clast_stmt): Do not call cloog_state_malloc and
15053 cloog_state_free.
15054 (print_generated_program): Same.
15055 (gloog): Same.
15056 * graphite-clast-to-gimple.h (cloog_state): Declared.
15057 (scop_to_clast): Adjust declaration.
15058 * graphite.c (cloog_state): Defined here.
15059 (graphite_initialize): Call cloog_state_malloc.
15060 (graphite_finalize): Call cloog_state_free.
15061
f231b5ff
JM
150622011-03-11 Jason Merrill <jason@redhat.com>
15063
15064 * attribs.c (lookup_attribute_spec): Take const_tree.
15065 * tree.h: Adjust.
15066
6a4e2bd5
JM
150672011-03-11 Joseph Myers <joseph@codesourcery.com>
15068
15069 * config/sparc/sparc.c (sparc_option_override): Use
15070 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15071
a758fd67
RG
150722011-03-11 Richard Guenther <rguenther@suse.de>
15073
15074 PR tree-optimization/48067
15075 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15076 multiplication result will be only used once on the target
15077 stmt.
15078
03dfda54
RG
150792011-03-11 Richard Guenther <rguenther@suse.de>
15080
15081 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15082
5f11a50a
RG
150832011-03-11 Richard Guenther <rguenther@suse.de>
15084
15085 PR lto/48073
15086 * tree.c (find_decls_types_r): Do not walk types only reachable
15087 from IDENTIFIER_NODEs.
15088
4074f163
JJ
150892011-03-11 Jakub Jelinek <jakub@redhat.com>
15090
15091 PR middle-end/48044
15092 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15093 all vnode->force_output nodes as needed.
15094
30f7cdcd
JM
150952011-03-11 Jason Merrill <jason@redhat.com>
15096
15097 PR c++/48069
15098 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15099 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15100
62ecfeb8
MJ
151012011-03-11 Martin Jambor <mjambor@suse.cz>
15102
15103 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15104 cgraph_node.
15105
e89e03ab
JJ
151062011-03-11 Jakub Jelinek <jakub@redhat.com>
15107
15108 PR tree-optimization/48063
15109 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15110 inline functions called once if !tree_can_inline_p (node->callers).
15111
efbe978b 151122011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 15113
efbe978b
EB
15114 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15115 extra_objs.
9d6193a7
CL
15116 * config/score/score3.c: Delete.
15117 * config/score/score3.h: Delete.
15118 * config/score/mul-div.S: Delete.
15119 * config/score/sfp-machine.h: Add new file.
15120 * config/score/constraints.md: Add new file.
15121 * config/score/t-score-softfp: Add new file.
efbe978b 15122 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
15123 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15124 (score7_extra_constraint): Delete.
efbe978b 15125 (score7_option_override): Remove unused code.
9d6193a7
CL
15126 * config/score/score.c: Remove score3 and score5 define and code.
15127 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 15128 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
15129 * config/score/score.opt: Remove score3 and score5 options.
15130
5de27cca
JDA
151312011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15132
15133 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15134 when _HPUX_SOURCE is defined.
15135 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15136
18d92053
JM
151372011-03-10 Jason Merrill <jason@redhat.com>
15138
15139 PR c++/48029
15140 * stor-layout.c (layout_type): Don't set structural equality
15141 on arrays of incomplete type.
15142 * tree.c (type_hash_eq): Handle comparing them properly.
15143
67a2f76d
JJ
151442011-03-10 Jakub Jelinek <jakub@redhat.com>
15145
15146 PR debug/48043
18d92053 15147 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
15148 result mode matches original rtl mode.
15149
d845b2f9
NC
151502011-03-10 Nick Clifton <nickc@redhat.com>
15151
15152 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 15153 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 15154
db7ec035
JJ
151552011-03-09 Jakub Jelinek <jakub@redhat.com>
15156
15157 PR rtl-optimization/47866
15158 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15159 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15160 if target wasn't scalar.
15161 * function.c (assign_stack_temp_for_type): Assert that neither
15162 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15163 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15164 macro.
15165 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15166
5d304e47
AK
151672011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15168
15169 * config/s390/s390-protos.h (s390_label_align): New prototype.
15170 * config/s390/s390.c (s390_label_align): New function.
15171 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15172
93b826f0
MM
151732011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15174
15175 PR target/47755
15176 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15177 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15178 (output_vec_const_move): Ditto.
15179
ef78aed6
AS
151802011-03-08 Anatoly Sokolov <aesok@post.ru>
15181
15182 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15183 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15184 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15185 Change 'rclass' argument and result type to reg_class_t.
15186 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15187
5f892aa0
GJL
151882011-03-08 Georg-Johann Lay <avr@gjlay.de>
15189
9e43ad68
UB
15190 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15191 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15192 (TARGET_MEMORY_MOVE_COST): Define.
15193 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 15194
32bd2409
JJ
151952011-03-08 Jakub Jelinek <jakub@redhat.com>
15196
530a4800
JJ
15197 PR debug/47881
15198 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15199 removed anything.
15200
32bd2409
JJ
15201 PR tree-optimization/48022
15202 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15203 for EQ/NE_EXPR.
15204
c7148991
JJ
152052011-03-07 Jakub Jelinek <jakub@redhat.com>
15206
15207 PR debug/47991
15208 * var-tracking.c (find_use_val): Return NULL for
15209 cui->sets && cui->store_p BLKmode MEMs.
15210
43070a6e
AS
152112011-03-07 Anatoly Sokolov <aesok@post.ru>
15212
15213 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15214 Remove.
15215 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15216 xstormy16_print_operand_address): Remove.
15217 * config/stormy16/stormy16.c (xstormy16_print_operand,
15218 xstormy16_print_operand_address): Make static.
15219 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15220
efbe978b 152212011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
15222
15223 PR target/47862
15224 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15225 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15226 before definition.
15227
cec8ac0b
ZD
152282011-03-07 Zdenek Dvorak <ook@ucw.cz>
15229
15230 PR bootstrap/48000
15231 * cfgloopmanip.c (fix_bb_placements): Return immediately
15232 if FROM is BASE_LOOP's header.
15233
59527282
PW
152342011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15235
15236 * gimplify.c (gimplify_function_tree): Fix building calls
15237 to __builtin_return_address.
15238
617718f7
AM
152392011-03-07 Alan Modra <amodra@gmail.com>
15240
15241 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15242 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15243 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15244 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15245 return_mode args.
15246 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15247 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15248 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15249 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15250 * config/rs6000/rs6000.c
15251 (rs6000_elf_end_indicate_exec_stack): Rename to..
15252 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15253 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15254 (rs6000_file_start): ..here.
15255 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15256 file scope variables.
15257 (call_ABI_of_interest): New function.
15258 (init_cumulative_args): Set above vars when function return value
15259 is a float, vector, or small struct.
15260 (rs6000_function_arg_advance_1): Likewise for function args.
15261 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15262 references float args.
15263
38528d50
MX
152642011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15265
15266 * doc/cfg.texi: Remove "See" before @ref.
15267 * doc/invoke.texi: Likewise.
15268
f42cf4f4
JM
152692011-03-05 Jason Merrill <jason@redhat.com>
15270
15271 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15272
804a304d
AG
152732011-03-05 Anthony Green <green@moxielogic.com>
15274
15275 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15276
634ee309
ZD
152772011-03-05 Zdenek Dvorak <ook@ucw.cz>
15278
15279 PR rtl-optimization/47899
15280 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15281 to flow_loop_nested_p when moving the loop upward.
15282
6fe471c8
RE
152832011-03-05 Richard Earnshaw <rearnsha@arm.com>
15284
15285 PR target/47719
15286 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15287
cc58ceee
JJ
152882011-03-05 Jakub Jelinek <jakub@redhat.com>
15289
15290 PR tree-optimization/47967
15291 * ipa-cp.c (build_const_val): Return NULL instead of creating
15292 VIEW_CONVERT_EXPR for mismatching sizes.
15293 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15294 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15295 give up on versioning.
15296
ea868305
AM
152972011-03-05 Alan Modra <amodra@gmail.com>
15298
15299 PR target/47986
15300 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15301 full cmodel medium/large lo_sum + high addresses.
15302
bc6ce334
AK
153032011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15304
15305 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15306 pool references in UNSPEC_LTREL_OFFSET.
15307
87e7b310
JH
153082011-03-04 Jan Hubicka <jh@suse.cz>
15309
15310 PR lto/47497
15311 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15312 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
15313 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15314 Add node pointers.
87e7b310
JH
15315 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15316 cgraph_add_thunk): Add node pointers.
15317 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15318 associated to right node.
15319 (input_node): Update use of cgraph_same_body_alias
15320 and cgraph_add_thunk.
15321
d9c64246
CF
153222011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15323
15324 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
15325 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15326 modes when the flag -mprefer-avx128 is on.
d9c64246 15327
08707076
RS
153282011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15329
15330 * dwarf2out.c (compare_loc_operands): Fix address handling.
15331
52517c81
AM
153322011-03-04 Alan Modra <amodra@gmail.com>
15333
15334 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15335
b147c5b9
RG
153362011-03-04 Richard Guenther <rguenther@suse.de>
15337
15338 PR middle-end/47968
15339 * expmed.c (extract_bit_field_1): Prefer vector modes that
15340 vec_extract patterns can handle.
15341
8750672f
RG
153422011-03-04 Richard Guenther <rguenther@suse.de>
15343
15344 PR middle-end/47975
15345 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15346
9eac0f2a
RH
153472011-03-04 Richard Henderson <rth@redhat.com>
15348
15349 * explow.c (emit_stack_save): Remove 'after' parameter.
15350 (emit_stack_restore): Likewise.
15351 * expr.h: Update to match.
15352 * builtins.c, calls.c, stmt.c: Likewise.
15353 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15354 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15355 * function.c (expand_function_end): Insert the emit_stack_save
15356 sequence before parm_birth_insn instead of after.
15357
dfee1406
UB
153582011-03-03 Uros Bizjak <ubizjak@gmail.com>
15359
15360 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15361 (ssse3_pmaddubsw128): Ditto.
15362 (ssse3_pmaddubsw): Ditto.
15363
f1d4c3de
SE
153642011-03-03 Steve Ellcey <sje@cup.hp.com>
15365
15366 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15367
71f3a3f5
JJ
153682011-03-03 Jakub Jelinek <jakub@redhat.com>
15369
423ed416
JJ
15370 PR c/47963
15371 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15372 on TYPE_SIZE_UNIT if it is a DECL.
15373
71f3a3f5
JJ
15374 PR debug/47283
15375 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15376 first operand is not is_gimple_mem_ref_addr, try to fold it.
15377 If the operand still isn't is_gimple_mem_ref_addr, clear
15378 MEM_EXPR on op0.
15379
4b1a5c0d
RG
153802011-03-03 Richard Guenther <rguenther@suse.de>
15381
15382 PR middle-end/47283
15383 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15384 match comment.
15385 (refs_may_alias_p_1): For release branches return true if
15386 we are confused by our input.
15387
b46616fd
AK
153882011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15389
15390 * config/s390/s390.c (s390_function_value): Rename to ...
15391 (s390_function_and_libcall_value): ... this.
15392 (s390_function_value): New function.
15393 (s390_libcall_value): New function.
dfee1406 15394 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
15395 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15396 target macro definitions.
15397 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15398
46d8fabb
JM
153992011-03-02 Joseph Myers <joseph@codesourcery.com>
15400
15401 * config/i386/freebsd64.h (CC1_SPEC): Define.
15402 * config/i386/linux64.h (CC1_SPEC): Define.
15403 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15404
6b1ce545
AS
154052011-03-02 Anatoly Sokolov <aesok@post.ru>
15406
15407 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15408 Remove.
15409 * config/stormy16/stormy16.c: Include reload.h.
15410 (xstormy16_memory_move_cost): New function.
15411 (TARGET_MEMORY_MOVE_COST): Define.
15412
34161e98
RS
154132011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15414
15415 PR rtl-optimization/47925
15416 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15417 with side effects. Remove the more-specific check for volatile asms.
15418
f60a97cf
AM
154192011-03-02 Alan Modra <amodra@gmail.com>
15420
15421 PR target/47935
15422 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15423 toc relative addresses for valid offsets.
15424
f2ca11ca
RG
154252011-03-01 Richard Guenther <rguenther@suse.de>
15426
15427 PR tree-optimization/47890
15428 * tree-vect-loop.c (get_initial_def_for_induction): Set
15429 related stmt properly.
15430
7a00d9ea
RG
154312011-03-01 Richard Guenther <rguenther@suse.de>
15432
15433 PR lto/47924
15434 * lto-streamer.c (lto_record_common_node): Also register
15435 the canonical type.
15436
06c7edcc
RG
154372011-03-01 Richard Guenther <rguenther@suse.de>
15438
15439 PR lto/46911
15440 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15441 Do not stream DECL_ABSTRACT_ORIGIN.
15442 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15443 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15444 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15445 Do not stream DECL_ABSTRACT_ORIGIN.
15446 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15447 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15448
998871e9
AS
154492011-02-28 Anatoly Sokolov <aesok@post.ru>
15450
15451 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15452 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 15453 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
15454 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15455 Add 'outgoing' argument.
15456 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15457 function.
15458 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15459 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15460
94369251
KT
154612011-02-28 Kai Tietz <kai.tietz@onevision.com>
15462
15463 PR debug/28047
15464 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15465 (lookup_filename): Likewise.
b2e2ea67 15466 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 15467
80a832cd
JJ
154682011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15469 Jakub Jelinek <jakub@redhat.com>
15470
15471 PR middle-end/47893
15472 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15473 (assign_stack_local_1): Change last argument type to int.
15474 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15475 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 15476 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
15477 (assign_stack_local): Adjust caller.
15478 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15479 of assign_stack_local, pass 0 as last argument.
15480 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15481 callers.
15482
1b500976
JJ
154832011-02-28 Jakub Jelinek <jakub@redhat.com>
15484
f61c6f34
JJ
15485 PR debug/47283
15486 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15487 Use target address_mode and pointer_mode hooks instead of hardcoded
15488 Pmode and ptr_mode. Handle some simple cases of extending if
15489 POINTERS_EXTEND_UNSIGNED < 0.
15490 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15491 Call convert_debug_memory_address.
15492 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15493 convert_debug_memory_address.
15494
1b500976
JJ
15495 PR middle-end/46790
15496 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15497 * configure: Regenerated.
15498 * config.in: Regenerated.
15499 * varasm.c (default_function_section): Return NULL
b2e2ea67 15500 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 15501
2f2935b6
MJ
155022011-02-28 Martin Jambor <mjambor@suse.cz>
15503
15504 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15505 the description to match the printed values.
15506
474086eb
RG
155072011-02-28 Richard Guenther <rguenther@suse.de>
15508
15509 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15510 of the copied scope tree.
15511
15bf6f3a
RW
155122011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15513
15514 * doc/extend.texi (Function Attributes): Avoid deeply (and
15515 wrongly) nested tables.
15516
f6b439c9
JJ
155172011-02-27 Jakub Jelinek <jakub@redhat.com>
15518
15519 PR middle-end/47903
15520 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15521 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15522 r isn't op0 nor op1.
15523
1d8ca2c7
GJL
155242011-02-23 Georg-Johann Lay <avr@gjlay.de>
15525
15526 * config/avr/avr.md: Remove magic comment for emacs.
15527
593fca4b
GJL
155282011-02-23 Georg-Johann Lay <avr@gjlay.de>
15529
15530 PR target/45261
15531 * config/avr/avr.c (avr_option_override): Use error on bad options.
15532 (avr_help): New function.
15533 (TARGET_HELP): Define.
15534
6609216e
GJL
155352011-02-22 Georg-Johann Lay <avr@gjlay.de>
15536
15537 PR target/42240
15538 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15539 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15540
03d458af
GP
155412011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15542
15543 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15544 (ARM Options): Ditto.
15545 (i386 and x86-64 Options): Ditto.
15546 (RX Options): Ditto.
15547 (SPARC Options): Ditto.
15548
1c379b78
TC
155492011-02-26 Tijl Coosemans <tijl@coosemans.org>
15550
15551 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15552 FreeBSD 6 and later. Generally use cpu generic.
15553
d5ed058c 155542011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 15555
d5ed058c
GP
15556 * doc/cpp.texi: Update copyright years.
15557
509d65dd 155582011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 15559
509d65dd 15560 PR target/46898
308d39cd
SB
15561 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15562
509d65dd 155632011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 15564
509d65dd 15565 PR target/46898
308d39cd
SB
15566 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15567 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15568 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15569 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 15570 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
15571 (gen_int_relational): Move declarations to start of function.
15572
822ba6d7
EB
155732011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15574
15575 PR tree-optimization/45470
15576 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15577 can throw internally only.
15578 * tree-vect-stmts.c (vectorizable_call): Likewise.
15579
ef795fc2
AS
155802011-02-24 Anatoly Sokolov <aesok@post.ru>
15581
15582 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15583 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15584 * config/stormy16/stormy16-protos.h
15585 (xstormy16_preferred_reload_class): Remove.
15586 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15587 static. Change 'rclass' argument and return type to reg_class_t.
15588 (TARGET_PREFERRED_RELOAD_CLASS,
15589 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15590
1c3277ee
RG
155912011-02-24 Richard Guenther <rguenther@suse.de>
15592
15593 * lto-streamer-in.c (input_bb): Do not find referenced vars
15594 in debug statements.
15595
67e18edb
JM
155962011-02-23 Jason Merrill <jason@redhat.com>
15597
15598 * common.opt (fabi-version): Document v5 and v6.
15599
b14fad9d
RG
156002011-02-23 Richard Guenther <rguenther@suse.de>
15601
15602 PR tree-optimization/47849
15603 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15604
7fcf46f5
JZ
156052011-02-23 Jie Zhang <jie@codesourcery.com>
15606
15607 * opts-common.c (decode_cmdline_option): Print empty string
15608 argument as "" in decoded->orig_option_with_args_text.
15609 * gcc.c (execute): Print empty string argument as ""
15610 in the verbose output.
15611 (do_spec_1): Keep empty string argument.
15612
f85b70fd
NF
156132011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15614
15615 * config.gcc: Declare score-* and crx-* obsolete.
15616
b152a615
JZ
156172011-02-23 Jie Zhang <jie@codesourcery.com>
15618
15619 PR rtl-optimization/47763
15620 * web.c (web_main): Ignore naked clobber when replacing register.
15621
bb6e77bc
AS
156222011-02-22 Anatoly Sokolov <aesok@post.ru>
15623
15624 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15625 Remove.
15626
68bf6491
SP
156272011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15628
15629 PR doc/47848
15630 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15631
88ee1fc7
MS
156322011-02-22 Mike Stump <mikestump@comcast.net>
15633
15634 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15635 assembler.
15636 * configure: Regenerate.
15637
6042d1dd
CLT
156382011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15639
15640 PR rtl-optimization/46002
15641 * ira-color.c (update_copy_costs): Change class intersection
15642 test to reg_class_contents[] test of 'hard_regno'.
15643
7de97f9e
JM
156442011-02-21 Joseph Myers <joseph@codesourcery.com>
15645
15646 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15647 than Driver option.
15648 * config/hpux11.opt (mt): Likewise.
15649 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15650 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15651 * config/vax/elf.opt (mno-asm-pic): Likewise.
15652 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15653
d1d46f9f
MS
156542011-02-21 Mike Stump <mikestump@comcast.net>
15655
15656 PR target/47822
15657 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15658 tree so we can get save the type.
15659 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15660 for CFString instead of trying to use past the end of the builtins.
15661 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15662 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15663 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15664 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15665 Rename to darwin_builtin_cfstring.
15666 (darwin_init_cfstring_builtins): Return the built type.
15667
23e0d930
UB
156682011-02-21 Uros Bizjak <ubizjak@gmail.com>
15669
15670 PR target/47840
15671 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15672 (_mm256_insert_epi64): Use _mm_insert_epi64.
15673
192997cf
AS
156742011-02-21 Anatoly Sokolov <aesok@post.ru>
15675
15676 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15677 * config/stormy16/stormy16-protos.h
15678 (xstormy16_mode_dependent_address_p): Remove.
15679 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15680 Make static. Change return type to bool. Change argument type to
15681 const_rtx. Remove dead code.
15682 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15683
e292d003
RG
156842011-02-21 Richard Guenther <rguenther@suse.de>
15685
15686 PR lto/47820
15687 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15688 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15689 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15690 TUs context.
23e0d930 15691 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
15692 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15693
77f846e9
RG
156942011-02-20 Richard Guenther <rguenther@suse.de>
15695
15696 PR lto/47822
15697 * tree.c (free_lang_data_in_decl): Clean builtins from
15698 the TU decl BLOCK_VARS.
23e0d930 15699
b2cddfc8
AO
157002011-02-19 Alexandre Oliva <aoliva@redhat.com>
15701
15702 PR debug/47620
15703 PR debug/47630
15704 * haifa-sched.c (fix_tick_ready): Skip tick computation
15705 for debug insns.
15706
becf4c11
RG
157072011-02-19 Richard Guenther <rguenther@suse.de>
15708
15709 PR lto/47647
15710 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15711 Remove lazy BLOCK_VARS streaming.
15712 (lto_input_ts_block_tree_pointers): Likewise.
15713 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15714
27f98305
JM
157152011-02-19 Joseph Myers <joseph@codesourcery.com>
15716
15717 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15718
064bf3f4
JM
157192011-02-19 Joseph Myers <joseph@codesourcery.com>
15720
15721 * config/i386/biarch32.h, config/i386/mach.h,
15722 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15723
9215ddc3
JJ
157242011-02-19 Jakub Jelinek <jakub@redhat.com>
15725
15726 PR target/47800
15727 * config/i386/i386.md (peephole2 for shift and plus): Use
15728 operands[1] original mode in the first insn.
15729
8b021004
MS
157302011-02-18 Mike Stump <mikestump@comcast.net>
15731
65ded153 15732 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 15733
f84ae14c
JH
157342011-02-18 Jan Hubicka <jh@suse.cz>
15735
15736 PR middle-end/47788
65ded153
EB
15737 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15738 to zero when the function is not inlinable at all.
f84ae14c 15739
eddabc80
JDA
157402011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15741
15742 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15743 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15744 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15745 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15746 * config/pa/t-pa64: Likewise.
15747 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15748
ca3da783
JJ
157492011-02-18 Jakub Jelinek <jakub@redhat.com>
15750
15751 PR driver/47787
15752 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15753
430aa868
JDA
157542011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15755
15756 PR target/47792
15757 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15758
4bf7ff7e
AS
157592011-02-18 Anatoly Sokolov <aesok@post.ru>
15760
15761 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15762 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15763 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15764 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15765 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15766 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15767 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15768 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15769 m32r_legitimate_address_p): New functions.
15770 * config/m32r/constraints.md (constraint "S"): Don't use
15771 STORE_PREINC_PREDEC_P.
15772 (constraint "U"): Don't use LOAD_POSTINC_P.
15773
7efcf910
CLT
157742011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15775
15776 PR rtl-optimization/46178
15777 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15778 compute ira_hard_regno_cover_class[].
15779
237d6259
RG
157802011-02-18 Richard Guenther <rguenther@suse.de>
15781
15782 PR lto/47798
15783 * lto-streamer.h (lto_global_var_decls): Declare.
15784 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15785 statics for global var processing.
15786
12d80acc
RG
157872011-02-18 Richard Guenther <rguenther@suse.de>
15788
15789 PR tree-optimization/47737
15790 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15791 edge dominance check.
15792
abfea58d
JJ
157932011-02-18 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR debug/47780
15796 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15797 avoid invalid rtx sharing.
15798
f73c8882
GP
157992011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15800
15801 * doc/cpp.texi (Obsolete Features): Add background on the
15802 origin of assertions.
15803
d764a8e6
IS
158042011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15805
15806 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 15807 objc_abi == 2.
d764a8e6
IS
15808 * config/darwin.c (output_objc_section_asm_op): Added support for
15809 ABI v1 and v2.
15810 (is_objc_metadata): New.
15811 (darwin_objc2_section): New.
15812 (darwin_objc1_section): New.
15813 (machopic_select_section): Added support for ABI v1 and v2.
15814 (darwin_emit_objc_zeroed): New.
15815 (darwin_output_aligned_bss): Detect objc metadata and treat it
15816 appropriately.
15817 (darwin_asm_output_aligned_decl_common): Same.
15818 (darwin_asm_output_aligned_decl_local): Same.
15819 * config/darwin-sections.def: Updated for ABI v1 and v2.
15820 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15821 compiling Objective-C code for the NeXT runtime, default to using
15822 ABI version 0 for 32-bit, and version 2 for 64-bit.
15823
0a8134ca
JM
158242011-02-17 Joseph Myers <joseph@codesourcery.com>
15825
15826 * common.opt (optimize_fast): New Variable.
15827 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15828 instead of local variable ofast.
15829
0a256240
NP
158302011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15831
15832 * doc/invoke.texi (fobjc-abi-version): Documented.
15833 (fobjc-nilcheck): Documented.
15834 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15835 version.
15836
fa381cb2
JM
158372011-02-17 Joseph Myers <joseph@codesourcery.com>
15838
15839 PR driver/47390
15840 * common.opt (export-dynamic): New Driver option.
15841 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15842
5437eaa6
JM
158432011-02-17 Joseph Myers <joseph@codesourcery.com>
15844
15845 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15846
bb7e6d55
AO
158472011-02-17 Alexandre Oliva <aoliva@redhat.com>
15848 Jan Hubicka <jh@suse.cz>
15849
15850 PR debug/47106
15851 PR debug/47402
15852 * cfgexpand.c (account_used_vars_for_block): Remove.
15853 (estimated_stack_frame_size): Use referenced vars.
15854 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15855 that were referenced in the original function. Test src_fn
15856 rather than cfun. Drop redundant get_var_ann.
15857 (setup_one_parameter): Drop redundant get_var_ann.
15858 (declare_return_variable): Likewise.
15859 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15860 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15861 * ipa-inline.c (compute_inline_parameters): Do not compute
15862 disregard_inline_limits here.
bb7e6d55
AO
15863 (compute_inlinable_for_current, pass_inlinable): New.
15864 (pass_inline_parameters): Require PROP_referenced_vars.
15865 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 15866 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
15867 (cgraph_analyze_function): Set .disregard_inline_limits.
15868 * tree-sra.c (convert_callers): Compute inliner parameters
15869 only for functions already in SSA form.
15870
f181a8a7
JM
158712011-02-17 Joseph Myers <joseph@codesourcery.com>
15872
15873 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15874 -mlittle-endian-data.
15875
c6869789
JM
158762011-02-17 Joseph Myers <joseph@codesourcery.com>
15877
15878 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15879 -mno-fpu, not -fpu and -no-fpu.
15880 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15881 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15882
fbf4bfd3
UB
158832011-02-17 Uros Bizjak <ubizjak@gmail.com>
15884
15885 PR target/43653
15886 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15887 input reload with PLUS RTX.
15888
70be5dc7
JM
158892011-02-16 Joseph Myers <joseph@codesourcery.com>
15890
15891 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15892 of InverseVar(MDMX).
15893
30b1646e
JM
158942011-02-16 Joseph Myers <joseph@codesourcery.com>
15895
15896 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15897 --m4-340.
15898
ab7b71e9
JM
158992011-02-16 Joseph Myers <joseph@codesourcery.com>
15900
15901 * config/mn10300/mn10300.opt (mno-crt0): New.
15902
466f3f08
JM
159032011-02-16 Joseph Myers <joseph@codesourcery.com>
15904
15905 * config/m68k/uclinux.opt (static-libc): New Driver option.
15906
8226cd7b
JM
159072011-02-16 Joseph Myers <joseph@codesourcery.com>
15908
15909 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15910
45cab1d7
JM
159112011-02-16 Joseph Myers <joseph@codesourcery.com>
15912
15913 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15914 %{muser-extend-enabled}.
15915
65aab64f
RG
159162011-02-16 Richard Guenther <rguenther@suse.de>
15917
15918 PR tree-optimization/47738
15919 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15920 the TODO from tree_predictive_commoning.
15921
fc2fa4fb
JL
159222011-02-15 Jeff Law <law@redhat.com>
15923
15924 Revert
15925 2011-01-25 Jeff Law <law@redhat.com>
15926
15927 PR rtl-optimization/37273
15928 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15929 handle them like argument loads from stack slots. Do not double
15930 count memory for memory constants and argument loads from stack slots.
15931
4e380b8e
L
159322011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15933
15934 PR middle-end/47725
15935 * combine.c (cant_combine_insn_p): Revert the last change.
15936
e3a69bb4
MM
159372011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15938
15939 PR target/47755
15940 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15941 mode for vector constants. Remove code that checks for TImode.
15942
de650422
AO
159432011-02-15 Alexandre Oliva <aoliva@redhat.com>
15944
15945 PR debug/47106
15946 PR debug/47402
15947 * cgraph.h (compute_inline_parameters): Return void.
15948 * ipa-inline.c (compute_inline_parameters): Adjust.
15949
30925d94
AO
159502011-02-15 Alexandre Oliva <aoliva@redhat.com>
15951
15952 PR debug/47106
15953 PR debug/47402
15954 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15955 rather than decl.
15956 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15957 * ipa-inline.c (compute_inline_parameters): Adjust.
15958
1b9a784a
AO
159592011-02-15 Alexandre Oliva <aoliva@redhat.com>
15960
15961 PR debug/47106
15962 PR debug/47402
15963 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15964 Adjust all users. Pass FN to...
15965 * tree-flow-inline.h (first_referenced_var): ... this. Add
15966 fn argument.
15967 * ipa-struct-reorg.c: Adjust.
15968 * tree-dfa.c: Adjust.
15969 * tree-into-ssa.c: Adjust.
15970 * tree-sra.c: Adjust.
15971 * tree-ssa-alias.c: Adjust.
15972 * tree-ssa-live.c: Adjust.
15973 * tree-ssa.c: Adjust.
15974 * tree-ssanames.c: Adjust.
15975 * tree-tailcall.c: Adjust.
15976
27c6b086
AO
159772011-02-15 Alexandre Oliva <aoliva@redhat.com>
15978
15979 PR debug/47106
15980 PR debug/47402
15981 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15982 Adjust all callers.
15983 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15984 * tree-flow-inline.h: Adjust.
15985 * gimple-pretty-print.c: Adjust.
15986 * tree-into-ssa.c: Adjust.
15987 * tree-ssa.c: Adjust.
15988 * cfgexpand.c: Adjust.
15989
679e8183
NF
159902011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15991
fbf4bfd3
UB
15992 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15993 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15994 (EXTRA_CONSTRAINT): Delete.
15995 * config/iq2000/constraints.md: New file.
15996 * config/iq2000/iq2000.md: Include it.
679e8183
NF
15997 (define_insn ""): Delete.
15998 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15999 unsupported constraint letters from patterns.
16000 (call_value, call_value_internal1): Likewise.
16001 (call_value_multiple_internal1): Likewise.
16002
a45d420a
NC
160032011-02-15 Nick Clifton <nickc@redhat.com>
16004
16005 * config/mn10300/mn10300.c: Include tm-constrs.h.
16006 (struct liw_data): New data structure describing an LIW candidate
16007 instruction.
16008 (extract_bundle): Use struct liw_data. Allow small integer
16009 operands for some instructions.
16010 (check_liw_constraints): Use struct liw_data. Remove swapped
16011 parameter. Add comments describing the checks. Fix bug when
16012 assigning the source of liw1 to the source of liw2.
16013 (liw_candidate): Delete. Code moved into extract_bundle.
16014 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16015 before swapping.
16016 * config/mn10300/predicates.md (liw_operand): New predicate.
16017 Allows registers and small integer constants.
16018 * config/mn10300/constraints.md (O): New constraint. Accetps
16019 integers in the range -8 to +7 inclusive.
16020 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16021 for moving a small integer into a register. Give this alternative
16022 LIW attributes.
16023 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16024 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16025 using the J,K,L and M constraints,
16026 (liw): Remove SI mode on second operands to allow for HI and QI
16027 mode values.
16028 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16029 instruction.
16030
8a73faf1
L
160312011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16032
16033 PR middle-end/47725
16034 * combine.c (cant_combine_insn_p): Check zero/sign extended
16035 hard registers.
16036
48feba28
RG
160372011-02-15 Richard Guenther <rguenther@suse.de>
16038
16039 PR tree-optimization/47743
16040 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16041 for a non-type-compatible VN lookup bail out.
16042
ad1c1eeb
NF
160432011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16044
16045 * config/fr30/constraints.md: New file.
16046 * config/fr30/fr30.md: Include it.
16047 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16048 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16049 (EXTRA_CONSTRAINT): Delete.
16050
49ac143d
NF
160512011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16052
16053 * config/frv/constraints.md: New file.
16054 * config/frv/predicates.md: Include it.
16055 * config/frv/frv.c (reg_class_from_letter): Delete.
16056 (frv_option_override): Don't initialize it.
16057 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16058 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16059 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16060 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16061 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16062 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16063 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16064 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16065 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16066 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16067 (REG_CLASS_FROM_CONSTRAINT): Delete.
16068
c95f9494
JJ
160692011-02-15 Jakub Jelinek <jakub@redhat.com>
16070
16071 PR middle-end/47581
16072 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16073 if frame size is 0 in a leaf function.
16074
13aed611
RO
160752011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16076
16077 PR pch/14940
16078 * config/alpha/host-osf.c: New file.
16079 * config/alpha/x-osf: New file.
16080 * config.host (alpha*-dec-osf*): Use it.
16081
b09c3081
AS
160822011-02-14 Anatoly Sokolov <aesok@post.ru>
16083
16084 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16085 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16086 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16087 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16088 type to const_rtx.
16089 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16090
d634083b
NF
160912011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16092
16093 * config/stormy16/constraints.md: New file.
16094 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16095 Use satisfies_constraint_Q and satisfies_constraint_R.
16096 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16097 Delete.
16098 (xstormy16_legitiamte_address_p): Declare.
16099 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16100 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16101 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 16102 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
16103 Un-staticize.
16104 (xstormy16_extra_constraint_p): Delete.
16105
c7dd803e
EB
161062011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16107
16108 PR tree-optimization/46494
16109 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16110 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16111 (pass_rtl_loop_done): Add TODO_verify_flow.
16112 * fwprop.c (pass_rtl_fwprop): Likewise.
16113 * modulo-sched.c (pass_sms): Likewise.
16114 * tree-ssa-dom.c (pass_dominator): Likewise.
16115 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16116 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16117 (pass_tree_loop_done): Likewise.
16118 * tree-ssa-pre.c (execute_pre): Likewise.
16119 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16120 * tree-ssa-sink.c (pass_sink_code): Likewise.
16121 * tree-vrp.c (pass_vrp): Likewise.
16122
c6150df6
NF
161232011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16124
c7dd803e
EB
16125 * config/v850/constraints.md: New file.
16126 * config/v850/v850.md: Include it.
16127 * config/v850/predicates.md (reg_or_0_operand): Use
16128 satisfies_constraint_G.
16129 (special_symbolref_operand): Use satisfies_constraint_K.
16130 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16131 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16132 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16133 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16134 (EXTRA_CONSTRAINT): Delete.
16135 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16136 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16137 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 16138
30dd1ea3
AS
161392011-02-14 Anatoly Sokolov <aesok@post.ru>
16140
16141 PR target/47696
16142 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16143 description.
16144
944f4bb3
NF
161452011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16146
16147 * config/mcore/constraints.md: New file.
16148 * config/mcore/mcore.md: Include it.
16149 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16150 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16151 (REG_CLASS_FROM_LETTER): Delete.
16152 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16153 insn_const_int_ok_for_constraint.
16154 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16155 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16156 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16157 (EXTRA_CONSTRAINT): Delete.
16158
ad56a54c
RO
161592011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16160
16161 PR ada/41929
16162 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16163 (IS_SIGHANDLER): Define.
16164 (sparc64_is_sighandler): New function, split off from
16165 sparc64_fallback_frame_state.
16166 (sparc_is_sighandler): New function, split off from
16167 sparc_fallback_frame_state.
16168 (sparc64_fallback_frame_state): Merge with ...
16169 (sparc_fallback_frame_state): ... this into ...
16170 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
16171 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16172 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16173 stack instead of hardcoded offsets.
ad56a54c 16174
fbf4bfd3 161752011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
16176
16177 PR target/45808
16178 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16179
029c8f3e
RW
161802011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16181
16182 * configure: Regenerate.
16183
a016dc83
JM
161842011-02-12 Joseph Myers <joseph@codesourcery.com>
16185
16186 PR driver/45731
16187 * gcc.c (asm_options): Correct spec matching --target-help.
16188
8957a0ec
MJ
161892011-02-12 Martin Jambor <mjambor@suse.cz>
16190
16191 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16192 to gimple call error.
16193
6ef828bc
MS
161942011-02-12 Mike Stump <mikestump@comcast.net>
16195
16196 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16197 comments in backslash regions.
16198
a4015be5
MS
161992011-02-12 Mike Stump <mikestump@comcast.net>
16200 Jakub Jelinek <jakub@redhat.com>
16201 Iain Sandoe <iains@gcc.gnu.org>
16202
16203 PR target/47324
16204 * dwarf2out.c (output_cfa_loc): When required, apply the
16205 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16206 (output_loc_sequence): Likewise.
16207 (output_loc_operands_raw): Likewise.
16208 (output_loc_sequence_raw): Likewise.
16209 (output_cfa_loc): Likewise.
16210 (output_loc_list): Suppress register number adjustment when
16211 calling output_loc_sequence()
16212 (output_die): Likewise.
16213
5378dda2
AS
162142011-02-12 Anatoly Sokolov <aesok@post.ru>
16215
16216 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16217 Remove macros.
16218 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16219 xtensa_memory_move_cost): New functions.
16220 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16221
f3d533d3
AO
162222011-02-12 Alexandre Oliva <aoliva@redhat.com>
16223
16224 PR lto/47225
16225 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16226 in the current directory.
16227 * configure: Rebuilt.
16228
9d53403c
IS
162292011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16230
16231 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 16232 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
16233 correct indents of the preceding block.
16234
a350a6c8
IS
162352011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16236
16237 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16238 the switch.
16239
bab79a40
JM
162402011-02-11 Joseph Myers <joseph@codesourcery.com>
16241
16242 * common.opt (nostartfiles): New Driver option.
16243
1bbc6693
XDL
162442011-02-11 Xinliang David Li <davidxl@google.com>
16245
16246 PR tree-optimization/47707
16247 * tree-chrec.c (convert_affine_scev): Keep type precision.
16248
1da7d8c0
EB
162492011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16250
16251 PR tree-optimization/47420
16252 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16253
162542011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
16255
16256 PR rtl-optimization/47614
16257 * rtl.h (check_for_inc_dec): Declare.
16258 * dse.c (check_for_inc_dec): Externalize...
16259 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16260 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16261
4df47bca
JM
162622011-02-11 Joseph Myers <joseph@codesourcery.com>
16263
16264 PR driver/47678
16265 * gcc.c (main): Do not compile inputs if there were errors in
16266 option handling.
16267 * opts-common.c (read_cmdline_option): Check for wrong language
16268 after other error checks.
16269
61502ca8
NF
162702011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16271
16272 * cgraph.c: Fix comment typos.
16273 * cgraph.h: Likewise.
16274 * cgraphunit.c: Likewise.
16275 * ipa-cp.c: Likewise.
16276 * ipa-inline.c: Likewise.
16277 * ipa-prop.c: Likewise.
16278 * ipa-pure-const.c: Likewise.
16279 * ipa-ref.c: Likewise.
16280 * ipa-reference.c: Likewise.
16281
b63f974e
JJ
162822011-02-11 Jakub Jelinek <jakub@redhat.com>
16283
d50c5e0c
JJ
16284 PR debug/47684
16285 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 16286
6dd2a13c
RO
162872011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16288
16289 PR testsuite/47400
16290 * doc/sourcebuild.texi (Require Support): Document
16291 dg-require-ascii-locale.
16292
4a087ccf
MX
162932011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16294
16295 * doc/lto.texi (Write summary): Fix missing parentheses.
16296
a4403164
DD
162972011-02-10 DJ Delorie <dj@redhat.com>
16298
16299 * config/m32c/m32c.c (m32c_option_override): Disable
16300 -fcombine-stack-adjustments until flag value tracking and compare
16301 optimization can be rewritten.
16302
4fac45bd
PB
163032011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16304
16305 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16306 PROCESSOR_POWER7.
16307 (PROCESSOR_DEFAULT64): Likewise.
16308
72602cd1
RH
163092011-02-10 Richard Henderson <rth@redhat.com>
16310
16311 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16312 change from 2011-02-03.
16313 * config/rx/rx.c (flags_from_code): Likewise.
16314 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16315 is valid, n/pz otherwise.
16316 (rx_select_cc_mode): Return CCmode if Y is not zero.
16317
ea57f573
RG
163182011-02-10 Richard Guenther <rguenther@suse.de>
16319
ea4c3e65 16320 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 16321
92b1d23b
RG
163222011-02-10 Richard Guenther <rguenther@suse.de>
16323
16324 PR tree-optimization/47677
16325 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16326
525a2d06
JJ
163272011-02-10 Jakub Jelinek <jakub@redhat.com>
16328
16329 PR target/47665
16330 * combine.c (make_compound_operation): Only change shifts into
16331 multiplication for SCALAR_INT_MODE_P.
16332
06c969bd
JZ
163332011-02-10 Jie Zhang <jie@codesourcery.com>
16334
16335 PR testsuite/47622
16336 Revert
16337 2011-02-05 Jie Zhang <jie@codesourcery.com>
16338 PR debug/42631
16339 * web.c (entry_register): Don't clobber the number of the
16340 first uninitialized reference in used[].
16341
282ec48e
RG
163422011-02-09 Richard Guenther <rguenther@suse.de>
16343
16344 PR tree-optimization/47664
16345 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16346 all edges again.
16347
df98c3e8
DE
163482011-02-09 David Edelsohn <dje.gcc@gmail.com>
16349
d0f21cd6
DE
16350 PR target/46481
16351 PR target/47032
df98c3e8
DE
16352 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16353 PROCESSOR_POWER7.
16354 (PROCESSOR_DEFAULT64): Same.
16355 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16356
67b6839f
RO
163572011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16358
16359 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16360
4fd73214
MJ
163612011-02-09 Martin Jambor <mjambor@suse.cz>
16362
16363 PR middle-end/45505
16364 * tree-sra.c (struct access): New flags grp_scalar_read and
16365 grp_scalar_write. Changed description of assignment read and write
16366 flags.
16367 (dump_access): Dump new flags, reorder all of them.
16368 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16369 to detect multiple scalar reads.
16370 (analyze_access_subtree): Use the new scalar read write flags instead
16371 of the old flags. Adjusted comments.
16372
91140cd3
DD
163732011-02-08 DJ Delorie <dj@redhat.com>
16374
16375 PR target/47548
16376 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16377 patterns.
16378
4254bbfe
JM
163792011-02-08 Joseph Myers <joseph@codesourcery.com>
16380
16381 * config/m68k/uclinux.opt: New.
16382 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16383
f1fda84e
JM
163842011-02-08 Joseph Myers <joseph@codesourcery.com>
16385
16386 * config/cris/elf.opt (sim): New Driver option.
16387
4933ae74
JM
163882011-02-08 Joseph Myers <joseph@codesourcery.com>
16389
16390 * config/xtensa/elf.opt: New.
16391 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16392
4ad70280
JM
163932011-02-08 Joseph Myers <joseph@codesourcery.com>
16394
16395 * config/vax/elf.opt: New.
16396 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16397
20893707
JM
163982011-02-08 Joseph Myers <joseph@codesourcery.com>
16399
16400 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16401
b8e7038e
JM
164022011-02-08 Joseph Myers <joseph@codesourcery.com>
16403
16404 * config/gnu-user.opt: New.
16405 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16406 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16407 *-*-uclinux*): Use gnu-user.opt.
16408
e1c5225a
TS
164092011-02-08 Thomas Schwinge <thomas@schwinge.name>
16410
16411 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16412 * config/i386/gnu.h (CPP_SPEC): Likewise.
16413
5e46b0c6
ILT
164142011-02-08 Ian Lance Taylor <iant@google.com>
16415
16416 * common.opt (fcx-limited-range): Add SetByCombined flag.
16417 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16418 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16419 (fassociative-math, freciprocal-math): Likewise.
16420 (funsafe-math-optimizations): Likewise.
16421 * opth-gen.awk: Handle SetByCombined.
16422 * optc-gen.awk: Likewise.
ea4c3e65 16423 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
16424 (set_unsafe_math_optimizations_flags): Likewise.
16425 * doc/options.texi (Option properties): Document SetByCombined.
16426
32243d46
JM
164272011-02-08 Joseph Myers <joseph@codesourcery.com>
16428
16429 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16430 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16431 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16432 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16433 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16434
479c1fb3
SP
164352011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16436
16437 PR tree-optimization/46834
16438 PR tree-optimization/46994
16439 PR tree-optimization/46995
16440 * graphite-sese-to-poly.c (used_outside_reduction): New.
16441 (detect_commutative_reduction): Call used_outside_reduction.
16442 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16443 translate_scalar_reduction_to_array only when at least one
16444 loop-phi/close-phi tuple has been detected.
16445
3865a06f
RG
164462011-02-08 Richard Guenther <rguenther@suse.de>
16447
16448 PR middle-end/47639
16449 * tree-vect-generic.c (expand_vector_operations_1): Update
16450 stmts here ...
16451 (expand_vector_operations): ... not here. Cleanup EH info
16452 and the CFG if required.
16453
62902f3f
RG
164542011-02-08 Richard Guenther <rguenther@suse.de>
16455
16456 PR tree-optimization/47641
16457 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16458 require type compatibility.
16459
0efb9d64
AK
164602011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16461
16462 * gimple-low.c (lower_function_body): Don't remove the location of
16463 the return statement here.
16464 (lower_gimple_return): Do it here instead but only if the return
16465 statement is actually used twice.
16466
034b8ae4
RG
164672011-02-08 Richard Guenther <rguenther@suse.de>
16468
16469 PR tree-optimization/47632
16470 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16471 unused up_to_stmt parameter, return whether cfg-cleanup is
16472 necessary, remove EH info properly.
16473 (forward_propagate_into_gimple_cond): Adjust caller.
16474 (forward_propagate_into_cond): Likewise.
16475 (forward_propagate_comparison): Likewise.
16476 (tree_ssa_forward_propagate_single_use_vars): Make
16477 forward_propagate_comparison case similar to the two others.
16478
298362c8
NC
164792011-02-08 Nick Clifton <nickc@redhat.com>
16480
16481 * config/mn10300/mn10300.opt (mliw): New command line option.
16482 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16483 (liw_bundling): New automaton.
16484 (liw): New attribute.
16485 (liw_op): New attribute.
16486 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16487 (movsi_internal): Add LIW attributes.
16488 (andsi3): Likewise.
16489 (iorsi3): Likewise.
16490 (xorsi3): Likewise.
16491 (addsi3): Separate register and immediate alternatives.
16492 Add LIW attributes.
16493 (subsi3): Likewise.
16494 (cmpsi): Likewise.
16495 (aslsi3): Likewise.
16496 (lshrsi3): Likewise.
16497 (ashrsi3): Likewise.
16498 (liw): New pattern.
16499 * config/mn10300/mn10300.c (liw_op_names): New
16500 (mn10300_print_operand): Handle 'W' operand descriptor.
16501 (extract_bundle): New function.
16502 (check_liw_constraints): New function.
16503 (liw_candidate): New function.
16504 (mn10300_bundle_liw): New function.
16505 (mn10300_reorg): New function.
16506 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16507 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16508 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16509 __LIW__ or __NO_LIW__.
16510 * doc/invoke.texi: Describe the -mliw command line option.
16511
90488014
JDA
165122011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16513
16514 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16515 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16516 pthread_mutex_unlock): Remove.
16517 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16518 * config/pa/t-pa64: Likewise.
16519 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16520 shared libc if not linking against libpthread.
16521 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16522
689ff841
IS
165232011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16524
16525 PR target/47558
16526 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16527 on 10.6 and later to ensure that we always use the unwinder from
16528 the system. Only add -no_compact_unwind when tarteting darwin
16529 10.6 or later.
16530
821014aa
SE
165312011-02-07 Steve Ellcey <sje@cup.hp.com>
16532
16533 PR target/46997
16534 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16535 (vec_interleave_lowv2sf): Ditto.
16536 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16537 (vec_extract_oddv2sf): Ditto.
16538
41cf94fb
MS
165392011-02-07 Mike Stump <mikestump@comcast.net>
16540
62dea57d 16541 PR target/42333
41cf94fb
MS
16542 Add __ieee_divdc3 entry point.
16543 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16544 entry point.
16545 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16546 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16547 * config/darwin.c (darwin_rename_builtins): Add.
16548 * config/darwin-protos.h (darwin_rename_builtins): Add.
16549
ee09a3dd
MM
165502011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16551
16552 PR target/47636
16553 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16554 for the condition.
16555
83296cd0
MS
165562011-02-07 Mike Stump <mikestump@comcast.net>
16557
ea4c3e65 16558 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 16559
0f4e946f
DC
165602011-02-07 Denis Chertykov <chertykov@gmail.com>
16561
16562 PR target/47534
16563 * config/avr/libgcc.S (exit): Move .endfunc
16564
1ec87690
RG
165652011-02-07 Richard Guenther <rguenther@suse.de>
16566
16567 PR tree-optimization/47615
16568 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16569 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16570 (run_scc_vn): Initialize it.
16571 (visit_reference_op_load): Use it.
16572 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16573
b46ae6da
UW
165742011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16575
16576 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16577 DImode trapping arithmetic libfuncs.
16578
c0aae19c
RG
165792011-02-07 Richard Guenther <rguenther@suse.de>
16580
16581 PR tree-optimization/47621
16582 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16583 two duplicates ...
16584 (execute_update_addresses_taken): ... here. Make it more
16585 conservative in what we accept.
16586
295d926b
JM
165872011-02-06 Joseph Myers <joseph@codesourcery.com>
16588
16589 * config/sparc/freebsd.h (ASM_SPEC): Define.
16590 * config/sparc/vxworks.h (ASM_SPEC): Define.
16591
bdeb2471
JM
165922011-02-06 Joseph Myers <joseph@codesourcery.com>
16593
16594 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16595
d5d3781a
SB
165962011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16597
16598 * doc/invoke.texi: Remove reference to compiler internals from
16599 user documentation.
16600
16601 * reg-notes.def: Remove REG_VALUE_PROFILE.
16602 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16603
c42c09fc
JJ
166042011-02-05 Jakub Jelinek <jakub@redhat.com>
16605
16606 PR middle-end/47610
16607 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 16608 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 16609
beea2755
JZ
166102011-02-05 Jie Zhang <jie@codesourcery.com>
16611
16612 PR debug/42631
16613 * web.c (entry_register): Don't clobber the number of the
16614 first uninitialized reference in used[].
16615
a130584a
SP
166162011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16617
16618 PR tree-optimization/46194
16619 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16620 (build_classic_dist_vector_1): Do not represent classic distance
16621 vectors when the access functions are variating in different loops.
16622
962101ac
JM
166232011-02-04 Joseph Myers <joseph@codesourcery.com>
16624
16625 * config/mips/iris6.opt: New.
16626 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16627
55eaaa5b
RH
166282011-02-04 Richard Henderson <rth@redhat.com>
16629 Steve Ellcey <sje@cup.hp.com>
16630
16631 PR target/46997
16632 * config/ia64/predicates.md (mux1_brcst_element): New.
16633 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16634 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16635 (ia64_unpack_sign): New.
16636 (ia64_expand_unpack): Rewrite using new routines.
16637 (ia64_expand_widen_sum): Ditto.
16638 (ia64_expand_dot_prod_v8qi): Ditto.
16639 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16640 routines, add endian check.
16641 (pmpy2_even): Rename from pmpy2_r, add endian check.
16642 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16643 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16644 (vec_widen_smult_hi_v4hi): Ditto.
16645 (vec_widen_umult_lo_v4hi): Ditto.
16646 (vec_widen_umult_hi_v4hi): Ditto.
16647 (mulv2si3): Change endian checks.
16648 (sdot_prodv4hi): Rewrite with new calls.
16649 (udot_prodv4hi): New.
16650 (vec_pack_ssat_v4hi): Add endian check.
16651 (vec_pack_usat_v4hi): Ditto.
16652 (vec_pack_ssat_v2si): Ditto.
16653 (max1_even): Rename from max1_r, add endian check.
16654 (max1_odd): Rename from max1_l, add endian check.
16655 (*mux1_rev): Format change.
16656 (*mux1_mix): Ditto.
16657 (*mux1_shuf): Ditto.
16658 (*mux1_alt): Ditto.
16659 (*mux1_brcst_v8qi): Use new predicate.
16660 (vec_extract_evenv8qi): Remove endian check.
16661 (vec_extract_oddv8qi): Ditto.
16662 (vec_interleave_lowv4hi): Format change.
16663 (vec_interleave_highv4hi): Ditto.
16664 (mix2_even): Rename from mix2_r, add endian check.
16665 (mix2_odd): Rename from mux2_l, add endian check.
16666 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16667 (vec_extract_evenodd_helper): Format change.
16668 (vec_extract_evenv4hi): Remove endian check.
16669 (vec_extract_oddv4hi): Remove endian check.
16670 (vec_interleave_lowv2si): Format change.
16671 (vec_interleave_highv2si): Format change.
16672 (vec_initv2si): Remove endian check.
16673 (vecinit_v2si): Add endian check.
16674 (reduc_splus_v2sf): Add endian check.
16675 (reduc_smax_v2sf): Ditto.
16676 (reduc_smin_v2sf): Ditto.
16677 (vec_initv2sf): Remove endian check.
16678 (fpack): Add endian check.
16679 (fswap): Add endian check.
16680 (vec_interleave_highv2sf): Add endian check.
16681 (vec_interleave_lowv2sf): Add endian check.
16682 (fmix_lr): Add endian check.
16683 (vec_setv2sf): Format change.
16684 (*vec_extractv2sf_0_be): Use shift to extract operand.
16685 (*vec_extractv2sf_1_be): New.
16686 (vec_pack_trunc_v4hi): Add endian check.
16687 (vec_pack_trunc_v2si): Format change.
16688
dcde5957
JJ
166892011-02-04 Jakub Jelinek <jakub@redhat.com>
16690
16691 PR inline-asm/23200
16692 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 16693 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
16694 (stmt_is_replaceable_p): New function.
16695 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16696 callers.
16697 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16698 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16699 SSA_NAME_DEF_STMT.
16700 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16701
a64a8e5a
JM
167022011-02-04 Joseph Myers <joseph@codesourcery.com>
16703
16704 * config/rs6000/xilinx.opt: New.
16705 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16706
4da2ed2f
JM
167072011-02-04 Joseph Myers <joseph@codesourcery.com>
16708
16709 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16710
a6e508f9
AS
167112011-02-03 Anatoly Sokolov <aesok@post.ru>
16712
16713 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16714 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16715 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16716 secondary_reload_info, xtensa_secondary_reload): Remove.
16717 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16718 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16719 (xtensa_preferred_reload_class): Make static. Change return and
16720 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16721 Use CONST_DOUBLE_P predicate.
16722 (xtensa_preferred_output_reload_class): New function.
16723 (xtensa_secondary_reload): Make static.
16724
82dc0de3
JM
167252011-02-03 Joseph Myers <joseph@codesourcery.com>
16726
16727 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16728 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16729 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16730
7fece979
JJ
167312011-02-03 Jakub Jelinek <jakub@redhat.com>
16732
16733 PR middle-end/31490
16734 * output.h (SECTION_RELRO): Define.
16735 (SECTION_MACH_DEP): Adjust.
16736 (get_variable_section): New prototype.
16737 * varpool.c (varpool_finalize_named_section_flags): New function.
16738 (varpool_assemble_pending_decls): Call it.
16739 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16740 * cgraphunit.c (cgraph_output_in_order): Call
16741 varpool_finalize_named_section_flags.
16742 * varasm.c (get_section): Allow section flags conflicts between
16743 relro and read-only sections if the section hasn't been declared yet.
16744 Set SECTION_OVERRIDE after diagnosing section type conflict.
16745 (get_variable_section): No longer static.
16746 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16747 readonly sections that need relocations.
16748 (decl_readonly_section_1): New function.
16749 (decl_readonly_section): Use it.
16750
16751 Revert:
509d65dd 16752 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
16753 Steve Ellcey <sje@cup.hp.com>
16754
16755 PR middle-end/31490
16756 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16757 if section attribute used.
16758
d18d5478
JJ
167592011-02-03 Jakub Jelinek <jakub@redhat.com>
16760
16761 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16762 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16763 (darwin_init_sections): Remove assertion.
16764
6479ed4b
NC
167652011-02-03 Nick Clifton <nickc@redhat.com>
16766
16767 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16768 lt and ge.
38be4072 16769 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
16770 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16771 instead of "n" and "pz".
16772 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16773 CC_FLAG_S.
16774
89843f5d
JJ
167752011-02-03 Jakub Jelinek <jakub@redhat.com>
16776
65450d64
JJ
16777 PR target/47312
16778 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16779 fma, expand FMA_EXPR as fma{,f,l} call.
16780
7d58701c
JJ
16781 PR lto/47274
16782 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16783 copy them into a unsigned char variable and pass address of it to
16784 lto_output_data_stream.
16785
89843f5d
JJ
16786 PR target/47564
16787 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16788 around backend_init_target and lang_dependent_init_target calls.
16789 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16790 (verify_cgraph_node): Don't call set_cfun here. Use
16791 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16792 Set error_found for incorrectly represented calls to thunks.
16793
4deef538
AO
167942011-02-03 Alexandre Oliva <aoliva@redhat.com>
16795
16796 PR debug/43092
16797 PR rtl-optimization/43494
16798 * rtl.h (for_each_inc_dec_fn): New type.
16799 (for_each_inc_dec): Declare.
16800 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16801 (for_each_inc_dec_find_inc_dec): New fn.
16802 (for_each_inc_dec_find_mem): New fn.
16803 (for_each_inc_dec): New fn.
16804 * dse.c (struct insn_size): Remove.
16805 (replace_inc_dec, replace_inc_dec_mem): Remove.
16806 (emit_inc_dec_insn_before): New fn.
16807 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16808 (canon_address): Pass mem modes to cselib_lookup.
16809 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16810 (cselib_lookup_from_insn): Likewise.
16811 (cselib_subst_to_values): Likewise.
16812 * cselib.c (find_slot_memmode): New var.
16813 (cselib_find_slot): New fn. Use it instead of
16814 htab_find_slot_with_hash everywhere.
16815 (entry_and_rtx_equal_p): Use find_slot_memmode.
16816 (autoinc_split): New fn.
16817 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16818 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16819 Deal with autoinc. Special-case recursion into MEMs.
16820 (cselib_hash_rtx): Likewise.
16821 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16822 address and MEM modes.
16823 (cselib_subst_to_values): Add memmode, pass it on.
16824 Deal with autoinc.
16825 (cselib_lookup): Add memmode argument, pass it on.
16826 (cselib_lookup_from_insn): Add memmode.
16827 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16828 (struct cselib_record_autoinc_data): New.
16829 (cselib_record_autoinc_cb): New fn.
16830 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16831 mode to cselib_lookup. Reset autoinced REGs here instead of...
16832 (cselib_process_insn): ... here.
16833 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16834 to cselib_lookup.
16835 (add_uses): Likewise, also to cselib_subst_to_values.
16836 (add_stores): Likewise.
16837 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16838 cselib_subst_to_values.
16839 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16840 * gcse.c (do_local_cprop): Adjusted.
16841 * postreload.c (reload_cse_simplify_set): Adjusted.
16842 (reload_cse_simplify_operands): Adjusted.
16843 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16844
1551d44a
AO
168452011-02-03 Alexandre Oliva <aoliva@redhat.com>
16846
16847 PR tree-optimization/45122
16848 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16849 unsafe assumptions when there's more than one loop exit.
16850
c9485473
MM
168512011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16852
16853 PR target/47272
16854 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16855 Document using vector double with the load/store builtins, and
16856 that the load/store builtins always use Altivec instructions.
16857
16858 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16859 to use altivec memory instructions, even on VSX.
16860 (vector_altivec_store_<mode>): Ditto.
16861
16862 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16863 function.
16864
16865 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16866 V2DF, V2DI support to load/store overloaded builtins.
16867
16868 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16869 altivec load/store builtins for V2DF/V2DI types.
16870
16871 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16872 set avoid indexed addresses on power6 if -maltivec.
16873 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16874 vector_altivec_load/vector_altivec_store builtins.
16875 (altivec_expand_st_builtin): Ditto.
16876 (altivec_expand_builtin): Add VSX memory builtins.
16877 (rs6000_init_builtins): Add V2DI types to internal types.
16878 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16879 load/store builtins.
16880 (rs6000_address_for_altivec): Insure memory address is appropriate
16881 for Altivec.
16882
16883 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16884 vec_vsx_ld and vec_vsx_st.
16885 (vsx_store_<mode>): Ditto.
16886
16887 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16888 variables to hold long long types for VSX vector memory builtins.
16889 (RS6000_BTI_unsigned_long_long): Ditto.
16890 (long_long_integer_type_internal_node): Ditti.
16891 (long_long_unsigned_type_internal_node): Ditti.
16892
16893 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16894 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16895 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16896
16897 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16898 short cuts.
16899 (vec_vsx_st): Ditto.
16900
b24d1acf
JM
169012011-02-02 Joseph Myers <joseph@codesourcery.com>
16902
16903 * config/pa/pa-hpux10.opt: New.
16904 * config/hpux11.opt (pthread): New Driver option.
16905 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16906 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16907
aa18dd0f
JM
169082011-02-02 Joseph Myers <joseph@codesourcery.com>
16909
16910 * config/ia64/vms.opt: New.
16911 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16912
28fc3eee
MM
169132011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16914
16915 PR target/47580
16916 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16917 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16918 generator functions.
16919 (vsx_floatuns<VSi><mode>2): Ditto.
16920 (vsx_fix_trunc<mode><VSi>2): Ditto.
16921 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16922
b5838b1f
JM
169232011-02-02 Joseph Myers <joseph@codesourcery.com>
16924
16925 * config/i386/djgpp.opt (posix): New Driver option.
16926
0db8fa89
GP
169272011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16928
16929 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16930 Move to the unsupported targets list.
16931
9cd4f22a
PB
169322011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16933
16934 PR rtl-optimization/47525
16935 * df-scan.c: Update copyright years.
16936 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16937 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16938
9ed8059c
RO
169392011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16940
16941 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16942 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16943 (ASM_OUTPUT_ASCII): Remove.
16944 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16945
2a737389
JL
169462011-02-02 Jeff Law <law@redhat.com>
16947
16948 PR middle-end/47543
16949 * reload.c (find_reloads_address): Handle reg+d address where both
16950 components are invalid by reloading the entire address.
16951
9dac82c4
SP
169522011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16953 Richard Guenther <rguenther@suse.de>
16954
16955 PR tree-optimization/40979
16956 PR bootstrap/47044
16957 * passes.c (init_optimization_passes): After LIM call copy_prop
16958 and DCE to clean up.
16959 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16960
14dd9aab
SP
169612011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16962
16963 PR tree-optimization/47576
16964 PR tree-optimization/47555
16965 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16966 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16967 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16968 * tree-scalar-evolution.c (follow_ssa_edge): Use
16969 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16970
5cbf5c20
RG
169712011-02-02 Richard Guenther <rguenther@suse.de>
16972
16973 PR tree-optimization/47566
16974 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16975
83d70792
AO
169762011-02-02 Alexandre Oliva <aoliva@redhat.com>
16977
e829c321
AO
16978 PR debug/47106
16979 PR debug/47402
16980 * tree-inline.c (declare_return_variable): Remove unused caller
16981 variable.
16982
83d70792
AO
16983 PR debug/47106
16984 PR debug/47402
16985 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16986 * cfgexpand.c (account_used_vars_for_block): Use them.
16987 * tree-nrv.c (tree_nrv): Likewise.
16988 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16989 (dump_scope_block): Likewise.
16990 (remove_unused_locals): Likewise.
16991
aaa2ac93
AO
16992 PR debug/47106
16993 PR debug/47402
16994 * tree-inline.c (declare_return_variable): Add result decl to
16995 local decls only once.
16996 * gimple-low.c (record_vars_into): Mark newly-created variables
16997 as referenced.
16998
a59d15cf
AO
169992011-02-02 Alexandre Oliva <aoliva@redhat.com>
17000
17001 PR debug/47498
17002 PR debug/47501
17003 PR debug/45136
17004 PR debug/45130
17005 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17006 debug insns.
17007 (no_real_insns_p, schedule_block, set_priorities): Drop special
17008 treatment of boundary debug insns.
38be4072 17009 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
17010 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17011 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17012 (BOUNDARY_DEBUG_INSN_P): Likewise.
17013 (SCHEDULE_DEBUG_INSN_P): Likewise.
17014 * sched-rgn.c (init_ready_list): Drop special treatment of
17015 boundary debug insns.
17016 * final.c (rest_of_clean_state): Clear notes' BB.
17017
6fc2f091
JM
170182011-02-01 Joseph Myers <joseph@codesourcery.com>
17019
17020 * config/openbsd.opt (assert=): New Driver option.
17021
fc523387
JM
170222011-02-01 Joseph Myers <joseph@codesourcery.com>
17023
17024 * config/i386/nto.opt: New.
17025 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17026
6d9821e5
JM
170272011-02-01 Joseph Myers <joseph@codesourcery.com>
17028
17029 * config/i386/netware.opt: New.
17030 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17031
cef932d4
JM
170322011-02-01 Joseph Myers <joseph@codesourcery.com>
17033
17034 * config/interix.opt (posix): New Driver option.
17035
22843acd
DD
170362011-02-01 DJ Delorie <dj@redhat.com>
17037
56490b74
DD
17038 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17039
22843acd
DD
17040 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17041 class for A0/A1.
17042
199c8f2f
SP
170432011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17044
17045 PR tree-optimization/47561
17046 * toplev.c (process_options): Print the Graphite flags. Add
17047 flag_loop_flatten to the list of options requiring Graphite.
17048
926bcf22
JM
170492011-02-01 Joseph Myers <joseph@codesourcery.com>
17050
17051 * config/i386/cygming.opt (posix): New Driver option.
17052
59793c51
JM
170532011-02-01 Joseph Myers <joseph@codesourcery.com>
17054
17055 * config/arm/vxworks.opt: New.
17056 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17057
183c38a4
JM
170582011-02-01 Joseph Myers <joseph@codesourcery.com>
17059
17060 * config/alpha/elf.opt: New.
17061 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17062 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17063
9939e416
RG
170642011-02-01 Richard Guenther <rguenther@suse.de>
17065
17066 PR tree-optimization/47559
17067 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17068 store-motion on references that can throw.
17069
4a3c9687
BS
170702011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17071
17072 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17073 * tree-pass.h (TDF_CSELIB): New macro.
17074 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17075 cselib_lookup): Check for it rather than for TDF_DETAILS.
17076
dd3b31fb
L
170772011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17078
17079 PR driver/47547
17080 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17081 is HOST_BIT_BUCKET.
17082
17083 * opts.c (finish_options): Don't add x_aux_base_name if it is
17084 HOST_BIT_BUCKET.
17085
34c1de79
RG
170862011-02-01 Richard Guenther <rguenther@suse.de>
17087
17088 PR tree-optimization/47555
17089 Revert
17090 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17091
17092 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17093
dd2804d2
SB
170942011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17095
17096 PR gcc/46692
17097 * config/lm32/t-lm32: Add multilib for all CPU options.
17098
3fd3b156
RG
170992011-02-01 Richard Guenther <rguenther@suse.de>
17100
17101 PR tree-optimization/47541
17102 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17103 sure to have a field at offset zero.
17104
f16072b6
JM
171052011-01-31 Joseph Myers <joseph@codesourcery.com>
17106
17107 * config/arc/arc.opt (EB, EL): New Driver options.
17108
6456cf2e
JM
171092011-01-31 Joseph Myers <joseph@codesourcery.com>
17110
17111 * config/alpha/osf5.opt: New.
17112 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17113
cdde6ab4
JM
171142011-01-31 Joseph Myers <joseph@codesourcery.com>
17115
17116 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17117
7633415c
SP
171182011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17119
17120 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17121 -floop-interchange.
17122 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17123 is an alias of -floop-interchange and that it requires the
17124 Graphite infrastructure.
17125 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17126 flag_loop_interchange based on the value of flag_tree_loop_linear.
17127
0425d6f5
JJ
171282011-01-31 Jakub Jelinek <jakub@redhat.com>
17129 Richard Guenther <rguenther@suse.de>
17130
17131 PR tree-optimization/47538
17132 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17133 type instead of r1type, except for comparisons. For right
17134 shifts and comparisons punt if there are mismatches in
17135 sizetype vs. non-sizetype types.
17136
500b16c3
RO
171372011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17138
17139 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17140 avx_runtime.
17141
e279edb0
RO
171422011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17143
17144 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17145 version number.
17146 * configure: Regenerate.
17147
c6092243
RO
171482011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17149
17150 * configure.ac (gcc_cv_ld_static_option): Define.
17151 (gcc_cv_ld_dynamic_option): Define.
17152 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17153 instead.
17154 (HAVE_LD_STATIC_DYNAMIC): Update message.
17155 (LD_STATIC_OPTION): Define.
17156 (LD_DYNAMIC_OPTION): Define.
17157 * configure: Regenerate.
17158 * config.in: Regenerate.
17159 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17160 HAVE_LD_STATIC_DYNAMIC]: Use them.
17161
d7862be3
NC
171622011-01-31 Nick Clifton <nickc@redhat.com>
17163
17164 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17165 registers inside interrupt handlers if the handler is not a leaf
17166 function.
17167
ba4ec0e0
NC
171682011-01-31 Nick Clifton <nickc@redhat.com>
17169
17170 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17171 reg_renumber returning an INVALID_REGNUM.
17172
29a63921
AO
171732011-01-31 Alexandre Oliva <aoliva@redhat.com>
17174
17175 PR libgcj/44341
17176 * doc/install.texi: Document host options discarded when cross
17177 configuring target libraries.
17178
ef591d3f
AO
171792011-01-31 Alexandre Oliva <aoliva@redhat.com>
17180
17181 Reverted:
17182 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17183 PR debug/45136
17184 PR debug/45130
17185 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17186 debug insns.
17187 (no_real_insns_p, schedule_block, set_priorities): Drop special
17188 treatment of boundary debug insns.
38be4072 17189 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
17190 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17191 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17192 (BOUNDARY_DEBUG_INSN_P): Likewise.
17193 (SCHEDULE_DEBUG_INSN_P): Likewise.
17194 * sched-rgn.c (init_ready_list): Drop special treatment of
17195 boundary debug insns.
17196 * final.c (rest_of_clean-state): Clear notes' BB.
17197
61052244
AM
171982011-01-31 Alan Modra <amodra@gmail.com>
17199
17200 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17201 toc relative expressions as we do in print_operand_address.
17202
c4c8962b
KH
172032011-01-30 Kazu Hirata <kazu@codesourcery.com>
17204
17205 * doc/extend.texi: Follow spelling conventions.
17206 * doc/invoke.texi: Fix a typo.
17207
e543b94c
JM
172082011-01-30 Joseph Myers <joseph@codesourcery.com>
17209
17210 * config/hpux11.opt: New.
17211 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17212 ia64*-*-hpux*): Use hpux11.opt.
17213
509d65dd 172142011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
17215
17216 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17217 to tmake_file.
17218
7be03a0e
GP
172192011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17220
17221 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17222 support sites.
17223
419d1d37
GP
172242011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17225
b596ed64
GP
17226 * doc/install.texi (Binaries): Remove outdated reference for
17227 Motorola 68HC11/68HC12 downloads.
17228
172292011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 17230
419d1d37
GP
17231 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17232 Drepper's paper.
17233
4406d0e9
JW
172342011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17235
17236 PR bootstrap/47147
17237 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17238 used by NetBSD.
17239
38be4072 172402011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
17241
17242 * value-prof.c (check_counter): Corrected error message.
17243
0cd98787
JZ
172442011-01-29 Jie Zhang <jie@codesourcery.com>
17245
17246 * config/arm/arm.c (arm_legitimize_reload_address): New.
17247 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17248 arm_legitimize_reload_address.
38be4072 17249 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 17250
9b798ac5
ILT
172512011-01-28 Ian Lance Taylor <iant@google.com>
17252
17253 * godump.c (go_define): Ignore macros whose definitions include
17254 two adjacent operands.
17255
591e29d9
JJ
172562011-01-28 Jakub Jelinek <jakub@redhat.com>
17257
17258 PR target/42894
17259 * varasm.c (force_const_mem): Store copy of x in desc->constant
17260 instead of x itself.
17261 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17262 itself into REG_EQUAL note.
17263
62dcc44a
JM
172642011-01-28 Joseph Myers <joseph@codesourcery.com>
17265
17266 * config/freebsd.opt (posix, rdynamic): New Driver options.
17267
c9f58b9a
RO
172682011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17269
17270 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17271 -Bstatic/-Bdynamic.
17272 * configure: Regenerate.
17273
5f02b9db
JM
172742011-01-27 Joseph Myers <joseph@codesourcery.com>
17275
17276 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17277 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17278
5df97412
AS
172792011-01-27 Anatoly Sokolov <aesok@post.ru>
17280
17281 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17282 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17283 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17284 (s390_preferred_reload_class): Make static. Change return and
17285 'rclass' argument type to reg_class_t.
17286
779d4b91
JH
172872011-01-27 Jan Hubicka <jh@suse.cz>
17288
17289 PR middle-end/46949
17290 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17291 (process_function_and_variable_attributes): Check defined weakrefs.
17292
e80b21ed
MJ
172932011-01-27 Martin Jambor <mjambor@suse.cz>
17294
17295 PR tree-optimization/47228
17296 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17297 build_ref_for_offset.
17298
6dcc4f31
UW
172992011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17300
17301 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17302
509d65dd 173032011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
17304
17305 PR rtl-optimization/46856
17306 * postreload.c (reload_combine_recognize_const_pattern): Do not
17307 separate cc0 setter and user on cc0 targets.
17308
04af8788
NP
173092011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17310
17311 PR c/43082
17312 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17313 passed a VOID_TYPE expression, immediately emit an error and
17314 return error_mark_node.
17315
f7a60085
JL
173162011-01-26 Jeff Law <law@redhat.com>
17317
17318 PR rtl-optimization/47464
17319 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17320 rather than may_trap_p as needed.
17321
5c2917ec
DD
173222011-01-26 DJ Delorie <dj@redhat.com>
17323
17324 PR rtl-optimization/46878
17325 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17326 setter/user dependency as well.
17327
bef16e87
EB
173282011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17329
17330 PR rtl-optimization/44469
17331 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17332 after removing trivially dead basic blocks.
17333
c75d884b
JM
173342011-01-26 Joseph Myers <joseph@codesourcery.com>
17335
17336 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17337 * config/frv/frv.h (LINK_SPEC): Likewise.
17338 * config/i386/netware.h (LINK_SPEC): Likewise.
17339 * config/m68k/linux.h (ASM_SPEC): Likewise.
17340 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17341 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17342 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17343 * config/sparc/linux.h (ASM_SPEC): Likewise.
17344 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17345 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17346
d3153553
JM
173472011-01-26 Joseph Myers <joseph@codesourcery.com>
17348
17349 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17350 * config/frv/frv.h (ASM_SPEC): Likewise.
17351 * config/m68k/linux.h (ASM_SPEC): Likewise.
17352 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17353 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17354 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17355 * config/sparc/linux.h (ASM_SPEC): Likewise.
17356 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17357 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17358
b89b1e9d
JM
173592011-01-26 Joseph Myers <joseph@codesourcery.com>
17360
17361 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17362 * config/frv/frv.h (LINK_SPEC): Likewise.
17363 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17364
12eb1a9c
JM
173652011-01-26 Joseph Myers <joseph@codesourcery.com>
17366
17367 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17368 * config/frv/frv.h (ASM_SPEC): Likewise.
17369 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17370 * config/m68k/linux.h (ASM_SPEC): Likewise.
17371 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17372 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17373 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17374 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17375 * config/sparc/linux.h (ASM_SPEC): Likewise.
17376 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17377 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17378 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17379
e435f098
SE
173802011-01-26 Steve Ellcey <sje@cup.hp.com>
17381
17382 PR target/46997
17383 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17384 (*mux2): Ditto.
17385 (vec_extract_evenodd_help): Ditto.
17386 (vec_extract_evenv4hi): Ditto.
17387 (vec_extract_oddv4hi): Ditto.
17388 (vec_interleave_lowv2si): Ditto.
17389 (vec_interleave_highv2si): Ditto.
17390 (vec_extract_evenv2si): Ditto.
17391 (vec_extract_oddv2si: Ditto.
17392 (vec_pack_trunc_v2si): Ditto.
17393
34f0eee0
JH
173942011-01-22 Jan Hubicka <jh@suse.cz>
17395
17396 PR target/47237
17397 * cgraph.h (cgraph_local_info): New field can_change_signature.
17398 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17399 signature can change.
17400 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17401 can change.
17402 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17403 (cgraph_function_versioning): We can not change signature of functions
17404 that don't allow that.
17405 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17406 (lto_input_node): Likewise.
38be4072
UB
17407 * ipa-inline.c (compute_inline_parameters): Compute
17408 local.can_change_signature.
34f0eee0 17409 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
17410 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17411 functions that can not change signature.
34f0eee0 17412 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
17413 init_cumulative_args): Do not use local calling conventions
17414 for functions that can not change signature.
34f0eee0 17415
980ca891
JH
174162011-01-22 Jan Hubicka <jh@suse.cz>
17417
17418 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17419
768e3c60
RG
174202011-01-26 Richard Guenther <rguenther@suse.de>
17421
17422 PR tree-optimization/47190
61052244
AM
17423 * cgraphunit.c (process_common_attributes): New function.
17424 (process_function_and_variable_attributes): Use it.
768e3c60 17425
21d6a1c7
RG
174262011-01-26 Richard Guenther <rguenther@suse.de>
17427
17428 PR lto/47423
17429 * cgraphbuild.c (record_eh_tables): Record reference to personality
17430 function.
17431
48bb58b1
AO
174322011-01-26 Alexandre Oliva <aoliva@redhat.com>
17433
17434 PR debug/45454
17435 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17436 non-debug insns from moving up.
17437
58c741a6
DK
174382011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17439
17440 PR target/40125
17441 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17442 t-dlldir{,-x} fragment for build and add it to tmake_file.
17443 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17444 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17445 * config/i386/t-dlldir: New file.
17446 (SHLIB_DLLDIR): Define.
17447 * config/i386/t-dlldir-x: New file.
17448 (SHLIB_DLLDIR): Define.
17449 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17450 (SHLIB_INSTALL): Use it.
17451
bff99262
CLT
174522011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17453
17454 PR target/47246
17455 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17456 lower bound of the allowed Thumb-2 coprocessor load/store
17457 index range to -256. Add explaining comment.
17458
82c03907
ILT
174592011-01-25 Ian Lance Taylor <iant@google.com>
17460
17461 * godump.c (go_define): Improve lexing of macro expansion to only
17462 accept expressions which match Go spec.
17463
47ea1edf
DK
174642011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17465
d4dba752 17466 PR c++/43601
47ea1edf
DK
17467 * tree.c (handle_dll_attribute): Handle it.
17468 * doc/extend.texi (@item dllexport): Mention it.
17469 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17470
744f0946
ILT
174712011-01-25 Ian Lance Taylor <iant@google.com>
17472
17473 PR tree-optimization/26854
17474 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17475 (decl_jump_unsafe): Move higher in file, with no other change.
17476 (bind): Set has_jump_unsafe_decl if appropriate.
17477 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17478 (check_earlier_gotos): Likewise.
17479 (c_check_switch_jump_warnings): Likewise.
17480
5734f2b3
JW
174812011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17482
17483 * doc/invoke.texi (Warning Options): Add missing hyphen.
17484 (-fprofile-dir): Minor grammatical fixes.
17485 (-fbranch-probabilities): Likewise.
17486
9bdbdcef
AO
174872011-01-25 Alexandre Oliva <aoliva@redhat.com>
17488
17489 PR debug/45136
17490 PR debug/45130
17491 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17492 debug insns.
17493 (no_real_insns_p, schedule_block, set_priorities): Drop special
17494 treatment of boundary debug insns.
38be4072 17495 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
17496 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17497 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17498 (BOUNDARY_DEBUG_INSN_P): Likewise.
17499 (SCHEDULE_DEBUG_INSN_P): Likewise.
17500 * sched-rgn.c (init_ready_list): Drop special treatment of
17501 boundary debug insns.
17502 * final.c (rest_of_clean-state): Clear notes' BB.
17503
b305e3da
SP
175042011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17505
17506 * Makefile.in (LAMBDA_H): Removed.
17507 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17508 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17509 lambda-trans.o, and tree-loop-linear.o.
17510 (lto-symtab.o): Remove dependence on LAMBDA_H.
17511 (tree-loop-linear.o): Remove rule.
17512 (lambda-mat.o): Same.
17513 (lambda-trans.o): Same.
17514 (lambda-code.o): Same.
17515 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17516 (tree-vect-slp.o): Same.
17517 * hwint.h (gcd): Moved here.
17518 (least_common_multiple): Same.
17519 * lambda-code.c: Removed.
17520 * lambda-mat.c: Removed.
17521 * lambda-trans.c: Removed.
17522 * lambda.h: Removed.
17523 * tree-loop-linear.c: Removed.
17524 * lto-symtab.c: Do not include lambda.h.
17525 * omega.c (gcd): Removed.
17526 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17527 * tree-data-ref.c (print_lambda_vector): Moved here.
17528 (lambda_vector_copy): Same.
17529 (lambda_matrix_copy): Same.
17530 (lambda_matrix_id): Same.
17531 (lambda_vector_first_nz): Same.
17532 (lambda_matrix_row_add): Same.
17533 (lambda_matrix_row_exchange): Same.
17534 (lambda_vector_mult_const): Same.
17535 (lambda_vector_negate): Same.
17536 (lambda_matrix_row_negate): Same.
17537 (lambda_vector_equal): Same.
17538 (lambda_matrix_right_hermite): Same.
17539 * tree-data-ref.h: Do not include lambda.h.
17540 (lambda_vector): Moved here.
17541 (lambda_matrix): Same.
17542 (dependence_level): Same.
17543 (lambda_transform_legal_p): Removed declaration.
17544 (lambda_collect_parameters): Same.
17545 (lambda_compute_access_matrices): Same.
17546 (lambda_vector_gcd): Same.
17547 (lambda_vector_new): Same.
17548 (lambda_vector_clear): Same.
17549 (lambda_vector_lexico_pos): Same.
17550 (lambda_vector_zerop): Same.
17551 (lambda_matrix_new): Same.
17552 * tree-flow.h (least_common_multiple): Removed declaration.
17553 * tree-parloops.c (lambda_trans_matrix): Moved here.
17554 (LTM_MATRIX): Same.
17555 (LTM_ROWSIZE): Same.
17556 (LTM_COLSIZE): Same.
17557 (LTM_DENOMINATOR): Same.
17558 (lambda_trans_matrix_new): Same.
17559 (lambda_matrix_vector_mult): Same.
17560 (lambda_transform_legal_p): Same.
17561 * tree-pass.h (pass_linear_transform): Removed declaration.
17562 * tree-ssa-loop.c (tree_linear_transform): Removed.
17563 (gate_tree_linear_transform): Removed.
17564 (pass_linear_transform): Removed.
17565 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17566 flag_loop_interchange.
17567
6bdfdb96
JJ
175682011-01-25 Jakub Jelinek <jakub@redhat.com>
17569
17570 PR tree-optimization/47265
17571 PR tree-optimization/47443
17572 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17573 if name still has some uses.
17574
e4cba915
MJ
175752011-01-25 Martin Jambor <mjambor@suse.cz>
17576
17577 PR tree-optimization/47382
17578 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17579 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17580
509d65dd 175812011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
17582
17583 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17584 sjlj_except_unwind_info.
17585
194313e2
RG
175862011-01-25 Richard Guenther <rguenther@suse.de>
17587
17588 PR tree-optimization/47426
17589 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17590 visible functions results escape.
17591
147a0bcf
JJ
175922011-01-25 Jakub Jelinek <jakub@redhat.com>
17593
17594 PR target/45701
17595 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17596 (arm_get_frame_offsets): Use it.
17597
db963b52
SP
175982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17599 Jakub Jelinek <jakub@redhat.com>
17600
17601 PR tree-optimization/47271
17602 * tree-if-conv.c (bb_postdominates_preds): New.
17603 (if_convertible_bb_p): Call bb_postdominates_preds.
17604 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17605 (predicate_scalar_phi): Call bb_postdominates_preds.
17606
bcddd3b9
NC
176072011-01-25 Nick Clifton <nickc@redhat.com>
17608
17609 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17610 * config/rx/rx.c (rx_function_value): Likewise.
17611 (rx_promote_function_mode): Likewise.
17612 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17613 in order to make it legitimate.
38be4072
UB
17614 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17615 make sure that the first operand is the same as the result register.
bcddd3b9
NC
17616 (addsi3_unspec): Delete.
17617 (subdi3): Do not accept immediate operands.
17618 (subdi3_internal): Likewise.
17619
7e6cb022
JL
176202011-01-25 Jeff Law <law@redhat.com>
17621
17622 PR rtl-optimization/37273
17623 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17624 handle them like argument loads from stack slots. Do not double
17625 count memory for memory constants and argument loads from stack slots.
17626
9ffa621e
JJ
176272011-01-25 Jakub Jelinek <jakub@redhat.com>
17628
17629 PR tree-optimization/47427
17630 PR tree-optimization/47428
17631 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17632 coalesce if the new root var would be TREE_READONLY.
17633
5bd6e652
RG
176342011-01-25 Richard Guenther <rguenther@suse.de>
17635
17636 PR middle-end/47414
17637 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17638 correct type for TBAA.
17639
7c48ea69
SP
176402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17641
17642 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17643 (close_phi_written_to_memory): Call for_each_index with
17644 dr_indices_valid_in_loop.
17645
38013f25
SP
176462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17647
17648 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17649 when it is initialized.
17650
5c640e29
SP
176512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17652
17653 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17654 call to graphite_find_data_references_in_stmt.
17655 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17656 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17657 call to graphite_find_data_references_in_stmt.
17658 (analyze_drs_in_stmts): Same.
17659 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17660 in which the scalar analysis of indices is performed.
17661 (create_data_ref): Same. Update call to dr_analyze_indices.
17662 (find_data_references_in_stmt): Update call to create_data_ref.
17663 (graphite_find_data_references_in_stmt): Same.
17664 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17665 declaration.
17666 (create_data_ref): Same.
17667 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17668 call to create_data_ref.
17669
ac53c069
SP
176702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17671
17672 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 17673 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 17674
3d17df15
SP
176752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17676
17677 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17678 VAR_DECL, PARM_DECL, and RESULT_DECL.
17679
c513da01
SP
176802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17681
17682 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17683 in a reduction PBB.
17684 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17685 that have already been marked as PBB_IS_REDUCTION.
17686
3a292d59
SP
176872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17688
17689 * graphite-scop-detection.c (same_close_phi_node): New.
17690 (remove_duplicate_close_phi): New.
17691 (make_close_phi_nodes_unique): New.
17692 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17693
ba858447
SP
176942011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17695
17696 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17697 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17698 of both data references to be the same.
17699
8d865c56
SP
177002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17701
38be4072
UB
17702 * graphite-dependences.c (build_lexicographical_constraint): Remove
17703 the gdim parameter.
17704 (build_lexicographical_constraint): Adjust call to
17705 ppl_powerset_is_empty.
8d865c56
SP
17706 (dependence_polyhedron): Same.
17707 (graphite_legal_transform_dr): Same.
17708 (graphite_carried_dependence_level_k): Same.
38be4072
UB
17709 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17710 parameter.
8d865c56
SP
17711 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17712
50034a36
SP
177132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17714
17715 * graphite-sese-to-poly.c
17716 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17717 (close_phi_written_to_memory): New.
17718 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17719 and unshare_expr.
17720
0deada9e
SP
177212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17722
17723 * doc/install.texi: Update the expected version number of PPL to 0.11.
17724 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17725 #if PPL_VERSION_MINOR < 11.
17726
d7d3d6af
SP
177272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17728
17729 * graphite-dependences.c: Include graphite-cloog-util.h.
17730 (new_poly_ddr): Inlined into dependence_polyhedron.
17731 (free_poly_ddr): Moved close by new_poly_ddr.
17732 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17733 Early return NULL when ppl_powerset_is_empty returns true.
17734 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17735 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17736 (graphite_legal_transform_dr): Call new_poly_ddr.
17737 (graphite_carried_dependence_level_k): Same.
17738 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17739 (dot_transformed_deps_stmt_1): Removed.
17740 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17741 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17742 (dot_deps_1): Call dot_deps_2.
17743 * Makefile.in (graphite-dependences.o): Add missing dependence on
17744 graphite-cloog-util.h.
17745
28c5db57
SP
177462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17747
17748 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17749 (build_lexicographical_constraint): Same.
17750 (dependence_polyhedron_1): Same.
17751 (graphite_legal_transform_dr): Same.
17752 (graphite_carried_dependence_level_k): Same.
17753 * graphite-ppl.c (ppl_powerset_is_empty): New.
17754 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17755 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17756
5168d98f
SP
177572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17758
17759 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17760 the "a followed by b" relation and document it.
17761
4a40293a
SP
177622011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17763
17764 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17765 iteration when the bag of constraints is empty.
17766
271fb6fa
SP
177672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17768
17769 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17770
92d23680
SP
177712011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17772
17773 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17774 nest and two loop depths as parameters.
17775 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17776 lst_perfect_nestify.
17777
2f51deff
SP
177782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17779
17780 * graphite-dependences.c (print_pddr): Call
17781 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17782
07f3593c
SP
177832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17784
17785 * graphite-ppl.c (debug_gmp_value): New.
17786 * graphite-ppl.h (debug_gmp_value): Declared.
17787
3fae6099
TG
177882011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17789
17790 * doc/install.texi: Document availability of cloog-0.16.
17791
1c3ba85b
SP
177922011-01-25 Vladimir Kargov <kargov@gmail.com>
17793
17794 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17795 invalid postdominance info.
17796
e8ba94fc
JH
177972011-01-24 Jan Hubicka <jh@suse.cz>
17798
17799 PR c/21659
17800 * doc/extend.texi (weak pragma): Drop claim that it must
17801 appear before definition.
17802 * varasm.c (merge_weak, declare_weak): Only sanity check
17803 that DECL is not output at a time it is declared weak.
17804
2b6e2d13
KZ
178052011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17806
17807 * machmode.def: Fixed comments.
1c3ba85b 17808
9841210f
KT
178092011-01-24 Kai Tietz <kai.tietz@onevision.com>
17810
17811 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17812
178132011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
17814
17815 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 17816 WORDS_BIG_ENDIAN.
e046112d 17817
a6c5070a
L
178182011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17819
17820 PR target/46519
17821 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17822 (block_info): Add scanned and prev.
17823 (move_or_delete_vzeroupper_2): Return if the basic block
17824 has been scanned and the upper 128bit state is unchanged
17825 from the last scan.
17826 (move_or_delete_vzeroupper_1): Return true if the exit
17827 state is changed.
17828 (move_or_delete_vzeroupper): Visit basic blocks using the
17829 work-list based algorithm based on vt_find_locations in
17830 var-tracking.c.
17831
17832 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17833
a40d79d7
NC
178342011-01-24 Nick Clifton <nickc@redhat.com>
17835
17836 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17837 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17838 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17839 then define __v850e1__.
17840 * doc/invoke.texi: Document -mv850es.
17841
440eb8de
RH
178422011-01-24 Richard Henderson <rth@redhat.com>
17843
17844 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17845 compound unordered comparisons.
17846 * config/rx/rx.c (rx_split_fp_compare): Remove.
17847 * config/rx/rx-protos.h: Update.
17848 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17849 (cbranchsf4): Don't call rx_split_fp_compare.
17850 (*cbranchsf4): Use rx_split_cbranch.
17851 (*cmpsf): Don't accept "i" constraint.
17852 (*conditional_branch): Only valid after reload.
17853 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17854
3ff79f99
MM
178552011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17856
17857 PR target/47385
17858 * config/rs6000/altivec.md (vector constant splitters): Add
17859 support for creating vector single precision constants if -mvsx is
17860 used and we would create the constant using Altivec primitives.
17861
ff3d9d08
BS
178622011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17863 Richard Sandiford <rdsandiford@googlemail.com>
17864
17865 PR rtl-optimization/47166
17866 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17867 mechanism for PRE_MODIFY and POST_MODIFY.
17868 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17869 reloadreg.
17870
7fcaf152
AS
178712011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17872
8788adb6 17873 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 17874
d09b58c4
JH
178752011-01-22 Jan Hubicka <jh@suse.cz>
17876
17877 PR lto/47333
17878 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17879
e8ff8c5a
JH
178802011-01-22 Jan Hubicka <jh@suse.cz>
17881
17882 PR tree-optimization/43884
17883 PR lto/44334
8788adb6 17884 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
17885 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17886
ccaed3ba
AS
178872011-01-22 Anatoly Sokolov <aesok@post.ru>
17888
17889 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17890 * config/s390/s390.c (s390_register_move_cost,
17891 s390_memory_move_cost): New.
17892 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17893
0cecee06
UW
178942011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17895
17896 PR middle-end/47401
17897 * except.c (sjlj_assign_call_site_values): Move setting the
17898 crtl->uses_eh_lsda flag to ...
17899 (sjlj_mark_call_sites): ... here.
17900 (sjlj_emit_function_enter): Support NULL dispatch label.
17901 (sjlj_build_landing_pads): In a function with no landing pads
17902 that still has must-not-throw regions, generate code to register
17903 a personality function with empty LSDA.
17904
e692f276
RH
179052011-01-21 Richard Henderson <rth@redhat.com>
17906
1b7ae0b7
RH
17907 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17908
3843787f
RH
17909 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17910
e692f276
RH
17911 * compare-elim.c: New file.
17912 * Makefile.in (OBJS-common): Add it.
17913 (compare-elim.o): New.
17914 * common.opt (fcompare-elim): New.
17915 * opts.c (default_options_table): Add OPT_fcompare_elim.
17916 * tree-pass.h (pass_compare_elim_after_reload): New.
17917 * passes.c (init_optimization_passes): Add it.
17918 * recog.h: Protect against re-inclusion.
17919 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17920 * doc/invoke.texi (-fcompare-elim): Document it.
17921 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17922 * doc/tm.texi: Rebuild.
17923
9a7c2050
NC
179242011-01-22 Nick Clifton <nickc@redhat.com>
17925
17926 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17927 rx_split_fp_compare.
17928
15ba5696
NC
179292011-01-22 Nick Clifton <nickc@redhat.com>
17930
17931 * config/rx/rx.md (UNSPEC_CONST): New.
17932 (deallocate_and_return): Wrap the amount popped off the stack in
17933 an UNSPEC_CONST in order to stop it being rejected by
17934 -mmax-constant-size.
17935 (pop_and_return): Add a "(return)" rtx.
17936 (call): Drop the immediate operand.
17937 (call_internal): Likewise.
17938 (call_value): Likewise.
17939 (call_value_internal): Likewise.
17940 (sibcall_internal): Likewise.
17941 (sibcall_value_internal): Likewise.
17942 (sibcall): Likewise. Generate an explicit call using
17943 sibcall_internal.
17944 (sibcall_value): Likewise.
17945 (mov<>): FAIL if a constant operand is not legitimate.
17946 (addsi3_unpsec): New pattern.
9a7c2050 17947
38be4072 17948 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
17949 (ok_for_max_constant): New function.
17950 (gen_safe_add): New function.
17951 (rx_expand_prologue): Use gen_safe_add.
17952 (rx_expand_epilogue): Likewise.
17953 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17954 UNSPEC CONSTs.
17955
caaf13d3
JL
179562011-01-21 Jeff Law <law@redhat.com>
17957
17958 PR tree-optimization/47053
17959 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17960 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17961 statements are deleted.
17962 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17963 is nonempty, then purge dead edges and cleanup the CFG.
17964
12c30f2f
AO
179652011-01-21 Alexandre Oliva <aoliva@redhat.com>
17966
17967 PR debug/47402
17968 Temporarily revert:
17969 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17970 PR debug/47106
17971 * tree-dfa.c (create_var_ann): Mark variable as used.
17972
7360d2ac
JJ
179732011-01-21 Jakub Jelinek <jakub@redhat.com>
17974
aaa52a96
JJ
17975 PR middle-end/45566
17976 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17977 notes from other section in hot/cold partitioning even if
17978 last_action is -3. Increment call_site_base.
17979
7360d2ac
JJ
17980 PR rtl-optimization/47366
17981 * fwprop.c (forward_propagate_into): Return bool. If
17982 any changes are made, -fnon-call-exceptions is used and
17983 REG_EH_REGION note is present, call purge_dead_edges
17984 and return true if it purged anything.
17985 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17986 any EH edges were purged.
17987
e90b336f
JL
179882011-01-21 Jeff Law <law@redhat.com>
17989
17990 PR rtl-optimization/41619
17991 * caller-save.c (setup_save_areas): Break out code to determine
17992 which hard regs are live across calls by examining the reload chains
17993 so that it is always used.
17994 Eliminate code which checked REG_N_CALLS_CROSSED.
17995
3ffe07e1
JJ
179962011-01-21 Jakub Jelinek <jakub@redhat.com>
17997
17998 PR tree-optimization/47355
17999 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18000 NOP has non-debug uses beyond PHIs in new_bb.
18001
1c7d0b34
AO
180022011-01-21 Alexandre Oliva <aoliva@redhat.com>
18003
18004 PR debug/47106
18005 * cfgexpand.c (account_used_vars_for_block): Only account vars
18006 that are annotated as used.
18007 (estimated_stack_frame_size): Don't set TREE_USED.
18008 * tree-dfa.c (create_var_ann): Mark variable as used.
18009
f99cc488
RG
180102011-01-21 Richard Guenther <rguenther@suse.de>
18011
18012 PR middle-end/47395
18013 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18014
3bc27de7
RG
180152011-01-21 Richard Guenther <rguenther@suse.de>
18016
18017 PR tree-optimization/47365
18018 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18019 (vn_reference_lookup_pieces): Adjust.
18020 (vn_reference_lookup): Likewise.
18021 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18022 (vn_reference_lookup_3): Only look through kills if in
18023 VN_WALKREWRITE mode.
18024 (vn_reference_lookup_pieces): Adjust.
18025 (vn_reference_lookup): Likewise.
18026 (visit_reference_op_load): Likewise.
18027 (visit_reference_op_store): Likewise.
18028 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18029 (compute_avail): Likewise.
18030 (eliminate): Likewise.
18031
d8debb1d
JJ
180322011-01-21 Jakub Jelinek <jakub@redhat.com>
18033
18034 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18035 DECL_IGNORED_P non-reg vars if they are used.
18036
3a2df831
JJ
18037 PR tree-optimization/47391
18038 * varpool.c (const_value_known_p): Return false if
18039 decl is volatile.
18040
1dd584a2
KT
180412011-01-21 Kai Tietz <kai.tietz@onevision.com>
18042
18043 PR bootstrap/47215
18044 * config/i386/i386.c (ix86_local_alignment): Handle
18045 case for va_list_type_node is nil.
18046 (ix86_canonical_va_list_type): Likewise.
18047
7f9f095e
AM
180482011-01-21 Alan Modra <amodra@gmail.com>
18049
18050 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18051 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18052
837b01f6
RR
180532011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18054
18055 * config/arm/arm.md (define_attr type): Rename f_load
18056 and f_store to f_fpa_load and f_fpa_store. Update.
18057 (write_conflict): Deal with rename fallout.
18058 (*push_fp_multi): Likewise.
18059 * config/arm/fpa.md (f_load): Use f_fpa_load.
18060 (f_store): Use f_fpa_store.
18061 (*movsf_fpa): Likewise.
18062 (*movdf_fpa): Likewise.
18063 (*movxf_fpa): Likewise.
18064 (*thumb2_movsf_fpa): Likewise.
18065 (*thumb2_movdf_fpa): Likewise.
18066 (*thumb2_movxf_fpa): Likewise.
18067 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18068 f_loadd and f_stored.
18069 (*thumb2_movdi_vfp): Likewise.
18070 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18071 (*thumb2_movsi_vfp): Likewise.
18072 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18073 Use f_loads instead of f_load.
18074 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18075
a1a79768
AS
180762011-01-20 Anatoly Sokolov <aesok@post.ru>
18077
18078 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18079 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18080 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18081 (xtensa_mode_dependent_address_p): New function.
18082 (constantpool_address_p): Make static. Change return type to bool.
18083 Change argument type to const_rtx. Use CONST_INT_P predicate.
18084
427f6cec
AO
180852011-01-20 Alexandre Oliva <aoliva@redhat.com>
18086
18087 PR debug/46583
18088 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18089
583ac69c
JJ
180902011-01-20 Jakub Jelinek <jakub@redhat.com>
18091
18092 PR debug/47283
18093 * cfgexpand.c (expand_debug_expr): Instead of generating
18094 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18095 etc. handling.
18096
93e452ed
RG
180972011-01-20 Richard Guenther <rguenther@suse.de>
18098
18099 PR middle-end/47370
18100 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18101 the pointer operand of MEM_REFs.
18102
28fc44f3
JJ
181032011-01-20 Jakub Jelinek <jakub@redhat.com>
18104
18105 PR tree-optimization/46130
18106 * ipa-split.c (consider_split): If return_bb contains non-virtual
18107 PHIs other than for retval or if split_function would not adjust it,
18108 refuse to split.
18109
ddd268f2
RG
181102011-01-20 Richard Guenther <rguenther@suse.de>
18111
18112 PR tree-optimization/47167
18113 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18114 Revert previous change, only avoid enumeral type changes.
18115
882020aa
MS
181162011-01-19 Mike Stump <mikestump@comcast.net>
18117
18118 * doc/tm.texi.in (BRANCH_COST): Englishify.
18119 * doc/tm.texi (BRANCH_COST): Likewise.
18120
7edb6247
DS
181212011-01-19 Dodji Seketeli <dodji@redhat.com>
18122
18123 PR c++/47291
18124 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
18125 (gen_scheduled_generic_parms_dies): New functions.
18126 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18127 generation for the end of CU compilation.
18128 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 18129
23d5ed5d
AO
181302011-01-19 Alexandre Oliva <aoliva@redhat.com>
18131
18132 PR debug/46240
18133 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18134 debug bind stmt on merge edges.
18135
37d6a488
AO
181362011-01-19 Alexandre Oliva <aoliva@redhat.com>
18137
18138 PR debug/47079
18139 PR debug/46724
18140 * function.c (instantiate_expr): Instantiate incoming rtl of
18141 implicit arguments, and recurse on VALUE_EXPRs.
18142 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18143 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18144
689f2c82
AO
181452011-01-19 Alexandre Oliva <aoliva@redhat.com>
18146
18147 * c-parser.c (c_parser_for_statement): Initialize
18148 collection_expression.
18149
03029de4
JM
181502011-01-19 Joseph Myers <joseph@codesourcery.com>
18151
18152 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18153
3e03217e
JM
181542011-01-19 Joseph Myers <joseph@codesourcery.com>
18155
18156 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18157 (LINK_SHLIB_SPEC): Don't use %(link_path).
18158 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18159
5bbe9b3f
JM
181602011-01-19 Joseph Myers <joseph@codesourcery.com>
18161
18162 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18163 (NO_SHARED_LIB_SUPPORT): Remove.
18164 (LINK_SHLIB_SPEC): Remove one conditional definition.
18165
368e0b39
JM
181662011-01-19 Joseph Myers <joseph@codesourcery.com>
18167
18168 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18169 %{call_shared}.
18170 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18171 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18172 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18173 %{call_shared} and conditionals on these options not being passed.
18174 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18175 %{call_shared}.
18176
ed7656f6
JJ
181772011-01-19 Jakub Jelinek <jakub@redhat.com>
18178
68457901
JJ
18179 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18180 simplify.
18181
ed7656f6
JJ
18182 * ipa-split.c: Spelling fixes.
18183
e0d1958f
RH
181842011-01-19 Richard Henderson <rth@redhat.com>
18185
18186 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18187 (*mulsi3): Likewise.
18188
27098b6b
RH
18189 * longlong.h [__mn10300__] (count_leading_zeros): New.
18190 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18191 [__mn10300__] (add_ssaaaa, subddmmss): New.
18192 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18193 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18194
d6be7c36
UW
181952011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18196
18197 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18198
b1efde2a
RH
181992011-01-19 Richard Henderson <rth@redhat.com>
18200
44217823
RH
18201 * config/mn10300/mn10300.md (addsi3_flags): New.
18202 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18203 (subsi3_flags, subc_internal, subdi3): New.
18204 (subdi3_internal, *subdi3_degenerate): New.
18205 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18206
37a185d7
RH
18207 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18208 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18209 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18210 * config/mn10300/mn10300-protos.h: Update.
18211 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18212 (return_ret): Likewise. Rename from return_internal_regs.
18213 (return_internal): Remove.
18214
040c5757
RH
18215 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18216 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18217 (mn10300_legitimate_constant_p): Likewise.
18218 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18219 (mn10300_frame_size): New.
18220 (mn10300_expand_prologue): Use it.
18221 (mn10300_expand_epilogue): Likewise.
18222 (mn10300_initial_offset): Likewise.
18223 * config/mn10300/mn10300-protos.h: Update.
18224 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18225 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18226 (prologue, epilogue, return_internal): Tidy output code.
18227 (mn10300_store_multiple_operation, return): Likewise.
18228 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18229 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18230 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18231 (load_pic, am33_load_pic): New.
18232 (mn10300_load_pic0, mn10300_load_pic1): New.
18233
bad41521
RH
18234 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18235 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18236 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18237 (cc_flags_for_mode, cc_flags_for_code): New.
18238 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18239 overflow flag is not valid. Validate that the flags we need
18240 for the comparison are valid.
18241 (mn10300_output_cmp): Remove.
18242 (mn10300_output_add): New.
18243 (mn10300_select_cc_mode): Use cc_flags_for_code.
18244 (mn10300_split_cbranch): New.
18245 (mn10300_match_ccmode): New.
18246 (mn10300_split_and_operand_count): New.
18247 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18248 to the function.
18249 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18250 (addsi3): ... here. Use mn10300_output_add.
18251 (*addsi3_flags): New.
18252 (*am33_subsi3, *mn10300_subsi3): Merge...
18253 (subsi3): ... here. Use attribute isa.
18254 (*subsi3_flags): New.
18255 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18256 when possible.
18257 (*am33_andsi3, *mn10300_andsi3): Merge...
18258 (andsi3): ... here.
18259 (*andsi3_flags): New.
18260 (andsi3 splitters): New.
18261 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18262 (iorsi3): ... here.
18263 (*iorsi3_flags): New.
18264 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18265 (xorsi3): ... here.
18266 (*xorsi3_flags): New.
18267 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18268 (one_cmplsi2): ... here.
18269 (*one_cmplsi2_flags): New.
18270 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18271 instead of "dax" in constraints. Use mn10300_split_cbranch.
18272 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18273 use matching constraints to eliminate a self-comparison.
18274 (*integer_conditional_branch): Rename from integer_conditional_branch.
18275 Use int_mode_flags to match CC_REG.
18276 (*cbranchsi4_btst, *btstsi): New.
18277 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18278 mn10300_split_cbranch.
18279 (*am33_cmpsf): Rename from am33_cmpsf.
18280 (*float_conditional_branch): Rename from float_conditional_branch.
18281 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18282 (zero_extendqisi2): ... here.
18283 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18284 (zero_extendhisi2): ... here.
18285 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18286 (extendqisi2): ... here.
18287 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18288 (extendhisi2): ... here.
18289 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18290 (ashlsi3): ... here.
18291 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18292 (lshrsi3): ... here.
18293 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18294 (ashrsi3): ... here.
18295 (consecutive add peephole): Remove.
18296 * config/mn10300/predicates.md (label_ref_operand): New.
18297 (int_mode_flags): New.
18298 (CCZN_comparison_operator): New.
18299
9efb4993
RH
18300 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18301 (throughput_42_latency_43): New reservation.
18302 (mulsidi3, umulsidi3): New expanders.
18303 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18304 the MDR register to allocation; separately allocate the low and
18305 high parts of the DImode result.
18306 (umulsidi3_internal): Similarly.
18307 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18308 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18309 (udivsi3, umodsi3): Remove.
18310 (udivmodsi4, divmodsi4): New expanders.
18311 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18312 (*divmodsi4): Simiarly.
18313 (ext_internal): New.
18314
c25a21f5
RH
18315 * config/mn10300/constraints.md ("z"): New constraint.
18316 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18317 (FIXED_REGISTERS): Don't fix MDR.
18318 (CALL_USED_REGSITERS): Reformat nicely.
18319 (REG_ALLOC_ORDER): Add MDR.
18320 (enum regclass): Add MDR_REGS.
18321 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18322 (IRA_COVER_CLASSES): Add MDR_REGS.
18323 (REGNO_REG_CLASS): Handle MDR_REG.
18324 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18325 (mn10300_register_move_cost): Likewise.
18326 * config/mn10300/mn10300.md (MDR_REG): New.
18327 (*movsi_internal): Handle moves to/from MDR_REGS.
18328
36846b26
RH
18329 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18330 POST_MODIFY.
18331 (mn10300_secondary_reload): Tidy combination reload classes.
18332 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18333 addresses for AM33. Allow symbolic offsets for reg+imm.
18334 (mn10300_regno_in_class_p): New.
18335 (mn10300_legitimize_reload_address): New.
18336 * config/mn10300/mn10300.h (enum reg_class): Remove
18337 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18338 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18339 SP_OR_GENERAL_REGS.
18340 (REG_CLASS_NAMES): Update to match.
18341 (REG_CLASS_CONTENTS): Likewise.
18342 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18343 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18344 (REGNO_IN_RANGE_P): Remove.
18345 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18346 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18347 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18348 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18349 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18350 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18351 (REGNO_GENERAL_P): New.
18352 (HAVE_POST_MODIFY_DISP): New.
18353 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18354 (LEGITIMIZE_RELOAD_ADDRESS): New.
18355 * config/mn10300/mn10300-protos.h: Update.
18356
8b119bb6
RH
18357 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18358 DATA_REGS for AM33 stack-pointer destination.
18359 (mn10300_preferred_output_reload_class): Likewise.
18360 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18361 into a form appropriate for ...
18362 (TARGET_SECONDARY_RELOAD): New.
18363 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18364 * config/mn10300/mn10300-protos.h: Update.
18365 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18366 reload_insi; use the "A" constraint for the scratch; handle AM33
18367 moves of sp to non-address registers.
18368
b1efde2a
RH
18369 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18370 (*movqi_internal): ... here.
18371 (*am33_movhi, *mn10300_movhi): Merge into...
18372 (*movhi_internal): ... here.
18373 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18374 as the source/destination of moves from/to SP.
18375 (movsf): Only allow for AM33-2.
1c3ba85b 18376 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
18377 any integer constant constraint. Only allow for AM33-2. Tidy
18378 all of the alternative outputs.
18379 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18380 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18381 for MN103.
18382 (udivsi3, umodsi3): New patterns for MN103 only.
18383
b899fd78
JR
183842011-01-19 Joern Rennecke <amylaar@spamcop.net>
18385
18386 * doc/tm.texi.in: Spell out that a lack of register class unions
18387 can lead to ICEs.
18388 * doc/tm.texi: Regenerate.
18389
afaaa67d
JJ
183902011-01-19 Jakub Jelinek <jakub@redhat.com>
18391
2e0642cd
JJ
18392 PR rtl-optimization/47337
18393 * dce.c (check_argument_store): New function.
18394 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18395
afaaa67d
JJ
18396 PR tree-optimization/47290
18397 * tree-eh.c (infinite_empty_loop_p): New function.
18398 (cleanup_empty_eh): Use it.
18399
d2cd871f
SE
184002011-01-18 Steve Ellcey <sje@cup.hp.com>
18401
18402 PR target/46997
18403 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18404 (a64_expand_widen_sum): Ditto.
18405 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18406 (vec_extract_evenodd_help): Ditto.
18407 (vec_extract_evenv4hi): Ditto.
18408 (vec_extract_oddv4hi): Ditto.
18409 (vec_extract_evenv2si): Ditto.
18410 (vec_extract_oddv2si): Ditto.
18411 (vec_extract_evenv2sf): Ditto.
18412 (vec_extract_oddv2sf): Ditto.
18413 (vec_pack_trunc_v4hi: Ditto.
18414 (vec_pack_trunc_v2si): Ditto.
18415 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18416 (vec_interleave_highv8qi): Ditto.
18417 (mix1_r): Ditto.
18418 (vec_extract_oddv8qi): Ditto.
18419 (vec_interleave_lowv4hi): Ditto.
18420 (vec_interleave_highv4hi): Ditto.
18421 (vec_interleave_lowv2si): Ditto.
18422 (vec_interleave_highv2si): Ditto.
18423
41a1208a
JDA
184242011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18425
18426 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18427 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18428 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18429 (pa_c_mode_for_suffix): New.
18430 (TARGET_EXPAND_BUILTIN): Define.
18431 (TARGET_C_MODE_FOR_SUFFIX): Define.
18432 (pa_builtins): Define.
18433 (pa_init_builtins): Register __float128 type and init new support
18434 builtins.
18435 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18436 * config/pa/quadlib.c (_U_Qfcopysign): New.
18437
1ecad98e
EB
184382011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18439
18440 PR middle-end/46894
18441 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18442 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18443 are defined.
18444
d4f2460a
UW
184452011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18446
18447 PR tree-optimization/47179
18448 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18449 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18450
4994da65
RG
184512011-01-18 Richard Guenther <rguenther@suse.de>
18452
18453 PR rtl-optimization/47216
18454 * emit-rtl.c: Include tree-flow.h.
18455 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18456 of replicating it with different semantics.
18457 * Makefile.in (emit-rtl.o): Adjust.
18458
1eb458d1
RR
184592011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18460
38be4072 18461 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 18462 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 18463
e7ef91dc
JJ
184642011-01-18 Jakub Jelinek <jakub@redhat.com>
18465
18466 PR rtl-optimization/47299
18467 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 18468 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
18469 * expmed.c (expand_widening_mult): Don't try to optimize constant
18470 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18471 before using it.
18472
535b7874
RW
184732011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18474
18475 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18476 spacing after 'e.g.', typos, comma, hyphenation.
18477
27bf36f3
RH
184782011-01-17 Richard Henderson <rth@redhat.com>
18479
8a5b5449
RH
18480 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18481 (rx_restricted_mem_operand): New.
18482 (rx_shift_operand): Use register_operand.
18483 (rx_source_operand, rx_compare_operand): Likewise.
18484 * config/rx/rx.md (addsi3_flags): New expander.
18485 (adddi3): Rewrite as expander.
18486 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18487 (subsi3_flags): New expander.
18488 (subdi3): Rewrite as expander.
18489 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18490
784f69be
RH
18491 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18492 (rx_init_builtins): Remove sat builtin.
18493 (rx_expand_builtin): Likewise.
18494 * config/rx/rx.md (ssaddsi3): New.
18495 (*sat): Rename from sat. Represent the CC_REG input.
18496
f033541c
RH
18497 * config/rx/predicates.md (rshift_operator): New.
18498 * config/rx/rx.c (rx_expand_insv): Remove.
18499 * config/rx/rx-protos.h: Update.
18500 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18501 operand to the canonical position.
18502 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18503 (*bitclr, *bitclr_in_memory): Similarly.
18504 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18505 (insv): Retain the zero_extract in the expansion.
18506
34fee389
RH
18507 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18508 (bswaphi2, bitinvert, revw): Likewise.
18509
265c835f
RH
18510 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18511 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18512 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18513 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18514 (bitset, bitset_in_memory): Likewise.
18515 (bitinvert, bitinvert_in_memory): Likewise.
18516 (bitclr, bitclr_in_memory): Likewise.
18517 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18518 (rx_strend, rx_cmpstrn): Likewise.
18519 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18520 (bitop peep2 patterns): Remove.
18521
b4d83be3
RH
18522 * config/rx/rx.c (rx_match_ccmode): New.
18523 * config/rx/rx-protos.h: Update.
18524 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18525 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18526 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18527 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18528 (fix_truncsfsi2, floatsisf2): Likewise.
18529 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18530 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18531 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18532 (*subsi3_flags, *xorsi3_flags): New.
18533
d0acb939
RH
18534 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18535
c06fc3d9
RH
18536 * config/rx/rx.c (rx_print_operand): Remove workaround for
18537 unsplit comparison operations.
18538
2882702b
RH
18539 * config/rx/rx.md (movsicc): Split after reload.
18540 (*movsicc): Merge *movsieq and *movsine via match_operator.
18541 (*stcc): New pattern.
18542
6f7310f2
RH
18543 * config/rx/rx.c (rx_float_compare_mode): Remove.
18544 * config/rx/rx.h (rx_float_compare_mode): Remove.
18545 * config/rx/rx.md (cstoresi4): Split after reload.
18546 (*sccc): New pattern.
18547
e963cb1a
RH
18548 * config/rx/predicates.md (label_ref_operand): New.
18549 (rx_z_comparison_operator): New.
18550 (rx_zs_comparison_operator): New.
18551 (rx_fp_comparison_operator): New.
18552 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18553 Validate that the flags are set properly for the comparison.
18554 (rx_gen_cond_branch_template): Remove.
18555 (rx_cc_modes_compatible): Remove.
18556 (mode_from_flags): New.
18557 (flags_from_code): Rename from flags_needed_for_conditional.
18558 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18559 (rx_select_cc_mode): Likewise.
18560 (rx_split_fp_compare): New.
18561 (rx_split_cbranch): New.
18562 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18563 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18564 (*cbranchsf4): Similarly.
18565 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18566 match_operator and rx_split_cbranch.
18567 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18568 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18569 (*cmpsi): Rename from cmpsi.
18570 (*tstsi): Rename from tstsi.
18571 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18572 (*conditional_branch): Rename from conditional_branch.
18573 (*reveresed_conditional_branch): Remove.
18574 (b<code>): Remove expander.
18575 * config/rx/rx-protos.h: Update.
18576
af530bb4
RH
18577 * config/rx/rx.c (rx_compare_redundant): Remove.
18578 * config/rx/rx.md (cmpsi): Don't use it.
18579 * config/rx/rx-protos.h: Update.
18580
27bf36f3
RH
18581 * config/rx/rx-modes.def (CC_F): New mode.
18582 * config/rx/rx.c (rx_select_cc_mode): New.
18583 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18584 * config/rx/rx-protos.h: Update.
18585
d7fde127
RH
185862011-01-17 Richard Henderson <rth@redhat.com>
18587
18588 * except.c (dump_eh_tree): Fix stray ; after for statement.
18589
6ff38230
RG
185902011-01-17 Richard Guenther <rguenther@suse.de>
18591
18592 PR tree-optimization/47313
18593 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18594 handling before copying the body. Properly deal with
18595 by-reference result in SSA form.
18596
114ce554
ILT
185972011-01-17 Ian Lance Taylor <iant@google.com>
18598
bf5cd92b 18599 PR target/47219
114ce554
ILT
18600 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18601 (struct_value_alias_set): Don't define.
18602 (sparc_option_override): Don't set sparc_sr_alias_set and
18603 struct_value_alias_set.
18604 (save_or_restore_regs): Use gen_frame_mem rather than calling
18605 set_mem_alias_set.
18606 (sparc_struct_value_rtx): Likewise.
18607
98c6d93c
L
186082011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18609
18610 PR target/47318
7a81008b 18611 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
18612 (_mm_maskstore_pd): Likewise.
18613 (_mm_maskload_ps): Likewise.
18614 (_mm_maskstore_ps): Likewise.
18615 (_mm256_maskload_pd): Change mask to __m256i.
18616 (_mm256_maskstore_pd): Likewise.
18617 (_mm256_maskload_ps): Likewise.
18618 (_mm256_maskstore_ps): Likewise.
18619
18620 * config/i386/i386-builtin-types.def: Updated.
18621 (ix86_expand_special_args_builtin): Likewise.
18622
18623 * config/i386/i386.c (bdesc_special_args): Update
18624 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18625 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18626 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18627 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18628
18629 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18630 Use <avxpermvecmode> on mask register.
18631 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18632
b9361af2 186332011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
18634 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18635 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
18636
18637 PR target/46655
18638 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18639 if <= USHRT_MAX in 32-bit mode.
18640
b7ae9eb5
RW
186412011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18642
18643 * doc/install.texi (Configuration, Specific): Wrap long
18644 lines in examples. Allow line wrapping in long options
18645 and URLs where beneficial for PDF output.
18646
4377fad9
RS
186472011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18648
18649 * config/mips/mips.c (mips_classify_symbol): Don't return
18650 SYMBOL_PC_RELATIVE for nonlocal labels.
18651
55959ffa 186522011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 18653
55959ffa
EB
18654 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18655
186562011-01-15 Jan Hubicka <jh@suse.cz>
18657
18658 PR tree-optimization/47276
be46831f
JH
18659 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18660 declarations as needed.
18661
05842ff5
MJ
186622011-01-15 Martin Jambor <mjambor@suse.cz>
18663
18664 * common.opt (fdevirtualize): New flag.
18665 * doc/invoke.texi (Option Summary): Document it.
18666 * opts.c (default_options_table): Add devirtualize flag.
18667 * ipa-prop.c (detect_type_change): Return immediately if
18668 devirtualize flag is not set.
18669 (detect_type_change_ssa): Likewise.
18670 (compute_known_type_jump_func): Likewise.
18671 (ipa_analyze_virtual_call_uses): Likewise.
18672
f65cf2b7
MJ
186732011-01-14 Martin Jambor <mjambor@suse.cz>
18674
18675 PR tree-optimization/45934
18676 PR tree-optimization/46302
18677 * ipa-prop.c (type_change_info): New type.
18678 (stmt_may_be_vtbl_ptr_store): New function.
18679 (check_stmt_for_type_change): Likewise.
18680 (detect_type_change): Likewise.
18681 (detect_type_change_ssa): Likewise.
18682 (compute_complex_assign_jump_func): Check for dynamic type change.
18683 (compute_complex_ancestor_jump_func): Likewise.
18684 (compute_known_type_jump_func): Likewise.
18685 (compute_scalar_jump_functions): Likewise.
18686 (ipa_analyze_virtual_call_uses): Likewise.
18687 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18688
eb5bb0fd
JM
186892011-01-14 Joseph Myers <joseph@codesourcery.com>
18690
18691 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18692 * config/i386/i386.opt (msse5): New Alias.
18693
f2060fbe
JM
186942011-01-14 Joseph Myers <joseph@codesourcery.com>
18695
18696 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18697 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18698 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18699 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18700
3a7b4385
JM
187012011-01-14 Joseph Myers <joseph@codesourcery.com>
18702
18703 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18704 -mcpu options.
18705 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18706 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18707 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18708 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18709 Likewise.
18710 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18711
a7b778f8
JM
187122011-01-14 Joseph Myers <joseph@codesourcery.com>
18713
38be4072 18714 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 18715
a7edae0a
MS
187162011-01-14 Mike Stump <mikestump@comcast.net>
18717
18718 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18719 * config/fr30/fr30.md: Likweise
18720 (movsi_push): Likewise.
18721 (movsi_pop): Likewise.
18722 (enter_func): Likewise.
18723 * config/moxie/moxie.md (movsi_push): Likewise.
18724 (movsi_pop): Likewise.
18725
cbabf03f
JM
187262011-01-14 Joseph Myers <joseph@codesourcery.com>
18727
18728 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18729 %{no_archive} %{exact_version}.
18730 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18731 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18732 %{no_archive} %{exact_version}.
18733 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18734 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18735 * config/mips/vxworks.h: Likewise.
18736
438da41a
JM
187372011-01-14 Joseph Myers <joseph@codesourcery.com>
18738
38be4072 18739 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 18740
da290a42
JM
187412011-01-14 Joseph Myers <joseph@codesourcery.com>
18742
18743 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18744 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18745
8989d00e
JM
187462011-01-14 Joseph Myers <joseph@codesourcery.com>
18747
18748 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18749 -nodefaultlib.
18750
a3010a69
JM
187512011-01-14 Joseph Myers <joseph@codesourcery.com>
18752
18753 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18754 for mcpu not cpu.
18755 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18756 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18757 not cpu.
18758 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18759 Don't handle -shlib.
18760
e7f2f537
JM
187612011-01-14 Joseph Myers <joseph@codesourcery.com>
18762
18763 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18764 (CC1_SPEC): Don't handle -profile.
18765
34830bfd
JM
187662011-01-14 Joseph Myers <joseph@codesourcery.com>
18767
18768 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18769 * config/mips/mips.h (CC1_SPEC): Likewise.
18770
b2d36e74
JM
187712011-01-14 Joseph Myers <joseph@codesourcery.com>
18772
18773 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18774 * config/mips/mips.h (CC1_SPEC): Likewise.
18775
dabadc52
JM
187762011-01-14 Joseph Myers <joseph@codesourcery.com>
18777
18778 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18779 * config/m32r/linux.h (LINK_SPEC): Likewise.
18780 * config/mips/linux.h (LINK_SPEC): Likewise.
18781 * config/mips/linux64.h (LINK_SPEC): Likewise.
18782 * config/sparc/linux.h (LINK_SPEC): Likewise.
18783 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18784 LINK_SPEC): Likewise.
18785 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18786
43ee6785
JM
187872011-01-14 Joseph Myers <joseph@codesourcery.com>
18788
18789 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18790 %{version:-v}.
18791 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18792
45e79dfd
JM
187932011-01-14 Joseph Myers <joseph@codesourcery.com>
18794
18795 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18796 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18797
37e9e71d
JM
187982011-01-14 Joseph Myers <joseph@codesourcery.com>
18799
18800 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18801
bb127cd8
RO
188022011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18803
18804 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18805 supports -Bstatic/-Bdynamic.
18806 * configure: Regenerate.
18807
89a012ea 188082011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 18809 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
18810
18811 PR target/46037
18812 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18813 when checking debug_info_level. Test write_symbols instead of
18814 debug_hooks->var_location when setting flag_var_tracking_uninit.
18815
7352c013
RG
188162011-01-14 Richard Guenther <rguenther@suse.de>
18817
18818 PR tree-optimization/47179
18819 * target.def (ref_may_alias_errno): New target hook.
18820 * targhooks.h (default_ref_may_alias_errno): Declare.
18821 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18822 (default_ref_may_alias_errno): New function.
18823 * target.h (struct ao_ref_s): Declare.
18824 * tree-ssa-alias.c: Include target.h.
18825 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18826 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18827 (targhooks.o): Likewise.
18828 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18829 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18830
9a6c9288
RG
188312011-01-14 Richard Guenther <rguenther@suse.de>
18832
18833 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18834
0fdb0d27
RG
188352011-01-14 Richard Guenther <rguenther@suse.de>
18836
18837 PR tree-optimization/47280
18838 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18839 return CFG changes.
18840 (tree_ssa_forward_propagate_single_use_vars): Deal with
18841 CFG changes from associate_plusminus.
18842
8f66db3b
RG
188432011-01-14 Richard Guenther <rguenther@suse.de>
18844
18845 PR middle-end/47281
18846 Revert
18847 2011-01-11 Richard Guenther <rguenther@suse.de>
18848
280d9630
EB
18849 PR tree-optimization/46076
18850 * tree-ssa.c (useless_type_conversion_p): Conversions from
18851 unprototyped to empty argument list function types are useless.
8f66db3b 18852
6c0c92e6
RG
188532011-01-14 Richard Guenther <rguenther@suse.de>
18854
18855 PR tree-optimization/47286
280d9630 18856 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 18857
db09f943
MJ
188582011-01-14 Martin Jambor <mjambor@suse.cz>
18859
18860 PR middle-end/46823
18861 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18862
dde8a3a4
AS
188632011-01-13 Anatoly Sokolov <aesok@post.ru>
18864
18865 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18866 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18867 * config/xtensa/xtensa.c (xtensa_libcall_value,
18868 xtensa_function_value_regno_p): New functions.
18869 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18870
a2b63a20
KT
188712011-01-13 Kai Tietz <kai.tietz@onevision.com>
18872
18873 PR c++/47213
18874 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18875 PE specific hook.
18876 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18877 New function prototype.
18878 * config/i386/winnt.c (i386_pe_assemble_visibility):
18879 Warn only if attribute was specified by user.
18880
b41f0b34
MM
188812011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18882
18883 PR target/47251
18884 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18885 floating point.
18886 (floatunsdidf2_fcfidu): Ditto.
18887
3f3c098d
AK
188882011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18889
18890 * config/s390/s390.c (print_operand_address): Replace 'error' with
18891 'output_operand_lossage'.
18892 (print_operand): Likewise.
18893
29fa95ed
JL
188942011-01-13 Jeff Law <law@redhat.com>
18895
280d9630 18896 PR rtl-optimization/39077
29fa95ed
JL
18897 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18898 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18899 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18900 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18901 * gcse.c (prune_insertions_deletions): New function.
18902 (compute_pre_data): Use it.
18903
71d12276
DS
189042011-01-13 Dodji Seketeli <dodji@redhat.com>
18905
18906 PR debug/PR46973
18907 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18908 static function.
61052244 18909 (prune_unused_types_mark): Use it.
71d12276 18910
9b0f04e7
AB
189112011-01-13 Andrey Belevantsev <abel@ispras.ru>
18912
18913 PR rtl-optimization/45352
1c3ba85b 18914 * sel-sched.c: Update copyright years.
9b0f04e7 18915 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 18916 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 18917
d6a3e264
RH
189182011-01-12 Richard Henderson <rth@redhat.com>
18919
a49b692a
RH
18920 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18921 (TARGET_MD_ASM_CLOBBERS): New.
18922
126b1483
RH
18923 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18924 (TARGET_DELEGITIMIZE_ADDRESS): New.
18925
f3d9d2e0
RH
18926 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18927 (clzsi2, *bsch): New patterns.
18928
d84760c9
RH
18929 * config/mn10300/mn10300.md (INT): New mode iterator.
18930 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18931
ec815d65
RH
18932 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18933 flag_split_wide_types.
18934
d6a3e264
RH
18935 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18936 (mn10300_trampoline_init): Rewrite without a template, an immediate
18937 load and a direct branch.
18938 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18939
0f8ab434
AS
189402011-01-12 Anatoly Sokolov <aesok@post.ru>
18941
18942 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18943 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18944 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18945 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18946
d8a24b65
KT
189472011-01-12 Kai Tietz <kai.tietz@onevision.com>
18948
18949 PR debug/47209
18950 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18951 of type.
18952
56e22cab
JH
189532011-01-12 Jan Hubicka <jh@suse.cz>
18954
18955 PR driver/47244
18956 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18957 (PLUGIN_COND_CLOSE): New macro.
18958 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18959
4b18b3c2
RG
189602011-01-12 Richard Guenther <rguenther@suse.de>
18961
18962 PR lto/47259
18963 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18964 register variables in a MEM_REF.
18965
8e38461c
JM
189662011-01-12 Joseph Myers <joseph@codesourcery.com>
18967
18968 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18969 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18970 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18971 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18972 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18973 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18974 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18975 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18976 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18977 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18978 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18979 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18980 * config/gnu-user.h: New. Copied from linux.h.
18981 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18982 GNU_USER_TARGET_STARTFILE_SPEC.
18983 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18984 GNU_USER_TARGET_ENDFILE_SPEC.
18985 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18986 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18987 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18988 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18989 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18990 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18991 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18992 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18993 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18994 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18995 * config/arm/linux-eabi.h (CC1_SPEC): Use
18996 GNU_USER_TARGET_CC1_SPEC.
18997 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18998 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18999 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19000 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19001 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19002 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19003 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19004 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19005
a570fc16
RG
190062011-01-12 Richard Guenther <rguenther@suse.de>
19007
19008 PR other/46946
19009 * doc/invoke.texi (ffast-math): Document it is turned on
19010 with -Ofast.
19011
b0223c3e
JH
190122011-01-12 Jan Hubicka <jh@suse.cz>
19013
19014 PR tree-optimization/47233
ca1e00b3
EB
19015 * opts.c (common_handle_option): Disable ipa-reference with profile
19016 feedback.
b0223c3e 19017
1c3ba85b 190182011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
19019
19020 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
19021 error message.
19022
d853ee42
NP
190232011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19024
19025 * c-parser.c (c_lex_one_token): Updated and reindented some
19026 comments. No changes in code.
19027
4053a5a0
ILT
190282011-01-11 Ian Lance Taylor <iant@google.com>
19029
19030 * godump.c (go_output_var): Don't output the variable if there is
19031 already a type with the same name.
19032
fa3e04d2
ILT
190332011-01-11 Ian Lance Taylor <iant@google.com>
19034
19035 * godump.c (go_format_type): Don't generate float80.
19036
885fe07c
RH
190372011-01-11 Richard Henderson <rth@redhat.com>
19038
72d6e3c5
RH
19039 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19040 declaration. Rewrite for both speed and size.
19041 (mn10300_address_cost_1): Remove.
19042 (mn10300_register_move_cost): New.
19043 (mn10300_memory_move_cost): New.
19044 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19045 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19046 extensions, shifts, BSWAP, CLZ.
19047 (mn10300_wide_const_load_uses_clr): Remove.
19048 (TARGET_REGISTER_MOVE_COST): New.
19049 (TARGET_MEMORY_MOVE_COST): New.
19050 * config/mn10300/mn10300-protos.h: Update.
19051 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19052
df37c023
RH
19053 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19054 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19055 * config/mn10300/mn10300-protos.h: Update.
19056 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19057 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19058 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19059 (*test_int_bitfield, *test_byte_bitfield): Remove.
19060 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 19061 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 19062
85a337b5
RH
19063 * config/mn10300/constraints.md ("c"): Rename from "A".
19064 ("A", "D"): New constraint letters.
19065 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19066 (fmssf4, fnmasf4, fnmssf4): Likewise.
19067
a5c727e3
RH
19068 * config/mn10300/mn10300.md (isa): New attribute.
19069 (enabled): New attribute.
19070
0d9e23f4
RH
19071 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19072 (abssf2, negsf2): Define only for hardware fp.
19073 (sqrtsf2): Reformat.
19074 (addsf3, subsf3, mulsf3): Merge expander and insn.
19075
c157b3f0
RH
19076 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19077 (DEBUGGER_AUTO_OFFSET): Remove.
19078 (DEBUGGER_ARG_OFFSET): Remove.
19079
cc909bba
RH
19080 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19081 Emit register stores with the same offsets as the hardware.
19082 (mn10300_store_multiple_operation): Don't check that the register
19083 save offsets are monotonic.
19084 * config/mn10300/mn10300-protos.h: Update.
19085
e3b5c2f3
RH
19086 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19087
885fe07c
RH
19088 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19089 in terms of the value on the stack, not the MDR register.
19090
6e701822
JH
190912011-01-11 Jan Hubicka <jh@suse.cz>
19092
19093 PR lto/45721
19094 PR lto/45375
19095 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19096 (symbol_alias_set_destroy, symbol_alias_set_contains,
19097 propagate_aliases_backward): Declare.
19098 * lto-streamer-out.c (struct sets): New sturcture.
19099 (trivally_defined_alias): New function.
19100 (output_alias_pair_p): Rewrite.
19101 (output_unreferenced_globals): Fix output of alias pairs.
19102 (produce_symtab): Likewise.
19103 * ipa.c (function_and_variable_visibility): Set weak alias destination
19104 as needed in lto.
19105 * varasm.c (symbol_alias_set_t): Remove.
19106 (symbol_alias_set_destroy): Export.
19107 (propagate_aliases_forward, propagate_aliases_backward): New functions
19108 based on ...
19109 (compute_visible_aliases): ... this one; remove.
19110 (trivially_visible_alias): New
19111 (trivially_defined_alias): New.
19112 (remove_unreachable_alias_pairs): Rewrite.
19113 (finish_aliases_1): Reorganize code checking if alias is defined.
19114 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19115 in LTO mode.
19116
1b248907
RG
191172011-01-11 Richard Guenther <rguenther@suse.de>
19118
19119 PR tree-optimization/46076
19120 * tree-ssa.c (useless_type_conversion_p): Conversions from
19121 unprototyped to empty argument list function types are useless.
19122
b1923f0a
RG
191232011-01-11 Richard Guenther <rguenther@suse.de>
19124
19125 PR middle-end/45235
19126 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19127 volatile MEMs as MEM_READONLY_P.
19128
e98965af
RG
191292011-01-11 Richard Guenther <rguenther@suse.de>
19130
19131 PR tree-optimization/47239
19132 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19133
9f9ca914
JL
191342011-01-11 Jeff Law <law@redhat.com>
19135
1ee3ea05 19136 PR tree-optimization/47086
9f9ca914
JL
19137 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19138 IVs from statements that might throw.
19139
345fdcb7
JH
191402011-01-10 Jan Hubicka <jh@suse.cz>
19141
19142 PR lto/45375
19143 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19144
c459c97b
JH
191452011-01-10 Jan Hubicka <jh@suse.cz>
19146
19147 PR lto/45375
19148 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19149 when correcting profile.
19150
06c9eb51
JH
191512011-01-10 Jan Hubicka <jh@suse.cz>
19152
19153 PR lto/46083
19154 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19155 DECL_FINI_PRIORITY.
19156 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19157 Restore DECL_FINI_PRIORITY.
19158
ae9fd815
RW
191592011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19160
19161 * doc/gimple.texi: Fix quoting of multi-word return values in
19162 @deftypefn statements. Ensure presence of return value. Wrap
19163 overlong @deftypefn lines.
19164 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19165 descriptions of removed functions.
19166 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19167 of multi-word return value in @deftypefn statement.
19168
0ecb4a7c
RW
191692011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19170
19171 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19172 (Conditional Expressions, Logical Operators)
19173 (Statement and operand traversals): Do not indent smallexample
19174 code. Fix duplicate function argument in example.
19175
2e5e346d
JL
191762011-01-10 Jeff Law <law@redhat.com>
19177
1ee3ea05 19178 PR tree-optimization/47141
2e5e346d
JL
19179 * ipa-split.c (split_function): Handle case where we are
19180 returning a value and the return block has a virtual operand phi.
19181
cf9712cc
JH
191822011-01-10 Jan Hubicka <jh@suse.cz>
19183
1c3ba85b 19184 PR tree-optimization/47234
cf9712cc
JH
19185 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19186 (pass_feedback_split_functions): Declare.
19187 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19188 tree-profile.
19189 * ipa-split.c (gate_split_functions): Update comments; disable
19190 split-functions for profile_arc_flag and branch_probabilities.
19191 (gate_feedback_split_functions): New function.
19192 (execute_feedback_split_functions): New function.
19193 (pass_feedback_split_functions): New global var.
19194
94cd932c
L
191952011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19196
19197 PR lto/46760
19198 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19199 calling gimple_call_set_cannot_inline.
19200
fbbfcaf1
IS
192012011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19202
19203 * config/darwin-sections.def: Remove unused section.
19204
d06865bf
DK
192052011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19206
19207 PR c++/47218
19208 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19209
96bbfbac
NP
192102011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19211
19212 PR objc/47232
19213 * c-parser.c (c_parser_declaration_or_fndef): Improved
19214 error message.
19215
1ba6516f
KT
192162011-01-09 Kai Tietz <kai.tietz@onevision.com>
19217
19218 * config/i386/winnt.c (i386_pe_start_function): Make sure
19219 to switch back to function's section.
19220
0c5d770e
IS
192212011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19222
19223 PR gcc/46902
19224 PR testsuite/46912
19225 * plugin.c: Move include of dlfcn.h from here...
19226 * system.h: ... to here.
19227
192282011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
19229
19230 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19231 file name.
19232 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19233 two extra empty pages in PDF output.
19234
046608a3
NP
192352011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19236
19237 PR objc/47078
19238 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19239 for error recovery purposes behave as if it was not specified so
19240 that the default type is usd.
19241
8cb114b9
JH
192422011-01-07 Jan Hubicka <jh@suse.cz>
19243
19244 PR tree-optmization/46469
19245 * ipa.c (function_and_variable_visibility): Clear needed flags on
19246 nodes with external decls; handle weakrefs merging correctly.
19247
b294a75e
JM
192482011-01-07 Joseph Myers <joseph@codesourcery.com>
19249
19250 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19251 not false.
19252
96bdf9b4
JH
192532011-01-07 Jan Hubicka <jh@suse.cz>
19254
f60c2554 19255 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
19256 and no longer claim that gold is required for linker plugin.
19257 * configure: Regenerate.
19258 * gcc.c (PLUGIN_COND): New macro.
19259 (LINK_COMMAND_SPEC): Use it.
19260 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19261 * config.in (HAVE_LTO_PLUGIN): New.
19262 * configure.ac (--with-lto-plugin): New parameter; autodetect
19263 HAVE_LTO_PLUGIN.
19264
17afc0fe
JH
192652011-01-07 Jan Hubicka <jh@suse.cz>
19266
19267 PR tree-optimization/46367
19268 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19269 when we can update original.
19270 (cgraph_mark_inline_edge): Sanity check.
19271 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19272
d4c48c0f
UW
192732011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19274
19275 * config/spu/spu.h (ASM_COMMENT_START): Define.
19276
96f5b137
L
192772011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19278
19279 PR driver/42445
19280 * gcc.c (%>S): New.
19281 (SWITCH_KEEP_FOR_GCC): Likewise.
19282 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19283 (do_spec_1): Handle "%>".
19284
19285 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19286
c6a8f6de
JJ
192872011-01-07 Jakub Jelinek <jakub@redhat.com>
19288
c21bbd7a
JJ
19289 PR target/47201
19290 * config/i386/i386.c (ix86_delegitimize_address): If
19291 simplify_gen_subreg fails, return orig_x.
19292
c6a8f6de
JJ
19293 PR bootstrap/47187
19294 * value-prof.c (gimple_stringop_fixed_value): Handle
19295 lhs of the call properly.
19296
fe95fbf9
JH
192972011-01-07 Jan Hubicka <jh@suse.cz>
19298
19299 PR lto/45375
19300 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19301
14d11d40
IS
193022011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19303
72e961c8
EB
19304 * target.def (function_switched_text_sections): New hook.
19305 * doc/tm.texi: Regenerated.
19306 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19307 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
19308 (final_scan_insn): Call function_switched_text_sections when a
19309 mid-function section change occurs.
14d11d40 19310 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
19311 * config/darwin-protos.h (darwin_function_switched_text_sections):
19312 Likewise.
14d11d40 19313 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 19314 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 19315
0b764288
IS
193162011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19317
19318 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19319 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19320 the secondary code fragment when outputting for DWARF == 2.
19321
2ac6bb04
AS
193222011-01-07 Anatoly Sokolov <aesok@post.ru>
19323
19324 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19325 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19326 Remove.
19327 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19328 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19329
9f82de11
EB
193302011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19331
19332 PR debug/46704
280d9630
EB
19333 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19334 when it is not empty.
9f82de11
EB
19335
193362011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 19337
1ed72abf 19338 Bobcat Enablement
14b52538 19339 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 19340 (case ${target}): Add btver1.
14b52538 19341 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 19342 -march=native recognize btver1 processors.
14b52538 19343 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 19344 btver1 def_and_undef
14b52538 19345 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
19346 btver1 cost table.
19347 (m_BTVER1): New definition.
19348 (m_AMD_MULTIPLE): Includes m_BTVER1.
19349 (initial_ix86_tune_features): Add btver1 tune.
19350 (processor_target_table): Add btver1 entry.
19351 (static const char *const cpu_names): Add btver1 entry.
19352 (software_prefetching_beneficial_p): Add btver1.
19353 (ix86_option_override_internal): Add btver1 instruction sets.
19354 (ix86_issue_rate): Add btver1.
19355 (ix86_adjust_cost): Add btver1.
14b52538 19356 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
19357 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19358 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
19359 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19360
e1a973d8
RO
193612011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19362
19363 PR target/43309
19364 * config/i386/i386.c (legitimize_tls_address)
19365 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19366 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19367 (tls_initial_exec_64_sun): New pattern.
19368
c73f67c5
GP
193692011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19370
19371 * doc/invoke.texi (Overall Options): Improve wording and markup
19372 of the description of -wrapper.
19373
bc4c6f9c
JM
193742011-01-06 Joseph Myers <joseph@codesourcery.com>
19375
19376 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19377 rdynamic, threads): New Driver options.
19378
adb75db0
RO
193792011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19380
19381 PR target/38118
19382 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19383 if coming from .tdata.
19384 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19385
402c1cb4
JH
193862011-01-06 Jan Hubicka <jh@suse.cz>
19387
19388 PR lto/47188
19389 * collect2.c (main): Do not enable LTOmode when plugin is active.
19390
a4da6485
RO
193912011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19392
19393 PR other/45915
19394 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19395 --version output if supported.
19396 * configure: Regenerate.
19397
028dbdf4
JM
193982011-01-06 Joseph Myers <joseph@codesourcery.com>
19399
19400 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19401 Driver options.
19402
dfe776dd
JJ
194032011-01-06 Jakub Jelinek <jakub@redhat.com>
19404
19405 PR c/47150
19406 * c-convert.c (convert): When converting a complex expression
19407 other than COMPLEX_EXPR to a different complex type, ensure
19408 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19409 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19410 when converting COMPLEX_TYPE.
19411
210dedfe
IR
194122011-01-06 Ira Rosen <irar@il.ibm.com>
19413
19414 PR tree-optimization/47139
19415 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19416 only the last reduction value is used outside the loop. Update
19417 documentation.
19418
cd33a412
JM
194192011-01-05 Joseph Myers <joseph@codesourcery.com>
19420
19421 * config/rtems.opt: New.
19422 * config.gcc (*-*-rtems*): Use rtems.opt.
19423
819edd94
CF
194242011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19425
19426 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19427 processors do not support 3DNow instructions.
19428
dc242c4a
UW
194292011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19430
19431 * config/spu/spu.c (spu_option_override): Set parameter
19432 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19433
be286227
JH
194342011-01-05 Jan Hubicka <jh@suse.cz>
19435
19436 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19437 at the command line.
19438
644e637f
MJ
194392011-01-05 Martin Jambor <mjambor@suse.cz>
19440
19441 PR lto/47162
19442 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19443 deltas on streamed outgoing edges.
19444 (output_node_opt_summary): Output info for outgoing edges only when
19445 the node is in new parameter set.
19446 (output_cgraph_opt_summary): New parameter set, passed to the two
19447 aforementioned functions. Update its forward declaration and its
19448 callee too.
19449
7bd11157
TT
194502011-01-05 Tom Tromey <tromey@redhat.com>
19451
19452 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19453 operator to c_finish_omp_atomic.
19454 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19455 (build_unary_op): Update.
19456 (build_modify_expr): Update.
19457 (build_asm_expr): Update.
19458
f626b979
UW
194592011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19460
19461 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19462 newly inserted insns.
19463 (pad_bb): Likewise.
19464 (spu_emit_branch_hint): Likewise.
19465 (insert_hbrp_for_ilb_runout): Likewise.
19466 (spu_machine_dependent_reorg): Call df_finish_pass after
19467 schedule_insns returns.
19468
4c825c02
UW
194692011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19470
19471 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19472
5e9fba51
EB
194732011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19474
19475 PR tree-optimization/47005
19476 * tree-sra.c (struct access): Add 'non_addressable' bit.
19477 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19478 (decide_one_param_reduction): Return 0 if the parameter is passed by
19479 reference and one of the accesses in the group is non_addressable.
19480
3ebb5ca6
EB
194812011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19482
19483 PR tree-optimization/47056
19484 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19485 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19486 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19487
d5d4d14e
EB
194882011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19489
19490 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19491 initializer. Skip view conversions from aggregate types.
19492
d996ef70
KT
194932011-01-04 Kai Tietz <kai.tietz@onevision.com>
19494
19495 PR bootstrap/47055
19496 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19497
509d65dd 194982011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
19499
19500 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19501 obvious typo.
19502
55c623b5
UW
195032011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19504
19505 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19506 on empty epilogue sequences.
19507
b98d6b35
JM
195082011-01-04 Joseph Myers <joseph@codesourcery.com>
19509
19510 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19511 non-static): New Driver options.
19512
a0d43bac
JZ
195132011-01-04 Jie Zhang <jie@codesourcery.com>
19514
19515 PR driver/47137
19516 * gcc.c (default_compilers[]): Set combinable field to 0
19517 for all assembly languages.
19518
2b18eb32
MX
195192011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19520
19521 * config/mips/loongson3a.md: New file.
19522 * config/mips/mips.md: Include loongson3a.md.
19523 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19524 TUNE_LOONGSON_3A.
19525
42a48c4f
EB
195262011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19527
19528 PR middle-end/47017
19529 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19530 instead of convert_memory_address_addr_space on the base expression.
19531
9c1732c4
UW
195322011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19533
19534 * config/spu/spu.c (spu_option_override): Update error text
19535 for bad -march= / -mtune= values.
19536
aa474365
UW
195372011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19538
19539 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19540 if branch-hint optimization will be performed.
19541
9766135b
JJ
195422011-01-03 Jakub Jelinek <jakub@redhat.com>
19543
371556ee
JJ
19544 PR tree-optimization/47148
19545 * ipa-split.c (split_function): Convert arguments to
19546 DECL_ARG_TYPE if possible.
19547
1ac12fa2
JJ
19548 PR tree-optimization/47155
19549 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19550 when computing uns.
19551
9766135b
JJ
19552 PR rtl-optimization/47157
19553 * combine.c (try_combine): If undobuf.other_insn becomes
19554 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19555 and set *new_direct_jump_p too.
19556
f4a2e571
SP
195572011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19558
19559 PR tree-optimization/47021
19560 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19561
9f8e43c0
JJ
195622011-01-03 Jakub Jelinek <jakub@redhat.com>
19563
19564 * gcc.c (process_command): Update copyright notice dates.
19565 * gcov.c (print_version): Likewise.
19566 * gcov-dump.c (print_version): Likewise.
19567 * mips-tfile.c (main): Likewise.
19568 * mips-tdump.c (main): Likewise.
19569
1a2e38f3
MJ
195702011-01-03 Martin Jambor <mjambor@suse.cz>
19571
19572 PR tree-optimization/46801
19573 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19574 aggregate fields start at byte boundary instead of the bit-field flag.
19575
56b721c5
L
195762011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19577
19578 PR driver/47137
19579 * gcc.c (main): Revert revision 168407.
19580
839d549b
MJ
195812011-01-03 Martin Jambor <mjambor@suse.cz>
19582
19583 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19584
4ce99a20 195852011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
19586
19587 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19588 vector optab to expand vector/scalar shift, update gimple to vector.
19589
76df0ae6
MJ
195902011-01-03 Martin Jambor <mjambor@suse.cz>
19591
19592 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19593 a thunk.
19594
ce47fda3
MJ
195952011-01-03 Martin Jambor <mjambor@suse.cz>
19596
19597 PR tree-optimization/46984
19598 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19599 HOST_WIDE_INT.
19600 (cgraph_create_indirect_edge): Fixed line length.
19601 (cgraph_indirect_call_info): Declare.
19602 (cgraph_make_edge_direct) Update declaration.
19603 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19604 (cgraph_create_indirect_edge): Use it.
19605 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19606 callees.
19607 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19608 the new thunk_delta representation.
19609 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19610 HOST_WIDE_INT.
19611 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19612 (ipa_read_indirect_edge_info): Likewise.
19613 * lto-cgraph.c (output_edge_opt_summary): New function.
19614 (output_node_opt_summary): Call it on all outgoing edges.
19615 (input_edge_opt_summary): New function.
19616 (input_node_opt_summary): Call it on all outgoing edges.
19617
1e67fa1f
L
196182011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19619
19620 PR driver/47137
19621 * gcc.c (main): Don't check have_o when settting combine_inputs.
19622
6656b2ac
EB
196232011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19624
19625 * regrename.c: Add general comment describing the pass.
19626 (struct du_head): Remove 'length' field.
19627 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19628 (regrename_optimize): Do not sort chains. Rework comments, add others.
19629 Force renaming to the preferred class (if any) in the first pass and do
19630 not consider registers that belong to it in the second pass.
19631 (create_new_chain): Do not set 'length' field.
19632 (scan_rtx_reg): Likewise.
19633
bc470c24
JJ
196342011-01-02 Jakub Jelinek <jakub@redhat.com>
19635
4e996296
JJ
19636 PR tree-optimization/47140
19637 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19638 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19639 to bit_value_binop.
19640
bc470c24 19641 PR rtl-optimization/47028
6656b2ac
EB
19642 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19643 parm_birth_insn instead of at the beginning of first bb.
bc470c24 19644
5af62fcd 196452011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
19646
19647 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19648 Remove the word "see" before "@pxref".
19649 * doc/rtl.texi: Remove the word "see" before "@pxref".
19650
0e20c89f
JH
196512011-01-01 Jan Hubicka <jh@suse.cz>
19652
6656b2ac
EB
19653 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19654 memory.
0e20c89f 19655
220e83ca
KT
196562011-01-01 Kai Tietz <kai.tietz@onevision.com>
19657
19658 PR target/38662
6656b2ac 19659 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 19660
ad41bd84 19661\f
797103eb 19662Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
19663
19664Copying and distribution of this file, with or without modification,
19665are permitted in any medium without royalty provided the copyright
19666notice and this notice are preserved.