]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
neon.md (vec_set<mode>_internal): Fix misplaced parenthesis in D-register case.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d19eb620
JB
12011-05-05 Julian Brown <julian@codesourcery.com>
2
3 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4 parenthesis in D-register case.
5
c860fe8c
JM
62011-05-05 Joseph Myers <joseph@codesourcery.com>
7
8 * opt-functions.awk (var_type_struct): Handle Enum options.
9 * optc-gen.awk: Don't check range of variables of character type.
10 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
11 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12 rs6000_sdata_name, rs6000_explicit_options): Remove.
13 (rs6000_option_override_internal): Check for -malign-power here.
14 Use global_options_set instead of rs6000_explicit_options.
15 (rs6000_parse_fpu_option): Remove.
16 (rs6000_handle_option): Access variables via opts and opts_set
17 pointers. Use error_at and warning_at. Add fall-through
18 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
19 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
20 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
21 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
22 here. Don't use rs6000_parse_fpu_option.
23 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
24 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
25 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
26 (mrecip=): Use Var.
27 (mspe): Use Var and Save.
28 (mtraceback=): Use Enum and Var.
29 (rs6000_traceback_type): New Enum and EnumValue entries.
30 (mfloat-gprs=): Use Enum, Var and Save.
31 (rs6000_float_gprs): New Enum and EnumValue entries.
32 (mlong-double-): use Var and Save.
33 (msched-costly-dep=, minsert-sched-nops=): Use Var.
34 (malign-): Use Enum and Var.
35 (rs6000_alignment_flags): New Enum and EnumValue entries.
36 (mfpu=): Use Enum.
37 (fpu_type_t): New Enum and EnumValue entries.
38 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
39 global_options_set instead of rs6000_explicit_options.
40 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
41 global_options_set instead of rs6000_explicit_options.
42 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
43 global_options_set instead of rs6000_explicit_options.
44 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
45 global_options_set instead of rs6000_explicit_options.
46 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
47 global_options_set instead of rs6000_explicit_options.
48 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
49 global_options_set instead of rs6000_explicit_options.
50 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
51 definition.
52 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
53 global_options_set instead of rs6000_explicit_options.
54 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
55 (rs6000_cmodel): New Enum and EnumValue entries.
56 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
57 global_options_set instead of rs6000_explicit_options.
58 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
59 (mtls-size=): Use Enum and Var.
60 (rs6000_tls_size): New Enum and EnumValue entries.
61
0691dde9
MM
622011-05-05 Michael Matz <matz@suse.de>
63
64 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
65 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
66 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
67 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
68 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
69 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
70 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
71 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
72 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
73 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
74 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
75 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
76 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
77 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
78 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
79 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
80
86529a49
RG
812011-05-05 Richard Guenther <rguenther@suse.de>
82
83 * expmed.c (expand_variable_shift): Rename to ...
84 (expand_shift_1): ... this. Take an expanded shift amount.
85 For rotates recurse directly not building trees for the shift amount.
86 (expand_variable_shift): Wrap around expand_shift_1.
87 (expand_shift): Adjust.
88
d0228c2e
JJ
892011-05-05 Jakub Jelinek <jakub@redhat.com>
90
91 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
92
907a08d9
EB
932011-05-05 Eric Botcazou <ebotcazou@adacore.com>
94
95 * tree.h (get_pending_sizes): Remove prototype.
96 (put_pending_size): Likewise.
97 (put_pending_sizes): Likewise.
98 * stor-layout.c (pending_sizes): Delete.
99 (get_pending_sizes): Likewise.
100 (put_pending_size): Likewise.
101 (put_pending_sizes): Likewise.
102 (variable_size): Do not call put_pending_size and tidy up.
103 * function.h (struct function): Remove dont_save_pending_sizes_p.
104 * lto-streamer-in.c (input_function): Do not stream it.
105 * lto-streamer-out.c (output_function): Likewise.
106 * tree-inline.c (initialize_cfun): Do not copy it.
107 * c-decl.c (store_parm_decls): Do not set it.
108 * omp-low.c (create_task_copyfn): Likewise.
109 * tree-optimize.c (tree_rest_of_compilation): Likewise.
110
386d9c57
UB
1112011-05-05 Uros Bizjak <ubizjak@gmail.com>
112
113 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
114 conditions.
115 (*movdf_internal): Ditto.
116 (*movdf_internal_nointeger): Ditto.
117 (*movsf_internal): Ditto.
118
a04a722b
JM
1192011-05-05 Joseph Myers <joseph@codesourcery.com>
120
121 * c-decl.c (finish_decl): Don't call get_pending_sizes.
122 (grokparm): Add parameter expr. Pass it to grokdeclarator.
123 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
124 (c_variable_size): Remove.
125 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
126 call put_pending_sizes.
127 (get_parm_info): Add parameter expr. Use it to set
128 arg_info->pending_sizes.
129 (store_parm_decls): Use arg_info->pending_sizes instead or calling
130 get_pending_sizes.
131 * c-parser.c (c_parser_parms_declarator): Update call to
132 c_parser_parms_list_declarator.
133 (c_parser_parms_list_declarator): Take parameter expr. Update
134 call to push_parm_decl. Update recursive call. Don't call
135 get_pending_sizes. Update calls to get_parm_info.
136 (c_parser_objc_method_definition): Update calls to
137 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 138 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
139 (c_parser_objc_method_decl): Add parameter expr. Update call to
140 grokparm.
386d9c57 141 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
142 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
143 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
144
c92a6f97
MH
1452011-05-05 Michael Hope <michael.hope@linaro.org>
146
386d9c57
UB
147 PR pch/45979
148 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
149 __ARM_EABI__ hosts.
c92a6f97 150
07ea0048
UW
1512011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
152
153 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
154 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
155 (spu_output_mi_thunk): New function.
156
d634bfa1
RO
1572011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
158
159 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
160 targetm.asm_out.print_operand.
161 * config/sol2.c: Include target.h.
162
40fda55b
JH
1632011-05-04 Jan Hubicka <jh@suse.cz>
164
165 * ipa-inline.c (reset_edge_caches): New function.
166 (update_caller_keys): Add check_inlinablity_for; do not
167 reset edge caches; remove now unnecesary loop.
386d9c57 168 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
169 (update_all_callee_keys): Likewise.
170 (inline_small_functions): Sanity check cache; update code
171 recomputing it.
172
0360f70d
BS
1732011-05-04 Bernd Schmidt <bernds@codesourcery.com>
174
175 PR rtl-optimization/47612
176 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
177 as the last insn of the sequence to be moved.
178
7a994646
TB
1792011-05-04 Tobias Burnus <burnus@net-b.de>
180
181 PR fortran/48864
182 * doc/invoke.texi (Ofast): Document that it
183 enables Fortran's -fno-protect-parens.
184
7a2f7208
UB
1852011-05-04 Uros Bizjak <ubizjak@gmail.com>
186
187 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
188
a2d42931
EB
1892011-05-04 Eric Botcazou <ebotcazou@adacore.com>
190
191 * stor-layout.c (variable_size): Do not issue errors.
192
f81b1a3d
RG
1932011-05-04 Richard Guenther <rguenther@suse.de>
194
195 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
196 for array-ref indices.
197 (tree_coverage_counter_addr): Likewise.
198 (build_fn_info_type): Use size_int for index types.
199 (build_gcov_info): Likewise.
200
c62c040f
RG
2012011-05-04 Richard Guenther <rguenther@suse.de>
202
203 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
204 to build_int_cst.
205 * c-typeck.c (really_start_incremental_init): Use bitsize_int
206 for constructor indices.
207 (push_init_level): Likewise.
208
1e3287d0
RG
2092011-05-04 Richard Guenther <rguenther@suse.de>
210
211 * explow.c (promote_mode): Move variable declarations before code.
212
6c32445b
NF
2132011-05-04 Nathan Froyd <froydnj@codesourcery.com>
214
215 * tree.h (build_function_type_array): Declare.
216 (build_varargs_function_type_array): Declare.
217 (build_function_type_vec, build_varargs_function_type_vec): Define.
218 * tree.c (build_function_type_array_1): New function.
219 (build_function_type_array): New function.
220 (build_varargs_function_type_array): New function.
221
fdabf269
RS
2222011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
223
224 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
225 before setting STMT_VINFO_TYPE.
226
a207915a
UW
2272011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
228
229 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
230 instead of spu_pass_by_reference.
231
5e617be8
AK
2322011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
233
234 * calls.c (emit_library_call_value_1): Invoke
235 promote_function_mode hook on libcall arguments.
236 * explow.c (promote_function_mode, promote_mode): Handle TYPE
237 argument being NULL.
238 * targhooks.c (default_promote_function_mode): Lisewise.
239 * config/s390/s390.c (s390_promote_function_mode): Likewise.
240 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
241
242 * doc/tm.texi: Document that TYPE argument might be NULL.
243
486d04be
SH
2442011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
245
246 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
247
9b19b026
SH
2482011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
249
250 From Bernd Schmidt
251 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
252
502bc3df
RO
2532011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
254
255 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
256 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
257 Move ...
258 * mips-tfile.c: ... here.
259 Don't include coretypes.h, tm.h, filenames.h.
260 (saber_stop): Remove definition and all calls.
261 [__SABER__]: Remove.
262 (__LINE__): Remove default.
263 (Size_t, Ptrdiff_t): Remove definitions.
264 Replace by size_t, ptrdiff_t.
265 [!MIPS_DEBUGGING_INFO]: Remove.
266 (SHASH_SIZE, THASH_SIZE): Remove defaults.
267 (progname): Add const.
268 (STATIC): Remove.
269 Replace all uses by static.
270 (ALIGN_SYMTABLE_OFFSET): Remove default.
271 * mips-tdump.c: Don't include coretypes.h, tm.h.
272 Remove !MIPS_IS_STAB guard.
273 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
274 $(TM_H), filenames.h dependencies.
275 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
276
991eb6ef
SH
2772011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
278
279 From Jie Zhang
280 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
281 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
282
420ccc84
SH
2832011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
284
285 From Bernd Schmidt
286 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
287 account and save/restore RETS.
288 (PROFILE_BEFORE_PROLOGUE): Define.
289 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
290 the push insn to use predecrement.
291
9f8d69ee
SH
2922011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
293
294 From Jie Zhang
295 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
296
662c03f4
NC
2972011-05-04 Nick Clifton <nickc@redhat.com>
298
299 * config/mn10300/mn10300.c: Include cfgloop.h.
300 (DUMP): New macro.
301 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
302 Lcc or a FLcc insn into the instruction stream.
303 (mn10300_block_contains_call): New function. Returns true if the
304 given basic block contains a CALL insn.
305 (mn10300_loop_contains_call_insn): New function. Returns true if
306 the given loop contains a CALL insn.
307 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
308 to use the SETLB and Lcc or FLcc insns.
309 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
310 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
311 * config/mn10300/mn10300.opt (msetlb): New option. Used to
312 disable the SETLB optimization.
313 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
314 __SETLB__ or __NO_SETLB__.
315 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
316 (movsf_internal): Handle MDR register.
317 (cmpsi): Make visible.
318 (setlb): New pattern.
319 (Lcc): New pattern.
320 (FLcc): New pattern.
321
843b6915
UB
3222011-05-04 Uros Bizjak <ubizjak@gmail.com>
323
324 PR target/48860
325 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
326 for reg<->xmm moves.
327 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
328 (vec_concatv2di_rex64_sse): Ditto.
329 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
330 (*vec_extractv2di_1_rex64): Ditto.
331
332 Revert:
333 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
334
335 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
336 reg<->xmm moves.
337 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
338
d35936ab
RG
3392011-05-04 Richard Guenther <rguenther@suse.de>
340
341 * tree.h (int_const_binop): Remove notrunc argument.
342 * fold-const.c (int_const_binop): Remove notrunc argument. Always
343 create integer constants that are properly truncated.
344 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
345 (const_binop): Remove zero notrunc argument to int_const_binop.
346 (size_binop_loc): Likewise.
347 (fold_div_compare): Likewise.
348 (maybe_canonicalize_comparison_1): Likewise.
349 (fold_comparison): Likewise.
350 (fold_binary_loc): Likewise.
351 (multiple_of_p): Likewise.
352 * expr.c (store_constructor): Likewise.
353 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
354 (maybe_fold_stmt_addition): Likewise.
355 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
356 * stor-layout.c (layout_type): Likewise.
357 * tree-data-ref.c (tree_fold_divides_p): Likewise.
358 * tree-sra.c (build_ref_for_offset): Likewise.
359 (build_user_friendly_ref_for_offset): Likewise.
360 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
361 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
362 * tree-ssa-loop-niter.c (inverse): Likewise.
363 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
364 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
365 * tree-switch-conversion.c (check_range): Likewise.
366 (build_constructors): Likewise.
367 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
368 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
369 (extract_range_from_assert): Likewise.
370 (vrp_int_const_binop): Likewise.
371 (extract_range_from_binary_expr): Likewise.
372 (extract_range_from_unary_expr): Likewise.
373 (check_array_ref): Likewise.
374 (find_case_label_range): Likewise.
375 (simplify_div_or_mod_using_ranges): Likewise.
376 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
377 comparing case labels for merging.
378
8992c063
MW
3792011-05-03 Mark Wielaard <mjw@redhat.com>
380
381 * dwarf2out.c (debug_str_hash_forced): Removed.
382 (gen_label_for_indirect_string): Removed.
383 (get_debug_string_label): Removed.
384 (AT_string_form): Generate label directly.
385 (output_indirect_string): Test indirect_string_node for
386 DW_FORM_strp instead of checking label and refcount.
387 (prune_indirect_string): Removed.
388 (prune_unused_types): Don't check debug_str_hash_forced or
389 call prune_indirect_string.
390
4868e6ea
AO
3912011-05-04 Alexandre Oliva <aoliva@redhat.com>
392
393 PR other/48093
394 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
395
01a5c0ab
AO
3962011-05-04 Alexandre Oliva <aoliva@redhat.com>
397
398 PR debug/47994
399 PR debug/47919
400 * combine.c (try_combine): Skip debug insns at m_split tests.
401
6ac00218
MW
4022011-04-26 Mark Wielaard <mjw@redhat.com>
403
404 PR42288
405 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
406 when info_section_emitted.
407
3af42a7b
JM
4082011-05-03 Joseph Myers <joseph@codesourcery.com>
409
410 * config/mips/mips-opts.h: New.
411 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
412 to mips-opts.h.
413 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
414 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
415 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
416 via opts pointer.
417 * config/mips/mips.h (enum mips_code_readable_setting): Move to
418 mips-opts.h.
419 (mips_abi, mips_code_readable): Don't declare.
843b6915 420 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
421 (mabi=): Use Enum and Var.
422 (mips_abi): New Enum and EnumValue entries.
423 (mcode-readable=): Use Enum and Var.
424 (mips_code_readable_setting): New Enum and EnumValue entries.
425 (mr10k-cache-barrier=): Use Enum and Var.
426 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
427
1cb1a99f
JH
4282011-05-03 Jan Hubicka <jh@suse.cz>
429
430 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
431 replace hash by pointer map.
432 (cgraph_node_set_element_def, cgraph_node_set_element,
433 const_cgraph_node_set_element, varpool_node_set_element_def,
434 varpool_node_set_element, const_varpool_node_set_element): Remove.
435 (free_cgraph_node_set, free_varpool_node_set): New function.
436 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
437 * tree-emutls.c: Free varpool node set.
438 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
439 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
440 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
441 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
442 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
443 Move here from ipa.c; implement using pointer_map
444 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
445 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
446 debug_cgraph_node_set, varpool_node_set_new,
447 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
448 dump_varpool_node_set, debug_varpool_node_set):
449 Move to ipa-uitls.c.
450 * passes.c (ipa_write_summaries): Update.
451
7f31f4db
SH
4522011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
453
7a2f7208
UB
454 From Mike Frysinger:
455 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
456 bf542/bf544/bf547/bf548/bf549.
7f31f4db 457
b70fce6d
UB
4582011-05-03 Uros Bizjak <ubizjak@gmail.com>
459
460 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
461
265b1d82
SH
4622011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
463
464 From Bernd Schmidt:
465 * config/bfin/bfin.md (MOVCC): New mode_macro.
466 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
467 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
468 comments from generated assembly.
469
f0b568f3
SH
4702011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
471
472 From Bernd Schmidt
473 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
474 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
475 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
476 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
477 * config/bfin/lib1funcs.asm (___muldi3): New function.
478
2c67cf6e
NF
4792011-05-03 Nathan Froyd <froydnj@codesourcery.com>
480
481 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
482 build_function_type_list instead of build_function_type.
483 Rearrange initialization of `args' to do so.
484
f9ac28ad
NF
4852011-05-03 Nathan Froyd <froydnj@codesourcery.com>
486
487 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
488 instead of build_function_type.
489
22b8798c
NF
4902011-05-03 Nathan Froyd <froydnj@codesourcery.com>
491
492 * config/rs6000/rs6000.c (spe_init_builtins): Call
493 build_function_type_list instead of build_function_type.
494 (paired_init_builtins, altivec_init_builtins): Likewise.
495 (builtin_function_type): Likewise.
496
4cb44528
NF
4972011-05-03 Nathan Froyd <froydnj@codesourcery.com>
498
499 * config/sh/sh.c (sh_media_init_builtins): Call
500 build_function_type_list instead of build_function_type.
501
4c203a6a
NF
5022011-05-03 Nathan Froyd <froydnj@codesourcery.com>
503
504 * config/sparc/sparc.c (sparc_file_end): Call
505 build_function_type_list instead of build_function_type.
506
d6a3d62b
NF
5072011-05-03 Nathan Froyd <froydnj@codesourcery.com>
508
509 * config/alpha/alpha.c (alpha_init_builtins): Call
510 build_function_type_list instead of build_function_type.
511
de530b86
NF
5122011-05-03 Nathan Froyd <froydnj@codesourcery.com>
513
514 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
515 build_function_type_list instead of build_function_type.
516
baeec5f2
NF
5172011-05-03 Nathan Froyd <froydnj@codesourcery.com>
518
519 * config/iq2000/i2000.c (iq2000_init_builtins): Call
520 build_function_type_list instead of build_function_type.
521 Delete `endlink' variable.
522
c19afe52
NF
5232011-05-03 Nathan Froyd <froydnj@codesourcery.com>
524
525 * config/avr/avr.c (avr_init_builtins): Call
526 build_function_type_list instead of build_function_type.
527
a341df0a
NF
5282011-05-03 Nathan Froyd <froydnj@codesourcery.com>
529
530 * config/picochip/picochip.c (picochip_init_builtins): Call
531 build_function_type_list instead of build_function_type.
532 Delete `endlink' variable.
533
2102b1e1
NF
5342011-05-03 Nathan Froyd <froydnj@codesourcery.com>
535
536 * config/bfin/bfin.c (bfin_init_builtins): Call
537 build_function_type_list instead of build_function_type.
538
9f111209
SH
5392011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
540
541 From Bernd Schmidt
542 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
543 that's not CONST_INT. Seemingly redundant check is due to PR39768.
544
7071d064
SH
5452011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
546
547 From Jie Zhang:
548 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
549 libbffastfp overrides libgcc when -mfast-fp.
550
44fb48ef
SH
5512011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
552
553 Originally from Bernd Schmidt
554 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
555 * config/bfin/bfin.c (override_options): Test it and error if
556 TARGET_FDPIC.
557
1a3a9152
SH
5582011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
559
560 Originally From Bernd Schmidt
561 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
562 FD-PIC.
563
7134c090
JL
5642011-05-03 Jeff Law <law@redhat.com>
565
566 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
567 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
568 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
569 than accessing AUX field directly. Free the AUX field before
570 clearing it.
7134c090
JL
571 (thread_block, thread_through_loop_header): Likewise.
572 (thread_single_edge, mark_threaded_blocks): Likewise.
573 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
574 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 575
2c7eebae
BS
5762011-05-03 Bernd Schmidt <bernds@codesourcery.com>
577
578 * function.c (init_function_start): Call decide_function_section.
579 * varasm.c (decide_function_section): New function.
580 (assemble_start_function): When not using
581 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
582 or first_function_block_is_cold.
583 * rtl.h (decide_function_section): Declare.
584
17038fcf
JJ
5852011-05-03 Uros Bizjak <ubizjak@gmail.com>
586 Jakub Jelinek <jakub@redhat.com>
587
588 PR target/48774
589 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
590 only succeed if req_mode is the same as set_mode.
591
3810076b
BS
5922011-05-03 Bernd Schmidt <bernds@codesourcery.com>
593
594 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
595 * genemit.c (gen_exp): Handle RETURN.
596 * emit-rtl.c (verify_rtx_sharing): Likewise.
597 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
598 * rtl.c (copy_rtx): RETURN is shared.
599 * rtl.h (enum global_rtl_index): Add GR_RETURN.
600 (ret_rtx): New.
601 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
602 * config/s390/s390.c (s390_emit_epilogue): Likewise.
603 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
604 * config/cris/cris.c (cris_expand_return): Likewise.
605 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
606 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
607 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
608 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
609 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
610 Likewise.
611 * config/v850/v850.c (expand_epilogue): Likewise.
612 * config/bfin/bfin.c (bfin_expand_call): Likewise.
613 * config/arm/arm.md (epilogue): Likewise.
614 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
615 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
616 variable to ret_reg.
617
9efdb4ad
RG
6182011-05-03 Richard Guenther <rguenther@suse.de>
619
620 PR lto/48846
621 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
622 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
623 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
624
60a45536
RG
6252011-05-03 Richard Guenther <rguenther@suse.de>
626
627 * c-decl.c (grokdeclarator): Instead of looking at
628 TREE_OVERFLOW check if the constant fits in the index type.
629
3188ed59
RS
6302011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
631
632 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
633 (vec_store_lanes<mode><mode>): Likewise.
634
272c6793
RS
6352011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
636
637 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
638 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
639 convert_optab_index values.
640 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
641 * genopinit.c (optabs): Initialize the new optabs.
642 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
643 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
644 (expand_STORE_LANES): New functions.
645 * tree.h (build_array_type_nelts): Declare.
646 * tree.c (build_array_type_nelts): New function.
647 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
648 (vect_model_load_cost): Likewise.
649 (vect_store_lanes_supported, vect_load_lanes_supported)
650 (vect_record_strided_load_vectors): Declare.
651 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
652 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
653 (vect_transform_strided_load): Split out statement recording into...
654 (vect_record_strided_load_vectors): ...this new function.
655 * tree-vect-stmts.c (create_vector_array, read_vector_array)
656 (write_vector_array, create_array_ref): New functions.
657 (vect_model_store_cost): Add store_lanes_p argument.
658 (vect_model_load_cost): Add load_lanes_p argument.
659 (vectorizable_store): Try to use store-lanes functions for
660 interleaved stores.
661 (vectorizable_load): Likewise load-lanes and loads.
662 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
663 to vect_model_store_cost.
664 (vect_build_slp_tree): Likewise vect_model_load_cost.
665
0f6d54f7
RS
6662011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
667
668 * hooks.h (hook_bool_mode_uhwi_false): Declare.
669 * hooks.c (hook_bool_mode_uhwi_false): New function.
670 * target.def (array_mode_supported_p): New hook.
671 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
672 * doc/tm.texi: Regenerate.
673 * stor-layout.c (mode_for_array): New function.
674 (layout_type): Use it.
675 * config/arm/arm.c (arm_array_mode_supported_p): New function.
676 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
677
b15eacc7
EB
6782011-05-03 Eric Botcazou <ebotcazou@adacore.com>
679
680 PR target/48723
681 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
682 for -fstack-check if the size to allocate is negative.
683
575bfb00
LC
6842011-05-02 Lawrence Crowl <crowl@google.com>
685
686 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
687 (timevar_cond_start): New for starting a timer only when it is not
688 already running.
689 (timevar_cond_stop): New for stopping a timer when it was not already
690 running.
691
692 * timevar.c (timevar_stop): Enable start/stop timers to start again.
693 (timevar_cond_start): New as above.
694 (timevar_cond_stop): New as above.
695
696 * timevar.def: Add start/stop timers for compiler phases,
697 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
698 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
699 and TV_PHASE_FINALIZE.
700 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
701 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
702 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
703 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
704 Make unused TV_OVERLOAD into a start/stop timer.
705
706 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
707 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
708 to indicate that they are start/stop timers.
709
710 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
711 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
712 Move initialization to do_compile.
713 (do_compile): Add initialization from above.
714 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
715
716 * c-decl.c (c_write_global_declarations): Add start/stop of
717 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
718
719 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
720 or TV_PARSE_INLINE, as appropriate.
721 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
722 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
723
3533b943
JM
7242011-05-02 Jason Merrill <jason@redhat.com>
725
726 PR c++/40975
727 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
728
2609a0ce
SM
7292011-05-02 Simon Martin <simartin@users.sourceforge.net>
730
731 PR c/35445
732 * c-decl.c (finish_decl): Only create a composite if the types are
733 compatible.
734
6b0e4cbb
JM
7352011-05-02 Joseph Myers <joseph@codesourcery.com>
736
737 * config/fr30/fr30-protos.h (Mmode): Don't define.
738 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
739 definition where used.
740 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
741 define. Expand definitions where used.
742 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
743 Expand definitions where used.
744 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
745 rx_function_arg, rx_function_arg_advance,
746 rx_function_arg_boundary): Expand definitions of those macros.
747 * config/v850/v850-protos.h (Mmode): Don't define. Expand
748 definition where used.
749
4e938ce6
UB
7502011-05-02 Uros Bizjak <ubizjak@gmail.com>
751
752 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
753 reg<->xmm moves.
754 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
755 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
756 with *movv2sf_internal_rex64_avx.
757 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
758 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
759 Use %v prefix in insn mnemonic to handle TARGET_AVX.
760 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
761 "vex" in "prefix" attribute calculation.
762 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
763
36019c19
SH
7642011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
765
7a2f7208
UB
766 PR target/47951
767 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
768 inputs match the output.
36019c19 769
f69ea688
AS
7702011-05-02 Andreas Schwab <schwab@linux-m68k.org>
771
772 PR target/47955
773 * config/m68k/m68k.c (m68k_expand_prologue): Set
774 current_function_static_stack_size.
775
c33406f5
JH
7762011-05-02 Jan Hubicka <jh@suse.cz>
777
778 * lto-streamer.c (lto_streamer_cache_insert_1,
779 lto_streamer_cache_lookup, lto_streamer_cache_create,
780 lto_streamer_cache_delete): Use pointer map instead of hashtable.
781 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
782
47c94d21
JM
7832011-05-02 Joseph Myers <joseph@codesourcery.com>
784
785 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
786 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
787 config/m68k/t-opts: New files.
788 * config/m68k/m68k-tables.opt: New file (generated).
789 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
790 extra_options and m68k/t-opts to tmake_file.
791 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
792 (all_isas): Initialize using m68k-isas.def.
793 (all_microarchs): Initialize using m68k-microarchs.def.
794 (m68k_find_selection): Remove.
795 (m68k_handle_option): Don't assert that global structures are in
796 use. Use error_at. Access variables via opts pointer. Don't
797 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
798 directly for -m68020-40 and -m68020-60.
799 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
800 m68k_tune_entry here.
801 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
802 to m68k-opts.h.
803 (m68k_library_id_string): Remove declaration.
4e938ce6 804 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
805 (m68k_library_id_string): New Variable.
806 (march=, mcpu=, mtune=): Use Enum and Var.
807
e562bf36
RG
8082011-05-02 Richard Guenther <rguenther@suse.de>
809
810 * varasm.c (output_constructor_regular_field): Compute zero-based
811 index with double-ints. Make sure to ICE instead of producing
812 wrong code.
813 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
814 in asserts. Properly use a signed type.
815
6bec6c98
UB
8162011-05-02 Uros Bizjak <ubizjak@gmail.com>
817
818 * config/i386/sse.md (V): New mode iterator.
819 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
820 TARGET_SSE2.
821 (V_256): Rename from AVX256MODE.
822 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
823 condition to all users.
824 (VF1): Ditto.
825 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
826 condition to all users.
827 (VF_128): Make V4SF mode unconditional.
828 (VF_256): Rename from AVX256MODEF2P.
829 (VI4F_128): Rename from SSEMODE4S.
830 (VI8F_128): Rename from SSEMODE2D.
831 (VI4F_256): Rename from AVX256MODE8P.
832 (VI8F_256): Rename from AVX256MODE4P.
833 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
834 (ssescalarmodesuffix): Remove SF and DF modes.
835 (SSEMODE124): Remove.
836 (SSEMODE1248): Ditto.
837 (SSEMODEF2P): Ditto.
838 (AVXMODEF2P): Ditto.
839 (AVXMODEFDP): Ditto.
840 (AVXMODEFSP): Ditto.
841 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
842 unconditional.
843 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
844 unconditional.
845 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
846 xop_pcmov_<mode>256. Use V mode iterator.
847
848 Adjust RTX patterns globally for renamed mode attributes.
849
2dfdcb4b
UW
8502011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
851
852 * haifa-sched.c (sched_emit_insn): Emit insn before first
853 non-scheduled insn. Inform back-end about new insn. Add
854 new insn to scheduled_insns list.
855
90bc4623
RG
8562011-05-02 Richard Guenther <rguenther@suse.de>
857
858 PR tree-optimization/48822
859 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
860 (process_scc): Indicate which iteration we start.
861
bc0fe8cb
JH
8622011-05-02 Jan Hubicka <jh@suse.cz>
863
864 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
865 (lto_section_overrun): New.
866 * lto-section-out.c (append_block): Rename to ...
867 (lto_append_block): ... this one; export.
868 (lto_output_1_stream): Move lto lto-streamer.h
869 (lto_output_data_stream): Update.
870 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
871 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
872 functions.
873
f070a9d1
RG
8742011-05-02 Richard Guenther <rguenther@suse.de>
875
876 * tree.c (tree_code_counts): New global array.
877 (record_node_allocation_statistics): Count individual tree codes.
878 (dump_tree_statistics): Dump individual code stats.
879
09dfe187
JH
8802011-05-01 Jan Hubicka <jh@suse.cz>
881
882 * ipa-inline.c (caller_growth_limits): Fix thinko when
883 looking for largest stack frame.
884 * ipa-inline.h (dump_inline_summary): Declare.
885 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
886 on stack usage.
887 (dump_inline_summary): Export.
888 (debug_inline_summary): Declare as DEBUG_FUNCTION.
889
6f76a878
AS
8902011-05-01 Anatoly Sokolov <aesok@post.ru>
891
892 * reginfo.c (memory_move_cost): Change rclass argument type form
893 'enum reg_class' to reg_class_t.
894 * reload.h (memory_move_cost): Update prototype.
895 * postreload.c reload_cse_simplify_set): Change type dclass var to
896 reg_class_t.
897 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
898 Update prototype.
899 (ira_allocate_and_set_costs): Change aclass argument type form
900 'enum reg_class' to reg_class_t.
6bec6c98 901 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
902 Change aclass argument type to reg_class_t.
903 (update_conflict_hard_reg_costs): Change type aclass and pref vars
904 to reg_class_t.
905 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
906 memory_move_cost call.
907
908 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
909 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
910 Change type tmp var to reg_class_t.
911
9a4ac625
JH
9122011-04-30 Jan Hubicka <jh@suse.cz>
913
914 * ipa-inline.c (can_inline_edge_p): Disregard limits when
915 inlining into function with flatten attribute.
916 (want_inline_small_function_p): Be more realistic about inlining
917 cold calls where callee size grows.
918
dd8352ee
JH
9192011-04-30 Jan Hubicka <jh@suse.cz>
920
921 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
922 flags.
923
46e43d2b
AS
9242011-04-30 Anatoly Sokolov <aesok@post.ru>
925
926 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
927 PRINT_OPERAND_PUNCT_VALID_P): Remove.
928 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
929 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
930 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
931 (print_operand): Rename to...
932 (sparc_print_operand): ...this. Make static. Adjust
933 sparc_print_operand function call.
934 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
935 functions.
936
ecb62563
JH
9372011-04-30 Jan Hubicka <jh@suse.cz>
938
6bec6c98 939 PR middle-end/48752
ecb62563
JH
940 * ipa-inline.c (early_inliner): Disable when doing late
941 addition of function.
942
edb9b69e
JJ
9432011-04-30 Jakub Jelinek <jakub@redhat.com>
944
be80a87e
JJ
945 * dwarf2out.c (get_address_mode): New inline.
946 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
947 if not dwarf_strict emit
948 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
949 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
950 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
951 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
952 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
953 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
954 mem_loc_descriptor callers.
955 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
956 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
957 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
958 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
959 (base_types): New variable.
960 (get_base_type_offset, calc_base_type_die_sizes,
961 base_type_for_mode, mark_base_types, base_type_cmp,
962 move_marked_base_types): New functions.
963 (calc_die_sizes): Assert that die_offset is 0 or equal to
964 next_die_offset.
965 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
966 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
967 callers. If not dwarf_strict, call mem_loc_descriptor even for
968 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
969 (gen_subprogram_die): Don't give up on call site parameters
970 with non-integral or large integral modes. Adjust
971 mem_loc_descriptor callers.
972 (prune_unused_types): Call prune_unused_types_mark on base_types
973 vector entries.
974 (resolve_addr): Call mark_base_types.
975 (dwarf2out_finish): Call move_marked_base_types.
976
edb9b69e
JJ
977 PR tree-optimization/48809
978 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
979 type.
980 (gen_inbound_check): Don't compute index_expr - range_min in utype
981 again, instead reuse SSA_NAME initialized in build_arrays.
982 Remove two useless gsi_for_stmt calls.
983
a6545a3d
JL
9842011-04-29 Jeff Law <law@redhat.com>
985
986 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
987
af8bca3c
MJ
9882011-04-29 Martin Jambor <mjambor@suse.cz>
989
990 * cgraph.h (cgraph_postorder): Remove declaration.
991 * ipa-utils.h (ipa_free_postorder_info): Declare.
992 (ipa_reverse_postorder): Likewise.
993 * cgraphunit.c: Include ipa-utils.h.
994 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
995 * ipa-inline.c: Include ipa-utils.h.
996 (ipa_inline): Update call to ipa_reverse_postorder.
997 * ipa-pure-const.c (propagate_pure_const): Update call to
998 ipa_reduced_postorder and ipa_print_order. Call
999 ipa_free_postorder_info to clean up.
1000 (propagate_nothrow): Likewise.
1001 * ipa-reference.c (propagate): Removed a useless call to
1002 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1003 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1004 * ipa.c: Include ipa-utils.h.
1005 (ipa_profile): Update call to ipa_reverse_postorder.
1006 (cgraph_postorder): Moved to...
1007 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1008 (ipa_utils_print_order): Renamed to ipa_print_order.
1009 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1010 comments.
1011 (ipa_free_postorder_info): New function.
1012 * passes.c: Include ipa-utils.h.
1013 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1014 (ipa_write_summaries): Likewise.
1015 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1016 (cgraphunit.o): Likewise.
1017 (ipa.o): Likewise.
1018 (ipa-inline.o): Likewise.
1019
b15c64ee
JH
10202011-04-29 Jan Hubicka <jh@suse.cz>
1021
1022 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1023 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1024 * ipa-inline.h (clause_t): Turn into unsigned int.
1025 * ipa-inline-analysis.c (add_clause): Do more simplification.
1026 (and_predicates): Shortcut more cases.
1027 (predicates_equal_p): Move forward; check that clauses are properly
1028 ordered.
1029 (or_predicates): Shortcut more cases.
1030 (edge_execution_predicate): Rewrite as...
1031 (set_cond_stmt_execution_predicate): ... this function; handle
1032 __builtin_constant_p.
1033 (set_switch_stmt_execution_predicate): New .
1034 (compute_bb_predicates): New.
1035 (will_be_nonconstant_predicate): Update TODO.
1036 (estimate_function_body_sizes): Use compute_bb_predicates
1037 and free them later, always try to estimate if stmt is constant.
1038 (estimate_time_after_inlining, estimate_size_after_inlining):
1039 Gracefully handle optimized out edges.
1040 (read_predicate): Fix off by one error.
1041
a88fdc2a
NP
10422011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1043
1044 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1045
d984c8ef
XDL
10462011-04-27 Xinliang David Li <davidxl@google.com>
1047
1048 * tree-profile.c (init_ic_make_global_vars): Set
1049 tls attribute on ic vars.
1050 * coverage.c (coverage_end_function): Initialize
1051 function_list with zero.
1052
45a2c477
RG
10532011-04-29 Richard Guenther <rguenther@suse.de>
1054
1055 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1056 for the type of the result.
1057 (fold_builtin_isascii): Likewise.
1058 (fold_builtin_toascii): Use integer_type_node where appropriate.
1059 (fold_builtin_logb): Likewise.
1060 (fold_builtin_frexp): Likewise.
1061 (fold_builtin_strstr): Likewise.
1062 (fold_builtin_strpbrk): Likewise.
1063 (fold_builtin_fputs): Likewise.
1064 (fold_builtin_sprintf): Likewise.
1065 (fold_builtin_snprintf): Likewise.
1066 (fold_builtin_printf): Likewise.
1067 (do_mpfr_remquo): Use a proper type for the assigned constant.
1068 (do_mpfr_lgamma_r): Likewise.
1069 * dwarf2out.c (resolve_one_addr): Use size_int.
1070 * except.c (init_eh): Likewise.
1071 (assign_filter_values): Use integer_type_node for filter values.
1072 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1073 indices.
1074 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1075 for EH region numbers.
1076 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1077 for the shift amount.
1078
eb6c3df1
RG
10792011-04-29 Richard Guenther <rguenther@suse.de>
1080
1081 * expr.h (expand_shift): Rename to ...
1082 (expand_variable_shift): ... this.
1083 (expand_shift): Take a constant shift amount.
1084 * expmed.c (expand_shift): Rename to ...
1085 (expand_variable_shift): ... this.
1086 (expand_shift): New wrapper around expand_variable_shift.
1087 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1088 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1089 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1090 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1091 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1092 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1093 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1094 emit_store_flag_1, emit_store_flag): Likewise.
1095 * builtins.c (expand_builtin_signbit): Likewise.
1096 * calls.c (load_register_parameters): Likewise.
1097 * function.c (assign_parm_setup_block): Likewise.
1098 * lower-subreg.c (resolve_shift_zext): Likewise.
1099 * optabs.c (widen_bswap, expand_abs_nojump,
1100 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1101 * spu/spu.c (spu_expand_extv): Likewise.
1102 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1103
9f616812
RG
11042011-04-29 Richard Guenther <rguenther@suse.de>
1105
1106 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1107 for the remapped region number.
1108 * predict.c (build_predict_expr): Use integer_type_node for the
1109 predict kind.
1110 * fold-const.c (fold_binary_loc): Use integer_type_node for
1111 the shift amount. Use a proper type for the PLUS_EXPR operand.
1112
b823cdfe
MM
11132011-04-29 Michael Matz <matz@suse.de>
1114
1115 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1116 other trees that just builtins.
1117 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1118
413581ba
RG
11192011-04-29 Richard Guenther <rguenther@suse.de>
1120
1121 * tree-nested.c (get_trampoline_type): Use size_int.
1122 (get_nl_goto_field): Likewise.
1123 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1124 for all indexes.
1125 (lower_eh_constructs_2): Likewise.
1126 (lower_resx): Likewise.
1127 (lower_eh_dispatch): Likewise.
1128 * tree-mudflap.c (mf_build_string): Use size_int.
1129 (mudflap_register_call): Use integer_type_node for the flag.
1130 (mudflap_enqueue_constant): Use size_int.
1131 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1132 instead of rebuilding it.
1133
5c04e9f4
RG
11342011-04-29 Richard Guenther <rguenther@suse.de>
1135
1136 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1137 Handle OBJ_TYPE_REF.
1138 (find_func_aliases_for_call): Use it more consistently.
1139
5c24671b
AO
11402011-04-29 Alexandre Oliva <aoliva@redhat.com>
1141
1142 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1143 (rank_for_schedule): Use it.
1144 (schedule_block): Set it.
1145
10adac51
XDL
11462011-04-28 David Li <davidxl@google.com>
1147
1148 * tree.c (crc32_string): Use crc32_byte.
1149 (crc32_byte): New function.
1150 * tree.h (crc32_byte): New function.
1151 * gcov.c (read_graph_file): Handle new cfg_cksum.
1152 (read_count_file): Ditto.
1153 * profile.c (instrument_values): Ditto.
1154 (get_exec_counts): Ditto.
1155 (read_profile_edge_counts): Ditto.
1156 (compute_branch_probabilities): Ditto.
1157 (compute_value_histograms): Ditto.
1158 (branch_prob): Ditto.
1159 (end_branch_prob): Ditto.
1160 * coverage.c (read_counts_file): Ditto.
1161 (get_coverage_counts): Ditto.
1162 (tree_coverage_counter_addr): Ditto.
1163 (coverage_checksum_string): Ditto.
1164 (coverage_begin_output): Ditto.
1165 (coverage_end_function): Ditto.
1166 (build_fn_info_type): Ditto.
1167 (build_fn_info_value): Ditto.
1168 * libgcov.c (gcov_exit): Ditto.
1169 * gcov-dump.c (tag_function): Ditto.
1170 (compute_checksum): Remove.
1171
5d6358a5
AM
11722011-04-29 Alan Modra <amodra@gmail.com>
1173
1174 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1175 unspec plus offset. Tidy macho code.
1176
85ad2ef5
MJ
11772011-04-29 Martin Jambor <mjambor@suse.cz>
1178
1179 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1180 node instead of a decl. Update all callers.
1181 * cgraph.h: Update declaration.
1182
437f4a00
IR
11832011-04-28 Ira Rosen <ira.rosen@linaro.org>
1184
1185 PR tree-optimization/48765
1186 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1187 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1188 to indicate if loop aware SLP is being used. Scan the statements
1189 and update the vectorization factor according to the type of
1190 vectorization before statement analysis.
1191 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1192 pass it to vect_analyze_loop_operations.
1193 (vectorizable_reduction): Set number of copies to 1 in case of pure
1194 SLP statement.
1195 * tree-vect-stmts.c (vectorizable_conversion,
1196 vectorizable_assignment, vectorizable_shift,
1197 vectorizable_operation, vectorizable_type_demotion,
1198 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1199 Likewise.
1200 (vectorizable_condition): Move the check that it is not SLP
1201 vectorization before the number of copies check.
1202 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1203 to vectorize the loop using SLP.
1204
c6fc44f3
JJ
12052011-04-28 Jakub Jelinek <jakub@redhat.com>
1206
1207 PR middle-end/48597
1208 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1209 inline asm.
1210
6c0170ea
JM
12112011-04-28 Joseph Myers <joseph@codesourcery.com>
1212
1213 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1214 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1215 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1216 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1217 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1218 linux*.h headers.
6bec6c98 1219 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
1220 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1221 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1222 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 1223 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
1224 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1225 REG_NAME.
1226 * config/i386/linux.h (REG_NAME): Don't define.
1227 * config/i386/linux64.h (REG_NAME): Don't define.
1228 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1229 Undefine before defining.
1230
970dabbd
JH
12312011-04-28 Jan Hubicka <jh@suse.cz>
1232
6bec6c98
UB
1233 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1234 nonconstant_names array.
970dabbd
JH
1235 (estimate_function_body_sizes): Build nonconstant_names array; handle
1236 BUILT_IN_CONSTANT_P.
1237
8d3e3924
RG
12382011-04-28 Richard Guenther <rguenther@suse.de>
1239
1240 PR bootstrap/48804
1241 Revert
1242 2011-04-28 Richard Guenther <rguenther@suse.de>
1243
1244 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1245 as late as possible.
6bec6c98 1246
8576f20a
RG
12472011-04-28 Richard Guenther <rguenther@suse.de>
1248
1249 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1250 (debug_constraint): Do it here.
1251 (dump_constraints): And here.
1252 (rewrite_constraints): And here.
1253 (dump_constraint_edge): Remove.
1254 (dump_constraint_graph): Rewrite to produce DOT output.
1255 (solve_constraints): Build succ graph as late as possible.
1256 Dump constraint graphs before and after solving.
1257
e38811ce
RG
12582011-04-28 Richard Guenther <rguenther@suse.de>
1259
1260 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1261 New function split out from ...
1262 (find_func_aliases): ... here. Call it.
1263 (find_func_aliases_for_call): Likewise.
1264
fbaf0d0c
GDR
12652011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1266
1267 * internal-fn.h (internal_fn_name_array): Declare.
1268 (internal_fn_flags_array): Likewise.
1269
cbb734aa
UB
12702011-04-27 Uros Bizjak <ubizjak@gmail.com>
1271
1272 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1273 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1274 Move from sse.md.
1275 (ssemodefsuffix): Remove.
1276 (ssevecmodesuffix): New mode attribute.
1277 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1278 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1279 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1280 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1281 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1282 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1283 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1284 ssemodesuffix mode attribute.
1285 (float splitters): Use ssevecmodesuffix mode attribute.
1286 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1287 (sseinsmode): Rename from avxvecmode.
1288 (avxsizesuffix): Rename from avxmodesuffix.
1289 (sseintvecmode): Rename from avxpermvecmode.
1290 (ssedoublevecmode): Rename from ssedoublesizemode.
1291 (ssehalfvecmode): Rename from avxhalfvecmode.
1292 (ssescalarmode): Rename from avxscalarmode.
1293 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1294 templates for ssemodesuffix mode attribute.
1295 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1296 mode attribute.
1297
1298 Adjust RTX patterns globally for renamed mode attributes.
1299
991278ab
JH
13002011-04-27 Jan Hubcika <jh@suse.cz>
1301
1302 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1303 * ipa-inline-analysis.c: Include alloc-pool.h.
1304 (edge_predicate_pool): New.
1305 (trye_predicate_p): New function
1306 (false_predicate_p): New function.
1307 (add_clause): Sanity check that false clauses are "optimized";
1308 never add clauses to predicate that is already known to be false.
1309 (and_predicate): Use flase_predicate_p.
1310 (evaulate_predicate): Rename to ...
1311 (evaluate_predicate): ... this one; update all callers; assert
1312 that false is not listed among possible truths.
1313 (dump_predicate): Use true_predicate_p.
1314 (account_size_time): Use false_predicate_p.
1315 (evaulate_conditions_for_edge): Rename to ...
1316 (evaluate_conditions_for_edge) ... this one.
1317 (edge_set_predicate): New function.
1318 (inline_edge_duplication_hook): Duplicate edge predicates.
1319 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 1320 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
1321 (dump_inline_summary): Update.
1322 (estimate_function_body_sizes): Set edge predicates.
1323 (estimate_calls_size_and_time): Handle predicates.
1324 (estimate_callee_size_and_time): Update.
1325 (remap_predicate): Add toplev_predicate; update comment.
1326 (remap_edge_predicates): New function.
1327 (inline_merge_summary): Compute toplev predicate; update.
1328 (read_predicate): New function.
1329 (read_inline_edge_summary): Use it.
1330 (inline_read_section): Likewise.
1331 (write_predicate): New function.
1332 (write_inline_edge_summary): Use it.
1333 (inline_write_summary): Likewise.
1334 (inline_free_summary): Free alloc pool and edge summary vec.
1335
648b5f85
RG
13362011-04-27 Richard Guenther <rguenther@suse.de>
1337
1338 * tree-ssa-structalias.c (changed_count): Remove.
1339 (changed): Use a bitmap.
1340 (unify_nodes): Adjust.
1341 (do_sd_constraint): Likewise.
1342 (do_ds_constraint): Likewise.
1343 (do_complex_constraint): Likewise.
1344 (solve_graph): Likewise.
1345
4d5dcfb2
JH
13462011-04-27 Jan Hubicka <jh@suse.cz>
1347
1348 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1349
200eb7d2
UB
13502011-04-27 Uros Bizjak <ubizjak@gmail.com>
1351
1352 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1353 (avx_vperm2f128_*_operand): Ditto.
1354 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1355 Use avx_vpermilp_parallel in insn condition.
1356 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1357 Use avx_vperm2f128_parallel in insn condition.
1358
7d6e2521
RG
13592011-04-27 Richard Guenther <rguenther@suse.de>
1360
1361 * Makefile.in (tree-ssa-structalias.o): Remove
1362 gt-tree-ssa-structalias.h dependency.
1363 (GTFILES): Remove tree-ssa-structalias.c.
1364 * tree.c (allocate_decl_uid): New function.
1365 (make_node_stat): Use it.
1366 (copy_node_stat): Likewise.
1367 * tree.h (allocate_decl_uid): Declare.
1368 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1369 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1370 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 1371 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
1372 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1373 (struct heapvar_map): Likewise.
1374 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1375 heapvar_insert): Likewise.
1376 (make_heapvar_for): Rename to ...
1377 (make_heapvar): ... this. Simplify.
1378 (fake_var_decl_obstack): New global var.
1379 (build_fake_var_decl): New function.
1380 (make_constraint_from_heapvar): Adjust.
1381 (handle_lhs_call): Likewise.
1382 (create_function_info_for): Likewise.
1383 (intra_create_variable_infos): Likewise.
1384 (init_alias_vars): Allocate fake_var_decl_obstack.
1385 (init_alias_heapvars, delete_alias_heapvars): Remove.
1386 (compute_points_to_sets): Do not call init_alias_heapvars.
1387 (ipa_pta_execute): Likewise.
1388 (delete_points_to_sets): Free fake_var_decl_obstack.
1389
526ed6c2
UW
13902011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1391
1392 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1393 (si_from_UTItype, si_to_UTItype): New functions.
1394 (__udivmodti4): Use them to implement type-punning.
1395 * config/spu/multi3.c (union qword_TItype): New data type.
1396 (si_from_TItype, si_to_TItype): New functions.
1397 (__multi3): Use them to implement type-punning.
1398
c187d33c
UW
13992011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1400
1401 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1402
40982661
JH
14032011-04-27 Jan Hubicka <jh@suse.cz>
1404
1405 * ipa-prop.c (function_insertion_hook_holder): New holder.
1406 (ipa_add_new_function): New function.
200eb7d2
UB
1407 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1408 Register/deregister holder.
40982661 1409
9aef53ee
RG
14102011-04-27 Richard Guenther <rguenther@suse.de>
1411
1412 PR tree-optimization/48772
200eb7d2 1413 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 1414
f63d806d
RG
14152011-04-27 Richard Guenther <rguenther@suse.de>
1416
1417 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1418 TARGET_MEM_REF handling.
1419
e1ea7451
NC
14202011-04-27 Nick Clifton <nickc@redhat.com>
1421
9b5db25d
NC
1422 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1423 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1424 (REG_CLASS_NAMES): Likewise.
1425 (REG_CLASS_CONTENTS): Likewise.
1426 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1427 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1428 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1429 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1430 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1431 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1432 duplicate register classes.
97d20907 1433 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
1434 (frv_register_move_cost): Likewise.
1435
e1ea7451
NC
1436 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1437 end of the regno_reg_class array.
1438
5c2f94b4
JJ
14392011-04-27 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR c/48742
1442 * c-typeck.c (build_binary_op): Don't wrap arguments if
1443 int_operands is true.
1444
57a944d7
KK
14452011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1446
1447 PR target/48767
1448 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1449 targetm.calls.must_pass_in_stack for void type.
1450
898b8927
JH
14512011-04-26 Jan Hubicka <jh@suse.cz>
1452
1453 * cgraphbuild.c (build_cgraph_edges): Update call
1454 of cgraph_create_edge and cgraph_create_indirect_edge.
1455 * cgraph.c (cgraph_create_edge_including_clones,
1456 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1457 cgraph_update_edges_for_call_stmt_node): Do not take nest
1458 argument; do not initialize call_stmt_size/time.
1459 (dump_cgraph_node): Do not dump nest.
1460 (cgraph_clone_edge): Do not take loop_nest argument;
1461 do not propagate it; do not clone call_stmt_size/time.
1462 (cgraph_clone_node): Likewise.
1463 (cgraph_create_virtual_clone): Update.
1464 * cgraph.h (struct cgraph_edge): Remove
1465 call_stmt_size/call_stmt_time/loop_nest.
1466 (cgraph_create_edge, cgraph_create_indirect_edge,
1467 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1468 prototype.
1469 * tree-emutls.c (gen_emutls_addr): Update.
1470 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1471 loop_nest; handle indirect calls, too.
1472 (clone_inlined_nodes): Do not care about updating inline summaries.
1473 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1474 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1475 stream call_stmt_size/call_stmt_time/loop_nest.
1476 * ipa-inline.c (edge_badness): Update.
1477 (ipa_inline): dump summaries after inlining.
1478 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 1479 New.
898b8927
JH
1480 (inline_edge_summary): New function.
1481 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1482 (inline_edge_removal_hook): Handle edge summaries.
1483 (inline_edge_duplication_hook): New hook.
1484 (inline_summary_alloc): Alloc hooks.
1485 (initialize_growth_caches): Do not register removal hooks.
1486 (free_growth_caches); Do not free removal hook.
1487 (dump_inline_edge_summary): New function.
1488 (dump_inline_summary): Use it.
1489 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1490 (inline_update_callee_summaries): New function.
1491 (inline_merge_summary): Use it.
1492 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1493 (read_inline_edge_summary): New function.
1494 (inline_read_section): Use it.
1495 (write_inline_edge_summary): New function.
1496 (inline_write_summary): Use it.
1497 (inline_free_summary): Free edge new holders.
1498 * tree-inline.c (copy_bb): Update.
1499
ffa03772
JM
15002011-04-26 Jason Merrill <jason@redhat.com>
1501
1502 * tree-eh.c (lower_try_finally_switch): Create the label along with
1503 the CASE_LABEL_EXPR.
1504
6d7b45ad
DM
15052011-04-26 David S. Miller <davem@davemloft.net>
1506 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1507
1508 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1509 * configure: Regenerate.
1510
df10b6d4
MM
15112011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1512
1513 PR target/48258
1514 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1515 reduction.
1516 (VEC_reduc): New code iterator and splitters for vector reduction.
1517 (VEC_reduc_name): Ditto.
1518 (VEC_reduc_rtx): Ditto.
1519 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1520 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1521
1522 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1523 support for extracting SF on VSX.
1524
1525 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1526 generating xscvspdp.
1527 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1528 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1529 double add, minimum, maximum vector reduction.
1530 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1531 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1532 optimize double vector reduction.
1533 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1534
35a5db04
JM
15352011-04-26 Joseph Myers <joseph@codesourcery.com>
1536
1537 * config/fr30/fr30.h (inhibit_libc): Don't define.
1538 * config/m32r/m32r-protos.h: Correct comment.
1539 * config/v850/v850.h (GHS_default_section_names,
1540 GHS_current_section_names): Use tree, not union tree_node *.
1541
2f964ad6
XDL
15422011-04-26 Xinliang David Li <davidxl@google.com>
1543
200eb7d2 1544 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
1545 * c-family/c-opts.c (c_common_handle_option): Set
1546 warn_maybe_uninitialized.
1547 * opts.c (common_handle_option): Ditto.
1548 * common.opt: New option.
1549 * tree-ssa.c (warn_uninit): Add one more parameter.
1550 (warn_uninitialized_var): Pass warning code.
1551 * tree-flow.h: Interface change.
1552
1553
9c7bd91a
RO
15542011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
200eb7d2 1556 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
1557 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1558 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1559
c2f36e21
RO
15602011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1563 * config/mips/mips.opt (mmips-tfile): Remove.
1564
1565 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1566 mips-tdump reference to ...
200eb7d2 1567 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
1568 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1569 reference by Tru64 UNIX.
1570
2c9da85b
JJ
15712011-04-26 Jakub Jelinek <jakub@redhat.com>
1572
0c5f6539
JJ
1573 PR debug/48768
1574 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1575 is error_mark_node, set value to NULL.
1576
2c9da85b
JJ
1577 PR tree-optimization/48734
1578 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1579 if return value from maybe_fold_*_comparsions isn't something
1580 the code is prepared to handle.
1581
77fa1d54
UB
15822011-04-26 Uros Bizjak <ubizjak@gmail.com>
1583
1584 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1585 mode check.
1586 (ext_QIreg_nomode_operands): Remove.
1587 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1588 (*andsi_1): Ditto.
1589 (*andhi_1): Ditto.
1590
0e2a6c2b
AS
15912011-04-26 Andrew Stubbs <ams@codesourcery.com>
1592
1593 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1594
961562d8
RB
15952011-04-26 Richard Guenther <rguenther@suse.de>
1596
1597 * c-typeck.c (build_unary_op): Do not expand array-refs via
1598 pointer arithmetic. Only adjust qualifiers for function types.
1599
16002011-04-26 Richard Guenther <rguenther@suse.de>
1601
1602 PR middle-end/48694
1603 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1604 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
1605 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1606 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 1607
a0d260fc
PC
16082011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1609
77fa1d54 1610 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
a0d260fc 1611 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6bec6c98 1612 * doc/extend.texi: Document __underlying_type.
a0d260fc 1613
4d583bb9
SB
16142011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1615
1616 * config/rs6000/titan.md (automata_option "progress"): Remove.
1617
1f3fcdc3
JL
16182011-04-25 Jeff Law <law@redhat.com>
1619
1620 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1621
e5b0dad8
JK
16222011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1623
1624 * system.h (ENUM_BITFIELD): Remove.
1625
5157a881 16262011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 1627 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
1628
1629 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1630 for STORE_FLAG_VALUE==-1 case.
1631
ed4c109e
RS
16322011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1633
1634 PR target/43804
1635 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1636 LEGITIMATE_PIC_OPERAND_P.
1637
f3181aa2
JH
16382011-04-24 Jan Hubicka <jh@suse.cz>
1639
1640 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1641 WPA hack.
77fa1d54
UB
1642 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1643 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1644 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
1645 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1646 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1647 Sanity check predicate length.
1648 (remap_predicate): Likewise; sanity check jump functions.
1649 (inline_read_section, inline_write_summary): Sanity check
1650 predicate length.
1651
5307cbaa
PC
16522011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1653
1654 PR other/48748
1655 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1656 __is_literal_type, and __is_trivial; update throughout about
1657 possibly cv-qualified void types.
1658
bebd5f99
GP
16592011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1660
1661 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1662 testsuite and make it version agnostic.
1663
7ee28a74
JH
16642011-04-22 Jan Hubicka <jh@suse.cz>
1665
1666 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1667
16997bc0
JJ
16682011-04-23 Jakub Jelinek <jakub@redhat.com>
1669
1670 PR c/48685
1671 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1672 to VOID_TYPE even around MODIFY_EXPR.
1673
f94d4ab1
MS
16742011-04-22 Mike Stump <mikestump@comcast.net>
1675
1a84c183 1676 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
1677 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1678 comment.
1679
632b4f8e
JH
16802011-04-22 Jan Hubicka <jh@suse.cz>
1681
1682 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
1683 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1684 ipa-prop.c; update all uses.
632b4f8e 1685 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
1686 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1687 merge summary of inlined function into former caller.
632b4f8e
JH
1688 * ipa-inline.c (max_benefit): Remove.
1689 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
1690 (update_caller_keys): Use
1691 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
1692 (update_callee_keys): Likewise.
1693 (update_all_callee_keys): Likewise.
77fa1d54
UB
1694 (inline_small_functions): Do not collect max_benefit; do not reset
1695 estimated_growth; call free_growth_caches and initialize_growth_caches.
1696 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1697 struct size_time_entry): New structures.
632b4f8e 1698 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
1699 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1700 and estimated_growth.
632b4f8e
JH
1701 (edge_growth_cache_entry): New structure.
1702 (node_growth_cache, edge_growth_cache): New global vars.
1703 (estimate_growth): Turn into inline.
1704 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1705 initialize_growth_caches, free_growth_caches): Declare.
1706 (estimate_edge_growth): Rewrite.
1707 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
1708 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1709 functions.
632b4f8e
JH
1710 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1711 (NUM_CONDITIONS): New constant.
1712 (predicate_conditions): New enum.
1713 (IS_NOT_CONSTANT): New constant.
1714 (edge_removal_hook_holder): New var.
1715 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
1716 (true_predicate, single_cond_predicate, false_predicate,
1717 not_inlined_predicate, add_condition, add_clause, and_predicates,
1718 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1719 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
1720 evaulate_conditions_for_edge): New functions.
1721 (inline_summary_alloc): Move to heap.
1722 (inline_node_removal_hook): Clear condition and entry vectors.
1723 (inline_edge_removal_hook): New function.
1724 (initialize_growth_caches, free_growth_caches): New function.
1725 (dump_inline_summary): Update.
1726 (edge_execution_predicate): New function.
1727 (will_be_nonconstant_predicate): New function.
1728 (estimate_function_body_sizes): Compute BB and constantness predicates.
1729 (compute_inline_parameters): Do not clear estimated_growth.
1730 (estimate_edge_size_and_time): New function.
1731 (estimate_calls_size_and_time): New function.
1732 (estimate_callee_size_and_time): New function.
1733 (remap_predicate): New function.
1734 (inline_merge_summary): New function.
1735 (do_estimate_edge_time): New function based on...
1736 (estimate_edge_time): ... this one.
1737 (do_estimate_edge_growth): New function.
1738 (do_estimate_growth): New function based on....
1739 (estimate_growth): ... this one.
1740 (inline_analyze_function): Analyze after deciding on jump functions.
1741 (inline_read_section): New function.
1742 (inline_read_summary): Use it.
1743 (inline_write_summary): Write all the new data.
1744 * ipa-prop.c (ipa_get_param_decl_index): Export.
1745 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
1746 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1747 Declare.
1748 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
1749 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1750 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1751 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1752 cgraph_edge_inlinable_p): Remove.
1753 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
1754 (cgraph_process_new_functions): Update call of
1755 compute_inline_parameters.
632b4f8e 1756
1df5b0db
RG
17572011-04-22 Richard Guenther <rguenther@suse.de>
1758
1759 * tree.c (build_int_cst): Properly create canonicalized integer
1760 constants.
1761 (build_int_cst_type): Remove scary comments.
1762
ae01169c
XDL
17632011-04-22 Xinliang David Li <davidxl@google.com>
1764
1765 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1766 by default when -Wno-error is not specified.
1767 * opts-global.c (decode_options): Remove call to
1768 control_warning_options.
1769
93dfac24
JJ
17702011-04-22 Jakub Jelinek <jakub@redhat.com>
1771
1772 PR tree-optimization/48717
1773 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1774 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1775
1b5f5069
JM
17762011-04-22 Joseph Myers <joseph@codesourcery.com>
1777
1778 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1779 definition where used.
1780
144f4153
JJ
17812011-04-22 Jakub Jelinek <jakub@redhat.com>
1782
1783 PR c/48716
1784 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1785 TREE_STATIC variables declared inside of some OpenMP construct.
1786
f9fd305b
MJ
17872011-04-22 Martin Jambor <mjambor@suse.cz>
1788
1789 PR middle-end/48585
1d284ec5 1790 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 1791
49819fef
AM
17922011-04-22 Alexander Monakov <amonakov@ispras.ru>
1793
1794 PR c/36750
1795 * c-typeck.c (pop_init_level): Do not warn about initializing
1796 with ` = {0}'.
1797
401f6699
AM
17982011-04-22 Alan Modra <amodra@gmail.com>
1799
1800 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1801 when returning call_cookie.
1802 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1803 pointers, to functions with no more vector args than the current
1804 function, and some non-local calls for ABI_V4.
1805 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1806 sibcall_nonlocal_aix64): Combine to ..
1807 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1808 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1809 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1810 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1811 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1812 operand.
1813 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1814 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1815 sibcall_value_symbolic_64): Delete.
1816
903d1e67
XDL
18172011-04-21 Xinliang David Li <davidxl@google.com>
1818
1819 * cgraph.h: Remove pid.
1820 * cgraph.c: Remove pid.
1821 * value-prof.c (init_node_map): New function.
1822 (del_node_map): New function.
1823 (find_func_by_funcdef_no): New function.
1824 (gimple_ic_transform): Call new function.
1825 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1826 * function.c (get_last_funcdef_no): New function.
1827 * function.h (get_last_funcdef_no): New function.
1828 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1829 to libgcov function.
1830 (tree-profiling): Call node map init and delete function.
1831
7378e95f
ILT
18322011-04-21 Ian Lance Taylor <iant@google.com>
1833
1834 * godump.c (go_format_type): Use exported Go name for anonymous
1835 field name.
1836
e84a6fcf
NF
18372011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1838
1839 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1840 Call builtin_function_type_list instead of builtin_function_type.
1841 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1842
4fe058e2
NF
18432011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1844
1845 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1846 build_function_type_list instead of build_function_type.
1847 Delete variable `endlink'.
1848
1ba0a2d2
NF
18492011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1850
1851 * config/s390/s390.c (s390_init_builtins): Call
1852 build_function_type_list instead of build_function_type.
1853
c0676219
NF
18542011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1855
1856 * config/ia64/ia64.c (ia64_init_builtins): Call
1857 build_function_type_list instead of builtin_function_type.
1858
6ddfda8a
ER
18592011-04-21 Easwaran Raman <eraman@google.com>
1860
3a6448ea 1861 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
1862 (add_stack_var): ...and its reference here...
1863 (expand_stack_vars): ...and here.
1864 (stack_var_cmp): Sort by descending order of size.
1865 (partition_stack_vars): Change heuristic.
1d284ec5 1866 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
1867 (dump_stack_var_partition): Add newline after each partition.
1868
23756963
DA
18692011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1870 Jeff Law <law@redhat.com>
1871
77fa1d54 1872 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
1873 * gengtype.c (matching_file_name_substitute): Likewise.
1874
aa2a43d2
RG
18752011-04-21 Richard Guenther <rguenther@suse.de>
1876
1877 PR lto/48703
1d284ec5 1878 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 1879
4d931f41
EB
18802011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1881
1882 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1883
f103fa7a
RG
18842011-04-21 Richard Guenther <rguenther@suse.de>
1885
1886 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1887 file name.
1888
e19f6650
RG
18892011-04-21 Richard Guenther <rguenther@suse.de>
1890
1891 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1892 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1893 Use DECL_P, not SSA_VAR_P.
1894 (ptr_derefs_may_alias_p): Likewise.
1895 (ptr_deref_may_alias_ref_p_1): Likewise.
1896 (decl_refs_may_alias_p): Likewise.
1897 (refs_may_alias_p_1): Likewise.
1898 (ref_maybe_used_by_call_p_1): Likewise.
1899 (call_may_clobber_ref_p_1): Likewise.
1900 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1901 are either MEM_REF or TARGET_MEM_REF.
1902 (indirect_refs_may_alias_p): Likewise.
1903 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1904 for MEM_EXPR of indirect calls.
1905
9d1831bb
TG
19062011-04-21 Tristan Gingold <gingold@adacore.com>
1907
1908 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1909 (dst_file_info_struct): Remove flen field.
1910 (lookup_filename): Remove code that set flen field.
1911
f199c029
TG
19122011-04-21 Tristan Gingold <gingold@adacore.com>
1913
1914 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1915
2894086e
UB
19162011-04-21 Uros Bizjak <ubizjak@gmail.com>
1917
1918 PR target/48708
1919 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1920 vec_extract and vec_concat for non-SSE4_1 targets.
1921
53f94a5c
RG
19222011-04-21 Richard Guenther <rguenther@suse.de>
1923
1924 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1925 return statements.
1926
f0dca5ba
JM
19272011-04-21 Joseph Myers <joseph@codesourcery.com>
1928
1929 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1930 undefine.
1931 (FILE): Don't undefine.
1932
984514ac
JM
19332011-04-21 Joseph Myers <joseph@codesourcery.com>
1934
1935 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1936 struct rtx_def *.
1937 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1938 struct rtx_def *.
1939 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 1940 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
1941 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1942 rtx_def *.
1943 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1944 definitions where used.
1945 * config/microblaze/microblaze.h (struct microblaze_args): Use
1946 rtx, not struct rtx_def *.
1947 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1948 rtx_def *.
2894086e
UB
1949 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1950 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
1951 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1952 not struct rtx_def *.
1953 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1954 struct rtx_def *.
1955 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1956 rtx_def *.
2894086e 1957 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 1958
0b5a2724
RS
19592011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1960
1961 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1962 operand_equal_p to compare DR_BASE_ADDRESSes.
1963 (vect_check_interleaving): Likewise.
1964
4b18d683
RS
19652011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1966
1967 PR target/46329
1968 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1969 for all Neon struct constants.
1970
1a627b35
RS
19712011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1972
1973 * target.def (legitimate_constant_p): New hook.
1974 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1975 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1976 * doc/tm.texi: Regenerate.
1977 * hooks.h (hook_bool_mode_rtx_true): Declare.
1978 * hooks.c (hook_bool_mode_rtx_true): Define.
1979 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1980 * calls.c (precompute_register_parameters): Replace uses of
1981 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1982 (emit_library_call_value_1): Likewise.
1983 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1984 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1985 * ira-costs.c (scan_one_insn): Likewise.
1986 * recog.c (general_operand, immediate_operand): Likewise.
1987 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1988 * reload1.c (init_eliminable_invariants): Likewise.
1989
1990 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1991 mode argument.
1992 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1993 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1994 argument.
1995 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1996 * config/alpha/predicates.md (input_operand): Update call to
1997 alpha_legitimate_constant_p.
1998
1999 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2000 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2001 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2002 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2003 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2004 (arm_legitimate_constant_p): New functions.
2005 (arm_cannot_force_const_mem): Make static.
2006
2007 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2008
2009 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2010 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2011 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2012 instead of bfin_legitimate_constant_p.
2013 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2014 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2015
2016 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2017
2018 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2019
2020 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2021 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2022 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2023 (frv_legitimate_constant_p): Make static. Add a mode argument.
2024
2025 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2026 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2027 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2028
2029 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2030 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2031 * config/i386/i386.c (legitimate_constant_p): Rename to...
2032 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2033 argument.
2034 (ix86_cannot_force_const_mem): Update accordingly.
2035 (ix86_legitimate_address_p): Likewise.
2036 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2037 * config/i386/i386.md: Update commentary.
2038
2039 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2040 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2041 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2042 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2043
2044 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2045
2046 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2047 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2048 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2049 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2050
2051 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2052 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2053 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2054
2055 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2056 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2057 (m32r_legitimate_constant_p): New function.
2058
2059 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2060 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2061 LEGITIMATE_CONSTANT_P.
2062 (LEGITIMATE_CONSTANT_P): Delete.
2063 * config/m68k/m68k.c (m68k_expand_prologue): Call
2064 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2065 (m68k_legitimate_constant_p): New function.
2066 * config/m68k/m68k.md: Update comments.
2067
2068 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2069 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2070 (mcore_legitimate_constant_p): New function.
2071
2072 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2073 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2074 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2075 Add a mode argument.
2076 (mep_legitimate_address): Update accordingly.
2077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2078
2079 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2080 Delete.
2081 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2082 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2083 static. Check OP's mode for VOIDmode.
2084 (microblaze_legitimate_constant_p): New function.
2085 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2086
2087 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2088 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2089 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2090 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2091 * config/mips/predicates.md: Update comments.
2092
2093 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2094 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2095 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2096 (mmix_legitimate_constant_p): Make static, return a bool, and take
2097 a mode argument.
2098 (mmix_print_operand_address): Update accordingly.
2099
2100 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2101 Delete.
2102 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
2103 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2104 static. Add a mode argument.
1a627b35
RS
2105 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2106
2107 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2108
2109 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2110 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2111 (pa_legitimate_constant_p): New function.
2112
2113 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2114
2115 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2116 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2117 (pdp11_legitimate_constant_p): New function.
2118
2119 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2120 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2121 (rs6000_legitimate_constant_p): New function.
2122
2123 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2124 (rx_legitimate_constant_p): ...this.
2125 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2126 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2127 (rx_legitimate_constant_p): ...this.
2128 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2129 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2130
2131 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2132 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2133 * config/s390/s390.c (legitimate_constant_p): Rename to...
2134 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2135 and add a mode argument.
2136 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2137
2138 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2139
2140 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2141 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2142 (sh_legitimate_constant_p): New function.
2143
2144 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2145 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2146 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2147 (legitimate_constant_p): Rename to...
2148 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2149 argument.
2150 (constant_address_p): Update accordingly.
2151
2152 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2153 argument and return a bool.
2154 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2155 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2156 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2157 (spu_rtx_costs): Update accordingly.
2158 * config/spu/predicates.md (vec_imm_operand): Likewise.
2159
2160 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2161
2162 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2163 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2164 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2165
2166 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2167 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2168 * config/vax/vax.c (legitimate_constant_p): Likewise.
2169
2170 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2171 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2172 (xtensa_legitimate_constant_p): New function.
2173
fbbf66e7
RS
21742011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2175
2176 * target.def (cannot_force_const_mem): Add a mode argument.
2177 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2178 * doc/tm.texi: Regenerate.
2179 * hooks.h (hook_bool_mode_rtx_false): Declare.
2180 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2181 (hook_bool_mode_const_rtx_true): Likewise.
2182 (hook_bool_mode_rtx_false): New function.
2183 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2184 to be non-VOID. Update call to cannot_force_const_mem.
2185 (find_reloads): Update accordingly.
2186 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2187 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2188 argument.
2189 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2190 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2191 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2192 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2193 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2194 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2195 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2196 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2197 (m68k_cannot_force_const_mem): ...this new function.
2198 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2199 argument.
2200 (mips_const_insns, mips_legitimize_const_move): Update calls.
2201 (mips_secondary_reload_class): Likewise.
2202 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2203 (pa_cannot_force_const_mem): ...this new function.
2894086e 2204 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
2205 (rs6000_cannot_force_const_mem): ...this new function.
2206 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2207 argument.
2208 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2209 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2210 to...
2211 (xtensa_cannot_force_const_mem): ...this new function.
2212
b861891b
NF
22132011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2214
2215 * config/mips/mips.c (mips16_build_function_stub): Call
2216 build_function_type_list instead of build_function_type.
2217 (mips16_build_call_stub): Likewise.
2218
34149ed5
NF
22192011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2220
2221 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2222 instead of build_function_type.
2223
12526412
NF
22242011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2225
2226 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2227 instead of build_function_type.
2228
3b84d61f
UB
22292011-04-20 Uros Bizjak <ubizjak@gmail.com>
2230
2231 PR target/48678
2232 * config/i386/i386.md (insv): Change operand 0 constraint to
2233 "register_operand". Change operand 1 and 2 constraint to
2234 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2235 * config/i386/sse.md (sse4_1_pinsrb): Export.
2236 (sse2_pinsrw): Ditto.
2237 (sse4_1_pinsrd): Ditto.
2238 (sse4_1_pinsrq): Ditto.
2239 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2240 * config/i386/i386.c (ix86_expand_pinsr): New.
2241
4a25752b
ER
22422011-04-20 Easwaran Raman <eraman@google.com>
2243
2244 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2245 containing union type only with -fstrict-aliasing.
2246
04695783
JM
22472011-04-20 Jim Meyering <meyering@redhat.com>
2248
2249 Remove useless if-before-free tests.
2250 * calls.c (expand_call, save_area): Likewise.
2251 * cfgcleanup.c (try_forward_edges): Likewise.
2252 * collect2.c (collect_execute): Likewise.
2253 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2254 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2255 * coverage.c (coverage_checksum_string): Likewise.
2256 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2257 * cselib.c (cselib_init): Likewise.
2258 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2259 (df_set_clean_cfg): Likewise.
2260 * function.c (free_after_compilation): Likewise.
2261 * gcc.c (do_spec_1, main): Likewise.
2262 * gcov.c (create_file_names): Likewise.
2263 * gensupport.c (identify_predicable_attribute): Likewise.
2264 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2265 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2266 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2267 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2268 * ipa-pure-const.c (local_pure_const): Likewise.
2269 * ipa-reference.c (propagate): Likewise.
2270 * ira-costs.c (free_ira_costs): Likewise.
2271 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2272 * matrix-reorg.c (mat_free): Likewise.
2273 * prefix.c (get_key_value): Likewise.
2274 * profile.c (compute_value_histograms): Likewise.
2275 * reload1.c (free_reg_equiv): Likewise.
2276 * sched-deps.c (free_deps): Likewise.
2277 * sel-sched-ir.c (fence_clear): Likewise.
2278 * sese.c (set_rename, if_region_set_false_region): Likewise.
2279 * tree-data-ref.c (free_rdg): Likewise.
2280 * tree-eh.c (lower_try_finally): Likewise.
2281 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2282 * tree-ssa-live.c (delete_var_map): Likewise.
2283 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2284 * tree-ssa-pre.c (phi_trans_add): Likewise.
2285
6788475a
JJ
22862011-04-20 Jakub Jelinek <jakub@redhat.com>
2287
2288 PR tree-optimization/48611
2289 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2290 beyond ERT_MUST_NOT_THROW region.
2291
0eda4033
CM
22922011-04-20 Catherine Moore <clm@codesourcery.com>
2293
2294 * config/mips/mips.opt (mfix-24k): New.
2295 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2296 * config/mips/mips.md (length): Increase by 4 for stores if
2297 fixing 24K errata.
2298 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2299 all noreorder if fixing 24K errata.
2300 * doc/invoke.texi: Document mfix-24k.
2301
01475747
CLT
23022011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2303
2304 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 2305 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 2306
bc2c1a60
AS
23072011-04-20 Andrew Stubbs <ams@codesourcery.com>
2308
2309 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2310 (const_ok_for_op): ... to here.
2311
583722ee
KT
23122011-04-20 Kai Tietz <ktietz@redhat.com>
2313
2894086e
UB
2314 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2315 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 2316
422c0989
AS
23172011-04-20 Andrew Stubbs <ams@codesourcery.com>
2318
2319 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2320
d7978bff
RG
23212011-04-20 Richard Guenther <rguenther@suse.de>
2322
2323 PR tree-optimization/47892
2324 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2325 are if-convertible.
2326
818412ba
EB
23272011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2328
2329 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2330
b501ce4e
TG
23312011-04-20 Tristan Gingold <gingold@adacore.com>
2332
2333 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2334
516edfdd
GJL
23352011-04-20 Georg-Johann Lay <avr@gjlay.de>
2336
2337 PR target/18145
2338
2339 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2340 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2341 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2342 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2343 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2344
2345 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2346 New prototype.
2347
2348 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2349 (avr_asm_named_section, avr_asm_output_aligned_common,
2350 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2351 New functions to update...
2352 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2353 (avr_asm_init_sections): Overwrite section callbacks for
2354 data_section, bss_section.
2355 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2356 from here to...
2357 (avr_file_end): ...here.
2358
dafc9511
RG
23592011-04-20 Richard Guenther <rguenther@suse.de>
2360
2361 PR middle-end/48695
2362 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 2363 objects and types here. Adjust for their offset before comparing.
dafc9511 2364
1da0876c
RS
23652011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2366
2367 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2368 statement per copy.
2369
25583c4f
RS
23702011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2371
2372 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2373 (GIMPLE_H): Include $(INTERNAL_FN_H).
2374 (OBJS-common): Add internal-fn.o.
2375 (internal-fn.o): New rule.
2376 * internal-fn.def: New file.
2377 * internal-fn.h: Likewise.
2378 * internal-fn.c: Likewise.
2379 * gimple.h: Include internal-fn.h.
2380 (GF_CALL_INTERNAL): New gf_mask.
2381 (gimple_statement_call): Put fntype into a union with a new
2382 internal_fn field.
2383 (gimple_build_call_internal): Declare.
2384 (gimple_build_call_internal_vec): Likewise.
2385 (gimple_call_same_target_p): Likewise.
2386 (gimple_call_internal_p): New function.
2387 (gimple_call_internal_fn): Likewise.
2388 (gimple_call_fntype): Return null for internal calls.
2389 (gimple_call_set_fntype): Assert that the function is not internal.
2390 (gimple_call_set_fn): Likewise.
2391 (gimple_call_set_fndecl): Likewise.
2392 (gimple_call_set_internal_fn): New function.
2393 (gimple_call_addr_fndecl): Handle null functions.
2394 (gimple_call_return_type): Likewise null types.
2395 * gimple.c (gimple_build_call_internal_1): New function.
2396 (gimple_build_call_internal): Likewise.
2397 (gimple_build_call_internal_vec): Likewise.
2398 (gimple_call_same_target_p): Likewise.
2399 (gimple_call_flags): Handle calls to internal functions.
2400 (gimple_call_fnspec): New function.
2401 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2402 (gimple_has_side_effects): Handle null functions.
2403 (gimple_rhs_has_side_effects): Likewise.
2404 (gimple_call_copy_skip_args): Handle calls to internal functions.
2405 * cfgexpand.c (expand_call_stmt): Likewise.
2406 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2407 * gimple-fold.c (gimple_fold_call): Handle null functions.
2408 (gimple_fold_stmt_to_constant_1): Don't fold
2409 calls to internal functions.
2410 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2411 functions.
2412 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2413 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2414 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2415 (do_warn_unused_result): Likewise.
2416 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2417 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2418 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2419 the target of a call.
2420 (initialize_hash_element): Update accordingly.
2421 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2422 (iterative_hash_hashable_expr): Handle calls to internal functions.
2423 (print_expr_hash_elt): Likewise.
2424 * tree-ssa-pre.c (can_value_number_call): Likewise.
2425 (eliminate): Handle null functions.
2426 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2427 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2428 (find_func_aliases): Likewise.
2429 * value-prof.c (gimple_ic_transform): Likewise.
2430 (gimple_indirect_call_to_profile): Likewise.
2431 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2432 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2433
1a3118e9
JH
24342011-04-19 Jan Hubicka <jh@suse.cz>
2435
2436 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
2437 * ipa-inline.c (inline_small_functions): Compute summaries first,
2438 populate heap later.
1a3118e9 2439
fee8b6da
JH
24402011-04-19 Jan Hubicka <jh@suse.cz>
2441
2442 * cgraph.h (save_inline_function_body): Remove.
2443 * ipa-inline-transform.c: New file, broke out of...
2444 * ipa-inline.c: ... this one; Update toplevel comment.
2445 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2446 make global.
2447 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2448 (cgraph_mark_inline_edge): Rename to inline_call; move to
2449 ipa-inline-transform.c.
2450 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2451 move to ipa-inline-transform.c
2452 (recursive_inlining, inline_small_functions, flatten_function,
2453 ipa_inline, inline_always_inline_functions,
2454 early_inline_small_functions): Update.
2455 (inline_transform): Move to ipa-inline-transform.c.
2456 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2457 Declare.
2458 * Makefile.in (ipa-inline-transform.o): New file.
2459 * cgraphunit.c (save_inline_function_body): Move to
2460 ipa-inline-transform.c
2461
f0679612
DD
24622011-04-19 DJ Delorie <dj@redhat.com>
2463
2464 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2465 registers if we already know there aren't any.
2466 (m32c_emit_epilogue): Don't emit a barrier here.
2467 (m32c_emit_eh_epilogue): Likewise.
2468 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2469 operands at expand time.
2470 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2471 int" wchar type.
2472 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2473 duplicates. Provide aliases instead.
2474 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2475 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2476 the compiler.
2477
32257ddc
AS
24782011-04-19 Anatoly Sokolov <aesok@post.ru>
2479
2480 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2481 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2482 (general_or_i64_p, sparc_register_move_cost): New function.
2483
60bea929
RO
24842011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2485
2486 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 2487 Add lynx, mipssde. Sort table.
60bea929 2488
444b3995 24892011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 2490
9d12f71a
EB
2491 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2492 not negative.
444b3995 2493
d708ce50
JJ
24942011-04-19 Jakub Jelinek <jakub@redhat.com>
2495
2496 PR target/48678
2497 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2498 is a SUBREG with non-MODE_INT mode inside of it.
2499
49c471e3
MJ
25002011-04-19 Martin Jambor <mjambor@suse.cz>
2501
2502 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2503 also according to actual contants.
2504 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2505 (gimple_fold_call): Use it.
2506 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2507
0004f992
MJ
25082011-04-19 Martin Jambor <mjambor@suse.cz>
2509
2510 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2511 non-pointer assignments.
2512
40591473
MJ
25132011-04-19 Martin Jambor <mjambor@suse.cz>
2514
2515 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2516 account anc_offset and otr_type from the indirect edge info.
2517 * ipa-prop.c (get_ancestor_addr_info): New function.
2518 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2519 get_ancestor_addr_info, call it.
2520 (ipa_note_param_call): Do not initialize information about polymorphic
2521 calls, return the indirect call graph edge. Remove the last
2522 parameter, adjust all callers.
2523 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2524 parameters. Initialize polymorphic information in the indirect edge.
2525
abe36b81
EB
25262011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2527
2528 PR lto/48148
2529 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2530 the types if they have different enumeration identifiers.
2531
e6416b30
JH
25322011-04-19 Jan Hubicka <jh@suse.cz>
2533
2534 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2535 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2536 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2537 (optimize_function_for_size_p) ... here.
2538
d39132ea
RG
25392011-04-19 Richard Guenther <rguenther@suse.de>
2540
2541 PR lto/48207
2542 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2543 langhook.
2544
ff7037dc
EB
25452011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2546
2547 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2548 if DECL_NO_INLINE_WARNING_P is set on the function.
2549
c1ee2892
BS
25502011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2551
2552 PR fortran/47976
2553 * reload1.c (inc_for_reload): Return void. All callers changed.
2554 (emit_input_reload_insns): Don't try to delete previous output
2555 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
2556
25572011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2558
2559 * gengtype.h: Updated copyright year.
2560 (struct input_file_st): Add inpisplugin field.
2561 (type_fileloc): New function.
2562 * gengtype.c
2563 (write_typed_struct_alloc_def): Add gcc_assert.
2564 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2565 (write_typed_alloc_defns): Don't output for plugin files.
2566 (input_file_by_name): Clear inpisplugin field.
2567 (main): Set inpisplugin field for plugin files.
2568
897e0a89
NP
25692011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2570
2571 * gengtype-state.c (string_eq): New.
2572 (read_state): Use string_eq instead of strcmp when creating the
2573 state_ident_tab.
2574
363ee90e
WG
25752011-04-19 Wei Guozhi <carrot@google.com>
2576
2577 PR target/47855
2578 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2579 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2580 linkage.
2581 * config/arm/constraints.md (Uu): New constraint.
2582 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2583
18a24fed
TG
25842011-04-19 Tristan Gingold <gingold@adacore.com>
2585
2586 * config.gcc (-*-*-*vms): Added.
2587 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2588 definitions moved.
2589 * config/vms/vms-ld.c: New file.
2590 * config/vms/vms-ar.c: New file.
2591 * config/vms/t-vmsnative: New file.
2592
1c13f168
XDL
25932011-04-18 Xinliang David Li <davidxl@google.com>
2594
2595 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2596
84825707
JJ
25972011-04-18 Jakub Jelinek <jakub@redhat.com>
2598
2599 PR middle-end/48661
2600 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2601 if TREE_TYPE (v) is non-NULL.
2602
2603 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2604 gimple_get_virt_mehtod_for_binfo.
2605 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2606 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2607 callers.
2608 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2609
7d4f8d02 26102011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
2611 Steve Ellcey <sje@cup.hp.com>
2612
7d4f8d02
EB
2613 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2614 use its mode as source mode if it isn't VOIDmode.
7254cb57 2615
474e8e70
DCR
26162011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2617
2618 * doc/passes.texi: Fill crossref nodes.
2619
cff41484
JM
26202011-04-18 Jim Meyering <meyering@redhat.com>
2621
7d4f8d02 2622 Fix doubled-word typos in comments and strings
cff41484
JM
2623 * config/alpha/vms-unwind.h: s/for for/for/
2624 * config/arm/unwind-arm.h: Likewise.
2625 * config/microblaze/microblaze.c: Likewise.
2626 * config/sh/constraints.md: s/in in/in/
2627 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2628
f60c2554
UB
26292011-04-18 Uros Bizjak <ubizjak@gmail.com>
2630
2631 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2632 (AVX_FLOAT_MODE_P): Ditto.
2633 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2634 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2635 (AVX_VEC_FLOAT_MODE_P): Ditto.
2636 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2637 (UNSPEC_MASKSTORE): Ditto.
2638 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2639 Merge from <sse>_movmsk<ssemodesuffix> and
2640 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2641 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2642 iterator.
2643 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2644 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2645 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2646
09a2806f
JH
26472011-04-18 Jan Hubicka <jh@suse.cz>
2648
8a8dccb2
JH
2649 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2650
09a2806f
JH
2651 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2652 (want_inline_function_called_once_p): Break out the logic from
2653 ipa_inline.
2654 (edge_badness): Ensure that profile is not misupdated.
2655 (lookup_recursive_calls): Prioritize by call frequencies.
2656 (inline_small_functions): Move program size estimates here;
2657 actually process whole queue even when unit growth has been
2658 met. (to properly compute inline_failed reasons and for the
f60c2554 2659 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
2660 (ipa_inline): Remove unit summary code; first inline hot calls
2661 of functions called once, cold calls next.
2662 (order, nnodes): Remove unused variables.
2663 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2664 (GTFILES): Remove ipa-inline.c
2665 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2666
3eea52ef
EB
26672011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2668
2669 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2670
229a1c59 26712011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 2672 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
2673
2674 * arm.c (neon_builtin_type_bits): Remove.
2675 (typedef enum neon_builtin_mode): New.
2676 (T_MAX): Don't define.
2677 (typedef enum neon_builtin_datum): Remove bits, codes[],
2678 num_vars and base_fcode. Add mode, code and fcode.
2679 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2680 VAR10): Change accordingly.
2681 (neon_builtin_data[]): Change accordingly
2682 (arm_init_neon_builtins): Change accordingly.
2683 (neon_builtin_compare): Remove.
2684 (locate_neon_builtin_icode): Remove.
2685 (arm_expand_neon_builtin): Change accordingly.
2686
2687 * arm.h (enum arm_builtins): Move to ...
2688 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2689
2690 * arm.c (arm_builtin_decl): Declare.
2691 (TARGET_BUILTIN_DECL): Define.
2692 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2693 (arm_builtin_decls[]): New.
2694 (arm_init_neon_builtins): Store builtin declarations in
2695 arm_builtin_decls[].
2696 (arm_init_tls_builtins): Likewise.
2697 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2698 (arm_builtin_decl): New.
2699
75e802cc
RG
27002011-04-18 Richard Guenther <rguenther@suse.de>
2701
2702 * tree.c (upper_bound_in_type): Build properly canonicalized
2703 INTEGER_CSTs.
2704 (lower_bound_in_type): Likewise.
2705
3b45a007
RG
27062011-04-18 Richard Guenther <rguenther@suse.de>
2707
2708 * gimple.h (gimple_call_addr_fndecl): New function.
2709 (gimple_call_fndecl): Use it.
2710 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2711 for direct calls.
2712 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2713 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2714
d25a79ea
RG
27152011-04-18 Richard Guenther <rguenther@suse.de>
2716
2717 PR middle-end/48650
2718 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2719
7d5fc814
EB
27202011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2721
2722 PR lto/48492
2723 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2724 DECL_IN_CONSTANT_POOL without RTL.
2725
7e7cfcf6
UW
27262011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2727 Ira Rosen <ira.rosen@linaro.org>
2728
2729 PR target/48252
2730 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2731 to match neon_vzip/vuzp/vtrn_internal.
2732 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2733 outputs explicitly dependent on both inputs.
2734 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2735
49eab32e
JJ
27362011-04-18 Jakub Jelinek <jakub@redhat.com>
2737
2738 PR tree-optimization/48616
2739 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2740 whether the shift is by scalar or vector based on whether all SLP
2741 scalar stmts have the same rhs.
2742
e54170f4
CLT
27432011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2744
2745 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2746 memory operands.
2747
b14ee6c9
RS
27482011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2749
2750 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2751 registers.
2752
10158cd3
JH
27532011-04-17 Jan Hubicka <jh@suse.cz>
2754
2755 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
2756 * cgrpahunit.c (cgraph_finalize_function): Do not set
2757 finalized_by_frontend.
10158cd3
JH
2758 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2759 finalized_by_frontend.
2760
2e9bb6ba
JH
27612011-04-17 Jan Hubicka <jh@suse.cz>
2762
2763 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2764 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2765 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
2766 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2767 method.
2e9bb6ba
JH
2768 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2769 gimple-fold.c
2770 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2771
beb628e1
EB
27722011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2773
2774 PR lto/48538
2775 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2776 is non-null before accessing it.
2777 (input_cgraph): Remove trailing spaces.
2778
3e2fdd24
RE
27792011-04-17 Revital Eres <revital.eres@linaro.org>
2780
2781 * params.def (sms-min-sc): New param flag.
2782 * modulo-sched.c (sms_schedule): Use it.
2783 * doc/invoke.texi (sms-min-sc): Document it.
2784
4c0f7679
JH
27852011-04-17 Jan Hubicka <jh@suse.cz>
2786
2787 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2788 present, also set gimple_call_set_cannot_inline.
2789 * ipa-inline.c: Update toplevel comment.
2790 (MAX_TIME): Remove.
2791 (cgraph_clone_inlined_nodes): Fix linebreaks.
2792 (cgraph_check_inline_limits): Restructure to ...
2793 (caller_growth_limits): ... this one; be more tolerant
2794 on growth in nested inline chains; add explanatory comment;
2795 fix stack accounting thinko introduced by previous patch.
2796 (cgraph_default_inline_p): Remove.
2797 (report_inline_failed_reason): New function.
2798 (can_inline_edge_p): New function.
2799 (can_early_inline_edge_p): New function.
2800 (leaf_node_p): Move upwards in file.
2801 (want_early_inline_function_p): New function.
2802 (want_inline_small_function_p): New function.
2803 (want_inline_self_recursive_call_p): New function.
2804 (cgraph_edge_badness): Rename to ...
2805 (edge_badness) ... this one; fix linebreaks.
2806 (update_edge_key): Update call of edge_baddness; add
2807 detailed dump about queue updates.
2808 (update_caller_keys): Use can_inline_edge_p and
2809 want_inline_small_function_p.
2810 (cgraph_decide_recursive_inlining): Rename to...
2811 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
2812 want_inline_self_recursive_call_p; simplify and remove no longer
2813 valid FIXME.
4c0f7679
JH
2814 (cgraph_set_inline_failed): Remove.
2815 (add_new_edges_to_heap): Use can_inline_edge_p and
2816 want_inline_small_function_p.
2817 (cgraph_decide_inlining_of_small_functions): Rename to ...
2818 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
2819 can/want predicates; cleanup debug ouput; work edges till fibheap
2820 is exhausted and do not stop once unit growth is reached; remove
2821 later loop processing remaining edges.
4c0f7679
JH
2822 (cgraph_flatten): Rename to ...
2823 (flatten_function): ... this one; use can_inline_edge_p
2824 and can_early_inline_edge_p predicates.
2825 (cgraph_decide_inlining): Rename to ...
2826 (ipa_inline): ... this one; remove unreachable nodes before
2827 inlining functions called once; simplify the pass.
2828 (cgraph_perform_always_inlining): Rename to ...
2829 (inline_always_inline_functions): ... this one; use
f60c2554 2830 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
2831 (cgraph_decide_inlining_incrementally): Rename to ...
2832 (early_inline_small_functions): ... this one; simplify
2833 using new predicates; cleanup; make dumps prettier.
2834 (cgraph_early_inlining): Rename to ...
2835 (early_inliner): newer inline regular functions into always-inlines;
2836 fix updating of call stmt summaries.
2837 (pass_early_inline): Update for new names.
2838 (inline_transform): Fix formating.
2839 (gate_cgraph_decide_inlining): Rename to ...
2840 (pass_ipa_inline): ... this one.
2841 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2842 * ipa-inline-analysis.c (dump_inline_summary): Update.
2843 (compute_inline_parameters): Do not compute disregard_inline_limits;
2844 look for mismatching arguments.
2845 (estimate_growth): Fix handlig of non-trivial self recursion.
2846 (inline_read_summary): Do not read info->disregard_inline_limits.
2847 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
2848 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2849 and move all checks into can_inline_edge_p predicate; re-enable code
2850 comparing optimization levels.
4c0f7679
JH
2851 (expand_call_inline): Do not test inline_forbidden_into_p.
2852 * Makefile.in (ipa-inline.o): Update arguments.
2853
54333b7c
RE
28542011-04-17 Revital Eres <revital.eres@linaro.org>
2855
2856 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2857
42c2bf92
RE
28582011-04-17 Revital Eres <revital.eres@linaro.org>
2859
2860 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2861
b183e9e0
MM
28622011-04-17 Michael Matz <matz@suse.de>
2863
2864 PR tree-optimization/48622
2865 PR lto/48645
2866 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2867 in same order as they're written.
2868
b8a17fa2
JDA
28692011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2870
2871 * config/pa/predicates.md: Reorganize and simplify predicates.
2872 Eliminate duplicate code checks.
2873 (arith_operand): Rename to arith14_operand
2874 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2875 * config/pa/pa.md: Use renamed operands.
2876 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2877 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2878 arith11_operand, adddi3_operand, indexed_memory_operand,
2879 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2880 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2881 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2882 move_dest_operand, move_src_operand, prefetch_cc_operand,
2883 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2884 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2885 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2886 div_operand, int5_operand, movb_comparison_operator,
2887 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2888 arith_double_operand, ireg_operand, lhs_lshift_operand,
2889 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2890 integer_store_memory_operand): Likewise.
2891 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2892 (integer_store_memory_operand, read_only_operand,
2893 function_label_operand, borx_reg_operand,
2894 non_hard_reg_operand): Likewise.
2895 (eq_neq_comparison_operator): Delete unused operator.
2896 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2897 function_label_operand.
2898 (emit_move_sequence): Likewise.
2899
8dfb9f16
UB
29002011-04-16 Uros Bizjak <ubizjak@gmail.com>
2901
2902 * config/i386/sse.md (sseunpackmode): New mode attribute.
2903 (ssepackmode): Ditto.
2904 (vec_pack_trunc_<mode>): Macroize expander from
2905 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2906 (vec_unpacks_lo_<mode>): Macroize expander from
2907 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2908 (vec_unpacks_hi_<mode>): Macroize expander from
2909 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2910 (vec_unpacku_lo_<mode>): Macroize expander from
2911 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2912 (vec_unpacku_hi_<mode>): Macroize expander from
2913 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2914 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2915 ix86_expand_sse4_unpack.
2916 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2917
e7f23018
JH
29182011-04-16 Jan Hubicka <jh@suse.cz>
2919
2920 * cgraphbuild.c: Include ipa-inline.h.
2921 (reset_inline_failed): Use initialize_inline_failed.
2922 * cgraph.c: Include ipa-inline.h.
2923 (cgraph_create_node_1): Do not initialize estimated_growth.
2924 (initialize_inline_failed): More to ipa-inline-analysis.c
2925 (dump_cgraph_node): Do not dump inline flags.
2926 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2927 and disregard_inline_limits flags.
2928 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2929 time, size, estimated_growth.
8dfb9f16
UB
2930 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2931 Update.
e7f23018
JH
2932 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2933 DECL_DISREGARD_INLINE_LIMITS.
2934 (cgraph_analyze_function): Do not initialize
2935 node->local.disregard_inline_limits.
2936 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2937 inlinable, versionable and disregard_inline_limits.
2938 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
2939 cgraph_check_inline_limits, cgraph_default_inline_p,
2940 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2941 add_new_edges_to_heap): Update.
2942 (cgraph_decide_inlining_of_small_function): Update; set
2943 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
2944 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2945 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
2946 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2947 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2948 time, size and estimated_growth parameters.
e7f23018
JH
2949 (estimate_edge_growth): Update.
2950 (initialize_inline_failed): Declare.
2951 * ipa-split.c: Include ipa-inline.h
2952 (execute_split_functions): Update.
2953 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2954 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2955 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2956 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2957 estimated_growth to INT_MIN.
2958 (inline_node_duplication_hook): Likewise.
2959 (dump_inline_summary): Dump new fields.
2960 (compute_inline_parameters): Update.
2961 (estimate_edge_time, estimate_time_after_inlining,
2962 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2963 inline_write_summary):
2964 (initialize_inline_failed): Move here from cgraph.c.
2965 * tree-sra.c: Include ipa-inline.h.
2966 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
2967 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2968 ipa-inline.h.
e7f23018 2969
e81b8564
UB
29702011-04-16 Uros Bizjak <ubizjak@gmail.com>
2971
2972 * config/i386/sse.md (V16): New mode iterator.
2973 (VI1, VI8): Ditto.
2974 (AVXMODEQI, AVXMODEDI): Remove.
2975 (sse2, sse3): New mode attribute.
2976 (mov<mode>): Use V16 mode iterator.
2977 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2978 (push<mode>1): Use V16 mode iterator.
2979 (movmisalign<mode>): Ditto.
2980 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2981 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2982 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2983 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2984 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2985 avx_movdqu<avxmodesuffix>.
2986 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2987 *avx_movdqu<avxmodesuffix>.
2988 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2989 avx_lddqu<avxmodesuffix>.
2990 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2991 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2992 avx_movnt<AVXMODEDI:mode>.
2993 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2994 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2995
4743d438
BS
29962011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2997
2998 PR target/48629
2999 * haifa-sched.c (prune_ready_list, schedule_block): Use
3000 sched_pressure_p rather than flag_sched_pressure.
3001
eb229cf4
PH
30022011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3003
3004 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3005 cgraph_get_node instead of cgraph_get_create_node.
3006
2ba172e0
JJ
30072011-04-15 Jakub Jelinek <jakub@redhat.com>
3008
3009 * cfgexpand.c (expand_debug_expr): Use
3010 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3011
63d2a353
MM
30122011-04-15 Michael Matz <matz@suse.de>
3013
3014 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3015 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3016 * function.c (gimplify_parameters): Ditto.
3017 * gimplify.c (gimplify_vla_decl): Ditto.
3018
3019 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3020 (gimple_call_set_alloca_for_var): New inline function.
3021 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
3022 * gimple.c (gimple_build_call_from_tree): Remember
3023 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
3024 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3025
3026 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3027 calls if they were for VLA objects.
3028
dee74c34
MJ
30292011-04-15 Martin Jambor <mjambor@suse.cz>
3030
3031 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3032 of ADR_EXPRs.
3033
8e5837bc
MJ
30342011-04-15 Martin Jambor <mjambor@suse.cz>
3035
3036 PR middle-end/48601
3037 * tree-emutls.c (lower_emutls_function_body): Call
3038 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3039 result is non-NULL.
3040
0dc33c3c
NP
30412011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3042
3043 * c-decl.c (detect_field_duplicates): Call
3044 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3045
edcdea5b
NF
30462011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3047
3048 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3049 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3050 * ipa-pure-const.c (check_stmt): Call it.
3051 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3052
8456558d
RG
30532011-04-15 Richard Guenther <rguenther@suse.de>
3054
3055 PR tree-optimization/48290
3056 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3057 Properly decide inhibiting propagation based on the valueized
3058 operand. Do loop-closed SSA form preserving here ...
3059 (init_copy_prop): ... not here.
3060
266446be
L
30612011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3062
3063 PR target/48612
3064 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3065 (*ieee_smax<mode>3): Likewise.
3066
17465c6e
AK
30672011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3068
3069 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3070 Replace match_operand with match_dup for the third operand in
3071 these expanders.
3072
bce204e5
MK
30732011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3074
3075 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3076 to track processing of conditionals. Update all callers.
3077 (try_combine, simplify_if_then_else): Update.
3078
3162fdf4
MK
30792011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3080
3081 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3082 -fsched-pressure.
3083
79002a57 30842011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 3085
79002a57
GJL
3086 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3087 instead of match_operand for operand 3.
3088
4fd3a105
RS
30892011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3090
3091 * recog.h (insn_operand_data): Add an "allows_mem" field.
3092 * genoutput.c (output_operand_data): Initialize it.
3093 * optabs.c (maybe_legitimize_operand_same_code): New function.
3094 (maybe_legitimize_operand): Use it when matching the original
3095 op->value.
3096
ad19c4be
EB
30972011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3098
3099 * gimplify.c: Fix issues in comments throughout.
3100 (voidify_wrapper_expr): Fix long line.
3101 (build_stack_save_restore): Likewise.
3102 (gimplify_loop_expr): Likewise.
3103 (gimplify_compound_lval): Likewise.
3104 (gimplify_init_ctor_eval): Likewise.
3105 (gimplify_modify_expr_rhs): Likewise.
3106 (omp_notice_threadprivate_variable): Likewise.
3107
b25aa0e8 31082011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 3109
b25aa0e8
EB
3110 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3111 original one if this is not a builtin function.
e7925582 3112
09db7afe
JJ
31132011-04-14 Jakub Jelinek <jakub@redhat.com>
3114
3115 PR target/48605
3116 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3117 offset it as needed based on top 2 bits in operands[3], change
3118 MEM mode to SFmode and mask those 2 bits away from operands[3].
3119
c59633d9
NP
31202011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3121
3122 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3123 change from objc_declare_protocols() to objc_declare_protocol().
3124
5e60198b
UB
31252011-04-14 Uros Bizjak <ubizjak@gmail.com>
3126
3127 * config/i386/sse.md (sse4_1): New mode attribute.
3128 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3129 avx_blend<ssemodesuffix><avxmodesuffix> and
3130 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3131 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3132 avx_blendv<ssemodesuffix><avxmodesuffix> and
3133 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3134 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3135 avx_dp<ssemodesuffix><avxmodesuffix> and
3136 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3137 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3138 (sse4_1_packusdw): Merge with *avx_packusdw.
3139 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3140 (sse4_1_pblendw): Merge with *avx_pblendw.
3141 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3142 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3143 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3144 VF mode iterator.
3145 (sse4_1_round<ssescalarmodesuffix>): Merge with
3146 *avx_round<ssescalarmodesuffix>.
3147 (aesenc): Merge with *avx_aesenc.
3148 (aesenclast): Merge with *avx_aesenclast.
3149 (aesdec): Merge with *avx_aesdec.
3150 (aesdeclast): Merge with *avx_aesdeclast.
3151 (pclmulqdq): Merge with *pclmulqdq.
3152 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3153 New predicate.
3154 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3155
6f197850
L
31562011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3157
3158 PR middle-end/48608
3159 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3160 (align_local_variable): This. Update DECL_ALIGN.
3161 (add_stack_var): Updated.
3162 (expand_one_stack_var): Likewise.
3163
4a5ba3ed
RG
31642011-04-14 Richard Guenther <rguenther@suse.de>
3165
3166 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3167 Remove.
3168 (dse_initialize_block_local_data, dse_leave_block,
3169 record_voperand_set, get_stmt_uid): Likewise.
3170 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3171 (dse_optimize_stmt): Remove voperand set handling code.
3172 Simplify and improve to handle any kind of killing stmt.
3173 (dse_record_phi): Remove.
3174 (dse_enter_block): Simplify.
3175 (tree_ssa_dse): Likewise.
3176 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3177
10a5dd5d
JH
31782011-04-14 Jan Hubicka <jh@suse.cz>
3179
3180 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3181 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3182 (cgraph_local_info): Remove inline_summary.
3183 * ipa-cp.c: Include ipa-inline.h.
3184 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3185 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3186 accesor.
3187 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3188 (input_overwrite_node): Do not set inline summary.
3189 (input_node): Do not stream inline summary.
3190 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3191 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3192 growth; we do not have inline parameters computed for that anyway.
3193 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3194 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3195 (inline_summary_t): New type and VECtor.
3196 (debug_inline_summary, dump_inline_summaries): Declare.
3197 (inline_summary): Use VOCtor.
3198 (estimate_edge_growth): Kill hack computing call stmt size directly.
3199 * lto-section-in.c (lto_section_name): Add inline section.
3200 * ipa-inline-analysis.c: Include lto-streamer.h
3201 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3202 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3203 (inline_summary_vec): Define.
3204 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3205 dump_inline_summaries): New functions.
5e60198b
UB
3206 (estimate_function_body_sizes): Properly compute size/time of outgoing
3207 calls.
3208 (compute_inline_parameters): Alloc inline_summary; do not compute
3209 size/time of incomming calls.
10a5dd5d
JH
3210 (estimate_edge_time): Avoid missing time summary hack.
3211 (inline_read_summary): Read inline summary info.
3212 (inline_write_summary): Write inline summary info.
3213 (inline_free_summary): Free all hooks and inline summary vector.
3214 * lto-streamer.h: Add LTO_section_inline_summary section.
3215 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3216 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3217
b602d918
RS
32182011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3219
3220 * tree-vectorizer.h (vect_strided_store_supported): Add a
3221 HOST_WIDE_INT argument.
3222 (vect_strided_load_supported): Likewise.
3223 (vect_permute_store_chain): Return void.
3224 (vect_transform_strided_load): Likewise.
3225 (vect_permute_load_chain): Delete.
3226 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3227 count argument. Check that the count is a power of two.
3228 (vect_strided_load_supported): Likewise.
3229 (vect_permute_store_chain): Return void. Update after above changes.
3230 Assert that the access is supported.
3231 (vect_permute_load_chain): Likewise.
3232 (vect_transform_strided_load): Return void.
3233 * tree-vect-stmts.c (vectorizable_store): Update calls after
3234 above interface changes.
3235 (vectorizable_load): Likewise.
3236 (vect_analyze_stmt): Don't check for strided powers of two here.
3237
ab4472fa
RG
32382011-04-14 Richard Guenther <rguenther@suse.de>
3239
3240 PR tree-optimization/48590
3241 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3242 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3243 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3244 BUILT_IN_STACK_SAVE.
3245 * tree-ssa-dce.c (propagate_necessity): Handle
3246 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3247
32dabdaf
NP
32482011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3249
3250 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3251 objc_declare_class.
3252
daade206
RG
32532011-04-14 Richard Guenther <rguenther@suse.de>
3254
3255 * tree.h (get_object_alignment_1): Declare.
3256 * builtins.c (get_object_alignment_1): Split out worker from ...
3257 (get_object_alignment): ... here.
3258 * fold-const.c (get_pointer_modulus_and_residue): Use
3259 get_object_alignment_1.
3260
920e8172
RS
32612011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3262
3263 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3264 type parameter.
3265 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3266 parameter. Generalise code to handle arrays as well as vectors.
3267 (vect_setup_realignment): Update accordingly.
3268 * tree-vect-stmts.c (vectorizable_store): Likewise.
3269 (vectorizable_load): Likewise.
3270
5ce1ee7f
RS
32712011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3272
3273 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3274 within the per-copy loop.
3275
6438fe33 32762011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
3277
3278 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3279 in the dump file.
3280
6438fe33 32812011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
3282
3283 * doc/options.texi (Negative): Explicitly mention that the
3284 Negative chain must be circular.
3285
61e46a7d
NF
32862011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3287
3288 * function.h (block_chainon): Declare.
3289 * function.c (block_chainon): Define.
3290
43ea6502 32912011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b
UB
3292 Eric Weddington <eric.weddington@atmel.com>
3293 Georg-Johann Lay <avr@gjlay.de>
3294
f60c2554 3295 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
3296 New Includes
3297 (avr_init_builtins, avr_expand_builtin,
3298 avr_expand_delay_cycles, avr_expand_unop_builtin,
3299 avr_expand_binop_builtin ): New functions.
3300 (avr_builtin_id): New enum
3301 (struct avr_builtin_description): New struct
3302 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3303 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 3304
43ea6502 3305 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 3306 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
3307 UNSPECV_DELAY_CYCLES): new enumeration values
3308 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3309 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3310 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3311 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3312 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3313 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3314 "fmulsu"): New insns
5e60198b 3315
43ea6502
AS
3316 * config/avr/avr-c.c: fix line endings
3317 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3318 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3319 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3320 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3321 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 3322
43ea6502
AS
3323 * doc/extend.texi (AVR Built-in Functions): New node
3324 (Target Builtins): Add documentation of AVR
3325 built-in functions.
3326
8a9b55f3
GJL
33272011-04-14 Georg-Johann Lay <avr@gjlay.de>
3328
3329 PR target/44643
3330 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3331 alone. Error if non-const data has attribute progmem.
3332
94bd1825
NF
33332011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3334
3335 * tree.h (struct tree_constructor): Include tree_typed instead of
3336 tree_common.
3337 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3338 TS_TYPED instead of TS_COMMON.
3339
5e60198b 33402011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
3341
3342 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3343 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3344 (sse2_psadbw): Merge with *avx_psadbw.
3345 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3346 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3347 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3348 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3349 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3350 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3351 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3352 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3353 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3354 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3355 (ssse3_palignrti): Merge with *avx_palignrti.
3356
4b1a4694
NF
33572011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3358
3359 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3360 * tree-ssanames.c (fini_ssanames): VEC_free it.
3361 (make_ssa_name_fn): Update for VECness of free_ssanames.
3362 (release_ssa_name, release_dead_ssa_names): Likewise.
3363 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3364 tree_common.
3365 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3366 TS_TYPED instead of TS_COMMON.
3367
4da3b811
NF
33682011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3369
3370 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3371 statistics_counter_event.
3372 * tree-ssa-copyrename.c (stats): Define.
3373 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3374 statistics_counter_event.
3375 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3376 (bswap_stats, widen_mul_stats): Define.
3377 (insert_reciprocals): Increment rdivs_inserted.
3378 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3379 rfuncs_inserted. Add calls to statistics_counter_event.
3380 (execute_cse_sincos_1): Increment inserted.
3381 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3382 statistics_counter_event.
3383 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3384 of bswap_stats. Add calls to statistics_counter_event.
3385 (convert_mult_to_widen): Increment widen_mults_inserted.
3386 (convert_plusminus_to_widen): Increment maccs_inserted.
3387 (convert_mult_to_fma): Increment fmas_inserted.
3388 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3389 calls to statistics_counter_event.
3390
89fa552a
VM
33912011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3392
3393 PR rtl-optimization/48455
3394 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3395 `temp_costs->mem_cost'.
3396
03dfc36d
JH
33972011-04-13 Jan Hubicka <jh@suse.cz>
3398
3399 * ipa-inline.h: New file.
3400 * ipa-inline-analysis.c: New file. Broken out of ...
3401 * ipa-inline.c: ... this file; update toplevel comment;
3402 include ipa-inline.h
3403 (inline_summary): Move to ipa-inline.h
3404 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3405 ipa-inline-analysis.c.
7d4f8d02
EB
3406 (cgraph_estimate_time_after_inlining): Rename to
3407 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
3408 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3409 to estimate_edge_growth.
3410 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3411 rename to estimate_size_after_inlining.
3412 (cgraph_mark_inline_edge): Update for new naming convention.
3413 (cgraph_check_inline_limits): Likewise.
3414 (cgraph_edge_badness): Likewise.
3415 (cgraph_decide_recursive_inlining): Likewise.
3416 (cgraph_decide_inlining_of_small_functions): Likewise.
3417 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
3418 (cgraph_estimate_growth): Rename to estimate_growth; move to
3419 ipa-inline-analysis.c.
03dfc36d
JH
3420 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3421 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3422 (compute_inline_parameters): Likewise.
3423 (compute_inline_parameters_for_current): Likewise.
3424 (pass_inline_parameters): Likewise.
3425 (inline_indirect_intraprocedural_analysis): Likewise.
3426 (analyze_function): Rename to inline_analyze_function; likewise.
3427 (add_new_function): Move to ipa-inline-analysis.c.
3428 (inline_generate_summary): Likewise.
3429 (inline_read_summary): Likewise.
3430 (inline_write_summary): Likewise.
3431 * Makefile.in (ipa-inline-analysis.c): New file.
3432
7673c962
RO
34332011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3434
3435 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3436 * configure: Regenerate.
3437
9698252f
NF
34382011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3439
3440 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3441 instead of tree_common.
3442 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3443 Likewise.
3444 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3445 TS_TYPED rather than TS_COMMON.
3446 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3447
3a7bfdd5
GJL
34482011-04-01 Georg-Johann Lay <avr@gjlay.de>
3449
3450 PR target/45263
86d83530
GJL
3451 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3452 r20 around calls of __tablejump_elpm__
3a7bfdd5 3453
20790697
JJ
34542011-04-13 Jakub Jelinek <jakub@redhat.com>
3455
3456 PR middle-end/48591
3457 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3458 NULL.
3459 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3460
094d7661
BS
34612011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3462
3463 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3464 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3465 (cfi_vec): New typedef.
3466 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3467 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3468 (cie_cfi_vec): New static variable.
3469 (cie_cfi_head): Delete.
3470 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3471 declaration changed. Use vector rather than list operations.
3472 (new_cfi): Don't initialize the dw_cfi_next field.
3473 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3474 rather than list operations.
3475 (lookup_cfa): Use vector rather than list operations.
3476 (output_cfis): New argument upto. Accept a cfi_vec rather than
3477 a dw_cfi_ref list head as argument. All callers changed.
3478 Iterate over the vector using upto as a maximum index.
3479 (output_all_cfis): New static function.
3480 (output_fde): Use vector rather than list operations. Use the
3481 new upto argument for output_cfis rather than manipulating a
3482 list.
3483 (dwarf2out_begin_prologue): Change initializations to match
3484 new struct members.
3485 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3486 from the vector length rather than searching for the end of a list.
3487 Use output_all_cfis.
3488 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3489
673a5740
NC
34902011-04-13 Nick Clifton <nickc@redhat.com>
3491
3492 * config/rx/rx.md (movmemsi): Do not use this pattern when
3493 volatile pointers are involved.
3494
1ee8b298
UB
34952011-04-13 Uros Bizjak <ubizjak@gmail.com>
3496
3497 * config/i386/sse.md (pinsrbits): Remove.
3498 (sse2_packsswb): Merge with *avx_packsswb.
3499 (sse2_packssdw): Merge with *avx_packssdw.
3500 (sse2_packuswb): Merge with *avx_packuswb.
3501 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3502 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3503 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3504 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3505 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3506 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3507 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3508 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3509 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3510 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3511 (sse2_loadld): Merge with *avx_loadld.
3512 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3513 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3514 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3515 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3516 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3517
81f653d6
NF
35182011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3519
3520 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3521 calling TREE_CHAIN.
3522 * print-tree.c (print_node): Likewise.
3523 * tree-inline.c (copy_tree_r): Likewise.
3524 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3525 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3526 instead of TS_COMMON.
3527 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3528 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3529 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3530 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3531 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3532 ...and these...
3533 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3534 * tree.h: ...here.
3535 (TREE_CHAIN): Check for a TS_COMMON structure.
3536 (TREE_TYPE): Check for a TS_TYPED structure.
3537
ed940a4a
PH
35382011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3539
3540 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3541 cgraph_get_create_node instead of cgraph_node.
3542
eb345401
NP
35432011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3544
3545 * c-parser.c (c_parser_initelt): Updated call to
3546 objc_build_message_expr.
3547 (c_parser_postfix_expression): Likewise.
3548
a6c46762
KT
35492011-04-12 Kai Tietz <ktietz@redhat.com>
3550
3551 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3552 MASK_MS_BITFIELD_LAYOUT bit.
3553
b4ccfed9
JJ
35542011-04-12 Jakub Jelinek <jakub@redhat.com>
3555
3556 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3557 assert it is always true.
3558 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3559 moves.
3560
0d8a2528
NP
35612011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3562
3563 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3564 compiling Objective-C to be more efficient.
3565
06bd234a
AF
35662011-04-12 Axel Freyn <axel-freyn@gmx.de>
3567
3568 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3569 argv_copied.
3570
28569ac3
RS
35712011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3572
3573 * recog.h, genoutput.c, optabs.c: Revert last patch.
3574
ae59e00d
RR
35752011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3576
81b1e7eb
UB
3577 PR target/48090
3578 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 3579
cff1b7e0
RS
35802011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3581
3582 * recog.h (insn_operand_data): Add an "allows_mem" field.
3583 * genoutput.c (output_operand_data): Initialize it.
3584 * optabs.c (maybe_legitimize_operand_same_code): New function.
3585 (maybe_legitimize_operand): Use it when matching the original
3586 op->value.
3587
77059241
RS
35882011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3589
3590 * genpreds.c (process_define_predicate): Move most processing
3591 to gensupport.c. Continue to validate the expression.
3592 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3593 (process_define_predicate): Move processing to gensupport.c.
3594 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3595 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3596 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3597 argument.
3598 (valid_predicate_name_p): New function, split out from old
3599 genpreds.c:process_define_predicate.
3600 (process_define_predicate): New function, combining code from
3601 old genpreds.c and genrecog.c functions.
3602 (process_rtx): Call it for DEFINE_PREDICATE and
3603 DEFINE_SPECIAL_PREDICATE.
3604
6308e208
RS
36052011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3606
3607 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3608 size of a '%A' memory reference.
3609 (T_DREG, T_QREG): New neon_builtin_type_bits.
3610 (arm_init_neon_builtins): Assert that the load and store operands
3611 are neon_struct_operands.
3612 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3613 (NEON_ARG_MEMORY): New builtin_arg.
3614 (neon_dereference_pointer): New function.
3615 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3616 Handle NEON_ARG_MEMORY.
3617 (arm_expand_neon_builtin): Update after above interface changes.
3618 Use NEON_ARG_MEMORY for loads and stores.
3619 * config/arm/predicates.md (neon_struct_operand): New predicate.
3620 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3621 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3622 (V_four_elem): Tweak formatting.
3623 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3624 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3625 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3626 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3627 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3628 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3629 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3630 Use %A in the output template.
3631 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3632 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3633 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3634 the width of the memory access. Remove post-increment.
3635 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3636
e5db8f2f
NC
36372011-04-12 Nick Clifton <nickc@redhat.com>
3638
3639 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3640 instruction for interrupt handlers if the target is the basic V850
3641 architecture.
3642 (expand_epilogue): Likewise.
3643
74f091d6
JJ
36442011-04-12 Jakub Jelinek <jakub@redhat.com>
3645
3646 PR rtl-optimization/48549
3647 * combine.c (propagate_for_debug): Also stop after BB_END of
3648 this_basic_block. Process LAST and just stop processing after it.
3649 (combine_instructions): If last_combined_insn has been deleted,
3650 set last_combined_insn to its PREV_INSN.
3651
f20ca725
RG
36522011-04-12 Richard Guenther <rguenther@suse.de>
3653
3654 PR tree-optimization/46076
3655 * gimple.h (struct gimple_statement_call): Add fntype field.
3656 (gimple_call_fntype): Adjust.
3657 (gimple_call_set_fntype): New function.
3658 * gimple.c (gimple_build_call_1): Set the call function type.
3659 * gimplify.c (gimplify_call_expr): Preserve the function
3660 type the frontend used for the call.
3661 (gimplify_modify_expr): Likewise.
3662 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3663 function type.
3664 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3665 function type.
3666 * tree-ssa.c (useless_type_conversion_p): Function pointer
3667 conversions are useless.
3668
a358e188
MJ
36692011-04-12 Martin Jambor <mjambor@suse.cz>
3670
3671 * cgraph.h (cgraph_node): Remove function declaration.
3672 (cgraph_create_node): Declare.
3673 (cgraph_get_create_node): Likewise.
3674 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3675 Updated all callers.
3676 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3677 the decl does not already exist. Call cgraph_get_create_node instead
3678 of cgraph_node.
3679 (cgraph_get_create_node): New function.
3680 (cgraph_same_body_alias): Update comment.
3681 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3682 assert it does not return NULL.
3683 (cgraph_update_edges_for_call_stmt): Likewise.
3684 (cgraph_clone_edge): Likewise.
3685 (cgraph_create_virtual_clone): Likewise.
3686 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3687 instead of cgraph_node.
3688 (cgraph_add_new_function): Call cgraph_create_node or
3689 cgraph_get_create_node instead of cgraph_node.
3690 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3691 instead of cgraph_node.
3692 (record_eh_tables): Likewise.
3693 (mark_address): Likewise.
3694 (mark_load): Likewise.
3695 (build_cgraph_edges): Call cgraph_get_create_node instead
3696 of cgraph_node.
3697 (rebuild_cgraph_edges): Likewise.
3698 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3699 instead of cgraph_node.
3700 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3701 cgraph_node.
3702 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3703 cgraph_create_node instead of cgraph_node.
3704 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3705 of cgraph_node.
3706 * lto-cgraph.c (input_node): Likewise.
3707 * lto-streamer-in.c (input_function): Likewise.
3708 * varasm.c (mark_decl_referenced): Likewise.
3709 (assemble_alias): Likewise.
3710
fe660d7b
MJ
37112011-04-12 Martin Jambor <mjambor@suse.cz>
3712
3713 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3714 instead of cgraph_node and assert it does not return NULL.
3715 * lto-streamer-in.c (lto_read_body): Likewise.
3716 * omp-low.c (new_omp_context): Likewise.
3717 (create_task_copyfn): Likewise.
3718 * tree-emutls.c (lower_emutls_function_body): Likewise.
3719 * matrix-reorg.c (transform_allocation_sites): Likewise.
3720
bae5cddf
JJ
37212011-04-12 Jakub Jelinek <jakub@redhat.com>
3722
3723 PR c/48552
3724 * c-typeck.c (build_asm_expr): Error out on attempts to use
3725 void type outputs or inputs for constraints that allow reg or
3726 don't allow memory.
3727
06eb52ca
CLT
37282011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3729 Richard Earnshaw <rearnsha@arm.com>
3730
3731 PR target/48250
3732 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3733 to use sign-magnitude offsets. Reject unsupported unaligned
3734 cases. Add detailed description in comments.
3735 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3736 condition from TARGET_32BIT to TARGET_ARM.
3737
648a616b
NF
37382011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3739
3740 * tree.h (struct typed_tree): New.
3741 (struct tree_common): Include it instead of tree_base.
3742 (TREE_TYPE): Update for new location of type field.
3743 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3744 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3745 (union tree_node): Add typed field.
3746 * treestruct.def (TS_TYPED): New.
3747 * lto-streamer.c (check_handled_ts_structures): Handle it.
3748 * tree.c (MARK_TS_TYPED): New macro.
3749 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3750
1e6d1da0
EB
37512011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3752
3753 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3754 (force_nonfallthru): Do not alter the loop nest if no basic block
3755 was created.
3756
37572011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
3758
3759 * config/i386/sse.md (VI): New mode iterator.
3760 (SSEMODEI): Remove.
3761 (AVX256MODEI): Ditto.
3762 (AVXMODEF4P): Ditto.
3763 (avxvecpsmode): Ditto.
3764 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3765 (sse2_andnot<mode>3): New expander.
3766 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3767 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3768 (<any_logic:code><mode>3): Use VI mode iterator.
3769 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3770 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3771 (*andnottf3): Handle AVX three-operand constraints.
3772 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3773
b1372d5d 37742011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 3775 Robert Millan <rmh@gnu.org>
b1372d5d
JM
3776
3777 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3778 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3779 GNU_USER_DYNAMIC_LINKER64): Define.
3780 (REG_NAME): Don't undefine.
3781 (MD_UNWIND_SUPPORT): Undefine.
3782 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3783 (REG_NAME): Don't undefine.
3784 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 3785 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 3786
761c0c6e
JM
37872011-04-11 Joseph Myers <joseph@codesourcery.com>
3788
3789 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3790 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3791
26e0228f
XDL
37922011-04-11 Xinliang David Li <davidxl@google.com>
3793
3794 * value-profile.c (check_ic_target): New function.
3795 (gimple_ic_transform): Sanity check indirect call target.
3796 * gimple-low.c (gimple_check_call_args): Interface change.
3797 (gimple_check_call_matching_types): New function.
3798 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
3799
38002011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3801
3802 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3803 tree-pretty-print.h & realmpfr.h.
3804
a58dfa49
VM
38052011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3806
3807 PR middle-end/48464
3808 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3809 (setup_allocno_and_important_classes): Ditto.
3810
107fd1c1
JM
38112011-04-11 Joseph Myers <joseph@codesourcery.com>
3812
3813 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3814 GNU_USER_DYNAMIC_LINKER.
3815 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3817 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3818 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3819 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3820 GNU_USER_TARGET_OS_CPP_BUILTINS.
3821 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3823 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3825 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3826 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3827 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3828 GNU_USER_TARGET_OS_CPP_BUILTINS.
3829 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3830 GNU_USER_DYNAMIC_LINKER.
3831 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3832 GNU_USER_TARGET_OS_CPP_BUILTINS.
3833 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3834 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3835 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3836 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3837 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3838 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3839 GNU_USER_DYNAMIC_LINKER64): Remove.
3840 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3841 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3842 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3843 GNU_USER_DYNAMIC_LINKER.
3844 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3845 GNU_USER_TARGET_OS_CPP_BUILTINS.
3846 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3847 GNU_USER_TARGET_OS_CPP_BUILTINS.
3848 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3849 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3850 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3851 GNU_USER_TARGET_OS_CPP_BUILTINS.
3852 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3853 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3854 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3855 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3856 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3857 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3858 GNU_USER_DYNAMIC_LINKER.
3859 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3860 GNU_USER_TARGET_OS_CPP_BUILTINS.
3861 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3862 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3863 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3864 GNU_USER_DYNAMIC_LINKER.
3865 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3867 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3868 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3869 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3870 GNU_USER_DYNAMIC_LINKER.
3871 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3872 GNU_USER_DYNAMIC_LINKERN32.
3873 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3874 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3875 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3876 GNU_USER_DYNAMIC_LINKER32.
3877 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3878 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3879 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3880 GNU_USER_DYNAMIC_LINKER.
3881 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3882 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3883 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3884 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 3885 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
3886 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3887 GNU_USER_DYNAMIC_LINKER32.
3888 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3889 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3890 GNU_USER_DYNAMIC_LINKER.
3891 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3892 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3893 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3894 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3895 GNU_USER_DYNAMIC_LINKER64.
3896 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3897 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3898 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3899 GNU_USER_DYNAMIC_LINKER.
3900 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3902 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3903 GNU_USER_DYNAMIC_LINKER.
3904 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3905 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3906 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3907 GNU_USER_DYNAMIC_LINKER32.
3908 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3909 GNU_USER_DYNAMIC_LINKER64.
3910 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3911 GNU_USER_DYNAMIC_LINKER64.
3912 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3913 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3914 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 3916 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 3917
e24609cf
JM
39182011-04-11 Joseph Myers <joseph@codesourcery.com>
3919
3920 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3921 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3922 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3923 GNU_USER_DYNAMIC_LINKER.
3924 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3925 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3926 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3927 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3928 GNU_USER_DYNAMIC_LINKER64.
3929 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3930 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3931 GNU_USER_LINK_EMULATION.
3932 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3933 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3934 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3935 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3936 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3937 CPP_SPEC, CC1_SPEC): Remove.
3938 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3939 (GNU_USER_DYNAMIC_LINKER): Define.
3940 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3941 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3942 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3943 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3944 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3945 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3946 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3947 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3948 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3949 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3950 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3951 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3952 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3953 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3954 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3955 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3956 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3957 GNU_USER_DYNAMIC_LINKER.
3958 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3959 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3960 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3961 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3962 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3963 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3964 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3965 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3966 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 3967 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 3968
b8ce4e94
KT
39692011-04-11 Kai Tietz <ktietz@redhat.com>
3970
3971 PR target/9601
3972 PR target/11772
3973 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3974 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3975 comment.
3976 (ix86_is_msabi_thiscall): Removed.
3977 (ix86_is_type_thiscall): Likewise.
3978 (ix86_get_callcvt): New function.
3979 (ix86_comp_type_attributes): Simplify check.
3980 (ix86_function_regparm): Use ix86_get_callcvt for calling
3981 convention attribute checks.
3982 (ix86_return_pops_args): Likewise.
3983 (ix86_static_chain): Likewise.
3984 (x86_this_parameter): Likewise.
3985 (x86_output_mi_thunk): Likewise.
3986 (ix86_function_type_abi): Optimize check for types without attributes.
3987 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3988 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3989 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3990 by flag-values.
3991 (IX86_BASE_CALLCVT): Helper macro.
3992 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3993 Use ix86_get_callcvt for calling convention attribute checks and avoid
3994 symbol-decoration for stdcall in TARGET_RTD case.
3995 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3996 Likewise.
3997 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3998 for declaration.
3999
798dd0ba
UB
40002011-04-11 Uros Bizjak <ubizjak@gmail.com>
4001
4002 * config/i386/sse.md (VI_128): New mode iterator.
4003 (VI12_128): Rename from SSEMODE12.
4004 (VI14_128): Rename from SSEMODE14.
4005 (VI124_128): New mode iterator.
4006 (VI24_128): Rename from SSEMODE248.
4007 (VI248_128): Rename from SSEMODE248.
4008 (SSEMODE124C8): Remove.
4009 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4010 (*sse2_<plusminus_insn><mode>3): Merge with
4011 *avx_<plusminus_insn><mode>3.
4012 (*mulv8hi3): Merge with *avx_mulv8hi3.
4013 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4014 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4015 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4016 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4017 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4018 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4019 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4020 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4021 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4022 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4023 (*<smaxmin:code>v8hi3): Ditto.
4024 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4025 (*<smaxmin:code>v16qi3): Ditto.
4026 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4027 (*sse2_eq<mode>3): Ditto.
4028 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4029 (*sse2_gt<mode>3): Ditto.
4030 (vcondv2di): Split out of vcond<mode>.
4031 (vconduv2di): Split out of vcondu<mode>.
4032
956011be
RG
40332011-04-11 Richard Guenther <rguenther@suse.de>
4034
4035 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4036 before calling tree_low_cst.
4037
e6313a78
RG
40382011-04-11 Richard Guenther <rguenther@suse.de>
4039
4040 * stor-layout.c (layout_type): Compute all array index size operations
4041 in the original type.
4042 (initialize_sizetypes): Add comment.
4043 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4044
e69d7376
JM
40452011-04-11 Joseph Myers <joseph@codesourcery.com>
4046
4047 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4048
9f9ebcdf
MJ
40492011-04-11 Martin Jambor <mjambor@suse.cz>
4050
4051 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4052 of cgraph_node, handle NULL return value.
4053 (cgraph_global_info): Likewise.
4054 (cgraph_rtl_info): Likewise.
4055 * tree-inline.c (estimate_num_insns): Likewise.
4056 * gimplify.c (unshare_body): Likewise.
4057 (unvisit_body): Likewise.
4058 (gimplify_body): Likewise.
4059 * predict.c (optimize_function_for_size_p): Likewise.
4060 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4061 (call_may_clobber_ref_p_1): Likewise.
4062 * varasm.c (function_section_1): Likewise.
4063 (assemble_start_function): Likewise.
4064
581985d7
MJ
40652011-04-11 Martin Jambor <mjambor@suse.cz>
4066
4067 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4068 of cgraph_node.
4069 * final.c (rest_of_clean_state): Likewise.
4070 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4071 * passes.c (pass_init_dump_file): Likewise.
4072 (execute_all_ipa_transforms): Likewise.
4073 (function_called_by_processed_nodes_p): Likewise.
4074 * predict.c (maybe_hot_frequency_p): Likewise.
4075 (probably_never_executed_bb_p): Likewise.
4076 (compute_function_frequency): Likewise.
4077 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4078 (unnest_nesting_tree_1): Likewise.
4079 (lower_nested_functions): Likewise.
4080 * tree-optimize.c (execute_fixup_cfg): Likewise.
4081 (tree_rest_of_compilation): Likewise.
4082 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4083 * tree-sra.c (ipa_early_sra): Likewise.
4084 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4085 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4086 * ipa.c (record_cdtor_fn): Likewise.
4087 * ipa-inline.c (cgraph_early_inlining): Likewise.
4088 (compute_inline_parameters_for_current): Likewise.
4089 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4090 * ipa-pure-const.c (local_pure_const): Likewise.
4091 * ipa-split.c (split_function): Likewise.
4092 (execute_split_functions): Likewise.
4093 * cgraphbuild.c (build_cgraph_edges): Likewise.
4094 (rebuild_cgraph_edges): Likewise.
4095 (cgraph_rebuild_references): Likewise.
4096 (remove_cgraph_callee_edges): Likewise.
4097 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4098 (verify_cgraph_node): Likewise.
4099 (cgraph_analyze_functions): Likewise.
4100 (cgraph_preserve_function_body_p): Likewise.
4101 (save_inline_function_body): Likewise.
4102 (save_inline_function_body): Likewise.
4103 * tree-inline.c (copy_bb): Likewise.
4104 (optimize_inline_calls): Likewise.
4105
57dbdc5a
MJ
41062011-04-11 Martin Jambor <mjambor@suse.cz>
4107
4108 PR tree-optimization/48195
4109 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4110 ipa_check_create_edge_args.
4111 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4112 ipa_check_create_edge_args.
4113 * ipa-inline.c (inline_generate_summary): Do not call
4114 ipa_check_create_node_params and ipa_check_create_edge_args.
4115 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4116 ipa_check_create_edge_args.
4117
d108e679
AS
41182011-04-09 Anatoly Sokolov <aesok@post.ru>
4119
4120 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4121 instead of loop.
4122 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4123 * function.c (record_hard_reg_sets): Likewise.
4124 * ira.c (compute_regs_asm_clobbered): Likewise.
4125 * sched-deps.c (sched_analyze_1): Likewise.
4126 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4127
3411bc59
XDL
41282011-04-09 Xinliang David Li <davidxl@google.com>
4129
4130 PR tree-optimization/PR48484
4131 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4132 has_valid_pred lazily
4133
b365495a
DS
41342011-04-09 Duncan Sands <baldrick@free.fr>
4135
4136 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4137
68bc509a
EB
41382011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4139
4140 * combine.c (combine_validate_cost): Adjust comments. Set registered
4141 cost of I0 to zero at the end, if any.
4142
041e059f
XDL
41432011-04-08 Xinliang David Li <davidxl@google.com>
4144
68bc509a
EB
4145 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4146 to insane profile data.
041e059f 4147
444b3995
XDL
41482011-04-08 Xinliang David Li <davidxl@google.com>
4149
4150 * ipa-cp.c (ipcp_update_profiling): Correct
4151 negative scale factor due to insane profile data.
4152
6a801cf2
XDL
41532011-04-08 Xinliang David Li <davidxl@google.com>
4154
4155 * final.c (dump_basic_block_info): New function.
4156 (final): Dump basic block.
4157 (final_scan_insn): Remove old dump.
4158
d5f3624e
SK
41592011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4160
68bc509a
EB
4161 PR target/47829
4162 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4163 crtbegin/crtend.
d5f3624e 4164
42821aff
MM
41652011-04-08 Michael Matz <matz@suse.de>
4166
4167 PR middle-end/48389
4168 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4169 functions.
4170 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4171 * rtl.h (rebuild_jump_labels_chain): Declare.
4172 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4173 insns inserted on edges.
4174
ad7be009
JM
41752011-04-08 Joseph Myers <joseph@codesourcery.com>
4176
4177 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4178 * config/arm/arm-arches.def: New.
4179 * config/arm/arm-opts.h: New.
4180 * config/arm/genopt.sh: New.
4181 * config/arm/arm-tables.opt: New (generated).
4182 * config/arm/arm.c (arm_handle_option, arm_target_help,
4183 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4184 (all_architectures): Get most table contents from arm-arches.def.
4185 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4186 arm_selected_tune here.
4187 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4188 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4189 (march=, mcpu=, mtune=): Use Enum and Var.
4190 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4191 (arm.o): Update dependencies.
ecbb6fb7 4192
42821aff 41932011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
4194
4195 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4196 of header_file.
4197 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4198 (write_typed_alloc_defns): Likewise.
4199 (main): Calls write_typed_alloc_defns with output_header.
4200
8d189b3f
VM
42012011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4202
68bc509a 4203 PR inline-asm/48435
8d189b3f
VM
4204 * ira-color.c (setup_profitable_hard_regs): Add comments.
4205 Don't take prohibited hard regs into account.
4206 (setup_conflict_profitable_regs): Rename to
4207 get_conflict_profitable_regs.
4208 (check_hard_reg_p): Check prohibited hard regs.
4209
44f370bf
NF
42102011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4211
4212 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4213 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4214 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4215
483d7ad3
JDA
42162011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4217
4218 PR target/48366
4219 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 4220 move from floating point to shift amount register.
483d7ad3
JDA
4221 (emit_move_sequence): Remove secondary reload support for floating
4222 point to shift amount amount register copies.
4223 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4224 amount register copies.
4225 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4226 register, return false if mode isn't a scalar integer mode.
4227 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4228
97e03fa1
RG
42292011-04-08 Richard Guenther <rguenther@suse.de>
4230
4231 * gimple.c (gimple_call_flags): Remove kludge.
4232
9d40778b
AM
42332011-04-08 Alexander Monakov <amonakov@ispras.ru>
4234
4235 * sel-sched.c (sel_region_init): Move call to
4236 sel_setup_region_sched_flags after setup_current_loop_nest.
4237
19ac7892
AB
42382011-04-08 Andrey Belevantsev <abel@ispras.ru>
4239
4240 PR rtl-optimization/48272
19ac7892
AB
4241 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4242 init_insn_reg_pressure_info. Adjust a caller.
4243 * sched-int.h (init_insn_reg_pressure_info): Declare.
4244 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4245 when sched-pressure is enabled.
4246
0f8c63cc
RG
42472011-04-08 Richard Guenther <rguenther@suse.de>
4248
4249 * gimple.c (gimple_set_modified): Do not queue calls to
4250 MODIFIED_NORETURN_CALLS here ...
4251 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4252
5e5a425e
RG
42532011-04-08 Richard Guenther <rguenther@suse.de>
4254
4255 PR lto/48467
4256 * toplev.c (lang_dependent_init): Do not open asm_out_file
4257 in WPA mode, nor perform debug machinery initialization.
4258 (finalize): Do not unlink asm_out_file in WPA mode.
4259
9bfc434b
RG
42602011-04-08 Richard Guenther <rguenther@suse.de>
4261
4262 * gimple.h (gimple_call_fntype): New function.
4263 (gimple_call_return_type): Use it.
4264 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4265 * gimple-low.c (gimple_check_call_args): Likewise.
4266 * gimple.c (gimple_call_flags): Likewise.
4267 (gimple_call_arg_flags): Likewise.
4268 (gimple_call_return_flags): Likewise.
4269 * tree-cfg.c (verify_gimple_call): Likewise.
4270 (do_warn_unused_result): Likewise.
4271 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4272 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4273
7c1f0b40
DM
42742011-04-08 Dmitry Melnik <dm@ispras.ru>
4275
4276 PR rtl-optimization/48235
4277 * sel-sched.c (code_motion_process_successors): Recompute the last
4278 insn in basic block if control flow changed.
4279 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4280 Update condition for ilist_remove.
4281
ea4d630f
AM
42822011-04-08 Alexander Monakov <amonakov@ispras.ru>
4283
4284 PR rtl-optimization/48302
4285 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4286 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4287 it to record added preheader blocks.
4288 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4289 on to sel_add_loop_preheaders.
4290 (sel_region_init): Move call to setup_current_loop_nest after
4291 sel_init_bbs.
4292
07643d76
AM
42932011-04-08 Alexander Monakov <amonakov@ispras.ru>
4294
4295 PR target/48273
4296 * cfgloop.h (loop_has_exit_edges): New helper.
4297 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4298 non-clonable.
4299 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4300 that have no exit edges.
4301
1f3b2b4e
AM
43022011-04-08 Alexander Monakov <amonakov@ispras.ru>
4303
4304 PR rtl-optimization/48442
4305 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4306 all callers. Adjust assert.
4307
554f1948
JJ
43082011-04-08 Jakub Jelinek <jakub@redhat.com>
4309
4310 PR tree-optimization/48377
4311 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4312 is_packed to true even for types with smaller TYPE_ALIGN than
4313 TYPE_SIZE.
4314
ddf72388
RG
43152011-04-08 Richard Guenther <rguenther@suse.de>
4316
4317 PR bootstrap/48513
4318 * doc/tm.texi: Re-generate.
4319
0c27e2d8
WG
43202011-04-08 Wei Guozhi <carrot@google.com>
4321
4322 PR target/47855
4323 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4324 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4325 * config/arm/arm.md (*push_multi): Change the length computation to
4326 call a C function.
4327
07c5f94e
AS
43282011-04-08 Anatoly Sokolov <aesok@post.ru>
4329
4330 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4331 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4332 * doc/tm.texi: Regenerate.
4333 * system.h (ASM_OUTPUT_BSS): Poison.
4334 * varasm.c (asm_output_bss): Remove function.
4335 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 4336
07c5f94e
AS
4337 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4338 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4339 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4340 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4341 Likewise.
4342 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4343 Likewise.
4344 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4345 Likewise.
4346 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4347
5f2c36e1
JM
43482011-04-07 Joseph Myers <joseph@codesourcery.com>
4349
4350 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4351 EnumValue lines.
4352
39e7722b
JM
43532011-04-07 Joseph Myers <joseph@codesourcery.com>
4354
4355 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4356 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4357 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4358 OPT_mcpu32.
4359 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4360 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4361 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4362 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4363 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4364 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4365 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4366 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4367 options. Don't map other m68k options manually. Don't handle
4368 old-style options as canonical.
4369 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 4370 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 4371
cf103ca4
EB
43722011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4373
4374 * basic-block.h (force_nonfallthru): Move to...
4375 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4376 (force_nonfallthru): ...here.
4377 * cfghooks.c (force_nonfallthru): New function.
4378 * cfgrtl.c (force_nonfallthru): Rename into...
4379 (rtl_force_nonfallthru): ...this.
4380 (commit_one_edge_insertion): Do not set AUX field.
4381 (commit_edge_insertions): Do not discover new basic blocks.
4382 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4383 (cfg_layout_rtl_cfg_hooks): Likewise.
4384 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4385 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4386 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4387
14431f58
AS
43882011-04-07 Anatoly Sokolov <aesok@post.ru>
4389
4390 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4391 Remove macros.
4392
3729983c
UB
43932011-04-07 Uros Bizjak <ubizjak@gmail.com>
4394
4395 * config/i386/sse.md: Update copyright year.
4396 (avxcvtvecmode): Remove.
4397 (sse_movhlps): Merge with *avx_movhlps.
4398 (sse_movlhps): Merge with *avx_movlhps.
4399 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4400 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4401 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4402 (sse_loadhps): Merge with *avx_loadhps.
4403 (sse_storelps): Merge with *avx_storelps.
4404 (sse_loadlps): Merge with *avx_loadlps.
4405 (sse_movss): Merge with *avx_movss.
4406 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4407 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4408 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4409 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4410 (vec_set<mode>_0): Ditto.
4411 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4412 (sse4_1_insertps): Merge with *avx_insertps.
4413 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4414 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4415 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4416 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4417 (sse2_storehpd): Merge with *avx_storehpd.
4418 (sse2_loadhpd): Merge with *avx_loadhpd.
4419 (sse2_loadlpd): Merge with *avx_loadlpd.
4420 (sse2_movsd): Merge with *avx_movsd.
4421 (*vec_concatv2df): Merge with *vec_concatv2df.
4422
4e626909
JJ
44232011-04-07 Jakub Jelinek <jakub@redhat.com>
4424
4425 PR debug/48343
4426 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 4427 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
4428 (try_combine): Add last_combined_insn parameter, pass it instead of
4429 i3 to propagate_for_debug.
4430
3729983c 44312011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
4432
4433 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4434 to handle MDR <-> data register transfers.
4435 (movhi_internal): Likewise.
4436
20c03367
AM
44372011-04-07 Alan Modra <amodra@gmail.com>
4438
4439 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4440 previous stack info.
4441
bf22920b
TV
44422011-04-07 Tom de Vries <tom@codesourcery.com>
4443
4444 PR target/43920
4445 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4446 flow_find_cross_jump. Swap variables to implement backward replacement.
4447 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4448
823918ae
TV
44492011-04-07 Tom de Vries <tom@codesourcery.com>
4450
4451 PR target/43920
4452 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
4453 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4454 and bb2.
4455 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4456 src1 or src2. Redirect edges to the last basic block. Update
4457 frequency and count on multiple basic blocks in case of fallthru.
823918ae 4458
472c95f5
TV
44592011-04-07 Tom de Vries <tom@codesourcery.com>
4460
4461 PR target/43920
4462 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4463 function.
3729983c
UB
4464 (old_insns_match_p): Change return type. Replace return false/true
4465 with return dir_none/dir_both. Use can_replace_by.
4466 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4467 direction from dir_p. Register replacement direction in dir, last_dir
4468 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
4469 merge_dir. Return replacement direction in dir_p.
4470 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4471 return type of old_insns_match_p.
4472 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4473 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4474 flow_find_cross_jump.
4475 * basic-block.h (enum replace_direction): New type.
4476 (flow_find_cross_jump): Add parameter to declaration.
4477
a95d4000
UB
44782011-04-06 Uros Bizjak <ubizjak@gmail.com>
4479
4480 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4481 (AVXMODEDCVTPS2DQ): Ditto.
4482 (VEC_FLOAT_MODE): Ditto.
4483 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4484 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4485 (<any_logic:code><mode>3): Use VF mode iterator.
4486 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4487 Use VF mode iterator.
4488 (copysign<mode>3): Use VF mode iterator.
4489 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4490 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4491 (*<any_logic:code><MODEF:mode>3): Merge with
4492 *avx_<any_logic:code><MODEF:mode>3.
4493 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4494 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4495 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4496 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4497 (sse2_cvtdq2ps): Use %v modifier.
4498 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4499 (avx_cvtps2dq<avxmodesuffix>): Remove.
4500 (sse2_cvtps2dq): Use %v modifier.
4501 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4502 (avx_cvttps2dq<avxmodesuffix>): Remove.
4503 (sse2_cvttps2dq): Use %v modifier.
4504 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4505 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4506 (sse2_cvtsd2siq): Fix insn template.
4507 (sse2_cvtsd2siq_2): Ditto.
4508 (sse2_cvttsd2siq): Ditto.
4509 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4510 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4511
ad01c437
JM
45122011-04-06 Joseph Myers <joseph@codesourcery.com>
4513
4514 * gcov-io.c: Use GCC Runtime Library Exception.
4515
fe846284
JJ
45162011-04-06 Jakub Jelinek <jakub@redhat.com>
4517
4518 PR debug/48466
4519 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4520 as base_reg whatever register reg has been eliminated to, instead
4521 of hardcoding STACK_POINTER_REGNUM.
4522
acce4e77
JM
45232011-04-06 Joseph Myers <joseph@codesourcery.com>
4524
4525 * doc/tm.texi.in: Document C target hooks as separate from general
4526 target hooks.
4527 * doc/tm.texi: Regenerate.
4528 * genhooks.c (struct hook_desc): Add docname field.
4529 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4530 docname field.
4531 (hook_array): Include c-target.def.
4532 (emit_documentation): Use docname field in output.
4533 (emit_init_macros): Take docname argument. Only emit definitions
4534 for hooks matching docname.
4535 (main): Expect additional arguments in all cases. Pass argument
4536 to emit_init_macros.
4537 * target.def: Move initial macro definitions and comments to
4538 target-hooks-macros.h.
4539 (gcc_targetcm): Move to c-family/c-target.def.
4540 * target.h (targetcm): Move declaration to c-family/c-target.h.
4541 * targhooks.c (default_handle_c_option): Move to
4542 c-family/c-opts.c.
4543 * targhooks.h (default_handle_c_option): Move declaration to
4544 c-family/c-common.h.
4545 * target-hooks-macros.h: New file.
4546 * config.gcc (target_has_targetcm): Define and use to add to
4547 c_target_objs and cxx_target_objs.
4548 * config/default-c.c: New file.
4549 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4550 of target.h and target-def.h.
4551 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4552 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4553 darwin_check_cfstring_format_arg): Make static.
4554 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4555 TARGET_STRING_OBJECT_REF_TYPE_P,
4556 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4557 * config/darwin-protos.h (darwin_objc_construct_string,
4558 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4559 declare.
4560 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4561 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 4562 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
4563 * config/t-darwin (darwin-c.o): Update dependencies.
4564 * system.h (TARGET_HAS_TARGETCM): Poison.
4565 * Makefile.in (TARGET_H): Update.
4566 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4567 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4568 (default-c.o): New target.
4569 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 4570 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
4571 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4572 c-target.def.
4573 (build/genhooks.o): Update dependencies.
4574
275b4baa 45752011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 4576
275b4baa
RG
4577 * ipa-inline.c (enum inlining_mode): Remove.
4578 (cgraph_flatten): Use some other token.
4579 (cgraph_edge_early_inlinable_p): New function, split out from ...
4580 (cgraph_perform_always_inlining): New function, split out from ...
4581 (cgraph_decide_inlining_incrementally): ... here.
4582 (cgraph_mark_inline_edge): Adjust.
4583 (cgraph_early_inlining): Re-structure.
4584 (pass_early_inline): Require SSA form.
4585
f15b8bdf 45862011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
4587 Julian Brown <julian@codesourcery.com>
4588 Mark Shinwell <shinwell@codesourcery.com>
4589
4590 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4591 LO_REGS only for Thumb-1.
4592 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4593 be used in short instructions when optimising for size on Thumb-2.
4594
516426da
EB
45952011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4596
4597 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4598 associated with user returns to be preserved.
4599
96621ebf
TG
46002011-04-06 Tristan Gingold <gingold@adacore.com>
4601
f15b8bdf
EB
4602 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4603 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
4604 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4605 if XCOFF_DEBUGGING_INFO.
4606
07c0852e
UB
46072011-04-06 Uros Bizjak <ubizjak@gmail.com>
4608
4609 * config/i386/i386.md (attribute isa): New.
4610 (attribute enabled): New.
4611 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4612 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4613 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4614 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4615 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4616 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4617 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4618 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4619
4620 * config/i386/sse.md (VF): New mode iterator.
4621 (VF1): Ditto.
4622 (VF2): Ditto.
4623 (VF_128): Ditto.
4624 (SSEMODEF4): Remove.
4625 (attribute sse): Handle V8SF and V4DF modes.
4626 (<absneg:code><mode>2): Use VF mode iterator.
4627 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4628 mode iterator.
4629 (<plusminus_insn><mode>3): Use VF mode iterator.
4630 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4631 Use VF mode iterator.
4632 (<sse>_vm<plusminus_insn><mode>3): Merge with
4633 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4634 (mul<mode>3): Use VF mode iterator.
4635 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4636 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4637 mode iterator.
4638 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4639 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4640 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4641 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4642 mode iterator.
4643 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4644 Use VF1 mode iterator.
4645 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4646 (sqrt<VF2:mode>2): New expander.
4647 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4648 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4649 and sqrtv2df2. Use VF mode iterator.
4650 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4651 mode iterator.
4652 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4653 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4654 Use VF1 mode iterator.
4655 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4656 (<smaxmin:code><mode>3): Use VF mode iterator.
4657 (*<smaxmin:code><mode>3_finite): Merge with
4658 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4659 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4660 (<sse>_vm<smaxmin:code><mode>2): Merge with
4661 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4662 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4663 mode iterator.
4664 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4665 mode iterator.
4666 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4667 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4668 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4669 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4670 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4671 VF mode iterator.
4672 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4673 Use VF_128 mode iterator.
4674 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4675 mode iterator.
4676 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4677 VF_128 mode iterator.
4678 (vcond<mode>): Use VF mode iterator.
4679 * config/i386/predicates.md (sse_comparison_operator): Merge with
4680 avx_comparison_float_operator. Do not declare as special_predicate.
4681 * config/i386/i386.c (struct builtin_description): Update for renamed
4682 compare patterns.
4683 (ix86_expand_args_builtin): Ditto.
4684 (ix86_expand_sse_compare_mask): Ditto.
4685
ff5d142c
RG
46862011-04-06 Richard Guenther <rguenther@suse.de>
4687
4688 * tree-inline.c (estimate_num_insns): For calls simply account
4689 for all passed arguments and a used return value.
4690
d7d1d041 46912011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 4692
d7d1d041
RG
4693 PR tree-optimization/47663
4694 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4695 call_stmt_time fields.
4696 (cgraph_edge_inlinable_p): Declare.
4697 (cgraph_edge_recursive_p): New inline function.
4698 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4699 (cgraph_clone_edge): Copy it.
4700 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4701 Account for call stmt time.
4702 (cgraph_estimate_time_after_inlining): Take edge argument.
4703 (cgraph_estimate_edge_growth): Account call stmt size.
4704 (cgraph_estimate_size_after_inlining): Take edge argument.
4705 (cgraph_mark_inline_edge): Adjust.
4706 (cgraph_check_inline_limits): Likewise.
4707 (cgraph_recursive_inlining_p): Remove.
4708 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4709 (cgraph_decide_recursive_inlining): Take edge argument and
4710 adjust.
4711 (cgraph_decide_inlining_of_small_functions): Do not avoid
4712 diags for recursive inlining here.
4713 (cgraph_flatten): Adjust.
4714 (cgraph_decide_inlining_incrementally): Likewise.
4715 (estimate_function_body_sizes): Remove call cost handling.
4716 (compute_inline_parameters): Initialize caller edge call costs.
4717 (cgraph_estimate_edge_growth): New function.
4718 (cgraph_estimate_growth): Use it.
4719 (cgraph_edge_badness): Likewise.
4720 (cgraph_check_inline_limits): Take an edge argument.
4721 (cgraph_decide_inlining_of_small_functions): Adjust.
4722 (cgraph_decide_inlining): Likewise.
4723 * tree-inline.c (estimate_num_insns): Only account for call
4724 return value if it is used.
4725 (expand_call_inline): Avoid diagnostics on recursive inline
4726 functions here.
4727 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4728 (input_edge): Input edge call costs.
4729
2feb95f7
RO
47302011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4733
26fbd9c2
JW
47342011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4735
4736 * doc/invoke.texi (Spec Files): Fix typo.
4737
694dc0ca
EB
47382011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4739
4740 * profile.c (branch_prob): Move declaration of local variable. Remove
4741 obsolete ??? comment. Expand the location explicitly instead of using
4742 the LOCATION_FILE and LOCATION_LINE macros.
4743
4925d0d5
WG
47442011-04-06 Wei Guozhi <carrot@google.com>
4745
4746 PR target/47855
4747 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4748 (arm_cond_branch): Likewise.
4749 (arm_cond_branch_reversed): Likewise.
4750 (arm_jump): Likewise.
4751 (push_multi): Likewise.
4752 * config/arm/constraints.md (Py): New constraint.
4753
f55dfa2f
NF
47542011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4755
4756 PR bootstrap/48471
4757 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4758 Move these...
4759 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4760 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4761 #ifdef DBX_DEBUGGING_INFO.
4762
fca96842
BS
47632011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4764
4765 PR bootstrap/48403
4766 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4767 if old and new states differ.
4768
30b83e38
JM
47692011-04-05 Joseph Myers <joseph@codesourcery.com>
4770
4771 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4772 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4773 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4774 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4775 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4776 mcfv4e): Use Alias.
4777 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4778 ColdFire options to -mcpu= options.
4779
277a9aa5
JL
47802011-04-05 Jeff Law <law@redhat.com>
4781
4782 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4783 check if BB is a successor of LOOP->header and return
4784 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4785
c1e2610e
SB
47862011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4787
4788 * cprop.c (struct reg_use): Remove.
4789 (reg_use_table): Make an array of RTX.
4790 (find_used_regs, constprop_register, local_cprop_pass,
4791 bypass_block): Simplify users of reg_use_table.
4792 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4793 on one of the uses found by find_used_regs.
4794
e532f586
NF
47952011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4796
4797 PR bootstrap/48469
4798 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4799 declaration.
4800
3fb7c055
NF
48012011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4802
4803 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4804 as an rtx.
4805 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4806
b71b43d9
SB
48072011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4808
4809 PR middle-end/48441
4810 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4811
b405b274
NF
48122011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4813
4814 * combine.c: Include obstack.h.
4815 (struct insn_link): Define.
4816 (uid_log_links): Adjust type.
4817 (FOR_EACH_LOG_LINK): New macro.
4818 (insn_link_obstack): Declare.
4819 (alloc_insn_link): Define.
4820 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4821 type of link variables.
4822 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4823 (try_combine, record_promoted_values, distribute_notes): Likewise.
4824 (distribute_links): Likewise. Tweak prototype.
4825 (clear_log_links): Delete.
4826 (adjust_for_new_dest): Call alloc_insn_link.
4827 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4828
6409abe3
NF
48292011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4830
4831 * gcse.c (modify_mem_list): Convert to an array of VECs.
4832 (canon_modify_mem_list, compute_transp): Tweak formatting.
4833 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4834 (load_killed_in_block_p): Likewise.
4835 (record_last_mem_set_info): Likewise.
4836 (clear_modify_mem_tables): Likewise.
4837
170d8157
TV
48382011-04-05 Tom de Vries <tom@codesourcery.com>
4839
4840 PR middle-end/48461
4841 * function.c (emit_use_return_register_into_block): Only define if
4842 HAVE_return.
4843
c5911a55
EB
48442011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4845
4846 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4847
abd016e6
JM
48482011-04-05 Joseph Myers <joseph@codesourcery.com>
4849
4850 * config/rx/rx-opts.h: New.
4851 * config/rx/rx.c (rx_cpu_type): Remove.
4852 (rx_handle_option): Don't assert that global structures are in
4853 use. Access variables via opts pointer. Defer most handling of
4854 OPT_mint_register_. Use error_at.
4855 (rx_option_override): Handle deferred OPT_mint_register_ here.
4856 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4857 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4858 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4859 (rx_cpu_types): New Enum and EnumValue entries.
4860 (mint-register=): Use Defer and use Var accordingly.
4861
1ed13f83
NF
48622011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4863
4864 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4865 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4866 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4867 Move these...
4868 (debug_free_queue, debug_nesting, symbol_queue_index):
4869 ...and these...
4870 * dbxout.c: ...to here. Make static.
4871
6ce1edcf
NF
48722011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4873
4874 * gcse.c (modify_pair): Define. Define a VEC of it.
4875 (canon_modify_mem_list): Convert to an array of VECs.
4876 (free_insn_expr_list_list): Delete.
4877 (clear_modify_mem_tables): Call VEC_free instead.
4878 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4879 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4880 (canon_list_insert, compute_transp): Likewise.
4881
c201ac94
TV
48822011-04-05 Tom de Vries <tom@codesourcery.com>
4883
4884 PR target/43920
4885 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4886 for size.
4887
4c029f40
TV
48882011-04-05 Tom de Vries <tom@codesourcery.com>
4889
4890 PR target/43920
4891 * function.c (emit_use_return_register_into_block): New function.
4892 (thread_prologue_and_epilogue_insns): Use
4893 emit_use_return_register_into_block.
4894
2a562b0a
TV
48952011-04-05 Tom de Vries <tom@codesourcery.com>
4896
4897 PR target/43920
4898 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4899 insn.
4900
0248bceb
TV
49012011-04-05 Tom de Vries <tom@codesourcery.com>
4902
4903 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4904
ffa94123
YZ
49052011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4906
798dd0ba
UB
4907 * config/arm/arm.md (define_constants for unspec): Replace with
4908 define_c_enum.
4909 (define_constants for unspecv): Replace with define_c_enum.
4910 * config/arm/neon.md (define_constants for unspec): Replace with
4911 define_c_enum.
ffa94123 4912
3b8f9b46
RH
49132011-04-04 Richard Henderson <rth@redhat.com>
4914
720cf80f 4915 PR bootstrap/48400
3b8f9b46
RH
4916 * dwarf2out.c (output_line_info): Always emit line info from
4917 at least one section.
4918 (dwarf2out_init): Create text_section_line_info here ...
4919 (set_cur_line_info_table): ... not here.
4920
720cf80f 49212011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
4922
4923 PR target/48380
4924 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 4925 not called.
e5b0e1ca 4926
720cf80f 4927 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 4928
196565d4
SB
49292011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4930
b77f9eab
SB
4931 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4932 (expr_equiv_p): Remove.
4933 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4934 (hash_scan_set): Update call to insert_set_in_table.
4935 (dump_hash_table): Dump <dest, src> pair.
4936 (lookup_set): Simplify. Lookup <dest, src> pair.
4937 (compute_transp): Remove, fold heavily simplified code into...
4938 (compute_local_properties): ...here. Expect COMP and TRANSP
4939 unconditionally.
4940 (find_avail_set): Take set directly from struct expr.
4941 (find_bypass-set): Likewise.
4942 (bypass_block): Likewise.
4943 (cprop_insn): Likewise. Remove redundant INSN_P test.
4944
384d7a55
SB
4945 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4946 checks on form of COND from find_implicit_sets to here.
4947 (find_implicit_sets): Cleanup control flow. Split critical edges
4948 if it exposes implicit sets. Allocate/resize implicit_sets as
4949 necessary.
4950 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4951 changed something. Run df_analyze after find_implicit_sets if any
4952 edges were split. Do not allocate implicit_sets here.
4953
3084ce69
SB
4954 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4955 (gcse_obstack): Renamed to cprop_obstack.
4956 (GNEW, GNEWVEC, GNEWVAR): Remove.
4957 (gmalloc): Remove.
4958 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4959 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4960 (gcse_alloc): Likewise, and rename to cprop_alloc.
4961 (alloc_gcse_men, free_gcse_mem): Remove.
4962 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4963 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4964 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4965
196565d4
SB
4966 * cprop.c (oprs_not_set_p): Remove.
4967 (mark_set, mark_clobber): Remove.
4968 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4969 (reg_not_set_p): New function.
4970 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4971 (cprop_insn): Likewise.
4972 (cprop_jump): Use FOR_EACH_EDGE.
4973
9b69cf83
BS
49742011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4975
4976 PR bootstrap/48403
4977 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4978 (rank_for_schedule): Use scheduled_insns vector instead of
4979 last_scheduled_insn.
4980 (ok_for_early_queue_removal): Likewise.
4981 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4982 we have a dbg_cnt.
4983 (choose_ready): Likewise.
4984 (commit_schedule): Use VEC_iterate.
4985 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4986 a dbg_cnt, use it and ensure the first insn is in the ready list.
4987 (haifa_sched_init): Allocate scheduled_insns.
4988 (sched_extend_ready_list): Don't allocate it; reserve space.
4989 (haifa_sched_finish): Free it.
4990
24f48c2f
JM
49912011-04-04 Joseph Myers <joseph@codesourcery.com>
4992
4993 * optc-gen.awk: Always remove type from Variable entry before
4994 recording in var_seen.
4995
8effe856
EB
49962011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4997
4998 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4999 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5000 call to tidy_fallthru_edges.
5001
413519ae
JM
50022011-04-04 Joseph Myers <joseph@codesourcery.com>
5003
5004 * doc/options.texi (ToLower): Document.
3729983c 5005 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
5006 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5007 * opts.h (cl_option): Add cl_tolower field.
5008 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5009 arguments with lowercase strings.
5010 * config/rx/rx.opt (mcpu=): Add ToLower.
5011 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5012 argument.
5013
7d34a1b0
RS
50142011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5015
5016 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5017
c30e7434
RS
50182011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5019
5020 * config/vax/vax.c: Include reload.h.
5021
112a861d
AS
50222011-04-04 Anatoly Sokolov <aesok@post.ru>
5023
5024 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5025 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5026 (sparc_preferred_reload_class): New function.
5027
e8c6bb74
JJ
50282011-04-04 Jakub Jelinek <jakub@redhat.com>
5029
2aeaa366 5030 PR debug/48401
e8c6bb74
JJ
5031 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5032 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5033
2c081caf
NF
50342011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5035
5036 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5037 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5038
53802f27
AS
50392011-04-03 Anatoly Sokolov <aesok@post.ru>
5040
5041 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5042 (ASM_OUTPUT_ALIGNED_BSS): Define.
5043
e89964e3
MM
50442011-04-03 Michael Matz <matz@suse.de>
5045
5046 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5047 and next_slot members.
5048 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5049 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5050 (lto_streamer_cache_append): Declare.
5051 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5052 unsigned index, remove offset parameter, ensure that we append
5053 or update existing entries.
5054 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5055 parameter, update next_slot for append.
5056 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5057 parameter.
5058 (lto_streamer_cache_insert_at): Likewise.
5059 (lto_streamer_cache_append): New function.
5060 (lto_streamer_cache_lookup): Use unsigned index.
5061 (lto_streamer_cache_get): Likewise.
5062 (lto_record_common_node): Don't test tree_node_can_be_shared.
5063 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5064 (lto_streamer_cache_delete): Don't free offsets member.
5065 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5066 (lto_output_string_with_length): Use lto_output_data_stream.
5067 (lto_output_tree_header): Remove ix parameter, don't write it.
5068 (lto_output_builtin_tree): Likewise.
5069 (lto_write_tree): Adjust callers to above, don't track and write
5070 offset, write unsigned index.
5071 (output_unreferenced_globals): Don't emit all global vars.
5072 (write_global_references): Use unsigned indices.
5073 (lto_output_decl_state_refs): Likewise.
5074 (write_symbol): Likewise.
5075 * lto-streamer-in.c (lto_input_chain): Move earlier.
5076 (input_function): Use unsigned index.
5077 (input_alias_pairs): Don't read and then ignore all global vars.
5078 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5079 don't pass it back, use lto_streamer_cache_append.
5080 (lto_register_var_decl_in_symtab): Use unsigned index.
5081 (lto_register_function_decl_in_symtab): Likewise.
5082 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5083 index.
5084 (lto_get_builtin_tree): Don't read index, use
5085 lto_streamer_cache_append.
5086 (lto_read_tree): Adjust call to lto_materialize_tree.
5087
5088 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5089 don't use function calls in arguments to MIN.
5090
5091 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5092 twice.
5093
5094 * gimple.c (gimple_type_leader_entry): Mark deletable.
5095
b9a5b5b2
AM
50962011-04-03 Alan Modra <amodra@gmail.com>
5097
5098 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5099
ac6a641b
MM
51002011-04-03 Michael Matz <matz@suse.de>
5101
5102 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5103 an integer.
5104 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5105
0038d4e0
MM
51062011-04-03 Michael Matz <matz@suse.de>
5107
e9c18386 5108 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
5109 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5110 without function context.
5111 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5112 current_function_decl and cfun.
5113
91f2fae8
MM
51142011-04-03 Michael Matz <matz@suse.de>
5115
5116 * tree.c (decl_init_priority_insert): Don't create entry for
5117 default priority.
5118 (decl_fini_priority_insert): Ditto.
5119 (fields_compatible_p, find_compatible_field): Remove.
5120 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5121 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5122
da29e070
EB
51232011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5124
5125 * combine.c (try_combine): Remove useless local variable.
5126
4979c28b 51272011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 5128 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
5129
5130 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5131 non-variable offsets and compare the remaining bases of the two
5132 accesses instead of looking for exact same data-ref.
5133
b4ddcaee
KT
51342011-04-02 Kai Tietz <ktietz@redhat.com>
5135
f90298e1
KT
5136 PR target/48416
5137 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5138
b4ddcaee
KT
5139 * i386.c (ix86_is_msabi_thiscall): New helper function.
5140 (ix86_is_type_thiscall): New helper function.
5141 (ix86_comp_type_attributes): Handle thiscall for method-functions
5142 special.
5143 (init_cumulative_args): Likewise.
5144 (find_drap_reg): Likewise.
5145 (ix86_static_chain): Likewise.
5146 (x86_this_parameter): Likewise.
5147 (x86_output_mi_thunk): Likewise.
5148
2a9d769a 51492011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
5150 Nicolas Setton <setton@adacore.com>
5151 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
5152
5153 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5154 (add_gnat_descriptive_type_attribute): New function.
5155 (gen_array_type_die): Call it.
5156 (gen_enumeration_type_die): Likewise.
5157 (gen_struct_or_union_type_die): Likewise.
5158 (modified_type_die): Likewise.
5159 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5160 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5161 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5162
15a03a11
JJ
51632011-04-01 Jakub Jelinek <jakub@redhat.com>
5164
5165 PR bootstrap/48148
5166 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5167 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5168
5169 Revert:
5170 2011-03-17 Richard Guenther <rguenther@suse.de>
5171
5172 PR bootstrap/48148
5173 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5174 origin for decls in other ltrans units.
5175 (input_varpool_node): Likewise.
5176
19228b93
JJ
51772011-04-01 Jakub Jelinek <jakub@redhat.com>
5178
5179 PR middle-end/48335
5180 * expr.c (expand_assignment): Handle all possibilities
5181 if TO_RTX is CONCAT.
e9c18386 5182 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
5183 (store_split_bit_field): If SUBREG_REG (op0) or
5184 op0 itself has smaller mode than word, return it
5185 for offset 0 and const0_rtx for out-of-bounds stores.
5186 If word is const0_rtx, skip it.
5187
88cb339e
N
51882011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5189
5190 * config/h8300/h8300.c (print_operand_address): Rename to...
5191 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5192 Call h8300_print_operand and h8300_print_operand_address instead of
5193 print_operand and print_operand_address. Declare.
5194 (print_operand): Renake to...
5195 (h8300_print_operand): ...this. Make static. Adjust comments.
5196 Call h8300_print_operand instead of print_operand. Declare.
5197 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5198 (h8300_register_move_cost): Likewise.
5199 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5200 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5201 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5202 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5203 * config/h8300/h8300-protos.h (print_operand): Delete.
5204 (print_operand_address): Delete.
5205
756d6ee9
RH
52062011-04-01 Richard Henderson <rth@redhat.com>
5207
5208 PR 48400
5209 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5210 in strict mode before dwarf4. Re-order tests to early out
5211 before switching sections.
5212
ceaaaeab
NF
52132011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5214
5215 * config/h8300/constraints.md: New file.
5216 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5217 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5218 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5219 * config/h8300/predicates.md (bit_operand): Likewise.
5220 (incdec_operand): Use satisfies_constraint_M and
5221 satisfies_constraint_O. Don't use C code block.
5222 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5223 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5224 (compute_mov_length): Use satisfies_constraint_G.
5225 (fix_bit_operand): Use satisfies_constraint_U.
5226 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5227 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5228 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5229 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5230 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5231 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5232 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5233 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5234 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5235 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5236 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5237 (EXTRA_MEMORY_CONSTRAINT): Delete.
5238
08ae38e0
AP
52392011-04-01 Andrew Pinski <pinskia@gmail.com>
5240 Michael Meissner <meissner@linux.vnet.ibm.com>
5241
5242 PR target/48262
5243 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5244 operands, as per the specifications.
5245
5246 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5247 (vec_extract_evenv4sf): Ditto.
5248 (vec_extract_evenv8hi): Ditto.
5249 (vec_extract_evenv16qi): Ditto.
5250 (vec_extract_oddv4si): Ditto.
5251
bdb0b0f6
MW
52522011-03-31 Mark Wielaard <mjw@redhat.com>
5253
5254 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5255 high_pc attribute if the CU has no associated code. Only output
5256 DW_AT_entry_pc for CU if not generating strict dwarf and
5257 dwarf_version < 4.
5258
722279e4
BS
52592011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5260
5261 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5262 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5263 out of ...
5264 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5265 * final.c (final_start_function): Call the new function rather
5266 than using a NULL argument for dwarf2out_frame_debug.
5267
c5dd277d
BS
5268 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5269 that contains the prologue.
5270
ec4efea9
BS
5271 * haifa-sched.c (queue_insn): New arg REASON. All callers
5272 changed. Print it in debugging output.
5273
2a6a0d80
BS
5274 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5275
86014d07
BS
5276 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5277 Split most of the code into...
5278 (begin_move_insn): ... here. New function.
5279 (ebb_sched_info): Add a pointer to it.
5280 * haifa-sched.c (scheduled_insns): New static variable.
5281 (sched_extend_ready_list): Allocate it.
5282 (schedule_block): Use it to record the order of scheduled insns.
5283 Perform RTL changes to move insns only after all scheduling
5284 decisions have been made.
5285 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5286 begin_move_insn field.
5287 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5288 * sched-int.h (struct haifa_sched_info): Remove second argument
5289 from begin_schedule_ready hook. Add new member begin_move_insn.
5290 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5291 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5292
9d701248
BS
5293 * haifa-sched.c (prune_ready_list): New function, broken out of
5294 schedule_block.
5295 (schedule_block): Use it.
5296
1ca1dad5
UW
52972011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5298
5299 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5300
49568e45
KT
53012011-04-01 Kai Tietz <ktietz@redhat.com>
5302
5303 * config.gcc (*-*-mingw*): Allow as option the
5304 posix threading model.
07c0852e 5305 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
5306 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5307 definition.
5308 (CPP_SPEC): Add pthread/no-pthread handling.
5309 (LIB_SPEC): Likewise.
5310 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5311 (LIB_SPEC): Likewise.
5312 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5313 flag to pass -pthread option for shared libgcc build.
5314 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5315 for shared libgcc build.
5316 * config/i386/t-mingw-pthread: New file.
5317 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5318 New define to enable use of library pthread by default.
5319 * config/i386/mingw.opt (pthread): New driver option.
5320 (no-pthread): New driver option.
e9c18386 5321 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
5322 * config/i386/mingw-w64.opt: Likewise.
5323
636b4106
GF
53242011-04-01 Gary Funck <gary@intrepid.com>
5325
5326 * c-decl.c (grokdeclarator): Fix formatting.
5327
f04713ee
RS
53282011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5329
5330 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5331 instead of n_operands.
5332 (set_storage_via_setmem): Likewise.
5333 * optabs.c (maybe_gen_insn): Likewise.
5334 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5335 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5336 (mips_expand_builtin_direct): Likewise.
5337 * config/spu/spu.c (expand_builtin_args): Likewise.
5338
b29387ee
RS
53392011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5340
5341 * recog.h (insn_data_d): Add n_generator_args.
5342 * genoutput.c (data): Likewise.
5343 (output_insn_data): Print it.
5344 (max_opno, num_dups): Delete.
5345 (scan_operands): Just fill in "d->operand[...]".
5346 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5347
e792559a
RS
53482011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5349
5350 * gensupport.h (pattern_stats): New structure.
5351 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5352 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5353 (max_operand_1, max_operand_vec): Delete.
5354 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5355
e8110d6f
NF
53562011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5357
5358 * emit-rtl.c (emit_pattern_after_setloc): New function.
5359 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5360 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5361 (emit_pattern_after): New function.
5362 (emit_insn_after, emit_jump_insn_after): Call it.
5363 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5364 (emit_pattern_before_setloc): New function.
5365 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5366 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5367 Likewise.
5368 (emit_pattern_before): New function.
5369 (emit_insn_before, emit_jump_insn_before): Call it.
5370 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5371
576f85f1
RH
53722011-03-31 Richard Henderson <rth@redhat.com>
5373
5374 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5375 (dw_separate_line_info_entry): Remove.
5376 (enum dw_line_info_opcode): New.
5377 (dw_line_info_entry): Use it.
5378 (dw_line_info_table, dw_line_info_table_p): New.
5379 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5380 (line_info_table, line_info_label_num): Remove.
5381 (line_info_table_in_use): Remove.
5382 (separate_line_info_table): Remove.
5383 (separate_line_info_table_allocated): Remove.
5384 (separate_line_info_table_in_use): Remove.
5385 (LINE_INFO_TABLE_INCREMENT): Remove.
5386 (line_info_label_num): New.
5387 (cur_line_info_table): New.
5388 (text_section_line_info, cold_text_section_line_info): New.
5389 (separate_line_info): New.
5390 (SEPARATE_LINE_CODE_LABEL): Remove.
5391 (print_dwarf_line_table): Remove.
5392 (debug_dwarf): Don't dump it.
5393 (output_one_line_info_table): New.
5394 (output_line_info): Use it.
5395 (new_line_info_table): New.
5396 (set_cur_line_info_table): New.
5397 (dwarf2out_switch_text_section): Use it.
5398 (dwarf2out_begin_function): Likewise.
5399 (push_dw_line_info_entry): New.
5400 (dwarf2out_source_line): Rewrite for new line info tables.
5401 (dwarf2out_init): Remove dead initailizations.
5402
300d83d9
JM
54032011-03-31 Joseph Myers <joseph@codesourcery.com>
5404
5405 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5406 various flags.
5407 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5408 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5409 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5410 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5411 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5412 * opt-functions.awk (flag_init, switch_bit_fields): New.
5413 (switch_flags): Don't handle flags moved to bit-fields. Don't
5414 generate CL_MISSING_OK or CL_SAVE.
5415 * optc-gen.awk: Update to generate bit-field output as well as
5416 flags field.
5417 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5418 bit-field instead of CL_REJECT_DRIVER flag.
5419 * opts-common.c (generate_canonical_option,
5420 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5421 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5422 instead of CL_REJECT_NEGATIVE flag.
5423 * toplev.c (print_switch_values): Use cl_report bit-field instead
5424 of CL_REPORT flag.
5425
d4d73ce2
EB
54262011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5429 a zero minimum index only if it is redundant.
5430
b8faca75
VM
54312011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5432
5433 PR rtl-optimization/48381
5434 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5435 instead of ira_class_hard_reg_index for calculating conflicting
5436 hard registers.
5437
7d11cebe
SB
54382011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5439
5440 * cprop.c: Clean up hash table building.
5441 (reg_avail_info): Remove.
5442 (oprs_available_p): Remove.
5443 (record_last_reg_set_info): Remove.
5444 (record_last_set_info): Remove.
5445 (reg_available_p): New function.
5446 (gcse_constant_p): Do not treat unfolded conditions as constants.
5447 (make_set_regs_unavailable): New function.
5448 (hash_scan_set): Simplify with new reg_available_p.
5449 (compute_hash_table_work): Traverse insns stream only once.
5450 Do not compute reg_avail_info. Traverse insns in reverse order.
5451 Record implicit sets after recording explicit sets from the block.
5452
98faf84f
MM
54532011-03-31 Michael Matz <matz@suse.de>
5454
e9c18386 5455 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 5456
f52d97da
AS
54572011-03-31 Anatoly Sokolov <aesok@post.ru>
5458
5459 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5460 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5461 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5462 (h8300_mode_dependent_address_p): New function.
5463 (h8300_get_index): Make static.
5464
e16b6fd0
JL
54652011-03-31 Jeff Law <law@redhat.com>
5466
10c51983
JL
5467 * reload1.c (elimination_effects): Fix typo in recent change.
5468
e9c18386 5469 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
5470 typo potentially leading to null pointer dereference.
5471
5472 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5473 (setup_save_areas): Corresponding changes to avoid useless
5474 assignments.
5475
5476 * jump.c (reversed_comparison_code_parts): Avoid successive return
5477 statements when REVERSE_CONDITION is defined.
5478
5479 * expr.c (expand_assignment): Avoid useless assignments.
5480 (expand_expr_real_1): Likewise.
5481 (expand_expr_real_2): Avoid useless statements.
5482
5483 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5484
5485 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5486
5487 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5488 statements.
5489
5490 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5491
eb1eb914
JM
54922011-03-31 Joseph Myers <joseph@codesourcery.com>
5493
5494 PR target/47109
5495 * doc/tm.texi.in (TARGET_VERSION): Remove.
5496 * doc/tm.texi: Regenerate.
5497 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5498 * collect2.c (main): Don't use TARGET_VERSION.
5499 * mips-tdump.c (main): Don't use TARGET_VERSION.
5500 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 5501 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
5502 * config/rs6000/vxworksae.h: Remove.
5503 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5504 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5505 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5506 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5507 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5508 * config/arm/arm.h (TARGET_VERSION): Remove.
5509 * config/arm/coff.h (TARGET_VERSION): Remove.
5510 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5511 * config/arm/elf.h (TARGET_VERSION): Remove.
5512 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5513 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5514 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5515 * config/arm/pe.h (TARGET_VERSION): Remove.
5516 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5517 * config/arm/semi.h (TARGET_VERSION): Remove.
5518 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5519 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5520 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5521 * config/avr/avr.h (TARGET_VERSION): Remove.
5522 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5523 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5524 * config/frv/frv.h (TARGET_VERSION): Remove.
5525 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5526 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5527 * config/i386/darwin.h (TARGET_VERSION): Remove.
5528 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5529 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5530 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5531 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5532 * config/i386/gnu.h (TARGET_VERSION): Remove.
5533 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5534 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5535 * config/i386/linux.h (TARGET_VERSION): Remove.
5536 * config/i386/linux64.h (TARGET_VERSION): Remove.
5537 * config/i386/lynx.h (TARGET_VERSION): Remove.
5538 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5539 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5540 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5541 * config/i386/netware.h (TARGET_VERSION): Remove.
5542 * config/i386/nto.h (TARGET_VERSION): Remove.
5543 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5544 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5545 * config/ia64/elf.h (TARGET_VERSION): Remove.
5546 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5547 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5548 * config/ia64/linux.h (TARGET_VERSION): Remove.
5549 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5550 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5551 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5552 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5553 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5554 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5555 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5556 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5557 * config/m68k/linux.h (TARGET_VERSION): Remove.
5558 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5559 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5560 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5561 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5562 * config/mep/mep.h (TARGET_VERSION): Remove.
5563 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5564 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5565 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5566 * config/mips/linux.h (TARGET_VERSION): Remove.
5567 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5568 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5569 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5570 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5571 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5572 * config/pa/pa.h (TARGET_VERSION): Remove.
5573 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5574 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5575 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5576 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5577 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5578 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5579 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5580 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5581 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5582 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5583 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5584 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5585 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5586 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5587 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5588 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5589 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5590 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5591 * config/s390/linux.h (TARGET_VERSION): Remove.
5592 * config/s390/s390.h (TARGET_VERSION): Remove.
5593 * config/s390/tpf.h (TARGET_VERSION): Remove.
5594 * config/score/score.h (TARGET_VERSION): Remove.
5595 * config/sh/linux.h (TARGET_VERSION): Remove.
5596 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5597 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5598 * config/sh/sh.h (TARGET_VERSION): Remove.
5599 * config/sh/sh64.h (TARGET_VERSION): Remove.
5600 * config/sh/superh.h (TARGET_VERSION): Remove.
5601 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5602 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5603 * config/sparc/linux.h (TARGET_VERSION): Remove.
5604 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5605 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5606 TARGET_NAME32, TARGET_NAME): Remove.
5607 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5608 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5609 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5610 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5611 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5612 * config/spu/spu.h (TARGET_VERSION): Remove.
5613 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5614 * config/v850/v850.h (TARGET_VERSION): Remove.
5615 * config/vax/linux.h (TARGET_VERSION): Remove.
5616 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5617 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5618 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5619
ace31bca
EB
56202011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5621
5622 PR target/48142
5623 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5624 frame-related from frame-unrelated adjustments to the stack pointer.
5625
76f9db36
JJ
56262011-03-31 Jakub Jelinek <jakub@redhat.com>
5627
5628 * common.opt (fdebug-types-section): Move earlier.
5629 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5630
b7826465
AT
56312011-03-31 Andreas Tobler <andreast@fgznet.ch>
5632
5633 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5634 var.
5635
1290e54c
NF
56362011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5637
5638 * tree.h (CASE_CHAIN): Define.
5639 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5640 (gimple_redirect_edge_and_branch): Likewise.
5641
bddc98e1
VM
56422011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5643
5644 PR middle-end/48367
5645 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5646 calculation.
5647
c865e437
JL
56482011-03-30 Jeff Law <law@redhat.com>
5649
b3750213 5650 * PR bootstrap/48371
c865e437
JL
5651 * reload1.c (reload): Fix botch in last change.
5652
5653 * reload.h (struct reload): Fix typo introduced in last change.
5654
2cdf9574
JM
56552011-03-30 Joseph Myers <joseph@codesourcery.com>
5656
5657 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5658 Undocumented. Remove help text.
5659 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5660 -mhard-float.
5661
666a21a2
JM
56622011-03-30 Joseph Myers <joseph@codesourcery.com>
5663
5664 * doc/options.texi (NegativeAlias): Document.
5665 (Alias): Mention NegativeAlias.
5666 * opt-functions.awk: Handle NegativeAlias.
e9c18386 5667 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
5668 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5669 * opts.h (CL_NEGATIVE_ALIAS): Define.
5670 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5671 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5672 OPT_mspe_.
5673 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5674 Alias entries.
5675 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5676 mno-spe and mno-isel instead of mspe=no and -misel=no.
5677
0fa4e351
MW
56782011-03-29 Mark Wielaard <mjw@redhat.com>
5679
5680 * common.opt (fdebug-types-section): New flag.
5681 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5682 * dwarf2out.c (use_debug_types): New define.
5683 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5684 (print_die): Guard output of type unit signatures using
5685 use_debug_types.
5686 (build_abbrev_table): Replace assert of dwarf_version >= 4
5687 with assert on use_debug_types.
5688 (size_of_die): Likewise.
5689 (unmark_dies): Likewise.
5690 (value_format): Decide AT_ref_external form on use_debug_types.
5691 (output_die): Replace dwarf_version version check guard with
5692 use_debug_types where appropriate.
5693 (modified_type_die): Likewise.
5694 (gen_reference_type_die): Likewise.
5695 (dwarf2out_start_source_file): Likewise.
5696 (dwarf2out_end_source_file): Likewise.
5697 (prune_unused_types_walk_attribs): Likewise.
5698 (dwarf2out_finish): Likewise.
5699
4648deb4
VM
57002011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5701
5702 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5703
4f431835
RS
57042011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5705
5706 PR rtl-optimization/48332
5707 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5708 mode of input operand N and modeN to its actual mode.
5709
f2034d06
JL
57102011-03-30 Jeff Law <law@redhat.com>
5711
5712 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5713 define accessor macro.
5714 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5715 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5716 (reg_equiv_init): Likewise.
5717 (reg_equivs_size): New variable.
5718 (reg_equiv_init_size): Remove.
5719 (allocate_initial_values): Move prototype to here from....
5720 * integrate.h (allocate_initial_values): Remove prototype.
5721 * integrate.c: Include reload.h.
5722 (allocate_initial_values): Corresponding changes.
5723 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5724 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5725 (update_equiv_regs): Corresponding changes.
5726 (ira): Corresponding changes.
5727 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5728 (push_secondary_reload): Corresponding changes.
5729 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5730 (make_memloc, find_reloads_address): Corresponding changes.
5731 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5732 (find_reloads_address_1): Corresponding changes.
5733 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5734 (refers_to_regno_for_reload_p): Corresponding changes.
5735 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5736 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5737 * reload1.c: Include ggc.h.
5738 (grow_reg_equivs): New function.
5739 (replace_pseudos_in, reload): Corresponding changes.
5740 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5741 (eliminate_regs_1, elimination_effects): Corresponding changes.
5742 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5743 (delete_output_reload): Likewise.
5744 * caller-save.c (mark_referenced_regs): Corresponding changes.
5745 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5746 * frv/predicates.md (frv_load_operand): Corresponding changes.
5747 * microblaze/microblaze.c (double_memory_operand): Corresponding
5748 changes.
5749 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5750 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 5751 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
5752 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5753 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5754 changes.
5755 * pa/pa.c (emit_move_sequence): Corresponding changes.
5756 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5757
159b81b0
RS
57582011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5759
5760 PR target/47551
5761 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5762 structure modes. Don't check neon_vector_mem_operand for
5763 vector or structure modes.
5764
a6217191
RS
57652011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5766 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5767
5768 PR target/43590
5769 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5770 operand 1 and reshuffle the operands to match.
5771 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5772
bd837408
CS
57732011-03-30 Christian Schüler <cschueler@gmx.de>
5774
6955d771 5775 PR driver/48208
bd837408 5776 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 5777
6955d771 5778 PR driver/48260
bd837408
CS
5779 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5780 handler function.
5781 * config/darwin.opt: Added '-arch' option.
5782
e9c0470a
NC
57832011-03-30 Nick Clifton <nickc@redhat.com>
5784
5785 * config/rx/rx.md: Add peepholes and patterns to combine
5786 extending loads and simple arithmetic instructions.
5787 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
5788 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5789 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 5790 modes to use pre-decrement and post-increment addressing.
e9c18386 5791 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 5792 addresses.
e9c18386
UB
5793 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5794 (rx_memory_move_cost): Adjust cost of stores.
5795 (rx_adjust_insn_length): New function.
e9c0470a 5796
8a87e7ab
JJ
57972011-03-30 Jakub Jelinek <jakub@redhat.com>
5798
5799 PR c/48305
5800 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5801 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5802 matching arg00/arg01 types.
5803
12486e03
EB
58042011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5805
5806 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5807 last_location to UNKNOWN_LOCATION.
5808
0b99eef6
L
58092011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5810
5811 PR target/48349
5812 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5813 FLOAT_SSE_REGS.
5814
023592aa
JM
58152011-03-30 Joseph Myers <joseph@codesourcery.com>
5816 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5817
5818 PR bootstrap/48337
5819 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5820 Init(PROCESSOR_V7).
5821 (sparc_cpu): Likewise.
5822 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5823 PROCESSOR_V7.
5824
ad3b266b
VM
58252011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5826
5827 PR target/48336
5828 PR middle-end/48342
5829 PR rtl-optimization/48345
5830 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5831 hard regs for given mode from profitable regs when doing secondary
5832 allocation.
5833
633c9126
JL
58342011-03-29 Jeff Law <law@redhat.com>
5835
5836 PR bootstrap/48327
5837 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5838 do_not_duplicate field.
5839 (lookup_redirection_data): Corresponding changes.
5840 (create_duplicates): Always create a template block.
5841 (redirect_edges): Remove code which reused the original block
5842 when it was going to become unreachable code.
5843 (thread_block): Don't set do_not_duplicate field.
5844
eb50f63a
JM
58452011-03-29 Joseph Myers <joseph@codesourcery.com>
5846
5847 * lto-opts.c (register_user_option_p, lto_register_user_option):
5848 Make type argument unsigned.
5849 * lto-streamer.h (lto_register_user_option): Make type argument
5850 unsigned.
5851 * opth-gen.awk: Make CL_* macros unsigned.
5852 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5853 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5854 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5855 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5856 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5857 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5858 (find_opt): Make lang_mask argument unsigned.
5859
76763a6d
VM
58602011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5861
5862 PR rtl-optimization/48331
5863 PR rtl-optimization/48334
5864 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5865 for any used algorithm.
5866
5c82436e
VM
58672011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5868
5869 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5870 to parent_max.
5871
7a81008b
UB
58722011-03-29 Uros Bizjak <ubizjak@gmail.com>
5873
5874 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5875 (alpha_option_override): Don't set alpha_sr_alias_set.
5876 (emit_frame_store_1): Use gen_frame_mem rather than calling
5877 set_mem_alias_set.
5878 (alpha_expand_epilogue): Ditto.
5879
86c8d1f6
IR
58802011-03-29 Ira Rosen <ira.rosen@linaro.org>
5881
5882 PR tree-optimization/48290
5883 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5884 vectorization, check that relevant phis in the basic block after
5885 the inner loop are really inner loop's exit phis.
5886
0d12220f
RS
58872011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5888
e8cf17e7 5889 PR debug/48190
0d12220f
RS
5890 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5891 (cached_dw_loc_list_def): New structure.
5892 (cached_dw_loc_list): New typedef.
5893 (cached_dw_loc_list_table): New variable.
5894 (cached_dw_loc_list_table_hash): New function.
5895 (cached_dw_loc_list_table_eq): Likewise.
5896 (add_location_or_const_value_attribute): Take a bool cache_p.
5897 Cache the list when the parameter is true.
5898 (gen_formal_parameter_die): Update caller.
5899 (gen_variable_die): Likewise.
5900 (dwarf2out_finish): Likewise.
5901 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5902 while generating debug info for the decl.
5903 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5904 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5905 (resolve_addr): Cache the result of resolving a chain of
5906 location lists.
5907
1756cb66
VM
59082011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5909
5910 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5911 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 5912
1756cb66
VM
5913 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5914 after regstat_init_n_sets_and_refs.
5915
5916 * ira.c: Add more comments at the top.
5917 (setup_stack_reg_pressure_class, setup_pressure_classes):
5918 Add comments how we compute the register pressure classes.
5919 (setup_allocno_and_important_classes): Add more comments.
5920 (setup_class_translate_array, reorder_important_classes)
5921 (setup_reg_class_relations): Add comments.
5922
5923 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5924 start of the file.
5925
5926 * ira-color.c: Add 2011 to the Copyright line.
5927 (assign_hard_reg): Add more comments.
5928 (improve_allocation): Ditto.
5929
5930 * ira-costs.c: Add 2011 to the Copyright line.
5931 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5932 comments.
5933 (setup_regno_cost_classes_by_mode): Ditto.
5934
5935 Initial patches from ira-improv branch:
5936
5937 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5938
f60c2554 5939 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
5940 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5941 (ira_create_allocno): Remove initialization of
5942 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5943 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5944 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5945 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5946 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5947 Initialize ALLOCNO_ADD_DATA.
5948 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5949 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5950 ALLOCNO_REG.
5951 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5952 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5953
5954 * ira.c (ira_reallocate): Remove.
5955 (setup_pressure_classes): Call
5956 ira_init_register_move_cost_if_necessary. Use
5957 ira_register_move_cost instead of ira_get_register_move_cost.
5958 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5959 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5960
5961 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5962 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5963 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5964 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5965 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5966 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5967 Fix formatting.
7a81008b 5968 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
5969 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5970 (struct allocno_color_data): New.
5971 (allocno_color_data_t): New typedef.
5972 (allocno_color_data): New definition.
5973 (ALLOCNO_COLOR_DATA): New macro.
5974 (struct object_color_data): New.
5975 (object_color_data_t): New typedef.
5976 (object_color_data): New definition.
5977 (OBJECT_COLOR_DATA): New macro.
5978 (update_copy_costs, calculate_allocno_spill_cost): Call
5979 ira_init_register_move_cost_if_necessary. Use
5980 ira_register_move_cost instead of ira_get_register_move_cost.
5981 (move_spill_restore, update_curr_costs): Ditto.
5982 (allocno_spill_priority): Make it inline.
7a81008b 5983 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
5984 (struct coalesce_data, coalesce_data_t): New.
5985 (allocno_coalesce_data): New definition.
5986 (ALLOCNO_COALESCE_DATA): New macro.
5987 (merge_allocnos, coalesced_allocno_conflict_p): Use
5988 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5989 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5990 (coalesce_allocnos): Ditto.
5991 (setup_coalesced_allocno_costs_and_nums): Ditto.
5992 (collect_spilled_coalesced_allocnos): Ditto.
5993 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5994 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5995 (coalesce_spill_slots): Ditto.
5996 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5997 free allocno_coalesce_data.
5998
5999 * ira-conflicts.c: Fix formatting.
6000 (process_regs_for_copy): Call
6001 ira_init_register_move_cost_if_necessary. Use
6002 ira_register_move_cost instead of ira_get_register_move_cost.
6003 (build_object_conflicts): Optimize.
6004
6005 * ira-costs.c (record_reg_classes): Optimize. Call
6006 ira_init_register_move_cost_if_necessary. Use
6007 ira_register_move_cost, ira_may_move_in_cost, and
6008 ira_may_move_out_cost instead of ira_get_register_move_cost and
6009 ira_get_may_move_cost.
6010 (record_address_regs): Ditto.
6011 (scan_one_insn): Optimize.
6012 (find_costs_and_classes): Optimize.
6013 (process_bb_node_for_hard_reg_moves): Call
6014 ira_init_register_move_cost_if_necessary. Use
6015 ira_register_move_cost instead of ira_get_register_move_cost.
6016
6017 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6018 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6019 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6020 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6021 definitions.
6022 (ira_initiate_emit_data, ira_finish_emit_data)
6023 (create_new_allocno): New functions.
7a81008b 6024 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
6025 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6026 Use ira_register_move_cost instead of ira_get_register_move_cost.
6027
6028 * ira-int.h: Fix some comments.
7a81008b
UB
6029 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6030 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
6031 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6032 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6033 add_data.
6034 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6035 bitfield after mode. Make hard_regno a short int. Make
6036 hard_regno short. Remove first_coalesced_allocno and
6037 next_coalesced_allocno. Move mem_optimized_dest_p,
6038 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6039 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6040 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6041 temp, colorable_p. Add new member add_data.
6042 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6043 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6044 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6045 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6046 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6047 (ALLOCNO_ADD_DATA): New macro.
6048 (ira_emit_data_t): New typedef.
6049 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6050 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6051 from struct ira_allocno.
6052 (ALLOCNO_EMIT_DATA): New macro.
6053 (ira_allocno_emit_data, allocno_emit_reg): New.
6054 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 6055 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
6056 (OBJECT_ADD_DATA): New macro.
6057 (ira_reallocate): Remove.
6058 (ira_initiate_emit_data, ira_finish_emit_data): New.
6059 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6060 (ira_init_register_move_cost_if_necessary): New.
6061 (ira_object_conflict_iter_next): Merge into
6062 ira_object_conflict_iter_cond.
7a81008b 6063 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 6064
f60c2554 6065 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
6066 ira_init_register_move_cost_if_necessary. Use
6067 ira_register_move_cost instead of ira_get_register_move_cost.
6068
6069 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6070
6071 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6072
6073 * ira-costs.c: Fix formatting.
6074 (cost_classes, cost_classes_num): Remove.
6075 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6076 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6077 (cost_classes_del, cost_classes_htab): New.
6078 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6079 (initiate_regno_cost_classes, setup_cost_classes): New.
6080 (setup_regno_cost_classes_by_aclass): New.
7a81008b 6081 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
6082 (record_reg_classes): Use regno_cost_classes instead of
6083 cost_classes. Move checking opposite operand up.
6084 (record_address_regs): Use regno_cost_classes
6085 instead of cost_classes.
6086 (scan_one_insn): Ditto. Use always general register.
6087 (print_allocno_costs): Use regno_cost_classes instead of
6088 cost_classes.
6089 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6090 (find_costs_and_classes): Set up cost classes for each registers.
6091 Use also their mode for this. Use regno_cost_classes instead of
6092 cost_classes.
6093 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6094 cost_classes.
6095 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6096 (ira_costs, ira_set_pseudo_classes): Call
6097 initiate_regno_cost_classes and finish_regno_cost_classes.
6098
6099 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6100
6101 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6102
6103 * target.def (ira_cover_classes): Remove.
6104
7a81008b 6105 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
6106
6107 * doc/tm.texi.in: Ditto.
6108
6109 * ira-conflicts.c: Remove mentioning cover classes from the file.
6110 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 6111 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
6112
6113 * targhooks.c (default_ira_cover_classes): Remove.
6114
6115 * targhooks.h (default_ira_cover_classes): Ditto.
6116
6117 * haifa-sched.c: Remove mentioning cover classes from the file.
6118 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6119 ira_pressure_classes and ira_pressure_classes_num instead of
6120 ira_reg_class_cover_size and ira_reg_class_cover. Use
6121 sched_regno_pressure_class instead of sched_regno_cover_class.
6122 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6123 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6124
6125 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6126 classes from the file.
6127 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6128 (struct object_hard_regs, struct object_hard_regs_node): New.
6129 (struct ira_object): New members profitable_hard_regs,
6130 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6131 (struct ira_allocno): Rename cover_class to aclass. Rename
6132 cover_class_cost and updated_cover_class_cost to class_cost and
6133 updated_class_cost. Remove splay_removed_p and
6134 left_conflict_size. Add new members colorable_p.
6135 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6136 (ALLOCNO_COLORABLE_P): New macro.
6137 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6138 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6139 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6140 (OBJECT_...): Rename parameter C to O.
6141 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6142 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6143 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6144 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6145 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6146 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6147 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6148 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6149 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6150 x_ira_reg_class_subunion.
6151 (ira_max_memory_move_cost, ira_max_register_move_cost)
6152 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6153 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6154 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 6155 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
6156 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6157 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6158 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6159 (ira_tune_allocno_costs_and_cover_classes): Rename to
6160 ira_tune_allocno_costs.
6161 (ira_debug_hard_regs_forest): New.
6162 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6163 (ira_object_conflict_iter_next): Fix comments.
7a81008b 6164 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
6165 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6166 cover_class to aclass.
6167 (ira_allocate_and_accumulate_costs): Ditto.
6168 (ira_allocate_and_set_or_copy_costs): Ditto.
6169
6170 * opts.c (decode_options): Remove ira_cover_class check.
6171
6172 * ira-color.c: Remove mentioning cover classes from the file. Use
6173 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6174 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6175 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6176 (splay-tree.h): Remove include.
6177 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6178 before copy_freq_compare_func.
6179 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6180 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6181 New definitions.
6182 (hard_regs_roots, hard_regs_node_vec): Ditto.
6183 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6184 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6185 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6186 (create_new_object_hard_regs_node): Ditto.
6187 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 6188 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
6189 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6190 Ditto.
6191 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6192 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6193 (remove_unused_object_hard_regs_nodes): Ditto.
6194 (enumerate_object_hard_regs_nodes): Ditto.
6195 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6196 (object_hard_regs_subnode_t): Ditto.
6197 (struct object_hard_regs_subnode): Ditto.
6198 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6199 (setup_object_hard_regs_subnode_index): Ditto.
6200 (get_object_hard_regs_subnodes_num): Ditto.
6201 (form_object_hard_regs_nodes_forest): Ditto.
6202 (finish_object_hard_regs_nodes_tree): Ditto.
6203 (finish_object_hard_regs_nodes_forest): Ditto.
6204 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 6205 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
6206 (pseudos_have_intersected_live_ranges_p): Rename to
6207 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6208 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6209 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6210 (update_copy_costs): Remove assert. Skip cost update if the hard
6211 reg does not belong the class.
6212 (assign_hard_reg): Process only profitable hard regs.
6213 (uncolorable_allocnos_num): Make it scalar.
6214 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6215 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6216 and ira_reg_class_max_nregs.
6217 (bucket_allocno_compare_func): Check frequency first.
6218 (sort_bucket): Add compare function as a parameter.
6219 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6220 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6221 (push_allocno_to_stack): Rewrite for checking new allocno
6222 colorability.
7a81008b 6223 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
6224 (push_only_colorable): Pass new parameter to sort_bucket.
6225 (push_allocno_to_spill): Remove.
6226 (allocno_spill_priority_compare): Make it inline and rewrite.
6227 (splay_tree_allocate, splay_tree_free): Remove.
6228 (allocno_spill_sort_compare): New function.
6229 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6230 build and use splay tree. Choose first allocno in uncolorable
6231 allocno bucket to spill. Remove setting spill cost.
6232 (all_conflicting_hard_regs): Remove.
6233 (setup_allocno_available_regs_num): Check only profitable hard
6234 regs. Print info about hard regs nodes.
6235 (setup_allocno_left_conflicts_size): Remove.
6236 (put_allocno_into_bucket): Don't call
7a81008b 6237 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
6238 (improve_allocation): New.
6239 (color_allocnos): Call setup_profitable_hard_regs,
6240 form_object_hard_regs_nodes_forest, improve_allocation,
6241 finish_object_hard_regs_nodes_forest. Setup spill cost.
6242 (print_loop_title): Use pressure classes.
6243 (color_allocnso): Ditto.
6244 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6245 and allocnos_for_spilling.
6246 (ira_sort_regnos_for_alter_reg): Don't setup members
6247 {first,next}_coalesced_allocno.
6248 (color): Remove allocating and freeing removed_splay_allocno_vec.
6249 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6250 prohibited_class_mode_regs.
6251
6252 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6253 formatting.
6254 (update_allocno_pressure_excess_length): Use pressure classes.
6255 (inc_register_pressure, dec_register_pressure): Check for pressure
6256 class.
6257 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6258 pressure class. Use ira_reg_class_nregs instead of
6259 ira_reg_class_max_nregs.
6260 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6261 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6262 (single_reg_class): Use ira_reg_class_nregs instead of
6263 ira_reg_class_max_nregs.
6264 (process_bb_node_lives): Use pressure classes.
6265
6266 * ira-emit.c: Remove mentioning cover classes from the file. Use
6267 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6268 (change_loop): Use pressure classes.
6269 (modify_move_list): Call ira_set_allocno_class instead of
6270 ira_set_allocno_cover_class.
6271
6272 * ira-build.c: Remove mentioning cover classes from the file. Use
6273 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6274 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6275 ALLOCNO_UPDATED_CLASS_COST instead of
6276 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6277 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6278 (ira_create_allocno): Remove initialization of
6279 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6280 ALLOCNO_COLORABLE_P.
6281 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6282 Update conflict regs for the objects.
6283 (create_cap_allocno): Remove assert. Don't propagate
6284 ALLOCNO_AVAILABLE_REGS_NUM.
6285 (ira_free_allocno_costs): New function.
6286 (finish_allocno): Change a part of code into call of
6287 ira_free_allocno_costs.
6288 (low_pressure_loop_node_p): Use pressure classes.
6289 (object_range_compare_func): Don't compare classes.
6290 (setup_min_max_conflict_allocno_ids): Ditto.
6291
6292 * loop-invariant.c: Remove mentioning cover classes from the file.
6293 Use ira_pressure_classes and ira_pressure_classes_num instead of
6294 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
6295 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6296 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6297 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
6298 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6299 STACK_REG_COVER_CLASS.
6300 (get_regno_cover_class): Rename to get_regno_pressure_class.
6301 (move_loop_invariants): Initialize and finalize regstat.
6302
6303 * ira.c: Remove mentioning cover classes from the file. Add
6304 comments about coloring without cover classes. Use ALLOCNO_CLASS
6305 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6306 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6307 setup_class_subset_and_memory_move_costs.
6308 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6309 (setup_cover_and_important_classes): Rename to
6310 setup_allocno_and_important_classes.
6311 (setup_class_translate_array): New.
6312 (setup_class_translate): Call it for allocno and pressure classes.
6313 (cover_class_order): Rename to allocno_class_order.
6314 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6315 of ira_class_translate.
6316 (reorder_important_classes): Set up ira_important_class_nums.
6317 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6318 (print_class_cover): Rename to print_classes. Add parameter.
6319 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6320 Print pressure classes too.
6321 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6322 setup_reg_subclasses.
7a81008b 6323 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
6324 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6325 (setup_prohibited_class_mode_regs): Use
7a81008b 6326 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
6327 (clarify_prohibited_class_mode_regs): New function.
6328 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6329 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6330 (ira_init_once): Initialize them.
6331 (free_register_move_costs): Process them.
6332 (ira_init): Move calls of find_reg_classes and
6333 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6334 Call clarify_prohibited_class_mode_regs.
6335 (ira_no_alloc_reg): Remove.
6336 (too_high_register_pressure_p): Use pressure classes.
6337
6338 * sched-deps.c: Remove mentioning cover classes from the file.
6339 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6340 ira_pressure_classes and ira_pressure_classes_num instead of
6341 ira_reg_class_cover_size and ira_reg_class_cover.
6342 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6343 sched_regno_pressure_class instead of sched_regno_cover_class.
6344 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6345 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6346
6347 * ira.h: Add 2010 to Copyright.
6348 (ira_no_alloc_reg): Remove external.
6349 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6350 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6351 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6352 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6353 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6354 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6355 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6356 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6357 x_ira_no_alloc_regs.
7a81008b 6358 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
6359 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6360 ira_allocno_classes_num and ira_allocno_classes.
6361 (ira_class_translate): Rename to ira_allocno_class_translate.
6362 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6363 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6364 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6365 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6366 (ira_no_alloc_regs): New.
6367
6368 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6369 classes from the file. Use ALLOCNO_CLASS instead of
6370 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6371 ALLOCNO_COVER_CLASS_COST.
6372 (regno_cover_class): Rename to regno_aclass.
6373 (record_reg_classes): Use ira_reg_class_subunion instead of
6374 ira_reg_class_union.
6375 (record_address_regs): Check overflow.
6376 (scan_one_insn): Ditto.
7a81008b 6377 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
6378 (print_pseudo_costs): Use REG_N_REFS.
6379 (find_costs_and_classes): Use classes intersected with them on the
6380 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6381 ira_reg_class_union. Use ira_allocno_class_translate and
6382 regno_aclass instead of ira_class_translate and regno_cover_class.
6383 Modify code for finding regno_aclass. Setup preferred classes for
6384 the next pass.
6385 (setup_allocno_cover_class_and_costs): Rename to
6386 setup_allocno_class_and_costs. Use regno_aclass instead of
6387 regno_cover_class. Use ira_set_allocno_class instead of
6388 ira_set_allocno_cover_class.
6389 (init_costs, finish_costs): Use regno_aclass instead of
6390 regno_cover_class.
6391 (ira_costs): Use setup_allocno_class_and_costs instead of
6392 setup_allocno_cover_class_and_costs.
6393 (ira_tune_allocno_costs_and_cover_classes): Rename to
6394 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6395 by processing objects. Use ira_reg_class_max_nregs instead of
6396 ira_reg_class_nregs.
6397
6398 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6399
6400 * sched-int.h: Remove mentioning cover classes from the file.
6401 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6402
6403 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6404 classes from the file.
6405 (struct reg_pref): Rename coverclass into allocnoclass.
6406 (reg_cover_class): Rename to reg_allocno_class.
6407
7a81008b 6408 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
6409
6410 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6411
6412 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6413
6414 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6415
6416 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6417
6418 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6419
6420 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6421
6422 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6423
6424 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6425
6426 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6427
6428 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6429 (i386_ira_cover_classes): Ditto.
6430
6431 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6432
6433 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6434
6435 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6436
6437 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6438
6439 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6440
6441 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6442
6443 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6444 (mips_ira_cover_classes): Ditto.
6445
6446 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6447
6448 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6449
6450 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6451
6452 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6453
6454 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6455
6456 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6457 (IRA_COVER_CLASSES_VSX): Ditto.
6458
6459 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6460 (rs6000_ira_cover_classes): Ditto.
6461
6462 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6463
6464 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6465
6466 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6467
6468 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6469
6470 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6471
6472 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6473
6474 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6475
6476 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6477
6478 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6479
6480 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6481
2b80199f
JJ
64822011-03-29 Jakub Jelinek <jakub@redhat.com>
6483
71dae1fe
JJ
6484 PR debug/48253
6485 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6486 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6487 dw_fde_unlikely_section_end_label, cold_in_std_section,
6488 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6489 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6490 fields.
6491 (output_fde): Use dw_fde_second_{begin,end} if second is
6492 true, otherwise dw_fde_{begin,end}.
6493 (output_call_frame_info): Test dw_fde_second_begin != NULL
6494 instead of dw_fde_switched_sections.
6495 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6496 fields, initialize new fields. Initialize in_std_section
6497 unconditionally from the first partition.
6498 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6499 dw_fde_second_begin is non-NULL.
6500 (dwarf2out_switch_text_section): Stop initializing removed
6501 dw_fde_struct fields, initialize new fields, initialize
6502 also dw_fde_end here. Set dw_fde_switch_cfi even when
6503 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6504 (struct var_loc_list_def): Add last_before_switch field.
6505 (arange_table, arange_table_allocated, arange_table_in_use,
6506 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6507 (size_of_aranges): Count !in_std_section and !second_in_std_section
6508 hunks in fdes, instead of looking at arange_table_in_use.
6509 (output_aranges): Add aranges_length argument, don't call
6510 size_of_aranges here. Instead of using aranges_table*
6511 emit ranges for fdes when !in_std_section resp.
6512 !second_in_std_section.
6513 (dw_loc_list): Break ranges crossing section switch.
6514 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 6515 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
6516 (gen_subprogram_die): Don't call add_arange. Use
6517 dw_fde_{begin,end} for first partition and if switched
6518 section dw_fde_second_{begin,end} for the second.
6519 (var_location_switch_text_section_1,
6520 var_location_switch_text_section): New functions.
6521 (dwarf2out_begin_function): Initialize cold_text_section even
6522 when function_section () isn't text_section.
6523 (prune_unused_types): Don't walk arange_table.
6524 (dwarf2out_finish): Don't needlessly test
6525 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6526 If info_section_emitted, call size_of_aranges and if it indicates
6527 non-empty .debug_aranges, call output_aranges with the computed
6528 size. Stop using removed dw_fde_struct fields, use
6529 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6530 for second.
6531
2b80199f
JJ
6532 PR debug/48203
6533 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6534 create ENTRY_VALUE if incoming or address of incoming's MEM
6535 is a hard REG.
6536 * dwarf2out.c (mem_loc_descriptor): Don't emit
6537 DW_OP_GNU_entry_value of DW_OP_fbreg.
6538 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6539 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6540 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6541 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6542 ENTRY_VALUE_EXPs.
6543 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6544 is a REG_P or MEM_P with REG_P address, compute hash directly
6545 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6546 (preserve_only_constants): Don't clear VALUES forwaring
6547 ENTRY_VALUE to some other VALUE.
6548
8a445129
RS
65492011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6550
6551 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6552 instead of GEN_INT.
6553
c82fee88
EB
65542011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6555
6556 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6557 block before expanding the statement.
6558 (expand_gimple_stmt_1): Likewise. Set them here...
6559 (expand_gimple_stmt): ...and not here. Tidy.
6560 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6561 unknown.
6562
e45425ec
SB
65632011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6564
6565 * Makefile.in: New rule for cprop.o.
6566 * gcse.c: Move constant/copy propagation to cprop.c.
6567 (compute_local_properties): Only handle expression tables.
6568 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6569 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6570 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6571 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 6572 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
6573 compute_cprop_data, find_used_regs, try_replace_reg,
6574 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6575 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6576 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6577 find_bypass_set, reg_killed_on_edge, bypass_block,
6578 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6579 execute_rtl_cprop, pass_rtl_cprop): Move to...
6580 * cprop.c: ...here. New file, constant/copy propagation for RTL
6581 moved from gcse.c to here with minor cleanups in duplicated code.
6582
c09d5426
L
65832011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6584
6585 * config/i386/i386.c (flag_opts): Fix a typo in
6586 -mavx256-split-unaligned-store.
6587
9eaa7740
AS
65882011-03-28 Anatoly Sokolov <aesok@post.ru>
6589
6590 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6591 LIBCALL_VALUE): Remove macros.
6592 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6593 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6594 (h8300_function_value, h8300_libcall_value,
6595 h8300_function_value_regno_p): New functions.
6596
dcec2be2
AS
65972011-03-28 Anatoly Sokolov <aesok@post.ru>
6598
6599 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6600
520af9ec
JL
66012011-03-28 Jeff Law <law@redhat.com>
6602
6603 * tree-ssa-threadupdate.c (redirect_edges): Call
6604 create_edge_and_update_destination_phis as needed.
6605 (create_edge_and_update_destination_phis): Accept new BB argument.
6606 All callers updated.
6607 (thread_block): Do not update the profile when threading around
6608 intermediate blocks.
6609 (thread_single_edge): Likewise.
6610 (determine_bb_domination_status): If BB is not a successor of the
6611 loop header, return NONDOMINATING.
6612 (register_jump_thread): Note when we register a jump thread around
6613 an intermediate block.
6614 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6615 (thread_across_edge): Use it.
6616
7450b54f
TG
66172011-03-28 Tristan Gingold <gingold@adacore.com>
6618
6619 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6620 when for_return is 2.
6621
649beb33
JL
66222011-03-28 Jeff Law <law@redhat.com>
6623
6624 * var-tracking.c (canonicalize_values_mark): Delete unused
6625 lhs assignment.
6626 (canonicalize_values_star, set_variable_part): Likewise.
6627 (clobber_variable_part, delete_variable_part): Likewise.
6628
d5b8da97
SB
66292011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6630
6631 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6632
322dd859
MJ
66332011-03-28 Martin Jambor <mjambor@suse.cz>
6634
6635 * tree-inline.c (expand_call_inline): Do not check that destination
6636 node is analyzed.
6637 (optimize_inline_calls): Assert that destination node is analyzed.
6638 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6639 not call tree_lowering_passes.
6640 * cgraph.h (cgraph_analyze_function): Declare.
6641 * cgraphunit.c (cgraph_analyze_function): Make public.
6642
aa53e58b
JM
66432011-03-28 Joseph Myers <joseph@codesourcery.com>
6644
6645 * config/sparc/sparc-opts.h: New.
6646 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6647 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6648 (sparc_option_override): Store processor_type enumeration rather
6649 than string in cpu_default. Remove name and enumeration from
6650 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6651 without using sparc_select. Use target_flags_explicit instead of
6652 fpu_option_set.
6653 * config/sparc/sparc.h (enum processor_type): Move to
6654 sparc-opts.h.
6655 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6656 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6657 HeaderInclude entry.
6658 (mcpu=, mtune=): Use Var and Enum.
6659 (sparc_processor_type): New Enum and EnumValue entries.
6660
dd350eba
RO
66612011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6662 Iain Sandoe <iains@gcc.gnu.org>
6663
6664 PR target/48245
6665 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6666
1b29f05e
EB
66672011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6668
6669 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6670 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6671 Insert new statements at it in lieu of STMT.
6672 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6673 * tree-vect-stmts.c (vectorizable_store): Likewise.
6674 (vectorizable_load): Likewise.
6675
506e6808
UB
66762011-03-28 Uros Bizjak <ubizjak@gmail.com>
6677
6678 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6679 (divtf3): Ditto.
6680 (multf3): Ditto.
6681 (subtf3): Ditto.
6682
2e939ee9
L
66832011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6684
6685 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6686 unaligned 256bit load/store.
6687 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6688 (*avx_movdqu<avxmodesuffix>): Likewise.
6689
5e85ab88
JDA
66902011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6691
6692 PR target/48288
6693 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6694 * config/pa/pa.md (iordi3): Use new predicate in expander.
6695 (iorsi3): Likewise.
6696
47be3d6d
AS
66972011-03-27 Anatoly Sokolov <aesok@post.ru>
6698
506e6808 6699 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 6700 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
6701 * config/mips/mips-protos.h (mips_function_value): Remove.
6702 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
6703 (mips_function_value_1): ... this. Make static. Handle receiving
6704 the function type in 'fn_decl_or_type' argument.
6705 (mips_function_value, mips_libcall_value,
6706 mips_function_value_regno_p): New function.
6707 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6708 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6709
d253656a
L
67102011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6711
6712 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6713 and -mavx256-split-unaligned-store.
6714 (ix86_option_override_internal): Split 32-byte AVX unaligned
6715 load/store by default.
6716 (ix86_avx256_split_vector_move_misalign): New.
6717 (ix86_expand_vector_move_misalign): Use it.
6718
6719 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6720 -mavx256-split-unaligned-store.
6721
6722 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6723 256bit load/store. Generate unaligned store on misaligned memory
6724 operand.
6725 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6726 256bit load/store.
6727 (*avx_movdqu<avxmodesuffix>): Likewise.
6728
6729 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6730 -mavx256-split-unaligned-store.
6731
1ea9206a
RS
67322011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6733
6734 PR target/38598
6735 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6736 Update commentary.
6737
b99ce2a8
RS
67382011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6739
6740 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6741 opno arguments with an expand_operand. Use create_input_operand.
6742 (mips_prepare_builtin_target): Delete.
6743 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6744 functions.
6745 (mips_expand_builtin_direct): Use create_output_operand and
6746 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6747 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6748 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6749
69d52339
IR
67502011-03-27 Ira Rosen <ira.rosen@linaro.org>
6751
6752 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6753 function.
6754 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6755
ba5e9aca
EB
67562011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6757
6758 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6759 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6760 basic blocks and call commit_edge_insertions directly.
6761 (fixup_abnormal_edges): Move from here to...
6762 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6763 on the edges and return whether some have actually been inserted.
6764 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6765 compensation code.
6766
5d369d58
AB
67672011-03-26 Andrey Belevantsev <abel@ispras.ru>
6768
6769 PR rtl-optimization/48144
6770 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6771 (merge_expr_data): ... here.
6772 (av_set_intersect): Rename to av_set_code_motion_filter.
6773 Update all callers. Call merge_history_vect when an expression
6774 is found in both sets.
6775 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6776
f082c000
AM
67772011-03-26 Alan Modra <amodra@gmail.com>
6778
6779 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6780 cmodel medium addresses.
6781 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6782 64-bit gpr loads and stores.
6783 (rs6000_secondary_reload_ppc64): New function.
6784 * config/rs6000/rs6000-protos.h: Declare it.
6785 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6786
8ac5e12e
AM
67872011-03-26 Alan Modra <amodra@gmail.com>
6788
6789 PR target/47487
6790 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6791 GNU Go in traceback table.
6792
c2654ded
RH
67932011-03-25 Richard Henderson <rth@redhat.com>
6794
6795 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6796 if there are exactly 6 operands.
6797 (set_storage_via_setmem): Similarly.
6798
ba78087b
KT
67992011-03-25 Kai Tietz <ktietz@redhat.com>
6800
6801 * collect2.c (write_c_file_stat): Handle backslash
6802 as right-hand directory separator.
6803 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6804 checking just for slash.
6805 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6806 instead of checking for trailing slash.
6807 * gcc.c (record_temp_file): Use filename_cmp instead
6808 of strcmp.
6809 (do_spec_1): Likewise.
6810 (replace_outfile_spec_function): Likewise.
6811 (is_directory): Use filename_ncmp instead of strncmp.
6812 (print_multilib_info): Likewise.
6813 * gcov.c (find_source): Use filename_cmp instead
6814 instead of strcmp.
6815 (make_gcov_file_name): Fix order of slash/backslash
6816 checks.
6817 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6818 (add_standard_paths): Likewise.
6819 * mips-tfile.c (saber_stop): Handle backslash.
6820 * prefix.c (update_path): Use filename_ncmp instead of
6821 strncmp.
6822 * profile.c (output_location): Use filename_cmp instead
6823 of strcmp.
6824 * read-md.c (handle_toplevel_file): Handle backslash.
6825 * tlink.c (frob_extension): Likewise.
6826 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6827 strcmp.
6828 * tree-dump.c (dequeue_and_dump): Handle backslash.
6829 * tree.c (get_file_function_name): Likewise.
6830 * gengtype.c (read_input_list): Likewise.
6831 (get_file_realbasename): Likewise.
6832 (get_output_file_with_visibility): Use filename_cmp
6833 instead of strcmp.
6834
75f6ec9a
RS
68352011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6836
6837 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6838 case to VFPv1.
6839
6c4e2997
NF
68402011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6841
6842 * fold-const.c (expr_location_or): New function.
6843 (fold_truth_not_expr): Call it.
6844
0edf1bb2
JL
68452011-03-25 Jeff Law <law@redhat.com>
6846
6847 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6848 va_end.
6849 * c-family/c-common.c (def_fn_type): Likewise.
6850 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6851 * emit-rtl.c (gen_rtvec): Likewise.
6852 * lto/lto-lang.c (def_fn_type): Likewise.
6853
fdc2de95
RG
68542011-03-25 Richard Guenther <rguenther@suse.de>
6855
6856 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6857 also generate copies.
6858 (fini_copy_prop): Handle constant values properly.
6859
21385db0
JJ
68602011-03-25 Jakub Jelinek <jakub@redhat.com>
6861
6862 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6863 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6864 (hash_loc_operands, compare_loc_operands): Handle
6865 DW_OP_GNU_entry_value.
6866
6510e8bb
KT
68672011-03-25 Kai Tietz <ktietz@redhat.com>
6868
6869 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6870 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6871 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6872 comment and use macro TARGET_64BIT_MS_ABI instead.
6873 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6874 and change default behavior for 32-bit MS_ABI.
6875 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6876 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6877 32-bit, too.
6878 (ix86_cfun_abi): Likewise.
6879 (ix86_maybe_switch_abi): Adjust comment.
6880 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6881 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6882 instead of checking for SYSV_ABI.
6883 (ix86_nsaved_sseregs): Likewise.
6884 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6885 to 16 bytes.
6886 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6887 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6888 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6889 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6890 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6891
34019e28
RG
68922011-03-25 Richard Guenther <rguenther@suse.de>
6893
6894 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6895 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6896 (verify_gimple): Remove.
6897 * tree-cfg.c (verify_gimple_call): Merge verification
6898 from verify_stmts.
6899 (verify_gimple_phi): Merge verification from verify_stmts.
6900 (verify_gimple_label): New function.
6901 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6902 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6903 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6904 (verify_stmts): Rename to verify_gimple_in_cfg.
6905 (verify_gimple_in_cfg): New function.
6906 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6907 * tree-ssa.c (verify_ssa): Likewise.
6908 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6909
605896f5
RG
69102011-03-25 Richard Guenther <rguenther@suse.de>
6911
6912 * passes.c (init_optimization_passes): Add FRE pass after
6913 early SRA.
6914
7baa7c13
BS
69152011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6916 Andrew Stubbs <ams@codesourcery.com>
6917
6918 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6919 for Cortex-A8.
6920 (arm_movdi_vfp_cortexa8): New pattern.
6921 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6922 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6923 instructions when tuning for Cortex-A8. Set attribute "arch".
6924 * config/arm/arm.md: Move include arm-tune.md up a bit.
6925 (define_attr "arch"): Add "onlya8" and "nota8" values.
6926 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6927
45dbce1b
NF
69282011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6929
4ff08abf 6930 PR bootstrap/48282
45dbce1b
NF
6931 Revert:
6932 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6933
6934 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6935 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6936 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6937 * passes.c (init_optimization_passes): Move
6938 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6939
ac9a30ae
KT
69402011-03-25 Kai Tietz <ktietz@redhat.com>
6941
6942 * c-typeck.c (comptypes_internal): Replace target
6943 hook call of comp_type_attributes by version in tree.c file.
6944 * gimple.c (gimple_types_compatible_p_1): Likewise.
6945 * tree-ssa.c (useless_type_conversion_p): Likewise.
6946 * tree.c (build_type_attribute_qual_variant): Likewise.
6947 (attribute_value_equal): New static helper function.
6948 (comp_type_attributes): New function.
6949 (merge_attributes): Use attribute_value_equal for comparison.
6950 (attribute_list_contained): Likewise.
6951 * tree.h (comp_type_attributes): New prototype.
6952
afdac116
RG
69532011-03-25 Richard Guenther <rguenther@suse.de>
6954
6955 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6956 of complex types at -O0.
6957 (verify_gimple_assign_binary): Likewise.
6958 (verify_gimple_assign_ternary): Likewise.
6959
ec6165f8
MW
69602011-03-24 Mark Wielaard <mjw@redhat.com>
6961
6962 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6963 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6964
2a5ac39a
MW
69652011-03-24 Mark Wielaard <mjw@redhat.com>
6966
6967 PR debug/48041
6968 * dwarf2out.c (output_abbrev_section): Only write table when
6969 abbrev_die_table_in_use > 1.
6970
e533b2a4
RH
69712011-02-24 Richard Henderson <rth@redhat.com>
6972
6973 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6974 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6975 (alpha_expand_unaligned_load_words): Use extql.
6976 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6977 (emit_insxl): Handle all modes for consistency.
6978
0b2a7367
RH
69792011-02-24 Richard Henderson <rth@redhat.com>
6980
6981 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6982 (alpha_expand_unaligned_load): Likewise.
6983 (alpha_expand_unaligned_store): Likewise.
6984 (alpha_expand_unaligned_load_words): Likewise.
6985 (alpha_expand_unaligned_store_words): Likewise.
6986 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6987 (alpha_split_lock_test_and_set_12): Likewise.
6988 (print_operand, alpha_fold_builtin_extxx): Likewise.
6989 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6990 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6991 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6992 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6993 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6994 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6995 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6996 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6997 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6998 (extwl, extll, extql): Similarly.
6999 (inswh, inslh, insqh): Similarly.
7000 (mskbl, mskwl, mskll, mskql): Similarly.
7001 (mskwh, msklh, mskqh): Similarly.
7002
315b2bef
RH
70032011-02-24 Richard Henderson <rth@redhat.com>
7004
7005 * config/alpha/alpha.md (attribute isa): Add er, ner.
7006 (attribute enabled): Handle them.
7007 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7008
67102517
RH
70092011-02-24 Richard Henderson <rth@redhat.com>
7010
7011 * config/alpha/alpha.md (attribute isa): Add vms.
7012 (attribute enabled): Handle it.
7013 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7014 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7015 (*movtf): Rename from *movtf_internal for consistency.
7016 (*movsi): Merge with *movsi_nt_vms.
7017 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7018 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7019 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7020 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7021
6aba5cb4
RH
70222011-02-24 Richard Henderson <rth@redhat.com>
7023
7024 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7025 (extendqisi2, extendhisi2): Likewise.
7026 (extendqidi2): Simplify BWX/non-BWX expansions.
7027 (extendhidi2): Similarly.
7028
bdfb351b
RH
70292011-02-24 Richard Henderson <rth@redhat.com>
7030
7031 * config/alpha/alpha.md (attribute isa): New.
7032 (attribute enabled): New.
7033 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7034 (zero_extendqisi2, zero_extendqidi2): Similarly.
7035 (zero_extendhisi2, zero_extendhidi2): Similarly.
7036 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7037
6abe71eb
RH
70382011-02-24 Richard Henderson <rth@redhat.com>
7039
7040 * config/alpha/predicates.md (input_operand): Revert last change;
7041 update comment to mention 32-bit VMS rather than Windows.
7042
7114321e
NF
70432011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7044
7045 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7046 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7047 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7048 * passes.c (init_optimization_passes): Move
7049 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7050
c8679567
EB
70512011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7052
7053 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7054
27173058
UB
70552011-03-24 Uros Bizjak <ubizjak@gmail.com>
7056
7057 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7058 correctly.
7059
6f0c9f06
JJ
70602011-03-24 Jakub Jelinek <jakub@redhat.com>
7061
7062 PR debug/48204
7063 * simplify-rtx.c (simplify_const_unary_operation): Call
7064 real_convert when changing mode class with FLOAT_EXTEND.
7065
662666e5
NC
70662011-03-24 Nick Clifton <nickc@redhat.com>
7067
7068 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7069 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7070 * config/rx/rx.c (rx_option_override): Set align_jumps,
7071 align_loops and align_labels if not set by the user.
7072 (rx_align_for_label): New function.
7073 (rx_max_skip_for_label): New function.
7074 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7075 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7076 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7077 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7078 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7079
2b99b2b8
RS
70802011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7081
7082 PR rtl-optimization/48263
7083 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7084 and original commutative_p handling. Use maybe_gen_insn.
7085
ccecd6ea
AK
70862011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7087
7088 * reload.c (find_reloads_subreg_address): Add address_reloaded
7089 parameter and return true there if the full address has been
7090 reloaded.
7091 (find_reloads_toplev): Pass address_reloaded flag.
7092 (find_reloads_address_1): Don't use address_reloaded parameter.
7093
67295642
JL
70942011-03-24 Jeff Law <law@redhat.com>
7095
7096 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7097 unused variable "ann".
7098 (remove_unused_locals): Likewise.
7099
7100 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7101 statement.
7102
7103 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7104 after it is freed.
7105
212aa74f
AK
71062011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7107
7108 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7109 for invalid symbolic addresses.
7110 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7111 larl operands.
7112
fe784e0d
EB
71132011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7114
7115 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7116 the argument in calls to fold_truth_not_expr.
7117
63ee8641
NF
71182011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7119
7120 * tree.c (record_node_allocation_statistics): New function.
7121 (make_node_stat, copy_node_stat, build_string): Call it.
7122 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7123 (build1_stat, build_omp_clause): Likewise.
7124
61be2a1c
RS
71252011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7126
7127 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7128 last commit.
7129
a881aaa7
RG
71302011-03-24 Richard Guenther <rguenther@suse.de>
7131
7132 PR tree-optimization/48271
7133 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7134 blocks that still exist.
7135
dbaa912c
RG
71362011-03-24 Richard Guenther <rguenther@suse.de>
7137
7138 PR tree-optimization/48270
7139 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7140 not free datarefs before ddrs.
7141
1d60cc55
EB
71422011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7143
7144 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7145 from the address built for a reference with variable offset.
7146
c78dd519
UB
71472011-03-24 Uros Bizjak <ubizjak@gmail.com>
7148
7149 PR target/48237
7150 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7151 alternatives that can be handled with movq or movabsq insn.
7152 (*movdf_internal): Disable for !TARGET_64BIT.
7153 (*movdf_internal_nointeger): Ditto.
7154 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7155
b25b9e8f
NF
71562011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7157
7158 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7159 (FUNCTION_ARG_ADVANCE): Likewise.
7160 * tm.texi.in: Change references to them to hook references.
7161 * tm.texi: Regenerate.
c78dd519 7162 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
7163 (default_function_incoming_arg): Likewise.
7164 (default_function_arg_advance): Likewise.
c78dd519 7165 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
7166 (function_arg_advance): Likewise.
7167 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7168
190b2187
RG
71692011-03-24 Richard Guenther <rguenther@suse.de>
7170
7171 PR middle-end/48269
7172 * tree-object-size.c (addr_object_size): Do not double-account
7173 for MEM_REF offsets.
7174
a183b5c7
DN
71752011-03-24 Diego Novillo <dnovillo@google.com>
7176
7177 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 7178 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
7179 (lto_input_data_block): Move from lto-opts.c. Make extern.
7180 Update all users.
7181 (lto_input_string): Rename from input_string. Make extern.
7182 Update all users.
7183 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7184 output_string_with_length.
7185 Output 0 to indicate a non-NULL string. Update all callers to
7186 not emit 0.
7187 (lto_output_string): Rename from output_string. Make extern.
7188 Update all users.
7189 (lto_output_decl_state_streams): Make extern.
7190 (lto_output_decl_state_refs): Make extern.
7191 * lto-streamer.h (lto_input_string): Declare.
7192 (lto_input_data_block): Declare.
7193 (lto_output_string): Declare.
7194 (lto_output_string_with_length): Declare.
7195 (lto_output_decl_state_streams): Declare.
7196 (lto_output_decl_state_refs): Declare.
7197
cfef45c8
RG
71982011-03-24 Richard Guenther <rguenther@suse.de>
7199
7200 PR tree-optimization/46562
7201 * tree.c (build_invariant_address): New function.
7202 * tree.h (build_invariant_address): Declare.
7203 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7204 a renamed function moved ...
7205 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7206 Take valueization callback parameter.
7207 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7208 * gimple-fold.h: New file.
7209 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7210 (ccp_fold, fold_const_aggregate_ref,
7211 fold_ctor_reference, fold_nonarray_ctor_reference,
7212 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7213 get_base_constructor): Move ...
7214 * gimple-fold.c: ... here.
7215 (gimple_fold_stmt_to_constant_1): New function
7216 split out from ccp_fold. Take a valueization callback parameter.
7217 Valueize all operands.
7218 (gimple_fold_stmt_to_constant): New wrapper function.
7219 (fold_const_aggregate_ref_1): New function split out from
7220 fold_const_aggregate_ref. Take a valueization callback parameter.
7221 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7222 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7223 invariant POINTER_PLUS_EXPRs to invariant form.
7224 (vn_valueize): New function.
7225 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7226 * tree-vrp.c (vrp_valueize): New function.
7227 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7228 to fold statements to constants.
7229 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7230 function declarations.
7231 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7232 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7233
5e0a7e40
RS
72342011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7235
7236 * config/h8300/predicates.md (jump_address_operand): Fix register
7237 mode check.
7238
bfe068c3
IR
72392011-03-24 Ira Rosen <ira.rosen@linaro.org>
7240
7241 * doc/invoke.texi (max-stores-to-sink): Document.
7242 * params.h (MAX_STORES_TO_SINK): Define.
7243 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7244 if either vectorization or if-conversion is disabled.
7245 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7246 tree-vect-data-refs.c vect_equal_offsets.
7247 (dr_equal_offsets_p): New function.
7248 (find_data_references_in_bb): Remove static.
7249 * tree-data-ref.h (find_data_references_in_bb): Declare.
7250 (dr_equal_offsets_p): Likewise.
7251 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7252 (vect_drs_dependent_in_basic_block): Update calls to
7253 vect_equal_offsets.
7254 (vect_check_interleaving): Likewise.
7255 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7256 (cond_if_else_store_replacement): Rename to...
7257 (cond_if_else_store_replacement_1): ... this. Change arguments and
7258 documentation.
7259 (cond_if_else_store_replacement): New function.
7260 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7261 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7262
4908b0bf
CLT
72632011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7264
7265 PR target/46934
7266 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7267 to subtract lower bound instead of GEN_INT().
7268
2be478a2
JW
72692011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7270
7271 PR other/48179
7272 PR other/48221
7273 PR other/48234
7274 * doc/extend.texi (Alignment): Move section to match order in TOC.
7275 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7276 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7277
0c617be4
JL
72782011-03-23 Jeff Law <law@redhat.com>
7279
7280 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7281 before removing the edge.
7282
7283 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7284 it may have been freed by redirect_branch_edge or
7285 redirect_edge_succ_nodup.
7286
58da96fe
RG
72872011-03-23 Richard Guenther <rguenther@suse.de>
7288
c78dd519 7289 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
7290 (check_va_list_escapes): Likewise.
7291 (check_all_va_list_escapes): Likewise.
7292
b8beb4d1
RG
72932011-03-23 Richard Guenther <rguenther@suse.de>
7294
7295 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7296 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7297 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7298 (alias.o): Likewise.
7299 (ipa-type-escape.o): Remove.
7300 (ipa-struct-reorg.o): Likewise.
7301 (GTFILES): Remove ipa-struct-reorg.c.
7302 * alias.c: Do not include ipa-type-escape.h.
7303 * tree-ssa-alias.c: Likewise.
7304 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7305 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7306 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7307 and ipa-type-escape passes.
7308 * tree-pass.h (pass_ipa_type_escape): Remove.
7309 (pass_ipa_struct_reorg): Likewise.
7310 * ipa-struct-reorg.h: Remove.
7311 * ipa-struct-reorg.c: Likewise.
7312 * ipa-type-escape.h: Likewise.
7313 * ipa-type-escape.c: Likewise.
7314 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7315 (--param struct-reorg-cold-struct-ratio): Likewise.
7316 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7317 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7318 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7319
f137aa63
AK
73202011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7321
7322 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7323 cpu attribute value.
7324 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7325 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7326 * config/s390/s390.c (processor_flags_table): New constant array.
7327 (s390_handle_arch_option): Remove.
7328 (s390_handle_option): Remove s390_handle_arch_option invocations
7329 and OPT_mwarn_framesize_ handling.
7330 (s390_option_override): Remove s390_handle_arch_option invocation.
7331 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7332 warnings.
7333 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7334 * config/s390/s390.opt (s390_tune, s390_arch)
7335 (march=): Replace s390_arch_option enum and values with
7336 processor_type. Set variable name to s390_arch. Set
7337 initialization value.
7338 (mtune=): Replace s390_arch_option with processor_type. Set
7339 variable name to s390_tune. Set initialization value.
7340
bf90208f
JB
73412011-03-23 Julian Brown <julian@codesourcery.com>
7342
7343 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7344 accesses which are not naturally aligned.
7345
3460fdf3
RS
73462011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7347
7348 PR target/47553
7349 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7350
a5c7d693
RS
73512011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7352
7353 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7354 parameter from "int" to "enum insn_code".
7355 (expand_operand_type): New enum.
7356 (expand_operand): New structure.
7357 (create_expand_operand): New function.
7358 (create_fixed_operand, create_output_operand): Likewise
7359 (create_input_operand, create_convert_operand_to): Likewise.
7360 (create_convert_operand_from, create_address_operand): Likewise.
7361 (create_integer_operand): Likewise.
7362 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7363 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7364 (expand_insn, expand_jump_insn): Likewise.
7365 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7366 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7367 (expand_movstr, expand_builtin___clear_cache): Likewise.
7368 (expand_builtin_lock_release): Likewise.
7369 * explow.c (allocate_dynamic_stack_space): Likewise.
7370 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7371 and use the default handling in that case.
7372 * expmed.c (check_predicate_volatile_ok): Delete.
7373 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7374 (emit_cstore): Likewise.
7375 * expr.c (emit_block_move_via_movmem): Likewise.
7376 (set_storage_via_setmem, expand_assignment): Likewise.
7377 (emit_storent_insn, try_casesi): Likewise.
7378 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7379 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7380 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7381 (expand_twoval_unop, expand_twoval_binop): Likewise.
7382 (expand_unop_direct, emit_indirect_jump): Likewise.
7383 (emit_conditional_move, vector_compare_rtx): Likewise.
7384 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7385 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7386 (expand_sync_lock_test_and_set): Likewise.
7387 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7388 (emit_unop_insn): Likewise.
7389 (expand_copysign_absneg): Change icode to an insn_code.
7390 (create_convert_operand_from_type): New function.
7391 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7392 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7393 (expand_insn, expand_jump_insn): Likewise.
7394 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7395 than const_int_operand for operand 2.
7396
78fadbab
AK
73972011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7398
7399 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7400 if possible.
7401
5f02387d
NF
74022011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7403
7404 * emit-rtl.c (emit_pattern_before_noloc): New function.
7405 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7406 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7407 (emit_pattern_after_noloc): New function.
7408 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7409 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7410
fdf3e18a
NF
74112011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7412
7413 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7414 (__ffsDI2): Likewise.
7415
42d085c1
RH
74162011-03-22 Richard Henderson <rth@redhat.com>
7417
7418 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7419 of !TARGET_ABI_OPEN_VMS.
7420 (alpha_trampoline_init, alpha_start_function): Likewise.
7421 (alpha_expand_epilogue, alpha_file_start): Likewise.
7422 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7423 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7424 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7425 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7426 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7427
cabbe12a
JM
74282011-03-22 Joseph Myers <joseph@codesourcery.com>
7429
7430 * config/s390/s390-opts.h: New.
7431 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7432 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7433 s390_stack_guard): Remove.
7434 (s390_handle_arch_option): Return void. Take enum
7435 s390_arch_option value instead of string and searching array.
7436 (s390_handle_option): Don't assert that global structures are in
7437 use. Access variables via opts pointer. Use error_at. Don't use
7438 sscanf for -mstack-guard= or -mstack-size=. Update call to
7439 s390_handle_arch_option.
7440 (s390_option_override): Update call to s390_handle_arch_option.
7441 (s390_emit_prologue): Use %d format for s390_stack_size in
7442 diagnostic. Use %wd for HOST_WIDE_INT.
7443 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7444 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7445 * config/s390/s390.opt (config/s390/s390-opts.h): New
7446 HeaderInclude entry.
7447 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7448 s390_arch_flags, s390_warn_framesize): New Variable entries.
7449 (s390_arch_option): New Enum and EnumValue entries.
7450 (march=): Use Enum instead of Var.
7451 (mstack-guard=, mstack-size=): Use UInteger and Var.
7452 (mtune=): Use Enum.
7453
05b12036
JM
74542011-03-22 Joseph Myers <joseph@codesourcery.com>
7455
7456 * config/score/score.c (score_handle_option): Don't assert that
7457 global structures are in use. Access target_flags via opts
7458 pointer. Use value of -march= option to determine target_flags
7459 settings.
7460 * config/score/score.opt (march=): Use Enum.
7461 (score_arch): New Enum and EnumValue entries.
7462
dd51e35a
JM
74632011-03-22 Joseph Myers <joseph@codesourcery.com>
7464
7465 * config/mep/mep.c (option_mtiny_specified): Remove.
7466 (mep_option_override): Move register handling for -mivc2 from
7467 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7468 instead of option_mtiny_specified.
7469 (mep_handle_option): Access target_flags via opts pointer. Don't
7470 assert that global structures are in use. Defer part of -mivc2
7471 handling and move it to mep_option_override.
7472 * config/mep/mep.opt (IVC2): New Mask entry.
7473 (mivc2): Use Var and Defer instead of Mask.
7474
4a8d3d91
JM
74752011-03-22 Joseph Myers <joseph@codesourcery.com>
7476
7477 * config/v850/v850-opts.h: New.
7478 * config/v850/v850.c (small_memory): Replace with
7479 small_memory_physical_max array. Make that array static const.
7480 (v850_handle_memory_option): Take integer value of argument. Take
7481 gcc_options pointer, option text and location. Return void.
7482 Update for changes to small memory structures.
7483 (v850_handle_option): Access target_flags via opts pointer. Don't
7484 assert that global structures are in use. Update calls to
7485 v850_handle_memory_option.
c78dd519
UB
7486 (v850_encode_data_area): Update references to small memory settings.
7487 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
7488 (enum small_memory_type): Move to v850-opts.h.
7489 * config/v850/v850.opt (config/v850/v850-opts.h): New
7490 HeaderInclude entry.
7491 (small_memory_max): New Variable entry.
7492 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7493 (mtda, mzda): Likewise.
7494
117fdbfa
JM
74952011-03-22 Joseph Myers <joseph@codesourcery.com>
7496
7497 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7498 pointer. Don't assert that global structures are in use.
7499
d715091c
JM
75002011-03-22 Joseph Myers <joseph@codesourcery.com>
7501
7502 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7503 via opts pointer. Don't assert that global structures are in use.
7504
1bb721dc
JM
75052011-03-22 Joseph Myers <joseph@codesourcery.com>
7506
7507 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7508 (munix=93): Use Var.
7509 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7510 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7511 * config/pa/pa-opts.h: New.
7512 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7513 (pa_handle_option): Don't assert that global structures are in
7514 use. Access target_flags via opts pointer. Don't handle
7515 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7516 OPT_munix_98 here.
7517 (pa_option_override): Handle deferred OPT_mfixed_range_.
7518
cd8d8754
JM
75192011-03-22 Joseph Myers <joseph@codesourcery.com>
7520
7521 * config/mn10300/mn10300-opts.h: New.
7522 * config/mn10300/mn10300.c (mn10300_processor,
7523 mn10300_tune_string): Remove.
7524 (mn10300_handle_option): Don't assert that global structures are
7525 in use. Access mn10300_processor via opts pointer. Don't handle
7526 OPT_mtune_ here.
7527 * config/mn10300/mn10300.h (enum processor_type): Move to
7528 mn10300-opts.h.
7529 (mn10300_processor): Remove.
7530 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7531 HeaderInclude entry.
7532 (mn10300_processor): New Variable entry.
7533 (mtune=): Use Var.
7534
24e6e6b1
JM
75352011-03-22 Joseph Myers <joseph@codesourcery.com>
7536
7537 * config/microblaze/microblaze.c: Don't include opts.h.
7538 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7539 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7540 (mno-clearbss): Use Var and Warn.
7541
8a784afb
JM
75422011-03-22 Joseph Myers <joseph@codesourcery.com>
7543
7544 * config/m32r/m32r-opts.h: New.
7545 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7546 (m32r_handle_option): Don't assert that global structures are in
7547 use. Access target_flags and m32r_cache_flush_func via opts
7548 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7549 OPT_mno_flush_trap here.
7550 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7551 include of m32r-opts.h.
7552 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7553 HeaderInclude entry.
7554 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7555 (mmodel=): Use Enum and Var.
7556 (m32r_model): New Enum and EnumValue entries.
7557 (mno-flush-trap): Use Var.
7558 (msdata=): Use Enum and Var.
7559 (m32r_sdata): New Enum and EnumValue entries.
7560
bbfc9a8c
JM
75612011-03-22 Joseph Myers <joseph@codesourcery.com>
7562
7563 * config/m32c/m32c.c: Don't include opts.h.
7564 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7565 m32c_handle_option): Remove.
7566 (m32c_option_override): Check global_options_set.x_target_memregs
7567 instead of target_memregs_set.
7568 * config/m32c/m32c.h (target_memregs): Remove.
7569 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7570 variable.
7571
e24b8335
JM
75722011-03-22 Joseph Myers <joseph@codesourcery.com>
7573
7574 * config/iq2000/iq2000-opts.h: New.
7575 * config/iq2000/iq2000.c: Don't include opts.h.
7576 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 7577 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
7578 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7579 HeaderInclude entry.
7580 (iq2000_tune): New Variable entry.
7581 (march=): Add comment. Use Enum.
7582 (iq2000_arch): New Enum and EnumValue entries.
7583 (mcpu=): Use Enum and Var.
7584 (iq2000_tune): New Enum and EnumValue entries.
7585
e6cc0c98
JM
75862011-03-22 Joseph Myers <joseph@codesourcery.com>
7587
7588 * config/ia64/ia64-opts.h: New.
7589 * config/ia64/ia64.c (ia64_tune): Remove.
7590 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7591 here. Use error_at.
7592 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7593 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7594 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7595 HeaderInclude entry.
7596 (ia64_tune): New Variable entry.
7597 (mfixed-range=): Use Defer and Var.
7598 (mtune=): Use Enum and Var.
7599 (ia64_tune): New Enum and EnumValue entries.
7600
db25893c
JM
76012011-03-22 Joseph Myers <joseph@codesourcery.com>
7602
7603 * config/frv/frv-opts.h: New.
7604 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7605 frv-opts.h.
7606 (frv_cpu_type): Remove.
7607 * config/frv/frv.c: Don't include opts.h.
7608 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 7609 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
7610 (frv_cpu_type): New Variable entry.
7611 (frv_cpu): New Enum and EnumValue entries.
7612
6c223f5d
JM
76132011-03-22 Joseph Myers <joseph@codesourcery.com>
7614
7615 * config/cris/cris.c (cris_handle_option): Access target_flags via
7616 opts pointer. Don't assert that global structures are in use.
7617 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7618 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7619
bbd399cf
JM
76202011-03-22 Joseph Myers <joseph@codesourcery.com>
7621
7622 * config/bfin/bfin-opts.h: New.
7623 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7624 bfin_si_revision, bfin_workarounds): Remove.
7625 (bfin_cpus): Make static const.
7626 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7627 not bfin_lib_id_given.
7628 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7629 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 7630 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
7631 * config/bfin/bfin.h: Include bfin-opts.h.
7632 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7633 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7634 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7635 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7636 entries.
7637
5e1b4d5a
JM
76382011-03-22 Joseph Myers <joseph@codesourcery.com>
7639
7640 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7641 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7642 or -msoft-float here.
7643 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7644 -msoft-float and -mhard-float.
c78dd519 7645 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
7646 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7647 msoft-float.
7648 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7649 -msoft-float.
7650 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7651 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7652 not mhard-float.
7653 (LIBGCC_SPEC): Don't handle -msoft-float.
7654 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7655 -mhard-float.
7656 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7657 msoft-float.
7658 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7659 -mfloat-abi=*, not -msoft-float and -mhard-float.
7660 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7661 -msoft-float.
7662 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7663 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7664 mhard-float and msoft-float.
7665 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7666 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7667 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7668 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7669 mhard-float.
7670 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7671 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7672 msoft-float.
7673 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7674 not mhard-float.
7675 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7676 not msoft-float.
7677
800d1de1
RH
76782011-03-22 Richard Henderson <rth@redhat.com>
7679
7680 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7681 TARGET_ABI_WINDOWS_NT.
7682 (alpha_output_function_end_prologue): Likewise.
7683 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7684 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7685 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7686 (trap, *movsi_nt_vms): Likewise.
7687 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7688 (*tablejump_osf_nt_internal): Remove.
7689 * config/alpha/predicates.md (input_operand): Only test Pmode.
7690
c59ddd2b
JM
76912011-03-22 Joseph Myers <joseph@codesourcery.com>
7692
7693 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7694 via opts pointer. Use error_at. Don't assert that global
7695 structures are in use.
7696
1333f97f
JM
76972011-03-22 Joseph Myers <joseph@codesourcery.com>
7698
7699 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7700 (ix86_handle_option): Access ix86_isa_flags and
7701 ix86_isa_flags_explicit via opts pointer. Don't assert that
7702 global structures are in use.
7703 (ix86_function_specific_save, ix86_function_specific_restore):
7704 Update ix86_isa_flags_explicit field name.
c78dd519 7705 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
7706 (ix86_isa_flags_explicit): Rename TargetSave entry to
7707 x_ix86_isa_flags_explicit.
7708
75db85d8
RH
77092011-03-22 Richard Henderson <rth@redhat.com>
7710
7711 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7712 (alpha_option_override, direct_return): Likewise.
7713 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7714 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7715 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7716 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7717 (alpha_expand_epilogue, alpha_end_function): Likewise.
7718 (alpha_init_libfuncs): Likewise.
7719 (struct machine_function): Remove unicosmk members.
7720 (print_operand) ['t']: Remove.
7721 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7722 unicosmk_output_module_name, unicosmk_output_common,
7723 current_section_align, unicosmk_output_text_section_asm_op,
7724 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7725 unicosmk_section_type_flags, unicosmk_unique_section,
7726 unicosmk_asm_named_section, unicosmk_insert_attributes,
7727 unicosmk_output_align, unicosmk_defer_case_vector,
7728 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7729 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7730 unicosmk_output_ssib, unicosmk_add_call_info_word,
7731 unicosmk_extern_head, unicosmk_output_default_externs,
7732 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7733 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7734 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7735 * config/alpha/alpha-protos.h: Update.
7736 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7737 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7738 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7739 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7740 (*mulsi_se, mulvsi3): Likewise.
7741 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7742 (*divmodsi_internal, call, call_value, realign): Likewise.
7743 (moddi3, umoddi3): Likewise; remove duplicate expander.
7744 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7745 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7746 (*movdi_nofix): Remove r/U alternative.
7747 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7748 * config/alpha/constraints.md ("U"): Remove.
7749 * config/alpha/predicates.md (call_operand"): Don't test
7750 TARGET_ABI_UNICOSMK.
7751
96e45421
JM
77522011-03-22 Joseph Myers <joseph@codesourcery.com>
7753
7754 * target.def (handle_option): Take gcc_options and
7755 cl_decoded_option pointers and location_t.
7756 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7757 * doc/tm.texi: Regenerate.
7758 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7759 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7760 * lto-opts.c (lto_reissue_options): Generate option structure for
7761 targetm.handle_option call.
7762 * opts.c (target_handle_option): Update call to
7763 targetm.handle_option. Remove assertions about values now passed
7764 down to hook.
7765 * targhooks.c (default_target_handle_option): New.
7766 * targhooks.h (default_target_handle_option): Declare.
7767 * config/alpha/alpha.c: Include opts.h.
7768 (alpha_handle_option): Update to new hook interface.
7769 * config/arm/arm.c: Include opts.h.
7770 (arm_handle_option): Update to new hook interface.
7771 * config/arm/t-arm (arm.o): Update dependencies.
7772 * config/bfin/bfin.c: Include opts.h.
7773 (bfin_handle_option): Update to new hook interface.
7774 * config/cris/cris.c: Include opts.h.
7775 (cris_handle_option): Update to new hook interface.
7776 * config/frv/frv.c: Include opts.h.
7777 (frv_handle_option): Update to new hook interface.
7778 * config/i386/i386.c: Include opts.h.
7779 (ix86_handle_option): Update to new hook interface.
7780 (ix86_valid_target_attribute_inner_p): Generate option structure
7781 for call to ix86_handle_option.
7782 * config/i386/t-i386 (i386.o): Update dependencies.
7783 * config/ia64/ia64.c: Include opts.h.
7784 (ia64_handle_option): Update to new hook interface.
7785 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7786 * config/iq2000/iq2000.c: Include opts.h.
7787 (iq2000_handle_option): Update to new hook interface.
7788 * config/m32c/m32c.c: Include opts.h.
7789 (m32c_handle_option): Update to new hook interface.
7790 * config/m32r/m32r.c: Include opts.h.
7791 (m32r_handle_option): Update to new hook interface.
7792 * config/m68k/m68k.c: Include opts.h.
7793 (m68k_handle_option): Update to new hook interface.
7794 * config/mep/mep.c: Include opts.h.
7795 (mep_handle_option): Update to new hook interface.
7796 * config/microblaze/microblaze.c: Include opts.h.
7797 (microblaze_handle_option): Update to new hook interface.
7798 * config/mips/mips.c: Include opts.h.
7799 (mips_handle_option): Update to new hook interface.
7800 * config/mn10300/mn10300.c: Include opts.h.
7801 (mn10300_handle_option): Update to new hook interface.
7802 * config/pa/pa.c: Include opts.h.
7803 (pa_handle_option): Update to new hook interface.
7804 * config/pdp11/pdp11.c: Include opts.h.
7805 (pdp11_handle_option): Update to new hook interface.
7806 * config/rs6000/rs6000.c: Include opts.h.
7807 (rs6000_handle_option): Update to new hook interface.
7808 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7809 * config/rx/rx.c: Include opts.h.
7810 (rx_handle_option): Update to new hook interface.
7811 * config/s390/s390.c: Include opts.h.
7812 (s390_handle_option): Update to new hook interface.
7813 * config/score/score.c: Include opts.h.
7814 (score_handle_option): Update to new hook interface.
7815 * config/sh/sh.c: Include opts.h.
7816 (sh_handle_option): Update to new hook interface.
7817 * config/sparc/sparc.c: Include opts.h.
7818 (sparc_handle_option): Update to new hook interface.
7819 * config/v850/v850.c: Include opts.h.
7820 (v850_handle_option): Update to new hook interface.
7821
66017846
JM
78222011-03-22 Joseph Myers <joseph@codesourcery.com>
7823
7824 * gcc.c (driver_unknown_option_callback): Only permit and save
7825 unknown -Wno- options.
7826 (driver_wrong_lang_callback): Save options directly instead of via
7827 driver_unknown_option_callback.
7828
e8b97ccd
EB
78292011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7830
7831 * combine.c (simplify_set): Try harder to find the best CC mode when
7832 simplifying a nested COMPARE on the RHS.
7833
ebb9f8b0
JM
78342011-03-22 Joseph Myers <joseph@codesourcery.com>
7835
7836 * config/alpha/gnu.h: Remove.
7837 * config/arc: Remove directory.
7838 * config/arm/netbsd.h: Remove.
7839 * config/arm/t-pe: Remove.
7840 * config/crx: Remove directory.
7841 * config/i386/netbsd.h: Remove.
7842 * config/m68hc11: Remove directory.
7843 * config/m68k/uclinux-oldabi.h: Remove.
7844 * config/mcore/mcore-pe.h: Remove.
7845 * config/mcore/t-mcore-pe: Remove.
7846 * config/netbsd-aout.h: Remove.
7847 * config/rs6000/gnu.h: Remove.
7848 * config/sh/sh-symbian.h: Remove.
7849 * config/sh/symbian-base.c: Remove.
7850 * config/sh/symbian-c.c: Remove.
7851 * config/sh/symbian-cxx.c: Remove.
7852 * config/sh/symbian-post.h: Remove.
7853 * config/sh/symbian-pre.h: Remove.
7854 * config/sh/t-symbian: Remove.
7855 * config/svr3.h: Remove.
7856 * config/vax/netbsd.h: Remove.
7857 * config.build: Don't handle i[34567]86-*-pe.
7858 * config.gcc: Remove handling of deprecations for most deprecated
7859 targets.
7860 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7861 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7862 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7863 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7864 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7865 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7866 Remove cases.
7867 * config.host: Don't handle i[34567]86-*-pe.
7868 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7869 (ASM_SPEC32): Don't handle -mcall-gnu.
7870 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7871 -mcall-gnu.
7872 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7873 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7874 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7875 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7876 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7877 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7878 conditional on SYMBIAN.
7879 * configure.ac: Don't handle powerpc*-*-gnu*.
7880 * configure: Regenerate.
7881 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7882 * doc/install-old.texi (m6811, m6812): Don't mention.
7883 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7884 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7885 (m68k-uclinuxoldabi): Don't mention.
7886 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7887 Remove.
7888 (-mcall-gnu): Remove.
7889 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7890 families): Remove constraint documentation.
7891
999a7d80
MS
78922011-03-22 Marius Strobl <marius@FreeBSD.org>
7893
7894 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7895 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7896 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7897
45540bcf
MM
78982011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7899
7900 PR target/48226
7901 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7902 vector when peeking at the next token for vector, don't expand the
7903 keywords.
7904
980a0ff4
GJL
79052011-03-21 Georg-Johann Lay <avr@gjlay.de>
7906
7907 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7908 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7909 * config/avr/avr.c (init_cumulative_args)
7910 (avr_function_arg_advance): Use it.
7911 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7912 sibcall epilogues.
7913 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7914 (avr_function_ok_for_sibcall): ...this new function.
7915 (avr_lookup_function_attribute1): New static Function.
7916 (avr_naked_function_p, interrupt_function_p)
7917 (signal_function_p, avr_OS_task_function_p)
7918 (avr_OS_main_function_p): Use it.
7919 * config/avr/avr.md ("sibcall", "sibcall_value")
7920 ("sibcall_epilogue"): New expander.
7921 ("*call_insn", "*call_value_insn"): New insn.
7922 ("call_insn", "call_value_insn"): Remove
7923 ("call", "call_value", "epilogue"): Change expander to handle
7924 sibling calls.
7925
49168734
NC
79262011-03-21 Nick Clifton <nickc@redhat.com>
7927
7928 * doc/invoke.texi (Overall Options): Move closing brace to end of
7929 options list.
7930 (Optimization Options): Add missing @gol.
7931 (Directory Options): Likewise.
7932 (i386 and x86-64 Options): Likewise.
7933 (RS6000 and PowerPC Options): Likewise.
7934 (i386 and x86-64 Windows Options): Likewise.
7935 (V850 Options): Add text missing from descriptions.
7936
bdfe906f
RH
79372011-03-22 Richard Henderson <rth@redhat.com>
7938
7939 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7940 (avr_incoming_return_addr_rtx): New.
7941 (emit_push_byte): New.
7942 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7943 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7944 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7945 (emit_pop_byte): New.
7946 (expand_epilogue): Use it. Pop frame pointer by bytes.
7947 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7948 (INCOMING_RETURN_ADDR_RTX): New.
7949 (INCOMING_FRAME_SP_OFFSET): New.
7950 (ARG_POINTER_CFA_OFFSET): New.
7951 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7952 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7953 (pophi): Remove.
7954
d090a5aa
RH
7955 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7956
fdf3e18a
NF
79572011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7958
7959 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7960 (FUNCTION_ARG_ADVANCE): Likewise.
7961 * tm.texi.in: Change references to them to hook references.
7962 * tm.texi: Regenerate.
7963 * targhooks.c (default_function_arg): Eliminate check for target
7964 macro.
7965 (default_function_incoming_arg): Likewise.
7966 (default_function_arg_advance): Likewise.
c78dd519 7967 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
7968 (function_arg_advance): Likewise.
7969 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7970
009d3fcf
NF
79712011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7972
7973 * tree.c (build_call_1): New function.
7974 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7975
7bec30e1
RG
79762011-03-22 Richard Guenther <rguenther@suse.de>
7977
7978 PR tree-optimization/48228
7979 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7980 for single-arg PHIs.
7981
0b7e851b
AB
79822011-03-22 Andrey Belevantsev <abel@ispras.ru>
7983
7984 PR rtl-optimization/48143
7985 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7986 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7987 sse2_cvtps2pd): Likewise.
7988
d89afca5
AK
79892011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7990
7991 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7992
f471fe72
RG
79932011-03-22 Richard Guenther <rguenther@suse.de>
7994
7995 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7996 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7997 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7998 and REALIGN_LOAD_EXPR.
7999 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8000 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8001 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8002 DOT_PROD_EXPR case ...
8003 (expand_expr_real_2): ... here.
8004 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8005 and REALIGN_LOAD_EXPR.
8006 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8007 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8008 (vect_create_epilog_for_reduction): Likewise.
8009 (vectorizable_reduction): Likewise.
8010 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8011 * tree-vect-stmts.c (vectorizable_load): Likewise.
8012
f2f81d57
EB
80132011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8014
8015 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8016
ab081dd6
AK
80172011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8018
8019 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8020 handling for PLTOFF/GOTOFF.
8021
6fd5332b
NC
80222011-03-22 Nick Clifton <nickc@redhat.com>
8023
8024 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8025 trailing backslash from the end of the macro definition.
8026
01841ac0
AK
80272011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8028
8029 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8030 and PLT unspecs.
8031
2ef6ce06
RS
80322011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8033
8034 * expr.h (prepare_operand): Move to...
8035 * optabs.h (prepare_operand): ...here and change the insn code
8036 parameter from "int" to "enum insn_code".
8037 (insn_operand_matches): Declare.
8038 * expr.c (init_expr_target): Use insn_operand_matches.
8039 (compress_float_constant): Likewise.
8040 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8041 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8042 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
8043 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8044 Likewise.
2ef6ce06
RS
8045 (gen_cond_trap): Likewise.
8046 (prepare_operand): Likewise. Change icode to an insn_code.
8047 (insn_operand_matches): New function.
8048 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8049 * reload1.c (gen_reload): Likewise.
8050 * targhooks.c (default_secondary_reload): Likewise.
8051
9e43ad68
UB
80522011-03-21 Uros Bizjak <ubizjak@gmail.com>
8053
9a96da32
UB
8054 * config/alpha/alpha.md (unspec): New define_c_enum.
8055 (unspecv): Ditto.
8056
80572011-03-21 Uros Bizjak <ubizjak@gmail.com>
8058
8059 PR debug/48214
9e43ad68
UB
8060 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8061 between a call and its CALL_ARG_LOCATION note.
8062
31408f60
EB
80632011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8064
8065 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8066
80672011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
8068
8069 PR c/42544
8070 PR c/48197
8071 * c-common.c (shorten_compare): If primopN is first sign-extended
8072 to opN and then zero-extended to result type, set primopN to opN.
8073
9dfd55f5
DJ
80742011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8075
8076 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8077 for barrier handlers.
8078
f3c33d9d
MM
80792011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8080
8081 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8082 UNSPEC constants to be in the unspec enumeration, and redefine
8083 all UNSPECV constants to be in the unspecv enumeration, so that
8084 dumps print which unspec/unspec_volatile this is.
8085 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8086 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8087 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8088 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8089 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8090
8091 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8092 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8093 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8094 * config/rs6000/sync.md (isync, lwsync): Ditto.
8095
ac43f774
RG
80962011-03-21 Richard Guenther <rguenther@suse.de>
8097
8098 * params.def (lto-min-partition): Fix typo.
8099
411cdbd8
RG
81002011-03-21 Richard Guenther <rguenther@suse.de>
8101
8102 PR c/47939
8103 * c-decl.c (grokdeclarator): Drop to the main variant only
8104 for array types. Drop flag_gen_aux_info check.
8105
1cd9e416
RG
81062011-03-21 Richard Guenther <rguenther@suse.de>
8107
8108 PR translation/47911
8109 * params.def (lto-partitions): Fix typo.
8110 (lto-min-partition): Fix wording.
8111
ada5ad67
AT
81122011-03-21 Andreas Tobler <andreast@fgznet.ch>
8113
8114 * config/rs6000/t-freebsd: Remove duplication from file.
8115
f9613c9a
RG
81162011-03-21 Richard Guenther <rguenther@suse.de>
8117
8118 PR middle-end/47661
8119 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8120
9bfbc1eb
RG
81212011-03-21 Richard Guenther <rguenther@suse.de>
8122
8123 PR lto/48210
8124 * params.def (lto-partitions): Require at least 1 partition.
8125
a2268084
RO
81262011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128 * gthr-solaris.h: Remove.
8129 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8130 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8131 (LIB_SPEC): Likewise.
8132 * config/sol2.opt (threads): Remove.
9e43ad68 8133 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
8134 (sparc*-*-solaris2*): Likewise.
8135 * configure.ac (enable_threads): Enable solaris support.
8136 * configure: Regenerate.
9e43ad68 8137 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
8138 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8139 solaris.
8140
c43d9a1b
RO
81412011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8142
8143 * config.gcc: Obsolete *-*-solaris2.8*.
8144 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8145
084239f4
RO
81462011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8147
8148 PR bootstrap/48135
8149 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8150 reference. Solaris 8 perl works.
8151
64cadbe7
RO
81522011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8153
8154 PR bootstrap/48135
8155 * doc/install.texi (Prerequisites): Move jar etc. up.
8156 Explain support library version requirements.
8157
eb975109
RO
81582011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8159
8160 PR bootstrap/48135
8161 * doc/install.texi (Prerequisites): Move Perl to build
8162 requirements. Always necessary on Solaris 2 with Sun ld.
8163
8a509ffd
RO
81642011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8165
8166 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8167 binutils 2.21.
8168 (Specific, i?86-*-solaris2.[89]): Likewise.
8169 (Specific, i?86-*-solaris2.10): Likewise.
8170 (Specific, mips-sgi-irix6): Likewise.
8171 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8172 Update for binutils 2.21.
8173
8fbc58a1
RO
81742011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8175
8176 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8177 Allow -fuse-linker-plugin for non-default plugin linker.
8178 * configure: Regenerate.
8179
7e84ad0b
NP
81802011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8181
8182 PR bootstrap/48167
8183 * gengtype.c (files_rules): Added rule for cp/parser.h.
8184
2f36e14b
JJ
81852011-03-21 Jakub Jelinek <jakub@redhat.com>
8186
8187 PR target/48213
8188 * config/s390/s390.c (s390_delegitimize_address): Don't call
8189 lowpart_subreg if orig_x has BLKmode.
8190
62d784f7
KT
81912011-03-21 Kai Tietz <ktietz@redhat.com>
8192
8193 PR target/12171
9e43ad68
UB
8194 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8195 * tree.h (attribute_spec): Add new member affects_type_identity.
8196 * attribs.c (empty_attribute_table): Adjust attribute_spec
8197 initializers.
62d784f7
KT
8198 * config/alpha/alpha.c: Likewise.
8199 * config/arc/arc.c: Likewise.
8200 * config/arm/arm.c: Likewise.
8201 * config/avr/avr.c: Likewise.
8202 * config/bfin/bfin.c: Likewise.
8203 * config/crx/crx.c: Likewise.
8204 * config/darwin.h: Likewise.
8205 * config/h8300/h8300.c: Likewise.
8206 * config/i386/cygming.h: Likewise.
8207 * config/i386/i386.c: Likewise.
8208 * config/ia64/ia64.c: Likewise.
8209 * config/m32c/m32c.c: Likewise.
8210 * config/m32r/m32r.c: Likewise.
8211 * config/m68hc11/m68hc11.c: Likewise.
8212 * config/m68k/m68k.c: Likewise.
8213 * config/mcore/mcore.c: Likewise.
8214 * config/mep/mep.c: Likewise.
8215 * config/microblaze/microblaze.c: Likewise.
8216 * config/mips/mips.c: Likewise.
8217 * config/rs6000/rs6000.c: Likewise.
8218 * config/rx/rx.c: Likewise.
8219 * config/sh/sh.c: Likewise.
8220 * config/sol2.h: Likewise.
8221 * config/sparc/sparc.c: Likewise.
8222 * config/spu/spu.c: Likewise.
8223 * config/stormy16/stormy16.c: Likewise.
8224 * config/v850/v850.c: Likewise.
8225
54833ec0
CLT
82262011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8227
8228 * simplify-rtx.c (simplify_binary_operation_1): Handle
8229 (xor (and A B) C) case when B and C are both constants.
8230
14a41392
MX
82312011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8232
8233 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8234
806c3492
EB
82352011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8236
8237 PR bootstrap/48168
8238 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8239
65e0a0f3
JJ
82402011-03-20 Jakub Jelinek <jakub@redhat.com>
8241
8242 PR rtl-optimization/48156
8243 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8244 assume df and df_lr are not NULL.
8245
b6a75dda
RR
82462011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8247
8248 PR debug/48023
8249 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8250 between a call and its CALL_ARG_LOCATION note.
8251
5969b52d
KK
82522011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8253
8254 PR debug/48178
8255 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8256 between a call and its corresponding CALL_ARG_LOCATION note.
8257
f773c2bd
AS
82582011-03-19 Anatoly Sokolov <aesok@post.ru>
8259
8260 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8261 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8262 * haifa-sched.c (setup_ref_regs): Ditto.
8263 * caller-save.c (add_used_regs_1): Ditto.
8264 * dse.c (look_for_hardregs): Ditto.
8265 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8266 * sched-rgn.c (check_live_1): Ditto.
8267
8bf872f9
JM
82682011-03-18 Joseph Myers <joseph@codesourcery.com>
8269
8270 * c-decl.c (diagnose_mismatched_decls): Give an error for
8271 redefining a typedef with variably modified type.
8272
ff8e2159
JM
82732011-03-18 Joseph Myers <joseph@codesourcery.com>
8274
8275 * c-decl.c (grokfield): Don't allow typedefs for structures or
8276 unions with no tag by default.
8277 * doc/extend.texi (Unnamed Fields): Update.
8278
16cc4440
UB
82792011-03-18 Uros Bizjak <ubizjak@gmail.com>
8280
8281 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8282 Rewrite using indirect functions.
8283 (lwp_slwpcb): Ditto.
8284 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8285 (avx_vinsertf128<mode>): Ditto.
8286
e101e12e
AK
82872011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8288
8289 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8290 unspecs.
8291
4627c7fb
AK
82922011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8293
8294 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 8295 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 8296
2d36b47f
MK
82972011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8298
8299 PR rtl-optimization/48170
8300 * gcse.c (hoist_code): Remove bogus asserts.
8301
2a3d7659
JL
83022011-03-18 Georg-Johann Lay <avr@gjlay.de>
8303
8304 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8305 computation for prologue/epilogue.
8306
34c3ef05
RO
83072011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308
8309 * Makefile.in (check-consistency): Remove.
8310
81f2b976
JJ
83112011-03-18 Jakub Jelinek <jakub@redhat.com>
8312
8313 PR debug/48176
8314 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8315 arange_table_in_use is 0, but either text_section_used or
8316 cold_text_section_used is true. Don't call it if
8317 !info_section_emitted.
8318
68fd7765
AS
83192011-03-18 Anatoly Sokolov <aesok@post.ru>
8320
8321 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8322 FUNCTION_VALUE_REGNO_P): Remove.
8323 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8324 Remove.
8325 * config/avr/avr.c (avr_ret_register): Make static inline.
8326 (avr_function_value_regno_p): New function.
8327 (avr_libcall_value): Make static. Add 'func' argument.
8328 (avr_function_value): Make static. Rename 'func' argument to
8329 'fn_decl_or_type', forward it to avr_libcall_value. Call
8330 avr_ret_register function instead of RET_REGISTER macro.
8331 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8332
b4ef8aac
JM
83332011-03-18 Jason Merrill <jason@redhat.com>
8334
8335 PR c++/23372
8336 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8337
09a52fc3
RG
83382011-03-18 Richard Guenther <rguenther@suse.de>
8339
8340 * doc/install.texi (--enable-gold): Remove.
8341 (--with-plugin-ld): Document.
8342 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8343
2a3d7659 83442011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
8345
8346 PR middle-end/47790
8347 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8348 again after expansion changes.
8349
2abbb0fe
CLT
83502011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8351
8352 * combine.c (try_combine): Do simplification only call of
8353 subst() on i2 even when i1 is present. Update comments.
8354
2efd0aa6
KK
83552011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8356
8357 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8358 and UNSPEC_PCREL_SYMOFF.
8359
30a49b23
AK
83602011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8361
8362 * config/s390/s390.md: Use define_c_enum for the unspec constant
8363 definitions.
8364
419e1853
JJ
83652011-03-18 Richard Henderson <rth@redhat.com>
8366 Jakub Jelinek <jakub@redhat.com>
8367
8368 PR bootstrap/48161
8369 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8370 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8371
37875856
L
83722011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8373
8374 PR middle-end/47725
8375 * combine.c (cant_combine_insn_p): Don't check zero/sign
8376 extended hard registers.
8377
76069764
L
83782011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8379
8380 PR middle-end/47725
8381 * combine.c (cant_combine_insn_p): Check zero/sign extended
8382 hard registers.
8383
24da2019
AS
83842011-03-17 Anatoly Sokolov <aesok@post.ru>
8385
8386 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8387 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8388 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8389 Change return type to bool.
8390 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8391
a82ff31f
JJ
83922011-03-17 Jakub Jelinek <jakub@redhat.com>
8393
8b29c87a
JJ
8394 PR debug/48163
8395 * var-tracking.c (prepare_call_arguments): If CALL target
8396 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8397 pc instead of looking it up using cselib_lookup and use
8398 Pmode for it if x has VOIDmode.
8399 * dwarf2out.c (gen_subprogram_die): If also both first and
8400 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8401
a82ff31f
JJ
8402 PR debug/48163
8403 * function.c (assign_parms): For data.passed_pointer parms
8404 use MEM of data.entry_parm instead of data.entry_parm itself
8405 as DECL_INCOMING_RTL.
8406 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8407 also when passed and declared mode is the same, DECL_RTL
8408 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8409 a MEM too.
8410
82ce305c
JL
84112011-03-16 Jeff Law <law@redhat.com>
8412
8413 PR rtl-optimization/37273
8414 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8415 handle them like argument loads from stack slots. Do not double
8416 count memory for memory constants and argument loads from stack slots.
8417
fe58e02b
L
84182011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8419
8420 PR debug/48160
8421 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8422
6fc4dbc7
L
84232011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8424
8425 PR target/48171
8426 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8427
db3ed0b3
JJ
84282011-03-17 Jakub Jelinek <jakub@redhat.com>
8429
8054a389
JJ
8430 PR bootstrap/48153
8431 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8432 if dwarf_strict.
8433 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8434 Clear call_arg_locations and call_arg_loc_last always.
8435
db3ed0b3
JJ
8436 PR middle-end/48152
8437 * var-tracking.c (prepare_call_arguments): If argument needs to be
8438 passed by reference, adjust argtype and mode.
8439
1bce4ff3
RG
84402011-03-17 Richard Guenther <rguenther@suse.de>
8441
8442 PR middle-end/48134
8443 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8444 a value make sure to fold the statement.
8445
7c71147d
CLT
84462011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8447
8448 PR target/43872
8449 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8450 return condition with !cfun->calls_alloca.
8451
0e1ee172
RG
84522011-03-17 Richard Guenther <rguenther@suse.de>
8453
8454 PR bootstrap/48148
8455 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8456 origin for decls in other ltrans units.
8457 (input_varpool_node): Likewise.
8458
f8bce518
RG
84592011-03-17 Richard Guenther <rguenther@suse.de>
8460
8461 PR middle-end/48165
8462 * tree-object-size.c (compute_object_offset): Properly return
8463 the offset operand of MEM_REFs as sizetype.
8464
1b6fa860
JJ
84652011-03-17 Jakub Jelinek <jakub@redhat.com>
8466
dabd47e7
JJ
8467 PR rtl-optimization/48141
8468 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8469 * dse.c: Include params.h.
8470 (active_local_stores_len): New variable.
8471 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8472 to NULL.
8473 (record_store, check_mem_read_rtx): Decrease it when removing
8474 from the chain.
8475 (scan_insn): Likewise. Increase it when adding to chain, if it
8476 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8477 set active_local_stores to NULL before the addition.
8478 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8479
1b6fa860
JJ
8480 PR rtl-optimization/48141
8481 * dse.c (record_store): If no positions are needed in an insn
8482 that cannot be deleted, at least unchain it from active_local_stores.
8483
7b5cb7d6
DS
84842011-03-16 Dodji Seketeli <dodji@redhat.com>
8485
8486 PR debug/47510
8487 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8488 (lookup_type_die_strip_naming_typedef): ... here.
8489 (get_context_die): Use it.
8490 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8491 the anonymous struct named by the naming typedef.
8492
585e9d9d
L
84932011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8494
8495 PR target/48154
8496 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8497 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8498
6261ab0e
JL
84992011-03-16 Jeff Law <law@redhat.com>
8500
8501 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 8502 check for operands of conditional. Allow type to be a pointer.
6261ab0e 8503
0b0081ec
RG
85042011-03-16 Richard Guenther <rguenther@suse.de>
8505
8506 PR tree-optimization/48149
8507 * fold-const.c (fold_binary_loc): Fold
8508 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8509
64a3d647
RG
85102011-03-16 Richard Guenther <rguenther@suse.de>
8511
8512 PR tree-optimization/26134
8513 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8514 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8515 (non_rewritable_mem_ref_base): Handle complex type component
8516 accesses, constrain offsets for vector and complex extracts
8517 more properly.
8518
ef13324e
RG
85192011-03-16 Richard Guenther <rguenther@suse.de>
8520
8521 PR tree-optimization/48146
8522 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8523 operands avoiding the need for renaming.
8524
f0eddb90
RG
85252011-03-16 Richard Guenther <rguenther@suse.de>
8526
8527 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8528 constant folding. Move MEM_REF canonicalization first.
8529 Rely on fold_const_aggregate_ref for initializer folding.
8530 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8531
e42348b8
JJ
85322011-03-16 Jakub Jelinek <jakub@redhat.com>
8533
29f10e71
JJ
8534 PR middle-end/48136
8535 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8536 arg0/arg1 or their arguments are always fold converted to matching
8537 types.
8538
e42348b8
JJ
8539 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8540 to nargs.
8541
55b46574
RO
85422011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8543
8544 PR lto/46944
8545 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8546 Handle in-tree gold.
8547 (ld_vers): Extract binutils version for gold.
8548 (gcc_cv_ld_hidden): Handle gold here.
8549 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8550 * configure: Regenerate.
8551 * config.in: Regenerate.
8552 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8553 -fuse-linker-plugin otherwise.
8554 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8555 (LINK_COMMAND_SPEC): Use it.
8556 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8557
2b1c5433
JJ
85582011-03-16 Jakub Jelinek <jakub@redhat.com>
8559
c2969d8e
JJ
8560 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8561 * calls.c: Remove debug.h include.
8562 (emit_call_1): Don't call virtual_call_token debug hook.
8563 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8564 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8565 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8566 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8567 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8568 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8569 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8570 dwarf2out_virtual_call): Remove.
8571 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8572 copy_call_info and virtual_call hooks.
8573 (dwarf2out_init): Don't initialize vcall_insn_table,
8574 debug_dcall_section and debug_vcall_section.
8575 (prune_unused_types): Don't mark nodes from dcall_table.
8576 (dwarf2out_finish): Don't output dcall or vcall tables.
8577 * final.c (final_scan_insn): Don't call direct_call or
8578 virtual_call debug hooks.
8579 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8580 virtual_call_token, copy_call_info and virtual_call hooks.
8581 (debug_nothing_uid): Remove prototype.
8582 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8583 copy_call_info and virtual_call hooks.
8584 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8585 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8586 * debug.c (do_nothing_debug_hooks): Likewise.
8587 (debug_nothing_uid): Remove.
8588 * doc/invoke.texi (-fenable-icf-debug): Remove.
8589 * common.opt (-fenable-icf-debug): Likewise.
8590
325f5379
JJ
8591 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8592 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8593 call's MEM. Handle functions returning aggregate through a hidden
8594 first pointer. For virtual calls add clobbered pc to call arguments
8595 chain.
8596 * dwarf2out.c (gen_subprogram_die): Emit
8597 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8598 can't be emitted.
8599
a58a8e4b
JJ
8600 PR debug/45882
8601 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8602 * rtl.h (ENTRY_VALUE_EXP): Define.
8603 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8604 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8605 * print-rtl.c (print_rtx): Likewise.
8606 * gengtype.c (adjust_field_rtx_def): Likewise.
8607 * var-tracking.c (vt_add_function_parameter): Adjust
8608 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8609 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8610 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8611 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8612 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8613
2b1c5433
JJ
8614 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8615 Call var_location debug hook even on CALL_INSNs.
8616 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8617 * rtl.def (ENTRY_VALUE): New.
8618 * dwarf2out.c: Include cfglayout.h.
8619 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8620 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8621 (struct call_arg_loc_node): New type.
8622 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8623 tail_call_site_count): New variables.
8624 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8625 DW_TAG_GNU_call_site_parameter.
8626 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8627 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8628 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8629 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8630 and DW_AT_GNU_all_source_call_sites.
8631 (mem_loc_descriptor): Handle ENTRY_VALUE.
8632 (add_src_coords_attributes): Don't add enything if
8633 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8634 (dwarf2out_abstract_function): Save and clear call_arg_location,
8635 call_site_count and tail_call_site_count around dwarf2out_decl call.
8636 (gen_call_site_die): New function.
8637 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8638 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8639 (dwarf2out_function_decl): Clear call_arg_locations,
8640 call_arg_loc_last, set call_site_count and tail_call_site_count
8641 to -1 and free block_map.
8642 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8643 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8644 followed by any real instructions.
8645 (dwarf2out_begin_function): Set call_site_count and
8646 tail_call_site_count to 0.
8647 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8648 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8649 attempt to force a DIE for it and worst case remove the attribute.
8650 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8651 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8652 the decl itself.
8653 * var-tracking.c: Include tm_p.h.
8654 (vt_stack_adjustments): For calls call note_register_arguments.
8655 (argument_reg_set): New variable.
8656 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8657 ensure the VALUE is resolved.
8658 (call_arguments): New variable.
8659 (prepare_call_arguments): New function.
8660 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8661 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8662 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8663 always use the best expression.
8664 (vt_expand_loc): Add ignore_cur_loc argument.
8665 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8666 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8667 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8668 note for all calls.
8669 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8670 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8671 argument. Don't call cselib_preserve_only_values and
8672 cselib_reset_table.
8673 (note_register_arguments): New function.
8674 (vt_initialize): Compute argument_reg_set. Call
8675 vt_add_function_parameters before processing basic blocks instead of
8676 afterwards. For calls call prepare_call_arguments before calling
8677 cselib_process_insn.
8678 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8679 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8680 (var-tracking.o): Depend on $(TM_P_H).
8681 * cfglayout.h (insn_scope): New prototype.
8682 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8683 * cfglayout.c (insn_scope): No longer static.
8684 * insn-notes.def (CALL_ARG_LOCATION): New.
8685 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8686 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8687 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8688 nothing for DECL_EXTERNAL BLOCK_VARS.
8689
9ef13bd0
AM
86902011-03-16 Alan Modra <amodra@gmail.com>
8691
8692 PR target/45844
8693 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8694 create invalid offset address for vsx splat insn.
8695 * config/rs6000/predicates.md (splat_input_operand): New.
8696 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8697
56b67510
XDL
86982011-03-15 Xinliang David Li <davidxl@google.com>
8699
8700 PR c/47837
8701 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8702 (normalize_preds): New function.
8703 (is_use_properly_guarded): Normalize def predicates.
8704
80fffdef
RR
87052011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8706
732f37c6 8707 PR target/46788
80fffdef
RR
8708 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8709 in the output template.
8710
930672ad
RG
87112011-03-15 Richard Guenther <rguenther@suse.de>
8712
8713 PR middle-end/47650
8714 * tree-pretty-print.c (dump_function_declaration): Properly
8715 dump unprototyped and varargs function types.
8716
c7ee7b45
RG
87172011-03-15 Richard Guenther <rguenther@suse.de>
8718
8719 PR tree-optimization/13954
8720 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8721 and friends.
8722
b2ad5e37
RG
87232011-03-15 Richard Guenther <rguenther@suse.de>
8724
8725 PR tree-optimization/48037
8726 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8727 selects into BIT_FIELD_REFs.
8728 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8729 vector select.
8730
7ee93d4e
JJ
87312011-03-15 Jakub Jelinek <jakub@redhat.com>
8732
8733 PR tree-optimization/48129
8734 * builtins.c (fold_builtin_snprintf): Convert to type of
8735 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8736 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8737
e106efc7
RG
87382011-03-15 Richard Guenther <rguenther@suse.de>
8739
8740 PR tree-optimization/41490
8741 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8742 value but with VUSE.
8743 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8744 return statements.
8745 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8746 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8747 * tree-tailcall.c (find_tail_calls): Ignore returns.
8748
17dea42f
RG
87492011-03-15 Richard Guenther <rguenther@suse.de>
8750
8751 PR middle-end/48031
8752 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8753 or variable-indexed array accesses when in gimple form.
8754
01c77a60
RG
87552011-03-15 Richard Guenther <rguenther@suse.de>
8756
16cc4440 8757 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 8758
77b0791e
AM
87592011-03-15 Alan Modra <amodra@gmail.com>
8760
8761 PR target/48032
8762 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8763 presume symbol_refs without a symbol_ref_decl are suitably
8764 aligned, nor other trees we may see here. Handle anchor symbols.
8765 (legitimate_constant_pool_address_p): Comment. Add mode param.
8766 Check cmodel=medium addresses. Adjust all calls.
8767 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8768 creating cmodel=medium optimized access to locals.
8769 * config/rs6000/constraints.md (R): Pass QImode to
8770 legitimate_constant_pool_address_p.
8771 * config/rs6000/predicates.md (input_operand): Pass mode to
8772 legitimate_constant_pool_address_p.
8773 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8774 Update prototype.
8775
35f61ba4
MM
87762011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8777
8778 PR target/48053
8779 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8780 64-bit constants being loaded into registers other than GPRs such
8781 as loading 0 into a VSX register.
8782
07332e6d
RO
87832011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8784
16cc4440 8785 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 8786
de888d90
JJ
87872011-03-14 Jakub Jelinek <jakub@redhat.com>
8788
ba3ceb2d
JJ
8789 PR middle-end/47917
8790 * builtins.c (fold_builtin_snprintf): New function.
8791 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8792 (fold_builtin_4): Likewise.
8793
2e64f8b8
JJ
8794 PR middle-end/38878
8795 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8796 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8797 and C - X == X also strip nops from +/-/p+ operand.
8798 When optimizing -X == C, fold C to arg0's type.
8799
de888d90
JJ
8800 PR debug/47946
8801 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8802 emit it as add_AT_int instead of add_AT_unsigned.
8803
88042011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
8805
8806 * unwind-dw2.c: Include sys/sdt.h if it exists.
8807 (_Unwind_DebugHook): Use STAP_PROBE2.
8808 * config.in, configure: Rebuild.
8809 * configure.ac: Check for sys/sdt.h.
8810
d34abfd2
UB
88112011-03-14 Uros Bizjak <ubizjak@gmail.com>
8812
8813 * config/i386/i386.md (ROUND_FLOOR): New constant.
8814 (ROUND_CEIL): Ditto.
8815 (ROUND_TRUNC): Ditto.
8816 (ROUND_MXCSR): Ditto.
8817 (ROUND_NO_EXC): Ditto.
8818 (rint<mode>2): Use new defines instead of numerical constants.
8819 (floor<mode>2): Ditto.
8820 (ceil<mode>2): Ditto.
8821 (btrunc<mode>2): Ditto.
8822 * config/i386/i386-builtin-types.def: Define ROUND function type
8823 aliases.
8824 * config/i386/i386.c (enum ix86_builtins): Add
8825 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8826 (struct builtin_description): Add
8827 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8828 (ix86_expand_sse_round): New static function.
8829 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8830 function types.
8831 (ix86_builtin_vectorized_function): Handle
8832 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8833
87f9e23d
TT
88342011-03-14 Tom Tromey <tromey@redhat.com>
8835
8836 * c-parser.c (c_parser_asm_string_literal): Clear
8837 warn_overlength_strings.
8838
b3ab9ea2
TT
88392011-03-14 Tom Tromey <tromey@redhat.com>
8840
8841 * c-parser.c (disable_extension_diagnostics): Save
8842 warn_overlength_strings.
8843 (restore_extension_diagnostics): Restore warn_overlength_strings.
8844
6bd73dd8
JJ
88452011-03-14 Jakub Jelinek <jakub@redhat.com>
8846
8847 * BASE-VER: Change to 4.7.0.
8848
7f4d6e1b
RG
88492011-03-14 Richard Guenther <rguenther@suse.de>
8850
8851 PR middle-end/48098
8852 * tree.c (build_vector_from_val): Adjust assert to requirements
8853 and reality.
8854
c6104ef1
JJ
88552011-03-14 Jakub Jelinek <jakub@redhat.com>
8856
8857 PR bootstrap/48102
d34abfd2 8858 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 8859
dfa95e19
AT
88602011-03-14 Andreas Tobler <andreast@fgznet.ch>
8861
f60c2554 8862 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
8863 terms of target_flags_explicit. Adjust copyright year.
8864
8865 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8866 * config/rs6000/t-freebsd: New file. Add override for
8867 LIB2FUNCS_EXTRA.
8868
bb322018
CD
88692011-03-13 Chris Demetriou <cgd@google.com>
8870
8871 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8872 (-fno-diagnostics-show-option): this, to reflect current default.
8873 (-Werror=): Update text about -fno-diagnostics-show-option.
8874
12b1c80b
PB
88752011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8876
8877 PR target/48053
8878 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8879 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8880 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8881 mode is not V2DImode or V2DFmode.
8882 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8883 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8884 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8885 registers to 0.
8886 (movdi_internal64): Likewise.
8887
57d598f7
SP
88882011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8889
8890 PR tree-optimization/47127
8891 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8892 parameter.
8893 (set_cloog_options): Same.
8894 (scop_to_clast): Same.
8895 (print_clast_stmt): Do not call cloog_state_malloc and
8896 cloog_state_free.
8897 (print_generated_program): Same.
8898 (gloog): Same.
8899 * graphite-clast-to-gimple.h (cloog_state): Declared.
8900 (scop_to_clast): Adjust declaration.
8901 * graphite.c (cloog_state): Defined here.
8902 (graphite_initialize): Call cloog_state_malloc.
8903 (graphite_finalize): Call cloog_state_free.
8904
f231b5ff
JM
89052011-03-11 Jason Merrill <jason@redhat.com>
8906
8907 * attribs.c (lookup_attribute_spec): Take const_tree.
8908 * tree.h: Adjust.
8909
6a4e2bd5
JM
89102011-03-11 Joseph Myers <joseph@codesourcery.com>
8911
8912 * config/sparc/sparc.c (sparc_option_override): Use
8913 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8914
a758fd67
RG
89152011-03-11 Richard Guenther <rguenther@suse.de>
8916
8917 PR tree-optimization/48067
8918 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8919 multiplication result will be only used once on the target
8920 stmt.
8921
03dfda54
RG
89222011-03-11 Richard Guenther <rguenther@suse.de>
8923
8924 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8925
5f11a50a
RG
89262011-03-11 Richard Guenther <rguenther@suse.de>
8927
8928 PR lto/48073
8929 * tree.c (find_decls_types_r): Do not walk types only reachable
8930 from IDENTIFIER_NODEs.
8931
4074f163
JJ
89322011-03-11 Jakub Jelinek <jakub@redhat.com>
8933
8934 PR middle-end/48044
8935 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8936 all vnode->force_output nodes as needed.
8937
30f7cdcd
JM
89382011-03-11 Jason Merrill <jason@redhat.com>
8939
8940 PR c++/48069
8941 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8942 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8943
62ecfeb8
MJ
89442011-03-11 Martin Jambor <mjambor@suse.cz>
8945
8946 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8947 cgraph_node.
8948
e89e03ab
JJ
89492011-03-11 Jakub Jelinek <jakub@redhat.com>
8950
8951 PR tree-optimization/48063
8952 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8953 inline functions called once if !tree_can_inline_p (node->callers).
8954
efbe978b 89552011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 8956
efbe978b
EB
8957 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8958 extra_objs.
9d6193a7
CL
8959 * config/score/score3.c: Delete.
8960 * config/score/score3.h: Delete.
8961 * config/score/mul-div.S: Delete.
8962 * config/score/sfp-machine.h: Add new file.
8963 * config/score/constraints.md: Add new file.
8964 * config/score/t-score-softfp: Add new file.
efbe978b 8965 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
8966 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8967 (score7_extra_constraint): Delete.
efbe978b 8968 (score7_option_override): Remove unused code.
9d6193a7
CL
8969 * config/score/score.c: Remove score3 and score5 define and code.
8970 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 8971 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
8972 * config/score/score.opt: Remove score3 and score5 options.
8973
5de27cca
JDA
89742011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8975
8976 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8977 when _HPUX_SOURCE is defined.
8978 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8979
18d92053
JM
89802011-03-10 Jason Merrill <jason@redhat.com>
8981
8982 PR c++/48029
8983 * stor-layout.c (layout_type): Don't set structural equality
8984 on arrays of incomplete type.
8985 * tree.c (type_hash_eq): Handle comparing them properly.
8986
67a2f76d
JJ
89872011-03-10 Jakub Jelinek <jakub@redhat.com>
8988
8989 PR debug/48043
18d92053 8990 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
8991 result mode matches original rtl mode.
8992
d845b2f9
NC
89932011-03-10 Nick Clifton <nickc@redhat.com>
8994
8995 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 8996 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 8997
db7ec035
JJ
89982011-03-09 Jakub Jelinek <jakub@redhat.com>
8999
9000 PR rtl-optimization/47866
9001 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9002 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9003 if target wasn't scalar.
9004 * function.c (assign_stack_temp_for_type): Assert that neither
9005 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9006 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9007 macro.
9008 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9009
5d304e47
AK
90102011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9011
9012 * config/s390/s390-protos.h (s390_label_align): New prototype.
9013 * config/s390/s390.c (s390_label_align): New function.
9014 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9015
93b826f0
MM
90162011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9017
9018 PR target/47755
9019 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9020 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9021 (output_vec_const_move): Ditto.
9022
ef78aed6
AS
90232011-03-08 Anatoly Sokolov <aesok@post.ru>
9024
9025 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9026 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9027 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9028 Change 'rclass' argument and result type to reg_class_t.
9029 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9030
5f892aa0
GJL
90312011-03-08 Georg-Johann Lay <avr@gjlay.de>
9032
9e43ad68
UB
9033 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9034 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9035 (TARGET_MEMORY_MOVE_COST): Define.
9036 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 9037
32bd2409
JJ
90382011-03-08 Jakub Jelinek <jakub@redhat.com>
9039
530a4800
JJ
9040 PR debug/47881
9041 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9042 removed anything.
9043
32bd2409
JJ
9044 PR tree-optimization/48022
9045 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9046 for EQ/NE_EXPR.
9047
c7148991
JJ
90482011-03-07 Jakub Jelinek <jakub@redhat.com>
9049
9050 PR debug/47991
9051 * var-tracking.c (find_use_val): Return NULL for
9052 cui->sets && cui->store_p BLKmode MEMs.
9053
43070a6e
AS
90542011-03-07 Anatoly Sokolov <aesok@post.ru>
9055
9056 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9057 Remove.
9058 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9059 xstormy16_print_operand_address): Remove.
9060 * config/stormy16/stormy16.c (xstormy16_print_operand,
9061 xstormy16_print_operand_address): Make static.
9062 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9063
efbe978b 90642011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
9065
9066 PR target/47862
9067 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9068 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9069 before definition.
9070
cec8ac0b
ZD
90712011-03-07 Zdenek Dvorak <ook@ucw.cz>
9072
9073 PR bootstrap/48000
9074 * cfgloopmanip.c (fix_bb_placements): Return immediately
9075 if FROM is BASE_LOOP's header.
9076
59527282
PW
90772011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9078
9079 * gimplify.c (gimplify_function_tree): Fix building calls
9080 to __builtin_return_address.
9081
617718f7
AM
90822011-03-07 Alan Modra <amodra@gmail.com>
9083
9084 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9085 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9086 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9087 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9088 return_mode args.
9089 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9090 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9091 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9092 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9093 * config/rs6000/rs6000.c
9094 (rs6000_elf_end_indicate_exec_stack): Rename to..
9095 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9096 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9097 (rs6000_file_start): ..here.
9098 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9099 file scope variables.
9100 (call_ABI_of_interest): New function.
9101 (init_cumulative_args): Set above vars when function return value
9102 is a float, vector, or small struct.
9103 (rs6000_function_arg_advance_1): Likewise for function args.
9104 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9105 references float args.
9106
38528d50
MX
91072011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9108
9109 * doc/cfg.texi: Remove "See" before @ref.
9110 * doc/invoke.texi: Likewise.
9111
f42cf4f4
JM
91122011-03-05 Jason Merrill <jason@redhat.com>
9113
9114 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9115
804a304d
AG
91162011-03-05 Anthony Green <green@moxielogic.com>
9117
9118 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9119
634ee309
ZD
91202011-03-05 Zdenek Dvorak <ook@ucw.cz>
9121
9122 PR rtl-optimization/47899
9123 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9124 to flow_loop_nested_p when moving the loop upward.
9125
6fe471c8
RE
91262011-03-05 Richard Earnshaw <rearnsha@arm.com>
9127
9128 PR target/47719
9129 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9130
cc58ceee
JJ
91312011-03-05 Jakub Jelinek <jakub@redhat.com>
9132
9133 PR tree-optimization/47967
9134 * ipa-cp.c (build_const_val): Return NULL instead of creating
9135 VIEW_CONVERT_EXPR for mismatching sizes.
9136 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9137 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9138 give up on versioning.
9139
ea868305
AM
91402011-03-05 Alan Modra <amodra@gmail.com>
9141
9142 PR target/47986
9143 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9144 full cmodel medium/large lo_sum + high addresses.
9145
bc6ce334
AK
91462011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9147
9148 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9149 pool references in UNSPEC_LTREL_OFFSET.
9150
87e7b310
JH
91512011-03-04 Jan Hubicka <jh@suse.cz>
9152
9153 PR lto/47497
9154 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9155 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
9156 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9157 Add node pointers.
87e7b310
JH
9158 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9159 cgraph_add_thunk): Add node pointers.
9160 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9161 associated to right node.
9162 (input_node): Update use of cgraph_same_body_alias
9163 and cgraph_add_thunk.
9164
d9c64246
CF
91652011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9166
9167 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
9168 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9169 modes when the flag -mprefer-avx128 is on.
d9c64246 9170
08707076
RS
91712011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9172
9173 * dwarf2out.c (compare_loc_operands): Fix address handling.
9174
52517c81
AM
91752011-03-04 Alan Modra <amodra@gmail.com>
9176
9177 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9178
b147c5b9
RG
91792011-03-04 Richard Guenther <rguenther@suse.de>
9180
9181 PR middle-end/47968
9182 * expmed.c (extract_bit_field_1): Prefer vector modes that
9183 vec_extract patterns can handle.
9184
8750672f
RG
91852011-03-04 Richard Guenther <rguenther@suse.de>
9186
9187 PR middle-end/47975
9188 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9189
9eac0f2a
RH
91902011-03-04 Richard Henderson <rth@redhat.com>
9191
9192 * explow.c (emit_stack_save): Remove 'after' parameter.
9193 (emit_stack_restore): Likewise.
9194 * expr.h: Update to match.
9195 * builtins.c, calls.c, stmt.c: Likewise.
9196 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9197 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9198 * function.c (expand_function_end): Insert the emit_stack_save
9199 sequence before parm_birth_insn instead of after.
9200
dfee1406
UB
92012011-03-03 Uros Bizjak <ubizjak@gmail.com>
9202
9203 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9204 (ssse3_pmaddubsw128): Ditto.
9205 (ssse3_pmaddubsw): Ditto.
9206
f1d4c3de
SE
92072011-03-03 Steve Ellcey <sje@cup.hp.com>
9208
9209 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9210
71f3a3f5
JJ
92112011-03-03 Jakub Jelinek <jakub@redhat.com>
9212
423ed416
JJ
9213 PR c/47963
9214 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9215 on TYPE_SIZE_UNIT if it is a DECL.
9216
71f3a3f5
JJ
9217 PR debug/47283
9218 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9219 first operand is not is_gimple_mem_ref_addr, try to fold it.
9220 If the operand still isn't is_gimple_mem_ref_addr, clear
9221 MEM_EXPR on op0.
9222
4b1a5c0d
RG
92232011-03-03 Richard Guenther <rguenther@suse.de>
9224
9225 PR middle-end/47283
9226 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9227 match comment.
9228 (refs_may_alias_p_1): For release branches return true if
9229 we are confused by our input.
9230
b46616fd
AK
92312011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9232
9233 * config/s390/s390.c (s390_function_value): Rename to ...
9234 (s390_function_and_libcall_value): ... this.
9235 (s390_function_value): New function.
9236 (s390_libcall_value): New function.
dfee1406 9237 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
9238 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9239 target macro definitions.
9240 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9241
46d8fabb
JM
92422011-03-02 Joseph Myers <joseph@codesourcery.com>
9243
9244 * config/i386/freebsd64.h (CC1_SPEC): Define.
9245 * config/i386/linux64.h (CC1_SPEC): Define.
9246 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9247
6b1ce545
AS
92482011-03-02 Anatoly Sokolov <aesok@post.ru>
9249
9250 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9251 Remove.
9252 * config/stormy16/stormy16.c: Include reload.h.
9253 (xstormy16_memory_move_cost): New function.
9254 (TARGET_MEMORY_MOVE_COST): Define.
9255
34161e98
RS
92562011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9257
9258 PR rtl-optimization/47925
9259 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9260 with side effects. Remove the more-specific check for volatile asms.
9261
f60a97cf
AM
92622011-03-02 Alan Modra <amodra@gmail.com>
9263
9264 PR target/47935
9265 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9266 toc relative addresses for valid offsets.
9267
f2ca11ca
RG
92682011-03-01 Richard Guenther <rguenther@suse.de>
9269
9270 PR tree-optimization/47890
9271 * tree-vect-loop.c (get_initial_def_for_induction): Set
9272 related stmt properly.
9273
7a00d9ea
RG
92742011-03-01 Richard Guenther <rguenther@suse.de>
9275
9276 PR lto/47924
9277 * lto-streamer.c (lto_record_common_node): Also register
9278 the canonical type.
9279
06c7edcc
RG
92802011-03-01 Richard Guenther <rguenther@suse.de>
9281
9282 PR lto/46911
9283 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9284 Do not stream DECL_ABSTRACT_ORIGIN.
9285 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9286 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9287 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9288 Do not stream DECL_ABSTRACT_ORIGIN.
9289 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9290 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9291
998871e9
AS
92922011-02-28 Anatoly Sokolov <aesok@post.ru>
9293
9294 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9295 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 9296 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
9297 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9298 Add 'outgoing' argument.
9299 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9300 function.
9301 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9302 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9303
94369251
KT
93042011-02-28 Kai Tietz <kai.tietz@onevision.com>
9305
9306 PR debug/28047
9307 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9308 (lookup_filename): Likewise.
b2e2ea67 9309 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 9310
80a832cd
JJ
93112011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9312 Jakub Jelinek <jakub@redhat.com>
9313
9314 PR middle-end/47893
9315 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9316 (assign_stack_local_1): Change last argument type to int.
9317 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9318 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 9319 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
9320 (assign_stack_local): Adjust caller.
9321 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9322 of assign_stack_local, pass 0 as last argument.
9323 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9324 callers.
9325
1b500976
JJ
93262011-02-28 Jakub Jelinek <jakub@redhat.com>
9327
f61c6f34
JJ
9328 PR debug/47283
9329 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9330 Use target address_mode and pointer_mode hooks instead of hardcoded
9331 Pmode and ptr_mode. Handle some simple cases of extending if
9332 POINTERS_EXTEND_UNSIGNED < 0.
9333 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9334 Call convert_debug_memory_address.
9335 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9336 convert_debug_memory_address.
9337
1b500976
JJ
9338 PR middle-end/46790
9339 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9340 * configure: Regenerated.
9341 * config.in: Regenerated.
9342 * varasm.c (default_function_section): Return NULL
b2e2ea67 9343 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 9344
2f2935b6
MJ
93452011-02-28 Martin Jambor <mjambor@suse.cz>
9346
9347 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9348 the description to match the printed values.
9349
474086eb
RG
93502011-02-28 Richard Guenther <rguenther@suse.de>
9351
9352 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9353 of the copied scope tree.
9354
15bf6f3a
RW
93552011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9356
9357 * doc/extend.texi (Function Attributes): Avoid deeply (and
9358 wrongly) nested tables.
9359
f6b439c9
JJ
93602011-02-27 Jakub Jelinek <jakub@redhat.com>
9361
9362 PR middle-end/47903
9363 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9364 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9365 r isn't op0 nor op1.
9366
1d8ca2c7
GJL
93672011-02-23 Georg-Johann Lay <avr@gjlay.de>
9368
9369 * config/avr/avr.md: Remove magic comment for emacs.
9370
593fca4b
GJL
93712011-02-23 Georg-Johann Lay <avr@gjlay.de>
9372
9373 PR target/45261
9374 * config/avr/avr.c (avr_option_override): Use error on bad options.
9375 (avr_help): New function.
9376 (TARGET_HELP): Define.
9377
6609216e
GJL
93782011-02-22 Georg-Johann Lay <avr@gjlay.de>
9379
9380 PR target/42240
9381 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9382 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9383
03d458af
GP
93842011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9385
9386 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9387 (ARM Options): Ditto.
9388 (i386 and x86-64 Options): Ditto.
9389 (RX Options): Ditto.
9390 (SPARC Options): Ditto.
9391
1c379b78
TC
93922011-02-26 Tijl Coosemans <tijl@coosemans.org>
9393
9394 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9395 FreeBSD 6 and later. Generally use cpu generic.
9396
d5ed058c 93972011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 9398
d5ed058c
GP
9399 * doc/cpp.texi: Update copyright years.
9400
509d65dd 94012011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 9402
509d65dd 9403 PR target/46898
308d39cd
SB
9404 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9405
509d65dd 94062011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 9407
509d65dd 9408 PR target/46898
308d39cd
SB
9409 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9410 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9411 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9412 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 9413 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
9414 (gen_int_relational): Move declarations to start of function.
9415
822ba6d7
EB
94162011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9417
9418 PR tree-optimization/45470
9419 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9420 can throw internally only.
9421 * tree-vect-stmts.c (vectorizable_call): Likewise.
9422
ef795fc2
AS
94232011-02-24 Anatoly Sokolov <aesok@post.ru>
9424
9425 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9426 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9427 * config/stormy16/stormy16-protos.h
9428 (xstormy16_preferred_reload_class): Remove.
9429 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9430 static. Change 'rclass' argument and return type to reg_class_t.
9431 (TARGET_PREFERRED_RELOAD_CLASS,
9432 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9433
1c3277ee
RG
94342011-02-24 Richard Guenther <rguenther@suse.de>
9435
9436 * lto-streamer-in.c (input_bb): Do not find referenced vars
9437 in debug statements.
9438
67e18edb
JM
94392011-02-23 Jason Merrill <jason@redhat.com>
9440
9441 * common.opt (fabi-version): Document v5 and v6.
9442
b14fad9d
RG
94432011-02-23 Richard Guenther <rguenther@suse.de>
9444
9445 PR tree-optimization/47849
9446 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9447
7fcf46f5
JZ
94482011-02-23 Jie Zhang <jie@codesourcery.com>
9449
9450 * opts-common.c (decode_cmdline_option): Print empty string
9451 argument as "" in decoded->orig_option_with_args_text.
9452 * gcc.c (execute): Print empty string argument as ""
9453 in the verbose output.
9454 (do_spec_1): Keep empty string argument.
9455
f85b70fd
NF
94562011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9457
9458 * config.gcc: Declare score-* and crx-* obsolete.
9459
b152a615
JZ
94602011-02-23 Jie Zhang <jie@codesourcery.com>
9461
9462 PR rtl-optimization/47763
9463 * web.c (web_main): Ignore naked clobber when replacing register.
9464
bb6e77bc
AS
94652011-02-22 Anatoly Sokolov <aesok@post.ru>
9466
9467 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9468 Remove.
9469
68bf6491
SP
94702011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9471
9472 PR doc/47848
9473 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9474
88ee1fc7
MS
94752011-02-22 Mike Stump <mikestump@comcast.net>
9476
9477 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9478 assembler.
9479 * configure: Regenerate.
9480
6042d1dd
CLT
94812011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9482
9483 PR rtl-optimization/46002
9484 * ira-color.c (update_copy_costs): Change class intersection
9485 test to reg_class_contents[] test of 'hard_regno'.
9486
7de97f9e
JM
94872011-02-21 Joseph Myers <joseph@codesourcery.com>
9488
9489 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9490 than Driver option.
9491 * config/hpux11.opt (mt): Likewise.
9492 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9493 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9494 * config/vax/elf.opt (mno-asm-pic): Likewise.
9495 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9496
d1d46f9f
MS
94972011-02-21 Mike Stump <mikestump@comcast.net>
9498
9499 PR target/47822
9500 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9501 tree so we can get save the type.
9502 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9503 for CFString instead of trying to use past the end of the builtins.
9504 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9505 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9506 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9507 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9508 Rename to darwin_builtin_cfstring.
9509 (darwin_init_cfstring_builtins): Return the built type.
9510
23e0d930
UB
95112011-02-21 Uros Bizjak <ubizjak@gmail.com>
9512
9513 PR target/47840
9514 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9515 (_mm256_insert_epi64): Use _mm_insert_epi64.
9516
192997cf
AS
95172011-02-21 Anatoly Sokolov <aesok@post.ru>
9518
9519 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9520 * config/stormy16/stormy16-protos.h
9521 (xstormy16_mode_dependent_address_p): Remove.
9522 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9523 Make static. Change return type to bool. Change argument type to
9524 const_rtx. Remove dead code.
9525 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9526
e292d003
RG
95272011-02-21 Richard Guenther <rguenther@suse.de>
9528
9529 PR lto/47820
9530 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9531 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9532 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9533 TUs context.
23e0d930 9534 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
9535 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9536
77f846e9
RG
95372011-02-20 Richard Guenther <rguenther@suse.de>
9538
9539 PR lto/47822
9540 * tree.c (free_lang_data_in_decl): Clean builtins from
9541 the TU decl BLOCK_VARS.
23e0d930 9542
b2cddfc8
AO
95432011-02-19 Alexandre Oliva <aoliva@redhat.com>
9544
9545 PR debug/47620
9546 PR debug/47630
9547 * haifa-sched.c (fix_tick_ready): Skip tick computation
9548 for debug insns.
9549
becf4c11
RG
95502011-02-19 Richard Guenther <rguenther@suse.de>
9551
9552 PR lto/47647
9553 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9554 Remove lazy BLOCK_VARS streaming.
9555 (lto_input_ts_block_tree_pointers): Likewise.
9556 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9557
27f98305
JM
95582011-02-19 Joseph Myers <joseph@codesourcery.com>
9559
9560 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9561
064bf3f4
JM
95622011-02-19 Joseph Myers <joseph@codesourcery.com>
9563
9564 * config/i386/biarch32.h, config/i386/mach.h,
9565 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9566
9215ddc3
JJ
95672011-02-19 Jakub Jelinek <jakub@redhat.com>
9568
9569 PR target/47800
9570 * config/i386/i386.md (peephole2 for shift and plus): Use
9571 operands[1] original mode in the first insn.
9572
8b021004
MS
95732011-02-18 Mike Stump <mikestump@comcast.net>
9574
65ded153 9575 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 9576
f84ae14c
JH
95772011-02-18 Jan Hubicka <jh@suse.cz>
9578
9579 PR middle-end/47788
65ded153
EB
9580 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9581 to zero when the function is not inlinable at all.
f84ae14c 9582
eddabc80
JDA
95832011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9584
9585 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9586 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9587 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9588 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9589 * config/pa/t-pa64: Likewise.
9590 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9591
ca3da783
JJ
95922011-02-18 Jakub Jelinek <jakub@redhat.com>
9593
9594 PR driver/47787
9595 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9596
430aa868
JDA
95972011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9598
9599 PR target/47792
9600 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9601
4bf7ff7e
AS
96022011-02-18 Anatoly Sokolov <aesok@post.ru>
9603
9604 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9605 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9606 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9607 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9608 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9609 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9610 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9611 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9612 m32r_legitimate_address_p): New functions.
9613 * config/m32r/constraints.md (constraint "S"): Don't use
9614 STORE_PREINC_PREDEC_P.
9615 (constraint "U"): Don't use LOAD_POSTINC_P.
9616
7efcf910
CLT
96172011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9618
9619 PR rtl-optimization/46178
9620 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9621 compute ira_hard_regno_cover_class[].
9622
237d6259
RG
96232011-02-18 Richard Guenther <rguenther@suse.de>
9624
9625 PR lto/47798
9626 * lto-streamer.h (lto_global_var_decls): Declare.
9627 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9628 statics for global var processing.
9629
12d80acc
RG
96302011-02-18 Richard Guenther <rguenther@suse.de>
9631
9632 PR tree-optimization/47737
9633 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9634 edge dominance check.
9635
abfea58d
JJ
96362011-02-18 Jakub Jelinek <jakub@redhat.com>
9637
9638 PR debug/47780
9639 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9640 avoid invalid rtx sharing.
9641
f73c8882
GP
96422011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9643
9644 * doc/cpp.texi (Obsolete Features): Add background on the
9645 origin of assertions.
9646
d764a8e6
IS
96472011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9648
9649 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 9650 objc_abi == 2.
d764a8e6
IS
9651 * config/darwin.c (output_objc_section_asm_op): Added support for
9652 ABI v1 and v2.
9653 (is_objc_metadata): New.
9654 (darwin_objc2_section): New.
9655 (darwin_objc1_section): New.
9656 (machopic_select_section): Added support for ABI v1 and v2.
9657 (darwin_emit_objc_zeroed): New.
9658 (darwin_output_aligned_bss): Detect objc metadata and treat it
9659 appropriately.
9660 (darwin_asm_output_aligned_decl_common): Same.
9661 (darwin_asm_output_aligned_decl_local): Same.
9662 * config/darwin-sections.def: Updated for ABI v1 and v2.
9663 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9664 compiling Objective-C code for the NeXT runtime, default to using
9665 ABI version 0 for 32-bit, and version 2 for 64-bit.
9666
0a8134ca
JM
96672011-02-17 Joseph Myers <joseph@codesourcery.com>
9668
9669 * common.opt (optimize_fast): New Variable.
9670 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9671 instead of local variable ofast.
9672
0a256240
NP
96732011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9674
9675 * doc/invoke.texi (fobjc-abi-version): Documented.
9676 (fobjc-nilcheck): Documented.
9677 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9678 version.
9679
fa381cb2
JM
96802011-02-17 Joseph Myers <joseph@codesourcery.com>
9681
9682 PR driver/47390
9683 * common.opt (export-dynamic): New Driver option.
9684 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9685
5437eaa6
JM
96862011-02-17 Joseph Myers <joseph@codesourcery.com>
9687
9688 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9689
bb7e6d55
AO
96902011-02-17 Alexandre Oliva <aoliva@redhat.com>
9691 Jan Hubicka <jh@suse.cz>
9692
9693 PR debug/47106
9694 PR debug/47402
9695 * cfgexpand.c (account_used_vars_for_block): Remove.
9696 (estimated_stack_frame_size): Use referenced vars.
9697 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9698 that were referenced in the original function. Test src_fn
9699 rather than cfun. Drop redundant get_var_ann.
9700 (setup_one_parameter): Drop redundant get_var_ann.
9701 (declare_return_variable): Likewise.
9702 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9703 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9704 * ipa-inline.c (compute_inline_parameters): Do not compute
9705 disregard_inline_limits here.
bb7e6d55
AO
9706 (compute_inlinable_for_current, pass_inlinable): New.
9707 (pass_inline_parameters): Require PROP_referenced_vars.
9708 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 9709 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
9710 (cgraph_analyze_function): Set .disregard_inline_limits.
9711 * tree-sra.c (convert_callers): Compute inliner parameters
9712 only for functions already in SSA form.
9713
f181a8a7
JM
97142011-02-17 Joseph Myers <joseph@codesourcery.com>
9715
9716 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9717 -mlittle-endian-data.
9718
c6869789
JM
97192011-02-17 Joseph Myers <joseph@codesourcery.com>
9720
9721 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9722 -mno-fpu, not -fpu and -no-fpu.
9723 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9724 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9725
fbf4bfd3
UB
97262011-02-17 Uros Bizjak <ubizjak@gmail.com>
9727
9728 PR target/43653
9729 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9730 input reload with PLUS RTX.
9731
70be5dc7
JM
97322011-02-16 Joseph Myers <joseph@codesourcery.com>
9733
9734 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9735 of InverseVar(MDMX).
9736
30b1646e
JM
97372011-02-16 Joseph Myers <joseph@codesourcery.com>
9738
9739 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9740 --m4-340.
9741
ab7b71e9
JM
97422011-02-16 Joseph Myers <joseph@codesourcery.com>
9743
9744 * config/mn10300/mn10300.opt (mno-crt0): New.
9745
466f3f08
JM
97462011-02-16 Joseph Myers <joseph@codesourcery.com>
9747
9748 * config/m68k/uclinux.opt (static-libc): New Driver option.
9749
8226cd7b
JM
97502011-02-16 Joseph Myers <joseph@codesourcery.com>
9751
9752 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9753
45cab1d7
JM
97542011-02-16 Joseph Myers <joseph@codesourcery.com>
9755
9756 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9757 %{muser-extend-enabled}.
9758
65aab64f
RG
97592011-02-16 Richard Guenther <rguenther@suse.de>
9760
9761 PR tree-optimization/47738
9762 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9763 the TODO from tree_predictive_commoning.
9764
fc2fa4fb
JL
97652011-02-15 Jeff Law <law@redhat.com>
9766
9767 Revert
9768 2011-01-25 Jeff Law <law@redhat.com>
9769
9770 PR rtl-optimization/37273
9771 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9772 handle them like argument loads from stack slots. Do not double
9773 count memory for memory constants and argument loads from stack slots.
9774
4e380b8e
L
97752011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9776
9777 PR middle-end/47725
9778 * combine.c (cant_combine_insn_p): Revert the last change.
9779
e3a69bb4
MM
97802011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9781
9782 PR target/47755
9783 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9784 mode for vector constants. Remove code that checks for TImode.
9785
de650422
AO
97862011-02-15 Alexandre Oliva <aoliva@redhat.com>
9787
9788 PR debug/47106
9789 PR debug/47402
9790 * cgraph.h (compute_inline_parameters): Return void.
9791 * ipa-inline.c (compute_inline_parameters): Adjust.
9792
30925d94
AO
97932011-02-15 Alexandre Oliva <aoliva@redhat.com>
9794
9795 PR debug/47106
9796 PR debug/47402
9797 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9798 rather than decl.
9799 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9800 * ipa-inline.c (compute_inline_parameters): Adjust.
9801
1b9a784a
AO
98022011-02-15 Alexandre Oliva <aoliva@redhat.com>
9803
9804 PR debug/47106
9805 PR debug/47402
9806 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9807 Adjust all users. Pass FN to...
9808 * tree-flow-inline.h (first_referenced_var): ... this. Add
9809 fn argument.
9810 * ipa-struct-reorg.c: Adjust.
9811 * tree-dfa.c: Adjust.
9812 * tree-into-ssa.c: Adjust.
9813 * tree-sra.c: Adjust.
9814 * tree-ssa-alias.c: Adjust.
9815 * tree-ssa-live.c: Adjust.
9816 * tree-ssa.c: Adjust.
9817 * tree-ssanames.c: Adjust.
9818 * tree-tailcall.c: Adjust.
9819
27c6b086
AO
98202011-02-15 Alexandre Oliva <aoliva@redhat.com>
9821
9822 PR debug/47106
9823 PR debug/47402
9824 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9825 Adjust all callers.
9826 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9827 * tree-flow-inline.h: Adjust.
9828 * gimple-pretty-print.c: Adjust.
9829 * tree-into-ssa.c: Adjust.
9830 * tree-ssa.c: Adjust.
9831 * cfgexpand.c: Adjust.
9832
679e8183
NF
98332011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9834
fbf4bfd3
UB
9835 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9836 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9837 (EXTRA_CONSTRAINT): Delete.
9838 * config/iq2000/constraints.md: New file.
9839 * config/iq2000/iq2000.md: Include it.
679e8183
NF
9840 (define_insn ""): Delete.
9841 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9842 unsupported constraint letters from patterns.
9843 (call_value, call_value_internal1): Likewise.
9844 (call_value_multiple_internal1): Likewise.
9845
a45d420a
NC
98462011-02-15 Nick Clifton <nickc@redhat.com>
9847
9848 * config/mn10300/mn10300.c: Include tm-constrs.h.
9849 (struct liw_data): New data structure describing an LIW candidate
9850 instruction.
9851 (extract_bundle): Use struct liw_data. Allow small integer
9852 operands for some instructions.
9853 (check_liw_constraints): Use struct liw_data. Remove swapped
9854 parameter. Add comments describing the checks. Fix bug when
9855 assigning the source of liw1 to the source of liw2.
9856 (liw_candidate): Delete. Code moved into extract_bundle.
9857 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9858 before swapping.
9859 * config/mn10300/predicates.md (liw_operand): New predicate.
9860 Allows registers and small integer constants.
9861 * config/mn10300/constraints.md (O): New constraint. Accetps
9862 integers in the range -8 to +7 inclusive.
9863 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9864 for moving a small integer into a register. Give this alternative
9865 LIW attributes.
9866 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9867 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9868 using the J,K,L and M constraints,
9869 (liw): Remove SI mode on second operands to allow for HI and QI
9870 mode values.
9871 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9872 instruction.
9873
8a73faf1
L
98742011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9875
9876 PR middle-end/47725
9877 * combine.c (cant_combine_insn_p): Check zero/sign extended
9878 hard registers.
9879
48feba28
RG
98802011-02-15 Richard Guenther <rguenther@suse.de>
9881
9882 PR tree-optimization/47743
9883 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9884 for a non-type-compatible VN lookup bail out.
9885
ad1c1eeb
NF
98862011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9887
9888 * config/fr30/constraints.md: New file.
9889 * config/fr30/fr30.md: Include it.
9890 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9891 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9892 (EXTRA_CONSTRAINT): Delete.
9893
49ac143d
NF
98942011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9895
9896 * config/frv/constraints.md: New file.
9897 * config/frv/predicates.md: Include it.
9898 * config/frv/frv.c (reg_class_from_letter): Delete.
9899 (frv_option_override): Don't initialize it.
9900 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9901 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9902 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9903 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9904 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9905 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9906 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9907 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9908 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9909 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9910 (REG_CLASS_FROM_CONSTRAINT): Delete.
9911
c95f9494
JJ
99122011-02-15 Jakub Jelinek <jakub@redhat.com>
9913
9914 PR middle-end/47581
9915 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9916 if frame size is 0 in a leaf function.
9917
13aed611
RO
99182011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9919
9920 PR pch/14940
9921 * config/alpha/host-osf.c: New file.
9922 * config/alpha/x-osf: New file.
9923 * config.host (alpha*-dec-osf*): Use it.
9924
b09c3081
AS
99252011-02-14 Anatoly Sokolov <aesok@post.ru>
9926
9927 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9928 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9929 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9930 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9931 type to const_rtx.
9932 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9933
d634083b
NF
99342011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9935
9936 * config/stormy16/constraints.md: New file.
9937 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9938 Use satisfies_constraint_Q and satisfies_constraint_R.
9939 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9940 Delete.
9941 (xstormy16_legitiamte_address_p): Declare.
9942 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9943 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9944 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 9945 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
9946 Un-staticize.
9947 (xstormy16_extra_constraint_p): Delete.
9948
c7dd803e
EB
99492011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9950
9951 PR tree-optimization/46494
9952 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9953 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9954 (pass_rtl_loop_done): Add TODO_verify_flow.
9955 * fwprop.c (pass_rtl_fwprop): Likewise.
9956 * modulo-sched.c (pass_sms): Likewise.
9957 * tree-ssa-dom.c (pass_dominator): Likewise.
9958 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9959 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9960 (pass_tree_loop_done): Likewise.
9961 * tree-ssa-pre.c (execute_pre): Likewise.
9962 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9963 * tree-ssa-sink.c (pass_sink_code): Likewise.
9964 * tree-vrp.c (pass_vrp): Likewise.
9965
c6150df6
NF
99662011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9967
c7dd803e
EB
9968 * config/v850/constraints.md: New file.
9969 * config/v850/v850.md: Include it.
9970 * config/v850/predicates.md (reg_or_0_operand): Use
9971 satisfies_constraint_G.
9972 (special_symbolref_operand): Use satisfies_constraint_K.
9973 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9974 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9975 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9976 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9977 (EXTRA_CONSTRAINT): Delete.
9978 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9979 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9980 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 9981
30dd1ea3
AS
99822011-02-14 Anatoly Sokolov <aesok@post.ru>
9983
9984 PR target/47696
9985 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9986 description.
9987
944f4bb3
NF
99882011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9989
9990 * config/mcore/constraints.md: New file.
9991 * config/mcore/mcore.md: Include it.
9992 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9993 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9994 (REG_CLASS_FROM_LETTER): Delete.
9995 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9996 insn_const_int_ok_for_constraint.
9997 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9998 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9999 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10000 (EXTRA_CONSTRAINT): Delete.
10001
ad56a54c
RO
100022011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10003
10004 PR ada/41929
10005 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10006 (IS_SIGHANDLER): Define.
10007 (sparc64_is_sighandler): New function, split off from
10008 sparc64_fallback_frame_state.
10009 (sparc_is_sighandler): New function, split off from
10010 sparc_fallback_frame_state.
10011 (sparc64_fallback_frame_state): Merge with ...
10012 (sparc_fallback_frame_state): ... this into ...
10013 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
10014 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10015 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10016 stack instead of hardcoded offsets.
ad56a54c 10017
fbf4bfd3 100182011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
10019
10020 PR target/45808
10021 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10022
029c8f3e
RW
100232011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10024
10025 * configure: Regenerate.
10026
a016dc83
JM
100272011-02-12 Joseph Myers <joseph@codesourcery.com>
10028
10029 PR driver/45731
10030 * gcc.c (asm_options): Correct spec matching --target-help.
10031
8957a0ec
MJ
100322011-02-12 Martin Jambor <mjambor@suse.cz>
10033
10034 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10035 to gimple call error.
10036
6ef828bc
MS
100372011-02-12 Mike Stump <mikestump@comcast.net>
10038
10039 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10040 comments in backslash regions.
10041
a4015be5
MS
100422011-02-12 Mike Stump <mikestump@comcast.net>
10043 Jakub Jelinek <jakub@redhat.com>
10044 Iain Sandoe <iains@gcc.gnu.org>
10045
10046 PR target/47324
10047 * dwarf2out.c (output_cfa_loc): When required, apply the
10048 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10049 (output_loc_sequence): Likewise.
10050 (output_loc_operands_raw): Likewise.
10051 (output_loc_sequence_raw): Likewise.
10052 (output_cfa_loc): Likewise.
10053 (output_loc_list): Suppress register number adjustment when
10054 calling output_loc_sequence()
10055 (output_die): Likewise.
10056
5378dda2
AS
100572011-02-12 Anatoly Sokolov <aesok@post.ru>
10058
10059 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10060 Remove macros.
10061 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10062 xtensa_memory_move_cost): New functions.
10063 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10064
f3d533d3
AO
100652011-02-12 Alexandre Oliva <aoliva@redhat.com>
10066
10067 PR lto/47225
10068 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10069 in the current directory.
10070 * configure: Rebuilt.
10071
9d53403c
IS
100722011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10073
10074 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 10075 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
10076 correct indents of the preceding block.
10077
a350a6c8
IS
100782011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10079
10080 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10081 the switch.
10082
bab79a40
JM
100832011-02-11 Joseph Myers <joseph@codesourcery.com>
10084
10085 * common.opt (nostartfiles): New Driver option.
10086
1bbc6693
XDL
100872011-02-11 Xinliang David Li <davidxl@google.com>
10088
10089 PR tree-optimization/47707
10090 * tree-chrec.c (convert_affine_scev): Keep type precision.
10091
1da7d8c0
EB
100922011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10093
10094 PR tree-optimization/47420
10095 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10096
100972011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
10098
10099 PR rtl-optimization/47614
10100 * rtl.h (check_for_inc_dec): Declare.
10101 * dse.c (check_for_inc_dec): Externalize...
10102 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10103 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10104
4df47bca
JM
101052011-02-11 Joseph Myers <joseph@codesourcery.com>
10106
10107 PR driver/47678
10108 * gcc.c (main): Do not compile inputs if there were errors in
10109 option handling.
10110 * opts-common.c (read_cmdline_option): Check for wrong language
10111 after other error checks.
10112
61502ca8
NF
101132011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10114
10115 * cgraph.c: Fix comment typos.
10116 * cgraph.h: Likewise.
10117 * cgraphunit.c: Likewise.
10118 * ipa-cp.c: Likewise.
10119 * ipa-inline.c: Likewise.
10120 * ipa-prop.c: Likewise.
10121 * ipa-pure-const.c: Likewise.
10122 * ipa-ref.c: Likewise.
10123 * ipa-reference.c: Likewise.
10124
b63f974e
JJ
101252011-02-11 Jakub Jelinek <jakub@redhat.com>
10126
d50c5e0c
JJ
10127 PR debug/47684
10128 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 10129
6dd2a13c
RO
101302011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10131
10132 PR testsuite/47400
10133 * doc/sourcebuild.texi (Require Support): Document
10134 dg-require-ascii-locale.
10135
4a087ccf
MX
101362011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10137
10138 * doc/lto.texi (Write summary): Fix missing parentheses.
10139
a4403164
DD
101402011-02-10 DJ Delorie <dj@redhat.com>
10141
10142 * config/m32c/m32c.c (m32c_option_override): Disable
10143 -fcombine-stack-adjustments until flag value tracking and compare
10144 optimization can be rewritten.
10145
4fac45bd
PB
101462011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10147
10148 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10149 PROCESSOR_POWER7.
10150 (PROCESSOR_DEFAULT64): Likewise.
10151
72602cd1
RH
101522011-02-10 Richard Henderson <rth@redhat.com>
10153
10154 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10155 change from 2011-02-03.
10156 * config/rx/rx.c (flags_from_code): Likewise.
10157 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10158 is valid, n/pz otherwise.
10159 (rx_select_cc_mode): Return CCmode if Y is not zero.
10160
ea57f573
RG
101612011-02-10 Richard Guenther <rguenther@suse.de>
10162
ea4c3e65 10163 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 10164
92b1d23b
RG
101652011-02-10 Richard Guenther <rguenther@suse.de>
10166
10167 PR tree-optimization/47677
10168 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10169
525a2d06
JJ
101702011-02-10 Jakub Jelinek <jakub@redhat.com>
10171
10172 PR target/47665
10173 * combine.c (make_compound_operation): Only change shifts into
10174 multiplication for SCALAR_INT_MODE_P.
10175
06c969bd
JZ
101762011-02-10 Jie Zhang <jie@codesourcery.com>
10177
10178 PR testsuite/47622
10179 Revert
10180 2011-02-05 Jie Zhang <jie@codesourcery.com>
10181 PR debug/42631
10182 * web.c (entry_register): Don't clobber the number of the
10183 first uninitialized reference in used[].
10184
282ec48e
RG
101852011-02-09 Richard Guenther <rguenther@suse.de>
10186
10187 PR tree-optimization/47664
10188 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10189 all edges again.
10190
df98c3e8
DE
101912011-02-09 David Edelsohn <dje.gcc@gmail.com>
10192
d0f21cd6
DE
10193 PR target/46481
10194 PR target/47032
df98c3e8
DE
10195 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10196 PROCESSOR_POWER7.
10197 (PROCESSOR_DEFAULT64): Same.
10198 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10199
67b6839f
RO
102002011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10201
10202 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10203
4fd73214
MJ
102042011-02-09 Martin Jambor <mjambor@suse.cz>
10205
10206 PR middle-end/45505
10207 * tree-sra.c (struct access): New flags grp_scalar_read and
10208 grp_scalar_write. Changed description of assignment read and write
10209 flags.
10210 (dump_access): Dump new flags, reorder all of them.
10211 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10212 to detect multiple scalar reads.
10213 (analyze_access_subtree): Use the new scalar read write flags instead
10214 of the old flags. Adjusted comments.
10215
91140cd3
DD
102162011-02-08 DJ Delorie <dj@redhat.com>
10217
10218 PR target/47548
10219 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10220 patterns.
10221
4254bbfe
JM
102222011-02-08 Joseph Myers <joseph@codesourcery.com>
10223
10224 * config/m68k/uclinux.opt: New.
10225 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10226
f1fda84e
JM
102272011-02-08 Joseph Myers <joseph@codesourcery.com>
10228
10229 * config/cris/elf.opt (sim): New Driver option.
10230
4933ae74
JM
102312011-02-08 Joseph Myers <joseph@codesourcery.com>
10232
10233 * config/xtensa/elf.opt: New.
10234 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10235
4ad70280
JM
102362011-02-08 Joseph Myers <joseph@codesourcery.com>
10237
10238 * config/vax/elf.opt: New.
10239 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10240
20893707
JM
102412011-02-08 Joseph Myers <joseph@codesourcery.com>
10242
10243 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10244
b8e7038e
JM
102452011-02-08 Joseph Myers <joseph@codesourcery.com>
10246
10247 * config/gnu-user.opt: New.
10248 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10249 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10250 *-*-uclinux*): Use gnu-user.opt.
10251
e1c5225a
TS
102522011-02-08 Thomas Schwinge <thomas@schwinge.name>
10253
10254 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10255 * config/i386/gnu.h (CPP_SPEC): Likewise.
10256
5e46b0c6
ILT
102572011-02-08 Ian Lance Taylor <iant@google.com>
10258
10259 * common.opt (fcx-limited-range): Add SetByCombined flag.
10260 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10261 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10262 (fassociative-math, freciprocal-math): Likewise.
10263 (funsafe-math-optimizations): Likewise.
10264 * opth-gen.awk: Handle SetByCombined.
10265 * optc-gen.awk: Likewise.
ea4c3e65 10266 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
10267 (set_unsafe_math_optimizations_flags): Likewise.
10268 * doc/options.texi (Option properties): Document SetByCombined.
10269
32243d46
JM
102702011-02-08 Joseph Myers <joseph@codesourcery.com>
10271
10272 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10273 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10274 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10275 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10276 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10277
479c1fb3
SP
102782011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10279
10280 PR tree-optimization/46834
10281 PR tree-optimization/46994
10282 PR tree-optimization/46995
10283 * graphite-sese-to-poly.c (used_outside_reduction): New.
10284 (detect_commutative_reduction): Call used_outside_reduction.
10285 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10286 translate_scalar_reduction_to_array only when at least one
10287 loop-phi/close-phi tuple has been detected.
10288
3865a06f
RG
102892011-02-08 Richard Guenther <rguenther@suse.de>
10290
10291 PR middle-end/47639
10292 * tree-vect-generic.c (expand_vector_operations_1): Update
10293 stmts here ...
10294 (expand_vector_operations): ... not here. Cleanup EH info
10295 and the CFG if required.
10296
62902f3f
RG
102972011-02-08 Richard Guenther <rguenther@suse.de>
10298
10299 PR tree-optimization/47641
10300 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10301 require type compatibility.
10302
0efb9d64
AK
103032011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10304
10305 * gimple-low.c (lower_function_body): Don't remove the location of
10306 the return statement here.
10307 (lower_gimple_return): Do it here instead but only if the return
10308 statement is actually used twice.
10309
034b8ae4
RG
103102011-02-08 Richard Guenther <rguenther@suse.de>
10311
10312 PR tree-optimization/47632
10313 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10314 unused up_to_stmt parameter, return whether cfg-cleanup is
10315 necessary, remove EH info properly.
10316 (forward_propagate_into_gimple_cond): Adjust caller.
10317 (forward_propagate_into_cond): Likewise.
10318 (forward_propagate_comparison): Likewise.
10319 (tree_ssa_forward_propagate_single_use_vars): Make
10320 forward_propagate_comparison case similar to the two others.
10321
298362c8
NC
103222011-02-08 Nick Clifton <nickc@redhat.com>
10323
10324 * config/mn10300/mn10300.opt (mliw): New command line option.
10325 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10326 (liw_bundling): New automaton.
10327 (liw): New attribute.
10328 (liw_op): New attribute.
10329 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10330 (movsi_internal): Add LIW attributes.
10331 (andsi3): Likewise.
10332 (iorsi3): Likewise.
10333 (xorsi3): Likewise.
10334 (addsi3): Separate register and immediate alternatives.
10335 Add LIW attributes.
10336 (subsi3): Likewise.
10337 (cmpsi): Likewise.
10338 (aslsi3): Likewise.
10339 (lshrsi3): Likewise.
10340 (ashrsi3): Likewise.
10341 (liw): New pattern.
10342 * config/mn10300/mn10300.c (liw_op_names): New
10343 (mn10300_print_operand): Handle 'W' operand descriptor.
10344 (extract_bundle): New function.
10345 (check_liw_constraints): New function.
10346 (liw_candidate): New function.
10347 (mn10300_bundle_liw): New function.
10348 (mn10300_reorg): New function.
10349 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10350 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10351 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10352 __LIW__ or __NO_LIW__.
10353 * doc/invoke.texi: Describe the -mliw command line option.
10354
90488014
JDA
103552011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10356
10357 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10358 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10359 pthread_mutex_unlock): Remove.
10360 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10361 * config/pa/t-pa64: Likewise.
10362 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10363 shared libc if not linking against libpthread.
10364 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10365
689ff841
IS
103662011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10367
10368 PR target/47558
10369 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10370 on 10.6 and later to ensure that we always use the unwinder from
10371 the system. Only add -no_compact_unwind when tarteting darwin
10372 10.6 or later.
10373
821014aa
SE
103742011-02-07 Steve Ellcey <sje@cup.hp.com>
10375
10376 PR target/46997
10377 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10378 (vec_interleave_lowv2sf): Ditto.
10379 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10380 (vec_extract_oddv2sf): Ditto.
10381
41cf94fb
MS
103822011-02-07 Mike Stump <mikestump@comcast.net>
10383
62dea57d 10384 PR target/42333
41cf94fb
MS
10385 Add __ieee_divdc3 entry point.
10386 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10387 entry point.
10388 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10389 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10390 * config/darwin.c (darwin_rename_builtins): Add.
10391 * config/darwin-protos.h (darwin_rename_builtins): Add.
10392
ee09a3dd
MM
103932011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10394
10395 PR target/47636
10396 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10397 for the condition.
10398
83296cd0
MS
103992011-02-07 Mike Stump <mikestump@comcast.net>
10400
ea4c3e65 10401 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 10402
0f4e946f
DC
104032011-02-07 Denis Chertykov <chertykov@gmail.com>
10404
10405 PR target/47534
10406 * config/avr/libgcc.S (exit): Move .endfunc
10407
1ec87690
RG
104082011-02-07 Richard Guenther <rguenther@suse.de>
10409
10410 PR tree-optimization/47615
10411 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10412 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10413 (run_scc_vn): Initialize it.
10414 (visit_reference_op_load): Use it.
10415 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10416
b46ae6da
UW
104172011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10418
10419 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10420 DImode trapping arithmetic libfuncs.
10421
c0aae19c
RG
104222011-02-07 Richard Guenther <rguenther@suse.de>
10423
10424 PR tree-optimization/47621
10425 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10426 two duplicates ...
10427 (execute_update_addresses_taken): ... here. Make it more
10428 conservative in what we accept.
10429
295d926b
JM
104302011-02-06 Joseph Myers <joseph@codesourcery.com>
10431
10432 * config/sparc/freebsd.h (ASM_SPEC): Define.
10433 * config/sparc/vxworks.h (ASM_SPEC): Define.
10434
bdeb2471
JM
104352011-02-06 Joseph Myers <joseph@codesourcery.com>
10436
10437 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10438
d5d3781a
SB
104392011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10440
10441 * doc/invoke.texi: Remove reference to compiler internals from
10442 user documentation.
10443
10444 * reg-notes.def: Remove REG_VALUE_PROFILE.
10445 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10446
c42c09fc
JJ
104472011-02-05 Jakub Jelinek <jakub@redhat.com>
10448
10449 PR middle-end/47610
10450 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 10451 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 10452
beea2755
JZ
104532011-02-05 Jie Zhang <jie@codesourcery.com>
10454
10455 PR debug/42631
10456 * web.c (entry_register): Don't clobber the number of the
10457 first uninitialized reference in used[].
10458
a130584a
SP
104592011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10460
10461 PR tree-optimization/46194
10462 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10463 (build_classic_dist_vector_1): Do not represent classic distance
10464 vectors when the access functions are variating in different loops.
10465
962101ac
JM
104662011-02-04 Joseph Myers <joseph@codesourcery.com>
10467
10468 * config/mips/iris6.opt: New.
10469 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10470
55eaaa5b
RH
104712011-02-04 Richard Henderson <rth@redhat.com>
10472 Steve Ellcey <sje@cup.hp.com>
10473
10474 PR target/46997
10475 * config/ia64/predicates.md (mux1_brcst_element): New.
10476 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10477 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10478 (ia64_unpack_sign): New.
10479 (ia64_expand_unpack): Rewrite using new routines.
10480 (ia64_expand_widen_sum): Ditto.
10481 (ia64_expand_dot_prod_v8qi): Ditto.
10482 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10483 routines, add endian check.
10484 (pmpy2_even): Rename from pmpy2_r, add endian check.
10485 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10486 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10487 (vec_widen_smult_hi_v4hi): Ditto.
10488 (vec_widen_umult_lo_v4hi): Ditto.
10489 (vec_widen_umult_hi_v4hi): Ditto.
10490 (mulv2si3): Change endian checks.
10491 (sdot_prodv4hi): Rewrite with new calls.
10492 (udot_prodv4hi): New.
10493 (vec_pack_ssat_v4hi): Add endian check.
10494 (vec_pack_usat_v4hi): Ditto.
10495 (vec_pack_ssat_v2si): Ditto.
10496 (max1_even): Rename from max1_r, add endian check.
10497 (max1_odd): Rename from max1_l, add endian check.
10498 (*mux1_rev): Format change.
10499 (*mux1_mix): Ditto.
10500 (*mux1_shuf): Ditto.
10501 (*mux1_alt): Ditto.
10502 (*mux1_brcst_v8qi): Use new predicate.
10503 (vec_extract_evenv8qi): Remove endian check.
10504 (vec_extract_oddv8qi): Ditto.
10505 (vec_interleave_lowv4hi): Format change.
10506 (vec_interleave_highv4hi): Ditto.
10507 (mix2_even): Rename from mix2_r, add endian check.
10508 (mix2_odd): Rename from mux2_l, add endian check.
10509 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10510 (vec_extract_evenodd_helper): Format change.
10511 (vec_extract_evenv4hi): Remove endian check.
10512 (vec_extract_oddv4hi): Remove endian check.
10513 (vec_interleave_lowv2si): Format change.
10514 (vec_interleave_highv2si): Format change.
10515 (vec_initv2si): Remove endian check.
10516 (vecinit_v2si): Add endian check.
10517 (reduc_splus_v2sf): Add endian check.
10518 (reduc_smax_v2sf): Ditto.
10519 (reduc_smin_v2sf): Ditto.
10520 (vec_initv2sf): Remove endian check.
10521 (fpack): Add endian check.
10522 (fswap): Add endian check.
10523 (vec_interleave_highv2sf): Add endian check.
10524 (vec_interleave_lowv2sf): Add endian check.
10525 (fmix_lr): Add endian check.
10526 (vec_setv2sf): Format change.
10527 (*vec_extractv2sf_0_be): Use shift to extract operand.
10528 (*vec_extractv2sf_1_be): New.
10529 (vec_pack_trunc_v4hi): Add endian check.
10530 (vec_pack_trunc_v2si): Format change.
10531
dcde5957
JJ
105322011-02-04 Jakub Jelinek <jakub@redhat.com>
10533
10534 PR inline-asm/23200
10535 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 10536 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
10537 (stmt_is_replaceable_p): New function.
10538 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10539 callers.
10540 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10541 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10542 SSA_NAME_DEF_STMT.
10543 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10544
a64a8e5a
JM
105452011-02-04 Joseph Myers <joseph@codesourcery.com>
10546
10547 * config/rs6000/xilinx.opt: New.
10548 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10549
4da2ed2f
JM
105502011-02-04 Joseph Myers <joseph@codesourcery.com>
10551
10552 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10553
a6e508f9
AS
105542011-02-03 Anatoly Sokolov <aesok@post.ru>
10555
10556 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10557 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10558 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10559 secondary_reload_info, xtensa_secondary_reload): Remove.
10560 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10561 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10562 (xtensa_preferred_reload_class): Make static. Change return and
10563 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10564 Use CONST_DOUBLE_P predicate.
10565 (xtensa_preferred_output_reload_class): New function.
10566 (xtensa_secondary_reload): Make static.
10567
82dc0de3
JM
105682011-02-03 Joseph Myers <joseph@codesourcery.com>
10569
10570 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10571 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10572 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10573
7fece979
JJ
105742011-02-03 Jakub Jelinek <jakub@redhat.com>
10575
10576 PR middle-end/31490
10577 * output.h (SECTION_RELRO): Define.
10578 (SECTION_MACH_DEP): Adjust.
10579 (get_variable_section): New prototype.
10580 * varpool.c (varpool_finalize_named_section_flags): New function.
10581 (varpool_assemble_pending_decls): Call it.
10582 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10583 * cgraphunit.c (cgraph_output_in_order): Call
10584 varpool_finalize_named_section_flags.
10585 * varasm.c (get_section): Allow section flags conflicts between
10586 relro and read-only sections if the section hasn't been declared yet.
10587 Set SECTION_OVERRIDE after diagnosing section type conflict.
10588 (get_variable_section): No longer static.
10589 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10590 readonly sections that need relocations.
10591 (decl_readonly_section_1): New function.
10592 (decl_readonly_section): Use it.
10593
10594 Revert:
509d65dd 10595 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
10596 Steve Ellcey <sje@cup.hp.com>
10597
10598 PR middle-end/31490
10599 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10600 if section attribute used.
10601
d18d5478
JJ
106022011-02-03 Jakub Jelinek <jakub@redhat.com>
10603
10604 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10605 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10606 (darwin_init_sections): Remove assertion.
10607
6479ed4b
NC
106082011-02-03 Nick Clifton <nickc@redhat.com>
10609
10610 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10611 lt and ge.
38be4072 10612 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
10613 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10614 instead of "n" and "pz".
10615 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10616 CC_FLAG_S.
10617
89843f5d
JJ
106182011-02-03 Jakub Jelinek <jakub@redhat.com>
10619
65450d64
JJ
10620 PR target/47312
10621 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10622 fma, expand FMA_EXPR as fma{,f,l} call.
10623
7d58701c
JJ
10624 PR lto/47274
10625 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10626 copy them into a unsigned char variable and pass address of it to
10627 lto_output_data_stream.
10628
89843f5d
JJ
10629 PR target/47564
10630 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10631 around backend_init_target and lang_dependent_init_target calls.
10632 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10633 (verify_cgraph_node): Don't call set_cfun here. Use
10634 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10635 Set error_found for incorrectly represented calls to thunks.
10636
4deef538
AO
106372011-02-03 Alexandre Oliva <aoliva@redhat.com>
10638
10639 PR debug/43092
10640 PR rtl-optimization/43494
10641 * rtl.h (for_each_inc_dec_fn): New type.
10642 (for_each_inc_dec): Declare.
10643 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10644 (for_each_inc_dec_find_inc_dec): New fn.
10645 (for_each_inc_dec_find_mem): New fn.
10646 (for_each_inc_dec): New fn.
10647 * dse.c (struct insn_size): Remove.
10648 (replace_inc_dec, replace_inc_dec_mem): Remove.
10649 (emit_inc_dec_insn_before): New fn.
10650 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10651 (canon_address): Pass mem modes to cselib_lookup.
10652 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10653 (cselib_lookup_from_insn): Likewise.
10654 (cselib_subst_to_values): Likewise.
10655 * cselib.c (find_slot_memmode): New var.
10656 (cselib_find_slot): New fn. Use it instead of
10657 htab_find_slot_with_hash everywhere.
10658 (entry_and_rtx_equal_p): Use find_slot_memmode.
10659 (autoinc_split): New fn.
10660 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10661 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10662 Deal with autoinc. Special-case recursion into MEMs.
10663 (cselib_hash_rtx): Likewise.
10664 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10665 address and MEM modes.
10666 (cselib_subst_to_values): Add memmode, pass it on.
10667 Deal with autoinc.
10668 (cselib_lookup): Add memmode argument, pass it on.
10669 (cselib_lookup_from_insn): Add memmode.
10670 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10671 (struct cselib_record_autoinc_data): New.
10672 (cselib_record_autoinc_cb): New fn.
10673 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10674 mode to cselib_lookup. Reset autoinced REGs here instead of...
10675 (cselib_process_insn): ... here.
10676 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10677 to cselib_lookup.
10678 (add_uses): Likewise, also to cselib_subst_to_values.
10679 (add_stores): Likewise.
10680 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10681 cselib_subst_to_values.
10682 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10683 * gcse.c (do_local_cprop): Adjusted.
10684 * postreload.c (reload_cse_simplify_set): Adjusted.
10685 (reload_cse_simplify_operands): Adjusted.
10686 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10687
1551d44a
AO
106882011-02-03 Alexandre Oliva <aoliva@redhat.com>
10689
10690 PR tree-optimization/45122
10691 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10692 unsafe assumptions when there's more than one loop exit.
10693
c9485473
MM
106942011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10695
10696 PR target/47272
10697 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10698 Document using vector double with the load/store builtins, and
10699 that the load/store builtins always use Altivec instructions.
10700
10701 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10702 to use altivec memory instructions, even on VSX.
10703 (vector_altivec_store_<mode>): Ditto.
10704
10705 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10706 function.
10707
10708 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10709 V2DF, V2DI support to load/store overloaded builtins.
10710
10711 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10712 altivec load/store builtins for V2DF/V2DI types.
10713
10714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10715 set avoid indexed addresses on power6 if -maltivec.
10716 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10717 vector_altivec_load/vector_altivec_store builtins.
10718 (altivec_expand_st_builtin): Ditto.
10719 (altivec_expand_builtin): Add VSX memory builtins.
10720 (rs6000_init_builtins): Add V2DI types to internal types.
10721 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10722 load/store builtins.
10723 (rs6000_address_for_altivec): Insure memory address is appropriate
10724 for Altivec.
10725
10726 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10727 vec_vsx_ld and vec_vsx_st.
10728 (vsx_store_<mode>): Ditto.
10729
10730 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10731 variables to hold long long types for VSX vector memory builtins.
10732 (RS6000_BTI_unsigned_long_long): Ditto.
10733 (long_long_integer_type_internal_node): Ditti.
10734 (long_long_unsigned_type_internal_node): Ditti.
10735
10736 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10737 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10738 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10739
10740 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10741 short cuts.
10742 (vec_vsx_st): Ditto.
10743
b24d1acf
JM
107442011-02-02 Joseph Myers <joseph@codesourcery.com>
10745
10746 * config/pa/pa-hpux10.opt: New.
10747 * config/hpux11.opt (pthread): New Driver option.
10748 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10749 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10750
aa18dd0f
JM
107512011-02-02 Joseph Myers <joseph@codesourcery.com>
10752
10753 * config/ia64/vms.opt: New.
10754 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10755
28fc3eee
MM
107562011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10757
10758 PR target/47580
10759 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10760 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10761 generator functions.
10762 (vsx_floatuns<VSi><mode>2): Ditto.
10763 (vsx_fix_trunc<mode><VSi>2): Ditto.
10764 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10765
b5838b1f
JM
107662011-02-02 Joseph Myers <joseph@codesourcery.com>
10767
10768 * config/i386/djgpp.opt (posix): New Driver option.
10769
0db8fa89
GP
107702011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10771
10772 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10773 Move to the unsupported targets list.
10774
9cd4f22a
PB
107752011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10776
10777 PR rtl-optimization/47525
10778 * df-scan.c: Update copyright years.
10779 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10780 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10781
9ed8059c
RO
107822011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10783
10784 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10785 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10786 (ASM_OUTPUT_ASCII): Remove.
10787 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10788
2a737389
JL
107892011-02-02 Jeff Law <law@redhat.com>
10790
10791 PR middle-end/47543
10792 * reload.c (find_reloads_address): Handle reg+d address where both
10793 components are invalid by reloading the entire address.
10794
9dac82c4
SP
107952011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10796 Richard Guenther <rguenther@suse.de>
10797
10798 PR tree-optimization/40979
10799 PR bootstrap/47044
10800 * passes.c (init_optimization_passes): After LIM call copy_prop
10801 and DCE to clean up.
10802 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10803
14dd9aab
SP
108042011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10805
10806 PR tree-optimization/47576
10807 PR tree-optimization/47555
10808 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10809 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10810 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10811 * tree-scalar-evolution.c (follow_ssa_edge): Use
10812 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10813
5cbf5c20
RG
108142011-02-02 Richard Guenther <rguenther@suse.de>
10815
10816 PR tree-optimization/47566
10817 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10818
83d70792
AO
108192011-02-02 Alexandre Oliva <aoliva@redhat.com>
10820
e829c321
AO
10821 PR debug/47106
10822 PR debug/47402
10823 * tree-inline.c (declare_return_variable): Remove unused caller
10824 variable.
10825
83d70792
AO
10826 PR debug/47106
10827 PR debug/47402
10828 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10829 * cfgexpand.c (account_used_vars_for_block): Use them.
10830 * tree-nrv.c (tree_nrv): Likewise.
10831 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10832 (dump_scope_block): Likewise.
10833 (remove_unused_locals): Likewise.
10834
aaa2ac93
AO
10835 PR debug/47106
10836 PR debug/47402
10837 * tree-inline.c (declare_return_variable): Add result decl to
10838 local decls only once.
10839 * gimple-low.c (record_vars_into): Mark newly-created variables
10840 as referenced.
10841
a59d15cf
AO
108422011-02-02 Alexandre Oliva <aoliva@redhat.com>
10843
10844 PR debug/47498
10845 PR debug/47501
10846 PR debug/45136
10847 PR debug/45130
10848 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10849 debug insns.
10850 (no_real_insns_p, schedule_block, set_priorities): Drop special
10851 treatment of boundary debug insns.
38be4072 10852 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
10853 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10854 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10855 (BOUNDARY_DEBUG_INSN_P): Likewise.
10856 (SCHEDULE_DEBUG_INSN_P): Likewise.
10857 * sched-rgn.c (init_ready_list): Drop special treatment of
10858 boundary debug insns.
10859 * final.c (rest_of_clean_state): Clear notes' BB.
10860
6fc2f091
JM
108612011-02-01 Joseph Myers <joseph@codesourcery.com>
10862
10863 * config/openbsd.opt (assert=): New Driver option.
10864
fc523387
JM
108652011-02-01 Joseph Myers <joseph@codesourcery.com>
10866
10867 * config/i386/nto.opt: New.
10868 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10869
6d9821e5
JM
108702011-02-01 Joseph Myers <joseph@codesourcery.com>
10871
10872 * config/i386/netware.opt: New.
10873 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10874
cef932d4
JM
108752011-02-01 Joseph Myers <joseph@codesourcery.com>
10876
10877 * config/interix.opt (posix): New Driver option.
10878
22843acd
DD
108792011-02-01 DJ Delorie <dj@redhat.com>
10880
56490b74
DD
10881 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10882
22843acd
DD
10883 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10884 class for A0/A1.
10885
199c8f2f
SP
108862011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10887
10888 PR tree-optimization/47561
10889 * toplev.c (process_options): Print the Graphite flags. Add
10890 flag_loop_flatten to the list of options requiring Graphite.
10891
926bcf22
JM
108922011-02-01 Joseph Myers <joseph@codesourcery.com>
10893
10894 * config/i386/cygming.opt (posix): New Driver option.
10895
59793c51
JM
108962011-02-01 Joseph Myers <joseph@codesourcery.com>
10897
10898 * config/arm/vxworks.opt: New.
10899 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10900
183c38a4
JM
109012011-02-01 Joseph Myers <joseph@codesourcery.com>
10902
10903 * config/alpha/elf.opt: New.
10904 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10905 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10906
9939e416
RG
109072011-02-01 Richard Guenther <rguenther@suse.de>
10908
10909 PR tree-optimization/47559
10910 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10911 store-motion on references that can throw.
10912
4a3c9687
BS
109132011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10914
10915 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10916 * tree-pass.h (TDF_CSELIB): New macro.
10917 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10918 cselib_lookup): Check for it rather than for TDF_DETAILS.
10919
dd3b31fb
L
109202011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10921
10922 PR driver/47547
10923 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10924 is HOST_BIT_BUCKET.
10925
10926 * opts.c (finish_options): Don't add x_aux_base_name if it is
10927 HOST_BIT_BUCKET.
10928
34c1de79
RG
109292011-02-01 Richard Guenther <rguenther@suse.de>
10930
10931 PR tree-optimization/47555
10932 Revert
10933 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10934
10935 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10936
dd2804d2
SB
109372011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10938
10939 PR gcc/46692
10940 * config/lm32/t-lm32: Add multilib for all CPU options.
10941
3fd3b156
RG
109422011-02-01 Richard Guenther <rguenther@suse.de>
10943
10944 PR tree-optimization/47541
10945 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10946 sure to have a field at offset zero.
10947
f16072b6
JM
109482011-01-31 Joseph Myers <joseph@codesourcery.com>
10949
10950 * config/arc/arc.opt (EB, EL): New Driver options.
10951
6456cf2e
JM
109522011-01-31 Joseph Myers <joseph@codesourcery.com>
10953
10954 * config/alpha/osf5.opt: New.
10955 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10956
cdde6ab4
JM
109572011-01-31 Joseph Myers <joseph@codesourcery.com>
10958
10959 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10960
7633415c
SP
109612011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10962
10963 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10964 -floop-interchange.
10965 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10966 is an alias of -floop-interchange and that it requires the
10967 Graphite infrastructure.
10968 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10969 flag_loop_interchange based on the value of flag_tree_loop_linear.
10970
0425d6f5
JJ
109712011-01-31 Jakub Jelinek <jakub@redhat.com>
10972 Richard Guenther <rguenther@suse.de>
10973
10974 PR tree-optimization/47538
10975 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10976 type instead of r1type, except for comparisons. For right
10977 shifts and comparisons punt if there are mismatches in
10978 sizetype vs. non-sizetype types.
10979
500b16c3
RO
109802011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10981
10982 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10983 avx_runtime.
10984
e279edb0
RO
109852011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10986
10987 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10988 version number.
10989 * configure: Regenerate.
10990
c6092243
RO
109912011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10992
10993 * configure.ac (gcc_cv_ld_static_option): Define.
10994 (gcc_cv_ld_dynamic_option): Define.
10995 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10996 instead.
10997 (HAVE_LD_STATIC_DYNAMIC): Update message.
10998 (LD_STATIC_OPTION): Define.
10999 (LD_DYNAMIC_OPTION): Define.
11000 * configure: Regenerate.
11001 * config.in: Regenerate.
11002 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11003 HAVE_LD_STATIC_DYNAMIC]: Use them.
11004
d7862be3
NC
110052011-01-31 Nick Clifton <nickc@redhat.com>
11006
11007 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11008 registers inside interrupt handlers if the handler is not a leaf
11009 function.
11010
ba4ec0e0
NC
110112011-01-31 Nick Clifton <nickc@redhat.com>
11012
11013 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11014 reg_renumber returning an INVALID_REGNUM.
11015
29a63921
AO
110162011-01-31 Alexandre Oliva <aoliva@redhat.com>
11017
11018 PR libgcj/44341
11019 * doc/install.texi: Document host options discarded when cross
11020 configuring target libraries.
11021
ef591d3f
AO
110222011-01-31 Alexandre Oliva <aoliva@redhat.com>
11023
11024 Reverted:
11025 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11026 PR debug/45136
11027 PR debug/45130
11028 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11029 debug insns.
11030 (no_real_insns_p, schedule_block, set_priorities): Drop special
11031 treatment of boundary debug insns.
38be4072 11032 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
11033 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11034 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11035 (BOUNDARY_DEBUG_INSN_P): Likewise.
11036 (SCHEDULE_DEBUG_INSN_P): Likewise.
11037 * sched-rgn.c (init_ready_list): Drop special treatment of
11038 boundary debug insns.
11039 * final.c (rest_of_clean-state): Clear notes' BB.
11040
61052244
AM
110412011-01-31 Alan Modra <amodra@gmail.com>
11042
11043 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11044 toc relative expressions as we do in print_operand_address.
11045
c4c8962b
KH
110462011-01-30 Kazu Hirata <kazu@codesourcery.com>
11047
11048 * doc/extend.texi: Follow spelling conventions.
11049 * doc/invoke.texi: Fix a typo.
11050
e543b94c
JM
110512011-01-30 Joseph Myers <joseph@codesourcery.com>
11052
11053 * config/hpux11.opt: New.
11054 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11055 ia64*-*-hpux*): Use hpux11.opt.
11056
509d65dd 110572011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
11058
11059 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11060 to tmake_file.
11061
7be03a0e
GP
110622011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11063
11064 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11065 support sites.
11066
419d1d37
GP
110672011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11068
b596ed64
GP
11069 * doc/install.texi (Binaries): Remove outdated reference for
11070 Motorola 68HC11/68HC12 downloads.
11071
110722011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 11073
419d1d37
GP
11074 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11075 Drepper's paper.
11076
4406d0e9
JW
110772011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11078
11079 PR bootstrap/47147
11080 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11081 used by NetBSD.
11082
38be4072 110832011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
11084
11085 * value-prof.c (check_counter): Corrected error message.
11086
0cd98787
JZ
110872011-01-29 Jie Zhang <jie@codesourcery.com>
11088
11089 * config/arm/arm.c (arm_legitimize_reload_address): New.
11090 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11091 arm_legitimize_reload_address.
38be4072 11092 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 11093
9b798ac5
ILT
110942011-01-28 Ian Lance Taylor <iant@google.com>
11095
11096 * godump.c (go_define): Ignore macros whose definitions include
11097 two adjacent operands.
11098
591e29d9
JJ
110992011-01-28 Jakub Jelinek <jakub@redhat.com>
11100
11101 PR target/42894
11102 * varasm.c (force_const_mem): Store copy of x in desc->constant
11103 instead of x itself.
11104 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11105 itself into REG_EQUAL note.
11106
62dcc44a
JM
111072011-01-28 Joseph Myers <joseph@codesourcery.com>
11108
11109 * config/freebsd.opt (posix, rdynamic): New Driver options.
11110
c9f58b9a
RO
111112011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11112
11113 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11114 -Bstatic/-Bdynamic.
11115 * configure: Regenerate.
11116
5f02b9db
JM
111172011-01-27 Joseph Myers <joseph@codesourcery.com>
11118
11119 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11120 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11121
5df97412
AS
111222011-01-27 Anatoly Sokolov <aesok@post.ru>
11123
11124 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11125 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11126 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11127 (s390_preferred_reload_class): Make static. Change return and
11128 'rclass' argument type to reg_class_t.
11129
779d4b91
JH
111302011-01-27 Jan Hubicka <jh@suse.cz>
11131
11132 PR middle-end/46949
11133 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11134 (process_function_and_variable_attributes): Check defined weakrefs.
11135
e80b21ed
MJ
111362011-01-27 Martin Jambor <mjambor@suse.cz>
11137
11138 PR tree-optimization/47228
11139 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11140 build_ref_for_offset.
11141
6dcc4f31
UW
111422011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11143
11144 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11145
509d65dd 111462011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
11147
11148 PR rtl-optimization/46856
11149 * postreload.c (reload_combine_recognize_const_pattern): Do not
11150 separate cc0 setter and user on cc0 targets.
11151
04af8788
NP
111522011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11153
11154 PR c/43082
11155 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11156 passed a VOID_TYPE expression, immediately emit an error and
11157 return error_mark_node.
11158
f7a60085
JL
111592011-01-26 Jeff Law <law@redhat.com>
11160
11161 PR rtl-optimization/47464
11162 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11163 rather than may_trap_p as needed.
11164
5c2917ec
DD
111652011-01-26 DJ Delorie <dj@redhat.com>
11166
11167 PR rtl-optimization/46878
11168 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11169 setter/user dependency as well.
11170
bef16e87
EB
111712011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11172
11173 PR rtl-optimization/44469
11174 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11175 after removing trivially dead basic blocks.
11176
c75d884b
JM
111772011-01-26 Joseph Myers <joseph@codesourcery.com>
11178
11179 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11180 * config/frv/frv.h (LINK_SPEC): Likewise.
11181 * config/i386/netware.h (LINK_SPEC): Likewise.
11182 * config/m68k/linux.h (ASM_SPEC): Likewise.
11183 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11184 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11185 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11186 * config/sparc/linux.h (ASM_SPEC): Likewise.
11187 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11188 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11189
d3153553
JM
111902011-01-26 Joseph Myers <joseph@codesourcery.com>
11191
11192 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11193 * config/frv/frv.h (ASM_SPEC): Likewise.
11194 * config/m68k/linux.h (ASM_SPEC): Likewise.
11195 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11196 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11197 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11198 * config/sparc/linux.h (ASM_SPEC): Likewise.
11199 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11200 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11201
b89b1e9d
JM
112022011-01-26 Joseph Myers <joseph@codesourcery.com>
11203
11204 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11205 * config/frv/frv.h (LINK_SPEC): Likewise.
11206 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11207
12eb1a9c
JM
112082011-01-26 Joseph Myers <joseph@codesourcery.com>
11209
11210 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11211 * config/frv/frv.h (ASM_SPEC): Likewise.
11212 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11213 * config/m68k/linux.h (ASM_SPEC): Likewise.
11214 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11215 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11216 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11217 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11218 * config/sparc/linux.h (ASM_SPEC): Likewise.
11219 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11220 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11221 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11222
e435f098
SE
112232011-01-26 Steve Ellcey <sje@cup.hp.com>
11224
11225 PR target/46997
11226 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11227 (*mux2): Ditto.
11228 (vec_extract_evenodd_help): Ditto.
11229 (vec_extract_evenv4hi): Ditto.
11230 (vec_extract_oddv4hi): Ditto.
11231 (vec_interleave_lowv2si): Ditto.
11232 (vec_interleave_highv2si): Ditto.
11233 (vec_extract_evenv2si): Ditto.
11234 (vec_extract_oddv2si: Ditto.
11235 (vec_pack_trunc_v2si): Ditto.
11236
34f0eee0
JH
112372011-01-22 Jan Hubicka <jh@suse.cz>
11238
11239 PR target/47237
11240 * cgraph.h (cgraph_local_info): New field can_change_signature.
11241 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11242 signature can change.
11243 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11244 can change.
11245 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11246 (cgraph_function_versioning): We can not change signature of functions
11247 that don't allow that.
11248 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11249 (lto_input_node): Likewise.
38be4072
UB
11250 * ipa-inline.c (compute_inline_parameters): Compute
11251 local.can_change_signature.
34f0eee0 11252 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
11253 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11254 functions that can not change signature.
34f0eee0 11255 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
11256 init_cumulative_args): Do not use local calling conventions
11257 for functions that can not change signature.
34f0eee0 11258
980ca891
JH
112592011-01-22 Jan Hubicka <jh@suse.cz>
11260
11261 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11262
768e3c60
RG
112632011-01-26 Richard Guenther <rguenther@suse.de>
11264
11265 PR tree-optimization/47190
61052244
AM
11266 * cgraphunit.c (process_common_attributes): New function.
11267 (process_function_and_variable_attributes): Use it.
768e3c60 11268
21d6a1c7
RG
112692011-01-26 Richard Guenther <rguenther@suse.de>
11270
11271 PR lto/47423
11272 * cgraphbuild.c (record_eh_tables): Record reference to personality
11273 function.
11274
48bb58b1
AO
112752011-01-26 Alexandre Oliva <aoliva@redhat.com>
11276
11277 PR debug/45454
11278 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11279 non-debug insns from moving up.
11280
58c741a6
DK
112812011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11282
11283 PR target/40125
11284 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11285 t-dlldir{,-x} fragment for build and add it to tmake_file.
11286 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11287 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11288 * config/i386/t-dlldir: New file.
11289 (SHLIB_DLLDIR): Define.
11290 * config/i386/t-dlldir-x: New file.
11291 (SHLIB_DLLDIR): Define.
11292 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11293 (SHLIB_INSTALL): Use it.
11294
bff99262
CLT
112952011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11296
11297 PR target/47246
11298 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11299 lower bound of the allowed Thumb-2 coprocessor load/store
11300 index range to -256. Add explaining comment.
11301
82c03907
ILT
113022011-01-25 Ian Lance Taylor <iant@google.com>
11303
11304 * godump.c (go_define): Improve lexing of macro expansion to only
11305 accept expressions which match Go spec.
11306
47ea1edf
DK
113072011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11308
d4dba752 11309 PR c++/43601
47ea1edf
DK
11310 * tree.c (handle_dll_attribute): Handle it.
11311 * doc/extend.texi (@item dllexport): Mention it.
11312 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11313
744f0946
ILT
113142011-01-25 Ian Lance Taylor <iant@google.com>
11315
11316 PR tree-optimization/26854
11317 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11318 (decl_jump_unsafe): Move higher in file, with no other change.
11319 (bind): Set has_jump_unsafe_decl if appropriate.
11320 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11321 (check_earlier_gotos): Likewise.
11322 (c_check_switch_jump_warnings): Likewise.
11323
5734f2b3
JW
113242011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11325
11326 * doc/invoke.texi (Warning Options): Add missing hyphen.
11327 (-fprofile-dir): Minor grammatical fixes.
11328 (-fbranch-probabilities): Likewise.
11329
9bdbdcef
AO
113302011-01-25 Alexandre Oliva <aoliva@redhat.com>
11331
11332 PR debug/45136
11333 PR debug/45130
11334 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11335 debug insns.
11336 (no_real_insns_p, schedule_block, set_priorities): Drop special
11337 treatment of boundary debug insns.
38be4072 11338 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
11339 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11340 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11341 (BOUNDARY_DEBUG_INSN_P): Likewise.
11342 (SCHEDULE_DEBUG_INSN_P): Likewise.
11343 * sched-rgn.c (init_ready_list): Drop special treatment of
11344 boundary debug insns.
11345 * final.c (rest_of_clean-state): Clear notes' BB.
11346
b305e3da
SP
113472011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11348
11349 * Makefile.in (LAMBDA_H): Removed.
11350 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11351 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11352 lambda-trans.o, and tree-loop-linear.o.
11353 (lto-symtab.o): Remove dependence on LAMBDA_H.
11354 (tree-loop-linear.o): Remove rule.
11355 (lambda-mat.o): Same.
11356 (lambda-trans.o): Same.
11357 (lambda-code.o): Same.
11358 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11359 (tree-vect-slp.o): Same.
11360 * hwint.h (gcd): Moved here.
11361 (least_common_multiple): Same.
11362 * lambda-code.c: Removed.
11363 * lambda-mat.c: Removed.
11364 * lambda-trans.c: Removed.
11365 * lambda.h: Removed.
11366 * tree-loop-linear.c: Removed.
11367 * lto-symtab.c: Do not include lambda.h.
11368 * omega.c (gcd): Removed.
11369 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11370 * tree-data-ref.c (print_lambda_vector): Moved here.
11371 (lambda_vector_copy): Same.
11372 (lambda_matrix_copy): Same.
11373 (lambda_matrix_id): Same.
11374 (lambda_vector_first_nz): Same.
11375 (lambda_matrix_row_add): Same.
11376 (lambda_matrix_row_exchange): Same.
11377 (lambda_vector_mult_const): Same.
11378 (lambda_vector_negate): Same.
11379 (lambda_matrix_row_negate): Same.
11380 (lambda_vector_equal): Same.
11381 (lambda_matrix_right_hermite): Same.
11382 * tree-data-ref.h: Do not include lambda.h.
11383 (lambda_vector): Moved here.
11384 (lambda_matrix): Same.
11385 (dependence_level): Same.
11386 (lambda_transform_legal_p): Removed declaration.
11387 (lambda_collect_parameters): Same.
11388 (lambda_compute_access_matrices): Same.
11389 (lambda_vector_gcd): Same.
11390 (lambda_vector_new): Same.
11391 (lambda_vector_clear): Same.
11392 (lambda_vector_lexico_pos): Same.
11393 (lambda_vector_zerop): Same.
11394 (lambda_matrix_new): Same.
11395 * tree-flow.h (least_common_multiple): Removed declaration.
11396 * tree-parloops.c (lambda_trans_matrix): Moved here.
11397 (LTM_MATRIX): Same.
11398 (LTM_ROWSIZE): Same.
11399 (LTM_COLSIZE): Same.
11400 (LTM_DENOMINATOR): Same.
11401 (lambda_trans_matrix_new): Same.
11402 (lambda_matrix_vector_mult): Same.
11403 (lambda_transform_legal_p): Same.
11404 * tree-pass.h (pass_linear_transform): Removed declaration.
11405 * tree-ssa-loop.c (tree_linear_transform): Removed.
11406 (gate_tree_linear_transform): Removed.
11407 (pass_linear_transform): Removed.
11408 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11409 flag_loop_interchange.
11410
6bdfdb96
JJ
114112011-01-25 Jakub Jelinek <jakub@redhat.com>
11412
11413 PR tree-optimization/47265
11414 PR tree-optimization/47443
11415 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11416 if name still has some uses.
11417
e4cba915
MJ
114182011-01-25 Martin Jambor <mjambor@suse.cz>
11419
11420 PR tree-optimization/47382
11421 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11422 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11423
509d65dd 114242011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
11425
11426 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11427 sjlj_except_unwind_info.
11428
194313e2
RG
114292011-01-25 Richard Guenther <rguenther@suse.de>
11430
11431 PR tree-optimization/47426
11432 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11433 visible functions results escape.
11434
147a0bcf
JJ
114352011-01-25 Jakub Jelinek <jakub@redhat.com>
11436
11437 PR target/45701
11438 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11439 (arm_get_frame_offsets): Use it.
11440
db963b52
SP
114412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11442 Jakub Jelinek <jakub@redhat.com>
11443
11444 PR tree-optimization/47271
11445 * tree-if-conv.c (bb_postdominates_preds): New.
11446 (if_convertible_bb_p): Call bb_postdominates_preds.
11447 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11448 (predicate_scalar_phi): Call bb_postdominates_preds.
11449
bcddd3b9
NC
114502011-01-25 Nick Clifton <nickc@redhat.com>
11451
11452 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11453 * config/rx/rx.c (rx_function_value): Likewise.
11454 (rx_promote_function_mode): Likewise.
11455 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11456 in order to make it legitimate.
38be4072
UB
11457 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11458 make sure that the first operand is the same as the result register.
bcddd3b9
NC
11459 (addsi3_unspec): Delete.
11460 (subdi3): Do not accept immediate operands.
11461 (subdi3_internal): Likewise.
11462
7e6cb022
JL
114632011-01-25 Jeff Law <law@redhat.com>
11464
11465 PR rtl-optimization/37273
11466 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11467 handle them like argument loads from stack slots. Do not double
11468 count memory for memory constants and argument loads from stack slots.
11469
9ffa621e
JJ
114702011-01-25 Jakub Jelinek <jakub@redhat.com>
11471
11472 PR tree-optimization/47427
11473 PR tree-optimization/47428
11474 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11475 coalesce if the new root var would be TREE_READONLY.
11476
5bd6e652
RG
114772011-01-25 Richard Guenther <rguenther@suse.de>
11478
11479 PR middle-end/47414
11480 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11481 correct type for TBAA.
11482
7c48ea69
SP
114832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11484
11485 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11486 (close_phi_written_to_memory): Call for_each_index with
11487 dr_indices_valid_in_loop.
11488
38013f25
SP
114892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11490
11491 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11492 when it is initialized.
11493
5c640e29
SP
114942011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11495
11496 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11497 call to graphite_find_data_references_in_stmt.
11498 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11499 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11500 call to graphite_find_data_references_in_stmt.
11501 (analyze_drs_in_stmts): Same.
11502 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11503 in which the scalar analysis of indices is performed.
11504 (create_data_ref): Same. Update call to dr_analyze_indices.
11505 (find_data_references_in_stmt): Update call to create_data_ref.
11506 (graphite_find_data_references_in_stmt): Same.
11507 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11508 declaration.
11509 (create_data_ref): Same.
11510 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11511 call to create_data_ref.
11512
ac53c069
SP
115132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11514
11515 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 11516 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 11517
3d17df15
SP
115182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11519
11520 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11521 VAR_DECL, PARM_DECL, and RESULT_DECL.
11522
c513da01
SP
115232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11524
11525 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11526 in a reduction PBB.
11527 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11528 that have already been marked as PBB_IS_REDUCTION.
11529
3a292d59
SP
115302011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11531
11532 * graphite-scop-detection.c (same_close_phi_node): New.
11533 (remove_duplicate_close_phi): New.
11534 (make_close_phi_nodes_unique): New.
11535 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11536
ba858447
SP
115372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11538
11539 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11540 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11541 of both data references to be the same.
11542
8d865c56
SP
115432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11544
38be4072
UB
11545 * graphite-dependences.c (build_lexicographical_constraint): Remove
11546 the gdim parameter.
11547 (build_lexicographical_constraint): Adjust call to
11548 ppl_powerset_is_empty.
8d865c56
SP
11549 (dependence_polyhedron): Same.
11550 (graphite_legal_transform_dr): Same.
11551 (graphite_carried_dependence_level_k): Same.
38be4072
UB
11552 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11553 parameter.
8d865c56
SP
11554 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11555
50034a36
SP
115562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11557
11558 * graphite-sese-to-poly.c
11559 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11560 (close_phi_written_to_memory): New.
11561 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11562 and unshare_expr.
11563
0deada9e
SP
115642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11565
11566 * doc/install.texi: Update the expected version number of PPL to 0.11.
11567 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11568 #if PPL_VERSION_MINOR < 11.
11569
d7d3d6af
SP
115702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11571
11572 * graphite-dependences.c: Include graphite-cloog-util.h.
11573 (new_poly_ddr): Inlined into dependence_polyhedron.
11574 (free_poly_ddr): Moved close by new_poly_ddr.
11575 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11576 Early return NULL when ppl_powerset_is_empty returns true.
11577 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11578 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11579 (graphite_legal_transform_dr): Call new_poly_ddr.
11580 (graphite_carried_dependence_level_k): Same.
11581 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11582 (dot_transformed_deps_stmt_1): Removed.
11583 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11584 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11585 (dot_deps_1): Call dot_deps_2.
11586 * Makefile.in (graphite-dependences.o): Add missing dependence on
11587 graphite-cloog-util.h.
11588
28c5db57
SP
115892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11590
11591 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11592 (build_lexicographical_constraint): Same.
11593 (dependence_polyhedron_1): Same.
11594 (graphite_legal_transform_dr): Same.
11595 (graphite_carried_dependence_level_k): Same.
11596 * graphite-ppl.c (ppl_powerset_is_empty): New.
11597 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11598 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11599
5168d98f
SP
116002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11601
11602 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11603 the "a followed by b" relation and document it.
11604
4a40293a
SP
116052011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11606
11607 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11608 iteration when the bag of constraints is empty.
11609
271fb6fa
SP
116102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11611
11612 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11613
92d23680
SP
116142011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11615
11616 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11617 nest and two loop depths as parameters.
11618 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11619 lst_perfect_nestify.
11620
2f51deff
SP
116212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11622
11623 * graphite-dependences.c (print_pddr): Call
11624 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11625
07f3593c
SP
116262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11627
11628 * graphite-ppl.c (debug_gmp_value): New.
11629 * graphite-ppl.h (debug_gmp_value): Declared.
11630
3fae6099
TG
116312011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11632
11633 * doc/install.texi: Document availability of cloog-0.16.
11634
1c3ba85b
SP
116352011-01-25 Vladimir Kargov <kargov@gmail.com>
11636
11637 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11638 invalid postdominance info.
11639
e8ba94fc
JH
116402011-01-24 Jan Hubicka <jh@suse.cz>
11641
11642 PR c/21659
11643 * doc/extend.texi (weak pragma): Drop claim that it must
11644 appear before definition.
11645 * varasm.c (merge_weak, declare_weak): Only sanity check
11646 that DECL is not output at a time it is declared weak.
11647
2b6e2d13
KZ
116482011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11649
11650 * machmode.def: Fixed comments.
1c3ba85b 11651
9841210f
KT
116522011-01-24 Kai Tietz <kai.tietz@onevision.com>
11653
11654 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11655
116562011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
11657
11658 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 11659 WORDS_BIG_ENDIAN.
e046112d 11660
a6c5070a
L
116612011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11662
11663 PR target/46519
11664 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11665 (block_info): Add scanned and prev.
11666 (move_or_delete_vzeroupper_2): Return if the basic block
11667 has been scanned and the upper 128bit state is unchanged
11668 from the last scan.
11669 (move_or_delete_vzeroupper_1): Return true if the exit
11670 state is changed.
11671 (move_or_delete_vzeroupper): Visit basic blocks using the
11672 work-list based algorithm based on vt_find_locations in
11673 var-tracking.c.
11674
11675 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11676
a40d79d7
NC
116772011-01-24 Nick Clifton <nickc@redhat.com>
11678
11679 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11680 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11681 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11682 then define __v850e1__.
11683 * doc/invoke.texi: Document -mv850es.
11684
440eb8de
RH
116852011-01-24 Richard Henderson <rth@redhat.com>
11686
11687 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11688 compound unordered comparisons.
11689 * config/rx/rx.c (rx_split_fp_compare): Remove.
11690 * config/rx/rx-protos.h: Update.
11691 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11692 (cbranchsf4): Don't call rx_split_fp_compare.
11693 (*cbranchsf4): Use rx_split_cbranch.
11694 (*cmpsf): Don't accept "i" constraint.
11695 (*conditional_branch): Only valid after reload.
11696 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11697
3ff79f99
MM
116982011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11699
11700 PR target/47385
11701 * config/rs6000/altivec.md (vector constant splitters): Add
11702 support for creating vector single precision constants if -mvsx is
11703 used and we would create the constant using Altivec primitives.
11704
ff3d9d08
BS
117052011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11706 Richard Sandiford <rdsandiford@googlemail.com>
11707
11708 PR rtl-optimization/47166
11709 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11710 mechanism for PRE_MODIFY and POST_MODIFY.
11711 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11712 reloadreg.
11713
7fcaf152
AS
117142011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11715
8788adb6 11716 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 11717
d09b58c4
JH
117182011-01-22 Jan Hubicka <jh@suse.cz>
11719
11720 PR lto/47333
11721 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11722
e8ff8c5a
JH
117232011-01-22 Jan Hubicka <jh@suse.cz>
11724
11725 PR tree-optimization/43884
11726 PR lto/44334
8788adb6 11727 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
11728 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11729
ccaed3ba
AS
117302011-01-22 Anatoly Sokolov <aesok@post.ru>
11731
11732 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11733 * config/s390/s390.c (s390_register_move_cost,
11734 s390_memory_move_cost): New.
11735 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11736
0cecee06
UW
117372011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11738
11739 PR middle-end/47401
11740 * except.c (sjlj_assign_call_site_values): Move setting the
11741 crtl->uses_eh_lsda flag to ...
11742 (sjlj_mark_call_sites): ... here.
11743 (sjlj_emit_function_enter): Support NULL dispatch label.
11744 (sjlj_build_landing_pads): In a function with no landing pads
11745 that still has must-not-throw regions, generate code to register
11746 a personality function with empty LSDA.
11747
e692f276
RH
117482011-01-21 Richard Henderson <rth@redhat.com>
11749
1b7ae0b7
RH
11750 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11751
3843787f
RH
11752 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11753
e692f276
RH
11754 * compare-elim.c: New file.
11755 * Makefile.in (OBJS-common): Add it.
11756 (compare-elim.o): New.
11757 * common.opt (fcompare-elim): New.
11758 * opts.c (default_options_table): Add OPT_fcompare_elim.
11759 * tree-pass.h (pass_compare_elim_after_reload): New.
11760 * passes.c (init_optimization_passes): Add it.
11761 * recog.h: Protect against re-inclusion.
11762 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11763 * doc/invoke.texi (-fcompare-elim): Document it.
11764 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11765 * doc/tm.texi: Rebuild.
11766
9a7c2050
NC
117672011-01-22 Nick Clifton <nickc@redhat.com>
11768
11769 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11770 rx_split_fp_compare.
11771
15ba5696
NC
117722011-01-22 Nick Clifton <nickc@redhat.com>
11773
11774 * config/rx/rx.md (UNSPEC_CONST): New.
11775 (deallocate_and_return): Wrap the amount popped off the stack in
11776 an UNSPEC_CONST in order to stop it being rejected by
11777 -mmax-constant-size.
11778 (pop_and_return): Add a "(return)" rtx.
11779 (call): Drop the immediate operand.
11780 (call_internal): Likewise.
11781 (call_value): Likewise.
11782 (call_value_internal): Likewise.
11783 (sibcall_internal): Likewise.
11784 (sibcall_value_internal): Likewise.
11785 (sibcall): Likewise. Generate an explicit call using
11786 sibcall_internal.
11787 (sibcall_value): Likewise.
11788 (mov<>): FAIL if a constant operand is not legitimate.
11789 (addsi3_unpsec): New pattern.
9a7c2050 11790
38be4072 11791 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
11792 (ok_for_max_constant): New function.
11793 (gen_safe_add): New function.
11794 (rx_expand_prologue): Use gen_safe_add.
11795 (rx_expand_epilogue): Likewise.
11796 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11797 UNSPEC CONSTs.
11798
caaf13d3
JL
117992011-01-21 Jeff Law <law@redhat.com>
11800
11801 PR tree-optimization/47053
11802 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11803 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11804 statements are deleted.
11805 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11806 is nonempty, then purge dead edges and cleanup the CFG.
11807
12c30f2f
AO
118082011-01-21 Alexandre Oliva <aoliva@redhat.com>
11809
11810 PR debug/47402
11811 Temporarily revert:
11812 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11813 PR debug/47106
11814 * tree-dfa.c (create_var_ann): Mark variable as used.
11815
7360d2ac
JJ
118162011-01-21 Jakub Jelinek <jakub@redhat.com>
11817
aaa52a96
JJ
11818 PR middle-end/45566
11819 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11820 notes from other section in hot/cold partitioning even if
11821 last_action is -3. Increment call_site_base.
11822
7360d2ac
JJ
11823 PR rtl-optimization/47366
11824 * fwprop.c (forward_propagate_into): Return bool. If
11825 any changes are made, -fnon-call-exceptions is used and
11826 REG_EH_REGION note is present, call purge_dead_edges
11827 and return true if it purged anything.
11828 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11829 any EH edges were purged.
11830
e90b336f
JL
118312011-01-21 Jeff Law <law@redhat.com>
11832
11833 PR rtl-optimization/41619
11834 * caller-save.c (setup_save_areas): Break out code to determine
11835 which hard regs are live across calls by examining the reload chains
11836 so that it is always used.
11837 Eliminate code which checked REG_N_CALLS_CROSSED.
11838
3ffe07e1
JJ
118392011-01-21 Jakub Jelinek <jakub@redhat.com>
11840
11841 PR tree-optimization/47355
11842 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11843 NOP has non-debug uses beyond PHIs in new_bb.
11844
1c7d0b34
AO
118452011-01-21 Alexandre Oliva <aoliva@redhat.com>
11846
11847 PR debug/47106
11848 * cfgexpand.c (account_used_vars_for_block): Only account vars
11849 that are annotated as used.
11850 (estimated_stack_frame_size): Don't set TREE_USED.
11851 * tree-dfa.c (create_var_ann): Mark variable as used.
11852
f99cc488
RG
118532011-01-21 Richard Guenther <rguenther@suse.de>
11854
11855 PR middle-end/47395
11856 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11857
3bc27de7
RG
118582011-01-21 Richard Guenther <rguenther@suse.de>
11859
11860 PR tree-optimization/47365
11861 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11862 (vn_reference_lookup_pieces): Adjust.
11863 (vn_reference_lookup): Likewise.
11864 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11865 (vn_reference_lookup_3): Only look through kills if in
11866 VN_WALKREWRITE mode.
11867 (vn_reference_lookup_pieces): Adjust.
11868 (vn_reference_lookup): Likewise.
11869 (visit_reference_op_load): Likewise.
11870 (visit_reference_op_store): Likewise.
11871 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11872 (compute_avail): Likewise.
11873 (eliminate): Likewise.
11874
d8debb1d
JJ
118752011-01-21 Jakub Jelinek <jakub@redhat.com>
11876
11877 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11878 DECL_IGNORED_P non-reg vars if they are used.
11879
3a2df831
JJ
11880 PR tree-optimization/47391
11881 * varpool.c (const_value_known_p): Return false if
11882 decl is volatile.
11883
1dd584a2
KT
118842011-01-21 Kai Tietz <kai.tietz@onevision.com>
11885
11886 PR bootstrap/47215
11887 * config/i386/i386.c (ix86_local_alignment): Handle
11888 case for va_list_type_node is nil.
11889 (ix86_canonical_va_list_type): Likewise.
11890
7f9f095e
AM
118912011-01-21 Alan Modra <amodra@gmail.com>
11892
11893 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11894 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11895
837b01f6
RR
118962011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11897
11898 * config/arm/arm.md (define_attr type): Rename f_load
11899 and f_store to f_fpa_load and f_fpa_store. Update.
11900 (write_conflict): Deal with rename fallout.
11901 (*push_fp_multi): Likewise.
11902 * config/arm/fpa.md (f_load): Use f_fpa_load.
11903 (f_store): Use f_fpa_store.
11904 (*movsf_fpa): Likewise.
11905 (*movdf_fpa): Likewise.
11906 (*movxf_fpa): Likewise.
11907 (*thumb2_movsf_fpa): Likewise.
11908 (*thumb2_movdf_fpa): Likewise.
11909 (*thumb2_movxf_fpa): Likewise.
11910 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11911 f_loadd and f_stored.
11912 (*thumb2_movdi_vfp): Likewise.
11913 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11914 (*thumb2_movsi_vfp): Likewise.
11915 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11916 Use f_loads instead of f_load.
11917 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11918
a1a79768
AS
119192011-01-20 Anatoly Sokolov <aesok@post.ru>
11920
11921 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11922 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11923 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11924 (xtensa_mode_dependent_address_p): New function.
11925 (constantpool_address_p): Make static. Change return type to bool.
11926 Change argument type to const_rtx. Use CONST_INT_P predicate.
11927
427f6cec
AO
119282011-01-20 Alexandre Oliva <aoliva@redhat.com>
11929
11930 PR debug/46583
11931 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11932
583ac69c
JJ
119332011-01-20 Jakub Jelinek <jakub@redhat.com>
11934
11935 PR debug/47283
11936 * cfgexpand.c (expand_debug_expr): Instead of generating
11937 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11938 etc. handling.
11939
93e452ed
RG
119402011-01-20 Richard Guenther <rguenther@suse.de>
11941
11942 PR middle-end/47370
11943 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11944 the pointer operand of MEM_REFs.
11945
28fc44f3
JJ
119462011-01-20 Jakub Jelinek <jakub@redhat.com>
11947
11948 PR tree-optimization/46130
11949 * ipa-split.c (consider_split): If return_bb contains non-virtual
11950 PHIs other than for retval or if split_function would not adjust it,
11951 refuse to split.
11952
ddd268f2
RG
119532011-01-20 Richard Guenther <rguenther@suse.de>
11954
11955 PR tree-optimization/47167
11956 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11957 Revert previous change, only avoid enumeral type changes.
11958
882020aa
MS
119592011-01-19 Mike Stump <mikestump@comcast.net>
11960
11961 * doc/tm.texi.in (BRANCH_COST): Englishify.
11962 * doc/tm.texi (BRANCH_COST): Likewise.
11963
7edb6247
DS
119642011-01-19 Dodji Seketeli <dodji@redhat.com>
11965
11966 PR c++/47291
11967 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
11968 (gen_scheduled_generic_parms_dies): New functions.
11969 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11970 generation for the end of CU compilation.
11971 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 11972
23d5ed5d
AO
119732011-01-19 Alexandre Oliva <aoliva@redhat.com>
11974
11975 PR debug/46240
11976 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11977 debug bind stmt on merge edges.
11978
37d6a488
AO
119792011-01-19 Alexandre Oliva <aoliva@redhat.com>
11980
11981 PR debug/47079
11982 PR debug/46724
11983 * function.c (instantiate_expr): Instantiate incoming rtl of
11984 implicit arguments, and recurse on VALUE_EXPRs.
11985 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11986 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11987
689f2c82
AO
119882011-01-19 Alexandre Oliva <aoliva@redhat.com>
11989
11990 * c-parser.c (c_parser_for_statement): Initialize
11991 collection_expression.
11992
03029de4
JM
119932011-01-19 Joseph Myers <joseph@codesourcery.com>
11994
11995 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11996
3e03217e
JM
119972011-01-19 Joseph Myers <joseph@codesourcery.com>
11998
11999 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12000 (LINK_SHLIB_SPEC): Don't use %(link_path).
12001 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12002
5bbe9b3f
JM
120032011-01-19 Joseph Myers <joseph@codesourcery.com>
12004
12005 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12006 (NO_SHARED_LIB_SUPPORT): Remove.
12007 (LINK_SHLIB_SPEC): Remove one conditional definition.
12008
368e0b39
JM
120092011-01-19 Joseph Myers <joseph@codesourcery.com>
12010
12011 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12012 %{call_shared}.
12013 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12014 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12015 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12016 %{call_shared} and conditionals on these options not being passed.
12017 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12018 %{call_shared}.
12019
ed7656f6
JJ
120202011-01-19 Jakub Jelinek <jakub@redhat.com>
12021
68457901
JJ
12022 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12023 simplify.
12024
ed7656f6
JJ
12025 * ipa-split.c: Spelling fixes.
12026
e0d1958f
RH
120272011-01-19 Richard Henderson <rth@redhat.com>
12028
12029 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12030 (*mulsi3): Likewise.
12031
27098b6b
RH
12032 * longlong.h [__mn10300__] (count_leading_zeros): New.
12033 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12034 [__mn10300__] (add_ssaaaa, subddmmss): New.
12035 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12036 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12037
d6be7c36
UW
120382011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12039
12040 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12041
b1efde2a
RH
120422011-01-19 Richard Henderson <rth@redhat.com>
12043
44217823
RH
12044 * config/mn10300/mn10300.md (addsi3_flags): New.
12045 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12046 (subsi3_flags, subc_internal, subdi3): New.
12047 (subdi3_internal, *subdi3_degenerate): New.
12048 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12049
37a185d7
RH
12050 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12051 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12052 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12053 * config/mn10300/mn10300-protos.h: Update.
12054 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12055 (return_ret): Likewise. Rename from return_internal_regs.
12056 (return_internal): Remove.
12057
040c5757
RH
12058 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12059 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12060 (mn10300_legitimate_constant_p): Likewise.
12061 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12062 (mn10300_frame_size): New.
12063 (mn10300_expand_prologue): Use it.
12064 (mn10300_expand_epilogue): Likewise.
12065 (mn10300_initial_offset): Likewise.
12066 * config/mn10300/mn10300-protos.h: Update.
12067 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12068 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12069 (prologue, epilogue, return_internal): Tidy output code.
12070 (mn10300_store_multiple_operation, return): Likewise.
12071 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12072 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12073 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12074 (load_pic, am33_load_pic): New.
12075 (mn10300_load_pic0, mn10300_load_pic1): New.
12076
bad41521
RH
12077 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12078 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12079 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12080 (cc_flags_for_mode, cc_flags_for_code): New.
12081 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12082 overflow flag is not valid. Validate that the flags we need
12083 for the comparison are valid.
12084 (mn10300_output_cmp): Remove.
12085 (mn10300_output_add): New.
12086 (mn10300_select_cc_mode): Use cc_flags_for_code.
12087 (mn10300_split_cbranch): New.
12088 (mn10300_match_ccmode): New.
12089 (mn10300_split_and_operand_count): New.
12090 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12091 to the function.
12092 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12093 (addsi3): ... here. Use mn10300_output_add.
12094 (*addsi3_flags): New.
12095 (*am33_subsi3, *mn10300_subsi3): Merge...
12096 (subsi3): ... here. Use attribute isa.
12097 (*subsi3_flags): New.
12098 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12099 when possible.
12100 (*am33_andsi3, *mn10300_andsi3): Merge...
12101 (andsi3): ... here.
12102 (*andsi3_flags): New.
12103 (andsi3 splitters): New.
12104 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12105 (iorsi3): ... here.
12106 (*iorsi3_flags): New.
12107 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12108 (xorsi3): ... here.
12109 (*xorsi3_flags): New.
12110 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12111 (one_cmplsi2): ... here.
12112 (*one_cmplsi2_flags): New.
12113 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12114 instead of "dax" in constraints. Use mn10300_split_cbranch.
12115 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12116 use matching constraints to eliminate a self-comparison.
12117 (*integer_conditional_branch): Rename from integer_conditional_branch.
12118 Use int_mode_flags to match CC_REG.
12119 (*cbranchsi4_btst, *btstsi): New.
12120 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12121 mn10300_split_cbranch.
12122 (*am33_cmpsf): Rename from am33_cmpsf.
12123 (*float_conditional_branch): Rename from float_conditional_branch.
12124 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12125 (zero_extendqisi2): ... here.
12126 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12127 (zero_extendhisi2): ... here.
12128 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12129 (extendqisi2): ... here.
12130 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12131 (extendhisi2): ... here.
12132 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12133 (ashlsi3): ... here.
12134 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12135 (lshrsi3): ... here.
12136 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12137 (ashrsi3): ... here.
12138 (consecutive add peephole): Remove.
12139 * config/mn10300/predicates.md (label_ref_operand): New.
12140 (int_mode_flags): New.
12141 (CCZN_comparison_operator): New.
12142
9efb4993
RH
12143 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12144 (throughput_42_latency_43): New reservation.
12145 (mulsidi3, umulsidi3): New expanders.
12146 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12147 the MDR register to allocation; separately allocate the low and
12148 high parts of the DImode result.
12149 (umulsidi3_internal): Similarly.
12150 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12151 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12152 (udivsi3, umodsi3): Remove.
12153 (udivmodsi4, divmodsi4): New expanders.
12154 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12155 (*divmodsi4): Simiarly.
12156 (ext_internal): New.
12157
c25a21f5
RH
12158 * config/mn10300/constraints.md ("z"): New constraint.
12159 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12160 (FIXED_REGISTERS): Don't fix MDR.
12161 (CALL_USED_REGSITERS): Reformat nicely.
12162 (REG_ALLOC_ORDER): Add MDR.
12163 (enum regclass): Add MDR_REGS.
12164 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12165 (IRA_COVER_CLASSES): Add MDR_REGS.
12166 (REGNO_REG_CLASS): Handle MDR_REG.
12167 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12168 (mn10300_register_move_cost): Likewise.
12169 * config/mn10300/mn10300.md (MDR_REG): New.
12170 (*movsi_internal): Handle moves to/from MDR_REGS.
12171
36846b26
RH
12172 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12173 POST_MODIFY.
12174 (mn10300_secondary_reload): Tidy combination reload classes.
12175 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12176 addresses for AM33. Allow symbolic offsets for reg+imm.
12177 (mn10300_regno_in_class_p): New.
12178 (mn10300_legitimize_reload_address): New.
12179 * config/mn10300/mn10300.h (enum reg_class): Remove
12180 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12181 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12182 SP_OR_GENERAL_REGS.
12183 (REG_CLASS_NAMES): Update to match.
12184 (REG_CLASS_CONTENTS): Likewise.
12185 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12186 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12187 (REGNO_IN_RANGE_P): Remove.
12188 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12189 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12190 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12191 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12192 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12193 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12194 (REGNO_GENERAL_P): New.
12195 (HAVE_POST_MODIFY_DISP): New.
12196 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12197 (LEGITIMIZE_RELOAD_ADDRESS): New.
12198 * config/mn10300/mn10300-protos.h: Update.
12199
8b119bb6
RH
12200 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12201 DATA_REGS for AM33 stack-pointer destination.
12202 (mn10300_preferred_output_reload_class): Likewise.
12203 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12204 into a form appropriate for ...
12205 (TARGET_SECONDARY_RELOAD): New.
12206 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12207 * config/mn10300/mn10300-protos.h: Update.
12208 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12209 reload_insi; use the "A" constraint for the scratch; handle AM33
12210 moves of sp to non-address registers.
12211
b1efde2a
RH
12212 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12213 (*movqi_internal): ... here.
12214 (*am33_movhi, *mn10300_movhi): Merge into...
12215 (*movhi_internal): ... here.
12216 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12217 as the source/destination of moves from/to SP.
12218 (movsf): Only allow for AM33-2.
1c3ba85b 12219 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
12220 any integer constant constraint. Only allow for AM33-2. Tidy
12221 all of the alternative outputs.
12222 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12223 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12224 for MN103.
12225 (udivsi3, umodsi3): New patterns for MN103 only.
12226
b899fd78
JR
122272011-01-19 Joern Rennecke <amylaar@spamcop.net>
12228
12229 * doc/tm.texi.in: Spell out that a lack of register class unions
12230 can lead to ICEs.
12231 * doc/tm.texi: Regenerate.
12232
afaaa67d
JJ
122332011-01-19 Jakub Jelinek <jakub@redhat.com>
12234
2e0642cd
JJ
12235 PR rtl-optimization/47337
12236 * dce.c (check_argument_store): New function.
12237 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12238
afaaa67d
JJ
12239 PR tree-optimization/47290
12240 * tree-eh.c (infinite_empty_loop_p): New function.
12241 (cleanup_empty_eh): Use it.
12242
d2cd871f
SE
122432011-01-18 Steve Ellcey <sje@cup.hp.com>
12244
12245 PR target/46997
12246 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12247 (a64_expand_widen_sum): Ditto.
12248 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12249 (vec_extract_evenodd_help): Ditto.
12250 (vec_extract_evenv4hi): Ditto.
12251 (vec_extract_oddv4hi): Ditto.
12252 (vec_extract_evenv2si): Ditto.
12253 (vec_extract_oddv2si): Ditto.
12254 (vec_extract_evenv2sf): Ditto.
12255 (vec_extract_oddv2sf): Ditto.
12256 (vec_pack_trunc_v4hi: Ditto.
12257 (vec_pack_trunc_v2si): Ditto.
12258 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12259 (vec_interleave_highv8qi): Ditto.
12260 (mix1_r): Ditto.
12261 (vec_extract_oddv8qi): Ditto.
12262 (vec_interleave_lowv4hi): Ditto.
12263 (vec_interleave_highv4hi): Ditto.
12264 (vec_interleave_lowv2si): Ditto.
12265 (vec_interleave_highv2si): Ditto.
12266
41a1208a
JDA
122672011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12268
12269 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12270 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12271 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12272 (pa_c_mode_for_suffix): New.
12273 (TARGET_EXPAND_BUILTIN): Define.
12274 (TARGET_C_MODE_FOR_SUFFIX): Define.
12275 (pa_builtins): Define.
12276 (pa_init_builtins): Register __float128 type and init new support
12277 builtins.
12278 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12279 * config/pa/quadlib.c (_U_Qfcopysign): New.
12280
1ecad98e
EB
122812011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12282
12283 PR middle-end/46894
12284 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12285 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12286 are defined.
12287
d4f2460a
UW
122882011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12289
12290 PR tree-optimization/47179
12291 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12292 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12293
4994da65
RG
122942011-01-18 Richard Guenther <rguenther@suse.de>
12295
12296 PR rtl-optimization/47216
12297 * emit-rtl.c: Include tree-flow.h.
12298 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12299 of replicating it with different semantics.
12300 * Makefile.in (emit-rtl.o): Adjust.
12301
1eb458d1
RR
123022011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12303
38be4072 12304 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 12305 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 12306
e7ef91dc
JJ
123072011-01-18 Jakub Jelinek <jakub@redhat.com>
12308
12309 PR rtl-optimization/47299
12310 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 12311 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
12312 * expmed.c (expand_widening_mult): Don't try to optimize constant
12313 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12314 before using it.
12315
535b7874
RW
123162011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12317
12318 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12319 spacing after 'e.g.', typos, comma, hyphenation.
12320
27bf36f3
RH
123212011-01-17 Richard Henderson <rth@redhat.com>
12322
8a5b5449
RH
12323 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12324 (rx_restricted_mem_operand): New.
12325 (rx_shift_operand): Use register_operand.
12326 (rx_source_operand, rx_compare_operand): Likewise.
12327 * config/rx/rx.md (addsi3_flags): New expander.
12328 (adddi3): Rewrite as expander.
12329 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12330 (subsi3_flags): New expander.
12331 (subdi3): Rewrite as expander.
12332 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12333
784f69be
RH
12334 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12335 (rx_init_builtins): Remove sat builtin.
12336 (rx_expand_builtin): Likewise.
12337 * config/rx/rx.md (ssaddsi3): New.
12338 (*sat): Rename from sat. Represent the CC_REG input.
12339
f033541c
RH
12340 * config/rx/predicates.md (rshift_operator): New.
12341 * config/rx/rx.c (rx_expand_insv): Remove.
12342 * config/rx/rx-protos.h: Update.
12343 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12344 operand to the canonical position.
12345 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12346 (*bitclr, *bitclr_in_memory): Similarly.
12347 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12348 (insv): Retain the zero_extract in the expansion.
12349
34fee389
RH
12350 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12351 (bswaphi2, bitinvert, revw): Likewise.
12352
265c835f
RH
12353 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12354 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12355 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12356 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12357 (bitset, bitset_in_memory): Likewise.
12358 (bitinvert, bitinvert_in_memory): Likewise.
12359 (bitclr, bitclr_in_memory): Likewise.
12360 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12361 (rx_strend, rx_cmpstrn): Likewise.
12362 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12363 (bitop peep2 patterns): Remove.
12364
b4d83be3
RH
12365 * config/rx/rx.c (rx_match_ccmode): New.
12366 * config/rx/rx-protos.h: Update.
12367 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12368 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12369 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12370 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12371 (fix_truncsfsi2, floatsisf2): Likewise.
12372 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12373 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12374 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12375 (*subsi3_flags, *xorsi3_flags): New.
12376
d0acb939
RH
12377 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12378
c06fc3d9
RH
12379 * config/rx/rx.c (rx_print_operand): Remove workaround for
12380 unsplit comparison operations.
12381
2882702b
RH
12382 * config/rx/rx.md (movsicc): Split after reload.
12383 (*movsicc): Merge *movsieq and *movsine via match_operator.
12384 (*stcc): New pattern.
12385
6f7310f2
RH
12386 * config/rx/rx.c (rx_float_compare_mode): Remove.
12387 * config/rx/rx.h (rx_float_compare_mode): Remove.
12388 * config/rx/rx.md (cstoresi4): Split after reload.
12389 (*sccc): New pattern.
12390
e963cb1a
RH
12391 * config/rx/predicates.md (label_ref_operand): New.
12392 (rx_z_comparison_operator): New.
12393 (rx_zs_comparison_operator): New.
12394 (rx_fp_comparison_operator): New.
12395 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12396 Validate that the flags are set properly for the comparison.
12397 (rx_gen_cond_branch_template): Remove.
12398 (rx_cc_modes_compatible): Remove.
12399 (mode_from_flags): New.
12400 (flags_from_code): Rename from flags_needed_for_conditional.
12401 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12402 (rx_select_cc_mode): Likewise.
12403 (rx_split_fp_compare): New.
12404 (rx_split_cbranch): New.
12405 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12406 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12407 (*cbranchsf4): Similarly.
12408 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12409 match_operator and rx_split_cbranch.
12410 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12411 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12412 (*cmpsi): Rename from cmpsi.
12413 (*tstsi): Rename from tstsi.
12414 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12415 (*conditional_branch): Rename from conditional_branch.
12416 (*reveresed_conditional_branch): Remove.
12417 (b<code>): Remove expander.
12418 * config/rx/rx-protos.h: Update.
12419
af530bb4
RH
12420 * config/rx/rx.c (rx_compare_redundant): Remove.
12421 * config/rx/rx.md (cmpsi): Don't use it.
12422 * config/rx/rx-protos.h: Update.
12423
27bf36f3
RH
12424 * config/rx/rx-modes.def (CC_F): New mode.
12425 * config/rx/rx.c (rx_select_cc_mode): New.
12426 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12427 * config/rx/rx-protos.h: Update.
12428
d7fde127
RH
124292011-01-17 Richard Henderson <rth@redhat.com>
12430
12431 * except.c (dump_eh_tree): Fix stray ; after for statement.
12432
6ff38230
RG
124332011-01-17 Richard Guenther <rguenther@suse.de>
12434
12435 PR tree-optimization/47313
12436 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12437 handling before copying the body. Properly deal with
12438 by-reference result in SSA form.
12439
114ce554
ILT
124402011-01-17 Ian Lance Taylor <iant@google.com>
12441
bf5cd92b 12442 PR target/47219
114ce554
ILT
12443 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12444 (struct_value_alias_set): Don't define.
12445 (sparc_option_override): Don't set sparc_sr_alias_set and
12446 struct_value_alias_set.
12447 (save_or_restore_regs): Use gen_frame_mem rather than calling
12448 set_mem_alias_set.
12449 (sparc_struct_value_rtx): Likewise.
12450
98c6d93c
L
124512011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12452
12453 PR target/47318
7a81008b 12454 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
12455 (_mm_maskstore_pd): Likewise.
12456 (_mm_maskload_ps): Likewise.
12457 (_mm_maskstore_ps): Likewise.
12458 (_mm256_maskload_pd): Change mask to __m256i.
12459 (_mm256_maskstore_pd): Likewise.
12460 (_mm256_maskload_ps): Likewise.
12461 (_mm256_maskstore_ps): Likewise.
12462
12463 * config/i386/i386-builtin-types.def: Updated.
12464 (ix86_expand_special_args_builtin): Likewise.
12465
12466 * config/i386/i386.c (bdesc_special_args): Update
12467 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12468 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12469 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12470 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12471
12472 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12473 Use <avxpermvecmode> on mask register.
12474 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12475
b9361af2 124762011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
12477 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12478 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
12479
12480 PR target/46655
12481 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12482 if <= USHRT_MAX in 32-bit mode.
12483
b7ae9eb5
RW
124842011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12485
12486 * doc/install.texi (Configuration, Specific): Wrap long
12487 lines in examples. Allow line wrapping in long options
12488 and URLs where beneficial for PDF output.
12489
4377fad9
RS
124902011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12491
12492 * config/mips/mips.c (mips_classify_symbol): Don't return
12493 SYMBOL_PC_RELATIVE for nonlocal labels.
12494
55959ffa 124952011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 12496
55959ffa
EB
12497 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12498
124992011-01-15 Jan Hubicka <jh@suse.cz>
12500
12501 PR tree-optimization/47276
be46831f
JH
12502 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12503 declarations as needed.
12504
05842ff5
MJ
125052011-01-15 Martin Jambor <mjambor@suse.cz>
12506
12507 * common.opt (fdevirtualize): New flag.
12508 * doc/invoke.texi (Option Summary): Document it.
12509 * opts.c (default_options_table): Add devirtualize flag.
12510 * ipa-prop.c (detect_type_change): Return immediately if
12511 devirtualize flag is not set.
12512 (detect_type_change_ssa): Likewise.
12513 (compute_known_type_jump_func): Likewise.
12514 (ipa_analyze_virtual_call_uses): Likewise.
12515
f65cf2b7
MJ
125162011-01-14 Martin Jambor <mjambor@suse.cz>
12517
12518 PR tree-optimization/45934
12519 PR tree-optimization/46302
12520 * ipa-prop.c (type_change_info): New type.
12521 (stmt_may_be_vtbl_ptr_store): New function.
12522 (check_stmt_for_type_change): Likewise.
12523 (detect_type_change): Likewise.
12524 (detect_type_change_ssa): Likewise.
12525 (compute_complex_assign_jump_func): Check for dynamic type change.
12526 (compute_complex_ancestor_jump_func): Likewise.
12527 (compute_known_type_jump_func): Likewise.
12528 (compute_scalar_jump_functions): Likewise.
12529 (ipa_analyze_virtual_call_uses): Likewise.
12530 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12531
eb5bb0fd
JM
125322011-01-14 Joseph Myers <joseph@codesourcery.com>
12533
12534 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12535 * config/i386/i386.opt (msse5): New Alias.
12536
f2060fbe
JM
125372011-01-14 Joseph Myers <joseph@codesourcery.com>
12538
12539 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12540 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12541 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12542 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12543
3a7b4385
JM
125442011-01-14 Joseph Myers <joseph@codesourcery.com>
12545
12546 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12547 -mcpu options.
12548 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12549 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12550 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12551 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12552 Likewise.
12553 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12554
a7b778f8
JM
125552011-01-14 Joseph Myers <joseph@codesourcery.com>
12556
38be4072 12557 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 12558
a7edae0a
MS
125592011-01-14 Mike Stump <mikestump@comcast.net>
12560
12561 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12562 * config/fr30/fr30.md: Likweise
12563 (movsi_push): Likewise.
12564 (movsi_pop): Likewise.
12565 (enter_func): Likewise.
12566 * config/moxie/moxie.md (movsi_push): Likewise.
12567 (movsi_pop): Likewise.
12568
cbabf03f
JM
125692011-01-14 Joseph Myers <joseph@codesourcery.com>
12570
12571 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12572 %{no_archive} %{exact_version}.
12573 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12574 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12575 %{no_archive} %{exact_version}.
12576 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12577 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12578 * config/mips/vxworks.h: Likewise.
12579
438da41a
JM
125802011-01-14 Joseph Myers <joseph@codesourcery.com>
12581
38be4072 12582 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 12583
da290a42
JM
125842011-01-14 Joseph Myers <joseph@codesourcery.com>
12585
12586 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12587 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12588
8989d00e
JM
125892011-01-14 Joseph Myers <joseph@codesourcery.com>
12590
12591 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12592 -nodefaultlib.
12593
a3010a69
JM
125942011-01-14 Joseph Myers <joseph@codesourcery.com>
12595
12596 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12597 for mcpu not cpu.
12598 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12599 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12600 not cpu.
12601 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12602 Don't handle -shlib.
12603
e7f2f537
JM
126042011-01-14 Joseph Myers <joseph@codesourcery.com>
12605
12606 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12607 (CC1_SPEC): Don't handle -profile.
12608
34830bfd
JM
126092011-01-14 Joseph Myers <joseph@codesourcery.com>
12610
12611 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12612 * config/mips/mips.h (CC1_SPEC): Likewise.
12613
b2d36e74
JM
126142011-01-14 Joseph Myers <joseph@codesourcery.com>
12615
12616 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12617 * config/mips/mips.h (CC1_SPEC): Likewise.
12618
dabadc52
JM
126192011-01-14 Joseph Myers <joseph@codesourcery.com>
12620
12621 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12622 * config/m32r/linux.h (LINK_SPEC): Likewise.
12623 * config/mips/linux.h (LINK_SPEC): Likewise.
12624 * config/mips/linux64.h (LINK_SPEC): Likewise.
12625 * config/sparc/linux.h (LINK_SPEC): Likewise.
12626 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12627 LINK_SPEC): Likewise.
12628 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12629
43ee6785
JM
126302011-01-14 Joseph Myers <joseph@codesourcery.com>
12631
12632 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12633 %{version:-v}.
12634 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12635
45e79dfd
JM
126362011-01-14 Joseph Myers <joseph@codesourcery.com>
12637
12638 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12639 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12640
37e9e71d
JM
126412011-01-14 Joseph Myers <joseph@codesourcery.com>
12642
12643 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12644
bb127cd8
RO
126452011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12646
12647 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12648 supports -Bstatic/-Bdynamic.
12649 * configure: Regenerate.
12650
89a012ea 126512011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 12652 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
12653
12654 PR target/46037
12655 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12656 when checking debug_info_level. Test write_symbols instead of
12657 debug_hooks->var_location when setting flag_var_tracking_uninit.
12658
7352c013
RG
126592011-01-14 Richard Guenther <rguenther@suse.de>
12660
12661 PR tree-optimization/47179
12662 * target.def (ref_may_alias_errno): New target hook.
12663 * targhooks.h (default_ref_may_alias_errno): Declare.
12664 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12665 (default_ref_may_alias_errno): New function.
12666 * target.h (struct ao_ref_s): Declare.
12667 * tree-ssa-alias.c: Include target.h.
12668 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12669 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12670 (targhooks.o): Likewise.
12671 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12672 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12673
9a6c9288
RG
126742011-01-14 Richard Guenther <rguenther@suse.de>
12675
12676 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12677
0fdb0d27
RG
126782011-01-14 Richard Guenther <rguenther@suse.de>
12679
12680 PR tree-optimization/47280
12681 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12682 return CFG changes.
12683 (tree_ssa_forward_propagate_single_use_vars): Deal with
12684 CFG changes from associate_plusminus.
12685
8f66db3b
RG
126862011-01-14 Richard Guenther <rguenther@suse.de>
12687
12688 PR middle-end/47281
12689 Revert
12690 2011-01-11 Richard Guenther <rguenther@suse.de>
12691
280d9630
EB
12692 PR tree-optimization/46076
12693 * tree-ssa.c (useless_type_conversion_p): Conversions from
12694 unprototyped to empty argument list function types are useless.
8f66db3b 12695
6c0c92e6
RG
126962011-01-14 Richard Guenther <rguenther@suse.de>
12697
12698 PR tree-optimization/47286
280d9630 12699 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 12700
db09f943
MJ
127012011-01-14 Martin Jambor <mjambor@suse.cz>
12702
12703 PR middle-end/46823
12704 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12705
dde8a3a4
AS
127062011-01-13 Anatoly Sokolov <aesok@post.ru>
12707
12708 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12709 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12710 * config/xtensa/xtensa.c (xtensa_libcall_value,
12711 xtensa_function_value_regno_p): New functions.
12712 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12713
a2b63a20
KT
127142011-01-13 Kai Tietz <kai.tietz@onevision.com>
12715
12716 PR c++/47213
12717 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12718 PE specific hook.
12719 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12720 New function prototype.
12721 * config/i386/winnt.c (i386_pe_assemble_visibility):
12722 Warn only if attribute was specified by user.
12723
b41f0b34
MM
127242011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12725
12726 PR target/47251
12727 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12728 floating point.
12729 (floatunsdidf2_fcfidu): Ditto.
12730
3f3c098d
AK
127312011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12732
12733 * config/s390/s390.c (print_operand_address): Replace 'error' with
12734 'output_operand_lossage'.
12735 (print_operand): Likewise.
12736
29fa95ed
JL
127372011-01-13 Jeff Law <law@redhat.com>
12738
280d9630 12739 PR rtl-optimization/39077
29fa95ed
JL
12740 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12741 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12742 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12743 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12744 * gcse.c (prune_insertions_deletions): New function.
12745 (compute_pre_data): Use it.
12746
71d12276
DS
127472011-01-13 Dodji Seketeli <dodji@redhat.com>
12748
12749 PR debug/PR46973
12750 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12751 static function.
61052244 12752 (prune_unused_types_mark): Use it.
71d12276 12753
9b0f04e7
AB
127542011-01-13 Andrey Belevantsev <abel@ispras.ru>
12755
12756 PR rtl-optimization/45352
1c3ba85b 12757 * sel-sched.c: Update copyright years.
9b0f04e7 12758 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 12759 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 12760
d6a3e264
RH
127612011-01-12 Richard Henderson <rth@redhat.com>
12762
a49b692a
RH
12763 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12764 (TARGET_MD_ASM_CLOBBERS): New.
12765
126b1483
RH
12766 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12767 (TARGET_DELEGITIMIZE_ADDRESS): New.
12768
f3d9d2e0
RH
12769 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12770 (clzsi2, *bsch): New patterns.
12771
d84760c9
RH
12772 * config/mn10300/mn10300.md (INT): New mode iterator.
12773 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12774
ec815d65
RH
12775 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12776 flag_split_wide_types.
12777
d6a3e264
RH
12778 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12779 (mn10300_trampoline_init): Rewrite without a template, an immediate
12780 load and a direct branch.
12781 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12782
0f8ab434
AS
127832011-01-12 Anatoly Sokolov <aesok@post.ru>
12784
12785 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12786 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12787 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12788 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12789
d8a24b65
KT
127902011-01-12 Kai Tietz <kai.tietz@onevision.com>
12791
12792 PR debug/47209
12793 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12794 of type.
12795
56e22cab
JH
127962011-01-12 Jan Hubicka <jh@suse.cz>
12797
12798 PR driver/47244
12799 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12800 (PLUGIN_COND_CLOSE): New macro.
12801 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12802
4b18b3c2
RG
128032011-01-12 Richard Guenther <rguenther@suse.de>
12804
12805 PR lto/47259
12806 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12807 register variables in a MEM_REF.
12808
8e38461c
JM
128092011-01-12 Joseph Myers <joseph@codesourcery.com>
12810
12811 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12812 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12813 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12814 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12815 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12816 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12817 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12818 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12819 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12820 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12821 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12822 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12823 * config/gnu-user.h: New. Copied from linux.h.
12824 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12825 GNU_USER_TARGET_STARTFILE_SPEC.
12826 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12827 GNU_USER_TARGET_ENDFILE_SPEC.
12828 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12829 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12830 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12831 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12832 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12833 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12834 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12835 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12836 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12837 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12838 * config/arm/linux-eabi.h (CC1_SPEC): Use
12839 GNU_USER_TARGET_CC1_SPEC.
12840 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12841 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12842 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12843 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12844 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12845 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12846 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12847 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12848
a570fc16
RG
128492011-01-12 Richard Guenther <rguenther@suse.de>
12850
12851 PR other/46946
12852 * doc/invoke.texi (ffast-math): Document it is turned on
12853 with -Ofast.
12854
b0223c3e
JH
128552011-01-12 Jan Hubicka <jh@suse.cz>
12856
12857 PR tree-optimization/47233
ca1e00b3
EB
12858 * opts.c (common_handle_option): Disable ipa-reference with profile
12859 feedback.
b0223c3e 12860
1c3ba85b 128612011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
12862
12863 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
12864 error message.
12865
d853ee42
NP
128662011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12867
12868 * c-parser.c (c_lex_one_token): Updated and reindented some
12869 comments. No changes in code.
12870
4053a5a0
ILT
128712011-01-11 Ian Lance Taylor <iant@google.com>
12872
12873 * godump.c (go_output_var): Don't output the variable if there is
12874 already a type with the same name.
12875
fa3e04d2
ILT
128762011-01-11 Ian Lance Taylor <iant@google.com>
12877
12878 * godump.c (go_format_type): Don't generate float80.
12879
885fe07c
RH
128802011-01-11 Richard Henderson <rth@redhat.com>
12881
72d6e3c5
RH
12882 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12883 declaration. Rewrite for both speed and size.
12884 (mn10300_address_cost_1): Remove.
12885 (mn10300_register_move_cost): New.
12886 (mn10300_memory_move_cost): New.
12887 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12888 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12889 extensions, shifts, BSWAP, CLZ.
12890 (mn10300_wide_const_load_uses_clr): Remove.
12891 (TARGET_REGISTER_MOVE_COST): New.
12892 (TARGET_MEMORY_MOVE_COST): New.
12893 * config/mn10300/mn10300-protos.h: Update.
12894 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12895
df37c023
RH
12896 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12897 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12898 * config/mn10300/mn10300-protos.h: Update.
12899 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12900 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12901 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12902 (*test_int_bitfield, *test_byte_bitfield): Remove.
12903 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 12904 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 12905
85a337b5
RH
12906 * config/mn10300/constraints.md ("c"): Rename from "A".
12907 ("A", "D"): New constraint letters.
12908 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12909 (fmssf4, fnmasf4, fnmssf4): Likewise.
12910
a5c727e3
RH
12911 * config/mn10300/mn10300.md (isa): New attribute.
12912 (enabled): New attribute.
12913
0d9e23f4
RH
12914 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12915 (abssf2, negsf2): Define only for hardware fp.
12916 (sqrtsf2): Reformat.
12917 (addsf3, subsf3, mulsf3): Merge expander and insn.
12918
c157b3f0
RH
12919 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12920 (DEBUGGER_AUTO_OFFSET): Remove.
12921 (DEBUGGER_ARG_OFFSET): Remove.
12922
cc909bba
RH
12923 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12924 Emit register stores with the same offsets as the hardware.
12925 (mn10300_store_multiple_operation): Don't check that the register
12926 save offsets are monotonic.
12927 * config/mn10300/mn10300-protos.h: Update.
12928
e3b5c2f3
RH
12929 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12930
885fe07c
RH
12931 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12932 in terms of the value on the stack, not the MDR register.
12933
6e701822
JH
129342011-01-11 Jan Hubicka <jh@suse.cz>
12935
12936 PR lto/45721
12937 PR lto/45375
12938 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12939 (symbol_alias_set_destroy, symbol_alias_set_contains,
12940 propagate_aliases_backward): Declare.
12941 * lto-streamer-out.c (struct sets): New sturcture.
12942 (trivally_defined_alias): New function.
12943 (output_alias_pair_p): Rewrite.
12944 (output_unreferenced_globals): Fix output of alias pairs.
12945 (produce_symtab): Likewise.
12946 * ipa.c (function_and_variable_visibility): Set weak alias destination
12947 as needed in lto.
12948 * varasm.c (symbol_alias_set_t): Remove.
12949 (symbol_alias_set_destroy): Export.
12950 (propagate_aliases_forward, propagate_aliases_backward): New functions
12951 based on ...
12952 (compute_visible_aliases): ... this one; remove.
12953 (trivially_visible_alias): New
12954 (trivially_defined_alias): New.
12955 (remove_unreachable_alias_pairs): Rewrite.
12956 (finish_aliases_1): Reorganize code checking if alias is defined.
12957 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12958 in LTO mode.
12959
1b248907
RG
129602011-01-11 Richard Guenther <rguenther@suse.de>
12961
12962 PR tree-optimization/46076
12963 * tree-ssa.c (useless_type_conversion_p): Conversions from
12964 unprototyped to empty argument list function types are useless.
12965
b1923f0a
RG
129662011-01-11 Richard Guenther <rguenther@suse.de>
12967
12968 PR middle-end/45235
12969 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12970 volatile MEMs as MEM_READONLY_P.
12971
e98965af
RG
129722011-01-11 Richard Guenther <rguenther@suse.de>
12973
12974 PR tree-optimization/47239
12975 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12976
9f9ca914
JL
129772011-01-11 Jeff Law <law@redhat.com>
12978
1ee3ea05 12979 PR tree-optimization/47086
9f9ca914
JL
12980 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12981 IVs from statements that might throw.
12982
345fdcb7
JH
129832011-01-10 Jan Hubicka <jh@suse.cz>
12984
12985 PR lto/45375
12986 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12987
c459c97b
JH
129882011-01-10 Jan Hubicka <jh@suse.cz>
12989
12990 PR lto/45375
12991 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12992 when correcting profile.
12993
06c9eb51
JH
129942011-01-10 Jan Hubicka <jh@suse.cz>
12995
12996 PR lto/46083
12997 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12998 DECL_FINI_PRIORITY.
12999 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13000 Restore DECL_FINI_PRIORITY.
13001
ae9fd815
RW
130022011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13003
13004 * doc/gimple.texi: Fix quoting of multi-word return values in
13005 @deftypefn statements. Ensure presence of return value. Wrap
13006 overlong @deftypefn lines.
13007 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13008 descriptions of removed functions.
13009 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13010 of multi-word return value in @deftypefn statement.
13011
0ecb4a7c
RW
130122011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13013
13014 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13015 (Conditional Expressions, Logical Operators)
13016 (Statement and operand traversals): Do not indent smallexample
13017 code. Fix duplicate function argument in example.
13018
2e5e346d
JL
130192011-01-10 Jeff Law <law@redhat.com>
13020
1ee3ea05 13021 PR tree-optimization/47141
2e5e346d
JL
13022 * ipa-split.c (split_function): Handle case where we are
13023 returning a value and the return block has a virtual operand phi.
13024
cf9712cc
JH
130252011-01-10 Jan Hubicka <jh@suse.cz>
13026
1c3ba85b 13027 PR tree-optimization/47234
cf9712cc
JH
13028 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13029 (pass_feedback_split_functions): Declare.
13030 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13031 tree-profile.
13032 * ipa-split.c (gate_split_functions): Update comments; disable
13033 split-functions for profile_arc_flag and branch_probabilities.
13034 (gate_feedback_split_functions): New function.
13035 (execute_feedback_split_functions): New function.
13036 (pass_feedback_split_functions): New global var.
13037
94cd932c
L
130382011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13039
13040 PR lto/46760
13041 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13042 calling gimple_call_set_cannot_inline.
13043
fbbfcaf1
IS
130442011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13045
13046 * config/darwin-sections.def: Remove unused section.
13047
d06865bf
DK
130482011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13049
13050 PR c++/47218
13051 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13052
96bbfbac
NP
130532011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13054
13055 PR objc/47232
13056 * c-parser.c (c_parser_declaration_or_fndef): Improved
13057 error message.
13058
1ba6516f
KT
130592011-01-09 Kai Tietz <kai.tietz@onevision.com>
13060
13061 * config/i386/winnt.c (i386_pe_start_function): Make sure
13062 to switch back to function's section.
13063
0c5d770e
IS
130642011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13065
13066 PR gcc/46902
13067 PR testsuite/46912
13068 * plugin.c: Move include of dlfcn.h from here...
13069 * system.h: ... to here.
13070
130712011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
13072
13073 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13074 file name.
13075 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13076 two extra empty pages in PDF output.
13077
046608a3
NP
130782011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13079
13080 PR objc/47078
13081 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13082 for error recovery purposes behave as if it was not specified so
13083 that the default type is usd.
13084
8cb114b9
JH
130852011-01-07 Jan Hubicka <jh@suse.cz>
13086
13087 PR tree-optmization/46469
13088 * ipa.c (function_and_variable_visibility): Clear needed flags on
13089 nodes with external decls; handle weakrefs merging correctly.
13090
b294a75e
JM
130912011-01-07 Joseph Myers <joseph@codesourcery.com>
13092
13093 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13094 not false.
13095
96bdf9b4
JH
130962011-01-07 Jan Hubicka <jh@suse.cz>
13097
f60c2554 13098 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
13099 and no longer claim that gold is required for linker plugin.
13100 * configure: Regenerate.
13101 * gcc.c (PLUGIN_COND): New macro.
13102 (LINK_COMMAND_SPEC): Use it.
13103 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13104 * config.in (HAVE_LTO_PLUGIN): New.
13105 * configure.ac (--with-lto-plugin): New parameter; autodetect
13106 HAVE_LTO_PLUGIN.
13107
17afc0fe
JH
131082011-01-07 Jan Hubicka <jh@suse.cz>
13109
13110 PR tree-optimization/46367
13111 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13112 when we can update original.
13113 (cgraph_mark_inline_edge): Sanity check.
13114 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13115
d4c48c0f
UW
131162011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13117
13118 * config/spu/spu.h (ASM_COMMENT_START): Define.
13119
96f5b137
L
131202011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13121
13122 PR driver/42445
13123 * gcc.c (%>S): New.
13124 (SWITCH_KEEP_FOR_GCC): Likewise.
13125 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13126 (do_spec_1): Handle "%>".
13127
13128 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13129
c6a8f6de
JJ
131302011-01-07 Jakub Jelinek <jakub@redhat.com>
13131
c21bbd7a
JJ
13132 PR target/47201
13133 * config/i386/i386.c (ix86_delegitimize_address): If
13134 simplify_gen_subreg fails, return orig_x.
13135
c6a8f6de
JJ
13136 PR bootstrap/47187
13137 * value-prof.c (gimple_stringop_fixed_value): Handle
13138 lhs of the call properly.
13139
fe95fbf9
JH
131402011-01-07 Jan Hubicka <jh@suse.cz>
13141
13142 PR lto/45375
13143 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13144
14d11d40
IS
131452011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13146
72e961c8
EB
13147 * target.def (function_switched_text_sections): New hook.
13148 * doc/tm.texi: Regenerated.
13149 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 13150 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
13151 (final_scan_insn): Call function_switched_text_sections when a
13152 mid-function section change occurs.
14d11d40 13153 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
13154 * config/darwin-protos.h (darwin_function_switched_text_sections):
13155 Likewise.
14d11d40 13156 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 13157 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 13158
0b764288
IS
131592011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13160
13161 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13162 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13163 the secondary code fragment when outputting for DWARF == 2.
13164
2ac6bb04
AS
131652011-01-07 Anatoly Sokolov <aesok@post.ru>
13166
13167 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13168 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13169 Remove.
13170 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13171 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13172
9f82de11
EB
131732011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13174
13175 PR debug/46704
280d9630
EB
13176 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13177 when it is not empty.
9f82de11
EB
13178
131792011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 13180
1ed72abf 13181 Bobcat Enablement
14b52538 13182 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 13183 (case ${target}): Add btver1.
14b52538 13184 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 13185 -march=native recognize btver1 processors.
14b52538 13186 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 13187 btver1 def_and_undef
14b52538 13188 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
13189 btver1 cost table.
13190 (m_BTVER1): New definition.
13191 (m_AMD_MULTIPLE): Includes m_BTVER1.
13192 (initial_ix86_tune_features): Add btver1 tune.
13193 (processor_target_table): Add btver1 entry.
13194 (static const char *const cpu_names): Add btver1 entry.
13195 (software_prefetching_beneficial_p): Add btver1.
13196 (ix86_option_override_internal): Add btver1 instruction sets.
13197 (ix86_issue_rate): Add btver1.
13198 (ix86_adjust_cost): Add btver1.
14b52538 13199 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
13200 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13201 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
13202 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13203
e1a973d8
RO
132042011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13205
13206 PR target/43309
13207 * config/i386/i386.c (legitimize_tls_address)
13208 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13209 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13210 (tls_initial_exec_64_sun): New pattern.
13211
c73f67c5
GP
132122011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13213
13214 * doc/invoke.texi (Overall Options): Improve wording and markup
13215 of the description of -wrapper.
13216
bc4c6f9c
JM
132172011-01-06 Joseph Myers <joseph@codesourcery.com>
13218
13219 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13220 rdynamic, threads): New Driver options.
13221
adb75db0
RO
132222011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13223
13224 PR target/38118
13225 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13226 if coming from .tdata.
13227 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13228
402c1cb4
JH
132292011-01-06 Jan Hubicka <jh@suse.cz>
13230
13231 PR lto/47188
13232 * collect2.c (main): Do not enable LTOmode when plugin is active.
13233
a4da6485
RO
132342011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13235
13236 PR other/45915
13237 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13238 --version output if supported.
13239 * configure: Regenerate.
13240
028dbdf4
JM
132412011-01-06 Joseph Myers <joseph@codesourcery.com>
13242
13243 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13244 Driver options.
13245
dfe776dd
JJ
132462011-01-06 Jakub Jelinek <jakub@redhat.com>
13247
13248 PR c/47150
13249 * c-convert.c (convert): When converting a complex expression
13250 other than COMPLEX_EXPR to a different complex type, ensure
13251 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13252 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13253 when converting COMPLEX_TYPE.
13254
210dedfe
IR
132552011-01-06 Ira Rosen <irar@il.ibm.com>
13256
13257 PR tree-optimization/47139
13258 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13259 only the last reduction value is used outside the loop. Update
13260 documentation.
13261
cd33a412
JM
132622011-01-05 Joseph Myers <joseph@codesourcery.com>
13263
13264 * config/rtems.opt: New.
13265 * config.gcc (*-*-rtems*): Use rtems.opt.
13266
819edd94
CF
132672011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13268
13269 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13270 processors do not support 3DNow instructions.
13271
dc242c4a
UW
132722011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13273
13274 * config/spu/spu.c (spu_option_override): Set parameter
13275 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13276
be286227
JH
132772011-01-05 Jan Hubicka <jh@suse.cz>
13278
13279 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13280 at the command line.
13281
644e637f
MJ
132822011-01-05 Martin Jambor <mjambor@suse.cz>
13283
13284 PR lto/47162
13285 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13286 deltas on streamed outgoing edges.
13287 (output_node_opt_summary): Output info for outgoing edges only when
13288 the node is in new parameter set.
13289 (output_cgraph_opt_summary): New parameter set, passed to the two
13290 aforementioned functions. Update its forward declaration and its
13291 callee too.
13292
7bd11157
TT
132932011-01-05 Tom Tromey <tromey@redhat.com>
13294
13295 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13296 operator to c_finish_omp_atomic.
13297 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13298 (build_unary_op): Update.
13299 (build_modify_expr): Update.
13300 (build_asm_expr): Update.
13301
f626b979
UW
133022011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13303
13304 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13305 newly inserted insns.
13306 (pad_bb): Likewise.
13307 (spu_emit_branch_hint): Likewise.
13308 (insert_hbrp_for_ilb_runout): Likewise.
13309 (spu_machine_dependent_reorg): Call df_finish_pass after
13310 schedule_insns returns.
13311
4c825c02
UW
133122011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13313
13314 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13315
5e9fba51
EB
133162011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13317
13318 PR tree-optimization/47005
13319 * tree-sra.c (struct access): Add 'non_addressable' bit.
13320 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13321 (decide_one_param_reduction): Return 0 if the parameter is passed by
13322 reference and one of the accesses in the group is non_addressable.
13323
3ebb5ca6
EB
133242011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13325
13326 PR tree-optimization/47056
13327 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13328 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13329 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13330
d5d4d14e
EB
133312011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13332
13333 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13334 initializer. Skip view conversions from aggregate types.
13335
d996ef70
KT
133362011-01-04 Kai Tietz <kai.tietz@onevision.com>
13337
13338 PR bootstrap/47055
13339 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13340
509d65dd 133412011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
13342
13343 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13344 obvious typo.
13345
55c623b5
UW
133462011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13347
13348 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13349 on empty epilogue sequences.
13350
b98d6b35
JM
133512011-01-04 Joseph Myers <joseph@codesourcery.com>
13352
13353 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13354 non-static): New Driver options.
13355
a0d43bac
JZ
133562011-01-04 Jie Zhang <jie@codesourcery.com>
13357
13358 PR driver/47137
13359 * gcc.c (default_compilers[]): Set combinable field to 0
13360 for all assembly languages.
13361
2b18eb32
MX
133622011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13363
13364 * config/mips/loongson3a.md: New file.
13365 * config/mips/mips.md: Include loongson3a.md.
13366 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13367 TUNE_LOONGSON_3A.
13368
42a48c4f
EB
133692011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13370
13371 PR middle-end/47017
13372 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13373 instead of convert_memory_address_addr_space on the base expression.
13374
9c1732c4
UW
133752011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13376
13377 * config/spu/spu.c (spu_option_override): Update error text
13378 for bad -march= / -mtune= values.
13379
aa474365
UW
133802011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13381
13382 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13383 if branch-hint optimization will be performed.
13384
9766135b
JJ
133852011-01-03 Jakub Jelinek <jakub@redhat.com>
13386
371556ee
JJ
13387 PR tree-optimization/47148
13388 * ipa-split.c (split_function): Convert arguments to
13389 DECL_ARG_TYPE if possible.
13390
1ac12fa2
JJ
13391 PR tree-optimization/47155
13392 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13393 when computing uns.
13394
9766135b
JJ
13395 PR rtl-optimization/47157
13396 * combine.c (try_combine): If undobuf.other_insn becomes
13397 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13398 and set *new_direct_jump_p too.
13399
f4a2e571
SP
134002011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13401
13402 PR tree-optimization/47021
13403 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13404
9f8e43c0
JJ
134052011-01-03 Jakub Jelinek <jakub@redhat.com>
13406
13407 * gcc.c (process_command): Update copyright notice dates.
13408 * gcov.c (print_version): Likewise.
13409 * gcov-dump.c (print_version): Likewise.
13410 * mips-tfile.c (main): Likewise.
13411 * mips-tdump.c (main): Likewise.
13412
1a2e38f3
MJ
134132011-01-03 Martin Jambor <mjambor@suse.cz>
13414
13415 PR tree-optimization/46801
13416 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13417 aggregate fields start at byte boundary instead of the bit-field flag.
13418
56b721c5
L
134192011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13420
13421 PR driver/47137
13422 * gcc.c (main): Revert revision 168407.
13423
839d549b
MJ
134242011-01-03 Martin Jambor <mjambor@suse.cz>
13425
13426 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13427
4ce99a20 134282011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
13429
13430 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13431 vector optab to expand vector/scalar shift, update gimple to vector.
13432
76df0ae6
MJ
134332011-01-03 Martin Jambor <mjambor@suse.cz>
13434
13435 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13436 a thunk.
13437
ce47fda3
MJ
134382011-01-03 Martin Jambor <mjambor@suse.cz>
13439
13440 PR tree-optimization/46984
13441 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13442 HOST_WIDE_INT.
13443 (cgraph_create_indirect_edge): Fixed line length.
13444 (cgraph_indirect_call_info): Declare.
13445 (cgraph_make_edge_direct) Update declaration.
13446 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13447 (cgraph_create_indirect_edge): Use it.
13448 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13449 callees.
13450 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13451 the new thunk_delta representation.
13452 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13453 HOST_WIDE_INT.
13454 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13455 (ipa_read_indirect_edge_info): Likewise.
13456 * lto-cgraph.c (output_edge_opt_summary): New function.
13457 (output_node_opt_summary): Call it on all outgoing edges.
13458 (input_edge_opt_summary): New function.
13459 (input_node_opt_summary): Call it on all outgoing edges.
13460
1e67fa1f
L
134612011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13462
13463 PR driver/47137
13464 * gcc.c (main): Don't check have_o when settting combine_inputs.
13465
6656b2ac
EB
134662011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13467
13468 * regrename.c: Add general comment describing the pass.
13469 (struct du_head): Remove 'length' field.
13470 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13471 (regrename_optimize): Do not sort chains. Rework comments, add others.
13472 Force renaming to the preferred class (if any) in the first pass and do
13473 not consider registers that belong to it in the second pass.
13474 (create_new_chain): Do not set 'length' field.
13475 (scan_rtx_reg): Likewise.
13476
bc470c24
JJ
134772011-01-02 Jakub Jelinek <jakub@redhat.com>
13478
4e996296
JJ
13479 PR tree-optimization/47140
13480 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13481 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13482 to bit_value_binop.
13483
bc470c24 13484 PR rtl-optimization/47028
6656b2ac
EB
13485 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13486 parm_birth_insn instead of at the beginning of first bb.
bc470c24 13487
5af62fcd 134882011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
13489
13490 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13491 Remove the word "see" before "@pxref".
13492 * doc/rtl.texi: Remove the word "see" before "@pxref".
13493
0e20c89f
JH
134942011-01-01 Jan Hubicka <jh@suse.cz>
13495
6656b2ac
EB
13496 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13497 memory.
0e20c89f 13498
220e83ca
KT
134992011-01-01 Kai Tietz <kai.tietz@onevision.com>
13500
13501 PR target/38662
6656b2ac 13502 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 13503
ad41bd84 13504\f
797103eb 13505Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
13506
13507Copying and distribution of this file, with or without modification,
13508are permitted in any medium without royalty provided the copyright
13509notice and this notice are preserved.