5a4c1cdfc998fa3ad2f9fda134429de83fc07706
[gcc.git] / gcc / ChangeLog
1 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4 constraint modifier to "r".
5
6 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7
8 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9 fall through for OPT_mcmodel_.
10
11 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12
13 * config/s390/s390.c (s390_asm_trampoline_template): Comment
14 instruction sizes.
15 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16
17 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18
19 PR target/47930
20 * config/arm/arm.opt (marm): Document it.
21 (mthumb): Reject negative variant.
22
23 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
24
25 PR target/48898
26 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
27 Fix typo in "ccvt" variable name.
28
29 2011-05-06 Tristan Gingold <gingold@adacore.com>
30
31 PR target/48895
32 * config/vms/vms-ar.c (main): Remove cwd variable.
33
34 2011-05-06 Jakub Jelinek <jakub@redhat.com>
35
36 PR debug/48902
37 * var-tracking.c (prepare_call_arguments): Move else before #endif.
38
39 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
40
41 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
42 * gimplify.c (gimplify_switch_expr): Likewise.
43 * omp-low.c (expand_omp_sections): Likewise.
44 * tree-eh.c (lower_try_finally_switch): Likewise.
45 (lower_eh_dispatch): Likewise.
46 * tree.h (build_case_label): Declare.
47 * tree.c (build_case_label): Define.
48
49 2011-05-05 Jason Merrill <jason@redhat.com>
50
51 PR c++/40975
52 * tree-inline.c (copy_tree_r): Use copy_statement_list.
53 (copy_statement_list): Don't recurse.
54 * stor-layout.c (copy_self_referential_tree_r): Don't allow
55 STATEMENT_LIST.
56
57 2011-05-05 Joseph Myers <joseph@codesourcery.com>
58
59 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
60 through from -mfpu= handling.
61 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
62
63 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
64
65 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
66 POST_MODIFY.
67
68 2011-05-05 Steve Ellcey <sje@cup.hp.com>
69
70 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
71 for 11.31.
72 (hppa[12]*-*-hpux11*): Ditto.
73 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
74 * config/ia64/hpux-unix2003.h: New.
75 * config/pa/pa-hpux1131.opt: New.
76 * config/pa/pa-hpux1131.h: New.
77 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
78 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
79 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
80
81 2011-05-05 Jakub Jelinek <jakub@redhat.com>
82
83 PR debug/48853
84 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
85 instead of mode as 3rd argument to recursive call.
86 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
87 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
88 VOIDmode.
89 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
90 don't give up if mode is Pmode and mem_mode is not VOIDmode.
91 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
92 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
93
94 2011-05-05 Julian Brown <julian@codesourcery.com>
95
96 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
97 parenthesis in D-register case.
98
99 2011-05-05 Joseph Myers <joseph@codesourcery.com>
100
101 * opt-functions.awk (var_type_struct): Handle Enum options.
102 * optc-gen.awk: Don't check range of variables of character type.
103 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
104 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
105 rs6000_sdata_name, rs6000_explicit_options): Remove.
106 (rs6000_option_override_internal): Check for -malign-power here.
107 Use global_options_set instead of rs6000_explicit_options.
108 (rs6000_parse_fpu_option): Remove.
109 (rs6000_handle_option): Access variables via opts and opts_set
110 pointers. Use error_at and warning_at. Add fall-through
111 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
112 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
113 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
114 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
115 here. Don't use rs6000_parse_fpu_option.
116 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
117 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
118 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
119 (mrecip=): Use Var.
120 (mspe): Use Var and Save.
121 (mtraceback=): Use Enum and Var.
122 (rs6000_traceback_type): New Enum and EnumValue entries.
123 (mfloat-gprs=): Use Enum, Var and Save.
124 (rs6000_float_gprs): New Enum and EnumValue entries.
125 (mlong-double-): use Var and Save.
126 (msched-costly-dep=, minsert-sched-nops=): Use Var.
127 (malign-): Use Enum and Var.
128 (rs6000_alignment_flags): New Enum and EnumValue entries.
129 (mfpu=): Use Enum.
130 (fpu_type_t): New Enum and EnumValue entries.
131 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
132 global_options_set instead of rs6000_explicit_options.
133 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
134 global_options_set instead of rs6000_explicit_options.
135 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
136 global_options_set instead of rs6000_explicit_options.
137 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
138 global_options_set instead of rs6000_explicit_options.
139 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
140 global_options_set instead of rs6000_explicit_options.
141 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
142 global_options_set instead of rs6000_explicit_options.
143 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
144 definition.
145 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
146 global_options_set instead of rs6000_explicit_options.
147 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
148 (rs6000_cmodel): New Enum and EnumValue entries.
149 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
150 global_options_set instead of rs6000_explicit_options.
151 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
152 (mtls-size=): Use Enum and Var.
153 (rs6000_tls_size): New Enum and EnumValue entries.
154
155 2011-05-05 Michael Matz <matz@suse.de>
156
157 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
158 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
159 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
160 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
161 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
162 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
163 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
164 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
165 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
166 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
167 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
168 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
169 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
170 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
171 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
172 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
173
174 2011-05-05 Richard Guenther <rguenther@suse.de>
175
176 * expmed.c (expand_variable_shift): Rename to ...
177 (expand_shift_1): ... this. Take an expanded shift amount.
178 For rotates recurse directly not building trees for the shift amount.
179 (expand_variable_shift): Wrap around expand_shift_1.
180 (expand_shift): Adjust.
181
182 2011-05-05 Jakub Jelinek <jakub@redhat.com>
183
184 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
185
186 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
187
188 * tree.h (get_pending_sizes): Remove prototype.
189 (put_pending_size): Likewise.
190 (put_pending_sizes): Likewise.
191 * stor-layout.c (pending_sizes): Delete.
192 (get_pending_sizes): Likewise.
193 (put_pending_size): Likewise.
194 (put_pending_sizes): Likewise.
195 (variable_size): Do not call put_pending_size and tidy up.
196 * function.h (struct function): Remove dont_save_pending_sizes_p.
197 * lto-streamer-in.c (input_function): Do not stream it.
198 * lto-streamer-out.c (output_function): Likewise.
199 * tree-inline.c (initialize_cfun): Do not copy it.
200 * c-decl.c (store_parm_decls): Do not set it.
201 * omp-low.c (create_task_copyfn): Likewise.
202 * tree-optimize.c (tree_rest_of_compilation): Likewise.
203
204 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
205
206 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
207 conditions.
208 (*movdf_internal): Ditto.
209 (*movdf_internal_nointeger): Ditto.
210 (*movsf_internal): Ditto.
211
212 2011-05-05 Joseph Myers <joseph@codesourcery.com>
213
214 * c-decl.c (finish_decl): Don't call get_pending_sizes.
215 (grokparm): Add parameter expr. Pass it to grokdeclarator.
216 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
217 (c_variable_size): Remove.
218 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
219 call put_pending_sizes.
220 (get_parm_info): Add parameter expr. Use it to set
221 arg_info->pending_sizes.
222 (store_parm_decls): Use arg_info->pending_sizes instead or calling
223 get_pending_sizes.
224 * c-parser.c (c_parser_parms_declarator): Update call to
225 c_parser_parms_list_declarator.
226 (c_parser_parms_list_declarator): Take parameter expr. Update
227 call to push_parm_decl. Update recursive call. Don't call
228 get_pending_sizes. Update calls to get_parm_info.
229 (c_parser_objc_method_definition): Update calls to
230 c_parser_objc_method_decl and objc_start_method_definition.
231 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
232 (c_parser_objc_method_decl): Add parameter expr. Update call to
233 grokparm.
234 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
235 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
236 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
237
238 2011-05-05 Michael Hope <michael.hope@linaro.org>
239
240 PR pch/45979
241 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
242 __ARM_EABI__ hosts.
243
244 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
245
246 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
247 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
248 (spu_output_mi_thunk): New function.
249
250 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251
252 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
253 targetm.asm_out.print_operand.
254 * config/sol2.c: Include target.h.
255
256 2011-05-04 Jan Hubicka <jh@suse.cz>
257
258 * ipa-inline.c (reset_edge_caches): New function.
259 (update_caller_keys): Add check_inlinablity_for; do not
260 reset edge caches; remove now unnecesary loop.
261 (update_callee_keys): Add comments; reset node_growth_cache of callee.
262 (update_all_callee_keys): Likewise.
263 (inline_small_functions): Sanity check cache; update code
264 recomputing it.
265
266 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
267
268 PR rtl-optimization/47612
269 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
270 as the last insn of the sequence to be moved.
271
272 2011-05-04 Tobias Burnus <burnus@net-b.de>
273
274 PR fortran/48864
275 * doc/invoke.texi (Ofast): Document that it
276 enables Fortran's -fno-protect-parens.
277
278 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
279
280 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
281
282 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
283
284 * stor-layout.c (variable_size): Do not issue errors.
285
286 2011-05-04 Richard Guenther <rguenther@suse.de>
287
288 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
289 for array-ref indices.
290 (tree_coverage_counter_addr): Likewise.
291 (build_fn_info_type): Use size_int for index types.
292 (build_gcov_info): Likewise.
293
294 2011-05-04 Richard Guenther <rguenther@suse.de>
295
296 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
297 to build_int_cst.
298 * c-typeck.c (really_start_incremental_init): Use bitsize_int
299 for constructor indices.
300 (push_init_level): Likewise.
301
302 2011-05-04 Richard Guenther <rguenther@suse.de>
303
304 * explow.c (promote_mode): Move variable declarations before code.
305
306 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
307
308 * tree.h (build_function_type_array): Declare.
309 (build_varargs_function_type_array): Declare.
310 (build_function_type_vec, build_varargs_function_type_vec): Define.
311 * tree.c (build_function_type_array_1): New function.
312 (build_function_type_array): New function.
313 (build_varargs_function_type_array): New function.
314
315 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
316
317 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
318 before setting STMT_VINFO_TYPE.
319
320 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
321
322 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
323 instead of spu_pass_by_reference.
324
325 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
326
327 * calls.c (emit_library_call_value_1): Invoke
328 promote_function_mode hook on libcall arguments.
329 * explow.c (promote_function_mode, promote_mode): Handle TYPE
330 argument being NULL.
331 * targhooks.c (default_promote_function_mode): Lisewise.
332 * config/s390/s390.c (s390_promote_function_mode): Likewise.
333 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
334
335 * doc/tm.texi: Document that TYPE argument might be NULL.
336
337 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
338
339 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
340
341 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
342
343 From Bernd Schmidt
344 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
345
346 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
347
348 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
349 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
350 Move ...
351 * mips-tfile.c: ... here.
352 Don't include coretypes.h, tm.h, filenames.h.
353 (saber_stop): Remove definition and all calls.
354 [__SABER__]: Remove.
355 (__LINE__): Remove default.
356 (Size_t, Ptrdiff_t): Remove definitions.
357 Replace by size_t, ptrdiff_t.
358 [!MIPS_DEBUGGING_INFO]: Remove.
359 (SHASH_SIZE, THASH_SIZE): Remove defaults.
360 (progname): Add const.
361 (STATIC): Remove.
362 Replace all uses by static.
363 (ALIGN_SYMTABLE_OFFSET): Remove default.
364 * mips-tdump.c: Don't include coretypes.h, tm.h.
365 Remove !MIPS_IS_STAB guard.
366 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
367 $(TM_H), filenames.h dependencies.
368 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
369
370 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
371
372 From Jie Zhang
373 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
374 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
375
376 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
377
378 From Bernd Schmidt
379 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
380 account and save/restore RETS.
381 (PROFILE_BEFORE_PROLOGUE): Define.
382 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
383 the push insn to use predecrement.
384
385 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
386
387 From Jie Zhang
388 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
389
390 2011-05-04 Nick Clifton <nickc@redhat.com>
391
392 * config/mn10300/mn10300.c: Include cfgloop.h.
393 (DUMP): New macro.
394 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
395 Lcc or a FLcc insn into the instruction stream.
396 (mn10300_block_contains_call): New function. Returns true if the
397 given basic block contains a CALL insn.
398 (mn10300_loop_contains_call_insn): New function. Returns true if
399 the given loop contains a CALL insn.
400 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
401 to use the SETLB and Lcc or FLcc insns.
402 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
403 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
404 * config/mn10300/mn10300.opt (msetlb): New option. Used to
405 disable the SETLB optimization.
406 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
407 __SETLB__ or __NO_SETLB__.
408 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
409 (movsf_internal): Handle MDR register.
410 (cmpsi): Make visible.
411 (setlb): New pattern.
412 (Lcc): New pattern.
413 (FLcc): New pattern.
414
415 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
416
417 PR target/48860
418 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
419 for reg<->xmm moves.
420 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
421 (vec_concatv2di_rex64_sse): Ditto.
422 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
423 (*vec_extractv2di_1_rex64): Ditto.
424
425 Revert:
426 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
427
428 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
429 reg<->xmm moves.
430 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
431
432 2011-05-04 Richard Guenther <rguenther@suse.de>
433
434 * tree.h (int_const_binop): Remove notrunc argument.
435 * fold-const.c (int_const_binop): Remove notrunc argument. Always
436 create integer constants that are properly truncated.
437 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
438 (const_binop): Remove zero notrunc argument to int_const_binop.
439 (size_binop_loc): Likewise.
440 (fold_div_compare): Likewise.
441 (maybe_canonicalize_comparison_1): Likewise.
442 (fold_comparison): Likewise.
443 (fold_binary_loc): Likewise.
444 (multiple_of_p): Likewise.
445 * expr.c (store_constructor): Likewise.
446 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
447 (maybe_fold_stmt_addition): Likewise.
448 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
449 * stor-layout.c (layout_type): Likewise.
450 * tree-data-ref.c (tree_fold_divides_p): Likewise.
451 * tree-sra.c (build_ref_for_offset): Likewise.
452 (build_user_friendly_ref_for_offset): Likewise.
453 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
454 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
455 * tree-ssa-loop-niter.c (inverse): Likewise.
456 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
457 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
458 * tree-switch-conversion.c (check_range): Likewise.
459 (build_constructors): Likewise.
460 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
461 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
462 (extract_range_from_assert): Likewise.
463 (vrp_int_const_binop): Likewise.
464 (extract_range_from_binary_expr): Likewise.
465 (extract_range_from_unary_expr): Likewise.
466 (check_array_ref): Likewise.
467 (find_case_label_range): Likewise.
468 (simplify_div_or_mod_using_ranges): Likewise.
469 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
470 comparing case labels for merging.
471
472 2011-05-03 Mark Wielaard <mjw@redhat.com>
473
474 * dwarf2out.c (debug_str_hash_forced): Removed.
475 (gen_label_for_indirect_string): Removed.
476 (get_debug_string_label): Removed.
477 (AT_string_form): Generate label directly.
478 (output_indirect_string): Test indirect_string_node for
479 DW_FORM_strp instead of checking label and refcount.
480 (prune_indirect_string): Removed.
481 (prune_unused_types): Don't check debug_str_hash_forced or
482 call prune_indirect_string.
483
484 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
485
486 PR other/48093
487 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
488
489 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
490
491 PR debug/47994
492 PR debug/47919
493 * combine.c (try_combine): Skip debug insns at m_split tests.
494
495 2011-04-26 Mark Wielaard <mjw@redhat.com>
496
497 PR42288
498 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
499 when info_section_emitted.
500
501 2011-05-03 Joseph Myers <joseph@codesourcery.com>
502
503 * config/mips/mips-opts.h: New.
504 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
505 to mips-opts.h.
506 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
507 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
508 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
509 via opts pointer.
510 * config/mips/mips.h (enum mips_code_readable_setting): Move to
511 mips-opts.h.
512 (mips_abi, mips_code_readable): Don't declare.
513 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
514 (mabi=): Use Enum and Var.
515 (mips_abi): New Enum and EnumValue entries.
516 (mcode-readable=): Use Enum and Var.
517 (mips_code_readable_setting): New Enum and EnumValue entries.
518 (mr10k-cache-barrier=): Use Enum and Var.
519 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
520
521 2011-05-03 Jan Hubicka <jh@suse.cz>
522
523 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
524 replace hash by pointer map.
525 (cgraph_node_set_element_def, cgraph_node_set_element,
526 const_cgraph_node_set_element, varpool_node_set_element_def,
527 varpool_node_set_element, const_varpool_node_set_element): Remove.
528 (free_cgraph_node_set, free_varpool_node_set): New function.
529 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
530 * tree-emutls.c: Free varpool node set.
531 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
532 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
533 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
534 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
535 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
536 Move here from ipa.c; implement using pointer_map
537 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
538 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
539 debug_cgraph_node_set, varpool_node_set_new,
540 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
541 dump_varpool_node_set, debug_varpool_node_set):
542 Move to ipa-uitls.c.
543 * passes.c (ipa_write_summaries): Update.
544
545 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
546
547 From Mike Frysinger:
548 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
549 bf542/bf544/bf547/bf548/bf549.
550
551 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
552
553 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
554
555 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
556
557 From Bernd Schmidt:
558 * config/bfin/bfin.md (MOVCC): New mode_macro.
559 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
560 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
561 comments from generated assembly.
562
563 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
564
565 From Bernd Schmidt
566 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
567 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
568 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
569 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
570 * config/bfin/lib1funcs.asm (___muldi3): New function.
571
572 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
573
574 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
575 build_function_type_list instead of build_function_type.
576 Rearrange initialization of `args' to do so.
577
578 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
579
580 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
581 instead of build_function_type.
582
583 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
584
585 * config/rs6000/rs6000.c (spe_init_builtins): Call
586 build_function_type_list instead of build_function_type.
587 (paired_init_builtins, altivec_init_builtins): Likewise.
588 (builtin_function_type): Likewise.
589
590 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
591
592 * config/sh/sh.c (sh_media_init_builtins): Call
593 build_function_type_list instead of build_function_type.
594
595 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
596
597 * config/sparc/sparc.c (sparc_file_end): Call
598 build_function_type_list instead of build_function_type.
599
600 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
601
602 * config/alpha/alpha.c (alpha_init_builtins): Call
603 build_function_type_list instead of build_function_type.
604
605 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
606
607 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
608 build_function_type_list instead of build_function_type.
609
610 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
611
612 * config/iq2000/i2000.c (iq2000_init_builtins): Call
613 build_function_type_list instead of build_function_type.
614 Delete `endlink' variable.
615
616 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
617
618 * config/avr/avr.c (avr_init_builtins): Call
619 build_function_type_list instead of build_function_type.
620
621 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
622
623 * config/picochip/picochip.c (picochip_init_builtins): Call
624 build_function_type_list instead of build_function_type.
625 Delete `endlink' variable.
626
627 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
628
629 * config/bfin/bfin.c (bfin_init_builtins): Call
630 build_function_type_list instead of build_function_type.
631
632 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
633
634 From Bernd Schmidt
635 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
636 that's not CONST_INT. Seemingly redundant check is due to PR39768.
637
638 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
639
640 From Jie Zhang:
641 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
642 libbffastfp overrides libgcc when -mfast-fp.
643
644 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
645
646 Originally from Bernd Schmidt
647 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
648 * config/bfin/bfin.c (override_options): Test it and error if
649 TARGET_FDPIC.
650
651 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
652
653 Originally From Bernd Schmidt
654 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
655 FD-PIC.
656
657 2011-05-03 Jeff Law <law@redhat.com>
658
659 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
660 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
661 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
662 than accessing AUX field directly. Free the AUX field before
663 clearing it.
664 (thread_block, thread_through_loop_header): Likewise.
665 (thread_single_edge, mark_threaded_blocks): Likewise.
666 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
667 (register_jump_thread): Do not attempt to thread to a NULL edge.
668
669 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
670
671 * function.c (init_function_start): Call decide_function_section.
672 * varasm.c (decide_function_section): New function.
673 (assemble_start_function): When not using
674 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
675 or first_function_block_is_cold.
676 * rtl.h (decide_function_section): Declare.
677
678 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
679 Jakub Jelinek <jakub@redhat.com>
680
681 PR target/48774
682 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
683 only succeed if req_mode is the same as set_mode.
684
685 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
686
687 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
688 * genemit.c (gen_exp): Handle RETURN.
689 * emit-rtl.c (verify_rtx_sharing): Likewise.
690 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
691 * rtl.c (copy_rtx): RETURN is shared.
692 * rtl.h (enum global_rtl_index): Add GR_RETURN.
693 (ret_rtx): New.
694 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
695 * config/s390/s390.c (s390_emit_epilogue): Likewise.
696 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
697 * config/cris/cris.c (cris_expand_return): Likewise.
698 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
699 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
700 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
701 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
702 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
703 Likewise.
704 * config/v850/v850.c (expand_epilogue): Likewise.
705 * config/bfin/bfin.c (bfin_expand_call): Likewise.
706 * config/arm/arm.md (epilogue): Likewise.
707 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
708 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
709 variable to ret_reg.
710
711 2011-05-03 Richard Guenther <rguenther@suse.de>
712
713 PR lto/48846
714 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
715 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
716 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
717
718 2011-05-03 Richard Guenther <rguenther@suse.de>
719
720 * c-decl.c (grokdeclarator): Instead of looking at
721 TREE_OVERFLOW check if the constant fits in the index type.
722
723 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
724
725 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
726 (vec_store_lanes<mode><mode>): Likewise.
727
728 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
729
730 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
731 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
732 convert_optab_index values.
733 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
734 * genopinit.c (optabs): Initialize the new optabs.
735 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
736 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
737 (expand_STORE_LANES): New functions.
738 * tree.h (build_array_type_nelts): Declare.
739 * tree.c (build_array_type_nelts): New function.
740 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
741 (vect_model_load_cost): Likewise.
742 (vect_store_lanes_supported, vect_load_lanes_supported)
743 (vect_record_strided_load_vectors): Declare.
744 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
745 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
746 (vect_transform_strided_load): Split out statement recording into...
747 (vect_record_strided_load_vectors): ...this new function.
748 * tree-vect-stmts.c (create_vector_array, read_vector_array)
749 (write_vector_array, create_array_ref): New functions.
750 (vect_model_store_cost): Add store_lanes_p argument.
751 (vect_model_load_cost): Add load_lanes_p argument.
752 (vectorizable_store): Try to use store-lanes functions for
753 interleaved stores.
754 (vectorizable_load): Likewise load-lanes and loads.
755 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
756 to vect_model_store_cost.
757 (vect_build_slp_tree): Likewise vect_model_load_cost.
758
759 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
760
761 * hooks.h (hook_bool_mode_uhwi_false): Declare.
762 * hooks.c (hook_bool_mode_uhwi_false): New function.
763 * target.def (array_mode_supported_p): New hook.
764 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
765 * doc/tm.texi: Regenerate.
766 * stor-layout.c (mode_for_array): New function.
767 (layout_type): Use it.
768 * config/arm/arm.c (arm_array_mode_supported_p): New function.
769 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
770
771 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
772
773 PR target/48723
774 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
775 for -fstack-check if the size to allocate is negative.
776
777 2011-05-02 Lawrence Crowl <crowl@google.com>
778
779 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
780 (timevar_cond_start): New for starting a timer only when it is not
781 already running.
782 (timevar_cond_stop): New for stopping a timer when it was not already
783 running.
784
785 * timevar.c (timevar_stop): Enable start/stop timers to start again.
786 (timevar_cond_start): New as above.
787 (timevar_cond_stop): New as above.
788
789 * timevar.def: Add start/stop timers for compiler phases,
790 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
791 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
792 and TV_PHASE_FINALIZE.
793 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
794 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
795 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
796 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
797 Make unused TV_OVERLOAD into a start/stop timer.
798
799 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
800 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
801 to indicate that they are start/stop timers.
802
803 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
804 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
805 Move initialization to do_compile.
806 (do_compile): Add initialization from above.
807 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
808
809 * c-decl.c (c_write_global_declarations): Add start/stop of
810 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
811
812 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
813 or TV_PARSE_INLINE, as appropriate.
814 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
815 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
816
817 2011-05-02 Jason Merrill <jason@redhat.com>
818
819 PR c++/40975
820 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
821
822 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
823
824 PR c/35445
825 * c-decl.c (finish_decl): Only create a composite if the types are
826 compatible.
827
828 2011-05-02 Joseph Myers <joseph@codesourcery.com>
829
830 * config/fr30/fr30-protos.h (Mmode): Don't define.
831 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
832 definition where used.
833 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
834 define. Expand definitions where used.
835 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
836 Expand definitions where used.
837 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
838 rx_function_arg, rx_function_arg_advance,
839 rx_function_arg_boundary): Expand definitions of those macros.
840 * config/v850/v850-protos.h (Mmode): Don't define. Expand
841 definition where used.
842
843 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
844
845 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
846 reg<->xmm moves.
847 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
848 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
849 with *movv2sf_internal_rex64_avx.
850 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
851 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
852 Use %v prefix in insn mnemonic to handle TARGET_AVX.
853 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
854 "vex" in "prefix" attribute calculation.
855 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
856
857 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
858
859 PR target/47951
860 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
861 inputs match the output.
862
863 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
864
865 PR target/47955
866 * config/m68k/m68k.c (m68k_expand_prologue): Set
867 current_function_static_stack_size.
868
869 2011-05-02 Jan Hubicka <jh@suse.cz>
870
871 * lto-streamer.c (lto_streamer_cache_insert_1,
872 lto_streamer_cache_lookup, lto_streamer_cache_create,
873 lto_streamer_cache_delete): Use pointer map instead of hashtable.
874 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
875
876 2011-05-02 Joseph Myers <joseph@codesourcery.com>
877
878 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
879 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
880 config/m68k/t-opts: New files.
881 * config/m68k/m68k-tables.opt: New file (generated).
882 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
883 extra_options and m68k/t-opts to tmake_file.
884 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
885 (all_isas): Initialize using m68k-isas.def.
886 (all_microarchs): Initialize using m68k-microarchs.def.
887 (m68k_find_selection): Remove.
888 (m68k_handle_option): Don't assert that global structures are in
889 use. Use error_at. Access variables via opts pointer. Don't
890 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
891 directly for -m68020-40 and -m68020-60.
892 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
893 m68k_tune_entry here.
894 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
895 to m68k-opts.h.
896 (m68k_library_id_string): Remove declaration.
897 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
898 (m68k_library_id_string): New Variable.
899 (march=, mcpu=, mtune=): Use Enum and Var.
900
901 2011-05-02 Richard Guenther <rguenther@suse.de>
902
903 * varasm.c (output_constructor_regular_field): Compute zero-based
904 index with double-ints. Make sure to ICE instead of producing
905 wrong code.
906 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
907 in asserts. Properly use a signed type.
908
909 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
910
911 * config/i386/sse.md (V): New mode iterator.
912 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
913 TARGET_SSE2.
914 (V_256): Rename from AVX256MODE.
915 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
916 condition to all users.
917 (VF1): Ditto.
918 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
919 condition to all users.
920 (VF_128): Make V4SF mode unconditional.
921 (VF_256): Rename from AVX256MODEF2P.
922 (VI4F_128): Rename from SSEMODE4S.
923 (VI8F_128): Rename from SSEMODE2D.
924 (VI4F_256): Rename from AVX256MODE8P.
925 (VI8F_256): Rename from AVX256MODE4P.
926 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
927 (ssescalarmodesuffix): Remove SF and DF modes.
928 (SSEMODE124): Remove.
929 (SSEMODE1248): Ditto.
930 (SSEMODEF2P): Ditto.
931 (AVXMODEF2P): Ditto.
932 (AVXMODEFDP): Ditto.
933 (AVXMODEFSP): Ditto.
934 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
935 unconditional.
936 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
937 unconditional.
938 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
939 xop_pcmov_<mode>256. Use V mode iterator.
940
941 Adjust RTX patterns globally for renamed mode attributes.
942
943 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
944
945 * haifa-sched.c (sched_emit_insn): Emit insn before first
946 non-scheduled insn. Inform back-end about new insn. Add
947 new insn to scheduled_insns list.
948
949 2011-05-02 Richard Guenther <rguenther@suse.de>
950
951 PR tree-optimization/48822
952 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
953 (process_scc): Indicate which iteration we start.
954
955 2011-05-02 Jan Hubicka <jh@suse.cz>
956
957 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
958 (lto_section_overrun): New.
959 * lto-section-out.c (append_block): Rename to ...
960 (lto_append_block): ... this one; export.
961 (lto_output_1_stream): Move lto lto-streamer.h
962 (lto_output_data_stream): Update.
963 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
964 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
965 functions.
966
967 2011-05-02 Richard Guenther <rguenther@suse.de>
968
969 * tree.c (tree_code_counts): New global array.
970 (record_node_allocation_statistics): Count individual tree codes.
971 (dump_tree_statistics): Dump individual code stats.
972
973 2011-05-01 Jan Hubicka <jh@suse.cz>
974
975 * ipa-inline.c (caller_growth_limits): Fix thinko when
976 looking for largest stack frame.
977 * ipa-inline.h (dump_inline_summary): Declare.
978 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
979 on stack usage.
980 (dump_inline_summary): Export.
981 (debug_inline_summary): Declare as DEBUG_FUNCTION.
982
983 2011-05-01 Anatoly Sokolov <aesok@post.ru>
984
985 * reginfo.c (memory_move_cost): Change rclass argument type form
986 'enum reg_class' to reg_class_t.
987 * reload.h (memory_move_cost): Update prototype.
988 * postreload.c reload_cse_simplify_set): Change type dclass var to
989 reg_class_t.
990 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
991 Update prototype.
992 (ira_allocate_and_set_costs): Change aclass argument type form
993 'enum reg_class' to reg_class_t.
994 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
995 Change aclass argument type to reg_class_t.
996 (update_conflict_hard_reg_costs): Change type aclass and pref vars
997 to reg_class_t.
998 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
999 memory_move_cost call.
1000
1001 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1002 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1003 Change type tmp var to reg_class_t.
1004
1005 2011-04-30 Jan Hubicka <jh@suse.cz>
1006
1007 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1008 inlining into function with flatten attribute.
1009 (want_inline_small_function_p): Be more realistic about inlining
1010 cold calls where callee size grows.
1011
1012 2011-04-30 Jan Hubicka <jh@suse.cz>
1013
1014 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1015 flags.
1016
1017 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1018
1019 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1020 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1021 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1022 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1023 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1024 (print_operand): Rename to...
1025 (sparc_print_operand): ...this. Make static. Adjust
1026 sparc_print_operand function call.
1027 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1028 functions.
1029
1030 2011-04-30 Jan Hubicka <jh@suse.cz>
1031
1032 PR middle-end/48752
1033 * ipa-inline.c (early_inliner): Disable when doing late
1034 addition of function.
1035
1036 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1037
1038 * dwarf2out.c (get_address_mode): New inline.
1039 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1040 if not dwarf_strict emit
1041 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1042 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1043 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1044 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1045 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1046 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1047 mem_loc_descriptor callers.
1048 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1049 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1050 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1051 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1052 (base_types): New variable.
1053 (get_base_type_offset, calc_base_type_die_sizes,
1054 base_type_for_mode, mark_base_types, base_type_cmp,
1055 move_marked_base_types): New functions.
1056 (calc_die_sizes): Assert that die_offset is 0 or equal to
1057 next_die_offset.
1058 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1059 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1060 callers. If not dwarf_strict, call mem_loc_descriptor even for
1061 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1062 (gen_subprogram_die): Don't give up on call site parameters
1063 with non-integral or large integral modes. Adjust
1064 mem_loc_descriptor callers.
1065 (prune_unused_types): Call prune_unused_types_mark on base_types
1066 vector entries.
1067 (resolve_addr): Call mark_base_types.
1068 (dwarf2out_finish): Call move_marked_base_types.
1069
1070 PR tree-optimization/48809
1071 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1072 type.
1073 (gen_inbound_check): Don't compute index_expr - range_min in utype
1074 again, instead reuse SSA_NAME initialized in build_arrays.
1075 Remove two useless gsi_for_stmt calls.
1076
1077 2011-04-29 Jeff Law <law@redhat.com>
1078
1079 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1080
1081 2011-04-29 Martin Jambor <mjambor@suse.cz>
1082
1083 * cgraph.h (cgraph_postorder): Remove declaration.
1084 * ipa-utils.h (ipa_free_postorder_info): Declare.
1085 (ipa_reverse_postorder): Likewise.
1086 * cgraphunit.c: Include ipa-utils.h.
1087 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1088 * ipa-inline.c: Include ipa-utils.h.
1089 (ipa_inline): Update call to ipa_reverse_postorder.
1090 * ipa-pure-const.c (propagate_pure_const): Update call to
1091 ipa_reduced_postorder and ipa_print_order. Call
1092 ipa_free_postorder_info to clean up.
1093 (propagate_nothrow): Likewise.
1094 * ipa-reference.c (propagate): Removed a useless call to
1095 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1096 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1097 * ipa.c: Include ipa-utils.h.
1098 (ipa_profile): Update call to ipa_reverse_postorder.
1099 (cgraph_postorder): Moved to...
1100 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1101 (ipa_utils_print_order): Renamed to ipa_print_order.
1102 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1103 comments.
1104 (ipa_free_postorder_info): New function.
1105 * passes.c: Include ipa-utils.h.
1106 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1107 (ipa_write_summaries): Likewise.
1108 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1109 (cgraphunit.o): Likewise.
1110 (ipa.o): Likewise.
1111 (ipa-inline.o): Likewise.
1112
1113 2011-04-29 Jan Hubicka <jh@suse.cz>
1114
1115 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1116 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1117 * ipa-inline.h (clause_t): Turn into unsigned int.
1118 * ipa-inline-analysis.c (add_clause): Do more simplification.
1119 (and_predicates): Shortcut more cases.
1120 (predicates_equal_p): Move forward; check that clauses are properly
1121 ordered.
1122 (or_predicates): Shortcut more cases.
1123 (edge_execution_predicate): Rewrite as...
1124 (set_cond_stmt_execution_predicate): ... this function; handle
1125 __builtin_constant_p.
1126 (set_switch_stmt_execution_predicate): New .
1127 (compute_bb_predicates): New.
1128 (will_be_nonconstant_predicate): Update TODO.
1129 (estimate_function_body_sizes): Use compute_bb_predicates
1130 and free them later, always try to estimate if stmt is constant.
1131 (estimate_time_after_inlining, estimate_size_after_inlining):
1132 Gracefully handle optimized out edges.
1133 (read_predicate): Fix off by one error.
1134
1135 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1136
1137 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1138
1139 2011-04-27 Xinliang David Li <davidxl@google.com>
1140
1141 * tree-profile.c (init_ic_make_global_vars): Set
1142 tls attribute on ic vars.
1143 * coverage.c (coverage_end_function): Initialize
1144 function_list with zero.
1145
1146 2011-04-29 Richard Guenther <rguenther@suse.de>
1147
1148 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1149 for the type of the result.
1150 (fold_builtin_isascii): Likewise.
1151 (fold_builtin_toascii): Use integer_type_node where appropriate.
1152 (fold_builtin_logb): Likewise.
1153 (fold_builtin_frexp): Likewise.
1154 (fold_builtin_strstr): Likewise.
1155 (fold_builtin_strpbrk): Likewise.
1156 (fold_builtin_fputs): Likewise.
1157 (fold_builtin_sprintf): Likewise.
1158 (fold_builtin_snprintf): Likewise.
1159 (fold_builtin_printf): Likewise.
1160 (do_mpfr_remquo): Use a proper type for the assigned constant.
1161 (do_mpfr_lgamma_r): Likewise.
1162 * dwarf2out.c (resolve_one_addr): Use size_int.
1163 * except.c (init_eh): Likewise.
1164 (assign_filter_values): Use integer_type_node for filter values.
1165 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1166 indices.
1167 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1168 for EH region numbers.
1169 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1170 for the shift amount.
1171
1172 2011-04-29 Richard Guenther <rguenther@suse.de>
1173
1174 * expr.h (expand_shift): Rename to ...
1175 (expand_variable_shift): ... this.
1176 (expand_shift): Take a constant shift amount.
1177 * expmed.c (expand_shift): Rename to ...
1178 (expand_variable_shift): ... this.
1179 (expand_shift): New wrapper around expand_variable_shift.
1180 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1181 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1182 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1183 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1184 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1185 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1186 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1187 emit_store_flag_1, emit_store_flag): Likewise.
1188 * builtins.c (expand_builtin_signbit): Likewise.
1189 * calls.c (load_register_parameters): Likewise.
1190 * function.c (assign_parm_setup_block): Likewise.
1191 * lower-subreg.c (resolve_shift_zext): Likewise.
1192 * optabs.c (widen_bswap, expand_abs_nojump,
1193 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1194 * spu/spu.c (spu_expand_extv): Likewise.
1195 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1196
1197 2011-04-29 Richard Guenther <rguenther@suse.de>
1198
1199 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1200 for the remapped region number.
1201 * predict.c (build_predict_expr): Use integer_type_node for the
1202 predict kind.
1203 * fold-const.c (fold_binary_loc): Use integer_type_node for
1204 the shift amount. Use a proper type for the PLUS_EXPR operand.
1205
1206 2011-04-29 Michael Matz <matz@suse.de>
1207
1208 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1209 other trees that just builtins.
1210 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1211
1212 2011-04-29 Richard Guenther <rguenther@suse.de>
1213
1214 * tree-nested.c (get_trampoline_type): Use size_int.
1215 (get_nl_goto_field): Likewise.
1216 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1217 for all indexes.
1218 (lower_eh_constructs_2): Likewise.
1219 (lower_resx): Likewise.
1220 (lower_eh_dispatch): Likewise.
1221 * tree-mudflap.c (mf_build_string): Use size_int.
1222 (mudflap_register_call): Use integer_type_node for the flag.
1223 (mudflap_enqueue_constant): Use size_int.
1224 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1225 instead of rebuilding it.
1226
1227 2011-04-29 Richard Guenther <rguenther@suse.de>
1228
1229 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1230 Handle OBJ_TYPE_REF.
1231 (find_func_aliases_for_call): Use it more consistently.
1232
1233 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1234
1235 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1236 (rank_for_schedule): Use it.
1237 (schedule_block): Set it.
1238
1239 2011-04-28 David Li <davidxl@google.com>
1240
1241 * tree.c (crc32_string): Use crc32_byte.
1242 (crc32_byte): New function.
1243 * tree.h (crc32_byte): New function.
1244 * gcov.c (read_graph_file): Handle new cfg_cksum.
1245 (read_count_file): Ditto.
1246 * profile.c (instrument_values): Ditto.
1247 (get_exec_counts): Ditto.
1248 (read_profile_edge_counts): Ditto.
1249 (compute_branch_probabilities): Ditto.
1250 (compute_value_histograms): Ditto.
1251 (branch_prob): Ditto.
1252 (end_branch_prob): Ditto.
1253 * coverage.c (read_counts_file): Ditto.
1254 (get_coverage_counts): Ditto.
1255 (tree_coverage_counter_addr): Ditto.
1256 (coverage_checksum_string): Ditto.
1257 (coverage_begin_output): Ditto.
1258 (coverage_end_function): Ditto.
1259 (build_fn_info_type): Ditto.
1260 (build_fn_info_value): Ditto.
1261 * libgcov.c (gcov_exit): Ditto.
1262 * gcov-dump.c (tag_function): Ditto.
1263 (compute_checksum): Remove.
1264
1265 2011-04-29 Alan Modra <amodra@gmail.com>
1266
1267 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1268 unspec plus offset. Tidy macho code.
1269
1270 2011-04-29 Martin Jambor <mjambor@suse.cz>
1271
1272 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1273 node instead of a decl. Update all callers.
1274 * cgraph.h: Update declaration.
1275
1276 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1277
1278 PR tree-optimization/48765
1279 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1280 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1281 to indicate if loop aware SLP is being used. Scan the statements
1282 and update the vectorization factor according to the type of
1283 vectorization before statement analysis.
1284 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1285 pass it to vect_analyze_loop_operations.
1286 (vectorizable_reduction): Set number of copies to 1 in case of pure
1287 SLP statement.
1288 * tree-vect-stmts.c (vectorizable_conversion,
1289 vectorizable_assignment, vectorizable_shift,
1290 vectorizable_operation, vectorizable_type_demotion,
1291 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1292 Likewise.
1293 (vectorizable_condition): Move the check that it is not SLP
1294 vectorization before the number of copies check.
1295 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1296 to vectorize the loop using SLP.
1297
1298 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1299
1300 PR middle-end/48597
1301 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1302 inline asm.
1303
1304 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1305
1306 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1307 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1308 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1309 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1310 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1311 linux*.h headers.
1312 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1313 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1314 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1315 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1316 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1317 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1318 REG_NAME.
1319 * config/i386/linux.h (REG_NAME): Don't define.
1320 * config/i386/linux64.h (REG_NAME): Don't define.
1321 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1322 Undefine before defining.
1323
1324 2011-04-28 Jan Hubicka <jh@suse.cz>
1325
1326 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1327 nonconstant_names array.
1328 (estimate_function_body_sizes): Build nonconstant_names array; handle
1329 BUILT_IN_CONSTANT_P.
1330
1331 2011-04-28 Richard Guenther <rguenther@suse.de>
1332
1333 PR bootstrap/48804
1334 Revert
1335 2011-04-28 Richard Guenther <rguenther@suse.de>
1336
1337 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1338 as late as possible.
1339
1340 2011-04-28 Richard Guenther <rguenther@suse.de>
1341
1342 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1343 (debug_constraint): Do it here.
1344 (dump_constraints): And here.
1345 (rewrite_constraints): And here.
1346 (dump_constraint_edge): Remove.
1347 (dump_constraint_graph): Rewrite to produce DOT output.
1348 (solve_constraints): Build succ graph as late as possible.
1349 Dump constraint graphs before and after solving.
1350
1351 2011-04-28 Richard Guenther <rguenther@suse.de>
1352
1353 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1354 New function split out from ...
1355 (find_func_aliases): ... here. Call it.
1356 (find_func_aliases_for_call): Likewise.
1357
1358 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1359
1360 * internal-fn.h (internal_fn_name_array): Declare.
1361 (internal_fn_flags_array): Likewise.
1362
1363 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1364
1365 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1366 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1367 Move from sse.md.
1368 (ssemodefsuffix): Remove.
1369 (ssevecmodesuffix): New mode attribute.
1370 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1371 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1372 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1373 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1374 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1375 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1376 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1377 ssemodesuffix mode attribute.
1378 (float splitters): Use ssevecmodesuffix mode attribute.
1379 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1380 (sseinsmode): Rename from avxvecmode.
1381 (avxsizesuffix): Rename from avxmodesuffix.
1382 (sseintvecmode): Rename from avxpermvecmode.
1383 (ssedoublevecmode): Rename from ssedoublesizemode.
1384 (ssehalfvecmode): Rename from avxhalfvecmode.
1385 (ssescalarmode): Rename from avxscalarmode.
1386 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1387 templates for ssemodesuffix mode attribute.
1388 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1389 mode attribute.
1390
1391 Adjust RTX patterns globally for renamed mode attributes.
1392
1393 2011-04-27 Jan Hubcika <jh@suse.cz>
1394
1395 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1396 * ipa-inline-analysis.c: Include alloc-pool.h.
1397 (edge_predicate_pool): New.
1398 (trye_predicate_p): New function
1399 (false_predicate_p): New function.
1400 (add_clause): Sanity check that false clauses are "optimized";
1401 never add clauses to predicate that is already known to be false.
1402 (and_predicate): Use flase_predicate_p.
1403 (evaulate_predicate): Rename to ...
1404 (evaluate_predicate): ... this one; update all callers; assert
1405 that false is not listed among possible truths.
1406 (dump_predicate): Use true_predicate_p.
1407 (account_size_time): Use false_predicate_p.
1408 (evaulate_conditions_for_edge): Rename to ...
1409 (evaluate_conditions_for_edge) ... this one.
1410 (edge_set_predicate): New function.
1411 (inline_edge_duplication_hook): Duplicate edge predicates.
1412 (inline_edge_removal_hook): Free edge predicates.
1413 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1414 (dump_inline_summary): Update.
1415 (estimate_function_body_sizes): Set edge predicates.
1416 (estimate_calls_size_and_time): Handle predicates.
1417 (estimate_callee_size_and_time): Update.
1418 (remap_predicate): Add toplev_predicate; update comment.
1419 (remap_edge_predicates): New function.
1420 (inline_merge_summary): Compute toplev predicate; update.
1421 (read_predicate): New function.
1422 (read_inline_edge_summary): Use it.
1423 (inline_read_section): Likewise.
1424 (write_predicate): New function.
1425 (write_inline_edge_summary): Use it.
1426 (inline_write_summary): Likewise.
1427 (inline_free_summary): Free alloc pool and edge summary vec.
1428
1429 2011-04-27 Richard Guenther <rguenther@suse.de>
1430
1431 * tree-ssa-structalias.c (changed_count): Remove.
1432 (changed): Use a bitmap.
1433 (unify_nodes): Adjust.
1434 (do_sd_constraint): Likewise.
1435 (do_ds_constraint): Likewise.
1436 (do_complex_constraint): Likewise.
1437 (solve_graph): Likewise.
1438
1439 2011-04-27 Jan Hubicka <jh@suse.cz>
1440
1441 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1442
1443 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1444
1445 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1446 (avx_vperm2f128_*_operand): Ditto.
1447 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1448 Use avx_vpermilp_parallel in insn condition.
1449 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1450 Use avx_vperm2f128_parallel in insn condition.
1451
1452 2011-04-27 Richard Guenther <rguenther@suse.de>
1453
1454 * Makefile.in (tree-ssa-structalias.o): Remove
1455 gt-tree-ssa-structalias.h dependency.
1456 (GTFILES): Remove tree-ssa-structalias.c.
1457 * tree.c (allocate_decl_uid): New function.
1458 (make_node_stat): Use it.
1459 (copy_node_stat): Likewise.
1460 * tree.h (allocate_decl_uid): Declare.
1461 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1462 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1463 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1464 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1465 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1466 (struct heapvar_map): Likewise.
1467 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1468 heapvar_insert): Likewise.
1469 (make_heapvar_for): Rename to ...
1470 (make_heapvar): ... this. Simplify.
1471 (fake_var_decl_obstack): New global var.
1472 (build_fake_var_decl): New function.
1473 (make_constraint_from_heapvar): Adjust.
1474 (handle_lhs_call): Likewise.
1475 (create_function_info_for): Likewise.
1476 (intra_create_variable_infos): Likewise.
1477 (init_alias_vars): Allocate fake_var_decl_obstack.
1478 (init_alias_heapvars, delete_alias_heapvars): Remove.
1479 (compute_points_to_sets): Do not call init_alias_heapvars.
1480 (ipa_pta_execute): Likewise.
1481 (delete_points_to_sets): Free fake_var_decl_obstack.
1482
1483 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1484
1485 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1486 (si_from_UTItype, si_to_UTItype): New functions.
1487 (__udivmodti4): Use them to implement type-punning.
1488 * config/spu/multi3.c (union qword_TItype): New data type.
1489 (si_from_TItype, si_to_TItype): New functions.
1490 (__multi3): Use them to implement type-punning.
1491
1492 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1493
1494 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1495
1496 2011-04-27 Jan Hubicka <jh@suse.cz>
1497
1498 * ipa-prop.c (function_insertion_hook_holder): New holder.
1499 (ipa_add_new_function): New function.
1500 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1501 Register/deregister holder.
1502
1503 2011-04-27 Richard Guenther <rguenther@suse.de>
1504
1505 PR tree-optimization/48772
1506 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1507
1508 2011-04-27 Richard Guenther <rguenther@suse.de>
1509
1510 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1511 TARGET_MEM_REF handling.
1512
1513 2011-04-27 Nick Clifton <nickc@redhat.com>
1514
1515 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1516 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1517 (REG_CLASS_NAMES): Likewise.
1518 (REG_CLASS_CONTENTS): Likewise.
1519 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1520 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1521 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1522 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1523 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1524 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1525 duplicate register classes.
1526 (frv_class_likely_spilled_p): Likewise.
1527 (frv_register_move_cost): Likewise.
1528
1529 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1530 end of the regno_reg_class array.
1531
1532 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1533
1534 PR c/48742
1535 * c-typeck.c (build_binary_op): Don't wrap arguments if
1536 int_operands is true.
1537
1538 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1539
1540 PR target/48767
1541 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1542 targetm.calls.must_pass_in_stack for void type.
1543
1544 2011-04-26 Jan Hubicka <jh@suse.cz>
1545
1546 * cgraphbuild.c (build_cgraph_edges): Update call
1547 of cgraph_create_edge and cgraph_create_indirect_edge.
1548 * cgraph.c (cgraph_create_edge_including_clones,
1549 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1550 cgraph_update_edges_for_call_stmt_node): Do not take nest
1551 argument; do not initialize call_stmt_size/time.
1552 (dump_cgraph_node): Do not dump nest.
1553 (cgraph_clone_edge): Do not take loop_nest argument;
1554 do not propagate it; do not clone call_stmt_size/time.
1555 (cgraph_clone_node): Likewise.
1556 (cgraph_create_virtual_clone): Update.
1557 * cgraph.h (struct cgraph_edge): Remove
1558 call_stmt_size/call_stmt_time/loop_nest.
1559 (cgraph_create_edge, cgraph_create_indirect_edge,
1560 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1561 prototype.
1562 * tree-emutls.c (gen_emutls_addr): Update.
1563 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1564 loop_nest; handle indirect calls, too.
1565 (clone_inlined_nodes): Do not care about updating inline summaries.
1566 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1567 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1568 stream call_stmt_size/call_stmt_time/loop_nest.
1569 * ipa-inline.c (edge_badness): Update.
1570 (ipa_inline): dump summaries after inlining.
1571 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1572 New.
1573 (inline_edge_summary): New function.
1574 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1575 (inline_edge_removal_hook): Handle edge summaries.
1576 (inline_edge_duplication_hook): New hook.
1577 (inline_summary_alloc): Alloc hooks.
1578 (initialize_growth_caches): Do not register removal hooks.
1579 (free_growth_caches); Do not free removal hook.
1580 (dump_inline_edge_summary): New function.
1581 (dump_inline_summary): Use it.
1582 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1583 (inline_update_callee_summaries): New function.
1584 (inline_merge_summary): Use it.
1585 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1586 (read_inline_edge_summary): New function.
1587 (inline_read_section): Use it.
1588 (write_inline_edge_summary): New function.
1589 (inline_write_summary): Use it.
1590 (inline_free_summary): Free edge new holders.
1591 * tree-inline.c (copy_bb): Update.
1592
1593 2011-04-26 Jason Merrill <jason@redhat.com>
1594
1595 * tree-eh.c (lower_try_finally_switch): Create the label along with
1596 the CASE_LABEL_EXPR.
1597
1598 2011-04-26 David S. Miller <davem@davemloft.net>
1599 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600
1601 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1602 * configure: Regenerate.
1603
1604 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1605
1606 PR target/48258
1607 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1608 reduction.
1609 (VEC_reduc): New code iterator and splitters for vector reduction.
1610 (VEC_reduc_name): Ditto.
1611 (VEC_reduc_rtx): Ditto.
1612 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1613 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1614
1615 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1616 support for extracting SF on VSX.
1617
1618 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1619 generating xscvspdp.
1620 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1621 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1622 double add, minimum, maximum vector reduction.
1623 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1624 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1625 optimize double vector reduction.
1626 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1627
1628 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1629
1630 * config/fr30/fr30.h (inhibit_libc): Don't define.
1631 * config/m32r/m32r-protos.h: Correct comment.
1632 * config/v850/v850.h (GHS_default_section_names,
1633 GHS_current_section_names): Use tree, not union tree_node *.
1634
1635 2011-04-26 Xinliang David Li <davidxl@google.com>
1636
1637 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1638 * c-family/c-opts.c (c_common_handle_option): Set
1639 warn_maybe_uninitialized.
1640 * opts.c (common_handle_option): Ditto.
1641 * common.opt: New option.
1642 * tree-ssa.c (warn_uninit): Add one more parameter.
1643 (warn_uninitialized_var): Pass warning code.
1644 * tree-flow.h: Interface change.
1645
1646
1647 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1650 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1651 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1652
1653 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1654
1655 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1656 * config/mips/mips.opt (mmips-tfile): Remove.
1657
1658 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1659 mips-tdump reference to ...
1660 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1661 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1662 reference by Tru64 UNIX.
1663
1664 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1665
1666 PR debug/48768
1667 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1668 is error_mark_node, set value to NULL.
1669
1670 PR tree-optimization/48734
1671 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1672 if return value from maybe_fold_*_comparsions isn't something
1673 the code is prepared to handle.
1674
1675 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1676
1677 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1678 mode check.
1679 (ext_QIreg_nomode_operands): Remove.
1680 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1681 (*andsi_1): Ditto.
1682 (*andhi_1): Ditto.
1683
1684 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1685
1686 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1687
1688 2011-04-26 Richard Guenther <rguenther@suse.de>
1689
1690 * c-typeck.c (build_unary_op): Do not expand array-refs via
1691 pointer arithmetic. Only adjust qualifiers for function types.
1692
1693 2011-04-26 Richard Guenther <rguenther@suse.de>
1694
1695 PR middle-end/48694
1696 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1697 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1698 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1699 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1700
1701 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1702
1703 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1704 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1705 * doc/extend.texi: Document __underlying_type.
1706
1707 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1708
1709 * config/rs6000/titan.md (automata_option "progress"): Remove.
1710
1711 2011-04-25 Jeff Law <law@redhat.com>
1712
1713 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1714
1715 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1716
1717 * system.h (ENUM_BITFIELD): Remove.
1718
1719 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1720 Eric Botcazou <ebotcazou@adacore.com>
1721
1722 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1723 for STORE_FLAG_VALUE==-1 case.
1724
1725 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1726
1727 PR target/43804
1728 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1729 LEGITIMATE_PIC_OPERAND_P.
1730
1731 2011-04-24 Jan Hubicka <jh@suse.cz>
1732
1733 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1734 WPA hack.
1735 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1736 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1737 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1738 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1739 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1740 Sanity check predicate length.
1741 (remap_predicate): Likewise; sanity check jump functions.
1742 (inline_read_section, inline_write_summary): Sanity check
1743 predicate length.
1744
1745 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1746
1747 PR other/48748
1748 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1749 __is_literal_type, and __is_trivial; update throughout about
1750 possibly cv-qualified void types.
1751
1752 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1753
1754 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1755 testsuite and make it version agnostic.
1756
1757 2011-04-22 Jan Hubicka <jh@suse.cz>
1758
1759 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1760
1761 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR c/48685
1764 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1765 to VOID_TYPE even around MODIFY_EXPR.
1766
1767 2011-04-22 Mike Stump <mikestump@comcast.net>
1768
1769 * gensupport.c (read_md_rtx): Fix typo in comment.
1770 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1771 comment.
1772
1773 2011-04-22 Jan Hubicka <jh@suse.cz>
1774
1775 * gengtype.c (open_base_files): Add ipa-inline.h include.
1776 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1777 ipa-prop.c; update all uses.
1778 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1779 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1780 merge summary of inlined function into former caller.
1781 * ipa-inline.c (max_benefit): Remove.
1782 (edge_badness): Compensate for removal of benefits.
1783 (update_caller_keys): Use
1784 reset_node_growth_cache/reset_edge_growth_cache.
1785 (update_callee_keys): Likewise.
1786 (update_all_callee_keys): Likewise.
1787 (inline_small_functions): Do not collect max_benefit; do not reset
1788 estimated_growth; call free_growth_caches and initialize_growth_caches.
1789 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1790 struct size_time_entry): New structures.
1791 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1792 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1793 and estimated_growth.
1794 (edge_growth_cache_entry): New structure.
1795 (node_growth_cache, edge_growth_cache): New global vars.
1796 (estimate_growth): Turn into inline.
1797 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1798 initialize_growth_caches, free_growth_caches): Declare.
1799 (estimate_edge_growth): Rewrite.
1800 (estimate_edge_time): Implement as inline cache lookup.
1801 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1802 functions.
1803 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1804 (NUM_CONDITIONS): New constant.
1805 (predicate_conditions): New enum.
1806 (IS_NOT_CONSTANT): New constant.
1807 (edge_removal_hook_holder): New var.
1808 (node_growth_cache, edge_growth_cache): New global vars.
1809 (true_predicate, single_cond_predicate, false_predicate,
1810 not_inlined_predicate, add_condition, add_clause, and_predicates,
1811 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1812 dump_clause, dump_predicate, account_size_time,
1813 evaulate_conditions_for_edge): New functions.
1814 (inline_summary_alloc): Move to heap.
1815 (inline_node_removal_hook): Clear condition and entry vectors.
1816 (inline_edge_removal_hook): New function.
1817 (initialize_growth_caches, free_growth_caches): New function.
1818 (dump_inline_summary): Update.
1819 (edge_execution_predicate): New function.
1820 (will_be_nonconstant_predicate): New function.
1821 (estimate_function_body_sizes): Compute BB and constantness predicates.
1822 (compute_inline_parameters): Do not clear estimated_growth.
1823 (estimate_edge_size_and_time): New function.
1824 (estimate_calls_size_and_time): New function.
1825 (estimate_callee_size_and_time): New function.
1826 (remap_predicate): New function.
1827 (inline_merge_summary): New function.
1828 (do_estimate_edge_time): New function based on...
1829 (estimate_edge_time): ... this one.
1830 (do_estimate_edge_growth): New function.
1831 (do_estimate_growth): New function based on....
1832 (estimate_growth): ... this one.
1833 (inline_analyze_function): Analyze after deciding on jump functions.
1834 (inline_read_section): New function.
1835 (inline_read_summary): Use it.
1836 (inline_write_summary): Write all the new data.
1837 * ipa-prop.c (ipa_get_param_decl_index): Export.
1838 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1839 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1840 Declare.
1841 (ipa_get_lattice): Move here from ipa-cp.c
1842 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1843 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1844 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1845 cgraph_edge_inlinable_p): Remove.
1846 * cgraphunit.c: Include ipainline.h
1847 (cgraph_process_new_functions): Update call of
1848 compute_inline_parameters.
1849
1850 2011-04-22 Richard Guenther <rguenther@suse.de>
1851
1852 * tree.c (build_int_cst): Properly create canonicalized integer
1853 constants.
1854 (build_int_cst_type): Remove scary comments.
1855
1856 2011-04-22 Xinliang David Li <davidxl@google.com>
1857
1858 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1859 by default when -Wno-error is not specified.
1860 * opts-global.c (decode_options): Remove call to
1861 control_warning_options.
1862
1863 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1864
1865 PR tree-optimization/48717
1866 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1867 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1868
1869 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1870
1871 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1872 definition where used.
1873
1874 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1875
1876 PR c/48716
1877 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1878 TREE_STATIC variables declared inside of some OpenMP construct.
1879
1880 2011-04-22 Martin Jambor <mjambor@suse.cz>
1881
1882 PR middle-end/48585
1883 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1884
1885 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1886
1887 PR c/36750
1888 * c-typeck.c (pop_init_level): Do not warn about initializing
1889 with ` = {0}'.
1890
1891 2011-04-22 Alan Modra <amodra@gmail.com>
1892
1893 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1894 when returning call_cookie.
1895 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1896 pointers, to functions with no more vector args than the current
1897 function, and some non-local calls for ABI_V4.
1898 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1899 sibcall_nonlocal_aix64): Combine to ..
1900 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1901 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1902 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1903 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1904 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1905 operand.
1906 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1907 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1908 sibcall_value_symbolic_64): Delete.
1909
1910 2011-04-21 Xinliang David Li <davidxl@google.com>
1911
1912 * cgraph.h: Remove pid.
1913 * cgraph.c: Remove pid.
1914 * value-prof.c (init_node_map): New function.
1915 (del_node_map): New function.
1916 (find_func_by_funcdef_no): New function.
1917 (gimple_ic_transform): Call new function.
1918 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1919 * function.c (get_last_funcdef_no): New function.
1920 * function.h (get_last_funcdef_no): New function.
1921 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1922 to libgcov function.
1923 (tree-profiling): Call node map init and delete function.
1924
1925 2011-04-21 Ian Lance Taylor <iant@google.com>
1926
1927 * godump.c (go_format_type): Use exported Go name for anonymous
1928 field name.
1929
1930 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1931
1932 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1933 Call builtin_function_type_list instead of builtin_function_type.
1934 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1935
1936 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1937
1938 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1939 build_function_type_list instead of build_function_type.
1940 Delete variable `endlink'.
1941
1942 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1943
1944 * config/s390/s390.c (s390_init_builtins): Call
1945 build_function_type_list instead of build_function_type.
1946
1947 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1948
1949 * config/ia64/ia64.c (ia64_init_builtins): Call
1950 build_function_type_list instead of builtin_function_type.
1951
1952 2011-04-21 Easwaran Raman <eraman@google.com>
1953
1954 * cfgexpand.c (stack_var): Remove OFFSET...
1955 (add_stack_var): ...and its reference here...
1956 (expand_stack_vars): ...and here.
1957 (stack_var_cmp): Sort by descending order of size.
1958 (partition_stack_vars): Change heuristic.
1959 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1960 (dump_stack_var_partition): Add newline after each partition.
1961
1962 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1963 Jeff Law <law@redhat.com>
1964
1965 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1966 * gengtype.c (matching_file_name_substitute): Likewise.
1967
1968 2011-04-21 Richard Guenther <rguenther@suse.de>
1969
1970 PR lto/48703
1971 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1972
1973 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1974
1975 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1976
1977 2011-04-21 Richard Guenther <rguenther@suse.de>
1978
1979 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1980 file name.
1981
1982 2011-04-21 Richard Guenther <rguenther@suse.de>
1983
1984 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1985 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1986 Use DECL_P, not SSA_VAR_P.
1987 (ptr_derefs_may_alias_p): Likewise.
1988 (ptr_deref_may_alias_ref_p_1): Likewise.
1989 (decl_refs_may_alias_p): Likewise.
1990 (refs_may_alias_p_1): Likewise.
1991 (ref_maybe_used_by_call_p_1): Likewise.
1992 (call_may_clobber_ref_p_1): Likewise.
1993 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1994 are either MEM_REF or TARGET_MEM_REF.
1995 (indirect_refs_may_alias_p): Likewise.
1996 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1997 for MEM_EXPR of indirect calls.
1998
1999 2011-04-21 Tristan Gingold <gingold@adacore.com>
2000
2001 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2002 (dst_file_info_struct): Remove flen field.
2003 (lookup_filename): Remove code that set flen field.
2004
2005 2011-04-21 Tristan Gingold <gingold@adacore.com>
2006
2007 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2008
2009 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2010
2011 PR target/48708
2012 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2013 vec_extract and vec_concat for non-SSE4_1 targets.
2014
2015 2011-04-21 Richard Guenther <rguenther@suse.de>
2016
2017 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2018 return statements.
2019
2020 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2021
2022 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2023 undefine.
2024 (FILE): Don't undefine.
2025
2026 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2027
2028 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2029 struct rtx_def *.
2030 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2031 struct rtx_def *.
2032 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2033 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2034 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2035 rtx_def *.
2036 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2037 definitions where used.
2038 * config/microblaze/microblaze.h (struct microblaze_args): Use
2039 rtx, not struct rtx_def *.
2040 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2041 rtx_def *.
2042 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2043 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2044 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2045 not struct rtx_def *.
2046 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2047 struct rtx_def *.
2048 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2049 rtx_def *.
2050 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2051
2052 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2053
2054 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2055 operand_equal_p to compare DR_BASE_ADDRESSes.
2056 (vect_check_interleaving): Likewise.
2057
2058 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2059
2060 PR target/46329
2061 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2062 for all Neon struct constants.
2063
2064 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2065
2066 * target.def (legitimate_constant_p): New hook.
2067 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2068 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2069 * doc/tm.texi: Regenerate.
2070 * hooks.h (hook_bool_mode_rtx_true): Declare.
2071 * hooks.c (hook_bool_mode_rtx_true): Define.
2072 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2073 * calls.c (precompute_register_parameters): Replace uses of
2074 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2075 (emit_library_call_value_1): Likewise.
2076 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2077 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2078 * ira-costs.c (scan_one_insn): Likewise.
2079 * recog.c (general_operand, immediate_operand): Likewise.
2080 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2081 * reload1.c (init_eliminable_invariants): Likewise.
2082
2083 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2084 mode argument.
2085 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2086 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2087 argument.
2088 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2089 * config/alpha/predicates.md (input_operand): Update call to
2090 alpha_legitimate_constant_p.
2091
2092 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2093 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2094 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2095 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2096 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2097 (arm_legitimate_constant_p): New functions.
2098 (arm_cannot_force_const_mem): Make static.
2099
2100 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2101
2102 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2103 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2104 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2105 instead of bfin_legitimate_constant_p.
2106 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2107 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2108
2109 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2110
2111 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2112
2113 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2114 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2115 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2116 (frv_legitimate_constant_p): Make static. Add a mode argument.
2117
2118 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2119 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2120 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2121
2122 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2123 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2124 * config/i386/i386.c (legitimate_constant_p): Rename to...
2125 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2126 argument.
2127 (ix86_cannot_force_const_mem): Update accordingly.
2128 (ix86_legitimate_address_p): Likewise.
2129 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2130 * config/i386/i386.md: Update commentary.
2131
2132 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2133 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2134 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2135 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2136
2137 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2138
2139 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2140 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2141 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2142 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2143
2144 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2145 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2146 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2147
2148 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2149 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2150 (m32r_legitimate_constant_p): New function.
2151
2152 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2153 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2154 LEGITIMATE_CONSTANT_P.
2155 (LEGITIMATE_CONSTANT_P): Delete.
2156 * config/m68k/m68k.c (m68k_expand_prologue): Call
2157 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2158 (m68k_legitimate_constant_p): New function.
2159 * config/m68k/m68k.md: Update comments.
2160
2161 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2162 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2163 (mcore_legitimate_constant_p): New function.
2164
2165 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2166 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2167 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2168 Add a mode argument.
2169 (mep_legitimate_address): Update accordingly.
2170 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2171
2172 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2173 Delete.
2174 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2175 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2176 static. Check OP's mode for VOIDmode.
2177 (microblaze_legitimate_constant_p): New function.
2178 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2179
2180 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2181 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2182 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2183 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2184 * config/mips/predicates.md: Update comments.
2185
2186 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2187 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2188 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2189 (mmix_legitimate_constant_p): Make static, return a bool, and take
2190 a mode argument.
2191 (mmix_print_operand_address): Update accordingly.
2192
2193 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2194 Delete.
2195 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2196 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2197 static. Add a mode argument.
2198 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2199
2200 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2201
2202 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2203 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2204 (pa_legitimate_constant_p): New function.
2205
2206 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2207
2208 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2209 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2210 (pdp11_legitimate_constant_p): New function.
2211
2212 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2213 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2214 (rs6000_legitimate_constant_p): New function.
2215
2216 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2217 (rx_legitimate_constant_p): ...this.
2218 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2219 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2220 (rx_legitimate_constant_p): ...this.
2221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2222 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2223
2224 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2225 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2226 * config/s390/s390.c (legitimate_constant_p): Rename to...
2227 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2228 and add a mode argument.
2229 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2230
2231 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2232
2233 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2234 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2235 (sh_legitimate_constant_p): New function.
2236
2237 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2238 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2239 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2240 (legitimate_constant_p): Rename to...
2241 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2242 argument.
2243 (constant_address_p): Update accordingly.
2244
2245 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2246 argument and return a bool.
2247 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2248 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2249 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2250 (spu_rtx_costs): Update accordingly.
2251 * config/spu/predicates.md (vec_imm_operand): Likewise.
2252
2253 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2254
2255 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2256 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2257 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2258
2259 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2260 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2261 * config/vax/vax.c (legitimate_constant_p): Likewise.
2262
2263 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2264 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2265 (xtensa_legitimate_constant_p): New function.
2266
2267 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2268
2269 * target.def (cannot_force_const_mem): Add a mode argument.
2270 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2271 * doc/tm.texi: Regenerate.
2272 * hooks.h (hook_bool_mode_rtx_false): Declare.
2273 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2274 (hook_bool_mode_const_rtx_true): Likewise.
2275 (hook_bool_mode_rtx_false): New function.
2276 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2277 to be non-VOID. Update call to cannot_force_const_mem.
2278 (find_reloads): Update accordingly.
2279 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2280 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2281 argument.
2282 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2283 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2284 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2285 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2286 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2287 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2288 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2289 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2290 (m68k_cannot_force_const_mem): ...this new function.
2291 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2292 argument.
2293 (mips_const_insns, mips_legitimize_const_move): Update calls.
2294 (mips_secondary_reload_class): Likewise.
2295 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2296 (pa_cannot_force_const_mem): ...this new function.
2297 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2298 (rs6000_cannot_force_const_mem): ...this new function.
2299 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2300 argument.
2301 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2302 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2303 to...
2304 (xtensa_cannot_force_const_mem): ...this new function.
2305
2306 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2307
2308 * config/mips/mips.c (mips16_build_function_stub): Call
2309 build_function_type_list instead of build_function_type.
2310 (mips16_build_call_stub): Likewise.
2311
2312 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2313
2314 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2315 instead of build_function_type.
2316
2317 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2318
2319 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2320 instead of build_function_type.
2321
2322 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2323
2324 PR target/48678
2325 * config/i386/i386.md (insv): Change operand 0 constraint to
2326 "register_operand". Change operand 1 and 2 constraint to
2327 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2328 * config/i386/sse.md (sse4_1_pinsrb): Export.
2329 (sse2_pinsrw): Ditto.
2330 (sse4_1_pinsrd): Ditto.
2331 (sse4_1_pinsrq): Ditto.
2332 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2333 * config/i386/i386.c (ix86_expand_pinsr): New.
2334
2335 2011-04-20 Easwaran Raman <eraman@google.com>
2336
2337 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2338 containing union type only with -fstrict-aliasing.
2339
2340 2011-04-20 Jim Meyering <meyering@redhat.com>
2341
2342 Remove useless if-before-free tests.
2343 * calls.c (expand_call, save_area): Likewise.
2344 * cfgcleanup.c (try_forward_edges): Likewise.
2345 * collect2.c (collect_execute): Likewise.
2346 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2347 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2348 * coverage.c (coverage_checksum_string): Likewise.
2349 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2350 * cselib.c (cselib_init): Likewise.
2351 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2352 (df_set_clean_cfg): Likewise.
2353 * function.c (free_after_compilation): Likewise.
2354 * gcc.c (do_spec_1, main): Likewise.
2355 * gcov.c (create_file_names): Likewise.
2356 * gensupport.c (identify_predicable_attribute): Likewise.
2357 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2358 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2359 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2360 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2361 * ipa-pure-const.c (local_pure_const): Likewise.
2362 * ipa-reference.c (propagate): Likewise.
2363 * ira-costs.c (free_ira_costs): Likewise.
2364 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2365 * matrix-reorg.c (mat_free): Likewise.
2366 * prefix.c (get_key_value): Likewise.
2367 * profile.c (compute_value_histograms): Likewise.
2368 * reload1.c (free_reg_equiv): Likewise.
2369 * sched-deps.c (free_deps): Likewise.
2370 * sel-sched-ir.c (fence_clear): Likewise.
2371 * sese.c (set_rename, if_region_set_false_region): Likewise.
2372 * tree-data-ref.c (free_rdg): Likewise.
2373 * tree-eh.c (lower_try_finally): Likewise.
2374 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2375 * tree-ssa-live.c (delete_var_map): Likewise.
2376 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2377 * tree-ssa-pre.c (phi_trans_add): Likewise.
2378
2379 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2380
2381 PR tree-optimization/48611
2382 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2383 beyond ERT_MUST_NOT_THROW region.
2384
2385 2011-04-20 Catherine Moore <clm@codesourcery.com>
2386
2387 * config/mips/mips.opt (mfix-24k): New.
2388 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2389 * config/mips/mips.md (length): Increase by 4 for stores if
2390 fixing 24K errata.
2391 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2392 all noreorder if fixing 24K errata.
2393 * doc/invoke.texi: Document mfix-24k.
2394
2395 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2396
2397 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2398 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2399
2400 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2401
2402 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2403 (const_ok_for_op): ... to here.
2404
2405 2011-04-20 Kai Tietz <ktietz@redhat.com>
2406
2407 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2408 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2409
2410 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2411
2412 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2413
2414 2011-04-20 Richard Guenther <rguenther@suse.de>
2415
2416 PR tree-optimization/47892
2417 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2418 are if-convertible.
2419
2420 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2421
2422 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2423
2424 2011-04-20 Tristan Gingold <gingold@adacore.com>
2425
2426 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2427
2428 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2429
2430 PR target/18145
2431
2432 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2433 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2434 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2435 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2436 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2437
2438 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2439 New prototype.
2440
2441 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2442 (avr_asm_named_section, avr_asm_output_aligned_common,
2443 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2444 New functions to update...
2445 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2446 (avr_asm_init_sections): Overwrite section callbacks for
2447 data_section, bss_section.
2448 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2449 from here to...
2450 (avr_file_end): ...here.
2451
2452 2011-04-20 Richard Guenther <rguenther@suse.de>
2453
2454 PR middle-end/48695
2455 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2456 objects and types here. Adjust for their offset before comparing.
2457
2458 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2459
2460 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2461 statement per copy.
2462
2463 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2464
2465 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2466 (GIMPLE_H): Include $(INTERNAL_FN_H).
2467 (OBJS-common): Add internal-fn.o.
2468 (internal-fn.o): New rule.
2469 * internal-fn.def: New file.
2470 * internal-fn.h: Likewise.
2471 * internal-fn.c: Likewise.
2472 * gimple.h: Include internal-fn.h.
2473 (GF_CALL_INTERNAL): New gf_mask.
2474 (gimple_statement_call): Put fntype into a union with a new
2475 internal_fn field.
2476 (gimple_build_call_internal): Declare.
2477 (gimple_build_call_internal_vec): Likewise.
2478 (gimple_call_same_target_p): Likewise.
2479 (gimple_call_internal_p): New function.
2480 (gimple_call_internal_fn): Likewise.
2481 (gimple_call_fntype): Return null for internal calls.
2482 (gimple_call_set_fntype): Assert that the function is not internal.
2483 (gimple_call_set_fn): Likewise.
2484 (gimple_call_set_fndecl): Likewise.
2485 (gimple_call_set_internal_fn): New function.
2486 (gimple_call_addr_fndecl): Handle null functions.
2487 (gimple_call_return_type): Likewise null types.
2488 * gimple.c (gimple_build_call_internal_1): New function.
2489 (gimple_build_call_internal): Likewise.
2490 (gimple_build_call_internal_vec): Likewise.
2491 (gimple_call_same_target_p): Likewise.
2492 (gimple_call_flags): Handle calls to internal functions.
2493 (gimple_call_fnspec): New function.
2494 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2495 (gimple_has_side_effects): Handle null functions.
2496 (gimple_rhs_has_side_effects): Likewise.
2497 (gimple_call_copy_skip_args): Handle calls to internal functions.
2498 * cfgexpand.c (expand_call_stmt): Likewise.
2499 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2500 * gimple-fold.c (gimple_fold_call): Handle null functions.
2501 (gimple_fold_stmt_to_constant_1): Don't fold
2502 calls to internal functions.
2503 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2504 functions.
2505 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2506 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2507 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2508 (do_warn_unused_result): Likewise.
2509 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2510 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2511 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2512 the target of a call.
2513 (initialize_hash_element): Update accordingly.
2514 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2515 (iterative_hash_hashable_expr): Handle calls to internal functions.
2516 (print_expr_hash_elt): Likewise.
2517 * tree-ssa-pre.c (can_value_number_call): Likewise.
2518 (eliminate): Handle null functions.
2519 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2520 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2521 (find_func_aliases): Likewise.
2522 * value-prof.c (gimple_ic_transform): Likewise.
2523 (gimple_indirect_call_to_profile): Likewise.
2524 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2525 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2526
2527 2011-04-19 Jan Hubicka <jh@suse.cz>
2528
2529 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2530 * ipa-inline.c (inline_small_functions): Compute summaries first,
2531 populate heap later.
2532
2533 2011-04-19 Jan Hubicka <jh@suse.cz>
2534
2535 * cgraph.h (save_inline_function_body): Remove.
2536 * ipa-inline-transform.c: New file, broke out of...
2537 * ipa-inline.c: ... this one; Update toplevel comment.
2538 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2539 make global.
2540 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2541 (cgraph_mark_inline_edge): Rename to inline_call; move to
2542 ipa-inline-transform.c.
2543 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2544 move to ipa-inline-transform.c
2545 (recursive_inlining, inline_small_functions, flatten_function,
2546 ipa_inline, inline_always_inline_functions,
2547 early_inline_small_functions): Update.
2548 (inline_transform): Move to ipa-inline-transform.c.
2549 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2550 Declare.
2551 * Makefile.in (ipa-inline-transform.o): New file.
2552 * cgraphunit.c (save_inline_function_body): Move to
2553 ipa-inline-transform.c
2554
2555 2011-04-19 DJ Delorie <dj@redhat.com>
2556
2557 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2558 registers if we already know there aren't any.
2559 (m32c_emit_epilogue): Don't emit a barrier here.
2560 (m32c_emit_eh_epilogue): Likewise.
2561 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2562 operands at expand time.
2563 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2564 int" wchar type.
2565 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2566 duplicates. Provide aliases instead.
2567 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2568 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2569 the compiler.
2570
2571 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2572
2573 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2574 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2575 (general_or_i64_p, sparc_register_move_cost): New function.
2576
2577 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2578
2579 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2580 Add lynx, mipssde. Sort table.
2581
2582 2011-04-19 Xinliang David Li <davidxl@google.com>
2583
2584 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2585 not negative.
2586
2587 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2588
2589 PR target/48678
2590 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2591 is a SUBREG with non-MODE_INT mode inside of it.
2592
2593 2011-04-19 Martin Jambor <mjambor@suse.cz>
2594
2595 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2596 also according to actual contants.
2597 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2598 (gimple_fold_call): Use it.
2599 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2600
2601 2011-04-19 Martin Jambor <mjambor@suse.cz>
2602
2603 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2604 non-pointer assignments.
2605
2606 2011-04-19 Martin Jambor <mjambor@suse.cz>
2607
2608 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2609 account anc_offset and otr_type from the indirect edge info.
2610 * ipa-prop.c (get_ancestor_addr_info): New function.
2611 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2612 get_ancestor_addr_info, call it.
2613 (ipa_note_param_call): Do not initialize information about polymorphic
2614 calls, return the indirect call graph edge. Remove the last
2615 parameter, adjust all callers.
2616 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2617 parameters. Initialize polymorphic information in the indirect edge.
2618
2619 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2620
2621 PR lto/48148
2622 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2623 the types if they have different enumeration identifiers.
2624
2625 2011-04-19 Jan Hubicka <jh@suse.cz>
2626
2627 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2628 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2629 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2630 (optimize_function_for_size_p) ... here.
2631
2632 2011-04-19 Richard Guenther <rguenther@suse.de>
2633
2634 PR lto/48207
2635 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2636 langhook.
2637
2638 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2639
2640 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2641 if DECL_NO_INLINE_WARNING_P is set on the function.
2642
2643 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2644
2645 PR fortran/47976
2646 * reload1.c (inc_for_reload): Return void. All callers changed.
2647 (emit_input_reload_insns): Don't try to delete previous output
2648 reloads to a register, or record spill_reg_store for autoincs.
2649
2650 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2651
2652 * gengtype.h: Updated copyright year.
2653 (struct input_file_st): Add inpisplugin field.
2654 (type_fileloc): New function.
2655 * gengtype.c
2656 (write_typed_struct_alloc_def): Add gcc_assert.
2657 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2658 (write_typed_alloc_defns): Don't output for plugin files.
2659 (input_file_by_name): Clear inpisplugin field.
2660 (main): Set inpisplugin field for plugin files.
2661
2662 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2663
2664 * gengtype-state.c (string_eq): New.
2665 (read_state): Use string_eq instead of strcmp when creating the
2666 state_ident_tab.
2667
2668 2011-04-19 Wei Guozhi <carrot@google.com>
2669
2670 PR target/47855
2671 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2672 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2673 linkage.
2674 * config/arm/constraints.md (Uu): New constraint.
2675 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2676
2677 2011-04-19 Tristan Gingold <gingold@adacore.com>
2678
2679 * config.gcc (-*-*-*vms): Added.
2680 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2681 definitions moved.
2682 * config/vms/vms-ld.c: New file.
2683 * config/vms/vms-ar.c: New file.
2684 * config/vms/t-vmsnative: New file.
2685
2686 2011-04-18 Xinliang David Li <davidxl@google.com>
2687
2688 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2689
2690 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR middle-end/48661
2693 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2694 if TREE_TYPE (v) is non-NULL.
2695
2696 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2697 gimple_get_virt_mehtod_for_binfo.
2698 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2699 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2700 callers.
2701 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2702
2703 2011-04-18 Michael Matz <matz@suse.de>
2704 Steve Ellcey <sje@cup.hp.com>
2705
2706 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2707 use its mode as source mode if it isn't VOIDmode.
2708
2709 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2710
2711 * doc/passes.texi: Fill crossref nodes.
2712
2713 2011-04-18 Jim Meyering <meyering@redhat.com>
2714
2715 Fix doubled-word typos in comments and strings
2716 * config/alpha/vms-unwind.h: s/for for/for/
2717 * config/arm/unwind-arm.h: Likewise.
2718 * config/microblaze/microblaze.c: Likewise.
2719 * config/sh/constraints.md: s/in in/in/
2720 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2721
2722 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2723
2724 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2725 (AVX_FLOAT_MODE_P): Ditto.
2726 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2727 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2728 (AVX_VEC_FLOAT_MODE_P): Ditto.
2729 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2730 (UNSPEC_MASKSTORE): Ditto.
2731 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2732 Merge from <sse>_movmsk<ssemodesuffix> and
2733 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2734 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2735 iterator.
2736 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2737 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2738 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2739
2740 2011-04-18 Jan Hubicka <jh@suse.cz>
2741
2742 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2743
2744 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2745 (want_inline_function_called_once_p): Break out the logic from
2746 ipa_inline.
2747 (edge_badness): Ensure that profile is not misupdated.
2748 (lookup_recursive_calls): Prioritize by call frequencies.
2749 (inline_small_functions): Move program size estimates here;
2750 actually process whole queue even when unit growth has been
2751 met. (to properly compute inline_failed reasons and for the
2752 case unit size decrease.) Revisit comments on recursive inlining.
2753 (ipa_inline): Remove unit summary code; first inline hot calls
2754 of functions called once, cold calls next.
2755 (order, nnodes): Remove unused variables.
2756 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2757 (GTFILES): Remove ipa-inline.c
2758 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2759
2760 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2761
2762 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2763
2764 2011-04-18 Jie Zhang <jie@codesourcery.com>
2765 Richard Earnshaw <rearnsha@arm.com>
2766
2767 * arm.c (neon_builtin_type_bits): Remove.
2768 (typedef enum neon_builtin_mode): New.
2769 (T_MAX): Don't define.
2770 (typedef enum neon_builtin_datum): Remove bits, codes[],
2771 num_vars and base_fcode. Add mode, code and fcode.
2772 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2773 VAR10): Change accordingly.
2774 (neon_builtin_data[]): Change accordingly
2775 (arm_init_neon_builtins): Change accordingly.
2776 (neon_builtin_compare): Remove.
2777 (locate_neon_builtin_icode): Remove.
2778 (arm_expand_neon_builtin): Change accordingly.
2779
2780 * arm.h (enum arm_builtins): Move to ...
2781 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2782
2783 * arm.c (arm_builtin_decl): Declare.
2784 (TARGET_BUILTIN_DECL): Define.
2785 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2786 (arm_builtin_decls[]): New.
2787 (arm_init_neon_builtins): Store builtin declarations in
2788 arm_builtin_decls[].
2789 (arm_init_tls_builtins): Likewise.
2790 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2791 (arm_builtin_decl): New.
2792
2793 2011-04-18 Richard Guenther <rguenther@suse.de>
2794
2795 * tree.c (upper_bound_in_type): Build properly canonicalized
2796 INTEGER_CSTs.
2797 (lower_bound_in_type): Likewise.
2798
2799 2011-04-18 Richard Guenther <rguenther@suse.de>
2800
2801 * gimple.h (gimple_call_addr_fndecl): New function.
2802 (gimple_call_fndecl): Use it.
2803 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2804 for direct calls.
2805 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2806 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2807
2808 2011-04-18 Richard Guenther <rguenther@suse.de>
2809
2810 PR middle-end/48650
2811 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2812
2813 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2814
2815 PR lto/48492
2816 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2817 DECL_IN_CONSTANT_POOL without RTL.
2818
2819 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2820 Ira Rosen <ira.rosen@linaro.org>
2821
2822 PR target/48252
2823 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2824 to match neon_vzip/vuzp/vtrn_internal.
2825 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2826 outputs explicitly dependent on both inputs.
2827 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2828
2829 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2830
2831 PR tree-optimization/48616
2832 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2833 whether the shift is by scalar or vector based on whether all SLP
2834 scalar stmts have the same rhs.
2835
2836 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2837
2838 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2839 memory operands.
2840
2841 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2842
2843 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2844 registers.
2845
2846 2011-04-17 Jan Hubicka <jh@suse.cz>
2847
2848 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2849 * cgrpahunit.c (cgraph_finalize_function): Do not set
2850 finalized_by_frontend.
2851 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2852 finalized_by_frontend.
2853
2854 2011-04-17 Jan Hubicka <jh@suse.cz>
2855
2856 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2857 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2858 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2859 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2860 method.
2861 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2862 gimple-fold.c
2863 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2864
2865 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2866
2867 PR lto/48538
2868 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2869 is non-null before accessing it.
2870 (input_cgraph): Remove trailing spaces.
2871
2872 2011-04-17 Revital Eres <revital.eres@linaro.org>
2873
2874 * params.def (sms-min-sc): New param flag.
2875 * modulo-sched.c (sms_schedule): Use it.
2876 * doc/invoke.texi (sms-min-sc): Document it.
2877
2878 2011-04-17 Jan Hubicka <jh@suse.cz>
2879
2880 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2881 present, also set gimple_call_set_cannot_inline.
2882 * ipa-inline.c: Update toplevel comment.
2883 (MAX_TIME): Remove.
2884 (cgraph_clone_inlined_nodes): Fix linebreaks.
2885 (cgraph_check_inline_limits): Restructure to ...
2886 (caller_growth_limits): ... this one; be more tolerant
2887 on growth in nested inline chains; add explanatory comment;
2888 fix stack accounting thinko introduced by previous patch.
2889 (cgraph_default_inline_p): Remove.
2890 (report_inline_failed_reason): New function.
2891 (can_inline_edge_p): New function.
2892 (can_early_inline_edge_p): New function.
2893 (leaf_node_p): Move upwards in file.
2894 (want_early_inline_function_p): New function.
2895 (want_inline_small_function_p): New function.
2896 (want_inline_self_recursive_call_p): New function.
2897 (cgraph_edge_badness): Rename to ...
2898 (edge_badness) ... this one; fix linebreaks.
2899 (update_edge_key): Update call of edge_baddness; add
2900 detailed dump about queue updates.
2901 (update_caller_keys): Use can_inline_edge_p and
2902 want_inline_small_function_p.
2903 (cgraph_decide_recursive_inlining): Rename to...
2904 (recursive_inlining): Use can_inline_edge_p and
2905 want_inline_self_recursive_call_p; simplify and remove no longer
2906 valid FIXME.
2907 (cgraph_set_inline_failed): Remove.
2908 (add_new_edges_to_heap): Use can_inline_edge_p and
2909 want_inline_small_function_p.
2910 (cgraph_decide_inlining_of_small_functions): Rename to ...
2911 (inline_small_functions): ... this one; cleanup; use
2912 can/want predicates; cleanup debug ouput; work edges till fibheap
2913 is exhausted and do not stop once unit growth is reached; remove
2914 later loop processing remaining edges.
2915 (cgraph_flatten): Rename to ...
2916 (flatten_function): ... this one; use can_inline_edge_p
2917 and can_early_inline_edge_p predicates.
2918 (cgraph_decide_inlining): Rename to ...
2919 (ipa_inline): ... this one; remove unreachable nodes before
2920 inlining functions called once; simplify the pass.
2921 (cgraph_perform_always_inlining): Rename to ...
2922 (inline_always_inline_functions): ... this one; use
2923 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2924 (cgraph_decide_inlining_incrementally): Rename to ...
2925 (early_inline_small_functions): ... this one; simplify
2926 using new predicates; cleanup; make dumps prettier.
2927 (cgraph_early_inlining): Rename to ...
2928 (early_inliner): newer inline regular functions into always-inlines;
2929 fix updating of call stmt summaries.
2930 (pass_early_inline): Update for new names.
2931 (inline_transform): Fix formating.
2932 (gate_cgraph_decide_inlining): Rename to ...
2933 (pass_ipa_inline): ... this one.
2934 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2935 * ipa-inline-analysis.c (dump_inline_summary): Update.
2936 (compute_inline_parameters): Do not compute disregard_inline_limits;
2937 look for mismatching arguments.
2938 (estimate_growth): Fix handlig of non-trivial self recursion.
2939 (inline_read_summary): Do not read info->disregard_inline_limits.
2940 (inline_write_summary): Do not write info->disregard_inline_limits.
2941 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2942 and move all checks into can_inline_edge_p predicate; re-enable code
2943 comparing optimization levels.
2944 (expand_call_inline): Do not test inline_forbidden_into_p.
2945 * Makefile.in (ipa-inline.o): Update arguments.
2946
2947 2011-04-17 Revital Eres <revital.eres@linaro.org>
2948
2949 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2950
2951 2011-04-17 Revital Eres <revital.eres@linaro.org>
2952
2953 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2954
2955 2011-04-17 Michael Matz <matz@suse.de>
2956
2957 PR tree-optimization/48622
2958 PR lto/48645
2959 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2960 in same order as they're written.
2961
2962 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2963
2964 * config/pa/predicates.md: Reorganize and simplify predicates.
2965 Eliminate duplicate code checks.
2966 (arith_operand): Rename to arith14_operand
2967 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2968 * config/pa/pa.md: Use renamed operands.
2969 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2970 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2971 arith11_operand, adddi3_operand, indexed_memory_operand,
2972 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2973 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2974 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2975 move_dest_operand, move_src_operand, prefetch_cc_operand,
2976 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2977 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2978 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2979 div_operand, int5_operand, movb_comparison_operator,
2980 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2981 arith_double_operand, ireg_operand, lhs_lshift_operand,
2982 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2983 integer_store_memory_operand): Likewise.
2984 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2985 (integer_store_memory_operand, read_only_operand,
2986 function_label_operand, borx_reg_operand,
2987 non_hard_reg_operand): Likewise.
2988 (eq_neq_comparison_operator): Delete unused operator.
2989 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2990 function_label_operand.
2991 (emit_move_sequence): Likewise.
2992
2993 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2994
2995 * config/i386/sse.md (sseunpackmode): New mode attribute.
2996 (ssepackmode): Ditto.
2997 (vec_pack_trunc_<mode>): Macroize expander from
2998 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2999 (vec_unpacks_lo_<mode>): Macroize expander from
3000 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3001 (vec_unpacks_hi_<mode>): Macroize expander from
3002 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3003 (vec_unpacku_lo_<mode>): Macroize expander from
3004 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3005 (vec_unpacku_hi_<mode>): Macroize expander from
3006 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3007 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3008 ix86_expand_sse4_unpack.
3009 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3010
3011 2011-04-16 Jan Hubicka <jh@suse.cz>
3012
3013 * cgraphbuild.c: Include ipa-inline.h.
3014 (reset_inline_failed): Use initialize_inline_failed.
3015 * cgraph.c: Include ipa-inline.h.
3016 (cgraph_create_node_1): Do not initialize estimated_growth.
3017 (initialize_inline_failed): More to ipa-inline-analysis.c
3018 (dump_cgraph_node): Do not dump inline flags.
3019 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3020 and disregard_inline_limits flags.
3021 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3022 time, size, estimated_growth.
3023 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3024 Update.
3025 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3026 DECL_DISREGARD_INLINE_LIMITS.
3027 (cgraph_analyze_function): Do not initialize
3028 node->local.disregard_inline_limits.
3029 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3030 inlinable, versionable and disregard_inline_limits.
3031 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3032 cgraph_check_inline_limits, cgraph_default_inline_p,
3033 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3034 add_new_edges_to_heap): Update.
3035 (cgraph_decide_inlining_of_small_function): Update; set
3036 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3037 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3038 cgraph_decide_inlining_incrementally): Update.
3039 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3040 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3041 time, size and estimated_growth parameters.
3042 (estimate_edge_growth): Update.
3043 (initialize_inline_failed): Declare.
3044 * ipa-split.c: Include ipa-inline.h
3045 (execute_split_functions): Update.
3046 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3047 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3048 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3049 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3050 estimated_growth to INT_MIN.
3051 (inline_node_duplication_hook): Likewise.
3052 (dump_inline_summary): Dump new fields.
3053 (compute_inline_parameters): Update.
3054 (estimate_edge_time, estimate_time_after_inlining,
3055 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3056 inline_write_summary):
3057 (initialize_inline_failed): Move here from cgraph.c.
3058 * tree-sra.c: Include ipa-inline.h.
3059 (ipa_sra_preliminary_function_checks): Update.
3060 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3061 ipa-inline.h.
3062
3063 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3064
3065 * config/i386/sse.md (V16): New mode iterator.
3066 (VI1, VI8): Ditto.
3067 (AVXMODEQI, AVXMODEDI): Remove.
3068 (sse2, sse3): New mode attribute.
3069 (mov<mode>): Use V16 mode iterator.
3070 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3071 (push<mode>1): Use V16 mode iterator.
3072 (movmisalign<mode>): Ditto.
3073 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3074 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3075 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3076 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3077 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3078 avx_movdqu<avxmodesuffix>.
3079 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3080 *avx_movdqu<avxmodesuffix>.
3081 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3082 avx_lddqu<avxmodesuffix>.
3083 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3084 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3085 avx_movnt<AVXMODEDI:mode>.
3086 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3087 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3088
3089 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3090
3091 PR target/48629
3092 * haifa-sched.c (prune_ready_list, schedule_block): Use
3093 sched_pressure_p rather than flag_sched_pressure.
3094
3095 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3096
3097 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3098 cgraph_get_node instead of cgraph_get_create_node.
3099
3100 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3101
3102 * cfgexpand.c (expand_debug_expr): Use
3103 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3104
3105 2011-04-15 Michael Matz <matz@suse.de>
3106
3107 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3108 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3109 * function.c (gimplify_parameters): Ditto.
3110 * gimplify.c (gimplify_vla_decl): Ditto.
3111
3112 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3113 (gimple_call_set_alloca_for_var): New inline function.
3114 (gimple_call_alloca_for_var_p): Ditto.
3115 * gimple.c (gimple_build_call_from_tree): Remember
3116 CALL_ALLOCA_FOR_VAR_P state.
3117 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3118
3119 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3120 calls if they were for VLA objects.
3121
3122 2011-04-15 Martin Jambor <mjambor@suse.cz>
3123
3124 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3125 of ADR_EXPRs.
3126
3127 2011-04-15 Martin Jambor <mjambor@suse.cz>
3128
3129 PR middle-end/48601
3130 * tree-emutls.c (lower_emutls_function_body): Call
3131 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3132 result is non-NULL.
3133
3134 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3135
3136 * c-decl.c (detect_field_duplicates): Call
3137 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3138
3139 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3140
3141 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3142 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3143 * ipa-pure-const.c (check_stmt): Call it.
3144 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3145
3146 2011-04-15 Richard Guenther <rguenther@suse.de>
3147
3148 PR tree-optimization/48290
3149 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3150 Properly decide inhibiting propagation based on the valueized
3151 operand. Do loop-closed SSA form preserving here ...
3152 (init_copy_prop): ... not here.
3153
3154 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3155
3156 PR target/48612
3157 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3158 (*ieee_smax<mode>3): Likewise.
3159
3160 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3161
3162 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3163 Replace match_operand with match_dup for the third operand in
3164 these expanders.
3165
3166 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3167
3168 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3169 to track processing of conditionals. Update all callers.
3170 (try_combine, simplify_if_then_else): Update.
3171
3172 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3173
3174 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3175 -fsched-pressure.
3176
3177 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3178
3179 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3180 instead of match_operand for operand 3.
3181
3182 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3183
3184 * recog.h (insn_operand_data): Add an "allows_mem" field.
3185 * genoutput.c (output_operand_data): Initialize it.
3186 * optabs.c (maybe_legitimize_operand_same_code): New function.
3187 (maybe_legitimize_operand): Use it when matching the original
3188 op->value.
3189
3190 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3191
3192 * gimplify.c: Fix issues in comments throughout.
3193 (voidify_wrapper_expr): Fix long line.
3194 (build_stack_save_restore): Likewise.
3195 (gimplify_loop_expr): Likewise.
3196 (gimplify_compound_lval): Likewise.
3197 (gimplify_init_ctor_eval): Likewise.
3198 (gimplify_modify_expr_rhs): Likewise.
3199 (omp_notice_threadprivate_variable): Likewise.
3200
3201 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3202
3203 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3204 original one if this is not a builtin function.
3205
3206 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3207
3208 PR target/48605
3209 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3210 offset it as needed based on top 2 bits in operands[3], change
3211 MEM mode to SFmode and mask those 2 bits away from operands[3].
3212
3213 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3214
3215 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3216 change from objc_declare_protocols() to objc_declare_protocol().
3217
3218 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3219
3220 * config/i386/sse.md (sse4_1): New mode attribute.
3221 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3222 avx_blend<ssemodesuffix><avxmodesuffix> and
3223 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3224 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3225 avx_blendv<ssemodesuffix><avxmodesuffix> and
3226 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3227 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3228 avx_dp<ssemodesuffix><avxmodesuffix> and
3229 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3230 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3231 (sse4_1_packusdw): Merge with *avx_packusdw.
3232 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3233 (sse4_1_pblendw): Merge with *avx_pblendw.
3234 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3235 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3236 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3237 VF mode iterator.
3238 (sse4_1_round<ssescalarmodesuffix>): Merge with
3239 *avx_round<ssescalarmodesuffix>.
3240 (aesenc): Merge with *avx_aesenc.
3241 (aesenclast): Merge with *avx_aesenclast.
3242 (aesdec): Merge with *avx_aesdec.
3243 (aesdeclast): Merge with *avx_aesdeclast.
3244 (pclmulqdq): Merge with *pclmulqdq.
3245 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3246 New predicate.
3247 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3248
3249 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3250
3251 PR middle-end/48608
3252 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3253 (align_local_variable): This. Update DECL_ALIGN.
3254 (add_stack_var): Updated.
3255 (expand_one_stack_var): Likewise.
3256
3257 2011-04-14 Richard Guenther <rguenther@suse.de>
3258
3259 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3260 Remove.
3261 (dse_initialize_block_local_data, dse_leave_block,
3262 record_voperand_set, get_stmt_uid): Likewise.
3263 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3264 (dse_optimize_stmt): Remove voperand set handling code.
3265 Simplify and improve to handle any kind of killing stmt.
3266 (dse_record_phi): Remove.
3267 (dse_enter_block): Simplify.
3268 (tree_ssa_dse): Likewise.
3269 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3270
3271 2011-04-14 Jan Hubicka <jh@suse.cz>
3272
3273 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3274 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3275 (cgraph_local_info): Remove inline_summary.
3276 * ipa-cp.c: Include ipa-inline.h.
3277 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3278 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3279 accesor.
3280 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3281 (input_overwrite_node): Do not set inline summary.
3282 (input_node): Do not stream inline summary.
3283 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3284 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3285 growth; we do not have inline parameters computed for that anyway.
3286 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3287 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3288 (inline_summary_t): New type and VECtor.
3289 (debug_inline_summary, dump_inline_summaries): Declare.
3290 (inline_summary): Use VOCtor.
3291 (estimate_edge_growth): Kill hack computing call stmt size directly.
3292 * lto-section-in.c (lto_section_name): Add inline section.
3293 * ipa-inline-analysis.c: Include lto-streamer.h
3294 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3295 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3296 (inline_summary_vec): Define.
3297 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3298 dump_inline_summaries): New functions.
3299 (estimate_function_body_sizes): Properly compute size/time of outgoing
3300 calls.
3301 (compute_inline_parameters): Alloc inline_summary; do not compute
3302 size/time of incomming calls.
3303 (estimate_edge_time): Avoid missing time summary hack.
3304 (inline_read_summary): Read inline summary info.
3305 (inline_write_summary): Write inline summary info.
3306 (inline_free_summary): Free all hooks and inline summary vector.
3307 * lto-streamer.h: Add LTO_section_inline_summary section.
3308 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3309 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3310
3311 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3312
3313 * tree-vectorizer.h (vect_strided_store_supported): Add a
3314 HOST_WIDE_INT argument.
3315 (vect_strided_load_supported): Likewise.
3316 (vect_permute_store_chain): Return void.
3317 (vect_transform_strided_load): Likewise.
3318 (vect_permute_load_chain): Delete.
3319 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3320 count argument. Check that the count is a power of two.
3321 (vect_strided_load_supported): Likewise.
3322 (vect_permute_store_chain): Return void. Update after above changes.
3323 Assert that the access is supported.
3324 (vect_permute_load_chain): Likewise.
3325 (vect_transform_strided_load): Return void.
3326 * tree-vect-stmts.c (vectorizable_store): Update calls after
3327 above interface changes.
3328 (vectorizable_load): Likewise.
3329 (vect_analyze_stmt): Don't check for strided powers of two here.
3330
3331 2011-04-14 Richard Guenther <rguenther@suse.de>
3332
3333 PR tree-optimization/48590
3334 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3335 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3336 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3337 BUILT_IN_STACK_SAVE.
3338 * tree-ssa-dce.c (propagate_necessity): Handle
3339 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3340
3341 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3342
3343 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3344 objc_declare_class.
3345
3346 2011-04-14 Richard Guenther <rguenther@suse.de>
3347
3348 * tree.h (get_object_alignment_1): Declare.
3349 * builtins.c (get_object_alignment_1): Split out worker from ...
3350 (get_object_alignment): ... here.
3351 * fold-const.c (get_pointer_modulus_and_residue): Use
3352 get_object_alignment_1.
3353
3354 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3355
3356 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3357 type parameter.
3358 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3359 parameter. Generalise code to handle arrays as well as vectors.
3360 (vect_setup_realignment): Update accordingly.
3361 * tree-vect-stmts.c (vectorizable_store): Likewise.
3362 (vectorizable_load): Likewise.
3363
3364 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3365
3366 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3367 within the per-copy loop.
3368
3369 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3370
3371 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3372 in the dump file.
3373
3374 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3375
3376 * doc/options.texi (Negative): Explicitly mention that the
3377 Negative chain must be circular.
3378
3379 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3380
3381 * function.h (block_chainon): Declare.
3382 * function.c (block_chainon): Define.
3383
3384 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3385 Eric Weddington <eric.weddington@atmel.com>
3386 Georg-Johann Lay <avr@gjlay.de>
3387
3388 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3389 New Includes
3390 (avr_init_builtins, avr_expand_builtin,
3391 avr_expand_delay_cycles, avr_expand_unop_builtin,
3392 avr_expand_binop_builtin ): New functions.
3393 (avr_builtin_id): New enum
3394 (struct avr_builtin_description): New struct
3395 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3396 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3397
3398 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3399 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3400 UNSPECV_DELAY_CYCLES): new enumeration values
3401 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3402 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3403 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3404 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3405 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3406 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3407 "fmulsu"): New insns
3408
3409 * config/avr/avr-c.c: fix line endings
3410 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3411 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3412 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3413 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3414 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3415
3416 * doc/extend.texi (AVR Built-in Functions): New node
3417 (Target Builtins): Add documentation of AVR
3418 built-in functions.
3419
3420 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3421
3422 PR target/44643
3423 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3424 alone. Error if non-const data has attribute progmem.
3425
3426 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3427
3428 * tree.h (struct tree_constructor): Include tree_typed instead of
3429 tree_common.
3430 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3431 TS_TYPED instead of TS_COMMON.
3432
3433 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3434
3435 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3436 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3437 (sse2_psadbw): Merge with *avx_psadbw.
3438 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3439 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3440 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3441 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3442 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3443 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3444 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3445 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3446 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3447 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3448 (ssse3_palignrti): Merge with *avx_palignrti.
3449
3450 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3451
3452 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3453 * tree-ssanames.c (fini_ssanames): VEC_free it.
3454 (make_ssa_name_fn): Update for VECness of free_ssanames.
3455 (release_ssa_name, release_dead_ssa_names): Likewise.
3456 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3457 tree_common.
3458 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3459 TS_TYPED instead of TS_COMMON.
3460
3461 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3462
3463 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3464 statistics_counter_event.
3465 * tree-ssa-copyrename.c (stats): Define.
3466 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3467 statistics_counter_event.
3468 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3469 (bswap_stats, widen_mul_stats): Define.
3470 (insert_reciprocals): Increment rdivs_inserted.
3471 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3472 rfuncs_inserted. Add calls to statistics_counter_event.
3473 (execute_cse_sincos_1): Increment inserted.
3474 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3475 statistics_counter_event.
3476 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3477 of bswap_stats. Add calls to statistics_counter_event.
3478 (convert_mult_to_widen): Increment widen_mults_inserted.
3479 (convert_plusminus_to_widen): Increment maccs_inserted.
3480 (convert_mult_to_fma): Increment fmas_inserted.
3481 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3482 calls to statistics_counter_event.
3483
3484 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3485
3486 PR rtl-optimization/48455
3487 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3488 `temp_costs->mem_cost'.
3489
3490 2011-04-13 Jan Hubicka <jh@suse.cz>
3491
3492 * ipa-inline.h: New file.
3493 * ipa-inline-analysis.c: New file. Broken out of ...
3494 * ipa-inline.c: ... this file; update toplevel comment;
3495 include ipa-inline.h
3496 (inline_summary): Move to ipa-inline.h
3497 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3498 ipa-inline-analysis.c.
3499 (cgraph_estimate_time_after_inlining): Rename to
3500 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3501 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3502 to estimate_edge_growth.
3503 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3504 rename to estimate_size_after_inlining.
3505 (cgraph_mark_inline_edge): Update for new naming convention.
3506 (cgraph_check_inline_limits): Likewise.
3507 (cgraph_edge_badness): Likewise.
3508 (cgraph_decide_recursive_inlining): Likewise.
3509 (cgraph_decide_inlining_of_small_functions): Likewise.
3510 (cgraph_decide_inlining_incrementally): Likewise.
3511 (cgraph_estimate_growth): Rename to estimate_growth; move to
3512 ipa-inline-analysis.c.
3513 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3514 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3515 (compute_inline_parameters): Likewise.
3516 (compute_inline_parameters_for_current): Likewise.
3517 (pass_inline_parameters): Likewise.
3518 (inline_indirect_intraprocedural_analysis): Likewise.
3519 (analyze_function): Rename to inline_analyze_function; likewise.
3520 (add_new_function): Move to ipa-inline-analysis.c.
3521 (inline_generate_summary): Likewise.
3522 (inline_read_summary): Likewise.
3523 (inline_write_summary): Likewise.
3524 * Makefile.in (ipa-inline-analysis.c): New file.
3525
3526 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3527
3528 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3529 * configure: Regenerate.
3530
3531 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3532
3533 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3534 instead of tree_common.
3535 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3536 Likewise.
3537 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3538 TS_TYPED rather than TS_COMMON.
3539 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3540
3541 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3542
3543 PR target/45263
3544 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3545 r20 around calls of __tablejump_elpm__
3546
3547 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3548
3549 PR middle-end/48591
3550 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3551 NULL.
3552 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3553
3554 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3555
3556 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3557 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3558 (cfi_vec): New typedef.
3559 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3560 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3561 (cie_cfi_vec): New static variable.
3562 (cie_cfi_head): Delete.
3563 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3564 declaration changed. Use vector rather than list operations.
3565 (new_cfi): Don't initialize the dw_cfi_next field.
3566 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3567 rather than list operations.
3568 (lookup_cfa): Use vector rather than list operations.
3569 (output_cfis): New argument upto. Accept a cfi_vec rather than
3570 a dw_cfi_ref list head as argument. All callers changed.
3571 Iterate over the vector using upto as a maximum index.
3572 (output_all_cfis): New static function.
3573 (output_fde): Use vector rather than list operations. Use the
3574 new upto argument for output_cfis rather than manipulating a
3575 list.
3576 (dwarf2out_begin_prologue): Change initializations to match
3577 new struct members.
3578 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3579 from the vector length rather than searching for the end of a list.
3580 Use output_all_cfis.
3581 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3582
3583 2011-04-13 Nick Clifton <nickc@redhat.com>
3584
3585 * config/rx/rx.md (movmemsi): Do not use this pattern when
3586 volatile pointers are involved.
3587
3588 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3589
3590 * config/i386/sse.md (pinsrbits): Remove.
3591 (sse2_packsswb): Merge with *avx_packsswb.
3592 (sse2_packssdw): Merge with *avx_packssdw.
3593 (sse2_packuswb): Merge with *avx_packuswb.
3594 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3595 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3596 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3597 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3598 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3599 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3600 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3601 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3602 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3603 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3604 (sse2_loadld): Merge with *avx_loadld.
3605 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3606 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3607 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3608 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3609 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3610
3611 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3612
3613 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3614 calling TREE_CHAIN.
3615 * print-tree.c (print_node): Likewise.
3616 * tree-inline.c (copy_tree_r): Likewise.
3617 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3618 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3619 instead of TS_COMMON.
3620 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3621 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3622 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3623 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3624 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3625 ...and these...
3626 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3627 * tree.h: ...here.
3628 (TREE_CHAIN): Check for a TS_COMMON structure.
3629 (TREE_TYPE): Check for a TS_TYPED structure.
3630
3631 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3632
3633 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3634 cgraph_get_create_node instead of cgraph_node.
3635
3636 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3637
3638 * c-parser.c (c_parser_initelt): Updated call to
3639 objc_build_message_expr.
3640 (c_parser_postfix_expression): Likewise.
3641
3642 2011-04-12 Kai Tietz <ktietz@redhat.com>
3643
3644 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3645 MASK_MS_BITFIELD_LAYOUT bit.
3646
3647 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3648
3649 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3650 assert it is always true.
3651 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3652 moves.
3653
3654 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3655
3656 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3657 compiling Objective-C to be more efficient.
3658
3659 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3660
3661 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3662 argv_copied.
3663
3664 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3665
3666 * recog.h, genoutput.c, optabs.c: Revert last patch.
3667
3668 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3669
3670 PR target/48090
3671 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3672
3673 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3674
3675 * recog.h (insn_operand_data): Add an "allows_mem" field.
3676 * genoutput.c (output_operand_data): Initialize it.
3677 * optabs.c (maybe_legitimize_operand_same_code): New function.
3678 (maybe_legitimize_operand): Use it when matching the original
3679 op->value.
3680
3681 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3682
3683 * genpreds.c (process_define_predicate): Move most processing
3684 to gensupport.c. Continue to validate the expression.
3685 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3686 (process_define_predicate): Move processing to gensupport.c.
3687 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3688 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3689 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3690 argument.
3691 (valid_predicate_name_p): New function, split out from old
3692 genpreds.c:process_define_predicate.
3693 (process_define_predicate): New function, combining code from
3694 old genpreds.c and genrecog.c functions.
3695 (process_rtx): Call it for DEFINE_PREDICATE and
3696 DEFINE_SPECIAL_PREDICATE.
3697
3698 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3699
3700 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3701 size of a '%A' memory reference.
3702 (T_DREG, T_QREG): New neon_builtin_type_bits.
3703 (arm_init_neon_builtins): Assert that the load and store operands
3704 are neon_struct_operands.
3705 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3706 (NEON_ARG_MEMORY): New builtin_arg.
3707 (neon_dereference_pointer): New function.
3708 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3709 Handle NEON_ARG_MEMORY.
3710 (arm_expand_neon_builtin): Update after above interface changes.
3711 Use NEON_ARG_MEMORY for loads and stores.
3712 * config/arm/predicates.md (neon_struct_operand): New predicate.
3713 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3714 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3715 (V_four_elem): Tweak formatting.
3716 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3717 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3718 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3719 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3720 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3721 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3722 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3723 Use %A in the output template.
3724 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3725 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3726 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3727 the width of the memory access. Remove post-increment.
3728 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3729
3730 2011-04-12 Nick Clifton <nickc@redhat.com>
3731
3732 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3733 instruction for interrupt handlers if the target is the basic V850
3734 architecture.
3735 (expand_epilogue): Likewise.
3736
3737 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3738
3739 PR rtl-optimization/48549
3740 * combine.c (propagate_for_debug): Also stop after BB_END of
3741 this_basic_block. Process LAST and just stop processing after it.
3742 (combine_instructions): If last_combined_insn has been deleted,
3743 set last_combined_insn to its PREV_INSN.
3744
3745 2011-04-12 Richard Guenther <rguenther@suse.de>
3746
3747 PR tree-optimization/46076
3748 * gimple.h (struct gimple_statement_call): Add fntype field.
3749 (gimple_call_fntype): Adjust.
3750 (gimple_call_set_fntype): New function.
3751 * gimple.c (gimple_build_call_1): Set the call function type.
3752 * gimplify.c (gimplify_call_expr): Preserve the function
3753 type the frontend used for the call.
3754 (gimplify_modify_expr): Likewise.
3755 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3756 function type.
3757 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3758 function type.
3759 * tree-ssa.c (useless_type_conversion_p): Function pointer
3760 conversions are useless.
3761
3762 2011-04-12 Martin Jambor <mjambor@suse.cz>
3763
3764 * cgraph.h (cgraph_node): Remove function declaration.
3765 (cgraph_create_node): Declare.
3766 (cgraph_get_create_node): Likewise.
3767 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3768 Updated all callers.
3769 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3770 the decl does not already exist. Call cgraph_get_create_node instead
3771 of cgraph_node.
3772 (cgraph_get_create_node): New function.
3773 (cgraph_same_body_alias): Update comment.
3774 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3775 assert it does not return NULL.
3776 (cgraph_update_edges_for_call_stmt): Likewise.
3777 (cgraph_clone_edge): Likewise.
3778 (cgraph_create_virtual_clone): Likewise.
3779 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3780 instead of cgraph_node.
3781 (cgraph_add_new_function): Call cgraph_create_node or
3782 cgraph_get_create_node instead of cgraph_node.
3783 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3784 instead of cgraph_node.
3785 (record_eh_tables): Likewise.
3786 (mark_address): Likewise.
3787 (mark_load): Likewise.
3788 (build_cgraph_edges): Call cgraph_get_create_node instead
3789 of cgraph_node.
3790 (rebuild_cgraph_edges): Likewise.
3791 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3792 instead of cgraph_node.
3793 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3794 cgraph_node.
3795 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3796 cgraph_create_node instead of cgraph_node.
3797 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3798 of cgraph_node.
3799 * lto-cgraph.c (input_node): Likewise.
3800 * lto-streamer-in.c (input_function): Likewise.
3801 * varasm.c (mark_decl_referenced): Likewise.
3802 (assemble_alias): Likewise.
3803
3804 2011-04-12 Martin Jambor <mjambor@suse.cz>
3805
3806 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3807 instead of cgraph_node and assert it does not return NULL.
3808 * lto-streamer-in.c (lto_read_body): Likewise.
3809 * omp-low.c (new_omp_context): Likewise.
3810 (create_task_copyfn): Likewise.
3811 * tree-emutls.c (lower_emutls_function_body): Likewise.
3812 * matrix-reorg.c (transform_allocation_sites): Likewise.
3813
3814 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3815
3816 PR c/48552
3817 * c-typeck.c (build_asm_expr): Error out on attempts to use
3818 void type outputs or inputs for constraints that allow reg or
3819 don't allow memory.
3820
3821 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3822 Richard Earnshaw <rearnsha@arm.com>
3823
3824 PR target/48250
3825 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3826 to use sign-magnitude offsets. Reject unsupported unaligned
3827 cases. Add detailed description in comments.
3828 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3829 condition from TARGET_32BIT to TARGET_ARM.
3830
3831 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3832
3833 * tree.h (struct typed_tree): New.
3834 (struct tree_common): Include it instead of tree_base.
3835 (TREE_TYPE): Update for new location of type field.
3836 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3837 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3838 (union tree_node): Add typed field.
3839 * treestruct.def (TS_TYPED): New.
3840 * lto-streamer.c (check_handled_ts_structures): Handle it.
3841 * tree.c (MARK_TS_TYPED): New macro.
3842 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3843
3844 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3845
3846 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3847 (force_nonfallthru): Do not alter the loop nest if no basic block
3848 was created.
3849
3850 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3851
3852 * config/i386/sse.md (VI): New mode iterator.
3853 (SSEMODEI): Remove.
3854 (AVX256MODEI): Ditto.
3855 (AVXMODEF4P): Ditto.
3856 (avxvecpsmode): Ditto.
3857 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3858 (sse2_andnot<mode>3): New expander.
3859 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3860 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3861 (<any_logic:code><mode>3): Use VI mode iterator.
3862 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3863 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3864 (*andnottf3): Handle AVX three-operand constraints.
3865 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3866
3867 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3868 Robert Millan <rmh@gnu.org>
3869
3870 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3871 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3872 GNU_USER_DYNAMIC_LINKER64): Define.
3873 (REG_NAME): Don't undefine.
3874 (MD_UNWIND_SUPPORT): Undefine.
3875 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3876 (REG_NAME): Don't undefine.
3877 (MD_UNWIND_SUPPORT): Undefine.
3878 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3879
3880 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3881
3882 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3883 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3884
3885 2011-04-11 Xinliang David Li <davidxl@google.com>
3886
3887 * value-profile.c (check_ic_target): New function.
3888 (gimple_ic_transform): Sanity check indirect call target.
3889 * gimple-low.c (gimple_check_call_args): Interface change.
3890 (gimple_check_call_matching_types): New function.
3891 * tree-inline.c (tree_can_inline_p): Call new function.
3892
3893 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3894
3895 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3896 tree-pretty-print.h & realmpfr.h.
3897
3898 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3899
3900 PR middle-end/48464
3901 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3902 (setup_allocno_and_important_classes): Ditto.
3903
3904 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3905
3906 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3907 GNU_USER_DYNAMIC_LINKER.
3908 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3909 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3910 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3911 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3912 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3913 GNU_USER_TARGET_OS_CPP_BUILTINS.
3914 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3916 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3917 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3918 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3919 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3920 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3921 GNU_USER_TARGET_OS_CPP_BUILTINS.
3922 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3923 GNU_USER_DYNAMIC_LINKER.
3924 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3925 GNU_USER_TARGET_OS_CPP_BUILTINS.
3926 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3927 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3928 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3929 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3930 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3931 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3932 GNU_USER_DYNAMIC_LINKER64): Remove.
3933 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3934 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3935 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3936 GNU_USER_DYNAMIC_LINKER.
3937 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3938 GNU_USER_TARGET_OS_CPP_BUILTINS.
3939 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3940 GNU_USER_TARGET_OS_CPP_BUILTINS.
3941 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3942 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3943 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3944 GNU_USER_TARGET_OS_CPP_BUILTINS.
3945 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3946 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3947 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3948 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3949 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3950 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3951 GNU_USER_DYNAMIC_LINKER.
3952 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3953 GNU_USER_TARGET_OS_CPP_BUILTINS.
3954 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3955 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3956 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3957 GNU_USER_DYNAMIC_LINKER.
3958 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3959 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3960 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3961 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3962 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3963 GNU_USER_DYNAMIC_LINKER.
3964 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3965 GNU_USER_DYNAMIC_LINKERN32.
3966 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3967 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3968 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3969 GNU_USER_DYNAMIC_LINKER32.
3970 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3971 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3972 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3973 GNU_USER_DYNAMIC_LINKER.
3974 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3975 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3976 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3977 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3978 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3979 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3980 GNU_USER_DYNAMIC_LINKER32.
3981 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3982 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3983 GNU_USER_DYNAMIC_LINKER.
3984 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3987 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3988 GNU_USER_DYNAMIC_LINKER64.
3989 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3990 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3991 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3992 GNU_USER_DYNAMIC_LINKER.
3993 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3994 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3995 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3996 GNU_USER_DYNAMIC_LINKER.
3997 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3998 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3999 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4000 GNU_USER_DYNAMIC_LINKER32.
4001 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4002 GNU_USER_DYNAMIC_LINKER64.
4003 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4004 GNU_USER_DYNAMIC_LINKER64.
4005 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4006 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4007 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4010
4011 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4012
4013 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4014 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4015 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4016 GNU_USER_DYNAMIC_LINKER.
4017 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4018 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4019 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4020 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4021 GNU_USER_DYNAMIC_LINKER64.
4022 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4023 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4024 GNU_USER_LINK_EMULATION.
4025 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4026 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4027 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4028 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4029 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4030 CPP_SPEC, CC1_SPEC): Remove.
4031 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4032 (GNU_USER_DYNAMIC_LINKER): Define.
4033 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4034 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4035 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4036 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4037 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4038 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4039 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4040 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4041 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4042 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4043 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4044 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4045 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4046 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4047 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4048 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4049 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4050 GNU_USER_DYNAMIC_LINKER.
4051 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4052 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4053 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4054 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4055 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4056 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4057 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4058 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4059 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4060 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4061
4062 2011-04-11 Kai Tietz <ktietz@redhat.com>
4063
4064 PR target/9601
4065 PR target/11772
4066 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4067 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4068 comment.
4069 (ix86_is_msabi_thiscall): Removed.
4070 (ix86_is_type_thiscall): Likewise.
4071 (ix86_get_callcvt): New function.
4072 (ix86_comp_type_attributes): Simplify check.
4073 (ix86_function_regparm): Use ix86_get_callcvt for calling
4074 convention attribute checks.
4075 (ix86_return_pops_args): Likewise.
4076 (ix86_static_chain): Likewise.
4077 (x86_this_parameter): Likewise.
4078 (x86_output_mi_thunk): Likewise.
4079 (ix86_function_type_abi): Optimize check for types without attributes.
4080 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4081 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4082 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4083 by flag-values.
4084 (IX86_BASE_CALLCVT): Helper macro.
4085 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4086 Use ix86_get_callcvt for calling convention attribute checks and avoid
4087 symbol-decoration for stdcall in TARGET_RTD case.
4088 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4089 Likewise.
4090 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4091 for declaration.
4092
4093 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4094
4095 * config/i386/sse.md (VI_128): New mode iterator.
4096 (VI12_128): Rename from SSEMODE12.
4097 (VI14_128): Rename from SSEMODE14.
4098 (VI124_128): New mode iterator.
4099 (VI24_128): Rename from SSEMODE248.
4100 (VI248_128): Rename from SSEMODE248.
4101 (SSEMODE124C8): Remove.
4102 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4103 (*sse2_<plusminus_insn><mode>3): Merge with
4104 *avx_<plusminus_insn><mode>3.
4105 (*mulv8hi3): Merge with *avx_mulv8hi3.
4106 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4107 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4108 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4109 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4110 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4111 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4112 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4113 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4114 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4115 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4116 (*<smaxmin:code>v8hi3): Ditto.
4117 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4118 (*<smaxmin:code>v16qi3): Ditto.
4119 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4120 (*sse2_eq<mode>3): Ditto.
4121 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4122 (*sse2_gt<mode>3): Ditto.
4123 (vcondv2di): Split out of vcond<mode>.
4124 (vconduv2di): Split out of vcondu<mode>.
4125
4126 2011-04-11 Richard Guenther <rguenther@suse.de>
4127
4128 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4129 before calling tree_low_cst.
4130
4131 2011-04-11 Richard Guenther <rguenther@suse.de>
4132
4133 * stor-layout.c (layout_type): Compute all array index size operations
4134 in the original type.
4135 (initialize_sizetypes): Add comment.
4136 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4137
4138 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4139
4140 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4141
4142 2011-04-11 Martin Jambor <mjambor@suse.cz>
4143
4144 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4145 of cgraph_node, handle NULL return value.
4146 (cgraph_global_info): Likewise.
4147 (cgraph_rtl_info): Likewise.
4148 * tree-inline.c (estimate_num_insns): Likewise.
4149 * gimplify.c (unshare_body): Likewise.
4150 (unvisit_body): Likewise.
4151 (gimplify_body): Likewise.
4152 * predict.c (optimize_function_for_size_p): Likewise.
4153 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4154 (call_may_clobber_ref_p_1): Likewise.
4155 * varasm.c (function_section_1): Likewise.
4156 (assemble_start_function): Likewise.
4157
4158 2011-04-11 Martin Jambor <mjambor@suse.cz>
4159
4160 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4161 of cgraph_node.
4162 * final.c (rest_of_clean_state): Likewise.
4163 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4164 * passes.c (pass_init_dump_file): Likewise.
4165 (execute_all_ipa_transforms): Likewise.
4166 (function_called_by_processed_nodes_p): Likewise.
4167 * predict.c (maybe_hot_frequency_p): Likewise.
4168 (probably_never_executed_bb_p): Likewise.
4169 (compute_function_frequency): Likewise.
4170 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4171 (unnest_nesting_tree_1): Likewise.
4172 (lower_nested_functions): Likewise.
4173 * tree-optimize.c (execute_fixup_cfg): Likewise.
4174 (tree_rest_of_compilation): Likewise.
4175 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4176 * tree-sra.c (ipa_early_sra): Likewise.
4177 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4178 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4179 * ipa.c (record_cdtor_fn): Likewise.
4180 * ipa-inline.c (cgraph_early_inlining): Likewise.
4181 (compute_inline_parameters_for_current): Likewise.
4182 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4183 * ipa-pure-const.c (local_pure_const): Likewise.
4184 * ipa-split.c (split_function): Likewise.
4185 (execute_split_functions): Likewise.
4186 * cgraphbuild.c (build_cgraph_edges): Likewise.
4187 (rebuild_cgraph_edges): Likewise.
4188 (cgraph_rebuild_references): Likewise.
4189 (remove_cgraph_callee_edges): Likewise.
4190 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4191 (verify_cgraph_node): Likewise.
4192 (cgraph_analyze_functions): Likewise.
4193 (cgraph_preserve_function_body_p): Likewise.
4194 (save_inline_function_body): Likewise.
4195 (save_inline_function_body): Likewise.
4196 * tree-inline.c (copy_bb): Likewise.
4197 (optimize_inline_calls): Likewise.
4198
4199 2011-04-11 Martin Jambor <mjambor@suse.cz>
4200
4201 PR tree-optimization/48195
4202 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4203 ipa_check_create_edge_args.
4204 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4205 ipa_check_create_edge_args.
4206 * ipa-inline.c (inline_generate_summary): Do not call
4207 ipa_check_create_node_params and ipa_check_create_edge_args.
4208 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4209 ipa_check_create_edge_args.
4210
4211 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4212
4213 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4214 instead of loop.
4215 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4216 * function.c (record_hard_reg_sets): Likewise.
4217 * ira.c (compute_regs_asm_clobbered): Likewise.
4218 * sched-deps.c (sched_analyze_1): Likewise.
4219 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4220
4221 2011-04-09 Xinliang David Li <davidxl@google.com>
4222
4223 PR tree-optimization/PR48484
4224 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4225 has_valid_pred lazily
4226
4227 2011-04-09 Duncan Sands <baldrick@free.fr>
4228
4229 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4230
4231 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4232
4233 * combine.c (combine_validate_cost): Adjust comments. Set registered
4234 cost of I0 to zero at the end, if any.
4235
4236 2011-04-08 Xinliang David Li <davidxl@google.com>
4237
4238 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4239 to insane profile data.
4240
4241 2011-04-08 Xinliang David Li <davidxl@google.com>
4242
4243 * ipa-cp.c (ipcp_update_profiling): Correct
4244 negative scale factor due to insane profile data.
4245
4246 2011-04-08 Xinliang David Li <davidxl@google.com>
4247
4248 * final.c (dump_basic_block_info): New function.
4249 (final): Dump basic block.
4250 (final_scan_insn): Remove old dump.
4251
4252 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4253
4254 PR target/47829
4255 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4256 crtbegin/crtend.
4257
4258 2011-04-08 Michael Matz <matz@suse.de>
4259
4260 PR middle-end/48389
4261 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4262 functions.
4263 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4264 * rtl.h (rebuild_jump_labels_chain): Declare.
4265 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4266 insns inserted on edges.
4267
4268 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4269
4270 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4271 * config/arm/arm-arches.def: New.
4272 * config/arm/arm-opts.h: New.
4273 * config/arm/genopt.sh: New.
4274 * config/arm/arm-tables.opt: New (generated).
4275 * config/arm/arm.c (arm_handle_option, arm_target_help,
4276 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4277 (all_architectures): Get most table contents from arm-arches.def.
4278 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4279 arm_selected_tune here.
4280 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4281 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4282 (march=, mcpu=, mtune=): Use Enum and Var.
4283 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4284 (arm.o): Update dependencies.
4285
4286 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4287
4288 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4289 of header_file.
4290 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4291 (write_typed_alloc_defns): Likewise.
4292 (main): Calls write_typed_alloc_defns with output_header.
4293
4294 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4295
4296 PR inline-asm/48435
4297 * ira-color.c (setup_profitable_hard_regs): Add comments.
4298 Don't take prohibited hard regs into account.
4299 (setup_conflict_profitable_regs): Rename to
4300 get_conflict_profitable_regs.
4301 (check_hard_reg_p): Check prohibited hard regs.
4302
4303 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4304
4305 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4306 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4307 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4308
4309 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4310
4311 PR target/48366
4312 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4313 move from floating point to shift amount register.
4314 (emit_move_sequence): Remove secondary reload support for floating
4315 point to shift amount amount register copies.
4316 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4317 amount register copies.
4318 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4319 register, return false if mode isn't a scalar integer mode.
4320 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4321
4322 2011-04-08 Richard Guenther <rguenther@suse.de>
4323
4324 * gimple.c (gimple_call_flags): Remove kludge.
4325
4326 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4327
4328 * sel-sched.c (sel_region_init): Move call to
4329 sel_setup_region_sched_flags after setup_current_loop_nest.
4330
4331 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4332
4333 PR rtl-optimization/48272
4334 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4335 init_insn_reg_pressure_info. Adjust a caller.
4336 * sched-int.h (init_insn_reg_pressure_info): Declare.
4337 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4338 when sched-pressure is enabled.
4339
4340 2011-04-08 Richard Guenther <rguenther@suse.de>
4341
4342 * gimple.c (gimple_set_modified): Do not queue calls to
4343 MODIFIED_NORETURN_CALLS here ...
4344 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4345
4346 2011-04-08 Richard Guenther <rguenther@suse.de>
4347
4348 PR lto/48467
4349 * toplev.c (lang_dependent_init): Do not open asm_out_file
4350 in WPA mode, nor perform debug machinery initialization.
4351 (finalize): Do not unlink asm_out_file in WPA mode.
4352
4353 2011-04-08 Richard Guenther <rguenther@suse.de>
4354
4355 * gimple.h (gimple_call_fntype): New function.
4356 (gimple_call_return_type): Use it.
4357 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4358 * gimple-low.c (gimple_check_call_args): Likewise.
4359 * gimple.c (gimple_call_flags): Likewise.
4360 (gimple_call_arg_flags): Likewise.
4361 (gimple_call_return_flags): Likewise.
4362 * tree-cfg.c (verify_gimple_call): Likewise.
4363 (do_warn_unused_result): Likewise.
4364 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4365 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4366
4367 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4368
4369 PR rtl-optimization/48235
4370 * sel-sched.c (code_motion_process_successors): Recompute the last
4371 insn in basic block if control flow changed.
4372 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4373 Update condition for ilist_remove.
4374
4375 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4376
4377 PR rtl-optimization/48302
4378 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4379 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4380 it to record added preheader blocks.
4381 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4382 on to sel_add_loop_preheaders.
4383 (sel_region_init): Move call to setup_current_loop_nest after
4384 sel_init_bbs.
4385
4386 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4387
4388 PR target/48273
4389 * cfgloop.h (loop_has_exit_edges): New helper.
4390 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4391 non-clonable.
4392 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4393 that have no exit edges.
4394
4395 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4396
4397 PR rtl-optimization/48442
4398 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4399 all callers. Adjust assert.
4400
4401 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4402
4403 PR tree-optimization/48377
4404 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4405 is_packed to true even for types with smaller TYPE_ALIGN than
4406 TYPE_SIZE.
4407
4408 2011-04-08 Richard Guenther <rguenther@suse.de>
4409
4410 PR bootstrap/48513
4411 * doc/tm.texi: Re-generate.
4412
4413 2011-04-08 Wei Guozhi <carrot@google.com>
4414
4415 PR target/47855
4416 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4417 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4418 * config/arm/arm.md (*push_multi): Change the length computation to
4419 call a C function.
4420
4421 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4422
4423 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4424 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4425 * doc/tm.texi: Regenerate.
4426 * system.h (ASM_OUTPUT_BSS): Poison.
4427 * varasm.c (asm_output_bss): Remove function.
4428 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4429
4430 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4431 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4432 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4433 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4434 Likewise.
4435 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4436 Likewise.
4437 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4438 Likewise.
4439 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4440
4441 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4442
4443 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4444 EnumValue lines.
4445
4446 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4447
4448 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4449 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4450 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4451 OPT_mcpu32.
4452 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4453 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4454 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4455 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4456 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4457 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4458 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4459 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4460 options. Don't map other m68k options manually. Don't handle
4461 old-style options as canonical.
4462 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4463 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4464
4465 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4466
4467 * basic-block.h (force_nonfallthru): Move to...
4468 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4469 (force_nonfallthru): ...here.
4470 * cfghooks.c (force_nonfallthru): New function.
4471 * cfgrtl.c (force_nonfallthru): Rename into...
4472 (rtl_force_nonfallthru): ...this.
4473 (commit_one_edge_insertion): Do not set AUX field.
4474 (commit_edge_insertions): Do not discover new basic blocks.
4475 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4476 (cfg_layout_rtl_cfg_hooks): Likewise.
4477 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4478 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4479 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4480
4481 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4482
4483 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4484 Remove macros.
4485
4486 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4487
4488 * config/i386/sse.md: Update copyright year.
4489 (avxcvtvecmode): Remove.
4490 (sse_movhlps): Merge with *avx_movhlps.
4491 (sse_movlhps): Merge with *avx_movlhps.
4492 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4493 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4494 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4495 (sse_loadhps): Merge with *avx_loadhps.
4496 (sse_storelps): Merge with *avx_storelps.
4497 (sse_loadlps): Merge with *avx_loadlps.
4498 (sse_movss): Merge with *avx_movss.
4499 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4500 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4501 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4502 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4503 (vec_set<mode>_0): Ditto.
4504 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4505 (sse4_1_insertps): Merge with *avx_insertps.
4506 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4507 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4508 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4509 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4510 (sse2_storehpd): Merge with *avx_storehpd.
4511 (sse2_loadhpd): Merge with *avx_loadhpd.
4512 (sse2_loadlpd): Merge with *avx_loadlpd.
4513 (sse2_movsd): Merge with *avx_movsd.
4514 (*vec_concatv2df): Merge with *vec_concatv2df.
4515
4516 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4517
4518 PR debug/48343
4519 * combine.c (combine_instructions): Add last_combined_insn,
4520 update it if insn is after it, pass it to all try_combine calls.
4521 (try_combine): Add last_combined_insn parameter, pass it instead of
4522 i3 to propagate_for_debug.
4523
4524 2011-04-07 Nick Clifton <nickc@redhat.com>
4525
4526 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4527 to handle MDR <-> data register transfers.
4528 (movhi_internal): Likewise.
4529
4530 2011-04-07 Alan Modra <amodra@gmail.com>
4531
4532 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4533 previous stack info.
4534
4535 2011-04-07 Tom de Vries <tom@codesourcery.com>
4536
4537 PR target/43920
4538 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4539 flow_find_cross_jump. Swap variables to implement backward replacement.
4540 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4541
4542 2011-04-07 Tom de Vries <tom@codesourcery.com>
4543
4544 PR target/43920
4545 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4546 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4547 and bb2.
4548 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4549 src1 or src2. Redirect edges to the last basic block. Update
4550 frequency and count on multiple basic blocks in case of fallthru.
4551
4552 2011-04-07 Tom de Vries <tom@codesourcery.com>
4553
4554 PR target/43920
4555 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4556 function.
4557 (old_insns_match_p): Change return type. Replace return false/true
4558 with return dir_none/dir_both. Use can_replace_by.
4559 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4560 direction from dir_p. Register replacement direction in dir, last_dir
4561 and afterlast_dir. Handle new return type of old_insns_match_p using
4562 merge_dir. Return replacement direction in dir_p.
4563 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4564 return type of old_insns_match_p.
4565 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4566 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4567 flow_find_cross_jump.
4568 * basic-block.h (enum replace_direction): New type.
4569 (flow_find_cross_jump): Add parameter to declaration.
4570
4571 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4572
4573 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4574 (AVXMODEDCVTPS2DQ): Ditto.
4575 (VEC_FLOAT_MODE): Ditto.
4576 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4577 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4578 (<any_logic:code><mode>3): Use VF mode iterator.
4579 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4580 Use VF mode iterator.
4581 (copysign<mode>3): Use VF mode iterator.
4582 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4583 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4584 (*<any_logic:code><MODEF:mode>3): Merge with
4585 *avx_<any_logic:code><MODEF:mode>3.
4586 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4587 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4588 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4589 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4590 (sse2_cvtdq2ps): Use %v modifier.
4591 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4592 (avx_cvtps2dq<avxmodesuffix>): Remove.
4593 (sse2_cvtps2dq): Use %v modifier.
4594 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4595 (avx_cvttps2dq<avxmodesuffix>): Remove.
4596 (sse2_cvttps2dq): Use %v modifier.
4597 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4598 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4599 (sse2_cvtsd2siq): Fix insn template.
4600 (sse2_cvtsd2siq_2): Ditto.
4601 (sse2_cvttsd2siq): Ditto.
4602 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4603 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4604
4605 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4606
4607 * gcov-io.c: Use GCC Runtime Library Exception.
4608
4609 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4610
4611 PR debug/48466
4612 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4613 as base_reg whatever register reg has been eliminated to, instead
4614 of hardcoding STACK_POINTER_REGNUM.
4615
4616 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4617
4618 * doc/tm.texi.in: Document C target hooks as separate from general
4619 target hooks.
4620 * doc/tm.texi: Regenerate.
4621 * genhooks.c (struct hook_desc): Add docname field.
4622 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4623 docname field.
4624 (hook_array): Include c-target.def.
4625 (emit_documentation): Use docname field in output.
4626 (emit_init_macros): Take docname argument. Only emit definitions
4627 for hooks matching docname.
4628 (main): Expect additional arguments in all cases. Pass argument
4629 to emit_init_macros.
4630 * target.def: Move initial macro definitions and comments to
4631 target-hooks-macros.h.
4632 (gcc_targetcm): Move to c-family/c-target.def.
4633 * target.h (targetcm): Move declaration to c-family/c-target.h.
4634 * targhooks.c (default_handle_c_option): Move to
4635 c-family/c-opts.c.
4636 * targhooks.h (default_handle_c_option): Move declaration to
4637 c-family/c-common.h.
4638 * target-hooks-macros.h: New file.
4639 * config.gcc (target_has_targetcm): Define and use to add to
4640 c_target_objs and cxx_target_objs.
4641 * config/default-c.c: New file.
4642 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4643 of target.h and target-def.h.
4644 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4645 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4646 darwin_check_cfstring_format_arg): Make static.
4647 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4648 TARGET_STRING_OBJECT_REF_TYPE_P,
4649 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4650 * config/darwin-protos.h (darwin_objc_construct_string,
4651 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4652 declare.
4653 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4654 TARGET_STRING_OBJECT_REF_TYPE_P,
4655 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4656 * config/t-darwin (darwin-c.o): Update dependencies.
4657 * system.h (TARGET_HAS_TARGETCM): Poison.
4658 * Makefile.in (TARGET_H): Update.
4659 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4660 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4661 (default-c.o): New target.
4662 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4663 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4664 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4665 c-target.def.
4666 (build/genhooks.o): Update dependencies.
4667
4668 2011-04-06 Richard Guenther <rguenther@suse.de>
4669
4670 * ipa-inline.c (enum inlining_mode): Remove.
4671 (cgraph_flatten): Use some other token.
4672 (cgraph_edge_early_inlinable_p): New function, split out from ...
4673 (cgraph_perform_always_inlining): New function, split out from ...
4674 (cgraph_decide_inlining_incrementally): ... here.
4675 (cgraph_mark_inline_edge): Adjust.
4676 (cgraph_early_inlining): Re-structure.
4677 (pass_early_inline): Require SSA form.
4678
4679 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4680 Julian Brown <julian@codesourcery.com>
4681 Mark Shinwell <shinwell@codesourcery.com>
4682
4683 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4684 LO_REGS only for Thumb-1.
4685 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4686 be used in short instructions when optimising for size on Thumb-2.
4687
4688 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4689
4690 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4691 associated with user returns to be preserved.
4692
4693 2011-04-06 Tristan Gingold <gingold@adacore.com>
4694
4695 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4696 symbol_queue_size, DBXOUT_DECR_NESTING,
4697 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4698 if XCOFF_DEBUGGING_INFO.
4699
4700 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4701
4702 * config/i386/i386.md (attribute isa): New.
4703 (attribute enabled): New.
4704 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4705 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4706 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4707 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4708 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4709 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4710 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4711 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4712
4713 * config/i386/sse.md (VF): New mode iterator.
4714 (VF1): Ditto.
4715 (VF2): Ditto.
4716 (VF_128): Ditto.
4717 (SSEMODEF4): Remove.
4718 (attribute sse): Handle V8SF and V4DF modes.
4719 (<absneg:code><mode>2): Use VF mode iterator.
4720 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4721 mode iterator.
4722 (<plusminus_insn><mode>3): Use VF mode iterator.
4723 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4724 Use VF mode iterator.
4725 (<sse>_vm<plusminus_insn><mode>3): Merge with
4726 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4727 (mul<mode>3): Use VF mode iterator.
4728 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4729 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4730 mode iterator.
4731 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4732 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4733 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4734 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4735 mode iterator.
4736 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4737 Use VF1 mode iterator.
4738 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4739 (sqrt<VF2:mode>2): New expander.
4740 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4741 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4742 and sqrtv2df2. Use VF mode iterator.
4743 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4744 mode iterator.
4745 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4746 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4747 Use VF1 mode iterator.
4748 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4749 (<smaxmin:code><mode>3): Use VF mode iterator.
4750 (*<smaxmin:code><mode>3_finite): Merge with
4751 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4752 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4753 (<sse>_vm<smaxmin:code><mode>2): Merge with
4754 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4755 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4756 mode iterator.
4757 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4758 mode iterator.
4759 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4760 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4761 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4762 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4763 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4764 VF mode iterator.
4765 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4766 Use VF_128 mode iterator.
4767 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4768 mode iterator.
4769 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4770 VF_128 mode iterator.
4771 (vcond<mode>): Use VF mode iterator.
4772 * config/i386/predicates.md (sse_comparison_operator): Merge with
4773 avx_comparison_float_operator. Do not declare as special_predicate.
4774 * config/i386/i386.c (struct builtin_description): Update for renamed
4775 compare patterns.
4776 (ix86_expand_args_builtin): Ditto.
4777 (ix86_expand_sse_compare_mask): Ditto.
4778
4779 2011-04-06 Richard Guenther <rguenther@suse.de>
4780
4781 * tree-inline.c (estimate_num_insns): For calls simply account
4782 for all passed arguments and a used return value.
4783
4784 2011-04-06 Richard Guenther <rguenther@suse.de>
4785
4786 PR tree-optimization/47663
4787 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4788 call_stmt_time fields.
4789 (cgraph_edge_inlinable_p): Declare.
4790 (cgraph_edge_recursive_p): New inline function.
4791 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4792 (cgraph_clone_edge): Copy it.
4793 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4794 Account for call stmt time.
4795 (cgraph_estimate_time_after_inlining): Take edge argument.
4796 (cgraph_estimate_edge_growth): Account call stmt size.
4797 (cgraph_estimate_size_after_inlining): Take edge argument.
4798 (cgraph_mark_inline_edge): Adjust.
4799 (cgraph_check_inline_limits): Likewise.
4800 (cgraph_recursive_inlining_p): Remove.
4801 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4802 (cgraph_decide_recursive_inlining): Take edge argument and
4803 adjust.
4804 (cgraph_decide_inlining_of_small_functions): Do not avoid
4805 diags for recursive inlining here.
4806 (cgraph_flatten): Adjust.
4807 (cgraph_decide_inlining_incrementally): Likewise.
4808 (estimate_function_body_sizes): Remove call cost handling.
4809 (compute_inline_parameters): Initialize caller edge call costs.
4810 (cgraph_estimate_edge_growth): New function.
4811 (cgraph_estimate_growth): Use it.
4812 (cgraph_edge_badness): Likewise.
4813 (cgraph_check_inline_limits): Take an edge argument.
4814 (cgraph_decide_inlining_of_small_functions): Adjust.
4815 (cgraph_decide_inlining): Likewise.
4816 * tree-inline.c (estimate_num_insns): Only account for call
4817 return value if it is used.
4818 (expand_call_inline): Avoid diagnostics on recursive inline
4819 functions here.
4820 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4821 (input_edge): Input edge call costs.
4822
4823 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4824
4825 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4826
4827 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4828
4829 * doc/invoke.texi (Spec Files): Fix typo.
4830
4831 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4832
4833 * profile.c (branch_prob): Move declaration of local variable. Remove
4834 obsolete ??? comment. Expand the location explicitly instead of using
4835 the LOCATION_FILE and LOCATION_LINE macros.
4836
4837 2011-04-06 Wei Guozhi <carrot@google.com>
4838
4839 PR target/47855
4840 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4841 (arm_cond_branch): Likewise.
4842 (arm_cond_branch_reversed): Likewise.
4843 (arm_jump): Likewise.
4844 (push_multi): Likewise.
4845 * config/arm/constraints.md (Py): New constraint.
4846
4847 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4848
4849 PR bootstrap/48471
4850 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4851 Move these...
4852 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4853 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4854 #ifdef DBX_DEBUGGING_INFO.
4855
4856 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4857
4858 PR bootstrap/48403
4859 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4860 if old and new states differ.
4861
4862 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4863
4864 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4865 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4866 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4867 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4868 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4869 mcfv4e): Use Alias.
4870 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4871 ColdFire options to -mcpu= options.
4872
4873 2011-04-05 Jeff Law <law@redhat.com>
4874
4875 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4876 check if BB is a successor of LOOP->header and return
4877 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4878
4879 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4880
4881 * cprop.c (struct reg_use): Remove.
4882 (reg_use_table): Make an array of RTX.
4883 (find_used_regs, constprop_register, local_cprop_pass,
4884 bypass_block): Simplify users of reg_use_table.
4885 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4886 on one of the uses found by find_used_regs.
4887
4888 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4889
4890 PR bootstrap/48469
4891 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4892 declaration.
4893
4894 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4895
4896 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4897 as an rtx.
4898 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4899
4900 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4901
4902 PR middle-end/48441
4903 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4904
4905 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4906
4907 * combine.c: Include obstack.h.
4908 (struct insn_link): Define.
4909 (uid_log_links): Adjust type.
4910 (FOR_EACH_LOG_LINK): New macro.
4911 (insn_link_obstack): Declare.
4912 (alloc_insn_link): Define.
4913 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4914 type of link variables.
4915 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4916 (try_combine, record_promoted_values, distribute_notes): Likewise.
4917 (distribute_links): Likewise. Tweak prototype.
4918 (clear_log_links): Delete.
4919 (adjust_for_new_dest): Call alloc_insn_link.
4920 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4921
4922 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4923
4924 * gcse.c (modify_mem_list): Convert to an array of VECs.
4925 (canon_modify_mem_list, compute_transp): Tweak formatting.
4926 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4927 (load_killed_in_block_p): Likewise.
4928 (record_last_mem_set_info): Likewise.
4929 (clear_modify_mem_tables): Likewise.
4930
4931 2011-04-05 Tom de Vries <tom@codesourcery.com>
4932
4933 PR middle-end/48461
4934 * function.c (emit_use_return_register_into_block): Only define if
4935 HAVE_return.
4936
4937 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4938
4939 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4940
4941 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4942
4943 * config/rx/rx-opts.h: New.
4944 * config/rx/rx.c (rx_cpu_type): Remove.
4945 (rx_handle_option): Don't assert that global structures are in
4946 use. Access variables via opts pointer. Defer most handling of
4947 OPT_mint_register_. Use error_at.
4948 (rx_option_override): Handle deferred OPT_mint_register_ here.
4949 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4950 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4951 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4952 (rx_cpu_types): New Enum and EnumValue entries.
4953 (mint-register=): Use Defer and use Var accordingly.
4954
4955 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4956
4957 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4958 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4959 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4960 Move these...
4961 (debug_free_queue, debug_nesting, symbol_queue_index):
4962 ...and these...
4963 * dbxout.c: ...to here. Make static.
4964
4965 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4966
4967 * gcse.c (modify_pair): Define. Define a VEC of it.
4968 (canon_modify_mem_list): Convert to an array of VECs.
4969 (free_insn_expr_list_list): Delete.
4970 (clear_modify_mem_tables): Call VEC_free instead.
4971 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4972 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4973 (canon_list_insert, compute_transp): Likewise.
4974
4975 2011-04-05 Tom de Vries <tom@codesourcery.com>
4976
4977 PR target/43920
4978 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4979 for size.
4980
4981 2011-04-05 Tom de Vries <tom@codesourcery.com>
4982
4983 PR target/43920
4984 * function.c (emit_use_return_register_into_block): New function.
4985 (thread_prologue_and_epilogue_insns): Use
4986 emit_use_return_register_into_block.
4987
4988 2011-04-05 Tom de Vries <tom@codesourcery.com>
4989
4990 PR target/43920
4991 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4992 insn.
4993
4994 2011-04-05 Tom de Vries <tom@codesourcery.com>
4995
4996 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4997
4998 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4999
5000 * config/arm/arm.md (define_constants for unspec): Replace with
5001 define_c_enum.
5002 (define_constants for unspecv): Replace with define_c_enum.
5003 * config/arm/neon.md (define_constants for unspec): Replace with
5004 define_c_enum.
5005
5006 2011-04-04 Richard Henderson <rth@redhat.com>
5007
5008 PR bootstrap/48400
5009 * dwarf2out.c (output_line_info): Always emit line info from
5010 at least one section.
5011 (dwarf2out_init): Create text_section_line_info here ...
5012 (set_cur_line_info_table): ... not here.
5013
5014 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5015
5016 PR target/48380
5017 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5018 not called.
5019
5020 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5021
5022 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5023
5024 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5025 (expr_equiv_p): Remove.
5026 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5027 (hash_scan_set): Update call to insert_set_in_table.
5028 (dump_hash_table): Dump <dest, src> pair.
5029 (lookup_set): Simplify. Lookup <dest, src> pair.
5030 (compute_transp): Remove, fold heavily simplified code into...
5031 (compute_local_properties): ...here. Expect COMP and TRANSP
5032 unconditionally.
5033 (find_avail_set): Take set directly from struct expr.
5034 (find_bypass-set): Likewise.
5035 (bypass_block): Likewise.
5036 (cprop_insn): Likewise. Remove redundant INSN_P test.
5037
5038 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5039 checks on form of COND from find_implicit_sets to here.
5040 (find_implicit_sets): Cleanup control flow. Split critical edges
5041 if it exposes implicit sets. Allocate/resize implicit_sets as
5042 necessary.
5043 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5044 changed something. Run df_analyze after find_implicit_sets if any
5045 edges were split. Do not allocate implicit_sets here.
5046
5047 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5048 (gcse_obstack): Renamed to cprop_obstack.
5049 (GNEW, GNEWVEC, GNEWVAR): Remove.
5050 (gmalloc): Remove.
5051 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5052 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5053 (gcse_alloc): Likewise, and rename to cprop_alloc.
5054 (alloc_gcse_men, free_gcse_mem): Remove.
5055 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5056 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5057 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5058
5059 * cprop.c (oprs_not_set_p): Remove.
5060 (mark_set, mark_clobber): Remove.
5061 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5062 (reg_not_set_p): New function.
5063 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5064 (cprop_insn): Likewise.
5065 (cprop_jump): Use FOR_EACH_EDGE.
5066
5067 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5068
5069 PR bootstrap/48403
5070 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5071 (rank_for_schedule): Use scheduled_insns vector instead of
5072 last_scheduled_insn.
5073 (ok_for_early_queue_removal): Likewise.
5074 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5075 we have a dbg_cnt.
5076 (choose_ready): Likewise.
5077 (commit_schedule): Use VEC_iterate.
5078 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5079 a dbg_cnt, use it and ensure the first insn is in the ready list.
5080 (haifa_sched_init): Allocate scheduled_insns.
5081 (sched_extend_ready_list): Don't allocate it; reserve space.
5082 (haifa_sched_finish): Free it.
5083
5084 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5085
5086 * optc-gen.awk: Always remove type from Variable entry before
5087 recording in var_seen.
5088
5089 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5090
5091 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5092 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5093 call to tidy_fallthru_edges.
5094
5095 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5096
5097 * doc/options.texi (ToLower): Document.
5098 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5099 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5100 * opts.h (cl_option): Add cl_tolower field.
5101 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5102 arguments with lowercase strings.
5103 * config/rx/rx.opt (mcpu=): Add ToLower.
5104 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5105 argument.
5106
5107 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5108
5109 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5110
5111 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5112
5113 * config/vax/vax.c: Include reload.h.
5114
5115 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5116
5117 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5118 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5119 (sparc_preferred_reload_class): New function.
5120
5121 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5122
5123 PR debug/48401
5124 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5125 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5126
5127 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5128
5129 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5130 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5131
5132 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5133
5134 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5135 (ASM_OUTPUT_ALIGNED_BSS): Define.
5136
5137 2011-04-03 Michael Matz <matz@suse.de>
5138
5139 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5140 and next_slot members.
5141 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5142 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5143 (lto_streamer_cache_append): Declare.
5144 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5145 unsigned index, remove offset parameter, ensure that we append
5146 or update existing entries.
5147 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5148 parameter, update next_slot for append.
5149 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5150 parameter.
5151 (lto_streamer_cache_insert_at): Likewise.
5152 (lto_streamer_cache_append): New function.
5153 (lto_streamer_cache_lookup): Use unsigned index.
5154 (lto_streamer_cache_get): Likewise.
5155 (lto_record_common_node): Don't test tree_node_can_be_shared.
5156 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5157 (lto_streamer_cache_delete): Don't free offsets member.
5158 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5159 (lto_output_string_with_length): Use lto_output_data_stream.
5160 (lto_output_tree_header): Remove ix parameter, don't write it.
5161 (lto_output_builtin_tree): Likewise.
5162 (lto_write_tree): Adjust callers to above, don't track and write
5163 offset, write unsigned index.
5164 (output_unreferenced_globals): Don't emit all global vars.
5165 (write_global_references): Use unsigned indices.
5166 (lto_output_decl_state_refs): Likewise.
5167 (write_symbol): Likewise.
5168 * lto-streamer-in.c (lto_input_chain): Move earlier.
5169 (input_function): Use unsigned index.
5170 (input_alias_pairs): Don't read and then ignore all global vars.
5171 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5172 don't pass it back, use lto_streamer_cache_append.
5173 (lto_register_var_decl_in_symtab): Use unsigned index.
5174 (lto_register_function_decl_in_symtab): Likewise.
5175 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5176 index.
5177 (lto_get_builtin_tree): Don't read index, use
5178 lto_streamer_cache_append.
5179 (lto_read_tree): Adjust call to lto_materialize_tree.
5180
5181 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5182 don't use function calls in arguments to MIN.
5183
5184 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5185 twice.
5186
5187 * gimple.c (gimple_type_leader_entry): Mark deletable.
5188
5189 2011-04-03 Alan Modra <amodra@gmail.com>
5190
5191 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5192
5193 2011-04-03 Michael Matz <matz@suse.de>
5194
5195 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5196 an integer.
5197 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5198
5199 2011-04-03 Michael Matz <matz@suse.de>
5200
5201 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5202 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5203 without function context.
5204 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5205 current_function_decl and cfun.
5206
5207 2011-04-03 Michael Matz <matz@suse.de>
5208
5209 * tree.c (decl_init_priority_insert): Don't create entry for
5210 default priority.
5211 (decl_fini_priority_insert): Ditto.
5212 (fields_compatible_p, find_compatible_field): Remove.
5213 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5214 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5215
5216 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5217
5218 * combine.c (try_combine): Remove useless local variable.
5219
5220 2011-04-03 Richard Guenther <rguenther@suse.de>
5221 Ira Rosen <ira.rosen@linaro.org>
5222
5223 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5224 non-variable offsets and compare the remaining bases of the two
5225 accesses instead of looking for exact same data-ref.
5226
5227 2011-04-02 Kai Tietz <ktietz@redhat.com>
5228
5229 PR target/48416
5230 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5231
5232 * i386.c (ix86_is_msabi_thiscall): New helper function.
5233 (ix86_is_type_thiscall): New helper function.
5234 (ix86_comp_type_attributes): Handle thiscall for method-functions
5235 special.
5236 (init_cumulative_args): Likewise.
5237 (find_drap_reg): Likewise.
5238 (ix86_static_chain): Likewise.
5239 (x86_this_parameter): Likewise.
5240 (x86_output_mi_thunk): Likewise.
5241
5242 2011-04-01 Olivier Hainque <hainque@adacore.com>
5243 Nicolas Setton <setton@adacore.com>
5244 Eric Botcazou <ebotcazou@adacore.com>
5245
5246 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5247 (add_gnat_descriptive_type_attribute): New function.
5248 (gen_array_type_die): Call it.
5249 (gen_enumeration_type_die): Likewise.
5250 (gen_struct_or_union_type_die): Likewise.
5251 (modified_type_die): Likewise.
5252 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5253 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5254 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5255
5256 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5257
5258 PR bootstrap/48148
5259 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5260 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5261
5262 Revert:
5263 2011-03-17 Richard Guenther <rguenther@suse.de>
5264
5265 PR bootstrap/48148
5266 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5267 origin for decls in other ltrans units.
5268 (input_varpool_node): Likewise.
5269
5270 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5271
5272 PR middle-end/48335
5273 * expr.c (expand_assignment): Handle all possibilities
5274 if TO_RTX is CONCAT.
5275 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5276 (store_split_bit_field): If SUBREG_REG (op0) or
5277 op0 itself has smaller mode than word, return it
5278 for offset 0 and const0_rtx for out-of-bounds stores.
5279 If word is const0_rtx, skip it.
5280
5281 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5282
5283 * config/h8300/h8300.c (print_operand_address): Rename to...
5284 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5285 Call h8300_print_operand and h8300_print_operand_address instead of
5286 print_operand and print_operand_address. Declare.
5287 (print_operand): Renake to...
5288 (h8300_print_operand): ...this. Make static. Adjust comments.
5289 Call h8300_print_operand instead of print_operand. Declare.
5290 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5291 (h8300_register_move_cost): Likewise.
5292 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5293 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5294 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5295 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5296 * config/h8300/h8300-protos.h (print_operand): Delete.
5297 (print_operand_address): Delete.
5298
5299 2011-04-01 Richard Henderson <rth@redhat.com>
5300
5301 PR 48400
5302 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5303 in strict mode before dwarf4. Re-order tests to early out
5304 before switching sections.
5305
5306 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5307
5308 * config/h8300/constraints.md: New file.
5309 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5310 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5311 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5312 * config/h8300/predicates.md (bit_operand): Likewise.
5313 (incdec_operand): Use satisfies_constraint_M and
5314 satisfies_constraint_O. Don't use C code block.
5315 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5316 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5317 (compute_mov_length): Use satisfies_constraint_G.
5318 (fix_bit_operand): Use satisfies_constraint_U.
5319 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5320 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5321 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5322 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5323 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5324 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5325 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5326 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5327 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5328 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5329 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5330 (EXTRA_MEMORY_CONSTRAINT): Delete.
5331
5332 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5333 Michael Meissner <meissner@linux.vnet.ibm.com>
5334
5335 PR target/48262
5336 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5337 operands, as per the specifications.
5338
5339 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5340 (vec_extract_evenv4sf): Ditto.
5341 (vec_extract_evenv8hi): Ditto.
5342 (vec_extract_evenv16qi): Ditto.
5343 (vec_extract_oddv4si): Ditto.
5344
5345 2011-03-31 Mark Wielaard <mjw@redhat.com>
5346
5347 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5348 high_pc attribute if the CU has no associated code. Only output
5349 DW_AT_entry_pc for CU if not generating strict dwarf and
5350 dwarf_version < 4.
5351
5352 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5353
5354 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5355 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5356 out of ...
5357 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5358 * final.c (final_start_function): Call the new function rather
5359 than using a NULL argument for dwarf2out_frame_debug.
5360
5361 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5362 that contains the prologue.
5363
5364 * haifa-sched.c (queue_insn): New arg REASON. All callers
5365 changed. Print it in debugging output.
5366
5367 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5368
5369 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5370 Split most of the code into...
5371 (begin_move_insn): ... here. New function.
5372 (ebb_sched_info): Add a pointer to it.
5373 * haifa-sched.c (scheduled_insns): New static variable.
5374 (sched_extend_ready_list): Allocate it.
5375 (schedule_block): Use it to record the order of scheduled insns.
5376 Perform RTL changes to move insns only after all scheduling
5377 decisions have been made.
5378 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5379 begin_move_insn field.
5380 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5381 * sched-int.h (struct haifa_sched_info): Remove second argument
5382 from begin_schedule_ready hook. Add new member begin_move_insn.
5383 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5384 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5385
5386 * haifa-sched.c (prune_ready_list): New function, broken out of
5387 schedule_block.
5388 (schedule_block): Use it.
5389
5390 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5391
5392 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5393
5394 2011-04-01 Kai Tietz <ktietz@redhat.com>
5395
5396 * config.gcc (*-*-mingw*): Allow as option the
5397 posix threading model.
5398 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5399 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5400 definition.
5401 (CPP_SPEC): Add pthread/no-pthread handling.
5402 (LIB_SPEC): Likewise.
5403 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5404 (LIB_SPEC): Likewise.
5405 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5406 flag to pass -pthread option for shared libgcc build.
5407 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5408 for shared libgcc build.
5409 * config/i386/t-mingw-pthread: New file.
5410 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5411 New define to enable use of library pthread by default.
5412 * config/i386/mingw.opt (pthread): New driver option.
5413 (no-pthread): New driver option.
5414 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5415 * config/i386/mingw-w64.opt: Likewise.
5416
5417 2011-04-01 Gary Funck <gary@intrepid.com>
5418
5419 * c-decl.c (grokdeclarator): Fix formatting.
5420
5421 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5422
5423 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5424 instead of n_operands.
5425 (set_storage_via_setmem): Likewise.
5426 * optabs.c (maybe_gen_insn): Likewise.
5427 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5428 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5429 (mips_expand_builtin_direct): Likewise.
5430 * config/spu/spu.c (expand_builtin_args): Likewise.
5431
5432 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5433
5434 * recog.h (insn_data_d): Add n_generator_args.
5435 * genoutput.c (data): Likewise.
5436 (output_insn_data): Print it.
5437 (max_opno, num_dups): Delete.
5438 (scan_operands): Just fill in "d->operand[...]".
5439 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5440
5441 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5442
5443 * gensupport.h (pattern_stats): New structure.
5444 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5445 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5446 (max_operand_1, max_operand_vec): Delete.
5447 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5448
5449 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5450
5451 * emit-rtl.c (emit_pattern_after_setloc): New function.
5452 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5453 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5454 (emit_pattern_after): New function.
5455 (emit_insn_after, emit_jump_insn_after): Call it.
5456 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5457 (emit_pattern_before_setloc): New function.
5458 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5459 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5460 Likewise.
5461 (emit_pattern_before): New function.
5462 (emit_insn_before, emit_jump_insn_before): Call it.
5463 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5464
5465 2011-03-31 Richard Henderson <rth@redhat.com>
5466
5467 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5468 (dw_separate_line_info_entry): Remove.
5469 (enum dw_line_info_opcode): New.
5470 (dw_line_info_entry): Use it.
5471 (dw_line_info_table, dw_line_info_table_p): New.
5472 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5473 (line_info_table, line_info_label_num): Remove.
5474 (line_info_table_in_use): Remove.
5475 (separate_line_info_table): Remove.
5476 (separate_line_info_table_allocated): Remove.
5477 (separate_line_info_table_in_use): Remove.
5478 (LINE_INFO_TABLE_INCREMENT): Remove.
5479 (line_info_label_num): New.
5480 (cur_line_info_table): New.
5481 (text_section_line_info, cold_text_section_line_info): New.
5482 (separate_line_info): New.
5483 (SEPARATE_LINE_CODE_LABEL): Remove.
5484 (print_dwarf_line_table): Remove.
5485 (debug_dwarf): Don't dump it.
5486 (output_one_line_info_table): New.
5487 (output_line_info): Use it.
5488 (new_line_info_table): New.
5489 (set_cur_line_info_table): New.
5490 (dwarf2out_switch_text_section): Use it.
5491 (dwarf2out_begin_function): Likewise.
5492 (push_dw_line_info_entry): New.
5493 (dwarf2out_source_line): Rewrite for new line info tables.
5494 (dwarf2out_init): Remove dead initailizations.
5495
5496 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5497
5498 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5499 various flags.
5500 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5501 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5502 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5503 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5504 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5505 * opt-functions.awk (flag_init, switch_bit_fields): New.
5506 (switch_flags): Don't handle flags moved to bit-fields. Don't
5507 generate CL_MISSING_OK or CL_SAVE.
5508 * optc-gen.awk: Update to generate bit-field output as well as
5509 flags field.
5510 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5511 bit-field instead of CL_REJECT_DRIVER flag.
5512 * opts-common.c (generate_canonical_option,
5513 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5514 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5515 instead of CL_REJECT_NEGATIVE flag.
5516 * toplev.c (print_switch_values): Use cl_report bit-field instead
5517 of CL_REPORT flag.
5518
5519 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5520
5521 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5522 a zero minimum index only if it is redundant.
5523
5524 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5525
5526 PR rtl-optimization/48381
5527 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5528 instead of ira_class_hard_reg_index for calculating conflicting
5529 hard registers.
5530
5531 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5532
5533 * cprop.c: Clean up hash table building.
5534 (reg_avail_info): Remove.
5535 (oprs_available_p): Remove.
5536 (record_last_reg_set_info): Remove.
5537 (record_last_set_info): Remove.
5538 (reg_available_p): New function.
5539 (gcse_constant_p): Do not treat unfolded conditions as constants.
5540 (make_set_regs_unavailable): New function.
5541 (hash_scan_set): Simplify with new reg_available_p.
5542 (compute_hash_table_work): Traverse insns stream only once.
5543 Do not compute reg_avail_info. Traverse insns in reverse order.
5544 Record implicit sets after recording explicit sets from the block.
5545
5546 2011-03-31 Michael Matz <matz@suse.de>
5547
5548 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5549
5550 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5551
5552 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5553 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5554 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5555 (h8300_mode_dependent_address_p): New function.
5556 (h8300_get_index): Make static.
5557
5558 2011-03-31 Jeff Law <law@redhat.com>
5559
5560 * reload1.c (elimination_effects): Fix typo in recent change.
5561
5562 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5563 typo potentially leading to null pointer dereference.
5564
5565 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5566 (setup_save_areas): Corresponding changes to avoid useless
5567 assignments.
5568
5569 * jump.c (reversed_comparison_code_parts): Avoid successive return
5570 statements when REVERSE_CONDITION is defined.
5571
5572 * expr.c (expand_assignment): Avoid useless assignments.
5573 (expand_expr_real_1): Likewise.
5574 (expand_expr_real_2): Avoid useless statements.
5575
5576 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5577
5578 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5579
5580 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5581 statements.
5582
5583 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5584
5585 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5586
5587 PR target/47109
5588 * doc/tm.texi.in (TARGET_VERSION): Remove.
5589 * doc/tm.texi: Regenerate.
5590 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5591 * collect2.c (main): Don't use TARGET_VERSION.
5592 * mips-tdump.c (main): Don't use TARGET_VERSION.
5593 * mips-tfile.c (main): Don't use TARGET_VERSION.
5594 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5595 * config/rs6000/vxworksae.h: Remove.
5596 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5597 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5598 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5599 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5600 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5601 * config/arm/arm.h (TARGET_VERSION): Remove.
5602 * config/arm/coff.h (TARGET_VERSION): Remove.
5603 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5604 * config/arm/elf.h (TARGET_VERSION): Remove.
5605 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5606 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5607 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5608 * config/arm/pe.h (TARGET_VERSION): Remove.
5609 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5610 * config/arm/semi.h (TARGET_VERSION): Remove.
5611 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5612 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5613 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5614 * config/avr/avr.h (TARGET_VERSION): Remove.
5615 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5616 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5617 * config/frv/frv.h (TARGET_VERSION): Remove.
5618 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5619 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5620 * config/i386/darwin.h (TARGET_VERSION): Remove.
5621 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5622 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5623 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5624 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5625 * config/i386/gnu.h (TARGET_VERSION): Remove.
5626 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5627 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5628 * config/i386/linux.h (TARGET_VERSION): Remove.
5629 * config/i386/linux64.h (TARGET_VERSION): Remove.
5630 * config/i386/lynx.h (TARGET_VERSION): Remove.
5631 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5632 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5633 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5634 * config/i386/netware.h (TARGET_VERSION): Remove.
5635 * config/i386/nto.h (TARGET_VERSION): Remove.
5636 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5637 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5638 * config/ia64/elf.h (TARGET_VERSION): Remove.
5639 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5640 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5641 * config/ia64/linux.h (TARGET_VERSION): Remove.
5642 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5643 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5644 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5645 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5646 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5647 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5648 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5649 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5650 * config/m68k/linux.h (TARGET_VERSION): Remove.
5651 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5652 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5653 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5654 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5655 * config/mep/mep.h (TARGET_VERSION): Remove.
5656 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5657 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5658 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5659 * config/mips/linux.h (TARGET_VERSION): Remove.
5660 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5661 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5662 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5663 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5664 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5665 * config/pa/pa.h (TARGET_VERSION): Remove.
5666 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5667 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5668 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5669 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5670 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5671 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5672 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5673 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5674 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5675 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5676 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5677 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5678 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5679 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5680 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5681 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5682 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5683 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5684 * config/s390/linux.h (TARGET_VERSION): Remove.
5685 * config/s390/s390.h (TARGET_VERSION): Remove.
5686 * config/s390/tpf.h (TARGET_VERSION): Remove.
5687 * config/score/score.h (TARGET_VERSION): Remove.
5688 * config/sh/linux.h (TARGET_VERSION): Remove.
5689 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5690 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5691 * config/sh/sh.h (TARGET_VERSION): Remove.
5692 * config/sh/sh64.h (TARGET_VERSION): Remove.
5693 * config/sh/superh.h (TARGET_VERSION): Remove.
5694 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5695 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5696 * config/sparc/linux.h (TARGET_VERSION): Remove.
5697 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5698 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5699 TARGET_NAME32, TARGET_NAME): Remove.
5700 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5701 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5702 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5703 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5704 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5705 * config/spu/spu.h (TARGET_VERSION): Remove.
5706 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5707 * config/v850/v850.h (TARGET_VERSION): Remove.
5708 * config/vax/linux.h (TARGET_VERSION): Remove.
5709 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5710 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5711 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5712
5713 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5714
5715 PR target/48142
5716 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5717 frame-related from frame-unrelated adjustments to the stack pointer.
5718
5719 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5720
5721 * common.opt (fdebug-types-section): Move earlier.
5722 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5723
5724 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5725
5726 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5727 var.
5728
5729 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5730
5731 * tree.h (CASE_CHAIN): Define.
5732 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5733 (gimple_redirect_edge_and_branch): Likewise.
5734
5735 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5736
5737 PR middle-end/48367
5738 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5739 calculation.
5740
5741 2011-03-30 Jeff Law <law@redhat.com>
5742
5743 * PR bootstrap/48371
5744 * reload1.c (reload): Fix botch in last change.
5745
5746 * reload.h (struct reload): Fix typo introduced in last change.
5747
5748 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5749
5750 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5751 Undocumented. Remove help text.
5752 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5753 -mhard-float.
5754
5755 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5756
5757 * doc/options.texi (NegativeAlias): Document.
5758 (Alias): Mention NegativeAlias.
5759 * opt-functions.awk: Handle NegativeAlias.
5760 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5761 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5762 * opts.h (CL_NEGATIVE_ALIAS): Define.
5763 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5764 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5765 OPT_mspe_.
5766 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5767 Alias entries.
5768 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5769 mno-spe and mno-isel instead of mspe=no and -misel=no.
5770
5771 2011-03-29 Mark Wielaard <mjw@redhat.com>
5772
5773 * common.opt (fdebug-types-section): New flag.
5774 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5775 * dwarf2out.c (use_debug_types): New define.
5776 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5777 (print_die): Guard output of type unit signatures using
5778 use_debug_types.
5779 (build_abbrev_table): Replace assert of dwarf_version >= 4
5780 with assert on use_debug_types.
5781 (size_of_die): Likewise.
5782 (unmark_dies): Likewise.
5783 (value_format): Decide AT_ref_external form on use_debug_types.
5784 (output_die): Replace dwarf_version version check guard with
5785 use_debug_types where appropriate.
5786 (modified_type_die): Likewise.
5787 (gen_reference_type_die): Likewise.
5788 (dwarf2out_start_source_file): Likewise.
5789 (dwarf2out_end_source_file): Likewise.
5790 (prune_unused_types_walk_attribs): Likewise.
5791 (dwarf2out_finish): Likewise.
5792
5793 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5794
5795 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5796
5797 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5798
5799 PR rtl-optimization/48332
5800 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5801 mode of input operand N and modeN to its actual mode.
5802
5803 2011-03-30 Jeff Law <law@redhat.com>
5804
5805 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5806 define accessor macro.
5807 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5808 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5809 (reg_equiv_init): Likewise.
5810 (reg_equivs_size): New variable.
5811 (reg_equiv_init_size): Remove.
5812 (allocate_initial_values): Move prototype to here from....
5813 * integrate.h (allocate_initial_values): Remove prototype.
5814 * integrate.c: Include reload.h.
5815 (allocate_initial_values): Corresponding changes.
5816 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5817 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5818 (update_equiv_regs): Corresponding changes.
5819 (ira): Corresponding changes.
5820 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5821 (push_secondary_reload): Corresponding changes.
5822 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5823 (make_memloc, find_reloads_address): Corresponding changes.
5824 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5825 (find_reloads_address_1): Corresponding changes.
5826 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5827 (refers_to_regno_for_reload_p): Corresponding changes.
5828 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5829 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5830 * reload1.c: Include ggc.h.
5831 (grow_reg_equivs): New function.
5832 (replace_pseudos_in, reload): Corresponding changes.
5833 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5834 (eliminate_regs_1, elimination_effects): Corresponding changes.
5835 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5836 (delete_output_reload): Likewise.
5837 * caller-save.c (mark_referenced_regs): Corresponding changes.
5838 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5839 * frv/predicates.md (frv_load_operand): Corresponding changes.
5840 * microblaze/microblaze.c (double_memory_operand): Corresponding
5841 changes.
5842 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5843 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5844 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5845 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5846 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5847 changes.
5848 * pa/pa.c (emit_move_sequence): Corresponding changes.
5849 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5850
5851 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5852
5853 PR target/47551
5854 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5855 structure modes. Don't check neon_vector_mem_operand for
5856 vector or structure modes.
5857
5858 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5859 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5860
5861 PR target/43590
5862 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5863 operand 1 and reshuffle the operands to match.
5864 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5865
5866 2011-03-30 Christian Schüler <cschueler@gmx.de>
5867
5868 PR driver/48208
5869 * config/c.opt (F): Added 'Driver' to -F option.
5870
5871 PR driver/48260
5872 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5873 handler function.
5874 * config/darwin.opt: Added '-arch' option.
5875
5876 2011-03-30 Nick Clifton <nickc@redhat.com>
5877
5878 * config/rx/rx.md: Add peepholes and patterns to combine
5879 extending loads and simple arithmetic instructions.
5880 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5881 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5882 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5883 modes to use pre-decrement and post-increment addressing.
5884 (rx_is_restricted_memory_address): Add range checking of REG+INT
5885 addresses.
5886 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5887 (rx_memory_move_cost): Adjust cost of stores.
5888 (rx_adjust_insn_length): New function.
5889
5890 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5891
5892 PR c/48305
5893 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5894 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5895 matching arg00/arg01 types.
5896
5897 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5898
5899 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5900 last_location to UNKNOWN_LOCATION.
5901
5902 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5903
5904 PR target/48349
5905 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5906 FLOAT_SSE_REGS.
5907
5908 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5909 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5910
5911 PR bootstrap/48337
5912 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5913 Init(PROCESSOR_V7).
5914 (sparc_cpu): Likewise.
5915 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5916 PROCESSOR_V7.
5917
5918 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5919
5920 PR target/48336
5921 PR middle-end/48342
5922 PR rtl-optimization/48345
5923 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5924 hard regs for given mode from profitable regs when doing secondary
5925 allocation.
5926
5927 2011-03-29 Jeff Law <law@redhat.com>
5928
5929 PR bootstrap/48327
5930 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5931 do_not_duplicate field.
5932 (lookup_redirection_data): Corresponding changes.
5933 (create_duplicates): Always create a template block.
5934 (redirect_edges): Remove code which reused the original block
5935 when it was going to become unreachable code.
5936 (thread_block): Don't set do_not_duplicate field.
5937
5938 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5939
5940 * lto-opts.c (register_user_option_p, lto_register_user_option):
5941 Make type argument unsigned.
5942 * lto-streamer.h (lto_register_user_option): Make type argument
5943 unsigned.
5944 * opth-gen.awk: Make CL_* macros unsigned.
5945 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5946 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5947 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5948 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5949 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5950 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5951 (find_opt): Make lang_mask argument unsigned.
5952
5953 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5954
5955 PR rtl-optimization/48331
5956 PR rtl-optimization/48334
5957 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5958 for any used algorithm.
5959
5960 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5961
5962 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5963 to parent_max.
5964
5965 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5966
5967 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5968 (alpha_option_override): Don't set alpha_sr_alias_set.
5969 (emit_frame_store_1): Use gen_frame_mem rather than calling
5970 set_mem_alias_set.
5971 (alpha_expand_epilogue): Ditto.
5972
5973 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5974
5975 PR tree-optimization/48290
5976 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5977 vectorization, check that relevant phis in the basic block after
5978 the inner loop are really inner loop's exit phis.
5979
5980 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5981
5982 PR debug/48190
5983 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5984 (cached_dw_loc_list_def): New structure.
5985 (cached_dw_loc_list): New typedef.
5986 (cached_dw_loc_list_table): New variable.
5987 (cached_dw_loc_list_table_hash): New function.
5988 (cached_dw_loc_list_table_eq): Likewise.
5989 (add_location_or_const_value_attribute): Take a bool cache_p.
5990 Cache the list when the parameter is true.
5991 (gen_formal_parameter_die): Update caller.
5992 (gen_variable_die): Likewise.
5993 (dwarf2out_finish): Likewise.
5994 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5995 while generating debug info for the decl.
5996 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5997 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5998 (resolve_addr): Cache the result of resolving a chain of
5999 location lists.
6000
6001 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6002
6003 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6004 conflict object hard regset nodes have intersecting hard reg sets.
6005
6006 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6007 after regstat_init_n_sets_and_refs.
6008
6009 * ira.c: Add more comments at the top.
6010 (setup_stack_reg_pressure_class, setup_pressure_classes):
6011 Add comments how we compute the register pressure classes.
6012 (setup_allocno_and_important_classes): Add more comments.
6013 (setup_class_translate_array, reorder_important_classes)
6014 (setup_reg_class_relations): Add comments.
6015
6016 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6017 start of the file.
6018
6019 * ira-color.c: Add 2011 to the Copyright line.
6020 (assign_hard_reg): Add more comments.
6021 (improve_allocation): Ditto.
6022
6023 * ira-costs.c: Add 2011 to the Copyright line.
6024 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6025 comments.
6026 (setup_regno_cost_classes_by_mode): Ditto.
6027
6028 Initial patches from ira-improv branch:
6029
6030 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6031
6032 * ira-build.c (ira_create_object): Remove initialization of
6033 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6034 (ira_create_allocno): Remove initialization of
6035 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6036 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6037 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6038 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6039 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6040 Initialize ALLOCNO_ADD_DATA.
6041 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6042 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6043 ALLOCNO_REG.
6044 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6045 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6046
6047 * ira.c (ira_reallocate): Remove.
6048 (setup_pressure_classes): Call
6049 ira_init_register_move_cost_if_necessary. Use
6050 ira_register_move_cost instead of ira_get_register_move_cost.
6051 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6052 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6053
6054 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6055 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6056 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6057 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6058 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6059 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6060 Fix formatting.
6061 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6062 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6063 (struct allocno_color_data): New.
6064 (allocno_color_data_t): New typedef.
6065 (allocno_color_data): New definition.
6066 (ALLOCNO_COLOR_DATA): New macro.
6067 (struct object_color_data): New.
6068 (object_color_data_t): New typedef.
6069 (object_color_data): New definition.
6070 (OBJECT_COLOR_DATA): New macro.
6071 (update_copy_costs, calculate_allocno_spill_cost): Call
6072 ira_init_register_move_cost_if_necessary. Use
6073 ira_register_move_cost instead of ira_get_register_move_cost.
6074 (move_spill_restore, update_curr_costs): Ditto.
6075 (allocno_spill_priority): Make it inline.
6076 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6077 (struct coalesce_data, coalesce_data_t): New.
6078 (allocno_coalesce_data): New definition.
6079 (ALLOCNO_COALESCE_DATA): New macro.
6080 (merge_allocnos, coalesced_allocno_conflict_p): Use
6081 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6082 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6083 (coalesce_allocnos): Ditto.
6084 (setup_coalesced_allocno_costs_and_nums): Ditto.
6085 (collect_spilled_coalesced_allocnos): Ditto.
6086 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6087 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6088 (coalesce_spill_slots): Ditto.
6089 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6090 free allocno_coalesce_data.
6091
6092 * ira-conflicts.c: Fix formatting.
6093 (process_regs_for_copy): Call
6094 ira_init_register_move_cost_if_necessary. Use
6095 ira_register_move_cost instead of ira_get_register_move_cost.
6096 (build_object_conflicts): Optimize.
6097
6098 * ira-costs.c (record_reg_classes): Optimize. Call
6099 ira_init_register_move_cost_if_necessary. Use
6100 ira_register_move_cost, ira_may_move_in_cost, and
6101 ira_may_move_out_cost instead of ira_get_register_move_cost and
6102 ira_get_may_move_cost.
6103 (record_address_regs): Ditto.
6104 (scan_one_insn): Optimize.
6105 (find_costs_and_classes): Optimize.
6106 (process_bb_node_for_hard_reg_moves): Call
6107 ira_init_register_move_cost_if_necessary. Use
6108 ira_register_move_cost instead of ira_get_register_move_cost.
6109
6110 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6111 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6112 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6113 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6114 definitions.
6115 (ira_initiate_emit_data, ira_finish_emit_data)
6116 (create_new_allocno): New functions.
6117 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6118 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6119 Use ira_register_move_cost instead of ira_get_register_move_cost.
6120
6121 * ira-int.h: Fix some comments.
6122 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6123 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6124 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6125 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6126 add_data.
6127 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6128 bitfield after mode. Make hard_regno a short int. Make
6129 hard_regno short. Remove first_coalesced_allocno and
6130 next_coalesced_allocno. Move mem_optimized_dest_p,
6131 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6132 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6133 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6134 temp, colorable_p. Add new member add_data.
6135 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6136 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6137 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6138 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6139 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6140 (ALLOCNO_ADD_DATA): New macro.
6141 (ira_emit_data_t): New typedef.
6142 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6143 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6144 from struct ira_allocno.
6145 (ALLOCNO_EMIT_DATA): New macro.
6146 (ira_allocno_emit_data, allocno_emit_reg): New.
6147 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6148 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6149 (OBJECT_ADD_DATA): New macro.
6150 (ira_reallocate): Remove.
6151 (ira_initiate_emit_data, ira_finish_emit_data): New.
6152 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6153 (ira_init_register_move_cost_if_necessary): New.
6154 (ira_object_conflict_iter_next): Merge into
6155 ira_object_conflict_iter_cond.
6156 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6157
6158 * ira-live.c (process_single_reg_class_operands): Call
6159 ira_init_register_move_cost_if_necessary. Use
6160 ira_register_move_cost instead of ira_get_register_move_cost.
6161
6162 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6163
6164 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6165
6166 * ira-costs.c: Fix formatting.
6167 (cost_classes, cost_classes_num): Remove.
6168 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6169 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6170 (cost_classes_del, cost_classes_htab): New.
6171 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6172 (initiate_regno_cost_classes, setup_cost_classes): New.
6173 (setup_regno_cost_classes_by_aclass): New.
6174 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6175 (record_reg_classes): Use regno_cost_classes instead of
6176 cost_classes. Move checking opposite operand up.
6177 (record_address_regs): Use regno_cost_classes
6178 instead of cost_classes.
6179 (scan_one_insn): Ditto. Use always general register.
6180 (print_allocno_costs): Use regno_cost_classes instead of
6181 cost_classes.
6182 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6183 (find_costs_and_classes): Set up cost classes for each registers.
6184 Use also their mode for this. Use regno_cost_classes instead of
6185 cost_classes.
6186 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6187 cost_classes.
6188 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6189 (ira_costs, ira_set_pseudo_classes): Call
6190 initiate_regno_cost_classes and finish_regno_cost_classes.
6191
6192 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6193
6194 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6195
6196 * target.def (ira_cover_classes): Remove.
6197
6198 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6199
6200 * doc/tm.texi.in: Ditto.
6201
6202 * ira-conflicts.c: Remove mentioning cover classes from the file.
6203 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6204 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6205
6206 * targhooks.c (default_ira_cover_classes): Remove.
6207
6208 * targhooks.h (default_ira_cover_classes): Ditto.
6209
6210 * haifa-sched.c: Remove mentioning cover classes from the file.
6211 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6212 ira_pressure_classes and ira_pressure_classes_num instead of
6213 ira_reg_class_cover_size and ira_reg_class_cover. Use
6214 sched_regno_pressure_class instead of sched_regno_cover_class.
6215 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6216 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6217
6218 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6219 classes from the file.
6220 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6221 (struct object_hard_regs, struct object_hard_regs_node): New.
6222 (struct ira_object): New members profitable_hard_regs,
6223 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6224 (struct ira_allocno): Rename cover_class to aclass. Rename
6225 cover_class_cost and updated_cover_class_cost to class_cost and
6226 updated_class_cost. Remove splay_removed_p and
6227 left_conflict_size. Add new members colorable_p.
6228 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6229 (ALLOCNO_COLORABLE_P): New macro.
6230 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6231 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6232 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6233 (OBJECT_...): Rename parameter C to O.
6234 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6235 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6236 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6237 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6238 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6239 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6240 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6241 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6242 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6243 x_ira_reg_class_subunion.
6244 (ira_max_memory_move_cost, ira_max_register_move_cost)
6245 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6246 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6247 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6248 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6249 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6250 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6251 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6252 (ira_tune_allocno_costs_and_cover_classes): Rename to
6253 ira_tune_allocno_costs.
6254 (ira_debug_hard_regs_forest): New.
6255 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6256 (ira_object_conflict_iter_next): Fix comments.
6257 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6258 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6259 cover_class to aclass.
6260 (ira_allocate_and_accumulate_costs): Ditto.
6261 (ira_allocate_and_set_or_copy_costs): Ditto.
6262
6263 * opts.c (decode_options): Remove ira_cover_class check.
6264
6265 * ira-color.c: Remove mentioning cover classes from the file. Use
6266 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6267 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6268 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6269 (splay-tree.h): Remove include.
6270 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6271 before copy_freq_compare_func.
6272 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6273 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6274 New definitions.
6275 (hard_regs_roots, hard_regs_node_vec): Ditto.
6276 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6277 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6278 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6279 (create_new_object_hard_regs_node): Ditto.
6280 (add_new_object_hard_regs_node_to_forest): Ditto.
6281 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6282 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6283 Ditto.
6284 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6285 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6286 (remove_unused_object_hard_regs_nodes): Ditto.
6287 (enumerate_object_hard_regs_nodes): Ditto.
6288 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6289 (object_hard_regs_subnode_t): Ditto.
6290 (struct object_hard_regs_subnode): Ditto.
6291 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6292 (setup_object_hard_regs_subnode_index): Ditto.
6293 (get_object_hard_regs_subnodes_num): Ditto.
6294 (form_object_hard_regs_nodes_forest): Ditto.
6295 (finish_object_hard_regs_nodes_tree): Ditto.
6296 (finish_object_hard_regs_nodes_forest): Ditto.
6297 (allocnos_have_intersected_live_ranges_p): Rename to
6298 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6299 (pseudos_have_intersected_live_ranges_p): Rename to
6300 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6301 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6302 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6303 (update_copy_costs): Remove assert. Skip cost update if the hard
6304 reg does not belong the class.
6305 (assign_hard_reg): Process only profitable hard regs.
6306 (uncolorable_allocnos_num): Make it scalar.
6307 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6308 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6309 and ira_reg_class_max_nregs.
6310 (bucket_allocno_compare_func): Check frequency first.
6311 (sort_bucket): Add compare function as a parameter.
6312 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6313 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6314 (push_allocno_to_stack): Rewrite for checking new allocno
6315 colorability.
6316 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6317 (push_only_colorable): Pass new parameter to sort_bucket.
6318 (push_allocno_to_spill): Remove.
6319 (allocno_spill_priority_compare): Make it inline and rewrite.
6320 (splay_tree_allocate, splay_tree_free): Remove.
6321 (allocno_spill_sort_compare): New function.
6322 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6323 build and use splay tree. Choose first allocno in uncolorable
6324 allocno bucket to spill. Remove setting spill cost.
6325 (all_conflicting_hard_regs): Remove.
6326 (setup_allocno_available_regs_num): Check only profitable hard
6327 regs. Print info about hard regs nodes.
6328 (setup_allocno_left_conflicts_size): Remove.
6329 (put_allocno_into_bucket): Don't call
6330 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6331 (improve_allocation): New.
6332 (color_allocnos): Call setup_profitable_hard_regs,
6333 form_object_hard_regs_nodes_forest, improve_allocation,
6334 finish_object_hard_regs_nodes_forest. Setup spill cost.
6335 (print_loop_title): Use pressure classes.
6336 (color_allocnso): Ditto.
6337 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6338 and allocnos_for_spilling.
6339 (ira_sort_regnos_for_alter_reg): Don't setup members
6340 {first,next}_coalesced_allocno.
6341 (color): Remove allocating and freeing removed_splay_allocno_vec.
6342 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6343 prohibited_class_mode_regs.
6344
6345 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6346 formatting.
6347 (update_allocno_pressure_excess_length): Use pressure classes.
6348 (inc_register_pressure, dec_register_pressure): Check for pressure
6349 class.
6350 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6351 pressure class. Use ira_reg_class_nregs instead of
6352 ira_reg_class_max_nregs.
6353 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6354 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6355 (single_reg_class): Use ira_reg_class_nregs instead of
6356 ira_reg_class_max_nregs.
6357 (process_bb_node_lives): Use pressure classes.
6358
6359 * ira-emit.c: Remove mentioning cover classes from the file. Use
6360 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6361 (change_loop): Use pressure classes.
6362 (modify_move_list): Call ira_set_allocno_class instead of
6363 ira_set_allocno_cover_class.
6364
6365 * ira-build.c: Remove mentioning cover classes from the file. Use
6366 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6367 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6368 ALLOCNO_UPDATED_CLASS_COST instead of
6369 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6370 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6371 (ira_create_allocno): Remove initialization of
6372 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6373 ALLOCNO_COLORABLE_P.
6374 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6375 Update conflict regs for the objects.
6376 (create_cap_allocno): Remove assert. Don't propagate
6377 ALLOCNO_AVAILABLE_REGS_NUM.
6378 (ira_free_allocno_costs): New function.
6379 (finish_allocno): Change a part of code into call of
6380 ira_free_allocno_costs.
6381 (low_pressure_loop_node_p): Use pressure classes.
6382 (object_range_compare_func): Don't compare classes.
6383 (setup_min_max_conflict_allocno_ids): Ditto.
6384
6385 * loop-invariant.c: Remove mentioning cover classes from the file.
6386 Use ira_pressure_classes and ira_pressure_classes_num instead of
6387 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6388 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6389 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6390 Use reg_allocno_class instead of reg_cover_class.
6391 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6392 STACK_REG_COVER_CLASS.
6393 (get_regno_cover_class): Rename to get_regno_pressure_class.
6394 (move_loop_invariants): Initialize and finalize regstat.
6395
6396 * ira.c: Remove mentioning cover classes from the file. Add
6397 comments about coloring without cover classes. Use ALLOCNO_CLASS
6398 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6399 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6400 setup_class_subset_and_memory_move_costs.
6401 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6402 (setup_cover_and_important_classes): Rename to
6403 setup_allocno_and_important_classes.
6404 (setup_class_translate_array): New.
6405 (setup_class_translate): Call it for allocno and pressure classes.
6406 (cover_class_order): Rename to allocno_class_order.
6407 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6408 of ira_class_translate.
6409 (reorder_important_classes): Set up ira_important_class_nums.
6410 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6411 (print_class_cover): Rename to print_classes. Add parameter.
6412 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6413 Print pressure classes too.
6414 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6415 setup_reg_subclasses.
6416 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6417 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6418 (setup_prohibited_class_mode_regs): Use
6419 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6420 (clarify_prohibited_class_mode_regs): New function.
6421 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6422 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6423 (ira_init_once): Initialize them.
6424 (free_register_move_costs): Process them.
6425 (ira_init): Move calls of find_reg_classes and
6426 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6427 Call clarify_prohibited_class_mode_regs.
6428 (ira_no_alloc_reg): Remove.
6429 (too_high_register_pressure_p): Use pressure classes.
6430
6431 * sched-deps.c: Remove mentioning cover classes from the file.
6432 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6433 ira_pressure_classes and ira_pressure_classes_num instead of
6434 ira_reg_class_cover_size and ira_reg_class_cover.
6435 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6436 sched_regno_pressure_class instead of sched_regno_cover_class.
6437 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6438 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6439
6440 * ira.h: Add 2010 to Copyright.
6441 (ira_no_alloc_reg): Remove external.
6442 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6443 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6444 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6445 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6446 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6447 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6448 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6449 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6450 x_ira_no_alloc_regs.
6451 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6452 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6453 ira_allocno_classes_num and ira_allocno_classes.
6454 (ira_class_translate): Rename to ira_allocno_class_translate.
6455 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6456 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6457 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6458 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6459 (ira_no_alloc_regs): New.
6460
6461 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6462 classes from the file. Use ALLOCNO_CLASS instead of
6463 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6464 ALLOCNO_COVER_CLASS_COST.
6465 (regno_cover_class): Rename to regno_aclass.
6466 (record_reg_classes): Use ira_reg_class_subunion instead of
6467 ira_reg_class_union.
6468 (record_address_regs): Check overflow.
6469 (scan_one_insn): Ditto.
6470 (print_allocno_costs): Print total mem cost fore regional allocation.
6471 (print_pseudo_costs): Use REG_N_REFS.
6472 (find_costs_and_classes): Use classes intersected with them on the
6473 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6474 ira_reg_class_union. Use ira_allocno_class_translate and
6475 regno_aclass instead of ira_class_translate and regno_cover_class.
6476 Modify code for finding regno_aclass. Setup preferred classes for
6477 the next pass.
6478 (setup_allocno_cover_class_and_costs): Rename to
6479 setup_allocno_class_and_costs. Use regno_aclass instead of
6480 regno_cover_class. Use ira_set_allocno_class instead of
6481 ira_set_allocno_cover_class.
6482 (init_costs, finish_costs): Use regno_aclass instead of
6483 regno_cover_class.
6484 (ira_costs): Use setup_allocno_class_and_costs instead of
6485 setup_allocno_cover_class_and_costs.
6486 (ira_tune_allocno_costs_and_cover_classes): Rename to
6487 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6488 by processing objects. Use ira_reg_class_max_nregs instead of
6489 ira_reg_class_nregs.
6490
6491 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6492
6493 * sched-int.h: Remove mentioning cover classes from the file.
6494 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6495
6496 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6497 classes from the file.
6498 (struct reg_pref): Rename coverclass into allocnoclass.
6499 (reg_cover_class): Rename to reg_allocno_class.
6500
6501 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6502
6503 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6504
6505 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6506
6507 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6508
6509 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6510
6511 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6512
6513 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6514
6515 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6516
6517 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6518
6519 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6520
6521 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6522 (i386_ira_cover_classes): Ditto.
6523
6524 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6525
6526 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6527
6528 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6529
6530 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6531
6532 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6533
6534 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6535
6536 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6537 (mips_ira_cover_classes): Ditto.
6538
6539 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6540
6541 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6542
6543 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6544
6545 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6546
6547 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6548
6549 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6550 (IRA_COVER_CLASSES_VSX): Ditto.
6551
6552 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6553 (rs6000_ira_cover_classes): Ditto.
6554
6555 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6556
6557 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6558
6559 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6560
6561 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6562
6563 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6564
6565 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6566
6567 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6568
6569 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6570
6571 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6572
6573 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6574
6575 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6576
6577 PR debug/48253
6578 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6579 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6580 dw_fde_unlikely_section_end_label, cold_in_std_section,
6581 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6582 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6583 fields.
6584 (output_fde): Use dw_fde_second_{begin,end} if second is
6585 true, otherwise dw_fde_{begin,end}.
6586 (output_call_frame_info): Test dw_fde_second_begin != NULL
6587 instead of dw_fde_switched_sections.
6588 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6589 fields, initialize new fields. Initialize in_std_section
6590 unconditionally from the first partition.
6591 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6592 dw_fde_second_begin is non-NULL.
6593 (dwarf2out_switch_text_section): Stop initializing removed
6594 dw_fde_struct fields, initialize new fields, initialize
6595 also dw_fde_end here. Set dw_fde_switch_cfi even when
6596 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6597 (struct var_loc_list_def): Add last_before_switch field.
6598 (arange_table, arange_table_allocated, arange_table_in_use,
6599 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6600 (size_of_aranges): Count !in_std_section and !second_in_std_section
6601 hunks in fdes, instead of looking at arange_table_in_use.
6602 (output_aranges): Add aranges_length argument, don't call
6603 size_of_aranges here. Instead of using aranges_table*
6604 emit ranges for fdes when !in_std_section resp.
6605 !second_in_std_section.
6606 (dw_loc_list): Break ranges crossing section switch.
6607 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6608 use dw_fde_second_end instead of dw_fde_end as end of last range.
6609 (gen_subprogram_die): Don't call add_arange. Use
6610 dw_fde_{begin,end} for first partition and if switched
6611 section dw_fde_second_{begin,end} for the second.
6612 (var_location_switch_text_section_1,
6613 var_location_switch_text_section): New functions.
6614 (dwarf2out_begin_function): Initialize cold_text_section even
6615 when function_section () isn't text_section.
6616 (prune_unused_types): Don't walk arange_table.
6617 (dwarf2out_finish): Don't needlessly test
6618 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6619 If info_section_emitted, call size_of_aranges and if it indicates
6620 non-empty .debug_aranges, call output_aranges with the computed
6621 size. Stop using removed dw_fde_struct fields, use
6622 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6623 for second.
6624
6625 PR debug/48203
6626 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6627 create ENTRY_VALUE if incoming or address of incoming's MEM
6628 is a hard REG.
6629 * dwarf2out.c (mem_loc_descriptor): Don't emit
6630 DW_OP_GNU_entry_value of DW_OP_fbreg.
6631 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6632 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6633 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6634 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6635 ENTRY_VALUE_EXPs.
6636 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6637 is a REG_P or MEM_P with REG_P address, compute hash directly
6638 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6639 (preserve_only_constants): Don't clear VALUES forwaring
6640 ENTRY_VALUE to some other VALUE.
6641
6642 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6643
6644 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6645 instead of GEN_INT.
6646
6647 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6648
6649 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6650 block before expanding the statement.
6651 (expand_gimple_stmt_1): Likewise. Set them here...
6652 (expand_gimple_stmt): ...and not here. Tidy.
6653 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6654 unknown.
6655
6656 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6657
6658 * Makefile.in: New rule for cprop.o.
6659 * gcse.c: Move constant/copy propagation to cprop.c.
6660 (compute_local_properties): Only handle expression tables.
6661 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6662 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6663 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6664 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6665 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6666 compute_cprop_data, find_used_regs, try_replace_reg,
6667 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6668 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6669 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6670 find_bypass_set, reg_killed_on_edge, bypass_block,
6671 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6672 execute_rtl_cprop, pass_rtl_cprop): Move to...
6673 * cprop.c: ...here. New file, constant/copy propagation for RTL
6674 moved from gcse.c to here with minor cleanups in duplicated code.
6675
6676 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6677
6678 * config/i386/i386.c (flag_opts): Fix a typo in
6679 -mavx256-split-unaligned-store.
6680
6681 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6682
6683 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6684 LIBCALL_VALUE): Remove macros.
6685 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6686 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6687 (h8300_function_value, h8300_libcall_value,
6688 h8300_function_value_regno_p): New functions.
6689
6690 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6691
6692 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6693
6694 2011-03-28 Jeff Law <law@redhat.com>
6695
6696 * tree-ssa-threadupdate.c (redirect_edges): Call
6697 create_edge_and_update_destination_phis as needed.
6698 (create_edge_and_update_destination_phis): Accept new BB argument.
6699 All callers updated.
6700 (thread_block): Do not update the profile when threading around
6701 intermediate blocks.
6702 (thread_single_edge): Likewise.
6703 (determine_bb_domination_status): If BB is not a successor of the
6704 loop header, return NONDOMINATING.
6705 (register_jump_thread): Note when we register a jump thread around
6706 an intermediate block.
6707 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6708 (thread_across_edge): Use it.
6709
6710 2011-03-28 Tristan Gingold <gingold@adacore.com>
6711
6712 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6713 when for_return is 2.
6714
6715 2011-03-28 Jeff Law <law@redhat.com>
6716
6717 * var-tracking.c (canonicalize_values_mark): Delete unused
6718 lhs assignment.
6719 (canonicalize_values_star, set_variable_part): Likewise.
6720 (clobber_variable_part, delete_variable_part): Likewise.
6721
6722 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6723
6724 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6725
6726 2011-03-28 Martin Jambor <mjambor@suse.cz>
6727
6728 * tree-inline.c (expand_call_inline): Do not check that destination
6729 node is analyzed.
6730 (optimize_inline_calls): Assert that destination node is analyzed.
6731 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6732 not call tree_lowering_passes.
6733 * cgraph.h (cgraph_analyze_function): Declare.
6734 * cgraphunit.c (cgraph_analyze_function): Make public.
6735
6736 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6737
6738 * config/sparc/sparc-opts.h: New.
6739 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6740 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6741 (sparc_option_override): Store processor_type enumeration rather
6742 than string in cpu_default. Remove name and enumeration from
6743 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6744 without using sparc_select. Use target_flags_explicit instead of
6745 fpu_option_set.
6746 * config/sparc/sparc.h (enum processor_type): Move to
6747 sparc-opts.h.
6748 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6749 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6750 HeaderInclude entry.
6751 (mcpu=, mtune=): Use Var and Enum.
6752 (sparc_processor_type): New Enum and EnumValue entries.
6753
6754 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6755 Iain Sandoe <iains@gcc.gnu.org>
6756
6757 PR target/48245
6758 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6759
6760 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6761
6762 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6763 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6764 Insert new statements at it in lieu of STMT.
6765 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6766 * tree-vect-stmts.c (vectorizable_store): Likewise.
6767 (vectorizable_load): Likewise.
6768
6769 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6770
6771 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6772 (divtf3): Ditto.
6773 (multf3): Ditto.
6774 (subtf3): Ditto.
6775
6776 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6777
6778 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6779 unaligned 256bit load/store.
6780 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6781 (*avx_movdqu<avxmodesuffix>): Likewise.
6782
6783 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6784
6785 PR target/48288
6786 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6787 * config/pa/pa.md (iordi3): Use new predicate in expander.
6788 (iorsi3): Likewise.
6789
6790 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6791
6792 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6793 FUNCTION_VALUE_REGNO_P): Remove macros.
6794 * config/mips/mips-protos.h (mips_function_value): Remove.
6795 * config/mips/mips.c (mips_function_value): Rename to...
6796 (mips_function_value_1): ... this. Make static. Handle receiving
6797 the function type in 'fn_decl_or_type' argument.
6798 (mips_function_value, mips_libcall_value,
6799 mips_function_value_regno_p): New function.
6800 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6801 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6802
6803 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6804
6805 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6806 and -mavx256-split-unaligned-store.
6807 (ix86_option_override_internal): Split 32-byte AVX unaligned
6808 load/store by default.
6809 (ix86_avx256_split_vector_move_misalign): New.
6810 (ix86_expand_vector_move_misalign): Use it.
6811
6812 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6813 -mavx256-split-unaligned-store.
6814
6815 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6816 256bit load/store. Generate unaligned store on misaligned memory
6817 operand.
6818 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6819 256bit load/store.
6820 (*avx_movdqu<avxmodesuffix>): Likewise.
6821
6822 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6823 -mavx256-split-unaligned-store.
6824
6825 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6826
6827 PR target/38598
6828 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6829 Update commentary.
6830
6831 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6832
6833 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6834 opno arguments with an expand_operand. Use create_input_operand.
6835 (mips_prepare_builtin_target): Delete.
6836 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6837 functions.
6838 (mips_expand_builtin_direct): Use create_output_operand and
6839 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6840 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6841 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6842
6843 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6844
6845 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6846 function.
6847 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6848
6849 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6850
6851 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6852 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6853 basic blocks and call commit_edge_insertions directly.
6854 (fixup_abnormal_edges): Move from here to...
6855 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6856 on the edges and return whether some have actually been inserted.
6857 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6858 compensation code.
6859
6860 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6861
6862 PR rtl-optimization/48144
6863 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6864 (merge_expr_data): ... here.
6865 (av_set_intersect): Rename to av_set_code_motion_filter.
6866 Update all callers. Call merge_history_vect when an expression
6867 is found in both sets.
6868 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6869
6870 2011-03-26 Alan Modra <amodra@gmail.com>
6871
6872 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6873 cmodel medium addresses.
6874 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6875 64-bit gpr loads and stores.
6876 (rs6000_secondary_reload_ppc64): New function.
6877 * config/rs6000/rs6000-protos.h: Declare it.
6878 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6879
6880 2011-03-26 Alan Modra <amodra@gmail.com>
6881
6882 PR target/47487
6883 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6884 GNU Go in traceback table.
6885
6886 2011-03-25 Richard Henderson <rth@redhat.com>
6887
6888 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6889 if there are exactly 6 operands.
6890 (set_storage_via_setmem): Similarly.
6891
6892 2011-03-25 Kai Tietz <ktietz@redhat.com>
6893
6894 * collect2.c (write_c_file_stat): Handle backslash
6895 as right-hand directory separator.
6896 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6897 checking just for slash.
6898 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6899 instead of checking for trailing slash.
6900 * gcc.c (record_temp_file): Use filename_cmp instead
6901 of strcmp.
6902 (do_spec_1): Likewise.
6903 (replace_outfile_spec_function): Likewise.
6904 (is_directory): Use filename_ncmp instead of strncmp.
6905 (print_multilib_info): Likewise.
6906 * gcov.c (find_source): Use filename_cmp instead
6907 instead of strcmp.
6908 (make_gcov_file_name): Fix order of slash/backslash
6909 checks.
6910 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6911 (add_standard_paths): Likewise.
6912 * mips-tfile.c (saber_stop): Handle backslash.
6913 * prefix.c (update_path): Use filename_ncmp instead of
6914 strncmp.
6915 * profile.c (output_location): Use filename_cmp instead
6916 of strcmp.
6917 * read-md.c (handle_toplevel_file): Handle backslash.
6918 * tlink.c (frob_extension): Likewise.
6919 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6920 strcmp.
6921 * tree-dump.c (dequeue_and_dump): Handle backslash.
6922 * tree.c (get_file_function_name): Likewise.
6923 * gengtype.c (read_input_list): Likewise.
6924 (get_file_realbasename): Likewise.
6925 (get_output_file_with_visibility): Use filename_cmp
6926 instead of strcmp.
6927
6928 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6929
6930 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6931 case to VFPv1.
6932
6933 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6934
6935 * fold-const.c (expr_location_or): New function.
6936 (fold_truth_not_expr): Call it.
6937
6938 2011-03-25 Jeff Law <law@redhat.com>
6939
6940 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6941 va_end.
6942 * c-family/c-common.c (def_fn_type): Likewise.
6943 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6944 * emit-rtl.c (gen_rtvec): Likewise.
6945 * lto/lto-lang.c (def_fn_type): Likewise.
6946
6947 2011-03-25 Richard Guenther <rguenther@suse.de>
6948
6949 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6950 also generate copies.
6951 (fini_copy_prop): Handle constant values properly.
6952
6953 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6954
6955 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6956 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6957 (hash_loc_operands, compare_loc_operands): Handle
6958 DW_OP_GNU_entry_value.
6959
6960 2011-03-25 Kai Tietz <ktietz@redhat.com>
6961
6962 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6963 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6964 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6965 comment and use macro TARGET_64BIT_MS_ABI instead.
6966 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6967 and change default behavior for 32-bit MS_ABI.
6968 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6969 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6970 32-bit, too.
6971 (ix86_cfun_abi): Likewise.
6972 (ix86_maybe_switch_abi): Adjust comment.
6973 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6974 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6975 instead of checking for SYSV_ABI.
6976 (ix86_nsaved_sseregs): Likewise.
6977 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6978 to 16 bytes.
6979 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6980 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6981 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6982 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6983 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6984
6985 2011-03-25 Richard Guenther <rguenther@suse.de>
6986
6987 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6988 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6989 (verify_gimple): Remove.
6990 * tree-cfg.c (verify_gimple_call): Merge verification
6991 from verify_stmts.
6992 (verify_gimple_phi): Merge verification from verify_stmts.
6993 (verify_gimple_label): New function.
6994 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6995 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6996 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6997 (verify_stmts): Rename to verify_gimple_in_cfg.
6998 (verify_gimple_in_cfg): New function.
6999 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7000 * tree-ssa.c (verify_ssa): Likewise.
7001 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7002
7003 2011-03-25 Richard Guenther <rguenther@suse.de>
7004
7005 * passes.c (init_optimization_passes): Add FRE pass after
7006 early SRA.
7007
7008 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7009 Andrew Stubbs <ams@codesourcery.com>
7010
7011 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7012 for Cortex-A8.
7013 (arm_movdi_vfp_cortexa8): New pattern.
7014 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7015 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7016 instructions when tuning for Cortex-A8. Set attribute "arch".
7017 * config/arm/arm.md: Move include arm-tune.md up a bit.
7018 (define_attr "arch"): Add "onlya8" and "nota8" values.
7019 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7020
7021 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7022
7023 PR bootstrap/48282
7024 Revert:
7025 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7026
7027 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7028 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7029 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7030 * passes.c (init_optimization_passes): Move
7031 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7032
7033 2011-03-25 Kai Tietz <ktietz@redhat.com>
7034
7035 * c-typeck.c (comptypes_internal): Replace target
7036 hook call of comp_type_attributes by version in tree.c file.
7037 * gimple.c (gimple_types_compatible_p_1): Likewise.
7038 * tree-ssa.c (useless_type_conversion_p): Likewise.
7039 * tree.c (build_type_attribute_qual_variant): Likewise.
7040 (attribute_value_equal): New static helper function.
7041 (comp_type_attributes): New function.
7042 (merge_attributes): Use attribute_value_equal for comparison.
7043 (attribute_list_contained): Likewise.
7044 * tree.h (comp_type_attributes): New prototype.
7045
7046 2011-03-25 Richard Guenther <rguenther@suse.de>
7047
7048 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7049 of complex types at -O0.
7050 (verify_gimple_assign_binary): Likewise.
7051 (verify_gimple_assign_ternary): Likewise.
7052
7053 2011-03-24 Mark Wielaard <mjw@redhat.com>
7054
7055 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7056 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7057
7058 2011-03-24 Mark Wielaard <mjw@redhat.com>
7059
7060 PR debug/48041
7061 * dwarf2out.c (output_abbrev_section): Only write table when
7062 abbrev_die_table_in_use > 1.
7063
7064 2011-02-24 Richard Henderson <rth@redhat.com>
7065
7066 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7067 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7068 (alpha_expand_unaligned_load_words): Use extql.
7069 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7070 (emit_insxl): Handle all modes for consistency.
7071
7072 2011-02-24 Richard Henderson <rth@redhat.com>
7073
7074 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7075 (alpha_expand_unaligned_load): Likewise.
7076 (alpha_expand_unaligned_store): Likewise.
7077 (alpha_expand_unaligned_load_words): Likewise.
7078 (alpha_expand_unaligned_store_words): Likewise.
7079 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7080 (alpha_split_lock_test_and_set_12): Likewise.
7081 (print_operand, alpha_fold_builtin_extxx): Likewise.
7082 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7083 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7084 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7085 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7086 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7087 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7088 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7089 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7090 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7091 (extwl, extll, extql): Similarly.
7092 (inswh, inslh, insqh): Similarly.
7093 (mskbl, mskwl, mskll, mskql): Similarly.
7094 (mskwh, msklh, mskqh): Similarly.
7095
7096 2011-02-24 Richard Henderson <rth@redhat.com>
7097
7098 * config/alpha/alpha.md (attribute isa): Add er, ner.
7099 (attribute enabled): Handle them.
7100 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7101
7102 2011-02-24 Richard Henderson <rth@redhat.com>
7103
7104 * config/alpha/alpha.md (attribute isa): Add vms.
7105 (attribute enabled): Handle it.
7106 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7107 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7108 (*movtf): Rename from *movtf_internal for consistency.
7109 (*movsi): Merge with *movsi_nt_vms.
7110 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7111 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7112 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7113 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7114
7115 2011-02-24 Richard Henderson <rth@redhat.com>
7116
7117 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7118 (extendqisi2, extendhisi2): Likewise.
7119 (extendqidi2): Simplify BWX/non-BWX expansions.
7120 (extendhidi2): Similarly.
7121
7122 2011-02-24 Richard Henderson <rth@redhat.com>
7123
7124 * config/alpha/alpha.md (attribute isa): New.
7125 (attribute enabled): New.
7126 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7127 (zero_extendqisi2, zero_extendqidi2): Similarly.
7128 (zero_extendhisi2, zero_extendhidi2): Similarly.
7129 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7130
7131 2011-02-24 Richard Henderson <rth@redhat.com>
7132
7133 * config/alpha/predicates.md (input_operand): Revert last change;
7134 update comment to mention 32-bit VMS rather than Windows.
7135
7136 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7137
7138 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7139 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7140 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7141 * passes.c (init_optimization_passes): Move
7142 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7143
7144 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7145
7146 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7147
7148 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7149
7150 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7151 correctly.
7152
7153 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7154
7155 PR debug/48204
7156 * simplify-rtx.c (simplify_const_unary_operation): Call
7157 real_convert when changing mode class with FLOAT_EXTEND.
7158
7159 2011-03-24 Nick Clifton <nickc@redhat.com>
7160
7161 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7162 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7163 * config/rx/rx.c (rx_option_override): Set align_jumps,
7164 align_loops and align_labels if not set by the user.
7165 (rx_align_for_label): New function.
7166 (rx_max_skip_for_label): New function.
7167 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7168 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7169 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7170 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7171 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7172
7173 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7174
7175 PR rtl-optimization/48263
7176 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7177 and original commutative_p handling. Use maybe_gen_insn.
7178
7179 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7180
7181 * reload.c (find_reloads_subreg_address): Add address_reloaded
7182 parameter and return true there if the full address has been
7183 reloaded.
7184 (find_reloads_toplev): Pass address_reloaded flag.
7185 (find_reloads_address_1): Don't use address_reloaded parameter.
7186
7187 2011-03-24 Jeff Law <law@redhat.com>
7188
7189 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7190 unused variable "ann".
7191 (remove_unused_locals): Likewise.
7192
7193 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7194 statement.
7195
7196 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7197 after it is freed.
7198
7199 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7200
7201 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7202 for invalid symbolic addresses.
7203 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7204 larl operands.
7205
7206 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7207
7208 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7209 the argument in calls to fold_truth_not_expr.
7210
7211 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7212
7213 * tree.c (record_node_allocation_statistics): New function.
7214 (make_node_stat, copy_node_stat, build_string): Call it.
7215 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7216 (build1_stat, build_omp_clause): Likewise.
7217
7218 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7219
7220 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7221 last commit.
7222
7223 2011-03-24 Richard Guenther <rguenther@suse.de>
7224
7225 PR tree-optimization/48271
7226 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7227 blocks that still exist.
7228
7229 2011-03-24 Richard Guenther <rguenther@suse.de>
7230
7231 PR tree-optimization/48270
7232 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7233 not free datarefs before ddrs.
7234
7235 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7236
7237 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7238 from the address built for a reference with variable offset.
7239
7240 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7241
7242 PR target/48237
7243 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7244 alternatives that can be handled with movq or movabsq insn.
7245 (*movdf_internal): Disable for !TARGET_64BIT.
7246 (*movdf_internal_nointeger): Ditto.
7247 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7248
7249 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7250
7251 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7252 (FUNCTION_ARG_ADVANCE): Likewise.
7253 * tm.texi.in: Change references to them to hook references.
7254 * tm.texi: Regenerate.
7255 * targhooks.c (default_function_arg): Eliminate check for target macro.
7256 (default_function_incoming_arg): Likewise.
7257 (default_function_arg_advance): Likewise.
7258 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7259 (function_arg_advance): Likewise.
7260 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7261
7262 2011-03-24 Richard Guenther <rguenther@suse.de>
7263
7264 PR middle-end/48269
7265 * tree-object-size.c (addr_object_size): Do not double-account
7266 for MEM_REF offsets.
7267
7268 2011-03-24 Diego Novillo <dnovillo@google.com>
7269
7270 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7271 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7272 (lto_input_data_block): Move from lto-opts.c. Make extern.
7273 Update all users.
7274 (lto_input_string): Rename from input_string. Make extern.
7275 Update all users.
7276 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7277 output_string_with_length.
7278 Output 0 to indicate a non-NULL string. Update all callers to
7279 not emit 0.
7280 (lto_output_string): Rename from output_string. Make extern.
7281 Update all users.
7282 (lto_output_decl_state_streams): Make extern.
7283 (lto_output_decl_state_refs): Make extern.
7284 * lto-streamer.h (lto_input_string): Declare.
7285 (lto_input_data_block): Declare.
7286 (lto_output_string): Declare.
7287 (lto_output_string_with_length): Declare.
7288 (lto_output_decl_state_streams): Declare.
7289 (lto_output_decl_state_refs): Declare.
7290
7291 2011-03-24 Richard Guenther <rguenther@suse.de>
7292
7293 PR tree-optimization/46562
7294 * tree.c (build_invariant_address): New function.
7295 * tree.h (build_invariant_address): Declare.
7296 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7297 a renamed function moved ...
7298 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7299 Take valueization callback parameter.
7300 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7301 * gimple-fold.h: New file.
7302 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7303 (ccp_fold, fold_const_aggregate_ref,
7304 fold_ctor_reference, fold_nonarray_ctor_reference,
7305 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7306 get_base_constructor): Move ...
7307 * gimple-fold.c: ... here.
7308 (gimple_fold_stmt_to_constant_1): New function
7309 split out from ccp_fold. Take a valueization callback parameter.
7310 Valueize all operands.
7311 (gimple_fold_stmt_to_constant): New wrapper function.
7312 (fold_const_aggregate_ref_1): New function split out from
7313 fold_const_aggregate_ref. Take a valueization callback parameter.
7314 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7315 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7316 invariant POINTER_PLUS_EXPRs to invariant form.
7317 (vn_valueize): New function.
7318 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7319 * tree-vrp.c (vrp_valueize): New function.
7320 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7321 to fold statements to constants.
7322 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7323 function declarations.
7324 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7325 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7326
7327 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7328
7329 * config/h8300/predicates.md (jump_address_operand): Fix register
7330 mode check.
7331
7332 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7333
7334 * doc/invoke.texi (max-stores-to-sink): Document.
7335 * params.h (MAX_STORES_TO_SINK): Define.
7336 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7337 if either vectorization or if-conversion is disabled.
7338 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7339 tree-vect-data-refs.c vect_equal_offsets.
7340 (dr_equal_offsets_p): New function.
7341 (find_data_references_in_bb): Remove static.
7342 * tree-data-ref.h (find_data_references_in_bb): Declare.
7343 (dr_equal_offsets_p): Likewise.
7344 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7345 (vect_drs_dependent_in_basic_block): Update calls to
7346 vect_equal_offsets.
7347 (vect_check_interleaving): Likewise.
7348 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7349 (cond_if_else_store_replacement): Rename to...
7350 (cond_if_else_store_replacement_1): ... this. Change arguments and
7351 documentation.
7352 (cond_if_else_store_replacement): New function.
7353 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7354 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7355
7356 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7357
7358 PR target/46934
7359 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7360 to subtract lower bound instead of GEN_INT().
7361
7362 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7363
7364 PR other/48179
7365 PR other/48221
7366 PR other/48234
7367 * doc/extend.texi (Alignment): Move section to match order in TOC.
7368 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7369 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7370
7371 2011-03-23 Jeff Law <law@redhat.com>
7372
7373 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7374 before removing the edge.
7375
7376 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7377 it may have been freed by redirect_branch_edge or
7378 redirect_edge_succ_nodup.
7379
7380 2011-03-23 Richard Guenther <rguenther@suse.de>
7381
7382 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7383 (check_va_list_escapes): Likewise.
7384 (check_all_va_list_escapes): Likewise.
7385
7386 2011-03-23 Richard Guenther <rguenther@suse.de>
7387
7388 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7389 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7390 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7391 (alias.o): Likewise.
7392 (ipa-type-escape.o): Remove.
7393 (ipa-struct-reorg.o): Likewise.
7394 (GTFILES): Remove ipa-struct-reorg.c.
7395 * alias.c: Do not include ipa-type-escape.h.
7396 * tree-ssa-alias.c: Likewise.
7397 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7398 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7399 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7400 and ipa-type-escape passes.
7401 * tree-pass.h (pass_ipa_type_escape): Remove.
7402 (pass_ipa_struct_reorg): Likewise.
7403 * ipa-struct-reorg.h: Remove.
7404 * ipa-struct-reorg.c: Likewise.
7405 * ipa-type-escape.h: Likewise.
7406 * ipa-type-escape.c: Likewise.
7407 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7408 (--param struct-reorg-cold-struct-ratio): Likewise.
7409 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7410 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7411 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7412
7413 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7414
7415 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7416 cpu attribute value.
7417 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7418 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7419 * config/s390/s390.c (processor_flags_table): New constant array.
7420 (s390_handle_arch_option): Remove.
7421 (s390_handle_option): Remove s390_handle_arch_option invocations
7422 and OPT_mwarn_framesize_ handling.
7423 (s390_option_override): Remove s390_handle_arch_option invocation.
7424 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7425 warnings.
7426 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7427 * config/s390/s390.opt (s390_tune, s390_arch)
7428 (march=): Replace s390_arch_option enum and values with
7429 processor_type. Set variable name to s390_arch. Set
7430 initialization value.
7431 (mtune=): Replace s390_arch_option with processor_type. Set
7432 variable name to s390_tune. Set initialization value.
7433
7434 2011-03-23 Julian Brown <julian@codesourcery.com>
7435
7436 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7437 accesses which are not naturally aligned.
7438
7439 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7440
7441 PR target/47553
7442 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7443
7444 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7445
7446 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7447 parameter from "int" to "enum insn_code".
7448 (expand_operand_type): New enum.
7449 (expand_operand): New structure.
7450 (create_expand_operand): New function.
7451 (create_fixed_operand, create_output_operand): Likewise
7452 (create_input_operand, create_convert_operand_to): Likewise.
7453 (create_convert_operand_from, create_address_operand): Likewise.
7454 (create_integer_operand): Likewise.
7455 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7456 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7457 (expand_insn, expand_jump_insn): Likewise.
7458 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7459 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7460 (expand_movstr, expand_builtin___clear_cache): Likewise.
7461 (expand_builtin_lock_release): Likewise.
7462 * explow.c (allocate_dynamic_stack_space): Likewise.
7463 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7464 and use the default handling in that case.
7465 * expmed.c (check_predicate_volatile_ok): Delete.
7466 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7467 (emit_cstore): Likewise.
7468 * expr.c (emit_block_move_via_movmem): Likewise.
7469 (set_storage_via_setmem, expand_assignment): Likewise.
7470 (emit_storent_insn, try_casesi): Likewise.
7471 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7472 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7473 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7474 (expand_twoval_unop, expand_twoval_binop): Likewise.
7475 (expand_unop_direct, emit_indirect_jump): Likewise.
7476 (emit_conditional_move, vector_compare_rtx): Likewise.
7477 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7478 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7479 (expand_sync_lock_test_and_set): Likewise.
7480 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7481 (emit_unop_insn): Likewise.
7482 (expand_copysign_absneg): Change icode to an insn_code.
7483 (create_convert_operand_from_type): New function.
7484 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7485 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7486 (expand_insn, expand_jump_insn): Likewise.
7487 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7488 than const_int_operand for operand 2.
7489
7490 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7491
7492 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7493 if possible.
7494
7495 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7496
7497 * emit-rtl.c (emit_pattern_before_noloc): New function.
7498 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7499 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7500 (emit_pattern_after_noloc): New function.
7501 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7502 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7503
7504 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7505
7506 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7507 (__ffsDI2): Likewise.
7508
7509 2011-03-22 Richard Henderson <rth@redhat.com>
7510
7511 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7512 of !TARGET_ABI_OPEN_VMS.
7513 (alpha_trampoline_init, alpha_start_function): Likewise.
7514 (alpha_expand_epilogue, alpha_file_start): Likewise.
7515 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7516 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7517 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7518 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7519 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7520
7521 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7522
7523 * config/s390/s390-opts.h: New.
7524 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7525 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7526 s390_stack_guard): Remove.
7527 (s390_handle_arch_option): Return void. Take enum
7528 s390_arch_option value instead of string and searching array.
7529 (s390_handle_option): Don't assert that global structures are in
7530 use. Access variables via opts pointer. Use error_at. Don't use
7531 sscanf for -mstack-guard= or -mstack-size=. Update call to
7532 s390_handle_arch_option.
7533 (s390_option_override): Update call to s390_handle_arch_option.
7534 (s390_emit_prologue): Use %d format for s390_stack_size in
7535 diagnostic. Use %wd for HOST_WIDE_INT.
7536 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7537 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7538 * config/s390/s390.opt (config/s390/s390-opts.h): New
7539 HeaderInclude entry.
7540 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7541 s390_arch_flags, s390_warn_framesize): New Variable entries.
7542 (s390_arch_option): New Enum and EnumValue entries.
7543 (march=): Use Enum instead of Var.
7544 (mstack-guard=, mstack-size=): Use UInteger and Var.
7545 (mtune=): Use Enum.
7546
7547 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7548
7549 * config/score/score.c (score_handle_option): Don't assert that
7550 global structures are in use. Access target_flags via opts
7551 pointer. Use value of -march= option to determine target_flags
7552 settings.
7553 * config/score/score.opt (march=): Use Enum.
7554 (score_arch): New Enum and EnumValue entries.
7555
7556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7557
7558 * config/mep/mep.c (option_mtiny_specified): Remove.
7559 (mep_option_override): Move register handling for -mivc2 from
7560 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7561 instead of option_mtiny_specified.
7562 (mep_handle_option): Access target_flags via opts pointer. Don't
7563 assert that global structures are in use. Defer part of -mivc2
7564 handling and move it to mep_option_override.
7565 * config/mep/mep.opt (IVC2): New Mask entry.
7566 (mivc2): Use Var and Defer instead of Mask.
7567
7568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7569
7570 * config/v850/v850-opts.h: New.
7571 * config/v850/v850.c (small_memory): Replace with
7572 small_memory_physical_max array. Make that array static const.
7573 (v850_handle_memory_option): Take integer value of argument. Take
7574 gcc_options pointer, option text and location. Return void.
7575 Update for changes to small memory structures.
7576 (v850_handle_option): Access target_flags via opts pointer. Don't
7577 assert that global structures are in use. Update calls to
7578 v850_handle_memory_option.
7579 (v850_encode_data_area): Update references to small memory settings.
7580 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7581 (enum small_memory_type): Move to v850-opts.h.
7582 * config/v850/v850.opt (config/v850/v850-opts.h): New
7583 HeaderInclude entry.
7584 (small_memory_max): New Variable entry.
7585 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7586 (mtda, mzda): Likewise.
7587
7588 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7589
7590 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7591 pointer. Don't assert that global structures are in use.
7592
7593 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7594
7595 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7596 via opts pointer. Don't assert that global structures are in use.
7597
7598 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7599
7600 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7601 (munix=93): Use Var.
7602 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7603 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7604 * config/pa/pa-opts.h: New.
7605 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7606 (pa_handle_option): Don't assert that global structures are in
7607 use. Access target_flags via opts pointer. Don't handle
7608 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7609 OPT_munix_98 here.
7610 (pa_option_override): Handle deferred OPT_mfixed_range_.
7611
7612 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7613
7614 * config/mn10300/mn10300-opts.h: New.
7615 * config/mn10300/mn10300.c (mn10300_processor,
7616 mn10300_tune_string): Remove.
7617 (mn10300_handle_option): Don't assert that global structures are
7618 in use. Access mn10300_processor via opts pointer. Don't handle
7619 OPT_mtune_ here.
7620 * config/mn10300/mn10300.h (enum processor_type): Move to
7621 mn10300-opts.h.
7622 (mn10300_processor): Remove.
7623 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7624 HeaderInclude entry.
7625 (mn10300_processor): New Variable entry.
7626 (mtune=): Use Var.
7627
7628 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7629
7630 * config/microblaze/microblaze.c: Don't include opts.h.
7631 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7632 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7633 (mno-clearbss): Use Var and Warn.
7634
7635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7636
7637 * config/m32r/m32r-opts.h: New.
7638 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7639 (m32r_handle_option): Don't assert that global structures are in
7640 use. Access target_flags and m32r_cache_flush_func via opts
7641 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7642 OPT_mno_flush_trap here.
7643 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7644 include of m32r-opts.h.
7645 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7646 HeaderInclude entry.
7647 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7648 (mmodel=): Use Enum and Var.
7649 (m32r_model): New Enum and EnumValue entries.
7650 (mno-flush-trap): Use Var.
7651 (msdata=): Use Enum and Var.
7652 (m32r_sdata): New Enum and EnumValue entries.
7653
7654 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7655
7656 * config/m32c/m32c.c: Don't include opts.h.
7657 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7658 m32c_handle_option): Remove.
7659 (m32c_option_override): Check global_options_set.x_target_memregs
7660 instead of target_memregs_set.
7661 * config/m32c/m32c.h (target_memregs): Remove.
7662 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7663 variable.
7664
7665 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7666
7667 * config/iq2000/iq2000-opts.h: New.
7668 * config/iq2000/iq2000.c: Don't include opts.h.
7669 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7670 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7671 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7672 HeaderInclude entry.
7673 (iq2000_tune): New Variable entry.
7674 (march=): Add comment. Use Enum.
7675 (iq2000_arch): New Enum and EnumValue entries.
7676 (mcpu=): Use Enum and Var.
7677 (iq2000_tune): New Enum and EnumValue entries.
7678
7679 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7680
7681 * config/ia64/ia64-opts.h: New.
7682 * config/ia64/ia64.c (ia64_tune): Remove.
7683 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7684 here. Use error_at.
7685 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7686 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7687 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7688 HeaderInclude entry.
7689 (ia64_tune): New Variable entry.
7690 (mfixed-range=): Use Defer and Var.
7691 (mtune=): Use Enum and Var.
7692 (ia64_tune): New Enum and EnumValue entries.
7693
7694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7695
7696 * config/frv/frv-opts.h: New.
7697 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7698 frv-opts.h.
7699 (frv_cpu_type): Remove.
7700 * config/frv/frv.c: Don't include opts.h.
7701 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7702 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7703 (frv_cpu_type): New Variable entry.
7704 (frv_cpu): New Enum and EnumValue entries.
7705
7706 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7707
7708 * config/cris/cris.c (cris_handle_option): Access target_flags via
7709 opts pointer. Don't assert that global structures are in use.
7710 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7711 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7712
7713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7714
7715 * config/bfin/bfin-opts.h: New.
7716 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7717 bfin_si_revision, bfin_workarounds): Remove.
7718 (bfin_cpus): Make static const.
7719 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7720 not bfin_lib_id_given.
7721 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7722 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7723 pointer. Use error_at. Don't assert that global structures are in use.
7724 * config/bfin/bfin.h: Include bfin-opts.h.
7725 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7726 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7727 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7728 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7729 entries.
7730
7731 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7732
7733 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7734 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7735 or -msoft-float here.
7736 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7737 -msoft-float and -mhard-float.
7738 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7739 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7740 msoft-float.
7741 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7742 -msoft-float.
7743 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7744 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7745 not mhard-float.
7746 (LIBGCC_SPEC): Don't handle -msoft-float.
7747 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7748 -mhard-float.
7749 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7750 msoft-float.
7751 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7752 -mfloat-abi=*, not -msoft-float and -mhard-float.
7753 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7754 -msoft-float.
7755 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7756 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7757 mhard-float and msoft-float.
7758 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7759 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7760 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7761 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7762 mhard-float.
7763 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7764 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7765 msoft-float.
7766 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7767 not mhard-float.
7768 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7769 not msoft-float.
7770
7771 2011-03-22 Richard Henderson <rth@redhat.com>
7772
7773 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7774 TARGET_ABI_WINDOWS_NT.
7775 (alpha_output_function_end_prologue): Likewise.
7776 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7777 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7778 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7779 (trap, *movsi_nt_vms): Likewise.
7780 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7781 (*tablejump_osf_nt_internal): Remove.
7782 * config/alpha/predicates.md (input_operand): Only test Pmode.
7783
7784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7785
7786 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7787 via opts pointer. Use error_at. Don't assert that global
7788 structures are in use.
7789
7790 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7791
7792 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7793 (ix86_handle_option): Access ix86_isa_flags and
7794 ix86_isa_flags_explicit via opts pointer. Don't assert that
7795 global structures are in use.
7796 (ix86_function_specific_save, ix86_function_specific_restore):
7797 Update ix86_isa_flags_explicit field name.
7798 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7799 (ix86_isa_flags_explicit): Rename TargetSave entry to
7800 x_ix86_isa_flags_explicit.
7801
7802 2011-03-22 Richard Henderson <rth@redhat.com>
7803
7804 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7805 (alpha_option_override, direct_return): Likewise.
7806 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7807 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7808 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7809 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7810 (alpha_expand_epilogue, alpha_end_function): Likewise.
7811 (alpha_init_libfuncs): Likewise.
7812 (struct machine_function): Remove unicosmk members.
7813 (print_operand) ['t']: Remove.
7814 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7815 unicosmk_output_module_name, unicosmk_output_common,
7816 current_section_align, unicosmk_output_text_section_asm_op,
7817 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7818 unicosmk_section_type_flags, unicosmk_unique_section,
7819 unicosmk_asm_named_section, unicosmk_insert_attributes,
7820 unicosmk_output_align, unicosmk_defer_case_vector,
7821 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7822 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7823 unicosmk_output_ssib, unicosmk_add_call_info_word,
7824 unicosmk_extern_head, unicosmk_output_default_externs,
7825 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7826 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7827 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7828 * config/alpha/alpha-protos.h: Update.
7829 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7830 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7831 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7832 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7833 (*mulsi_se, mulvsi3): Likewise.
7834 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7835 (*divmodsi_internal, call, call_value, realign): Likewise.
7836 (moddi3, umoddi3): Likewise; remove duplicate expander.
7837 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7838 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7839 (*movdi_nofix): Remove r/U alternative.
7840 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7841 * config/alpha/constraints.md ("U"): Remove.
7842 * config/alpha/predicates.md (call_operand"): Don't test
7843 TARGET_ABI_UNICOSMK.
7844
7845 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7846
7847 * target.def (handle_option): Take gcc_options and
7848 cl_decoded_option pointers and location_t.
7849 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7850 * doc/tm.texi: Regenerate.
7851 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7852 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7853 * lto-opts.c (lto_reissue_options): Generate option structure for
7854 targetm.handle_option call.
7855 * opts.c (target_handle_option): Update call to
7856 targetm.handle_option. Remove assertions about values now passed
7857 down to hook.
7858 * targhooks.c (default_target_handle_option): New.
7859 * targhooks.h (default_target_handle_option): Declare.
7860 * config/alpha/alpha.c: Include opts.h.
7861 (alpha_handle_option): Update to new hook interface.
7862 * config/arm/arm.c: Include opts.h.
7863 (arm_handle_option): Update to new hook interface.
7864 * config/arm/t-arm (arm.o): Update dependencies.
7865 * config/bfin/bfin.c: Include opts.h.
7866 (bfin_handle_option): Update to new hook interface.
7867 * config/cris/cris.c: Include opts.h.
7868 (cris_handle_option): Update to new hook interface.
7869 * config/frv/frv.c: Include opts.h.
7870 (frv_handle_option): Update to new hook interface.
7871 * config/i386/i386.c: Include opts.h.
7872 (ix86_handle_option): Update to new hook interface.
7873 (ix86_valid_target_attribute_inner_p): Generate option structure
7874 for call to ix86_handle_option.
7875 * config/i386/t-i386 (i386.o): Update dependencies.
7876 * config/ia64/ia64.c: Include opts.h.
7877 (ia64_handle_option): Update to new hook interface.
7878 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7879 * config/iq2000/iq2000.c: Include opts.h.
7880 (iq2000_handle_option): Update to new hook interface.
7881 * config/m32c/m32c.c: Include opts.h.
7882 (m32c_handle_option): Update to new hook interface.
7883 * config/m32r/m32r.c: Include opts.h.
7884 (m32r_handle_option): Update to new hook interface.
7885 * config/m68k/m68k.c: Include opts.h.
7886 (m68k_handle_option): Update to new hook interface.
7887 * config/mep/mep.c: Include opts.h.
7888 (mep_handle_option): Update to new hook interface.
7889 * config/microblaze/microblaze.c: Include opts.h.
7890 (microblaze_handle_option): Update to new hook interface.
7891 * config/mips/mips.c: Include opts.h.
7892 (mips_handle_option): Update to new hook interface.
7893 * config/mn10300/mn10300.c: Include opts.h.
7894 (mn10300_handle_option): Update to new hook interface.
7895 * config/pa/pa.c: Include opts.h.
7896 (pa_handle_option): Update to new hook interface.
7897 * config/pdp11/pdp11.c: Include opts.h.
7898 (pdp11_handle_option): Update to new hook interface.
7899 * config/rs6000/rs6000.c: Include opts.h.
7900 (rs6000_handle_option): Update to new hook interface.
7901 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7902 * config/rx/rx.c: Include opts.h.
7903 (rx_handle_option): Update to new hook interface.
7904 * config/s390/s390.c: Include opts.h.
7905 (s390_handle_option): Update to new hook interface.
7906 * config/score/score.c: Include opts.h.
7907 (score_handle_option): Update to new hook interface.
7908 * config/sh/sh.c: Include opts.h.
7909 (sh_handle_option): Update to new hook interface.
7910 * config/sparc/sparc.c: Include opts.h.
7911 (sparc_handle_option): Update to new hook interface.
7912 * config/v850/v850.c: Include opts.h.
7913 (v850_handle_option): Update to new hook interface.
7914
7915 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7916
7917 * gcc.c (driver_unknown_option_callback): Only permit and save
7918 unknown -Wno- options.
7919 (driver_wrong_lang_callback): Save options directly instead of via
7920 driver_unknown_option_callback.
7921
7922 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7923
7924 * combine.c (simplify_set): Try harder to find the best CC mode when
7925 simplifying a nested COMPARE on the RHS.
7926
7927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7928
7929 * config/alpha/gnu.h: Remove.
7930 * config/arc: Remove directory.
7931 * config/arm/netbsd.h: Remove.
7932 * config/arm/t-pe: Remove.
7933 * config/crx: Remove directory.
7934 * config/i386/netbsd.h: Remove.
7935 * config/m68hc11: Remove directory.
7936 * config/m68k/uclinux-oldabi.h: Remove.
7937 * config/mcore/mcore-pe.h: Remove.
7938 * config/mcore/t-mcore-pe: Remove.
7939 * config/netbsd-aout.h: Remove.
7940 * config/rs6000/gnu.h: Remove.
7941 * config/sh/sh-symbian.h: Remove.
7942 * config/sh/symbian-base.c: Remove.
7943 * config/sh/symbian-c.c: Remove.
7944 * config/sh/symbian-cxx.c: Remove.
7945 * config/sh/symbian-post.h: Remove.
7946 * config/sh/symbian-pre.h: Remove.
7947 * config/sh/t-symbian: Remove.
7948 * config/svr3.h: Remove.
7949 * config/vax/netbsd.h: Remove.
7950 * config.build: Don't handle i[34567]86-*-pe.
7951 * config.gcc: Remove handling of deprecations for most deprecated
7952 targets.
7953 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7954 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7955 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7956 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7957 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7958 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7959 Remove cases.
7960 * config.host: Don't handle i[34567]86-*-pe.
7961 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7962 (ASM_SPEC32): Don't handle -mcall-gnu.
7963 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7964 -mcall-gnu.
7965 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7966 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7967 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7968 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7969 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7970 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7971 conditional on SYMBIAN.
7972 * configure.ac: Don't handle powerpc*-*-gnu*.
7973 * configure: Regenerate.
7974 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7975 * doc/install-old.texi (m6811, m6812): Don't mention.
7976 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7977 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7978 (m68k-uclinuxoldabi): Don't mention.
7979 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7980 Remove.
7981 (-mcall-gnu): Remove.
7982 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7983 families): Remove constraint documentation.
7984
7985 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7986
7987 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7988 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7989 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7990
7991 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7992
7993 PR target/48226
7994 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7995 vector when peeking at the next token for vector, don't expand the
7996 keywords.
7997
7998 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7999
8000 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8001 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8002 * config/avr/avr.c (init_cumulative_args)
8003 (avr_function_arg_advance): Use it.
8004 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8005 sibcall epilogues.
8006 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8007 (avr_function_ok_for_sibcall): ...this new function.
8008 (avr_lookup_function_attribute1): New static Function.
8009 (avr_naked_function_p, interrupt_function_p)
8010 (signal_function_p, avr_OS_task_function_p)
8011 (avr_OS_main_function_p): Use it.
8012 * config/avr/avr.md ("sibcall", "sibcall_value")
8013 ("sibcall_epilogue"): New expander.
8014 ("*call_insn", "*call_value_insn"): New insn.
8015 ("call_insn", "call_value_insn"): Remove
8016 ("call", "call_value", "epilogue"): Change expander to handle
8017 sibling calls.
8018
8019 2011-03-21 Nick Clifton <nickc@redhat.com>
8020
8021 * doc/invoke.texi (Overall Options): Move closing brace to end of
8022 options list.
8023 (Optimization Options): Add missing @gol.
8024 (Directory Options): Likewise.
8025 (i386 and x86-64 Options): Likewise.
8026 (RS6000 and PowerPC Options): Likewise.
8027 (i386 and x86-64 Windows Options): Likewise.
8028 (V850 Options): Add text missing from descriptions.
8029
8030 2011-03-22 Richard Henderson <rth@redhat.com>
8031
8032 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8033 (avr_incoming_return_addr_rtx): New.
8034 (emit_push_byte): New.
8035 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8036 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8037 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8038 (emit_pop_byte): New.
8039 (expand_epilogue): Use it. Pop frame pointer by bytes.
8040 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8041 (INCOMING_RETURN_ADDR_RTX): New.
8042 (INCOMING_FRAME_SP_OFFSET): New.
8043 (ARG_POINTER_CFA_OFFSET): New.
8044 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8045 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8046 (pophi): Remove.
8047
8048 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8049
8050 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8051
8052 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8053 (FUNCTION_ARG_ADVANCE): Likewise.
8054 * tm.texi.in: Change references to them to hook references.
8055 * tm.texi: Regenerate.
8056 * targhooks.c (default_function_arg): Eliminate check for target
8057 macro.
8058 (default_function_incoming_arg): Likewise.
8059 (default_function_arg_advance): Likewise.
8060 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8061 (function_arg_advance): Likewise.
8062 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8063
8064 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8065
8066 * tree.c (build_call_1): New function.
8067 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8068
8069 2011-03-22 Richard Guenther <rguenther@suse.de>
8070
8071 PR tree-optimization/48228
8072 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8073 for single-arg PHIs.
8074
8075 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8076
8077 PR rtl-optimization/48143
8078 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8079 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8080 sse2_cvtps2pd): Likewise.
8081
8082 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8083
8084 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8085
8086 2011-03-22 Richard Guenther <rguenther@suse.de>
8087
8088 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8089 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8090 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8091 and REALIGN_LOAD_EXPR.
8092 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8093 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8094 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8095 DOT_PROD_EXPR case ...
8096 (expand_expr_real_2): ... here.
8097 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8098 and REALIGN_LOAD_EXPR.
8099 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8100 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8101 (vect_create_epilog_for_reduction): Likewise.
8102 (vectorizable_reduction): Likewise.
8103 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8104 * tree-vect-stmts.c (vectorizable_load): Likewise.
8105
8106 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8107
8108 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8109
8110 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8111
8112 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8113 handling for PLTOFF/GOTOFF.
8114
8115 2011-03-22 Nick Clifton <nickc@redhat.com>
8116
8117 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8118 trailing backslash from the end of the macro definition.
8119
8120 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8121
8122 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8123 and PLT unspecs.
8124
8125 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8126
8127 * expr.h (prepare_operand): Move to...
8128 * optabs.h (prepare_operand): ...here and change the insn code
8129 parameter from "int" to "enum insn_code".
8130 (insn_operand_matches): Declare.
8131 * expr.c (init_expr_target): Use insn_operand_matches.
8132 (compress_float_constant): Likewise.
8133 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8134 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8135 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8136 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8137 Likewise.
8138 (gen_cond_trap): Likewise.
8139 (prepare_operand): Likewise. Change icode to an insn_code.
8140 (insn_operand_matches): New function.
8141 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8142 * reload1.c (gen_reload): Likewise.
8143 * targhooks.c (default_secondary_reload): Likewise.
8144
8145 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8146
8147 * config/alpha/alpha.md (unspec): New define_c_enum.
8148 (unspecv): Ditto.
8149
8150 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8151
8152 PR debug/48214
8153 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8154 between a call and its CALL_ARG_LOCATION note.
8155
8156 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8157
8158 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8159
8160 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8161
8162 PR c/42544
8163 PR c/48197
8164 * c-common.c (shorten_compare): If primopN is first sign-extended
8165 to opN and then zero-extended to result type, set primopN to opN.
8166
8167 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8168
8169 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8170 for barrier handlers.
8171
8172 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8173
8174 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8175 UNSPEC constants to be in the unspec enumeration, and redefine
8176 all UNSPECV constants to be in the unspecv enumeration, so that
8177 dumps print which unspec/unspec_volatile this is.
8178 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8179 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8180 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8181 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8182 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8183
8184 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8185 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8186 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8187 * config/rs6000/sync.md (isync, lwsync): Ditto.
8188
8189 2011-03-21 Richard Guenther <rguenther@suse.de>
8190
8191 * params.def (lto-min-partition): Fix typo.
8192
8193 2011-03-21 Richard Guenther <rguenther@suse.de>
8194
8195 PR c/47939
8196 * c-decl.c (grokdeclarator): Drop to the main variant only
8197 for array types. Drop flag_gen_aux_info check.
8198
8199 2011-03-21 Richard Guenther <rguenther@suse.de>
8200
8201 PR translation/47911
8202 * params.def (lto-partitions): Fix typo.
8203 (lto-min-partition): Fix wording.
8204
8205 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8206
8207 * config/rs6000/t-freebsd: Remove duplication from file.
8208
8209 2011-03-21 Richard Guenther <rguenther@suse.de>
8210
8211 PR middle-end/47661
8212 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8213
8214 2011-03-21 Richard Guenther <rguenther@suse.de>
8215
8216 PR lto/48210
8217 * params.def (lto-partitions): Require at least 1 partition.
8218
8219 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8220
8221 * gthr-solaris.h: Remove.
8222 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8223 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8224 (LIB_SPEC): Likewise.
8225 * config/sol2.opt (threads): Remove.
8226 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8227 (sparc*-*-solaris2*): Likewise.
8228 * configure.ac (enable_threads): Enable solaris support.
8229 * configure: Regenerate.
8230 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8231 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8232 solaris.
8233
8234 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8235
8236 * config.gcc: Obsolete *-*-solaris2.8*.
8237 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8238
8239 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8240
8241 PR bootstrap/48135
8242 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8243 reference. Solaris 8 perl works.
8244
8245 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8246
8247 PR bootstrap/48135
8248 * doc/install.texi (Prerequisites): Move jar etc. up.
8249 Explain support library version requirements.
8250
8251 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8252
8253 PR bootstrap/48135
8254 * doc/install.texi (Prerequisites): Move Perl to build
8255 requirements. Always necessary on Solaris 2 with Sun ld.
8256
8257 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8258
8259 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8260 binutils 2.21.
8261 (Specific, i?86-*-solaris2.[89]): Likewise.
8262 (Specific, i?86-*-solaris2.10): Likewise.
8263 (Specific, mips-sgi-irix6): Likewise.
8264 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8265 Update for binutils 2.21.
8266
8267 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8268
8269 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8270 Allow -fuse-linker-plugin for non-default plugin linker.
8271 * configure: Regenerate.
8272
8273 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8274
8275 PR bootstrap/48167
8276 * gengtype.c (files_rules): Added rule for cp/parser.h.
8277
8278 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8279
8280 PR target/48213
8281 * config/s390/s390.c (s390_delegitimize_address): Don't call
8282 lowpart_subreg if orig_x has BLKmode.
8283
8284 2011-03-21 Kai Tietz <ktietz@redhat.com>
8285
8286 PR target/12171
8287 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8288 * tree.h (attribute_spec): Add new member affects_type_identity.
8289 * attribs.c (empty_attribute_table): Adjust attribute_spec
8290 initializers.
8291 * config/alpha/alpha.c: Likewise.
8292 * config/arc/arc.c: Likewise.
8293 * config/arm/arm.c: Likewise.
8294 * config/avr/avr.c: Likewise.
8295 * config/bfin/bfin.c: Likewise.
8296 * config/crx/crx.c: Likewise.
8297 * config/darwin.h: Likewise.
8298 * config/h8300/h8300.c: Likewise.
8299 * config/i386/cygming.h: Likewise.
8300 * config/i386/i386.c: Likewise.
8301 * config/ia64/ia64.c: Likewise.
8302 * config/m32c/m32c.c: Likewise.
8303 * config/m32r/m32r.c: Likewise.
8304 * config/m68hc11/m68hc11.c: Likewise.
8305 * config/m68k/m68k.c: Likewise.
8306 * config/mcore/mcore.c: Likewise.
8307 * config/mep/mep.c: Likewise.
8308 * config/microblaze/microblaze.c: Likewise.
8309 * config/mips/mips.c: Likewise.
8310 * config/rs6000/rs6000.c: Likewise.
8311 * config/rx/rx.c: Likewise.
8312 * config/sh/sh.c: Likewise.
8313 * config/sol2.h: Likewise.
8314 * config/sparc/sparc.c: Likewise.
8315 * config/spu/spu.c: Likewise.
8316 * config/stormy16/stormy16.c: Likewise.
8317 * config/v850/v850.c: Likewise.
8318
8319 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8320
8321 * simplify-rtx.c (simplify_binary_operation_1): Handle
8322 (xor (and A B) C) case when B and C are both constants.
8323
8324 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8325
8326 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8327
8328 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8329
8330 PR bootstrap/48168
8331 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8332
8333 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8334
8335 PR rtl-optimization/48156
8336 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8337 assume df and df_lr are not NULL.
8338
8339 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8340
8341 PR debug/48023
8342 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8343 between a call and its CALL_ARG_LOCATION note.
8344
8345 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8346
8347 PR debug/48178
8348 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8349 between a call and its corresponding CALL_ARG_LOCATION note.
8350
8351 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8352
8353 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8354 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8355 * haifa-sched.c (setup_ref_regs): Ditto.
8356 * caller-save.c (add_used_regs_1): Ditto.
8357 * dse.c (look_for_hardregs): Ditto.
8358 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8359 * sched-rgn.c (check_live_1): Ditto.
8360
8361 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8362
8363 * c-decl.c (diagnose_mismatched_decls): Give an error for
8364 redefining a typedef with variably modified type.
8365
8366 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8367
8368 * c-decl.c (grokfield): Don't allow typedefs for structures or
8369 unions with no tag by default.
8370 * doc/extend.texi (Unnamed Fields): Update.
8371
8372 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8373
8374 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8375 Rewrite using indirect functions.
8376 (lwp_slwpcb): Ditto.
8377 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8378 (avx_vinsertf128<mode>): Ditto.
8379
8380 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8381
8382 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8383 unspecs.
8384
8385 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8386
8387 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8388 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8389
8390 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8391
8392 PR rtl-optimization/48170
8393 * gcse.c (hoist_code): Remove bogus asserts.
8394
8395 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8396
8397 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8398 computation for prologue/epilogue.
8399
8400 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8401
8402 * Makefile.in (check-consistency): Remove.
8403
8404 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8405
8406 PR debug/48176
8407 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8408 arange_table_in_use is 0, but either text_section_used or
8409 cold_text_section_used is true. Don't call it if
8410 !info_section_emitted.
8411
8412 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8413
8414 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8415 FUNCTION_VALUE_REGNO_P): Remove.
8416 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8417 Remove.
8418 * config/avr/avr.c (avr_ret_register): Make static inline.
8419 (avr_function_value_regno_p): New function.
8420 (avr_libcall_value): Make static. Add 'func' argument.
8421 (avr_function_value): Make static. Rename 'func' argument to
8422 'fn_decl_or_type', forward it to avr_libcall_value. Call
8423 avr_ret_register function instead of RET_REGISTER macro.
8424 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8425
8426 2011-03-18 Jason Merrill <jason@redhat.com>
8427
8428 PR c++/23372
8429 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8430
8431 2011-03-18 Richard Guenther <rguenther@suse.de>
8432
8433 * doc/install.texi (--enable-gold): Remove.
8434 (--with-plugin-ld): Document.
8435 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8436
8437 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8438
8439 PR middle-end/47790
8440 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8441 again after expansion changes.
8442
8443 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8444
8445 * combine.c (try_combine): Do simplification only call of
8446 subst() on i2 even when i1 is present. Update comments.
8447
8448 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8449
8450 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8451 and UNSPEC_PCREL_SYMOFF.
8452
8453 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8454
8455 * config/s390/s390.md: Use define_c_enum for the unspec constant
8456 definitions.
8457
8458 2011-03-18 Richard Henderson <rth@redhat.com>
8459 Jakub Jelinek <jakub@redhat.com>
8460
8461 PR bootstrap/48161
8462 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8463 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8464
8465 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8466
8467 PR middle-end/47725
8468 * combine.c (cant_combine_insn_p): Don't check zero/sign
8469 extended hard registers.
8470
8471 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8472
8473 PR middle-end/47725
8474 * combine.c (cant_combine_insn_p): Check zero/sign extended
8475 hard registers.
8476
8477 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8478
8479 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8480 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8481 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8482 Change return type to bool.
8483 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8484
8485 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8486
8487 PR debug/48163
8488 * var-tracking.c (prepare_call_arguments): If CALL target
8489 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8490 pc instead of looking it up using cselib_lookup and use
8491 Pmode for it if x has VOIDmode.
8492 * dwarf2out.c (gen_subprogram_die): If also both first and
8493 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8494
8495 PR debug/48163
8496 * function.c (assign_parms): For data.passed_pointer parms
8497 use MEM of data.entry_parm instead of data.entry_parm itself
8498 as DECL_INCOMING_RTL.
8499 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8500 also when passed and declared mode is the same, DECL_RTL
8501 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8502 a MEM too.
8503
8504 2011-03-16 Jeff Law <law@redhat.com>
8505
8506 PR rtl-optimization/37273
8507 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8508 handle them like argument loads from stack slots. Do not double
8509 count memory for memory constants and argument loads from stack slots.
8510
8511 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8512
8513 PR debug/48160
8514 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8515
8516 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8517
8518 PR target/48171
8519 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8520
8521 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8522
8523 PR bootstrap/48153
8524 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8525 if dwarf_strict.
8526 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8527 Clear call_arg_locations and call_arg_loc_last always.
8528
8529 PR middle-end/48152
8530 * var-tracking.c (prepare_call_arguments): If argument needs to be
8531 passed by reference, adjust argtype and mode.
8532
8533 2011-03-17 Richard Guenther <rguenther@suse.de>
8534
8535 PR middle-end/48134
8536 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8537 a value make sure to fold the statement.
8538
8539 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8540
8541 PR target/43872
8542 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8543 return condition with !cfun->calls_alloca.
8544
8545 2011-03-17 Richard Guenther <rguenther@suse.de>
8546
8547 PR bootstrap/48148
8548 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8549 origin for decls in other ltrans units.
8550 (input_varpool_node): Likewise.
8551
8552 2011-03-17 Richard Guenther <rguenther@suse.de>
8553
8554 PR middle-end/48165
8555 * tree-object-size.c (compute_object_offset): Properly return
8556 the offset operand of MEM_REFs as sizetype.
8557
8558 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8559
8560 PR rtl-optimization/48141
8561 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8562 * dse.c: Include params.h.
8563 (active_local_stores_len): New variable.
8564 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8565 to NULL.
8566 (record_store, check_mem_read_rtx): Decrease it when removing
8567 from the chain.
8568 (scan_insn): Likewise. Increase it when adding to chain, if it
8569 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8570 set active_local_stores to NULL before the addition.
8571 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8572
8573 PR rtl-optimization/48141
8574 * dse.c (record_store): If no positions are needed in an insn
8575 that cannot be deleted, at least unchain it from active_local_stores.
8576
8577 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8578
8579 PR debug/47510
8580 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8581 (lookup_type_die_strip_naming_typedef): ... here.
8582 (get_context_die): Use it.
8583 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8584 the anonymous struct named by the naming typedef.
8585
8586 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8587
8588 PR target/48154
8589 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8590 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8591
8592 2011-03-16 Jeff Law <law@redhat.com>
8593
8594 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8595 check for operands of conditional. Allow type to be a pointer.
8596
8597 2011-03-16 Richard Guenther <rguenther@suse.de>
8598
8599 PR tree-optimization/48149
8600 * fold-const.c (fold_binary_loc): Fold
8601 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8602
8603 2011-03-16 Richard Guenther <rguenther@suse.de>
8604
8605 PR tree-optimization/26134
8606 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8607 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8608 (non_rewritable_mem_ref_base): Handle complex type component
8609 accesses, constrain offsets for vector and complex extracts
8610 more properly.
8611
8612 2011-03-16 Richard Guenther <rguenther@suse.de>
8613
8614 PR tree-optimization/48146
8615 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8616 operands avoiding the need for renaming.
8617
8618 2011-03-16 Richard Guenther <rguenther@suse.de>
8619
8620 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8621 constant folding. Move MEM_REF canonicalization first.
8622 Rely on fold_const_aggregate_ref for initializer folding.
8623 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8624
8625 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8626
8627 PR middle-end/48136
8628 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8629 arg0/arg1 or their arguments are always fold converted to matching
8630 types.
8631
8632 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8633 to nargs.
8634
8635 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8636
8637 PR lto/46944
8638 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8639 Handle in-tree gold.
8640 (ld_vers): Extract binutils version for gold.
8641 (gcc_cv_ld_hidden): Handle gold here.
8642 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8643 * configure: Regenerate.
8644 * config.in: Regenerate.
8645 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8646 -fuse-linker-plugin otherwise.
8647 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8648 (LINK_COMMAND_SPEC): Use it.
8649 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8650
8651 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8652
8653 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8654 * calls.c: Remove debug.h include.
8655 (emit_call_1): Don't call virtual_call_token debug hook.
8656 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8657 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8658 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8659 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8660 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8661 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8662 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8663 dwarf2out_virtual_call): Remove.
8664 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8665 copy_call_info and virtual_call hooks.
8666 (dwarf2out_init): Don't initialize vcall_insn_table,
8667 debug_dcall_section and debug_vcall_section.
8668 (prune_unused_types): Don't mark nodes from dcall_table.
8669 (dwarf2out_finish): Don't output dcall or vcall tables.
8670 * final.c (final_scan_insn): Don't call direct_call or
8671 virtual_call debug hooks.
8672 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8673 virtual_call_token, copy_call_info and virtual_call hooks.
8674 (debug_nothing_uid): Remove prototype.
8675 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8676 copy_call_info and virtual_call hooks.
8677 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8678 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8679 * debug.c (do_nothing_debug_hooks): Likewise.
8680 (debug_nothing_uid): Remove.
8681 * doc/invoke.texi (-fenable-icf-debug): Remove.
8682 * common.opt (-fenable-icf-debug): Likewise.
8683
8684 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8685 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8686 call's MEM. Handle functions returning aggregate through a hidden
8687 first pointer. For virtual calls add clobbered pc to call arguments
8688 chain.
8689 * dwarf2out.c (gen_subprogram_die): Emit
8690 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8691 can't be emitted.
8692
8693 PR debug/45882
8694 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8695 * rtl.h (ENTRY_VALUE_EXP): Define.
8696 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8697 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8698 * print-rtl.c (print_rtx): Likewise.
8699 * gengtype.c (adjust_field_rtx_def): Likewise.
8700 * var-tracking.c (vt_add_function_parameter): Adjust
8701 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8702 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8703 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8704 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8705 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8706
8707 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8708 Call var_location debug hook even on CALL_INSNs.
8709 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8710 * rtl.def (ENTRY_VALUE): New.
8711 * dwarf2out.c: Include cfglayout.h.
8712 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8713 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8714 (struct call_arg_loc_node): New type.
8715 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8716 tail_call_site_count): New variables.
8717 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8718 DW_TAG_GNU_call_site_parameter.
8719 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8720 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8721 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8722 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8723 and DW_AT_GNU_all_source_call_sites.
8724 (mem_loc_descriptor): Handle ENTRY_VALUE.
8725 (add_src_coords_attributes): Don't add enything if
8726 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8727 (dwarf2out_abstract_function): Save and clear call_arg_location,
8728 call_site_count and tail_call_site_count around dwarf2out_decl call.
8729 (gen_call_site_die): New function.
8730 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8731 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8732 (dwarf2out_function_decl): Clear call_arg_locations,
8733 call_arg_loc_last, set call_site_count and tail_call_site_count
8734 to -1 and free block_map.
8735 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8736 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8737 followed by any real instructions.
8738 (dwarf2out_begin_function): Set call_site_count and
8739 tail_call_site_count to 0.
8740 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8741 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8742 attempt to force a DIE for it and worst case remove the attribute.
8743 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8744 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8745 the decl itself.
8746 * var-tracking.c: Include tm_p.h.
8747 (vt_stack_adjustments): For calls call note_register_arguments.
8748 (argument_reg_set): New variable.
8749 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8750 ensure the VALUE is resolved.
8751 (call_arguments): New variable.
8752 (prepare_call_arguments): New function.
8753 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8754 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8755 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8756 always use the best expression.
8757 (vt_expand_loc): Add ignore_cur_loc argument.
8758 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8759 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8760 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8761 note for all calls.
8762 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8763 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8764 argument. Don't call cselib_preserve_only_values and
8765 cselib_reset_table.
8766 (note_register_arguments): New function.
8767 (vt_initialize): Compute argument_reg_set. Call
8768 vt_add_function_parameters before processing basic blocks instead of
8769 afterwards. For calls call prepare_call_arguments before calling
8770 cselib_process_insn.
8771 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8772 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8773 (var-tracking.o): Depend on $(TM_P_H).
8774 * cfglayout.h (insn_scope): New prototype.
8775 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8776 * cfglayout.c (insn_scope): No longer static.
8777 * insn-notes.def (CALL_ARG_LOCATION): New.
8778 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8779 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8780 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8781 nothing for DECL_EXTERNAL BLOCK_VARS.
8782
8783 2011-03-16 Alan Modra <amodra@gmail.com>
8784
8785 PR target/45844
8786 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8787 create invalid offset address for vsx splat insn.
8788 * config/rs6000/predicates.md (splat_input_operand): New.
8789 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8790
8791 2011-03-15 Xinliang David Li <davidxl@google.com>
8792
8793 PR c/47837
8794 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8795 (normalize_preds): New function.
8796 (is_use_properly_guarded): Normalize def predicates.
8797
8798 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8799
8800 PR target/46788
8801 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8802 in the output template.
8803
8804 2011-03-15 Richard Guenther <rguenther@suse.de>
8805
8806 PR middle-end/47650
8807 * tree-pretty-print.c (dump_function_declaration): Properly
8808 dump unprototyped and varargs function types.
8809
8810 2011-03-15 Richard Guenther <rguenther@suse.de>
8811
8812 PR tree-optimization/13954
8813 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8814 and friends.
8815
8816 2011-03-15 Richard Guenther <rguenther@suse.de>
8817
8818 PR tree-optimization/48037
8819 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8820 selects into BIT_FIELD_REFs.
8821 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8822 vector select.
8823
8824 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8825
8826 PR tree-optimization/48129
8827 * builtins.c (fold_builtin_snprintf): Convert to type of
8828 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8829 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8830
8831 2011-03-15 Richard Guenther <rguenther@suse.de>
8832
8833 PR tree-optimization/41490
8834 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8835 value but with VUSE.
8836 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8837 return statements.
8838 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8839 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8840 * tree-tailcall.c (find_tail_calls): Ignore returns.
8841
8842 2011-03-15 Richard Guenther <rguenther@suse.de>
8843
8844 PR middle-end/48031
8845 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8846 or variable-indexed array accesses when in gimple form.
8847
8848 2011-03-15 Richard Guenther <rguenther@suse.de>
8849
8850 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8851
8852 2011-03-15 Alan Modra <amodra@gmail.com>
8853
8854 PR target/48032
8855 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8856 presume symbol_refs without a symbol_ref_decl are suitably
8857 aligned, nor other trees we may see here. Handle anchor symbols.
8858 (legitimate_constant_pool_address_p): Comment. Add mode param.
8859 Check cmodel=medium addresses. Adjust all calls.
8860 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8861 creating cmodel=medium optimized access to locals.
8862 * config/rs6000/constraints.md (R): Pass QImode to
8863 legitimate_constant_pool_address_p.
8864 * config/rs6000/predicates.md (input_operand): Pass mode to
8865 legitimate_constant_pool_address_p.
8866 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8867 Update prototype.
8868
8869 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8870
8871 PR target/48053
8872 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8873 64-bit constants being loaded into registers other than GPRs such
8874 as loading 0 into a VSX register.
8875
8876 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8877
8878 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8879
8880 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8881
8882 PR middle-end/47917
8883 * builtins.c (fold_builtin_snprintf): New function.
8884 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8885 (fold_builtin_4): Likewise.
8886
8887 PR middle-end/38878
8888 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8889 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8890 and C - X == X also strip nops from +/-/p+ operand.
8891 When optimizing -X == C, fold C to arg0's type.
8892
8893 PR debug/47946
8894 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8895 emit it as add_AT_int instead of add_AT_unsigned.
8896
8897 2011-03-14 Tom Tromey <tromey@redhat.com>
8898
8899 * unwind-dw2.c: Include sys/sdt.h if it exists.
8900 (_Unwind_DebugHook): Use STAP_PROBE2.
8901 * config.in, configure: Rebuild.
8902 * configure.ac: Check for sys/sdt.h.
8903
8904 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8905
8906 * config/i386/i386.md (ROUND_FLOOR): New constant.
8907 (ROUND_CEIL): Ditto.
8908 (ROUND_TRUNC): Ditto.
8909 (ROUND_MXCSR): Ditto.
8910 (ROUND_NO_EXC): Ditto.
8911 (rint<mode>2): Use new defines instead of numerical constants.
8912 (floor<mode>2): Ditto.
8913 (ceil<mode>2): Ditto.
8914 (btrunc<mode>2): Ditto.
8915 * config/i386/i386-builtin-types.def: Define ROUND function type
8916 aliases.
8917 * config/i386/i386.c (enum ix86_builtins): Add
8918 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8919 (struct builtin_description): Add
8920 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8921 (ix86_expand_sse_round): New static function.
8922 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8923 function types.
8924 (ix86_builtin_vectorized_function): Handle
8925 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8926
8927 2011-03-14 Tom Tromey <tromey@redhat.com>
8928
8929 * c-parser.c (c_parser_asm_string_literal): Clear
8930 warn_overlength_strings.
8931
8932 2011-03-14 Tom Tromey <tromey@redhat.com>
8933
8934 * c-parser.c (disable_extension_diagnostics): Save
8935 warn_overlength_strings.
8936 (restore_extension_diagnostics): Restore warn_overlength_strings.
8937
8938 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8939
8940 * BASE-VER: Change to 4.7.0.
8941
8942 2011-03-14 Richard Guenther <rguenther@suse.de>
8943
8944 PR middle-end/48098
8945 * tree.c (build_vector_from_val): Adjust assert to requirements
8946 and reality.
8947
8948 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8949
8950 PR bootstrap/48102
8951 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8952
8953 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8954
8955 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8956 terms of target_flags_explicit. Adjust copyright year.
8957
8958 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8959 * config/rs6000/t-freebsd: New file. Add override for
8960 LIB2FUNCS_EXTRA.
8961
8962 2011-03-13 Chris Demetriou <cgd@google.com>
8963
8964 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8965 (-fno-diagnostics-show-option): this, to reflect current default.
8966 (-Werror=): Update text about -fno-diagnostics-show-option.
8967
8968 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8969
8970 PR target/48053
8971 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8972 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8973 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8974 mode is not V2DImode or V2DFmode.
8975 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8976 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8977 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8978 registers to 0.
8979 (movdi_internal64): Likewise.
8980
8981 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8982
8983 PR tree-optimization/47127
8984 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8985 parameter.
8986 (set_cloog_options): Same.
8987 (scop_to_clast): Same.
8988 (print_clast_stmt): Do not call cloog_state_malloc and
8989 cloog_state_free.
8990 (print_generated_program): Same.
8991 (gloog): Same.
8992 * graphite-clast-to-gimple.h (cloog_state): Declared.
8993 (scop_to_clast): Adjust declaration.
8994 * graphite.c (cloog_state): Defined here.
8995 (graphite_initialize): Call cloog_state_malloc.
8996 (graphite_finalize): Call cloog_state_free.
8997
8998 2011-03-11 Jason Merrill <jason@redhat.com>
8999
9000 * attribs.c (lookup_attribute_spec): Take const_tree.
9001 * tree.h: Adjust.
9002
9003 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9004
9005 * config/sparc/sparc.c (sparc_option_override): Use
9006 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9007
9008 2011-03-11 Richard Guenther <rguenther@suse.de>
9009
9010 PR tree-optimization/48067
9011 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9012 multiplication result will be only used once on the target
9013 stmt.
9014
9015 2011-03-11 Richard Guenther <rguenther@suse.de>
9016
9017 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9018
9019 2011-03-11 Richard Guenther <rguenther@suse.de>
9020
9021 PR lto/48073
9022 * tree.c (find_decls_types_r): Do not walk types only reachable
9023 from IDENTIFIER_NODEs.
9024
9025 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR middle-end/48044
9028 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9029 all vnode->force_output nodes as needed.
9030
9031 2011-03-11 Jason Merrill <jason@redhat.com>
9032
9033 PR c++/48069
9034 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9035 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9036
9037 2011-03-11 Martin Jambor <mjambor@suse.cz>
9038
9039 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9040 cgraph_node.
9041
9042 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9043
9044 PR tree-optimization/48063
9045 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9046 inline functions called once if !tree_can_inline_p (node->callers).
9047
9048 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9049
9050 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9051 extra_objs.
9052 * config/score/score3.c: Delete.
9053 * config/score/score3.h: Delete.
9054 * config/score/mul-div.S: Delete.
9055 * config/score/sfp-machine.h: Add new file.
9056 * config/score/constraints.md: Add new file.
9057 * config/score/t-score-softfp: Add new file.
9058 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9059 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9060 (score7_extra_constraint): Delete.
9061 (score7_option_override): Remove unused code.
9062 * config/score/score.c: Remove score3 and score5 define and code.
9063 * config/score/score.h: Remove score3 and score5 define and code.
9064 * config/score/score.md: Remove score3 template and unusual insn.
9065 * config/score/score.opt: Remove score3 and score5 options.
9066
9067 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9068
9069 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9070 when _HPUX_SOURCE is defined.
9071 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9072
9073 2011-03-10 Jason Merrill <jason@redhat.com>
9074
9075 PR c++/48029
9076 * stor-layout.c (layout_type): Don't set structural equality
9077 on arrays of incomplete type.
9078 * tree.c (type_hash_eq): Handle comparing them properly.
9079
9080 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9081
9082 PR debug/48043
9083 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9084 result mode matches original rtl mode.
9085
9086 2011-03-10 Nick Clifton <nickc@redhat.com>
9087
9088 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9089 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9090
9091 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9092
9093 PR rtl-optimization/47866
9094 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9095 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9096 if target wasn't scalar.
9097 * function.c (assign_stack_temp_for_type): Assert that neither
9098 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9099 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9100 macro.
9101 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9102
9103 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9104
9105 * config/s390/s390-protos.h (s390_label_align): New prototype.
9106 * config/s390/s390.c (s390_label_align): New function.
9107 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9108
9109 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9110
9111 PR target/47755
9112 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9113 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9114 (output_vec_const_move): Ditto.
9115
9116 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9117
9118 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9119 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9120 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9121 Change 'rclass' argument and result type to reg_class_t.
9122 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9123
9124 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9125
9126 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9127 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9128 (TARGET_MEMORY_MOVE_COST): Define.
9129 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9130
9131 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9132
9133 PR debug/47881
9134 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9135 removed anything.
9136
9137 PR tree-optimization/48022
9138 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9139 for EQ/NE_EXPR.
9140
9141 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9142
9143 PR debug/47991
9144 * var-tracking.c (find_use_val): Return NULL for
9145 cui->sets && cui->store_p BLKmode MEMs.
9146
9147 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9148
9149 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9150 Remove.
9151 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9152 xstormy16_print_operand_address): Remove.
9153 * config/stormy16/stormy16.c (xstormy16_print_operand,
9154 xstormy16_print_operand_address): Make static.
9155 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9156
9157 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9158
9159 PR target/47862
9160 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9161 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9162 before definition.
9163
9164 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9165
9166 PR bootstrap/48000
9167 * cfgloopmanip.c (fix_bb_placements): Return immediately
9168 if FROM is BASE_LOOP's header.
9169
9170 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9171
9172 * gimplify.c (gimplify_function_tree): Fix building calls
9173 to __builtin_return_address.
9174
9175 2011-03-07 Alan Modra <amodra@gmail.com>
9176
9177 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9178 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9179 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9180 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9181 return_mode args.
9182 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9183 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9184 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9185 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9186 * config/rs6000/rs6000.c
9187 (rs6000_elf_end_indicate_exec_stack): Rename to..
9188 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9189 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9190 (rs6000_file_start): ..here.
9191 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9192 file scope variables.
9193 (call_ABI_of_interest): New function.
9194 (init_cumulative_args): Set above vars when function return value
9195 is a float, vector, or small struct.
9196 (rs6000_function_arg_advance_1): Likewise for function args.
9197 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9198 references float args.
9199
9200 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9201
9202 * doc/cfg.texi: Remove "See" before @ref.
9203 * doc/invoke.texi: Likewise.
9204
9205 2011-03-05 Jason Merrill <jason@redhat.com>
9206
9207 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9208
9209 2011-03-05 Anthony Green <green@moxielogic.com>
9210
9211 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9212
9213 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9214
9215 PR rtl-optimization/47899
9216 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9217 to flow_loop_nested_p when moving the loop upward.
9218
9219 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9220
9221 PR target/47719
9222 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9223
9224 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR tree-optimization/47967
9227 * ipa-cp.c (build_const_val): Return NULL instead of creating
9228 VIEW_CONVERT_EXPR for mismatching sizes.
9229 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9230 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9231 give up on versioning.
9232
9233 2011-03-05 Alan Modra <amodra@gmail.com>
9234
9235 PR target/47986
9236 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9237 full cmodel medium/large lo_sum + high addresses.
9238
9239 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9240
9241 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9242 pool references in UNSPEC_LTREL_OFFSET.
9243
9244 2011-03-04 Jan Hubicka <jh@suse.cz>
9245
9246 PR lto/47497
9247 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9248 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9249 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9250 Add node pointers.
9251 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9252 cgraph_add_thunk): Add node pointers.
9253 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9254 associated to right node.
9255 (input_node): Update use of cgraph_same_body_alias
9256 and cgraph_add_thunk.
9257
9258 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9259
9260 * config/i386/i386.opt (mprefer-avx128): New flag.
9261 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9262 modes when the flag -mprefer-avx128 is on.
9263
9264 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9265
9266 * dwarf2out.c (compare_loc_operands): Fix address handling.
9267
9268 2011-03-04 Alan Modra <amodra@gmail.com>
9269
9270 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9271
9272 2011-03-04 Richard Guenther <rguenther@suse.de>
9273
9274 PR middle-end/47968
9275 * expmed.c (extract_bit_field_1): Prefer vector modes that
9276 vec_extract patterns can handle.
9277
9278 2011-03-04 Richard Guenther <rguenther@suse.de>
9279
9280 PR middle-end/47975
9281 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9282
9283 2011-03-04 Richard Henderson <rth@redhat.com>
9284
9285 * explow.c (emit_stack_save): Remove 'after' parameter.
9286 (emit_stack_restore): Likewise.
9287 * expr.h: Update to match.
9288 * builtins.c, calls.c, stmt.c: Likewise.
9289 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9290 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9291 * function.c (expand_function_end): Insert the emit_stack_save
9292 sequence before parm_birth_insn instead of after.
9293
9294 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9295
9296 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9297 (ssse3_pmaddubsw128): Ditto.
9298 (ssse3_pmaddubsw): Ditto.
9299
9300 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9301
9302 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9303
9304 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9305
9306 PR c/47963
9307 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9308 on TYPE_SIZE_UNIT if it is a DECL.
9309
9310 PR debug/47283
9311 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9312 first operand is not is_gimple_mem_ref_addr, try to fold it.
9313 If the operand still isn't is_gimple_mem_ref_addr, clear
9314 MEM_EXPR on op0.
9315
9316 2011-03-03 Richard Guenther <rguenther@suse.de>
9317
9318 PR middle-end/47283
9319 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9320 match comment.
9321 (refs_may_alias_p_1): For release branches return true if
9322 we are confused by our input.
9323
9324 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9325
9326 * config/s390/s390.c (s390_function_value): Rename to ...
9327 (s390_function_and_libcall_value): ... this.
9328 (s390_function_value): New function.
9329 (s390_libcall_value): New function.
9330 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9331 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9332 target macro definitions.
9333 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9334
9335 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9336
9337 * config/i386/freebsd64.h (CC1_SPEC): Define.
9338 * config/i386/linux64.h (CC1_SPEC): Define.
9339 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9340
9341 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9342
9343 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9344 Remove.
9345 * config/stormy16/stormy16.c: Include reload.h.
9346 (xstormy16_memory_move_cost): New function.
9347 (TARGET_MEMORY_MOVE_COST): Define.
9348
9349 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9350
9351 PR rtl-optimization/47925
9352 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9353 with side effects. Remove the more-specific check for volatile asms.
9354
9355 2011-03-02 Alan Modra <amodra@gmail.com>
9356
9357 PR target/47935
9358 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9359 toc relative addresses for valid offsets.
9360
9361 2011-03-01 Richard Guenther <rguenther@suse.de>
9362
9363 PR tree-optimization/47890
9364 * tree-vect-loop.c (get_initial_def_for_induction): Set
9365 related stmt properly.
9366
9367 2011-03-01 Richard Guenther <rguenther@suse.de>
9368
9369 PR lto/47924
9370 * lto-streamer.c (lto_record_common_node): Also register
9371 the canonical type.
9372
9373 2011-03-01 Richard Guenther <rguenther@suse.de>
9374
9375 PR lto/46911
9376 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9377 Do not stream DECL_ABSTRACT_ORIGIN.
9378 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9379 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9380 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9381 Do not stream DECL_ABSTRACT_ORIGIN.
9382 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9383 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9384
9385 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9386
9387 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9388 FUNCTION_VALUE_REGNO_P): Remove.
9389 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9390 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9391 Add 'outgoing' argument.
9392 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9393 function.
9394 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9395 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9396
9397 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9398
9399 PR debug/28047
9400 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9401 (lookup_filename): Likewise.
9402 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9403
9404 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9405 Jakub Jelinek <jakub@redhat.com>
9406
9407 PR middle-end/47893
9408 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9409 (assign_stack_local_1): Change last argument type to int.
9410 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9411 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9412 don't record padding space into frame_space_list nor use those areas.
9413 (assign_stack_local): Adjust caller.
9414 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9415 of assign_stack_local, pass 0 as last argument.
9416 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9417 callers.
9418
9419 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9420
9421 PR debug/47283
9422 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9423 Use target address_mode and pointer_mode hooks instead of hardcoded
9424 Pmode and ptr_mode. Handle some simple cases of extending if
9425 POINTERS_EXTEND_UNSIGNED < 0.
9426 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9427 Call convert_debug_memory_address.
9428 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9429 convert_debug_memory_address.
9430
9431 PR middle-end/46790
9432 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9433 * configure: Regenerated.
9434 * config.in: Regenerated.
9435 * varasm.c (default_function_section): Return NULL
9436 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9437
9438 2011-02-28 Martin Jambor <mjambor@suse.cz>
9439
9440 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9441 the description to match the printed values.
9442
9443 2011-02-28 Richard Guenther <rguenther@suse.de>
9444
9445 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9446 of the copied scope tree.
9447
9448 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9449
9450 * doc/extend.texi (Function Attributes): Avoid deeply (and
9451 wrongly) nested tables.
9452
9453 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9454
9455 PR middle-end/47903
9456 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9457 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9458 r isn't op0 nor op1.
9459
9460 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9461
9462 * config/avr/avr.md: Remove magic comment for emacs.
9463
9464 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9465
9466 PR target/45261
9467 * config/avr/avr.c (avr_option_override): Use error on bad options.
9468 (avr_help): New function.
9469 (TARGET_HELP): Define.
9470
9471 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9472
9473 PR target/42240
9474 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9475 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9476
9477 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9478
9479 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9480 (ARM Options): Ditto.
9481 (i386 and x86-64 Options): Ditto.
9482 (RX Options): Ditto.
9483 (SPARC Options): Ditto.
9484
9485 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9486
9487 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9488 FreeBSD 6 and later. Generally use cpu generic.
9489
9490 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9491
9492 * doc/cpp.texi: Update copyright years.
9493
9494 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9495
9496 PR target/46898
9497 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9498
9499 2011-02-25 Jon Beniston <jon@beniston.com>
9500
9501 PR target/46898
9502 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9503 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9504 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9505 (lm32_block_move_inline): Add type cast to remove warning.
9506 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9507 (gen_int_relational): Move declarations to start of function.
9508
9509 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9510
9511 PR tree-optimization/45470
9512 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9513 can throw internally only.
9514 * tree-vect-stmts.c (vectorizable_call): Likewise.
9515
9516 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9517
9518 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9519 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9520 * config/stormy16/stormy16-protos.h
9521 (xstormy16_preferred_reload_class): Remove.
9522 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9523 static. Change 'rclass' argument and return type to reg_class_t.
9524 (TARGET_PREFERRED_RELOAD_CLASS,
9525 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9526
9527 2011-02-24 Richard Guenther <rguenther@suse.de>
9528
9529 * lto-streamer-in.c (input_bb): Do not find referenced vars
9530 in debug statements.
9531
9532 2011-02-23 Jason Merrill <jason@redhat.com>
9533
9534 * common.opt (fabi-version): Document v5 and v6.
9535
9536 2011-02-23 Richard Guenther <rguenther@suse.de>
9537
9538 PR tree-optimization/47849
9539 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9540
9541 2011-02-23 Jie Zhang <jie@codesourcery.com>
9542
9543 * opts-common.c (decode_cmdline_option): Print empty string
9544 argument as "" in decoded->orig_option_with_args_text.
9545 * gcc.c (execute): Print empty string argument as ""
9546 in the verbose output.
9547 (do_spec_1): Keep empty string argument.
9548
9549 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9550
9551 * config.gcc: Declare score-* and crx-* obsolete.
9552
9553 2011-02-23 Jie Zhang <jie@codesourcery.com>
9554
9555 PR rtl-optimization/47763
9556 * web.c (web_main): Ignore naked clobber when replacing register.
9557
9558 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9559
9560 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9561 Remove.
9562
9563 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9564
9565 PR doc/47848
9566 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9567
9568 2011-02-22 Mike Stump <mikestump@comcast.net>
9569
9570 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9571 assembler.
9572 * configure: Regenerate.
9573
9574 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9575
9576 PR rtl-optimization/46002
9577 * ira-color.c (update_copy_costs): Change class intersection
9578 test to reg_class_contents[] test of 'hard_regno'.
9579
9580 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9581
9582 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9583 than Driver option.
9584 * config/hpux11.opt (mt): Likewise.
9585 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9586 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9587 * config/vax/elf.opt (mno-asm-pic): Likewise.
9588 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9589
9590 2011-02-21 Mike Stump <mikestump@comcast.net>
9591
9592 PR target/47822
9593 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9594 tree so we can get save the type.
9595 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9596 for CFString instead of trying to use past the end of the builtins.
9597 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9598 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9599 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9600 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9601 Rename to darwin_builtin_cfstring.
9602 (darwin_init_cfstring_builtins): Return the built type.
9603
9604 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9605
9606 PR target/47840
9607 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9608 (_mm256_insert_epi64): Use _mm_insert_epi64.
9609
9610 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9611
9612 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9613 * config/stormy16/stormy16-protos.h
9614 (xstormy16_mode_dependent_address_p): Remove.
9615 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9616 Make static. Change return type to bool. Change argument type to
9617 const_rtx. Remove dead code.
9618 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9619
9620 2011-02-21 Richard Guenther <rguenther@suse.de>
9621
9622 PR lto/47820
9623 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9624 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9625 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9626 TUs context.
9627 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9628 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9629
9630 2011-02-20 Richard Guenther <rguenther@suse.de>
9631
9632 PR lto/47822
9633 * tree.c (free_lang_data_in_decl): Clean builtins from
9634 the TU decl BLOCK_VARS.
9635
9636 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9637
9638 PR debug/47620
9639 PR debug/47630
9640 * haifa-sched.c (fix_tick_ready): Skip tick computation
9641 for debug insns.
9642
9643 2011-02-19 Richard Guenther <rguenther@suse.de>
9644
9645 PR lto/47647
9646 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9647 Remove lazy BLOCK_VARS streaming.
9648 (lto_input_ts_block_tree_pointers): Likewise.
9649 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9650
9651 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9652
9653 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9654
9655 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9656
9657 * config/i386/biarch32.h, config/i386/mach.h,
9658 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9659
9660 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9661
9662 PR target/47800
9663 * config/i386/i386.md (peephole2 for shift and plus): Use
9664 operands[1] original mode in the first insn.
9665
9666 2011-02-18 Mike Stump <mikestump@comcast.net>
9667
9668 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9669
9670 2011-02-18 Jan Hubicka <jh@suse.cz>
9671
9672 PR middle-end/47788
9673 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9674 to zero when the function is not inlinable at all.
9675
9676 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9677
9678 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9679 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9680 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9681 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9682 * config/pa/t-pa64: Likewise.
9683 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9684
9685 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9686
9687 PR driver/47787
9688 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9689
9690 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9691
9692 PR target/47792
9693 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9694
9695 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9696
9697 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9698 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9699 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9700 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9701 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9702 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9703 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9704 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9705 m32r_legitimate_address_p): New functions.
9706 * config/m32r/constraints.md (constraint "S"): Don't use
9707 STORE_PREINC_PREDEC_P.
9708 (constraint "U"): Don't use LOAD_POSTINC_P.
9709
9710 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9711
9712 PR rtl-optimization/46178
9713 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9714 compute ira_hard_regno_cover_class[].
9715
9716 2011-02-18 Richard Guenther <rguenther@suse.de>
9717
9718 PR lto/47798
9719 * lto-streamer.h (lto_global_var_decls): Declare.
9720 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9721 statics for global var processing.
9722
9723 2011-02-18 Richard Guenther <rguenther@suse.de>
9724
9725 PR tree-optimization/47737
9726 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9727 edge dominance check.
9728
9729 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9730
9731 PR debug/47780
9732 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9733 avoid invalid rtx sharing.
9734
9735 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9736
9737 * doc/cpp.texi (Obsolete Features): Add background on the
9738 origin of assertions.
9739
9740 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9741
9742 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9743 objc_abi == 2.
9744 * config/darwin.c (output_objc_section_asm_op): Added support for
9745 ABI v1 and v2.
9746 (is_objc_metadata): New.
9747 (darwin_objc2_section): New.
9748 (darwin_objc1_section): New.
9749 (machopic_select_section): Added support for ABI v1 and v2.
9750 (darwin_emit_objc_zeroed): New.
9751 (darwin_output_aligned_bss): Detect objc metadata and treat it
9752 appropriately.
9753 (darwin_asm_output_aligned_decl_common): Same.
9754 (darwin_asm_output_aligned_decl_local): Same.
9755 * config/darwin-sections.def: Updated for ABI v1 and v2.
9756 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9757 compiling Objective-C code for the NeXT runtime, default to using
9758 ABI version 0 for 32-bit, and version 2 for 64-bit.
9759
9760 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9761
9762 * common.opt (optimize_fast): New Variable.
9763 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9764 instead of local variable ofast.
9765
9766 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9767
9768 * doc/invoke.texi (fobjc-abi-version): Documented.
9769 (fobjc-nilcheck): Documented.
9770 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9771 version.
9772
9773 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9774
9775 PR driver/47390
9776 * common.opt (export-dynamic): New Driver option.
9777 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9778
9779 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9780
9781 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9782
9783 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9784 Jan Hubicka <jh@suse.cz>
9785
9786 PR debug/47106
9787 PR debug/47402
9788 * cfgexpand.c (account_used_vars_for_block): Remove.
9789 (estimated_stack_frame_size): Use referenced vars.
9790 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9791 that were referenced in the original function. Test src_fn
9792 rather than cfun. Drop redundant get_var_ann.
9793 (setup_one_parameter): Drop redundant get_var_ann.
9794 (declare_return_variable): Likewise.
9795 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9796 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9797 * ipa-inline.c (compute_inline_parameters): Do not compute
9798 disregard_inline_limits here.
9799 (compute_inlinable_for_current, pass_inlinable): New.
9800 (pass_inline_parameters): Require PROP_referenced_vars.
9801 * cgraphunit.c (cgraph_process_new_functions): Don't run
9802 compute_inline_parameters explicitly unless function is in SSA form.
9803 (cgraph_analyze_function): Set .disregard_inline_limits.
9804 * tree-sra.c (convert_callers): Compute inliner parameters
9805 only for functions already in SSA form.
9806
9807 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9808
9809 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9810 -mlittle-endian-data.
9811
9812 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9813
9814 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9815 -mno-fpu, not -fpu and -no-fpu.
9816 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9817 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9818
9819 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9820
9821 PR target/43653
9822 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9823 input reload with PLUS RTX.
9824
9825 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9826
9827 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9828 of InverseVar(MDMX).
9829
9830 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9831
9832 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9833 --m4-340.
9834
9835 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9836
9837 * config/mn10300/mn10300.opt (mno-crt0): New.
9838
9839 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9840
9841 * config/m68k/uclinux.opt (static-libc): New Driver option.
9842
9843 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9844
9845 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9846
9847 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9848
9849 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9850 %{muser-extend-enabled}.
9851
9852 2011-02-16 Richard Guenther <rguenther@suse.de>
9853
9854 PR tree-optimization/47738
9855 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9856 the TODO from tree_predictive_commoning.
9857
9858 2011-02-15 Jeff Law <law@redhat.com>
9859
9860 Revert
9861 2011-01-25 Jeff Law <law@redhat.com>
9862
9863 PR rtl-optimization/37273
9864 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9865 handle them like argument loads from stack slots. Do not double
9866 count memory for memory constants and argument loads from stack slots.
9867
9868 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9869
9870 PR middle-end/47725
9871 * combine.c (cant_combine_insn_p): Revert the last change.
9872
9873 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9874
9875 PR target/47755
9876 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9877 mode for vector constants. Remove code that checks for TImode.
9878
9879 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9880
9881 PR debug/47106
9882 PR debug/47402
9883 * cgraph.h (compute_inline_parameters): Return void.
9884 * ipa-inline.c (compute_inline_parameters): Adjust.
9885
9886 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9887
9888 PR debug/47106
9889 PR debug/47402
9890 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9891 rather than decl.
9892 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9893 * ipa-inline.c (compute_inline_parameters): Adjust.
9894
9895 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9896
9897 PR debug/47106
9898 PR debug/47402
9899 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9900 Adjust all users. Pass FN to...
9901 * tree-flow-inline.h (first_referenced_var): ... this. Add
9902 fn argument.
9903 * ipa-struct-reorg.c: Adjust.
9904 * tree-dfa.c: Adjust.
9905 * tree-into-ssa.c: Adjust.
9906 * tree-sra.c: Adjust.
9907 * tree-ssa-alias.c: Adjust.
9908 * tree-ssa-live.c: Adjust.
9909 * tree-ssa.c: Adjust.
9910 * tree-ssanames.c: Adjust.
9911 * tree-tailcall.c: Adjust.
9912
9913 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9914
9915 PR debug/47106
9916 PR debug/47402
9917 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9918 Adjust all callers.
9919 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9920 * tree-flow-inline.h: Adjust.
9921 * gimple-pretty-print.c: Adjust.
9922 * tree-into-ssa.c: Adjust.
9923 * tree-ssa.c: Adjust.
9924 * cfgexpand.c: Adjust.
9925
9926 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9927
9928 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9929 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9930 (EXTRA_CONSTRAINT): Delete.
9931 * config/iq2000/constraints.md: New file.
9932 * config/iq2000/iq2000.md: Include it.
9933 (define_insn ""): Delete.
9934 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9935 unsupported constraint letters from patterns.
9936 (call_value, call_value_internal1): Likewise.
9937 (call_value_multiple_internal1): Likewise.
9938
9939 2011-02-15 Nick Clifton <nickc@redhat.com>
9940
9941 * config/mn10300/mn10300.c: Include tm-constrs.h.
9942 (struct liw_data): New data structure describing an LIW candidate
9943 instruction.
9944 (extract_bundle): Use struct liw_data. Allow small integer
9945 operands for some instructions.
9946 (check_liw_constraints): Use struct liw_data. Remove swapped
9947 parameter. Add comments describing the checks. Fix bug when
9948 assigning the source of liw1 to the source of liw2.
9949 (liw_candidate): Delete. Code moved into extract_bundle.
9950 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9951 before swapping.
9952 * config/mn10300/predicates.md (liw_operand): New predicate.
9953 Allows registers and small integer constants.
9954 * config/mn10300/constraints.md (O): New constraint. Accetps
9955 integers in the range -8 to +7 inclusive.
9956 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9957 for moving a small integer into a register. Give this alternative
9958 LIW attributes.
9959 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9960 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9961 using the J,K,L and M constraints,
9962 (liw): Remove SI mode on second operands to allow for HI and QI
9963 mode values.
9964 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9965 instruction.
9966
9967 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9968
9969 PR middle-end/47725
9970 * combine.c (cant_combine_insn_p): Check zero/sign extended
9971 hard registers.
9972
9973 2011-02-15 Richard Guenther <rguenther@suse.de>
9974
9975 PR tree-optimization/47743
9976 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9977 for a non-type-compatible VN lookup bail out.
9978
9979 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9980
9981 * config/fr30/constraints.md: New file.
9982 * config/fr30/fr30.md: Include it.
9983 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9984 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9985 (EXTRA_CONSTRAINT): Delete.
9986
9987 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9988
9989 * config/frv/constraints.md: New file.
9990 * config/frv/predicates.md: Include it.
9991 * config/frv/frv.c (reg_class_from_letter): Delete.
9992 (frv_option_override): Don't initialize it.
9993 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9994 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9995 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9996 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9997 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9998 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9999 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10000 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10001 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10002 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10003 (REG_CLASS_FROM_CONSTRAINT): Delete.
10004
10005 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10006
10007 PR middle-end/47581
10008 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10009 if frame size is 0 in a leaf function.
10010
10011 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10012
10013 PR pch/14940
10014 * config/alpha/host-osf.c: New file.
10015 * config/alpha/x-osf: New file.
10016 * config.host (alpha*-dec-osf*): Use it.
10017
10018 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10019
10020 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10021 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10022 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10023 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10024 type to const_rtx.
10025 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10026
10027 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10028
10029 * config/stormy16/constraints.md: New file.
10030 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10031 Use satisfies_constraint_Q and satisfies_constraint_R.
10032 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10033 Delete.
10034 (xstormy16_legitiamte_address_p): Declare.
10035 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10036 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10037 (EXTRA_CONSTRAINT): Delete.
10038 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10039 Un-staticize.
10040 (xstormy16_extra_constraint_p): Delete.
10041
10042 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10043
10044 PR tree-optimization/46494
10045 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10046 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10047 (pass_rtl_loop_done): Add TODO_verify_flow.
10048 * fwprop.c (pass_rtl_fwprop): Likewise.
10049 * modulo-sched.c (pass_sms): Likewise.
10050 * tree-ssa-dom.c (pass_dominator): Likewise.
10051 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10052 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10053 (pass_tree_loop_done): Likewise.
10054 * tree-ssa-pre.c (execute_pre): Likewise.
10055 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10056 * tree-ssa-sink.c (pass_sink_code): Likewise.
10057 * tree-vrp.c (pass_vrp): Likewise.
10058
10059 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10060
10061 * config/v850/constraints.md: New file.
10062 * config/v850/v850.md: Include it.
10063 * config/v850/predicates.md (reg_or_0_operand): Use
10064 satisfies_constraint_G.
10065 (special_symbolref_operand): Use satisfies_constraint_K.
10066 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10067 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10068 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10069 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10070 (EXTRA_CONSTRAINT): Delete.
10071 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10072 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10073 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10074
10075 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10076
10077 PR target/47696
10078 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10079 description.
10080
10081 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10082
10083 * config/mcore/constraints.md: New file.
10084 * config/mcore/mcore.md: Include it.
10085 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10086 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10087 (REG_CLASS_FROM_LETTER): Delete.
10088 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10089 insn_const_int_ok_for_constraint.
10090 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10091 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10092 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10093 (EXTRA_CONSTRAINT): Delete.
10094
10095 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10096
10097 PR ada/41929
10098 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10099 (IS_SIGHANDLER): Define.
10100 (sparc64_is_sighandler): New function, split off from
10101 sparc64_fallback_frame_state.
10102 (sparc_is_sighandler): New function, split off from
10103 sparc_fallback_frame_state.
10104 (sparc64_fallback_frame_state): Merge with ...
10105 (sparc_fallback_frame_state): ... this into ...
10106 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10107 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10108 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10109 stack instead of hardcoded offsets.
10110
10111 2011-02-14 Andriy Gapon <avg@freebsd.org>
10112
10113 PR target/45808
10114 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10115
10116 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10117
10118 * configure: Regenerate.
10119
10120 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10121
10122 PR driver/45731
10123 * gcc.c (asm_options): Correct spec matching --target-help.
10124
10125 2011-02-12 Martin Jambor <mjambor@suse.cz>
10126
10127 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10128 to gimple call error.
10129
10130 2011-02-12 Mike Stump <mikestump@comcast.net>
10131
10132 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10133 comments in backslash regions.
10134
10135 2011-02-12 Mike Stump <mikestump@comcast.net>
10136 Jakub Jelinek <jakub@redhat.com>
10137 Iain Sandoe <iains@gcc.gnu.org>
10138
10139 PR target/47324
10140 * dwarf2out.c (output_cfa_loc): When required, apply the
10141 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10142 (output_loc_sequence): Likewise.
10143 (output_loc_operands_raw): Likewise.
10144 (output_loc_sequence_raw): Likewise.
10145 (output_cfa_loc): Likewise.
10146 (output_loc_list): Suppress register number adjustment when
10147 calling output_loc_sequence()
10148 (output_die): Likewise.
10149
10150 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10151
10152 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10153 Remove macros.
10154 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10155 xtensa_memory_move_cost): New functions.
10156 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10157
10158 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10159
10160 PR lto/47225
10161 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10162 in the current directory.
10163 * configure: Rebuilt.
10164
10165 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10166
10167 * config/darwin.c (darwin_override_options): Add a hunk missed
10168 from the commit of r168571. Trim comment line lengths and
10169 correct indents of the preceding block.
10170
10171 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10172
10173 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10174 the switch.
10175
10176 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10177
10178 * common.opt (nostartfiles): New Driver option.
10179
10180 2011-02-11 Xinliang David Li <davidxl@google.com>
10181
10182 PR tree-optimization/47707
10183 * tree-chrec.c (convert_affine_scev): Keep type precision.
10184
10185 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10186
10187 PR tree-optimization/47420
10188 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10189
10190 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10191
10192 PR rtl-optimization/47614
10193 * rtl.h (check_for_inc_dec): Declare.
10194 * dse.c (check_for_inc_dec): Externalize...
10195 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10196 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10197
10198 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10199
10200 PR driver/47678
10201 * gcc.c (main): Do not compile inputs if there were errors in
10202 option handling.
10203 * opts-common.c (read_cmdline_option): Check for wrong language
10204 after other error checks.
10205
10206 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10207
10208 * cgraph.c: Fix comment typos.
10209 * cgraph.h: Likewise.
10210 * cgraphunit.c: Likewise.
10211 * ipa-cp.c: Likewise.
10212 * ipa-inline.c: Likewise.
10213 * ipa-prop.c: Likewise.
10214 * ipa-pure-const.c: Likewise.
10215 * ipa-ref.c: Likewise.
10216 * ipa-reference.c: Likewise.
10217
10218 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10219
10220 PR debug/47684
10221 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10222
10223 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10224
10225 PR testsuite/47400
10226 * doc/sourcebuild.texi (Require Support): Document
10227 dg-require-ascii-locale.
10228
10229 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10230
10231 * doc/lto.texi (Write summary): Fix missing parentheses.
10232
10233 2011-02-10 DJ Delorie <dj@redhat.com>
10234
10235 * config/m32c/m32c.c (m32c_option_override): Disable
10236 -fcombine-stack-adjustments until flag value tracking and compare
10237 optimization can be rewritten.
10238
10239 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10240
10241 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10242 PROCESSOR_POWER7.
10243 (PROCESSOR_DEFAULT64): Likewise.
10244
10245 2011-02-10 Richard Henderson <rth@redhat.com>
10246
10247 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10248 change from 2011-02-03.
10249 * config/rx/rx.c (flags_from_code): Likewise.
10250 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10251 is valid, n/pz otherwise.
10252 (rx_select_cc_mode): Return CCmode if Y is not zero.
10253
10254 2011-02-10 Richard Guenther <rguenther@suse.de>
10255
10256 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10257
10258 2011-02-10 Richard Guenther <rguenther@suse.de>
10259
10260 PR tree-optimization/47677
10261 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10262
10263 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10264
10265 PR target/47665
10266 * combine.c (make_compound_operation): Only change shifts into
10267 multiplication for SCALAR_INT_MODE_P.
10268
10269 2011-02-10 Jie Zhang <jie@codesourcery.com>
10270
10271 PR testsuite/47622
10272 Revert
10273 2011-02-05 Jie Zhang <jie@codesourcery.com>
10274 PR debug/42631
10275 * web.c (entry_register): Don't clobber the number of the
10276 first uninitialized reference in used[].
10277
10278 2011-02-09 Richard Guenther <rguenther@suse.de>
10279
10280 PR tree-optimization/47664
10281 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10282 all edges again.
10283
10284 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10285
10286 PR target/46481
10287 PR target/47032
10288 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10289 PROCESSOR_POWER7.
10290 (PROCESSOR_DEFAULT64): Same.
10291 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10292
10293 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10294
10295 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10296
10297 2011-02-09 Martin Jambor <mjambor@suse.cz>
10298
10299 PR middle-end/45505
10300 * tree-sra.c (struct access): New flags grp_scalar_read and
10301 grp_scalar_write. Changed description of assignment read and write
10302 flags.
10303 (dump_access): Dump new flags, reorder all of them.
10304 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10305 to detect multiple scalar reads.
10306 (analyze_access_subtree): Use the new scalar read write flags instead
10307 of the old flags. Adjusted comments.
10308
10309 2011-02-08 DJ Delorie <dj@redhat.com>
10310
10311 PR target/47548
10312 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10313 patterns.
10314
10315 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10316
10317 * config/m68k/uclinux.opt: New.
10318 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10319
10320 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10321
10322 * config/cris/elf.opt (sim): New Driver option.
10323
10324 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10325
10326 * config/xtensa/elf.opt: New.
10327 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10328
10329 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10330
10331 * config/vax/elf.opt: New.
10332 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10333
10334 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10335
10336 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10337
10338 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10339
10340 * config/gnu-user.opt: New.
10341 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10342 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10343 *-*-uclinux*): Use gnu-user.opt.
10344
10345 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10346
10347 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10348 * config/i386/gnu.h (CPP_SPEC): Likewise.
10349
10350 2011-02-08 Ian Lance Taylor <iant@google.com>
10351
10352 * common.opt (fcx-limited-range): Add SetByCombined flag.
10353 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10354 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10355 (fassociative-math, freciprocal-math): Likewise.
10356 (funsafe-math-optimizations): Likewise.
10357 * opth-gen.awk: Handle SetByCombined.
10358 * optc-gen.awk: Likewise.
10359 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10360 (set_unsafe_math_optimizations_flags): Likewise.
10361 * doc/options.texi (Option properties): Document SetByCombined.
10362
10363 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10364
10365 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10366 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10367 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10368 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10369 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10370
10371 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10372
10373 PR tree-optimization/46834
10374 PR tree-optimization/46994
10375 PR tree-optimization/46995
10376 * graphite-sese-to-poly.c (used_outside_reduction): New.
10377 (detect_commutative_reduction): Call used_outside_reduction.
10378 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10379 translate_scalar_reduction_to_array only when at least one
10380 loop-phi/close-phi tuple has been detected.
10381
10382 2011-02-08 Richard Guenther <rguenther@suse.de>
10383
10384 PR middle-end/47639
10385 * tree-vect-generic.c (expand_vector_operations_1): Update
10386 stmts here ...
10387 (expand_vector_operations): ... not here. Cleanup EH info
10388 and the CFG if required.
10389
10390 2011-02-08 Richard Guenther <rguenther@suse.de>
10391
10392 PR tree-optimization/47641
10393 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10394 require type compatibility.
10395
10396 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10397
10398 * gimple-low.c (lower_function_body): Don't remove the location of
10399 the return statement here.
10400 (lower_gimple_return): Do it here instead but only if the return
10401 statement is actually used twice.
10402
10403 2011-02-08 Richard Guenther <rguenther@suse.de>
10404
10405 PR tree-optimization/47632
10406 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10407 unused up_to_stmt parameter, return whether cfg-cleanup is
10408 necessary, remove EH info properly.
10409 (forward_propagate_into_gimple_cond): Adjust caller.
10410 (forward_propagate_into_cond): Likewise.
10411 (forward_propagate_comparison): Likewise.
10412 (tree_ssa_forward_propagate_single_use_vars): Make
10413 forward_propagate_comparison case similar to the two others.
10414
10415 2011-02-08 Nick Clifton <nickc@redhat.com>
10416
10417 * config/mn10300/mn10300.opt (mliw): New command line option.
10418 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10419 (liw_bundling): New automaton.
10420 (liw): New attribute.
10421 (liw_op): New attribute.
10422 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10423 (movsi_internal): Add LIW attributes.
10424 (andsi3): Likewise.
10425 (iorsi3): Likewise.
10426 (xorsi3): Likewise.
10427 (addsi3): Separate register and immediate alternatives.
10428 Add LIW attributes.
10429 (subsi3): Likewise.
10430 (cmpsi): Likewise.
10431 (aslsi3): Likewise.
10432 (lshrsi3): Likewise.
10433 (ashrsi3): Likewise.
10434 (liw): New pattern.
10435 * config/mn10300/mn10300.c (liw_op_names): New
10436 (mn10300_print_operand): Handle 'W' operand descriptor.
10437 (extract_bundle): New function.
10438 (check_liw_constraints): New function.
10439 (liw_candidate): New function.
10440 (mn10300_bundle_liw): New function.
10441 (mn10300_reorg): New function.
10442 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10443 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10444 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10445 __LIW__ or __NO_LIW__.
10446 * doc/invoke.texi: Describe the -mliw command line option.
10447
10448 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10449
10450 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10451 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10452 pthread_mutex_unlock): Remove.
10453 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10454 * config/pa/t-pa64: Likewise.
10455 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10456 shared libc if not linking against libpthread.
10457 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10458
10459 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10460
10461 PR target/47558
10462 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10463 on 10.6 and later to ensure that we always use the unwinder from
10464 the system. Only add -no_compact_unwind when tarteting darwin
10465 10.6 or later.
10466
10467 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10468
10469 PR target/46997
10470 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10471 (vec_interleave_lowv2sf): Ditto.
10472 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10473 (vec_extract_oddv2sf): Ditto.
10474
10475 2011-02-07 Mike Stump <mikestump@comcast.net>
10476
10477 PR target/42333
10478 Add __ieee_divdc3 entry point.
10479 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10480 entry point.
10481 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10482 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10483 * config/darwin.c (darwin_rename_builtins): Add.
10484 * config/darwin-protos.h (darwin_rename_builtins): Add.
10485
10486 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10487
10488 PR target/47636
10489 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10490 for the condition.
10491
10492 2011-02-07 Mike Stump <mikestump@comcast.net>
10493
10494 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10495
10496 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10497
10498 PR target/47534
10499 * config/avr/libgcc.S (exit): Move .endfunc
10500
10501 2011-02-07 Richard Guenther <rguenther@suse.de>
10502
10503 PR tree-optimization/47615
10504 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10505 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10506 (run_scc_vn): Initialize it.
10507 (visit_reference_op_load): Use it.
10508 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10509
10510 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10511
10512 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10513 DImode trapping arithmetic libfuncs.
10514
10515 2011-02-07 Richard Guenther <rguenther@suse.de>
10516
10517 PR tree-optimization/47621
10518 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10519 two duplicates ...
10520 (execute_update_addresses_taken): ... here. Make it more
10521 conservative in what we accept.
10522
10523 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10524
10525 * config/sparc/freebsd.h (ASM_SPEC): Define.
10526 * config/sparc/vxworks.h (ASM_SPEC): Define.
10527
10528 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10529
10530 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10531
10532 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10533
10534 * doc/invoke.texi: Remove reference to compiler internals from
10535 user documentation.
10536
10537 * reg-notes.def: Remove REG_VALUE_PROFILE.
10538 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10539
10540 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10541
10542 PR middle-end/47610
10543 * varasm.c (default_section_type_flags): If decl is NULL,
10544 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10545
10546 2011-02-05 Jie Zhang <jie@codesourcery.com>
10547
10548 PR debug/42631
10549 * web.c (entry_register): Don't clobber the number of the
10550 first uninitialized reference in used[].
10551
10552 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10553
10554 PR tree-optimization/46194
10555 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10556 (build_classic_dist_vector_1): Do not represent classic distance
10557 vectors when the access functions are variating in different loops.
10558
10559 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10560
10561 * config/mips/iris6.opt: New.
10562 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10563
10564 2011-02-04 Richard Henderson <rth@redhat.com>
10565 Steve Ellcey <sje@cup.hp.com>
10566
10567 PR target/46997
10568 * config/ia64/predicates.md (mux1_brcst_element): New.
10569 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10570 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10571 (ia64_unpack_sign): New.
10572 (ia64_expand_unpack): Rewrite using new routines.
10573 (ia64_expand_widen_sum): Ditto.
10574 (ia64_expand_dot_prod_v8qi): Ditto.
10575 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10576 routines, add endian check.
10577 (pmpy2_even): Rename from pmpy2_r, add endian check.
10578 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10579 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10580 (vec_widen_smult_hi_v4hi): Ditto.
10581 (vec_widen_umult_lo_v4hi): Ditto.
10582 (vec_widen_umult_hi_v4hi): Ditto.
10583 (mulv2si3): Change endian checks.
10584 (sdot_prodv4hi): Rewrite with new calls.
10585 (udot_prodv4hi): New.
10586 (vec_pack_ssat_v4hi): Add endian check.
10587 (vec_pack_usat_v4hi): Ditto.
10588 (vec_pack_ssat_v2si): Ditto.
10589 (max1_even): Rename from max1_r, add endian check.
10590 (max1_odd): Rename from max1_l, add endian check.
10591 (*mux1_rev): Format change.
10592 (*mux1_mix): Ditto.
10593 (*mux1_shuf): Ditto.
10594 (*mux1_alt): Ditto.
10595 (*mux1_brcst_v8qi): Use new predicate.
10596 (vec_extract_evenv8qi): Remove endian check.
10597 (vec_extract_oddv8qi): Ditto.
10598 (vec_interleave_lowv4hi): Format change.
10599 (vec_interleave_highv4hi): Ditto.
10600 (mix2_even): Rename from mix2_r, add endian check.
10601 (mix2_odd): Rename from mux2_l, add endian check.
10602 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10603 (vec_extract_evenodd_helper): Format change.
10604 (vec_extract_evenv4hi): Remove endian check.
10605 (vec_extract_oddv4hi): Remove endian check.
10606 (vec_interleave_lowv2si): Format change.
10607 (vec_interleave_highv2si): Format change.
10608 (vec_initv2si): Remove endian check.
10609 (vecinit_v2si): Add endian check.
10610 (reduc_splus_v2sf): Add endian check.
10611 (reduc_smax_v2sf): Ditto.
10612 (reduc_smin_v2sf): Ditto.
10613 (vec_initv2sf): Remove endian check.
10614 (fpack): Add endian check.
10615 (fswap): Add endian check.
10616 (vec_interleave_highv2sf): Add endian check.
10617 (vec_interleave_lowv2sf): Add endian check.
10618 (fmix_lr): Add endian check.
10619 (vec_setv2sf): Format change.
10620 (*vec_extractv2sf_0_be): Use shift to extract operand.
10621 (*vec_extractv2sf_1_be): New.
10622 (vec_pack_trunc_v4hi): Add endian check.
10623 (vec_pack_trunc_v2si): Format change.
10624
10625 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10626
10627 PR inline-asm/23200
10628 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10629 do bb, locus and block comparison and disallow loads if it is not set.
10630 (stmt_is_replaceable_p): New function.
10631 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10632 callers.
10633 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10634 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10635 SSA_NAME_DEF_STMT.
10636 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10637
10638 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10639
10640 * config/rs6000/xilinx.opt: New.
10641 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10642
10643 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10644
10645 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10646
10647 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10648
10649 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10650 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10651 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10652 secondary_reload_info, xtensa_secondary_reload): Remove.
10653 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10654 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10655 (xtensa_preferred_reload_class): Make static. Change return and
10656 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10657 Use CONST_DOUBLE_P predicate.
10658 (xtensa_preferred_output_reload_class): New function.
10659 (xtensa_secondary_reload): Make static.
10660
10661 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10662
10663 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10664 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10665 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10666
10667 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10668
10669 PR middle-end/31490
10670 * output.h (SECTION_RELRO): Define.
10671 (SECTION_MACH_DEP): Adjust.
10672 (get_variable_section): New prototype.
10673 * varpool.c (varpool_finalize_named_section_flags): New function.
10674 (varpool_assemble_pending_decls): Call it.
10675 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10676 * cgraphunit.c (cgraph_output_in_order): Call
10677 varpool_finalize_named_section_flags.
10678 * varasm.c (get_section): Allow section flags conflicts between
10679 relro and read-only sections if the section hasn't been declared yet.
10680 Set SECTION_OVERRIDE after diagnosing section type conflict.
10681 (get_variable_section): No longer static.
10682 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10683 readonly sections that need relocations.
10684 (decl_readonly_section_1): New function.
10685 (decl_readonly_section): Use it.
10686
10687 Revert:
10688 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10689 Steve Ellcey <sje@cup.hp.com>
10690
10691 PR middle-end/31490
10692 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10693 if section attribute used.
10694
10695 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10696
10697 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10698 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10699 (darwin_init_sections): Remove assertion.
10700
10701 2011-02-03 Nick Clifton <nickc@redhat.com>
10702
10703 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10704 lt and ge.
10705 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10706 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10707 instead of "n" and "pz".
10708 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10709 CC_FLAG_S.
10710
10711 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10712
10713 PR target/47312
10714 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10715 fma, expand FMA_EXPR as fma{,f,l} call.
10716
10717 PR lto/47274
10718 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10719 copy them into a unsigned char variable and pass address of it to
10720 lto_output_data_stream.
10721
10722 PR target/47564
10723 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10724 around backend_init_target and lang_dependent_init_target calls.
10725 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10726 (verify_cgraph_node): Don't call set_cfun here. Use
10727 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10728 Set error_found for incorrectly represented calls to thunks.
10729
10730 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10731
10732 PR debug/43092
10733 PR rtl-optimization/43494
10734 * rtl.h (for_each_inc_dec_fn): New type.
10735 (for_each_inc_dec): Declare.
10736 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10737 (for_each_inc_dec_find_inc_dec): New fn.
10738 (for_each_inc_dec_find_mem): New fn.
10739 (for_each_inc_dec): New fn.
10740 * dse.c (struct insn_size): Remove.
10741 (replace_inc_dec, replace_inc_dec_mem): Remove.
10742 (emit_inc_dec_insn_before): New fn.
10743 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10744 (canon_address): Pass mem modes to cselib_lookup.
10745 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10746 (cselib_lookup_from_insn): Likewise.
10747 (cselib_subst_to_values): Likewise.
10748 * cselib.c (find_slot_memmode): New var.
10749 (cselib_find_slot): New fn. Use it instead of
10750 htab_find_slot_with_hash everywhere.
10751 (entry_and_rtx_equal_p): Use find_slot_memmode.
10752 (autoinc_split): New fn.
10753 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10754 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10755 Deal with autoinc. Special-case recursion into MEMs.
10756 (cselib_hash_rtx): Likewise.
10757 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10758 address and MEM modes.
10759 (cselib_subst_to_values): Add memmode, pass it on.
10760 Deal with autoinc.
10761 (cselib_lookup): Add memmode argument, pass it on.
10762 (cselib_lookup_from_insn): Add memmode.
10763 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10764 (struct cselib_record_autoinc_data): New.
10765 (cselib_record_autoinc_cb): New fn.
10766 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10767 mode to cselib_lookup. Reset autoinced REGs here instead of...
10768 (cselib_process_insn): ... here.
10769 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10770 to cselib_lookup.
10771 (add_uses): Likewise, also to cselib_subst_to_values.
10772 (add_stores): Likewise.
10773 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10774 cselib_subst_to_values.
10775 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10776 * gcse.c (do_local_cprop): Adjusted.
10777 * postreload.c (reload_cse_simplify_set): Adjusted.
10778 (reload_cse_simplify_operands): Adjusted.
10779 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10780
10781 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10782
10783 PR tree-optimization/45122
10784 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10785 unsafe assumptions when there's more than one loop exit.
10786
10787 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10788
10789 PR target/47272
10790 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10791 Document using vector double with the load/store builtins, and
10792 that the load/store builtins always use Altivec instructions.
10793
10794 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10795 to use altivec memory instructions, even on VSX.
10796 (vector_altivec_store_<mode>): Ditto.
10797
10798 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10799 function.
10800
10801 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10802 V2DF, V2DI support to load/store overloaded builtins.
10803
10804 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10805 altivec load/store builtins for V2DF/V2DI types.
10806
10807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10808 set avoid indexed addresses on power6 if -maltivec.
10809 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10810 vector_altivec_load/vector_altivec_store builtins.
10811 (altivec_expand_st_builtin): Ditto.
10812 (altivec_expand_builtin): Add VSX memory builtins.
10813 (rs6000_init_builtins): Add V2DI types to internal types.
10814 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10815 load/store builtins.
10816 (rs6000_address_for_altivec): Insure memory address is appropriate
10817 for Altivec.
10818
10819 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10820 vec_vsx_ld and vec_vsx_st.
10821 (vsx_store_<mode>): Ditto.
10822
10823 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10824 variables to hold long long types for VSX vector memory builtins.
10825 (RS6000_BTI_unsigned_long_long): Ditto.
10826 (long_long_integer_type_internal_node): Ditti.
10827 (long_long_unsigned_type_internal_node): Ditti.
10828
10829 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10830 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10831 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10832
10833 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10834 short cuts.
10835 (vec_vsx_st): Ditto.
10836
10837 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10838
10839 * config/pa/pa-hpux10.opt: New.
10840 * config/hpux11.opt (pthread): New Driver option.
10841 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10842 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10843
10844 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10845
10846 * config/ia64/vms.opt: New.
10847 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10848
10849 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10850
10851 PR target/47580
10852 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10853 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10854 generator functions.
10855 (vsx_floatuns<VSi><mode>2): Ditto.
10856 (vsx_fix_trunc<mode><VSi>2): Ditto.
10857 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10858
10859 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10860
10861 * config/i386/djgpp.opt (posix): New Driver option.
10862
10863 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10864
10865 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10866 Move to the unsupported targets list.
10867
10868 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10869
10870 PR rtl-optimization/47525
10871 * df-scan.c: Update copyright years.
10872 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10873 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10874
10875 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10876
10877 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10878 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10879 (ASM_OUTPUT_ASCII): Remove.
10880 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10881
10882 2011-02-02 Jeff Law <law@redhat.com>
10883
10884 PR middle-end/47543
10885 * reload.c (find_reloads_address): Handle reg+d address where both
10886 components are invalid by reloading the entire address.
10887
10888 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10889 Richard Guenther <rguenther@suse.de>
10890
10891 PR tree-optimization/40979
10892 PR bootstrap/47044
10893 * passes.c (init_optimization_passes): After LIM call copy_prop
10894 and DCE to clean up.
10895 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10896
10897 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10898
10899 PR tree-optimization/47576
10900 PR tree-optimization/47555
10901 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10902 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10903 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10904 * tree-scalar-evolution.c (follow_ssa_edge): Use
10905 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10906
10907 2011-02-02 Richard Guenther <rguenther@suse.de>
10908
10909 PR tree-optimization/47566
10910 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10911
10912 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10913
10914 PR debug/47106
10915 PR debug/47402
10916 * tree-inline.c (declare_return_variable): Remove unused caller
10917 variable.
10918
10919 PR debug/47106
10920 PR debug/47402
10921 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10922 * cfgexpand.c (account_used_vars_for_block): Use them.
10923 * tree-nrv.c (tree_nrv): Likewise.
10924 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10925 (dump_scope_block): Likewise.
10926 (remove_unused_locals): Likewise.
10927
10928 PR debug/47106
10929 PR debug/47402
10930 * tree-inline.c (declare_return_variable): Add result decl to
10931 local decls only once.
10932 * gimple-low.c (record_vars_into): Mark newly-created variables
10933 as referenced.
10934
10935 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10936
10937 PR debug/47498
10938 PR debug/47501
10939 PR debug/45136
10940 PR debug/45130
10941 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10942 debug insns.
10943 (no_real_insns_p, schedule_block, set_priorities): Drop special
10944 treatment of boundary debug insns.
10945 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10946 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10947 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10948 (BOUNDARY_DEBUG_INSN_P): Likewise.
10949 (SCHEDULE_DEBUG_INSN_P): Likewise.
10950 * sched-rgn.c (init_ready_list): Drop special treatment of
10951 boundary debug insns.
10952 * final.c (rest_of_clean_state): Clear notes' BB.
10953
10954 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10955
10956 * config/openbsd.opt (assert=): New Driver option.
10957
10958 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10959
10960 * config/i386/nto.opt: New.
10961 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10962
10963 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10964
10965 * config/i386/netware.opt: New.
10966 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10967
10968 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10969
10970 * config/interix.opt (posix): New Driver option.
10971
10972 2011-02-01 DJ Delorie <dj@redhat.com>
10973
10974 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10975
10976 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10977 class for A0/A1.
10978
10979 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10980
10981 PR tree-optimization/47561
10982 * toplev.c (process_options): Print the Graphite flags. Add
10983 flag_loop_flatten to the list of options requiring Graphite.
10984
10985 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10986
10987 * config/i386/cygming.opt (posix): New Driver option.
10988
10989 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10990
10991 * config/arm/vxworks.opt: New.
10992 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10993
10994 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10995
10996 * config/alpha/elf.opt: New.
10997 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10998 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10999
11000 2011-02-01 Richard Guenther <rguenther@suse.de>
11001
11002 PR tree-optimization/47559
11003 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11004 store-motion on references that can throw.
11005
11006 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11007
11008 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11009 * tree-pass.h (TDF_CSELIB): New macro.
11010 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11011 cselib_lookup): Check for it rather than for TDF_DETAILS.
11012
11013 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11014
11015 PR driver/47547
11016 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11017 is HOST_BIT_BUCKET.
11018
11019 * opts.c (finish_options): Don't add x_aux_base_name if it is
11020 HOST_BIT_BUCKET.
11021
11022 2011-02-01 Richard Guenther <rguenther@suse.de>
11023
11024 PR tree-optimization/47555
11025 Revert
11026 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11027
11028 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11029
11030 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11031
11032 PR gcc/46692
11033 * config/lm32/t-lm32: Add multilib for all CPU options.
11034
11035 2011-02-01 Richard Guenther <rguenther@suse.de>
11036
11037 PR tree-optimization/47541
11038 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11039 sure to have a field at offset zero.
11040
11041 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11042
11043 * config/arc/arc.opt (EB, EL): New Driver options.
11044
11045 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11046
11047 * config/alpha/osf5.opt: New.
11048 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11049
11050 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11051
11052 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11053
11054 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11055
11056 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11057 -floop-interchange.
11058 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11059 is an alias of -floop-interchange and that it requires the
11060 Graphite infrastructure.
11061 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11062 flag_loop_interchange based on the value of flag_tree_loop_linear.
11063
11064 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11065 Richard Guenther <rguenther@suse.de>
11066
11067 PR tree-optimization/47538
11068 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11069 type instead of r1type, except for comparisons. For right
11070 shifts and comparisons punt if there are mismatches in
11071 sizetype vs. non-sizetype types.
11072
11073 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11074
11075 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11076 avx_runtime.
11077
11078 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11079
11080 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11081 version number.
11082 * configure: Regenerate.
11083
11084 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11085
11086 * configure.ac (gcc_cv_ld_static_option): Define.
11087 (gcc_cv_ld_dynamic_option): Define.
11088 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11089 instead.
11090 (HAVE_LD_STATIC_DYNAMIC): Update message.
11091 (LD_STATIC_OPTION): Define.
11092 (LD_DYNAMIC_OPTION): Define.
11093 * configure: Regenerate.
11094 * config.in: Regenerate.
11095 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11096 HAVE_LD_STATIC_DYNAMIC]: Use them.
11097
11098 2011-01-31 Nick Clifton <nickc@redhat.com>
11099
11100 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11101 registers inside interrupt handlers if the handler is not a leaf
11102 function.
11103
11104 2011-01-31 Nick Clifton <nickc@redhat.com>
11105
11106 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11107 reg_renumber returning an INVALID_REGNUM.
11108
11109 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11110
11111 PR libgcj/44341
11112 * doc/install.texi: Document host options discarded when cross
11113 configuring target libraries.
11114
11115 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11116
11117 Reverted:
11118 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11119 PR debug/45136
11120 PR debug/45130
11121 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11122 debug insns.
11123 (no_real_insns_p, schedule_block, set_priorities): Drop special
11124 treatment of boundary debug insns.
11125 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11126 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11127 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11128 (BOUNDARY_DEBUG_INSN_P): Likewise.
11129 (SCHEDULE_DEBUG_INSN_P): Likewise.
11130 * sched-rgn.c (init_ready_list): Drop special treatment of
11131 boundary debug insns.
11132 * final.c (rest_of_clean-state): Clear notes' BB.
11133
11134 2011-01-31 Alan Modra <amodra@gmail.com>
11135
11136 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11137 toc relative expressions as we do in print_operand_address.
11138
11139 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11140
11141 * doc/extend.texi: Follow spelling conventions.
11142 * doc/invoke.texi: Fix a typo.
11143
11144 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11145
11146 * config/hpux11.opt: New.
11147 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11148 ia64*-*-hpux*): Use hpux11.opt.
11149
11150 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11151
11152 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11153 to tmake_file.
11154
11155 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11156
11157 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11158 support sites.
11159
11160 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11161
11162 * doc/install.texi (Binaries): Remove outdated reference for
11163 Motorola 68HC11/68HC12 downloads.
11164
11165 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11166
11167 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11168 Drepper's paper.
11169
11170 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11171
11172 PR bootstrap/47147
11173 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11174 used by NetBSD.
11175
11176 2011-01-28 Ahmad Sharif <asharif@google.com>
11177
11178 * value-prof.c (check_counter): Corrected error message.
11179
11180 2011-01-29 Jie Zhang <jie@codesourcery.com>
11181
11182 * config/arm/arm.c (arm_legitimize_reload_address): New.
11183 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11184 arm_legitimize_reload_address.
11185 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11186
11187 2011-01-28 Ian Lance Taylor <iant@google.com>
11188
11189 * godump.c (go_define): Ignore macros whose definitions include
11190 two adjacent operands.
11191
11192 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR target/42894
11195 * varasm.c (force_const_mem): Store copy of x in desc->constant
11196 instead of x itself.
11197 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11198 itself into REG_EQUAL note.
11199
11200 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11201
11202 * config/freebsd.opt (posix, rdynamic): New Driver options.
11203
11204 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11205
11206 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11207 -Bstatic/-Bdynamic.
11208 * configure: Regenerate.
11209
11210 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11211
11212 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11213 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11214
11215 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11216
11217 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11218 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11219 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11220 (s390_preferred_reload_class): Make static. Change return and
11221 'rclass' argument type to reg_class_t.
11222
11223 2011-01-27 Jan Hubicka <jh@suse.cz>
11224
11225 PR middle-end/46949
11226 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11227 (process_function_and_variable_attributes): Check defined weakrefs.
11228
11229 2011-01-27 Martin Jambor <mjambor@suse.cz>
11230
11231 PR tree-optimization/47228
11232 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11233 build_ref_for_offset.
11234
11235 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11236
11237 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11238
11239 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11240
11241 PR rtl-optimization/46856
11242 * postreload.c (reload_combine_recognize_const_pattern): Do not
11243 separate cc0 setter and user on cc0 targets.
11244
11245 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11246
11247 PR c/43082
11248 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11249 passed a VOID_TYPE expression, immediately emit an error and
11250 return error_mark_node.
11251
11252 2011-01-26 Jeff Law <law@redhat.com>
11253
11254 PR rtl-optimization/47464
11255 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11256 rather than may_trap_p as needed.
11257
11258 2011-01-26 DJ Delorie <dj@redhat.com>
11259
11260 PR rtl-optimization/46878
11261 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11262 setter/user dependency as well.
11263
11264 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11265
11266 PR rtl-optimization/44469
11267 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11268 after removing trivially dead basic blocks.
11269
11270 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11271
11272 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11273 * config/frv/frv.h (LINK_SPEC): Likewise.
11274 * config/i386/netware.h (LINK_SPEC): Likewise.
11275 * config/m68k/linux.h (ASM_SPEC): Likewise.
11276 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11277 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11278 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11279 * config/sparc/linux.h (ASM_SPEC): Likewise.
11280 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11281 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11282
11283 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11284
11285 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11286 * config/frv/frv.h (ASM_SPEC): Likewise.
11287 * config/m68k/linux.h (ASM_SPEC): Likewise.
11288 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11289 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11290 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11291 * config/sparc/linux.h (ASM_SPEC): Likewise.
11292 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11293 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11294
11295 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11296
11297 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11298 * config/frv/frv.h (LINK_SPEC): Likewise.
11299 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11300
11301 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11302
11303 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11304 * config/frv/frv.h (ASM_SPEC): Likewise.
11305 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11306 * config/m68k/linux.h (ASM_SPEC): Likewise.
11307 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11308 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11309 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11310 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11311 * config/sparc/linux.h (ASM_SPEC): Likewise.
11312 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11313 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11314 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11315
11316 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11317
11318 PR target/46997
11319 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11320 (*mux2): Ditto.
11321 (vec_extract_evenodd_help): Ditto.
11322 (vec_extract_evenv4hi): Ditto.
11323 (vec_extract_oddv4hi): Ditto.
11324 (vec_interleave_lowv2si): Ditto.
11325 (vec_interleave_highv2si): Ditto.
11326 (vec_extract_evenv2si): Ditto.
11327 (vec_extract_oddv2si: Ditto.
11328 (vec_pack_trunc_v2si): Ditto.
11329
11330 2011-01-22 Jan Hubicka <jh@suse.cz>
11331
11332 PR target/47237
11333 * cgraph.h (cgraph_local_info): New field can_change_signature.
11334 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11335 signature can change.
11336 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11337 can change.
11338 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11339 (cgraph_function_versioning): We can not change signature of functions
11340 that don't allow that.
11341 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11342 (lto_input_node): Likewise.
11343 * ipa-inline.c (compute_inline_parameters): Compute
11344 local.can_change_signature.
11345 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11346 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11347 functions that can not change signature.
11348 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11349 init_cumulative_args): Do not use local calling conventions
11350 for functions that can not change signature.
11351
11352 2011-01-22 Jan Hubicka <jh@suse.cz>
11353
11354 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11355
11356 2011-01-26 Richard Guenther <rguenther@suse.de>
11357
11358 PR tree-optimization/47190
11359 * cgraphunit.c (process_common_attributes): New function.
11360 (process_function_and_variable_attributes): Use it.
11361
11362 2011-01-26 Richard Guenther <rguenther@suse.de>
11363
11364 PR lto/47423
11365 * cgraphbuild.c (record_eh_tables): Record reference to personality
11366 function.
11367
11368 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11369
11370 PR debug/45454
11371 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11372 non-debug insns from moving up.
11373
11374 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11375
11376 PR target/40125
11377 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11378 t-dlldir{,-x} fragment for build and add it to tmake_file.
11379 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11380 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11381 * config/i386/t-dlldir: New file.
11382 (SHLIB_DLLDIR): Define.
11383 * config/i386/t-dlldir-x: New file.
11384 (SHLIB_DLLDIR): Define.
11385 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11386 (SHLIB_INSTALL): Use it.
11387
11388 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11389
11390 PR target/47246
11391 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11392 lower bound of the allowed Thumb-2 coprocessor load/store
11393 index range to -256. Add explaining comment.
11394
11395 2011-01-25 Ian Lance Taylor <iant@google.com>
11396
11397 * godump.c (go_define): Improve lexing of macro expansion to only
11398 accept expressions which match Go spec.
11399
11400 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11401
11402 PR c++/43601
11403 * tree.c (handle_dll_attribute): Handle it.
11404 * doc/extend.texi (@item dllexport): Mention it.
11405 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11406
11407 2011-01-25 Ian Lance Taylor <iant@google.com>
11408
11409 PR tree-optimization/26854
11410 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11411 (decl_jump_unsafe): Move higher in file, with no other change.
11412 (bind): Set has_jump_unsafe_decl if appropriate.
11413 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11414 (check_earlier_gotos): Likewise.
11415 (c_check_switch_jump_warnings): Likewise.
11416
11417 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11418
11419 * doc/invoke.texi (Warning Options): Add missing hyphen.
11420 (-fprofile-dir): Minor grammatical fixes.
11421 (-fbranch-probabilities): Likewise.
11422
11423 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11424
11425 PR debug/45136
11426 PR debug/45130
11427 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11428 debug insns.
11429 (no_real_insns_p, schedule_block, set_priorities): Drop special
11430 treatment of boundary debug insns.
11431 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11432 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11433 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11434 (BOUNDARY_DEBUG_INSN_P): Likewise.
11435 (SCHEDULE_DEBUG_INSN_P): Likewise.
11436 * sched-rgn.c (init_ready_list): Drop special treatment of
11437 boundary debug insns.
11438 * final.c (rest_of_clean-state): Clear notes' BB.
11439
11440 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11441
11442 * Makefile.in (LAMBDA_H): Removed.
11443 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11444 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11445 lambda-trans.o, and tree-loop-linear.o.
11446 (lto-symtab.o): Remove dependence on LAMBDA_H.
11447 (tree-loop-linear.o): Remove rule.
11448 (lambda-mat.o): Same.
11449 (lambda-trans.o): Same.
11450 (lambda-code.o): Same.
11451 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11452 (tree-vect-slp.o): Same.
11453 * hwint.h (gcd): Moved here.
11454 (least_common_multiple): Same.
11455 * lambda-code.c: Removed.
11456 * lambda-mat.c: Removed.
11457 * lambda-trans.c: Removed.
11458 * lambda.h: Removed.
11459 * tree-loop-linear.c: Removed.
11460 * lto-symtab.c: Do not include lambda.h.
11461 * omega.c (gcd): Removed.
11462 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11463 * tree-data-ref.c (print_lambda_vector): Moved here.
11464 (lambda_vector_copy): Same.
11465 (lambda_matrix_copy): Same.
11466 (lambda_matrix_id): Same.
11467 (lambda_vector_first_nz): Same.
11468 (lambda_matrix_row_add): Same.
11469 (lambda_matrix_row_exchange): Same.
11470 (lambda_vector_mult_const): Same.
11471 (lambda_vector_negate): Same.
11472 (lambda_matrix_row_negate): Same.
11473 (lambda_vector_equal): Same.
11474 (lambda_matrix_right_hermite): Same.
11475 * tree-data-ref.h: Do not include lambda.h.
11476 (lambda_vector): Moved here.
11477 (lambda_matrix): Same.
11478 (dependence_level): Same.
11479 (lambda_transform_legal_p): Removed declaration.
11480 (lambda_collect_parameters): Same.
11481 (lambda_compute_access_matrices): Same.
11482 (lambda_vector_gcd): Same.
11483 (lambda_vector_new): Same.
11484 (lambda_vector_clear): Same.
11485 (lambda_vector_lexico_pos): Same.
11486 (lambda_vector_zerop): Same.
11487 (lambda_matrix_new): Same.
11488 * tree-flow.h (least_common_multiple): Removed declaration.
11489 * tree-parloops.c (lambda_trans_matrix): Moved here.
11490 (LTM_MATRIX): Same.
11491 (LTM_ROWSIZE): Same.
11492 (LTM_COLSIZE): Same.
11493 (LTM_DENOMINATOR): Same.
11494 (lambda_trans_matrix_new): Same.
11495 (lambda_matrix_vector_mult): Same.
11496 (lambda_transform_legal_p): Same.
11497 * tree-pass.h (pass_linear_transform): Removed declaration.
11498 * tree-ssa-loop.c (tree_linear_transform): Removed.
11499 (gate_tree_linear_transform): Removed.
11500 (pass_linear_transform): Removed.
11501 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11502 flag_loop_interchange.
11503
11504 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11505
11506 PR tree-optimization/47265
11507 PR tree-optimization/47443
11508 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11509 if name still has some uses.
11510
11511 2011-01-25 Martin Jambor <mjambor@suse.cz>
11512
11513 PR tree-optimization/47382
11514 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11515 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11516
11517 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11518
11519 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11520 sjlj_except_unwind_info.
11521
11522 2011-01-25 Richard Guenther <rguenther@suse.de>
11523
11524 PR tree-optimization/47426
11525 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11526 visible functions results escape.
11527
11528 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11529
11530 PR target/45701
11531 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11532 (arm_get_frame_offsets): Use it.
11533
11534 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11535 Jakub Jelinek <jakub@redhat.com>
11536
11537 PR tree-optimization/47271
11538 * tree-if-conv.c (bb_postdominates_preds): New.
11539 (if_convertible_bb_p): Call bb_postdominates_preds.
11540 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11541 (predicate_scalar_phi): Call bb_postdominates_preds.
11542
11543 2011-01-25 Nick Clifton <nickc@redhat.com>
11544
11545 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11546 * config/rx/rx.c (rx_function_value): Likewise.
11547 (rx_promote_function_mode): Likewise.
11548 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11549 in order to make it legitimate.
11550 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11551 make sure that the first operand is the same as the result register.
11552 (addsi3_unspec): Delete.
11553 (subdi3): Do not accept immediate operands.
11554 (subdi3_internal): Likewise.
11555
11556 2011-01-25 Jeff Law <law@redhat.com>
11557
11558 PR rtl-optimization/37273
11559 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11560 handle them like argument loads from stack slots. Do not double
11561 count memory for memory constants and argument loads from stack slots.
11562
11563 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11564
11565 PR tree-optimization/47427
11566 PR tree-optimization/47428
11567 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11568 coalesce if the new root var would be TREE_READONLY.
11569
11570 2011-01-25 Richard Guenther <rguenther@suse.de>
11571
11572 PR middle-end/47414
11573 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11574 correct type for TBAA.
11575
11576 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11577
11578 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11579 (close_phi_written_to_memory): Call for_each_index with
11580 dr_indices_valid_in_loop.
11581
11582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11583
11584 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11585 when it is initialized.
11586
11587 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11588
11589 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11590 call to graphite_find_data_references_in_stmt.
11591 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11592 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11593 call to graphite_find_data_references_in_stmt.
11594 (analyze_drs_in_stmts): Same.
11595 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11596 in which the scalar analysis of indices is performed.
11597 (create_data_ref): Same. Update call to dr_analyze_indices.
11598 (find_data_references_in_stmt): Update call to create_data_ref.
11599 (graphite_find_data_references_in_stmt): Same.
11600 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11601 declaration.
11602 (create_data_ref): Same.
11603 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11604 call to create_data_ref.
11605
11606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11607
11608 * graphite-sese-to-poly.c (build_poly_scop): Move
11609 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11610
11611 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11612
11613 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11614 VAR_DECL, PARM_DECL, and RESULT_DECL.
11615
11616 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11617
11618 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11619 in a reduction PBB.
11620 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11621 that have already been marked as PBB_IS_REDUCTION.
11622
11623 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11624
11625 * graphite-scop-detection.c (same_close_phi_node): New.
11626 (remove_duplicate_close_phi): New.
11627 (make_close_phi_nodes_unique): New.
11628 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11629
11630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11631
11632 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11633 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11634 of both data references to be the same.
11635
11636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11637
11638 * graphite-dependences.c (build_lexicographical_constraint): Remove
11639 the gdim parameter.
11640 (build_lexicographical_constraint): Adjust call to
11641 ppl_powerset_is_empty.
11642 (dependence_polyhedron): Same.
11643 (graphite_legal_transform_dr): Same.
11644 (graphite_carried_dependence_level_k): Same.
11645 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11646 parameter.
11647 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11648
11649 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11650
11651 * graphite-sese-to-poly.c
11652 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11653 (close_phi_written_to_memory): New.
11654 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11655 and unshare_expr.
11656
11657 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11658
11659 * doc/install.texi: Update the expected version number of PPL to 0.11.
11660 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11661 #if PPL_VERSION_MINOR < 11.
11662
11663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11664
11665 * graphite-dependences.c: Include graphite-cloog-util.h.
11666 (new_poly_ddr): Inlined into dependence_polyhedron.
11667 (free_poly_ddr): Moved close by new_poly_ddr.
11668 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11669 Early return NULL when ppl_powerset_is_empty returns true.
11670 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11671 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11672 (graphite_legal_transform_dr): Call new_poly_ddr.
11673 (graphite_carried_dependence_level_k): Same.
11674 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11675 (dot_transformed_deps_stmt_1): Removed.
11676 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11677 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11678 (dot_deps_1): Call dot_deps_2.
11679 * Makefile.in (graphite-dependences.o): Add missing dependence on
11680 graphite-cloog-util.h.
11681
11682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11683
11684 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11685 (build_lexicographical_constraint): Same.
11686 (dependence_polyhedron_1): Same.
11687 (graphite_legal_transform_dr): Same.
11688 (graphite_carried_dependence_level_k): Same.
11689 * graphite-ppl.c (ppl_powerset_is_empty): New.
11690 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11691 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11692
11693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11694
11695 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11696 the "a followed by b" relation and document it.
11697
11698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11699
11700 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11701 iteration when the bag of constraints is empty.
11702
11703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11704
11705 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11706
11707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11708
11709 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11710 nest and two loop depths as parameters.
11711 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11712 lst_perfect_nestify.
11713
11714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11715
11716 * graphite-dependences.c (print_pddr): Call
11717 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11718
11719 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11720
11721 * graphite-ppl.c (debug_gmp_value): New.
11722 * graphite-ppl.h (debug_gmp_value): Declared.
11723
11724 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11725
11726 * doc/install.texi: Document availability of cloog-0.16.
11727
11728 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11729
11730 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11731 invalid postdominance info.
11732
11733 2011-01-24 Jan Hubicka <jh@suse.cz>
11734
11735 PR c/21659
11736 * doc/extend.texi (weak pragma): Drop claim that it must
11737 appear before definition.
11738 * varasm.c (merge_weak, declare_weak): Only sanity check
11739 that DECL is not output at a time it is declared weak.
11740
11741 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11742
11743 * machmode.def: Fixed comments.
11744
11745 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11746
11747 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11748
11749 2011-01-24 Paul Koning <ni1d@arrl.net>
11750
11751 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11752 WORDS_BIG_ENDIAN.
11753
11754 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11755
11756 PR target/46519
11757 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11758 (block_info): Add scanned and prev.
11759 (move_or_delete_vzeroupper_2): Return if the basic block
11760 has been scanned and the upper 128bit state is unchanged
11761 from the last scan.
11762 (move_or_delete_vzeroupper_1): Return true if the exit
11763 state is changed.
11764 (move_or_delete_vzeroupper): Visit basic blocks using the
11765 work-list based algorithm based on vt_find_locations in
11766 var-tracking.c.
11767
11768 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11769
11770 2011-01-24 Nick Clifton <nickc@redhat.com>
11771
11772 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11773 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11774 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11775 then define __v850e1__.
11776 * doc/invoke.texi: Document -mv850es.
11777
11778 2011-01-24 Richard Henderson <rth@redhat.com>
11779
11780 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11781 compound unordered comparisons.
11782 * config/rx/rx.c (rx_split_fp_compare): Remove.
11783 * config/rx/rx-protos.h: Update.
11784 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11785 (cbranchsf4): Don't call rx_split_fp_compare.
11786 (*cbranchsf4): Use rx_split_cbranch.
11787 (*cmpsf): Don't accept "i" constraint.
11788 (*conditional_branch): Only valid after reload.
11789 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11790
11791 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11792
11793 PR target/47385
11794 * config/rs6000/altivec.md (vector constant splitters): Add
11795 support for creating vector single precision constants if -mvsx is
11796 used and we would create the constant using Altivec primitives.
11797
11798 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11799 Richard Sandiford <rdsandiford@googlemail.com>
11800
11801 PR rtl-optimization/47166
11802 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11803 mechanism for PRE_MODIFY and POST_MODIFY.
11804 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11805 reloadreg.
11806
11807 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11808
11809 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11810
11811 2011-01-22 Jan Hubicka <jh@suse.cz>
11812
11813 PR lto/47333
11814 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11815
11816 2011-01-22 Jan Hubicka <jh@suse.cz>
11817
11818 PR tree-optimization/43884
11819 PR lto/44334
11820 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11821 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11822
11823 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11824
11825 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11826 * config/s390/s390.c (s390_register_move_cost,
11827 s390_memory_move_cost): New.
11828 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11829
11830 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11831
11832 PR middle-end/47401
11833 * except.c (sjlj_assign_call_site_values): Move setting the
11834 crtl->uses_eh_lsda flag to ...
11835 (sjlj_mark_call_sites): ... here.
11836 (sjlj_emit_function_enter): Support NULL dispatch label.
11837 (sjlj_build_landing_pads): In a function with no landing pads
11838 that still has must-not-throw regions, generate code to register
11839 a personality function with empty LSDA.
11840
11841 2011-01-21 Richard Henderson <rth@redhat.com>
11842
11843 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11844
11845 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11846
11847 * compare-elim.c: New file.
11848 * Makefile.in (OBJS-common): Add it.
11849 (compare-elim.o): New.
11850 * common.opt (fcompare-elim): New.
11851 * opts.c (default_options_table): Add OPT_fcompare_elim.
11852 * tree-pass.h (pass_compare_elim_after_reload): New.
11853 * passes.c (init_optimization_passes): Add it.
11854 * recog.h: Protect against re-inclusion.
11855 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11856 * doc/invoke.texi (-fcompare-elim): Document it.
11857 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11858 * doc/tm.texi: Rebuild.
11859
11860 2011-01-22 Nick Clifton <nickc@redhat.com>
11861
11862 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11863 rx_split_fp_compare.
11864
11865 2011-01-22 Nick Clifton <nickc@redhat.com>
11866
11867 * config/rx/rx.md (UNSPEC_CONST): New.
11868 (deallocate_and_return): Wrap the amount popped off the stack in
11869 an UNSPEC_CONST in order to stop it being rejected by
11870 -mmax-constant-size.
11871 (pop_and_return): Add a "(return)" rtx.
11872 (call): Drop the immediate operand.
11873 (call_internal): Likewise.
11874 (call_value): Likewise.
11875 (call_value_internal): Likewise.
11876 (sibcall_internal): Likewise.
11877 (sibcall_value_internal): Likewise.
11878 (sibcall): Likewise. Generate an explicit call using
11879 sibcall_internal.
11880 (sibcall_value): Likewise.
11881 (mov<>): FAIL if a constant operand is not legitimate.
11882 (addsi3_unpsec): New pattern.
11883
11884 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11885 (ok_for_max_constant): New function.
11886 (gen_safe_add): New function.
11887 (rx_expand_prologue): Use gen_safe_add.
11888 (rx_expand_epilogue): Likewise.
11889 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11890 UNSPEC CONSTs.
11891
11892 2011-01-21 Jeff Law <law@redhat.com>
11893
11894 PR tree-optimization/47053
11895 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11896 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11897 statements are deleted.
11898 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11899 is nonempty, then purge dead edges and cleanup the CFG.
11900
11901 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11902
11903 PR debug/47402
11904 Temporarily revert:
11905 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11906 PR debug/47106
11907 * tree-dfa.c (create_var_ann): Mark variable as used.
11908
11909 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11910
11911 PR middle-end/45566
11912 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11913 notes from other section in hot/cold partitioning even if
11914 last_action is -3. Increment call_site_base.
11915
11916 PR rtl-optimization/47366
11917 * fwprop.c (forward_propagate_into): Return bool. If
11918 any changes are made, -fnon-call-exceptions is used and
11919 REG_EH_REGION note is present, call purge_dead_edges
11920 and return true if it purged anything.
11921 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11922 any EH edges were purged.
11923
11924 2011-01-21 Jeff Law <law@redhat.com>
11925
11926 PR rtl-optimization/41619
11927 * caller-save.c (setup_save_areas): Break out code to determine
11928 which hard regs are live across calls by examining the reload chains
11929 so that it is always used.
11930 Eliminate code which checked REG_N_CALLS_CROSSED.
11931
11932 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11933
11934 PR tree-optimization/47355
11935 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11936 NOP has non-debug uses beyond PHIs in new_bb.
11937
11938 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11939
11940 PR debug/47106
11941 * cfgexpand.c (account_used_vars_for_block): Only account vars
11942 that are annotated as used.
11943 (estimated_stack_frame_size): Don't set TREE_USED.
11944 * tree-dfa.c (create_var_ann): Mark variable as used.
11945
11946 2011-01-21 Richard Guenther <rguenther@suse.de>
11947
11948 PR middle-end/47395
11949 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11950
11951 2011-01-21 Richard Guenther <rguenther@suse.de>
11952
11953 PR tree-optimization/47365
11954 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11955 (vn_reference_lookup_pieces): Adjust.
11956 (vn_reference_lookup): Likewise.
11957 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11958 (vn_reference_lookup_3): Only look through kills if in
11959 VN_WALKREWRITE mode.
11960 (vn_reference_lookup_pieces): Adjust.
11961 (vn_reference_lookup): Likewise.
11962 (visit_reference_op_load): Likewise.
11963 (visit_reference_op_store): Likewise.
11964 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11965 (compute_avail): Likewise.
11966 (eliminate): Likewise.
11967
11968 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11969
11970 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11971 DECL_IGNORED_P non-reg vars if they are used.
11972
11973 PR tree-optimization/47391
11974 * varpool.c (const_value_known_p): Return false if
11975 decl is volatile.
11976
11977 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11978
11979 PR bootstrap/47215
11980 * config/i386/i386.c (ix86_local_alignment): Handle
11981 case for va_list_type_node is nil.
11982 (ix86_canonical_va_list_type): Likewise.
11983
11984 2011-01-21 Alan Modra <amodra@gmail.com>
11985
11986 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11987 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11988
11989 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11990
11991 * config/arm/arm.md (define_attr type): Rename f_load
11992 and f_store to f_fpa_load and f_fpa_store. Update.
11993 (write_conflict): Deal with rename fallout.
11994 (*push_fp_multi): Likewise.
11995 * config/arm/fpa.md (f_load): Use f_fpa_load.
11996 (f_store): Use f_fpa_store.
11997 (*movsf_fpa): Likewise.
11998 (*movdf_fpa): Likewise.
11999 (*movxf_fpa): Likewise.
12000 (*thumb2_movsf_fpa): Likewise.
12001 (*thumb2_movdf_fpa): Likewise.
12002 (*thumb2_movxf_fpa): Likewise.
12003 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12004 f_loadd and f_stored.
12005 (*thumb2_movdi_vfp): Likewise.
12006 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12007 (*thumb2_movsi_vfp): Likewise.
12008 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12009 Use f_loads instead of f_load.
12010 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12011
12012 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12013
12014 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12015 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12016 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12017 (xtensa_mode_dependent_address_p): New function.
12018 (constantpool_address_p): Make static. Change return type to bool.
12019 Change argument type to const_rtx. Use CONST_INT_P predicate.
12020
12021 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12022
12023 PR debug/46583
12024 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12025
12026 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12027
12028 PR debug/47283
12029 * cfgexpand.c (expand_debug_expr): Instead of generating
12030 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12031 etc. handling.
12032
12033 2011-01-20 Richard Guenther <rguenther@suse.de>
12034
12035 PR middle-end/47370
12036 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12037 the pointer operand of MEM_REFs.
12038
12039 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12040
12041 PR tree-optimization/46130
12042 * ipa-split.c (consider_split): If return_bb contains non-virtual
12043 PHIs other than for retval or if split_function would not adjust it,
12044 refuse to split.
12045
12046 2011-01-20 Richard Guenther <rguenther@suse.de>
12047
12048 PR tree-optimization/47167
12049 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12050 Revert previous change, only avoid enumeral type changes.
12051
12052 2011-01-19 Mike Stump <mikestump@comcast.net>
12053
12054 * doc/tm.texi.in (BRANCH_COST): Englishify.
12055 * doc/tm.texi (BRANCH_COST): Likewise.
12056
12057 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12058
12059 PR c++/47291
12060 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12061 (gen_scheduled_generic_parms_dies): New functions.
12062 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12063 generation for the end of CU compilation.
12064 (dwarf2out_finish): Generate template parameters DIEs here.
12065
12066 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12067
12068 PR debug/46240
12069 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12070 debug bind stmt on merge edges.
12071
12072 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12073
12074 PR debug/47079
12075 PR debug/46724
12076 * function.c (instantiate_expr): Instantiate incoming rtl of
12077 implicit arguments, and recurse on VALUE_EXPRs.
12078 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12079 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12080
12081 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12082
12083 * c-parser.c (c_parser_for_statement): Initialize
12084 collection_expression.
12085
12086 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12087
12088 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12089
12090 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12091
12092 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12093 (LINK_SHLIB_SPEC): Don't use %(link_path).
12094 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12095
12096 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12097
12098 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12099 (NO_SHARED_LIB_SUPPORT): Remove.
12100 (LINK_SHLIB_SPEC): Remove one conditional definition.
12101
12102 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12103
12104 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12105 %{call_shared}.
12106 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12107 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12108 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12109 %{call_shared} and conditionals on these options not being passed.
12110 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12111 %{call_shared}.
12112
12113 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12114
12115 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12116 simplify.
12117
12118 * ipa-split.c: Spelling fixes.
12119
12120 2011-01-19 Richard Henderson <rth@redhat.com>
12121
12122 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12123 (*mulsi3): Likewise.
12124
12125 * longlong.h [__mn10300__] (count_leading_zeros): New.
12126 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12127 [__mn10300__] (add_ssaaaa, subddmmss): New.
12128 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12129 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12130
12131 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12132
12133 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12134
12135 2011-01-19 Richard Henderson <rth@redhat.com>
12136
12137 * config/mn10300/mn10300.md (addsi3_flags): New.
12138 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12139 (subsi3_flags, subc_internal, subdi3): New.
12140 (subdi3_internal, *subdi3_degenerate): New.
12141 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12142
12143 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12144 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12145 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12146 * config/mn10300/mn10300-protos.h: Update.
12147 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12148 (return_ret): Likewise. Rename from return_internal_regs.
12149 (return_internal): Remove.
12150
12151 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12152 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12153 (mn10300_legitimate_constant_p): Likewise.
12154 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12155 (mn10300_frame_size): New.
12156 (mn10300_expand_prologue): Use it.
12157 (mn10300_expand_epilogue): Likewise.
12158 (mn10300_initial_offset): Likewise.
12159 * config/mn10300/mn10300-protos.h: Update.
12160 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12161 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12162 (prologue, epilogue, return_internal): Tidy output code.
12163 (mn10300_store_multiple_operation, return): Likewise.
12164 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12165 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12166 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12167 (load_pic, am33_load_pic): New.
12168 (mn10300_load_pic0, mn10300_load_pic1): New.
12169
12170 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12171 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12172 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12173 (cc_flags_for_mode, cc_flags_for_code): New.
12174 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12175 overflow flag is not valid. Validate that the flags we need
12176 for the comparison are valid.
12177 (mn10300_output_cmp): Remove.
12178 (mn10300_output_add): New.
12179 (mn10300_select_cc_mode): Use cc_flags_for_code.
12180 (mn10300_split_cbranch): New.
12181 (mn10300_match_ccmode): New.
12182 (mn10300_split_and_operand_count): New.
12183 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12184 to the function.
12185 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12186 (addsi3): ... here. Use mn10300_output_add.
12187 (*addsi3_flags): New.
12188 (*am33_subsi3, *mn10300_subsi3): Merge...
12189 (subsi3): ... here. Use attribute isa.
12190 (*subsi3_flags): New.
12191 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12192 when possible.
12193 (*am33_andsi3, *mn10300_andsi3): Merge...
12194 (andsi3): ... here.
12195 (*andsi3_flags): New.
12196 (andsi3 splitters): New.
12197 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12198 (iorsi3): ... here.
12199 (*iorsi3_flags): New.
12200 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12201 (xorsi3): ... here.
12202 (*xorsi3_flags): New.
12203 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12204 (one_cmplsi2): ... here.
12205 (*one_cmplsi2_flags): New.
12206 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12207 instead of "dax" in constraints. Use mn10300_split_cbranch.
12208 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12209 use matching constraints to eliminate a self-comparison.
12210 (*integer_conditional_branch): Rename from integer_conditional_branch.
12211 Use int_mode_flags to match CC_REG.
12212 (*cbranchsi4_btst, *btstsi): New.
12213 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12214 mn10300_split_cbranch.
12215 (*am33_cmpsf): Rename from am33_cmpsf.
12216 (*float_conditional_branch): Rename from float_conditional_branch.
12217 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12218 (zero_extendqisi2): ... here.
12219 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12220 (zero_extendhisi2): ... here.
12221 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12222 (extendqisi2): ... here.
12223 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12224 (extendhisi2): ... here.
12225 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12226 (ashlsi3): ... here.
12227 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12228 (lshrsi3): ... here.
12229 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12230 (ashrsi3): ... here.
12231 (consecutive add peephole): Remove.
12232 * config/mn10300/predicates.md (label_ref_operand): New.
12233 (int_mode_flags): New.
12234 (CCZN_comparison_operator): New.
12235
12236 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12237 (throughput_42_latency_43): New reservation.
12238 (mulsidi3, umulsidi3): New expanders.
12239 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12240 the MDR register to allocation; separately allocate the low and
12241 high parts of the DImode result.
12242 (umulsidi3_internal): Similarly.
12243 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12244 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12245 (udivsi3, umodsi3): Remove.
12246 (udivmodsi4, divmodsi4): New expanders.
12247 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12248 (*divmodsi4): Simiarly.
12249 (ext_internal): New.
12250
12251 * config/mn10300/constraints.md ("z"): New constraint.
12252 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12253 (FIXED_REGISTERS): Don't fix MDR.
12254 (CALL_USED_REGSITERS): Reformat nicely.
12255 (REG_ALLOC_ORDER): Add MDR.
12256 (enum regclass): Add MDR_REGS.
12257 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12258 (IRA_COVER_CLASSES): Add MDR_REGS.
12259 (REGNO_REG_CLASS): Handle MDR_REG.
12260 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12261 (mn10300_register_move_cost): Likewise.
12262 * config/mn10300/mn10300.md (MDR_REG): New.
12263 (*movsi_internal): Handle moves to/from MDR_REGS.
12264
12265 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12266 POST_MODIFY.
12267 (mn10300_secondary_reload): Tidy combination reload classes.
12268 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12269 addresses for AM33. Allow symbolic offsets for reg+imm.
12270 (mn10300_regno_in_class_p): New.
12271 (mn10300_legitimize_reload_address): New.
12272 * config/mn10300/mn10300.h (enum reg_class): Remove
12273 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12274 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12275 SP_OR_GENERAL_REGS.
12276 (REG_CLASS_NAMES): Update to match.
12277 (REG_CLASS_CONTENTS): Likewise.
12278 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12279 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12280 (REGNO_IN_RANGE_P): Remove.
12281 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12282 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12283 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12284 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12285 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12286 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12287 (REGNO_GENERAL_P): New.
12288 (HAVE_POST_MODIFY_DISP): New.
12289 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12290 (LEGITIMIZE_RELOAD_ADDRESS): New.
12291 * config/mn10300/mn10300-protos.h: Update.
12292
12293 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12294 DATA_REGS for AM33 stack-pointer destination.
12295 (mn10300_preferred_output_reload_class): Likewise.
12296 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12297 into a form appropriate for ...
12298 (TARGET_SECONDARY_RELOAD): New.
12299 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12300 * config/mn10300/mn10300-protos.h: Update.
12301 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12302 reload_insi; use the "A" constraint for the scratch; handle AM33
12303 moves of sp to non-address registers.
12304
12305 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12306 (*movqi_internal): ... here.
12307 (*am33_movhi, *mn10300_movhi): Merge into...
12308 (*movhi_internal): ... here.
12309 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12310 as the source/destination of moves from/to SP.
12311 (movsf): Only allow for AM33-2.
12312 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12313 any integer constant constraint. Only allow for AM33-2. Tidy
12314 all of the alternative outputs.
12315 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12316 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12317 for MN103.
12318 (udivsi3, umodsi3): New patterns for MN103 only.
12319
12320 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12321
12322 * doc/tm.texi.in: Spell out that a lack of register class unions
12323 can lead to ICEs.
12324 * doc/tm.texi: Regenerate.
12325
12326 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12327
12328 PR rtl-optimization/47337
12329 * dce.c (check_argument_store): New function.
12330 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12331
12332 PR tree-optimization/47290
12333 * tree-eh.c (infinite_empty_loop_p): New function.
12334 (cleanup_empty_eh): Use it.
12335
12336 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12337
12338 PR target/46997
12339 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12340 (a64_expand_widen_sum): Ditto.
12341 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12342 (vec_extract_evenodd_help): Ditto.
12343 (vec_extract_evenv4hi): Ditto.
12344 (vec_extract_oddv4hi): Ditto.
12345 (vec_extract_evenv2si): Ditto.
12346 (vec_extract_oddv2si): Ditto.
12347 (vec_extract_evenv2sf): Ditto.
12348 (vec_extract_oddv2sf): Ditto.
12349 (vec_pack_trunc_v4hi: Ditto.
12350 (vec_pack_trunc_v2si): Ditto.
12351 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12352 (vec_interleave_highv8qi): Ditto.
12353 (mix1_r): Ditto.
12354 (vec_extract_oddv8qi): Ditto.
12355 (vec_interleave_lowv4hi): Ditto.
12356 (vec_interleave_highv4hi): Ditto.
12357 (vec_interleave_lowv2si): Ditto.
12358 (vec_interleave_highv2si): Ditto.
12359
12360 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12361
12362 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12363 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12364 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12365 (pa_c_mode_for_suffix): New.
12366 (TARGET_EXPAND_BUILTIN): Define.
12367 (TARGET_C_MODE_FOR_SUFFIX): Define.
12368 (pa_builtins): Define.
12369 (pa_init_builtins): Register __float128 type and init new support
12370 builtins.
12371 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12372 * config/pa/quadlib.c (_U_Qfcopysign): New.
12373
12374 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12375
12376 PR middle-end/46894
12377 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12378 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12379 are defined.
12380
12381 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12382
12383 PR tree-optimization/47179
12384 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12385 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12386
12387 2011-01-18 Richard Guenther <rguenther@suse.de>
12388
12389 PR rtl-optimization/47216
12390 * emit-rtl.c: Include tree-flow.h.
12391 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12392 of replicating it with different semantics.
12393 * Makefile.in (emit-rtl.o): Adjust.
12394
12395 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12396
12397 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12398 (cortex_a9_dp): Handle neon types correctly.
12399
12400 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12401
12402 PR rtl-optimization/47299
12403 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12404 subtarget. Use normal multiplication if both operands are constants.
12405 * expmed.c (expand_widening_mult): Don't try to optimize constant
12406 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12407 before using it.
12408
12409 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12410
12411 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12412 spacing after 'e.g.', typos, comma, hyphenation.
12413
12414 2011-01-17 Richard Henderson <rth@redhat.com>
12415
12416 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12417 (rx_restricted_mem_operand): New.
12418 (rx_shift_operand): Use register_operand.
12419 (rx_source_operand, rx_compare_operand): Likewise.
12420 * config/rx/rx.md (addsi3_flags): New expander.
12421 (adddi3): Rewrite as expander.
12422 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12423 (subsi3_flags): New expander.
12424 (subdi3): Rewrite as expander.
12425 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12426
12427 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12428 (rx_init_builtins): Remove sat builtin.
12429 (rx_expand_builtin): Likewise.
12430 * config/rx/rx.md (ssaddsi3): New.
12431 (*sat): Rename from sat. Represent the CC_REG input.
12432
12433 * config/rx/predicates.md (rshift_operator): New.
12434 * config/rx/rx.c (rx_expand_insv): Remove.
12435 * config/rx/rx-protos.h: Update.
12436 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12437 operand to the canonical position.
12438 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12439 (*bitclr, *bitclr_in_memory): Similarly.
12440 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12441 (insv): Retain the zero_extract in the expansion.
12442
12443 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12444 (bswaphi2, bitinvert, revw): Likewise.
12445
12446 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12447 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12448 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12449 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12450 (bitset, bitset_in_memory): Likewise.
12451 (bitinvert, bitinvert_in_memory): Likewise.
12452 (bitclr, bitclr_in_memory): Likewise.
12453 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12454 (rx_strend, rx_cmpstrn): Likewise.
12455 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12456 (bitop peep2 patterns): Remove.
12457
12458 * config/rx/rx.c (rx_match_ccmode): New.
12459 * config/rx/rx-protos.h: Update.
12460 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12461 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12462 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12463 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12464 (fix_truncsfsi2, floatsisf2): Likewise.
12465 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12466 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12467 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12468 (*subsi3_flags, *xorsi3_flags): New.
12469
12470 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12471
12472 * config/rx/rx.c (rx_print_operand): Remove workaround for
12473 unsplit comparison operations.
12474
12475 * config/rx/rx.md (movsicc): Split after reload.
12476 (*movsicc): Merge *movsieq and *movsine via match_operator.
12477 (*stcc): New pattern.
12478
12479 * config/rx/rx.c (rx_float_compare_mode): Remove.
12480 * config/rx/rx.h (rx_float_compare_mode): Remove.
12481 * config/rx/rx.md (cstoresi4): Split after reload.
12482 (*sccc): New pattern.
12483
12484 * config/rx/predicates.md (label_ref_operand): New.
12485 (rx_z_comparison_operator): New.
12486 (rx_zs_comparison_operator): New.
12487 (rx_fp_comparison_operator): New.
12488 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12489 Validate that the flags are set properly for the comparison.
12490 (rx_gen_cond_branch_template): Remove.
12491 (rx_cc_modes_compatible): Remove.
12492 (mode_from_flags): New.
12493 (flags_from_code): Rename from flags_needed_for_conditional.
12494 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12495 (rx_select_cc_mode): Likewise.
12496 (rx_split_fp_compare): New.
12497 (rx_split_cbranch): New.
12498 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12499 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12500 (*cbranchsf4): Similarly.
12501 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12502 match_operator and rx_split_cbranch.
12503 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12504 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12505 (*cmpsi): Rename from cmpsi.
12506 (*tstsi): Rename from tstsi.
12507 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12508 (*conditional_branch): Rename from conditional_branch.
12509 (*reveresed_conditional_branch): Remove.
12510 (b<code>): Remove expander.
12511 * config/rx/rx-protos.h: Update.
12512
12513 * config/rx/rx.c (rx_compare_redundant): Remove.
12514 * config/rx/rx.md (cmpsi): Don't use it.
12515 * config/rx/rx-protos.h: Update.
12516
12517 * config/rx/rx-modes.def (CC_F): New mode.
12518 * config/rx/rx.c (rx_select_cc_mode): New.
12519 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12520 * config/rx/rx-protos.h: Update.
12521
12522 2011-01-17 Richard Henderson <rth@redhat.com>
12523
12524 * except.c (dump_eh_tree): Fix stray ; after for statement.
12525
12526 2011-01-17 Richard Guenther <rguenther@suse.de>
12527
12528 PR tree-optimization/47313
12529 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12530 handling before copying the body. Properly deal with
12531 by-reference result in SSA form.
12532
12533 2011-01-17 Ian Lance Taylor <iant@google.com>
12534
12535 PR target/47219
12536 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12537 (struct_value_alias_set): Don't define.
12538 (sparc_option_override): Don't set sparc_sr_alias_set and
12539 struct_value_alias_set.
12540 (save_or_restore_regs): Use gen_frame_mem rather than calling
12541 set_mem_alias_set.
12542 (sparc_struct_value_rtx): Likewise.
12543
12544 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12545
12546 PR target/47318
12547 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12548 (_mm_maskstore_pd): Likewise.
12549 (_mm_maskload_ps): Likewise.
12550 (_mm_maskstore_ps): Likewise.
12551 (_mm256_maskload_pd): Change mask to __m256i.
12552 (_mm256_maskstore_pd): Likewise.
12553 (_mm256_maskload_ps): Likewise.
12554 (_mm256_maskstore_ps): Likewise.
12555
12556 * config/i386/i386-builtin-types.def: Updated.
12557 (ix86_expand_special_args_builtin): Likewise.
12558
12559 * config/i386/i386.c (bdesc_special_args): Update
12560 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12561 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12562 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12563 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12564
12565 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12566 Use <avxpermvecmode> on mask register.
12567 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12568
12569 2011-01-17 Olivier Hainque <hainque@adacore.com>
12570 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12571 Eric Botcazou <ebotcazou@adacore.com>
12572
12573 PR target/46655
12574 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12575 if <= USHRT_MAX in 32-bit mode.
12576
12577 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12578
12579 * doc/install.texi (Configuration, Specific): Wrap long
12580 lines in examples. Allow line wrapping in long options
12581 and URLs where beneficial for PDF output.
12582
12583 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12584
12585 * config/mips/mips.c (mips_classify_symbol): Don't return
12586 SYMBOL_PC_RELATIVE for nonlocal labels.
12587
12588 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12589
12590 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12591
12592 2011-01-15 Jan Hubicka <jh@suse.cz>
12593
12594 PR tree-optimization/47276
12595 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12596 declarations as needed.
12597
12598 2011-01-15 Martin Jambor <mjambor@suse.cz>
12599
12600 * common.opt (fdevirtualize): New flag.
12601 * doc/invoke.texi (Option Summary): Document it.
12602 * opts.c (default_options_table): Add devirtualize flag.
12603 * ipa-prop.c (detect_type_change): Return immediately if
12604 devirtualize flag is not set.
12605 (detect_type_change_ssa): Likewise.
12606 (compute_known_type_jump_func): Likewise.
12607 (ipa_analyze_virtual_call_uses): Likewise.
12608
12609 2011-01-14 Martin Jambor <mjambor@suse.cz>
12610
12611 PR tree-optimization/45934
12612 PR tree-optimization/46302
12613 * ipa-prop.c (type_change_info): New type.
12614 (stmt_may_be_vtbl_ptr_store): New function.
12615 (check_stmt_for_type_change): Likewise.
12616 (detect_type_change): Likewise.
12617 (detect_type_change_ssa): Likewise.
12618 (compute_complex_assign_jump_func): Check for dynamic type change.
12619 (compute_complex_ancestor_jump_func): Likewise.
12620 (compute_known_type_jump_func): Likewise.
12621 (compute_scalar_jump_functions): Likewise.
12622 (ipa_analyze_virtual_call_uses): Likewise.
12623 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12624
12625 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12626
12627 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12628 * config/i386/i386.opt (msse5): New Alias.
12629
12630 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12631
12632 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12633 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12634 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12635 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12636
12637 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12638
12639 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12640 -mcpu options.
12641 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12642 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12643 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12644 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12645 Likewise.
12646 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12647
12648 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12649
12650 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12651
12652 2011-01-14 Mike Stump <mikestump@comcast.net>
12653
12654 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12655 * config/fr30/fr30.md: Likweise
12656 (movsi_push): Likewise.
12657 (movsi_pop): Likewise.
12658 (enter_func): Likewise.
12659 * config/moxie/moxie.md (movsi_push): Likewise.
12660 (movsi_pop): Likewise.
12661
12662 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12663
12664 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12665 %{no_archive} %{exact_version}.
12666 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12667 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12668 %{no_archive} %{exact_version}.
12669 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12670 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12671 * config/mips/vxworks.h: Likewise.
12672
12673 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12674
12675 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12676
12677 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12678
12679 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12680 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12681
12682 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12683
12684 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12685 -nodefaultlib.
12686
12687 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12688
12689 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12690 for mcpu not cpu.
12691 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12692 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12693 not cpu.
12694 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12695 Don't handle -shlib.
12696
12697 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12698
12699 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12700 (CC1_SPEC): Don't handle -profile.
12701
12702 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12703
12704 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12705 * config/mips/mips.h (CC1_SPEC): Likewise.
12706
12707 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12708
12709 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12710 * config/mips/mips.h (CC1_SPEC): Likewise.
12711
12712 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12713
12714 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12715 * config/m32r/linux.h (LINK_SPEC): Likewise.
12716 * config/mips/linux.h (LINK_SPEC): Likewise.
12717 * config/mips/linux64.h (LINK_SPEC): Likewise.
12718 * config/sparc/linux.h (LINK_SPEC): Likewise.
12719 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12720 LINK_SPEC): Likewise.
12721 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12722
12723 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12724
12725 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12726 %{version:-v}.
12727 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12728
12729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12730
12731 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12732 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12733
12734 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12735
12736 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12737
12738 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12739
12740 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12741 supports -Bstatic/-Bdynamic.
12742 * configure: Regenerate.
12743
12744 2011-01-14 Jan Hubicka <jh@suse.cz>
12745 Jack Howarth <howarth@bromo.med.uc.edu>
12746
12747 PR target/46037
12748 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12749 when checking debug_info_level. Test write_symbols instead of
12750 debug_hooks->var_location when setting flag_var_tracking_uninit.
12751
12752 2011-01-14 Richard Guenther <rguenther@suse.de>
12753
12754 PR tree-optimization/47179
12755 * target.def (ref_may_alias_errno): New target hook.
12756 * targhooks.h (default_ref_may_alias_errno): Declare.
12757 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12758 (default_ref_may_alias_errno): New function.
12759 * target.h (struct ao_ref_s): Declare.
12760 * tree-ssa-alias.c: Include target.h.
12761 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12762 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12763 (targhooks.o): Likewise.
12764 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12765 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12766
12767 2011-01-14 Richard Guenther <rguenther@suse.de>
12768
12769 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12770
12771 2011-01-14 Richard Guenther <rguenther@suse.de>
12772
12773 PR tree-optimization/47280
12774 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12775 return CFG changes.
12776 (tree_ssa_forward_propagate_single_use_vars): Deal with
12777 CFG changes from associate_plusminus.
12778
12779 2011-01-14 Richard Guenther <rguenther@suse.de>
12780
12781 PR middle-end/47281
12782 Revert
12783 2011-01-11 Richard Guenther <rguenther@suse.de>
12784
12785 PR tree-optimization/46076
12786 * tree-ssa.c (useless_type_conversion_p): Conversions from
12787 unprototyped to empty argument list function types are useless.
12788
12789 2011-01-14 Richard Guenther <rguenther@suse.de>
12790
12791 PR tree-optimization/47286
12792 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12793
12794 2011-01-14 Martin Jambor <mjambor@suse.cz>
12795
12796 PR middle-end/46823
12797 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12798
12799 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12800
12801 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12802 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12803 * config/xtensa/xtensa.c (xtensa_libcall_value,
12804 xtensa_function_value_regno_p): New functions.
12805 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12806
12807 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12808
12809 PR c++/47213
12810 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12811 PE specific hook.
12812 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12813 New function prototype.
12814 * config/i386/winnt.c (i386_pe_assemble_visibility):
12815 Warn only if attribute was specified by user.
12816
12817 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12818
12819 PR target/47251
12820 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12821 floating point.
12822 (floatunsdidf2_fcfidu): Ditto.
12823
12824 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12825
12826 * config/s390/s390.c (print_operand_address): Replace 'error' with
12827 'output_operand_lossage'.
12828 (print_operand): Likewise.
12829
12830 2011-01-13 Jeff Law <law@redhat.com>
12831
12832 PR rtl-optimization/39077
12833 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12834 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12835 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12836 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12837 * gcse.c (prune_insertions_deletions): New function.
12838 (compute_pre_data): Use it.
12839
12840 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12841
12842 PR debug/PR46973
12843 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12844 static function.
12845 (prune_unused_types_mark): Use it.
12846
12847 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12848
12849 PR rtl-optimization/45352
12850 * sel-sched.c: Update copyright years.
12851 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12852 in the advancing loop when we have issued issue_rate insns.
12853
12854 2011-01-12 Richard Henderson <rth@redhat.com>
12855
12856 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12857 (TARGET_MD_ASM_CLOBBERS): New.
12858
12859 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12860 (TARGET_DELEGITIMIZE_ADDRESS): New.
12861
12862 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12863 (clzsi2, *bsch): New patterns.
12864
12865 * config/mn10300/mn10300.md (INT): New mode iterator.
12866 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12867
12868 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12869 flag_split_wide_types.
12870
12871 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12872 (mn10300_trampoline_init): Rewrite without a template, an immediate
12873 load and a direct branch.
12874 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12875
12876 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12877
12878 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12879 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12880 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12881 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12882
12883 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12884
12885 PR debug/47209
12886 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12887 of type.
12888
12889 2011-01-12 Jan Hubicka <jh@suse.cz>
12890
12891 PR driver/47244
12892 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12893 (PLUGIN_COND_CLOSE): New macro.
12894 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12895
12896 2011-01-12 Richard Guenther <rguenther@suse.de>
12897
12898 PR lto/47259
12899 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12900 register variables in a MEM_REF.
12901
12902 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12903
12904 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12905 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12906 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12907 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12908 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12909 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12910 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12911 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12912 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12913 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12914 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12915 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12916 * config/gnu-user.h: New. Copied from linux.h.
12917 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12918 GNU_USER_TARGET_STARTFILE_SPEC.
12919 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12920 GNU_USER_TARGET_ENDFILE_SPEC.
12921 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12922 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12923 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12924 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12925 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12926 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12927 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12928 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12929 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12930 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12931 * config/arm/linux-eabi.h (CC1_SPEC): Use
12932 GNU_USER_TARGET_CC1_SPEC.
12933 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12934 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12935 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12936 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12937 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12938 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12939 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12940 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12941
12942 2011-01-12 Richard Guenther <rguenther@suse.de>
12943
12944 PR other/46946
12945 * doc/invoke.texi (ffast-math): Document it is turned on
12946 with -Ofast.
12947
12948 2011-01-12 Jan Hubicka <jh@suse.cz>
12949
12950 PR tree-optimization/47233
12951 * opts.c (common_handle_option): Disable ipa-reference with profile
12952 feedback.
12953
12954 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12955
12956 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12957 error message.
12958
12959 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12960
12961 * c-parser.c (c_lex_one_token): Updated and reindented some
12962 comments. No changes in code.
12963
12964 2011-01-11 Ian Lance Taylor <iant@google.com>
12965
12966 * godump.c (go_output_var): Don't output the variable if there is
12967 already a type with the same name.
12968
12969 2011-01-11 Ian Lance Taylor <iant@google.com>
12970
12971 * godump.c (go_format_type): Don't generate float80.
12972
12973 2011-01-11 Richard Henderson <rth@redhat.com>
12974
12975 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12976 declaration. Rewrite for both speed and size.
12977 (mn10300_address_cost_1): Remove.
12978 (mn10300_register_move_cost): New.
12979 (mn10300_memory_move_cost): New.
12980 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12981 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12982 extensions, shifts, BSWAP, CLZ.
12983 (mn10300_wide_const_load_uses_clr): Remove.
12984 (TARGET_REGISTER_MOVE_COST): New.
12985 (TARGET_MEMORY_MOVE_COST): New.
12986 * config/mn10300/mn10300-protos.h: Update.
12987 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12988
12989 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12990 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12991 * config/mn10300/mn10300-protos.h: Update.
12992 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12993 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12994 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12995 (*test_int_bitfield, *test_byte_bitfield): Remove.
12996 (*bit_test, *subreg_bit_test): Remove.
12997 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12998
12999 * config/mn10300/constraints.md ("c"): Rename from "A".
13000 ("A", "D"): New constraint letters.
13001 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13002 (fmssf4, fnmasf4, fnmssf4): Likewise.
13003
13004 * config/mn10300/mn10300.md (isa): New attribute.
13005 (enabled): New attribute.
13006
13007 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13008 (abssf2, negsf2): Define only for hardware fp.
13009 (sqrtsf2): Reformat.
13010 (addsf3, subsf3, mulsf3): Merge expander and insn.
13011
13012 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13013 (DEBUGGER_AUTO_OFFSET): Remove.
13014 (DEBUGGER_ARG_OFFSET): Remove.
13015
13016 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13017 Emit register stores with the same offsets as the hardware.
13018 (mn10300_store_multiple_operation): Don't check that the register
13019 save offsets are monotonic.
13020 * config/mn10300/mn10300-protos.h: Update.
13021
13022 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13023
13024 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13025 in terms of the value on the stack, not the MDR register.
13026
13027 2011-01-11 Jan Hubicka <jh@suse.cz>
13028
13029 PR lto/45721
13030 PR lto/45375
13031 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13032 (symbol_alias_set_destroy, symbol_alias_set_contains,
13033 propagate_aliases_backward): Declare.
13034 * lto-streamer-out.c (struct sets): New sturcture.
13035 (trivally_defined_alias): New function.
13036 (output_alias_pair_p): Rewrite.
13037 (output_unreferenced_globals): Fix output of alias pairs.
13038 (produce_symtab): Likewise.
13039 * ipa.c (function_and_variable_visibility): Set weak alias destination
13040 as needed in lto.
13041 * varasm.c (symbol_alias_set_t): Remove.
13042 (symbol_alias_set_destroy): Export.
13043 (propagate_aliases_forward, propagate_aliases_backward): New functions
13044 based on ...
13045 (compute_visible_aliases): ... this one; remove.
13046 (trivially_visible_alias): New
13047 (trivially_defined_alias): New.
13048 (remove_unreachable_alias_pairs): Rewrite.
13049 (finish_aliases_1): Reorganize code checking if alias is defined.
13050 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13051 in LTO mode.
13052
13053 2011-01-11 Richard Guenther <rguenther@suse.de>
13054
13055 PR tree-optimization/46076
13056 * tree-ssa.c (useless_type_conversion_p): Conversions from
13057 unprototyped to empty argument list function types are useless.
13058
13059 2011-01-11 Richard Guenther <rguenther@suse.de>
13060
13061 PR middle-end/45235
13062 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13063 volatile MEMs as MEM_READONLY_P.
13064
13065 2011-01-11 Richard Guenther <rguenther@suse.de>
13066
13067 PR tree-optimization/47239
13068 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13069
13070 2011-01-11 Jeff Law <law@redhat.com>
13071
13072 PR tree-optimization/47086
13073 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13074 IVs from statements that might throw.
13075
13076 2011-01-10 Jan Hubicka <jh@suse.cz>
13077
13078 PR lto/45375
13079 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13080
13081 2011-01-10 Jan Hubicka <jh@suse.cz>
13082
13083 PR lto/45375
13084 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13085 when correcting profile.
13086
13087 2011-01-10 Jan Hubicka <jh@suse.cz>
13088
13089 PR lto/46083
13090 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13091 DECL_FINI_PRIORITY.
13092 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13093 Restore DECL_FINI_PRIORITY.
13094
13095 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13096
13097 * doc/gimple.texi: Fix quoting of multi-word return values in
13098 @deftypefn statements. Ensure presence of return value. Wrap
13099 overlong @deftypefn lines.
13100 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13101 descriptions of removed functions.
13102 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13103 of multi-word return value in @deftypefn statement.
13104
13105 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13106
13107 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13108 (Conditional Expressions, Logical Operators)
13109 (Statement and operand traversals): Do not indent smallexample
13110 code. Fix duplicate function argument in example.
13111
13112 2011-01-10 Jeff Law <law@redhat.com>
13113
13114 PR tree-optimization/47141
13115 * ipa-split.c (split_function): Handle case where we are
13116 returning a value and the return block has a virtual operand phi.
13117
13118 2011-01-10 Jan Hubicka <jh@suse.cz>
13119
13120 PR tree-optimization/47234
13121 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13122 (pass_feedback_split_functions): Declare.
13123 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13124 tree-profile.
13125 * ipa-split.c (gate_split_functions): Update comments; disable
13126 split-functions for profile_arc_flag and branch_probabilities.
13127 (gate_feedback_split_functions): New function.
13128 (execute_feedback_split_functions): New function.
13129 (pass_feedback_split_functions): New global var.
13130
13131 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13132
13133 PR lto/46760
13134 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13135 calling gimple_call_set_cannot_inline.
13136
13137 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13138
13139 * config/darwin-sections.def: Remove unused section.
13140
13141 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13142
13143 PR c++/47218
13144 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13145
13146 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13147
13148 PR objc/47232
13149 * c-parser.c (c_parser_declaration_or_fndef): Improved
13150 error message.
13151
13152 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13153
13154 * config/i386/winnt.c (i386_pe_start_function): Make sure
13155 to switch back to function's section.
13156
13157 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13158
13159 PR gcc/46902
13160 PR testsuite/46912
13161 * plugin.c: Move include of dlfcn.h from here...
13162 * system.h: ... to here.
13163
13164 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13165
13166 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13167 file name.
13168 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13169 two extra empty pages in PDF output.
13170
13171 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13172
13173 PR objc/47078
13174 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13175 for error recovery purposes behave as if it was not specified so
13176 that the default type is usd.
13177
13178 2011-01-07 Jan Hubicka <jh@suse.cz>
13179
13180 PR tree-optmization/46469
13181 * ipa.c (function_and_variable_visibility): Clear needed flags on
13182 nodes with external decls; handle weakrefs merging correctly.
13183
13184 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13185
13186 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13187 not false.
13188
13189 2011-01-07 Jan Hubicka <jh@suse.cz>
13190
13191 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13192 and no longer claim that gold is required for linker plugin.
13193 * configure: Regenerate.
13194 * gcc.c (PLUGIN_COND): New macro.
13195 (LINK_COMMAND_SPEC): Use it.
13196 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13197 * config.in (HAVE_LTO_PLUGIN): New.
13198 * configure.ac (--with-lto-plugin): New parameter; autodetect
13199 HAVE_LTO_PLUGIN.
13200
13201 2011-01-07 Jan Hubicka <jh@suse.cz>
13202
13203 PR tree-optimization/46367
13204 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13205 when we can update original.
13206 (cgraph_mark_inline_edge): Sanity check.
13207 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13208
13209 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13210
13211 * config/spu/spu.h (ASM_COMMENT_START): Define.
13212
13213 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13214
13215 PR driver/42445
13216 * gcc.c (%>S): New.
13217 (SWITCH_KEEP_FOR_GCC): Likewise.
13218 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13219 (do_spec_1): Handle "%>".
13220
13221 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13222
13223 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13224
13225 PR target/47201
13226 * config/i386/i386.c (ix86_delegitimize_address): If
13227 simplify_gen_subreg fails, return orig_x.
13228
13229 PR bootstrap/47187
13230 * value-prof.c (gimple_stringop_fixed_value): Handle
13231 lhs of the call properly.
13232
13233 2011-01-07 Jan Hubicka <jh@suse.cz>
13234
13235 PR lto/45375
13236 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13237
13238 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13239
13240 * target.def (function_switched_text_sections): New hook.
13241 * doc/tm.texi: Regenerated.
13242 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13243 * final.c (default_function_switched_text_sections): New.
13244 (final_scan_insn): Call function_switched_text_sections when a
13245 mid-function section change occurs.
13246 * output.h (default_function_switched_text_sections): Declare.
13247 * config/darwin-protos.h (darwin_function_switched_text_sections):
13248 Likewise.
13249 * config/darwin.c (darwin_function_switched_text_sections): New.
13250 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13251
13252 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13253
13254 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13255 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13256 the secondary code fragment when outputting for DWARF == 2.
13257
13258 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13259
13260 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13261 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13262 Remove.
13263 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13264 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13265
13266 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13267
13268 PR debug/46704
13269 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13270 when it is not empty.
13271
13272 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13273
13274 Bobcat Enablement
13275 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13276 (case ${target}): Add btver1.
13277 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13278 -march=native recognize btver1 processors.
13279 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13280 btver1 def_and_undef
13281 * config/i386/i386.c (struct processor_costs btver1_cost): New
13282 btver1 cost table.
13283 (m_BTVER1): New definition.
13284 (m_AMD_MULTIPLE): Includes m_BTVER1.
13285 (initial_ix86_tune_features): Add btver1 tune.
13286 (processor_target_table): Add btver1 entry.
13287 (static const char *const cpu_names): Add btver1 entry.
13288 (software_prefetching_beneficial_p): Add btver1.
13289 (ix86_option_override_internal): Add btver1 instruction sets.
13290 (ix86_issue_rate): Add btver1.
13291 (ix86_adjust_cost): Add btver1.
13292 * config/i386/i386.h (TARGET_BTVER1): New definition.
13293 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13294 (enum processor_type): Add PROCESSOR_BTVER1.
13295 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13296
13297 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13298
13299 PR target/43309
13300 * config/i386/i386.c (legitimize_tls_address)
13301 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13302 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13303 (tls_initial_exec_64_sun): New pattern.
13304
13305 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13306
13307 * doc/invoke.texi (Overall Options): Improve wording and markup
13308 of the description of -wrapper.
13309
13310 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13311
13312 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13313 rdynamic, threads): New Driver options.
13314
13315 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13316
13317 PR target/38118
13318 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13319 if coming from .tdata.
13320 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13321
13322 2011-01-06 Jan Hubicka <jh@suse.cz>
13323
13324 PR lto/47188
13325 * collect2.c (main): Do not enable LTOmode when plugin is active.
13326
13327 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13328
13329 PR other/45915
13330 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13331 --version output if supported.
13332 * configure: Regenerate.
13333
13334 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13335
13336 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13337 Driver options.
13338
13339 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13340
13341 PR c/47150
13342 * c-convert.c (convert): When converting a complex expression
13343 other than COMPLEX_EXPR to a different complex type, ensure
13344 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13345 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13346 when converting COMPLEX_TYPE.
13347
13348 2011-01-06 Ira Rosen <irar@il.ibm.com>
13349
13350 PR tree-optimization/47139
13351 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13352 only the last reduction value is used outside the loop. Update
13353 documentation.
13354
13355 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13356
13357 * config/rtems.opt: New.
13358 * config.gcc (*-*-rtems*): Use rtems.opt.
13359
13360 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13361
13362 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13363 processors do not support 3DNow instructions.
13364
13365 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13366
13367 * config/spu/spu.c (spu_option_override): Set parameter
13368 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13369
13370 2011-01-05 Jan Hubicka <jh@suse.cz>
13371
13372 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13373 at the command line.
13374
13375 2011-01-05 Martin Jambor <mjambor@suse.cz>
13376
13377 PR lto/47162
13378 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13379 deltas on streamed outgoing edges.
13380 (output_node_opt_summary): Output info for outgoing edges only when
13381 the node is in new parameter set.
13382 (output_cgraph_opt_summary): New parameter set, passed to the two
13383 aforementioned functions. Update its forward declaration and its
13384 callee too.
13385
13386 2011-01-05 Tom Tromey <tromey@redhat.com>
13387
13388 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13389 operator to c_finish_omp_atomic.
13390 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13391 (build_unary_op): Update.
13392 (build_modify_expr): Update.
13393 (build_asm_expr): Update.
13394
13395 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13396
13397 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13398 newly inserted insns.
13399 (pad_bb): Likewise.
13400 (spu_emit_branch_hint): Likewise.
13401 (insert_hbrp_for_ilb_runout): Likewise.
13402 (spu_machine_dependent_reorg): Call df_finish_pass after
13403 schedule_insns returns.
13404
13405 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13406
13407 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13408
13409 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13410
13411 PR tree-optimization/47005
13412 * tree-sra.c (struct access): Add 'non_addressable' bit.
13413 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13414 (decide_one_param_reduction): Return 0 if the parameter is passed by
13415 reference and one of the accesses in the group is non_addressable.
13416
13417 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13418
13419 PR tree-optimization/47056
13420 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13421 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13422 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13423
13424 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13425
13426 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13427 initializer. Skip view conversions from aggregate types.
13428
13429 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13430
13431 PR bootstrap/47055
13432 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13433
13434 2011-01-04 Philipp Thomas <pth@suse.de>
13435
13436 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13437 obvious typo.
13438
13439 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13440
13441 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13442 on empty epilogue sequences.
13443
13444 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13445
13446 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13447 non-static): New Driver options.
13448
13449 2011-01-04 Jie Zhang <jie@codesourcery.com>
13450
13451 PR driver/47137
13452 * gcc.c (default_compilers[]): Set combinable field to 0
13453 for all assembly languages.
13454
13455 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13456
13457 * config/mips/loongson3a.md: New file.
13458 * config/mips/mips.md: Include loongson3a.md.
13459 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13460 TUNE_LOONGSON_3A.
13461
13462 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13463
13464 PR middle-end/47017
13465 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13466 instead of convert_memory_address_addr_space on the base expression.
13467
13468 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13469
13470 * config/spu/spu.c (spu_option_override): Update error text
13471 for bad -march= / -mtune= values.
13472
13473 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13474
13475 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13476 if branch-hint optimization will be performed.
13477
13478 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13479
13480 PR tree-optimization/47148
13481 * ipa-split.c (split_function): Convert arguments to
13482 DECL_ARG_TYPE if possible.
13483
13484 PR tree-optimization/47155
13485 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13486 when computing uns.
13487
13488 PR rtl-optimization/47157
13489 * combine.c (try_combine): If undobuf.other_insn becomes
13490 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13491 and set *new_direct_jump_p too.
13492
13493 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13494
13495 PR tree-optimization/47021
13496 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13497
13498 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13499
13500 * gcc.c (process_command): Update copyright notice dates.
13501 * gcov.c (print_version): Likewise.
13502 * gcov-dump.c (print_version): Likewise.
13503 * mips-tfile.c (main): Likewise.
13504 * mips-tdump.c (main): Likewise.
13505
13506 2011-01-03 Martin Jambor <mjambor@suse.cz>
13507
13508 PR tree-optimization/46801
13509 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13510 aggregate fields start at byte boundary instead of the bit-field flag.
13511
13512 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13513
13514 PR driver/47137
13515 * gcc.c (main): Revert revision 168407.
13516
13517 2011-01-03 Martin Jambor <mjambor@suse.cz>
13518
13519 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13520
13521 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13522
13523 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13524 vector optab to expand vector/scalar shift, update gimple to vector.
13525
13526 2011-01-03 Martin Jambor <mjambor@suse.cz>
13527
13528 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13529 a thunk.
13530
13531 2011-01-03 Martin Jambor <mjambor@suse.cz>
13532
13533 PR tree-optimization/46984
13534 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13535 HOST_WIDE_INT.
13536 (cgraph_create_indirect_edge): Fixed line length.
13537 (cgraph_indirect_call_info): Declare.
13538 (cgraph_make_edge_direct) Update declaration.
13539 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13540 (cgraph_create_indirect_edge): Use it.
13541 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13542 callees.
13543 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13544 the new thunk_delta representation.
13545 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13546 HOST_WIDE_INT.
13547 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13548 (ipa_read_indirect_edge_info): Likewise.
13549 * lto-cgraph.c (output_edge_opt_summary): New function.
13550 (output_node_opt_summary): Call it on all outgoing edges.
13551 (input_edge_opt_summary): New function.
13552 (input_node_opt_summary): Call it on all outgoing edges.
13553
13554 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13555
13556 PR driver/47137
13557 * gcc.c (main): Don't check have_o when settting combine_inputs.
13558
13559 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13560
13561 * regrename.c: Add general comment describing the pass.
13562 (struct du_head): Remove 'length' field.
13563 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13564 (regrename_optimize): Do not sort chains. Rework comments, add others.
13565 Force renaming to the preferred class (if any) in the first pass and do
13566 not consider registers that belong to it in the second pass.
13567 (create_new_chain): Do not set 'length' field.
13568 (scan_rtx_reg): Likewise.
13569
13570 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13571
13572 PR tree-optimization/47140
13573 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13574 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13575 to bit_value_binop.
13576
13577 PR rtl-optimization/47028
13578 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13579 parm_birth_insn instead of at the beginning of first bb.
13580
13581 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13582
13583 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13584 Remove the word "see" before "@pxref".
13585 * doc/rtl.texi: Remove the word "see" before "@pxref".
13586
13587 2011-01-01 Jan Hubicka <jh@suse.cz>
13588
13589 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13590 memory.
13591
13592 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13593
13594 PR target/38662
13595 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13596
13597 \f
13598 Copyright (C) 2011 Free Software Foundation, Inc.
13599
13600 Copying and distribution of this file, with or without modification,
13601 are permitted in any medium without royalty provided the copyright
13602 notice and this notice are preserved.