1 2011-04-08 Xinliang David Li <davidxl@google.com>
3 * final.c (dump_basic_block_info): New function.
4 (final): Dump basic block.
5 (final_scan_insn): Remove old dump.
7 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10 gcc/config.gcc: disable unwind table generation for crtbegin/crtend
13 2011-04-08 Michael Matz <matz@suse.de>
16 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19 * rtl.h (rebuild_jump_labels_chain): Declare.
20 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21 insns inserted on edges.
23 2011-04-08 Joseph Myers <joseph@codesourcery.com>
25 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
26 * config/arm/arm-arches.def: New.
27 * config/arm/arm-opts.h: New.
28 * config/arm/genopt.sh: New.
29 * config/arm/arm-tables.opt: New (generated).
30 * config/arm/arm.c (arm_handle_option, arm_target_help,
31 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
32 (all_architectures): Get most table contents from arm-arches.def.
33 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
34 arm_selected_tune here.
35 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
36 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
37 (march=, mcpu=, mtune=): Use Enum and Var.
38 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
39 (arm.o): Update dependencies.
41 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
43 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
45 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
46 (write_typed_alloc_defns): Likewise.
47 (main): Calls write_typed_alloc_defns with output_header.
49 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
52 * ira-color.c (setup_profitable_hard_regs): Add comments.
53 Don't take prohibited hard regs into account.
54 (setup_conflict_profitable_regs): Rename to
55 get_conflict_profitable_regs.
56 (check_hard_reg_p): Check prohibited hard regs.
58 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
60 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
61 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
62 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
64 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
67 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
68 move from floating point to shift amount register .
69 (emit_move_sequence): Remove secondary reload support for floating
70 point to shift amount amount register copies.
71 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
72 amount register copies.
73 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
74 register, return false if mode isn't a scalar integer mode.
75 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
77 2011-04-08 Richard Guenther <rguenther@suse.de>
79 * gimple.c (gimple_call_flags): Remove kludge.
81 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
83 * sel-sched.c (sel_region_init): Move call to
84 sel_setup_region_sched_flags after setup_current_loop_nest.
86 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
88 PR rtl-optimization/48272
89 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
90 init_insn_reg_pressure_info. Adjust a caller.
91 * sched-int.h (init_insn_reg_pressure_info): Declare.
92 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
93 when sched-pressure is enabled.
95 2011-04-08 Richard Guenther <rguenther@suse.de>
97 * gimple.c (gimple_set_modified): Do not queue calls to
98 MODIFIED_NORETURN_CALLS here ...
99 * tree-ssa-operands.c (update_stmt_operands): ... but here.
101 2011-04-08 Richard Guenther <rguenther@suse.de>
104 * toplev.c (lang_dependent_init): Do not open asm_out_file
105 in WPA mode, nor perform debug machinery initialization.
106 (finalize): Do not unlink asm_out_file in WPA mode.
108 2011-04-08 Richard Guenther <rguenther@suse.de>
110 * gimple.h (gimple_call_fntype): New function.
111 (gimple_call_return_type): Use it.
112 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
113 * gimple-low.c (gimple_check_call_args): Likewise.
114 * gimple.c (gimple_call_flags): Likewise.
115 (gimple_call_arg_flags): Likewise.
116 (gimple_call_return_flags): Likewise.
117 * tree-cfg.c (verify_gimple_call): Likewise.
118 (do_warn_unused_result): Likewise.
119 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
120 * value-prof.c (gimple_ic_transform): Fix fndecl check.
122 2011-04-08 Dmitry Melnik <dm@ispras.ru>
124 PR rtl-optimization/48235
125 * sel-sched.c (code_motion_process_successors): Recompute the last
126 insn in basic block if control flow changed.
127 (code_motion_path_driver): Ditto. Recompute the first insn as well.
128 Update condition for ilist_remove.
130 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
132 PR rtl-optimization/48302
133 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
134 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
135 it to record added preheader blocks.
136 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
137 on to sel_add_loop_preheaders.
138 (sel_region_init): Move call to setup_current_loop_nest after
141 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
144 * cfgloop.h (loop_has_exit_edges): New helper.
145 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
147 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
148 that have no exit edges.
150 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
152 PR rtl-optimization/48442
153 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
154 all callers. Adjust assert.
156 2011-04-08 Jakub Jelinek <jakub@redhat.com>
158 PR tree-optimization/48377
159 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
160 is_packed to true even for types with smaller TYPE_ALIGN than
163 2011-04-08 Richard Guenther <rguenther@suse.de>
166 * doc/tm.texi: Re-generate.
168 2011-04-08 Wei Guozhi <carrot@google.com>
171 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
172 * config/arm/arm.c (arm_attr_length_push_multi): New function.
173 * config/arm/arm.md (*push_multi): Change the length computation to
176 2011-04-08 Anatoly Sokolov <aesok@post.ru>
178 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
179 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
180 * doc/tm.texi: Regenerate.
181 * system.h (ASM_OUTPUT_BSS): Poison.
182 * varasm.c (asm_output_bss): Remove function.
183 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
185 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
186 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
187 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
188 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
190 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
192 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
194 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
196 2011-04-07 Joseph Myers <joseph@codesourcery.com>
198 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
201 2011-04-07 Joseph Myers <joseph@codesourcery.com>
203 * config/m68k/m68k.c (m68k_handle_option): Don't handle
204 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
205 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
207 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
208 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
209 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
210 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
211 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
212 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
213 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
214 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
215 options. Don't map other m68k options manually. Don't handle
216 old-style options as canonical.
217 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
218 * doc/install.texi (m68k-*-*): Document binutils version
221 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
223 * basic-block.h (force_nonfallthru): Move to...
224 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
225 (force_nonfallthru): ...here.
226 * cfghooks.c (force_nonfallthru): New function.
227 * cfgrtl.c (force_nonfallthru): Rename into...
228 (rtl_force_nonfallthru): ...this.
229 (commit_one_edge_insertion): Do not set AUX field.
230 (commit_edge_insertions): Do not discover new basic blocks.
231 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
232 (cfg_layout_rtl_cfg_hooks): Likewise.
233 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
234 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
235 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
237 2011-04-07 Anatoly Sokolov <aesok@post.ru>
239 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
242 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
244 * config/i386/sse.md: Update copyright year.
245 (avxcvtvecmode): Remove.
246 (sse_movhlps): Merge with *avx_movhlps.
247 (sse_movlhps): Merge with *avx_movlhps.
248 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
249 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
250 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
251 (sse_loadhps): Merge with *avx_loadhps.
252 (sse_storelps): Merge with *avx_storelps.
253 (sse_loadlps): Merge with *avx_loadlps.
254 (sse_movss): Merge with *avx_movss.
255 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
256 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
257 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
258 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
259 (vec_set<mode>_0): Ditto.
260 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
261 (sse4_1_insertps): Merge with *avx_insertps.
262 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
263 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
264 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
265 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
266 (sse2_storehpd): Merge with *avx_storehpd.
267 (sse2_loadhpd): Merge with *avx_loadhpd.
268 (sse2_loadlpd): Merge with *avx_loadlpd.
269 (sse2_movsd): Merge with *avx_movsd.
270 (*vec_concatv2df): Merge with *vec_concatv2df.
272 2011-04-07 Jakub Jelinek <jakub@redhat.com>
275 * combine.c (combine_instructions): Add last_combined_insn,
276 update it if insn is after it, pass it to all try_combine calls.
277 (try_combine): Add last_combined_insn parameter, pass it instead of
278 i3 to propagate_for_debug.
280 2011-04-07 Nick Clifton <nickc@redhat.com>
282 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
283 to handle MDR <-> data register transfers.
284 (movhi_internal): Likewise.
286 2011-04-07 Alan Modra <amodra@gmail.com>
288 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
291 2011-04-07 Tom de Vries <tom@codesourcery.com>
294 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
295 flow_find_cross_jump. Swap variables to implement backward replacement.
296 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
298 2011-04-07 Tom de Vries <tom@codesourcery.com>
301 * cfgcleanup.c (walk_to_nondebug_insn): New function.
302 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
304 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
305 src1 or src2. Redirect edges to the last basic block. Update
306 frequency and count on multiple basic blocks in case of fallthru.
308 2011-04-07 Tom de Vries <tom@codesourcery.com>
311 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
313 (old_insns_match_p): Change return type. Replace return false/true
314 with return dir_none/dir_both. Use can_replace_by.
315 (flow_find_cross_jump): Add dir_p parameter. Init replacement
316 direction from dir_p. Register replacement direction in dir, last_dir
317 and afterlast_dir. Handle new return type of old_insns_match_p using
318 merge_dir. Return replacement direction in dir_p.
319 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
320 return type of old_insns_match_p.
321 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
322 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
323 flow_find_cross_jump.
324 * basic-block.h (enum replace_direction): New type.
325 (flow_find_cross_jump): Add parameter to declaration.
327 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
329 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
330 (AVXMODEDCVTPS2DQ): Ditto.
331 (VEC_FLOAT_MODE): Ditto.
332 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
333 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
334 (<any_logic:code><mode>3): Use VF mode iterator.
335 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
336 Use VF mode iterator.
337 (copysign<mode>3): Use VF mode iterator.
338 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
339 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
340 (*<any_logic:code><MODEF:mode>3): Merge with
341 *avx_<any_logic:code><MODEF:mode>3.
342 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
343 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
344 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
345 (avx_cvtdq2ps<avxmodesuffix>): Remove.
346 (sse2_cvtdq2ps): Use %v modifier.
347 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
348 (avx_cvtps2dq<avxmodesuffix>): Remove.
349 (sse2_cvtps2dq): Use %v modifier.
350 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
351 (avx_cvttps2dq<avxmodesuffix>): Remove.
352 (sse2_cvttps2dq): Use %v modifier.
353 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
354 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
355 (sse2_cvtsd2siq): Fix insn template.
356 (sse2_cvtsd2siq_2): Ditto.
357 (sse2_cvttsd2siq): Ditto.
358 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
359 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
361 2011-04-06 Joseph Myers <joseph@codesourcery.com>
363 * gcov-io.c: Use GCC Runtime Library Exception.
365 2011-04-06 Jakub Jelinek <jakub@redhat.com>
368 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
369 as base_reg whatever register reg has been eliminated to, instead
370 of hardcoding STACK_POINTER_REGNUM.
372 2011-04-06 Joseph Myers <joseph@codesourcery.com>
374 * doc/tm.texi.in: Document C target hooks as separate from general
376 * doc/tm.texi: Regenerate.
377 * genhooks.c (struct hook_desc): Add docname field.
378 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
380 (hook_array): Include c-target.def.
381 (emit_documentation): Use docname field in output.
382 (emit_init_macros): Take docname argument. Only emit definitions
383 for hooks matching docname.
384 (main): Expect additional arguments in all cases. Pass argument
386 * target.def: Move initial macro definitions and comments to
387 target-hooks-macros.h.
388 (gcc_targetcm): Move to c-family/c-target.def.
389 * target.h (targetcm): Move declaration to c-family/c-target.h.
390 * targhooks.c (default_handle_c_option): Move to
392 * targhooks.h (default_handle_c_option): Move declaration to
394 * target-hooks-macros.h: New file.
395 * config.gcc (target_has_targetcm): Define and use to add to
396 c_target_objs and cxx_target_objs.
397 * config/default-c.c: New file.
398 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
399 of target.h and target-def.h.
400 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
401 (darwin_objc_construct_string, darwin_cfstring_ref_p,
402 darwin_check_cfstring_format_arg): Make static.
403 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
404 TARGET_STRING_OBJECT_REF_TYPE_P,
405 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
406 * config/darwin-protos.h (darwin_objc_construct_string,
407 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
409 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
410 TARGET_STRING_OBJECT_REF_TYPE_P,
411 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
412 * config/t-darwin (darwin-c.o): Update dependencies.
413 * system.h (TARGET_HAS_TARGETCM): Poison.
414 * Makefile.in (TARGET_H): Update.
415 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
416 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
417 (default-c.o): New target.
418 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
419 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
420 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
422 (build/genhooks.o): Update dependencies.
424 2011-04-06 Richard Guenther <rguenther@suse.de>
426 * ipa-inline.c (enum inlining_mode): Remove.
427 (cgraph_flatten): Use some other token.
428 (cgraph_edge_early_inlinable_p): New function, split out from ...
429 (cgraph_perform_always_inlining): New function, split out from ...
430 (cgraph_decide_inlining_incrementally): ... here.
431 (cgraph_mark_inline_edge): Adjust.
432 (cgraph_early_inlining): Re-structure.
433 (pass_early_inline): Require SSA form.
435 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
436 Julian Brown <julian@codesourcery.com>
437 Mark Shinwell <shinwell@codesourcery.com>
439 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
440 LO_REGS only for Thumb-1.
441 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
442 be used in short instructions when optimising for size on Thumb-2.
444 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
446 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
447 associated with user returns to be preserved.
449 2011-04-06 Tristan Gingold <gingold@adacore.com>
451 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
452 symbol_queue_size, DBXOUT_DECR_NESTING,
453 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
454 if XCOFF_DEBUGGING_INFO.
456 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
458 * config/i386/i386.md (attribute isa): New.
459 (attribute enabled): New.
460 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
461 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
462 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
463 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
464 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
465 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
466 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
467 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
469 * config/i386/sse.md (VF): New mode iterator.
474 (attribute sse): Handle V8SF and V4DF modes.
475 (<absneg:code><mode>2): Use VF mode iterator.
476 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
478 (<plusminus_insn><mode>3): Use VF mode iterator.
479 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
480 Use VF mode iterator.
481 (<sse>_vm<plusminus_insn><mode>3): Merge with
482 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
483 (mul<mode>3): Use VF mode iterator.
484 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
485 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
487 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
488 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
489 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
490 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
492 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
493 Use VF1 mode iterator.
494 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
495 (sqrt<VF2:mode>2): New expander.
496 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
497 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
498 and sqrtv2df2. Use VF mode iterator.
499 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
501 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
502 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
503 Use VF1 mode iterator.
504 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
505 (<smaxmin:code><mode>3): Use VF mode iterator.
506 (*<smaxmin:code><mode>3_finite): Merge with
507 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
508 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
509 (<sse>_vm<smaxmin:code><mode>2): Merge with
510 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
511 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
513 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
515 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
516 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
517 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
518 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
519 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
521 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
522 Use VF_128 mode iterator.
523 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
525 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
526 VF_128 mode iterator.
527 (vcond<mode>): Use VF mode iterator.
528 * config/i386/predicates.md (sse_comparison_operator): Merge with
529 avx_comparison_float_operator. Do not declare as special_predicate.
530 * config/i386/i386.c (struct builtin_description): Update for renamed
532 (ix86_expand_args_builtin): Ditto.
533 (ix86_expand_sse_compare_mask): Ditto.
535 2011-04-06 Richard Guenther <rguenther@suse.de>
537 * tree-inline.c (estimate_num_insns): For calls simply account
538 for all passed arguments and a used return value.
540 2011-04-06 Richard Guenther <rguenther@suse.de>
542 PR tree-optimization/47663
543 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
544 call_stmt_time fields.
545 (cgraph_edge_inlinable_p): Declare.
546 (cgraph_edge_recursive_p): New inline function.
547 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
548 (cgraph_clone_edge): Copy it.
549 * ipa-inline.c (cgraph_estimate_edge_time): New function.
550 Account for call stmt time.
551 (cgraph_estimate_time_after_inlining): Take edge argument.
552 (cgraph_estimate_edge_growth): Account call stmt size.
553 (cgraph_estimate_size_after_inlining): Take edge argument.
554 (cgraph_mark_inline_edge): Adjust.
555 (cgraph_check_inline_limits): Likewise.
556 (cgraph_recursive_inlining_p): Remove.
557 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
558 (cgraph_decide_recursive_inlining): Take edge argument and
560 (cgraph_decide_inlining_of_small_functions): Do not avoid
561 diags for recursive inlining here.
562 (cgraph_flatten): Adjust.
563 (cgraph_decide_inlining_incrementally): Likewise.
564 (estimate_function_body_sizes): Remove call cost handling.
565 (compute_inline_parameters): Initialize caller edge call costs.
566 (cgraph_estimate_edge_growth): New function.
567 (cgraph_estimate_growth): Use it.
568 (cgraph_edge_badness): Likewise.
569 (cgraph_check_inline_limits): Take an edge argument.
570 (cgraph_decide_inlining_of_small_functions): Adjust.
571 (cgraph_decide_inlining): Likewise.
572 * tree-inline.c (estimate_num_insns): Only account for call
573 return value if it is used.
574 (expand_call_inline): Avoid diagnostics on recursive inline
576 * lto-cgraph.c (lto_output_edge): Output edge call costs.
577 (input_edge): Input edge call costs.
579 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
581 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
583 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
585 * doc/invoke.texi (Spec Files): Fix typo.
587 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
589 * profile.c (branch_prob): Move declaration of local variable. Remove
590 obsolete ??? comment. Expand the location explicitly instead of using
591 the LOCATION_FILE and LOCATION_LINE macros.
593 2011-04-06 Wei Guozhi <carrot@google.com>
596 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
597 (arm_cond_branch): Likewise.
598 (arm_cond_branch_reversed): Likewise.
599 (arm_jump): Likewise.
600 (push_multi): Likewise.
601 * config/arm/constraints.md (Py): New constraint.
603 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
606 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
608 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
609 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
610 #ifdef DBX_DEBUGGING_INFO.
612 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
615 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
616 if old and new states differ.
618 2011-04-05 Joseph Myers <joseph@codesourcery.com>
620 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
621 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
622 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
623 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
624 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
626 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
627 ColdFire options to -mcpu= options.
629 2011-04-05 Jeff Law <law@redhat.com>
631 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
632 check if BB is a successor of LOOP->header and return
633 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
635 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
637 * cprop.c (struct reg_use): Remove.
638 (reg_use_table): Make an array of RTX.
639 (find_used_regs, constprop_register, local_cprop_pass,
640 bypass_block): Simplify users of reg_use_table.
641 (cprop_insn): Likewise. Iterate if copy propagation succeeded
642 on one of the uses found by find_used_regs.
644 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
647 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
650 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
652 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
654 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
656 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
659 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
661 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
663 * combine.c: Include obstack.h.
664 (struct insn_link): Define.
665 (uid_log_links): Adjust type.
666 (FOR_EACH_LOG_LINK): New macro.
667 (insn_link_obstack): Declare.
668 (alloc_insn_link): Define.
669 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
670 type of link variables.
671 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
672 (try_combine, record_promoted_values, distribute_notes): Likewise.
673 (distribute_links): Likewise. Tweak prototype.
674 (clear_log_links): Delete.
675 (adjust_for_new_dest): Call alloc_insn_link.
676 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
678 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
680 * gcse.c (modify_mem_list): Convert to an array of VECs.
681 (canon_modify_mem_list, compute_transp): Tweak formatting.
682 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
683 (load_killed_in_block_p): Likewise.
684 (record_last_mem_set_info): Likewise.
685 (clear_modify_mem_tables): Likewise.
687 2011-04-05 Tom de Vries <tom@codesourcery.com>
690 * function.c (emit_use_return_register_into_block): Only define if
693 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
695 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
697 2011-04-05 Joseph Myers <joseph@codesourcery.com>
699 * config/rx/rx-opts.h: New.
700 * config/rx/rx.c (rx_cpu_type): Remove.
701 (rx_handle_option): Don't assert that global structures are in
702 use. Access variables via opts pointer. Defer most handling of
703 OPT_mint_register_. Use error_at.
704 (rx_option_override): Handle deferred OPT_mint_register_ here.
705 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
706 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
707 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
708 (rx_cpu_types): New Enum and EnumValue entries.
709 (mint-register=): Use Defer and use Var accordingly.
711 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
713 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
714 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
715 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
717 (debug_free_queue, debug_nesting, symbol_queue_index):
719 * dbxout.c: ...to here. Make static.
721 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
723 * gcse.c (modify_pair): Define. Define a VEC of it.
724 (canon_modify_mem_list): Convert to an array of VECs.
725 (free_insn_expr_list_list): Delete.
726 (clear_modify_mem_tables): Call VEC_free instead.
727 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
728 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
729 (canon_list_insert, compute_transp): Likewise.
731 2011-04-05 Tom de Vries <tom@codesourcery.com>
734 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
737 2011-04-05 Tom de Vries <tom@codesourcery.com>
740 * function.c (emit_use_return_register_into_block): New function.
741 (thread_prologue_and_epilogue_insns): Use
742 emit_use_return_register_into_block.
744 2011-04-05 Tom de Vries <tom@codesourcery.com>
747 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
750 2011-04-05 Tom de Vries <tom@codesourcery.com>
752 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
754 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
756 * config/arm/arm.md (define_constants for unspec): Replace with
758 (define_constants for unspecv): Replace with define_c_enum.
759 * config/arm/neon.md (define_constants for unspec): Replace with
762 2011-04-04 Richard Henderson <rth@redhat.com>
765 * dwarf2out.c (output_line_info): Always emit line info from
766 at least one section.
767 (dwarf2out_init): Create text_section_line_info here ...
768 (set_cur_line_info_table): ... not here.
770 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
773 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
776 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
778 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
780 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
781 (expr_equiv_p): Remove.
782 (insert_set_in_table): Look at <dest, src> pair instead of expr.
783 (hash_scan_set): Update call to insert_set_in_table.
784 (dump_hash_table): Dump <dest, src> pair.
785 (lookup_set): Simplify. Lookup <dest, src> pair.
786 (compute_transp): Remove, fold heavily simplified code into...
787 (compute_local_properties): ...here. Expect COMP and TRANSP
789 (find_avail_set): Take set directly from struct expr.
790 (find_bypass-set): Likewise.
791 (bypass_block): Likewise.
792 (cprop_insn): Likewise. Remove redundant INSN_P test.
794 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
795 checks on form of COND from find_implicit_sets to here.
796 (find_implicit_sets): Cleanup control flow. Split critical edges
797 if it exposes implicit sets. Allocate/resize implicit_sets as
799 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
800 changed something. Run df_analyze after find_implicit_sets if any
801 edges were split. Do not allocate implicit_sets here.
803 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
804 (gcse_obstack): Renamed to cprop_obstack.
805 (GNEW, GNEWVEC, GNEWVAR): Remove.
807 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
808 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
809 (gcse_alloc): Likewise, and rename to cprop_alloc.
810 (alloc_gcse_men, free_gcse_mem): Remove.
811 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
812 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
813 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
815 * cprop.c (oprs_not_set_p): Remove.
816 (mark_set, mark_clobber): Remove.
817 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
818 (reg_not_set_p): New function.
819 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
820 (cprop_insn): Likewise.
821 (cprop_jump): Use FOR_EACH_EDGE.
823 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
826 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
827 (rank_for_schedule): Use scheduled_insns vector instead of
829 (ok_for_early_queue_removal): Likewise.
830 (queue_to_ready): Search forward in nonscheduled_insns_begin if
832 (choose_ready): Likewise.
833 (commit_schedule): Use VEC_iterate.
834 (schedule_block): Initialize nonscheduled_insns_begin. If we have
835 a dbg_cnt, use it and ensure the first insn is in the ready list.
836 (haifa_sched_init): Allocate scheduled_insns.
837 (sched_extend_ready_list): Don't allocate it; reserve space.
838 (haifa_sched_finish): Free it.
840 2011-04-04 Joseph Myers <joseph@codesourcery.com>
842 * optc-gen.awk: Always remove type from Variable entry before
843 recording in var_seen.
845 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
847 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
848 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
849 call to tidy_fallthru_edges.
851 2011-04-04 Joseph Myers <joseph@codesourcery.com>
853 * doc/options.texi (ToLower): Document.
854 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
855 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
856 * opts.h (cl_option): Add cl_tolower field.
857 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
858 arguments with lowercase strings.
859 * config/rx/rx.opt (mcpu=): Add ToLower.
860 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
863 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
865 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
867 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
869 * config/vax/vax.c: Include reload.h.
871 2011-04-04 Anatoly Sokolov <aesok@post.ru>
873 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
874 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
875 (sparc_preferred_reload_class): New function.
877 2011-04-04 Jakub Jelinek <jakub@redhat.com>
880 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
881 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
883 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
885 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
886 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
888 2011-04-03 Anatoly Sokolov <aesok@post.ru>
890 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
891 (ASM_OUTPUT_ALIGNED_BSS): Define.
893 2011-04-03 Michael Matz <matz@suse.de>
895 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
896 and next_slot members.
897 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
898 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
899 (lto_streamer_cache_append): Declare.
900 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
901 unsigned index, remove offset parameter, ensure that we append
902 or update existing entries.
903 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
904 parameter, update next_slot for append.
905 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
907 (lto_streamer_cache_insert_at): Likewise.
908 (lto_streamer_cache_append): New function.
909 (lto_streamer_cache_lookup): Use unsigned index.
910 (lto_streamer_cache_get): Likewise.
911 (lto_record_common_node): Don't test tree_node_can_be_shared.
912 (preload_common_node): Adjust call to lto_streamer_cache_insert.
913 (lto_streamer_cache_delete): Don't free offsets member.
914 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
915 (lto_output_string_with_length): Use lto_output_data_stream.
916 (lto_output_tree_header): Remove ix parameter, don't write it.
917 (lto_output_builtin_tree): Likewise.
918 (lto_write_tree): Adjust callers to above, don't track and write
919 offset, write unsigned index.
920 (output_unreferenced_globals): Don't emit all global vars.
921 (write_global_references): Use unsigned indices.
922 (lto_output_decl_state_refs): Likewise.
923 (write_symbol): Likewise.
924 * lto-streamer-in.c (lto_input_chain): Move earlier.
925 (input_function): Use unsigned index.
926 (input_alias_pairs): Don't read and then ignore all global vars.
927 (lto_materialize_tree): Remove ix_p parameter, don't read index,
928 don't pass it back, use lto_streamer_cache_append.
929 (lto_register_var_decl_in_symtab): Use unsigned index.
930 (lto_register_function_decl_in_symtab): Likewise.
931 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
933 (lto_get_builtin_tree): Don't read index, use
934 lto_streamer_cache_append.
935 (lto_read_tree): Adjust call to lto_materialize_tree.
937 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
938 don't use function calls in arguments to MIN.
940 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
943 * gimple.c (gimple_type_leader_entry): Mark deletable.
945 2011-04-03 Alan Modra <amodra@gmail.com>
947 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
949 2011-04-03 Michael Matz <matz@suse.de>
951 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
953 * tree.h (tree_decl_non_common.vindex): Adjust comment.
955 2011-04-03 Michael Matz <matz@suse.de>
957 * cgraphbuild.c (record_reference): Canonicalize constructor values.
958 * gimple-fold.c (canonicalize_constructor_val): Accept being called
959 without function context.
960 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
961 current_function_decl and cfun.
963 2011-04-03 Michael Matz <matz@suse.de>
965 * tree.c (decl_init_priority_insert): Don't create entry for
967 (decl_fini_priority_insert): Ditto.
968 (fields_compatible_p, find_compatible_field): Remove.
969 * tree.h (fields_compatible_p, find_compatible_field): Remove.
970 * gimple.c (gimple_compare_field_offset): Adjust block comment.
972 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
974 * combine.c (try_combine): Remove useless local variable.
976 2011-04-03 Richard Guenther <rguenther@suse.de>
977 Ira Rosen <ira.rosen@linaro.org>
979 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
980 non-variable offsets and compare the remaining bases of the two
981 accesses instead of looking for exact same data-ref.
983 2011-04-02 Kai Tietz <ktietz@redhat.com>
986 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
988 * i386.c (ix86_is_msabi_thiscall): New helper function.
989 (ix86_is_type_thiscall): New helper function.
990 (ix86_comp_type_attributes): Handle thiscall for method-functions
992 (init_cumulative_args): Likewise.
993 (find_drap_reg): Likewise.
994 (ix86_static_chain): Likewise.
995 (x86_this_parameter): Likewise.
996 (x86_output_mi_thunk): Likewise.
998 2011-04-01 Olivier Hainque <hainque@adacore.com>
999 Nicolas Setton <setton@adacore.com>
1000 Eric Botcazou <ebotcazou@adacore.com>
1002 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1003 (add_gnat_descriptive_type_attribute): New function.
1004 (gen_array_type_die): Call it.
1005 (gen_enumeration_type_die): Likewise.
1006 (gen_struct_or_union_type_die): Likewise.
1007 (modified_type_die): Likewise.
1008 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1009 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1010 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1012 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1015 * dwarf2out.c (resolve_addr): Don't call force_decl_die
1016 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1019 2011-03-17 Richard Guenther <rguenther@suse.de>
1022 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1023 origin for decls in other ltrans units.
1024 (input_varpool_node): Likewise.
1026 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1029 * expr.c (expand_assignment): Handle all possibilities
1030 if TO_RTX is CONCAT.
1031 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1032 (store_split_bit_field): If SUBREG_REG (op0) or
1033 op0 itself has smaller mode than word, return it
1034 for offset 0 and const0_rtx for out-of-bounds stores.
1035 If word is const0_rtx, skip it.
1037 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
1039 * config/h8300/h8300.c (print_operand_address): Rename to...
1040 (h8300_print_operand_address): ...this. Make static. Adjust comments.
1041 Call h8300_print_operand and h8300_print_operand_address instead of
1042 print_operand and print_operand_address. Declare.
1043 (print_operand): Renake to...
1044 (h8300_print_operand): ...this. Make static. Adjust comments.
1045 Call h8300_print_operand instead of print_operand. Declare.
1046 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1047 (h8300_register_move_cost): Likewise.
1048 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1049 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1050 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1051 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1052 * config/h8300/h8300-protos.h (print_operand): Delete.
1053 (print_operand_address): Delete.
1055 2011-04-01 Richard Henderson <rth@redhat.com>
1058 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1059 in strict mode before dwarf4. Re-order tests to early out
1060 before switching sections.
1062 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
1064 * config/h8300/constraints.md: New file.
1065 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
1066 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1067 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1068 * config/h8300/predicates.md (bit_operand): Likewise.
1069 (incdec_operand): Use satisfies_constraint_M and
1070 satisfies_constraint_O. Don't use C code block.
1071 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1072 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1073 (compute_mov_length): Use satisfies_constraint_G.
1074 (fix_bit_operand): Use satisfies_constraint_U.
1075 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1076 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1077 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1078 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1079 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1080 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1081 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1082 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1083 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1084 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1085 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1086 (EXTRA_MEMORY_CONSTRAINT): Delete.
1088 2011-04-01 Andrew Pinski <pinskia@gmail.com>
1089 Michael Meissner <meissner@linux.vnet.ibm.com>
1092 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1093 operands, as per the specifications.
1095 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1096 (vec_extract_evenv4sf): Ditto.
1097 (vec_extract_evenv8hi): Ditto.
1098 (vec_extract_evenv16qi): Ditto.
1099 (vec_extract_oddv4si): Ditto.
1101 2011-03-31 Mark Wielaard <mjw@redhat.com>
1103 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1104 high_pc attribute if the CU has no associated code. Only output
1105 DW_AT_entry_pc for CU if not generating strict dwarf and
1108 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
1110 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1111 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1113 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1114 * final.c (final_start_function): Call the new function rather
1115 than using a NULL argument for dwarf2out_frame_debug.
1117 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1118 that contains the prologue.
1120 * haifa-sched.c (queue_insn): New arg REASON. All callers
1121 changed. Print it in debugging output.
1123 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1125 * sched-ebb.c (begin_schedule_ready): Remove second argument.
1126 Split most of the code into...
1127 (begin_move_insn): ... here. New function.
1128 (ebb_sched_info): Add a pointer to it.
1129 * haifa-sched.c (scheduled_insns): New static variable.
1130 (sched_extend_ready_list): Allocate it.
1131 (schedule_block): Use it to record the order of scheduled insns.
1132 Perform RTL changes to move insns only after all scheduling
1133 decisions have been made.
1134 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1135 begin_move_insn field.
1136 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1137 * sched-int.h (struct haifa_sched_info): Remove second argument
1138 from begin_schedule_ready hook. Add new member begin_move_insn.
1139 * sched-rgn.c (begin_schedule_ready): Remove second argument.
1140 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1142 * haifa-sched.c (prune_ready_list): New function, broken out of
1144 (schedule_block): Use it.
1146 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1148 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
1150 2011-04-01 Kai Tietz <ktietz@redhat.com>
1152 * config.gcc (*-*-mingw*): Allow as option the
1153 posix threading model.
1154 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
1155 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1157 (CPP_SPEC): Add pthread/no-pthread handling.
1158 (LIB_SPEC): Likewise.
1159 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1160 (LIB_SPEC): Likewise.
1161 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1162 flag to pass -pthread option for shared libgcc build.
1163 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1164 for shared libgcc build.
1165 * config/i386/t-mingw-pthread: New file.
1166 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1167 New define to enable use of library pthread by default.
1168 * config/i386/mingw.opt (pthread): New driver option.
1169 (no-pthread): New driver option.
1170 * config/i386/cygming.opt: Make sure trailing empty line is retained.
1171 * config/i386/mingw-w64.opt: Likewise.
1173 2011-04-01 Gary Funck <gary@intrepid.com>
1175 * c-decl.c (grokdeclarator): Fix formatting.
1177 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1179 * expr.c (emit_block_move_via_movmem): Use n_generator_args
1180 instead of n_operands.
1181 (set_storage_via_setmem): Likewise.
1182 * optabs.c (maybe_gen_insn): Likewise.
1183 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1184 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1185 (mips_expand_builtin_direct): Likewise.
1186 * config/spu/spu.c (expand_builtin_args): Likewise.
1188 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1190 * recog.h (insn_data_d): Add n_generator_args.
1191 * genoutput.c (data): Likewise.
1192 (output_insn_data): Print it.
1193 (max_opno, num_dups): Delete.
1194 (scan_operands): Just fill in "d->operand[...]".
1195 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1197 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1199 * gensupport.h (pattern_stats): New structure.
1200 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1201 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1202 (max_operand_1, max_operand_vec): Delete.
1203 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1205 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
1207 * emit-rtl.c (emit_pattern_after_setloc): New function.
1208 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1209 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1210 (emit_pattern_after): New function.
1211 (emit_insn_after, emit_jump_insn_after): Call it.
1212 (emit_call_insn_after, emit_debug_insn_after): Likewise.
1213 (emit_pattern_before_setloc): New function.
1214 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1215 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1217 (emit_pattern_before): New function.
1218 (emit_insn_before, emit_jump_insn_before): Call it.
1219 (emit_call_insn_before, emit_debug_insn_before): Likewise.
1221 2011-03-31 Richard Henderson <rth@redhat.com>
1223 * dwarf2out.c (dw_separate_line_info_ref): Remove.
1224 (dw_separate_line_info_entry): Remove.
1225 (enum dw_line_info_opcode): New.
1226 (dw_line_info_entry): Use it.
1227 (dw_line_info_table, dw_line_info_table_p): New.
1228 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1229 (line_info_table, line_info_label_num): Remove.
1230 (line_info_table_in_use): Remove.
1231 (separate_line_info_table): Remove.
1232 (separate_line_info_table_allocated): Remove.
1233 (separate_line_info_table_in_use): Remove.
1234 (LINE_INFO_TABLE_INCREMENT): Remove.
1235 (line_info_label_num): New.
1236 (cur_line_info_table): New.
1237 (text_section_line_info, cold_text_section_line_info): New.
1238 (separate_line_info): New.
1239 (SEPARATE_LINE_CODE_LABEL): Remove.
1240 (print_dwarf_line_table): Remove.
1241 (debug_dwarf): Don't dump it.
1242 (output_one_line_info_table): New.
1243 (output_line_info): Use it.
1244 (new_line_info_table): New.
1245 (set_cur_line_info_table): New.
1246 (dwarf2out_switch_text_section): Use it.
1247 (dwarf2out_begin_function): Likewise.
1248 (push_dw_line_info_entry): New.
1249 (dwarf2out_source_line): Rewrite for new line info tables.
1250 (dwarf2out_init): Remove dead initailizations.
1252 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1254 * opts.h (cl_option): Add comments to fields. Add bit-fields for
1256 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
1257 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
1258 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
1259 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
1260 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
1261 * opt-functions.awk (flag_init, switch_bit_fields): New.
1262 (switch_flags): Don't handle flags moved to bit-fields. Don't
1263 generate CL_MISSING_OK or CL_SAVE.
1264 * optc-gen.awk: Update to generate bit-field output as well as
1266 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
1267 bit-field instead of CL_REJECT_DRIVER flag.
1268 * opts-common.c (generate_canonical_option,
1269 decode_cmdline_option): Use bit-fields instead of CL_* flags.
1270 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
1271 instead of CL_REJECT_NEGATIVE flag.
1272 * toplev.c (print_switch_values): Use cl_report bit-field instead
1275 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1277 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1278 a zero minimum index only if it is redundant.
1280 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
1282 PR rtl-optimization/48381
1283 * ira-color.c (assign_hard_reg): Use hard reg set intersection
1284 instead of ira_class_hard_reg_index for calculating conflicting
1287 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
1289 * cprop.c: Clean up hash table building.
1290 (reg_avail_info): Remove.
1291 (oprs_available_p): Remove.
1292 (record_last_reg_set_info): Remove.
1293 (record_last_set_info): Remove.
1294 (reg_available_p): New function.
1295 (gcse_constant_p): Do not treat unfolded conditions as constants.
1296 (make_set_regs_unavailable): New function.
1297 (hash_scan_set): Simplify with new reg_available_p.
1298 (compute_hash_table_work): Traverse insns stream only once.
1299 Do not compute reg_avail_info. Traverse insns in reverse order.
1300 Record implicit sets after recording explicit sets from the block.
1302 2011-03-31 Michael Matz <matz@suse.de>
1304 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
1306 2011-03-31 Anatoly Sokolov <aesok@post.ru>
1308 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
1309 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
1310 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1311 (h8300_mode_dependent_address_p): New function.
1312 (h8300_get_index): Make static.
1314 2011-03-31 Jeff Law <law@redhat.com>
1316 * reload1.c (elimination_effects): Fix typo in recent change.
1318 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
1319 typo potentially leading to null pointer dereference.
1321 * caller-save.c (new_saved_hard_reg): Eliminate return value.
1322 (setup_save_areas): Corresponding changes to avoid useless
1325 * jump.c (reversed_comparison_code_parts): Avoid successive return
1326 statements when REVERSE_CONDITION is defined.
1328 * expr.c (expand_assignment): Avoid useless assignments.
1329 (expand_expr_real_1): Likewise.
1330 (expand_expr_real_2): Avoid useless statements.
1332 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
1334 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1336 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
1339 * stmt.c (expand_expr_stmt): Avoid useless assignment.
1341 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1344 * doc/tm.texi.in (TARGET_VERSION): Remove.
1345 * doc/tm.texi: Regenerate.
1346 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
1347 * collect2.c (main): Don't use TARGET_VERSION.
1348 * mips-tdump.c (main): Don't use TARGET_VERSION.
1349 * mips-tfile.c (main): Don't use TARGET_VERSION.
1350 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
1351 * config/rs6000/vxworksae.h: Remove.
1352 * config/alpha/alpha.h (TARGET_VERSION): Remove.
1353 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
1354 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
1355 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
1356 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1357 * config/arm/arm.h (TARGET_VERSION): Remove.
1358 * config/arm/coff.h (TARGET_VERSION): Remove.
1359 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
1360 * config/arm/elf.h (TARGET_VERSION): Remove.
1361 * config/arm/freebsd.h (TARGET_VERSION): Remove.
1362 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1363 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1364 * config/arm/pe.h (TARGET_VERSION): Remove.
1365 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1366 * config/arm/semi.h (TARGET_VERSION): Remove.
1367 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1368 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1369 * config/arm/vxworks.h (TARGET_VERSION): Remove.
1370 * config/avr/avr.h (TARGET_VERSION): Remove.
1371 * config/bfin/bfin.h (TARGET_VERSION): Remove.
1372 * config/fr30/fr30.h (TARGET_VERSION): Remove.
1373 * config/frv/frv.h (TARGET_VERSION): Remove.
1374 * config/h8300/h8300.h (TARGET_VERSION): Remove.
1375 * config/i386/cygwin.h (TARGET_VERSION): Remove.
1376 * config/i386/darwin.h (TARGET_VERSION): Remove.
1377 * config/i386/darwin64.h (TARGET_VERSION): Remove.
1378 * config/i386/djgpp.h (TARGET_VERSION): Remove.
1379 * config/i386/freebsd.h (TARGET_VERSION): Remove.
1380 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
1381 * config/i386/gnu.h (TARGET_VERSION): Remove.
1382 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
1383 * config/i386/i386elf.h (TARGET_VERSION): Remove.
1384 * config/i386/linux.h (TARGET_VERSION): Remove.
1385 * config/i386/linux64.h (TARGET_VERSION): Remove.
1386 * config/i386/lynx.h (TARGET_VERSION): Remove.
1387 * config/i386/mingw32.h (TARGET_VERSION): Remove.
1388 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
1389 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
1390 * config/i386/netware.h (TARGET_VERSION): Remove.
1391 * config/i386/nto.h (TARGET_VERSION): Remove.
1392 * config/i386/openbsd.h (TARGET_VERSION): Remove.
1393 * config/i386/vxworks.h (TARGET_VERSION): Remove.
1394 * config/ia64/elf.h (TARGET_VERSION): Remove.
1395 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
1396 * config/ia64/hpux.h (TARGET_VERSION): Remove.
1397 * config/ia64/linux.h (TARGET_VERSION): Remove.
1398 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1399 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
1400 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1401 * config/lm32/lm32.h (TARGET_VERSION): Remove.
1402 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
1403 * config/m32c/m32c.h (TARGET_VERSION): Remove.
1404 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
1405 * config/m32r/m32r.h (TARGET_VERSION): Remove.
1406 * config/m68k/linux.h (TARGET_VERSION): Remove.
1407 * config/m68k/m68k.h (TARGET_VERSION): Remove.
1408 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
1409 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
1410 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
1411 * config/mep/mep.h (TARGET_VERSION): Remove.
1412 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
1413 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1414 * config/mips/iris6.h (MACHINE_TYPE): Remove.
1415 * config/mips/linux.h (TARGET_VERSION): Remove.
1416 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
1417 * config/mips/vxworks.h (TARGET_VERSION): Remove.
1418 * config/mmix/mmix.h (TARGET_VERSION): Remove.
1419 * config/mn10300/linux.h (TARGET_VERSION): Remove.
1420 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
1421 * config/pa/pa.h (TARGET_VERSION): Remove.
1422 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
1423 * config/picochip/picochip.h (TARGET_VERSION): Remove.
1424 * config/rs6000/aix.h (TARGET_VERSION): Remove.
1425 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
1426 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
1427 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
1428 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
1429 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
1430 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
1431 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
1432 * config/rs6000/linux.h (TARGET_VERSION): Remove.
1433 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
1434 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
1435 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
1436 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
1437 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
1438 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
1439 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
1440 * config/s390/linux.h (TARGET_VERSION): Remove.
1441 * config/s390/s390.h (TARGET_VERSION): Remove.
1442 * config/s390/tpf.h (TARGET_VERSION): Remove.
1443 * config/score/score.h (TARGET_VERSION): Remove.
1444 * config/sh/linux.h (TARGET_VERSION): Remove.
1445 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
1446 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
1447 * config/sh/sh.h (TARGET_VERSION): Remove.
1448 * config/sh/sh64.h (TARGET_VERSION): Remove.
1449 * config/sh/superh.h (TARGET_VERSION): Remove.
1450 * config/sh/vxworks.h (TARGET_VERSION): Remove.
1451 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
1452 * config/sparc/linux.h (TARGET_VERSION): Remove.
1453 * config/sparc/linux64.h (TARGET_VERSION): Remove.
1454 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
1455 TARGET_NAME32, TARGET_NAME): Remove.
1456 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
1457 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
1458 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
1459 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
1460 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
1461 * config/spu/spu.h (TARGET_VERSION): Remove.
1462 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
1463 * config/v850/v850.h (TARGET_VERSION): Remove.
1464 * config/vax/linux.h (TARGET_VERSION): Remove.
1465 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
1466 * config/xtensa/elf.h (TARGET_VERSION): Remove.
1467 * config/xtensa/linux.h (TARGET_VERSION): Remove.
1469 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1472 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
1473 frame-related from frame-unrelated adjustments to the stack pointer.
1475 2011-03-31 Jakub Jelinek <jakub@redhat.com>
1477 * common.opt (fdebug-types-section): Move earlier.
1478 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
1480 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
1482 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
1485 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
1487 * tree.h (CASE_CHAIN): Define.
1488 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
1489 (gimple_redirect_edge_and_branch): Likewise.
1491 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1494 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
1497 2011-03-30 Jeff Law <law@redhat.com>
1499 * PR bootstrap/48371
1500 * reload1.c (reload): Fix botch in last change.
1502 * reload.h (struct reload): Fix typo introduced in last change.
1504 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1506 * config/arm/arm.opt (mhard-float, msoft-float): Mark
1507 Undocumented. Remove help text.
1508 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
1511 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1513 * doc/options.texi (NegativeAlias): Document.
1514 (Alias): Mention NegativeAlias.
1515 * opt-functions.awk: Handle NegativeAlias.
1516 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
1517 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
1518 * opts.h (CL_NEGATIVE_ALIAS): Define.
1519 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
1520 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
1522 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
1524 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1525 mno-spe and mno-isel instead of mspe=no and -misel=no.
1527 2011-03-29 Mark Wielaard <mjw@redhat.com>
1529 * common.opt (fdebug-types-section): New flag.
1530 * doc/invoke.texi: Document new -fno-debug-types-section flag.
1531 * dwarf2out.c (use_debug_types): New define.
1532 (struct die_struct): Mark die_id with GTY desc use_debug_types.
1533 (print_die): Guard output of type unit signatures using
1535 (build_abbrev_table): Replace assert of dwarf_version >= 4
1536 with assert on use_debug_types.
1537 (size_of_die): Likewise.
1538 (unmark_dies): Likewise.
1539 (value_format): Decide AT_ref_external form on use_debug_types.
1540 (output_die): Replace dwarf_version version check guard with
1541 use_debug_types where appropriate.
1542 (modified_type_die): Likewise.
1543 (gen_reference_type_die): Likewise.
1544 (dwarf2out_start_source_file): Likewise.
1545 (dwarf2out_end_source_file): Likewise.
1546 (prune_unused_types_walk_attribs): Likewise.
1547 (dwarf2out_finish): Likewise.
1549 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1551 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
1553 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1555 PR rtl-optimization/48332
1556 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
1557 mode of input operand N and modeN to its actual mode.
1559 2011-03-30 Jeff Law <law@redhat.com>
1561 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
1562 define accessor macro.
1563 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
1564 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
1565 (reg_equiv_init): Likewise.
1566 (reg_equivs_size): New variable.
1567 (reg_equiv_init_size): Remove.
1568 (allocate_initial_values): Move prototype to here from....
1569 * integrate.h (allocate_initial_values): Remove prototype.
1570 * integrate.c: Include reload.h.
1571 (allocate_initial_values): Corresponding changes.
1572 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
1573 (fix_reg_equiv_init, no_equiv): Corresponding changes.
1574 (update_equiv_regs): Corresponding changes.
1575 (ira): Corresponding changes.
1576 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
1577 (push_secondary_reload): Corresponding changes.
1578 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
1579 (make_memloc, find_reloads_address): Corresponding changes.
1580 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
1581 (find_reloads_address_1): Corresponding changes.
1582 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
1583 (refers_to_regno_for_reload_p): Corresponding changes.
1584 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
1585 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
1586 * reload1.c: Include ggc.h.
1587 (grow_reg_equivs): New function.
1588 (replace_pseudos_in, reload): Corresponding changes.
1589 (calculate_needs_all_insns, alter_regs): Corresponding changes.
1590 (eliminate_regs_1, elimination_effects): Corresponding changes.
1591 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
1592 (delete_output_reload): Likewise.
1593 * caller-save.c (mark_referenced_regs): Corresponding changes.
1594 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
1595 * frv/predicates.md (frv_load_operand): Corresponding changes.
1596 * microblaze/microblaze.c (double_memory_operand): Corresponding
1598 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
1599 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
1600 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
1601 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
1602 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
1604 * pa/pa.c (emit_move_sequence): Corresponding changes.
1605 * vax/vax.c (nonindexed_address_p): Corresponding changes.
1607 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1610 * config/arm/arm.c (coproc_secondary_reload_class): Handle
1611 structure modes. Don't check neon_vector_mem_operand for
1612 vector or structure modes.
1614 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1615 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1618 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1619 operand 1 and reshuffle the operands to match.
1620 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1622 2011-03-30 Christian Schüler <cschueler@gmx.de>
1625 * config/c.opt (F): Added 'Driver' to -F option.
1628 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1630 * config/darwin.opt: Added '-arch' option.
1632 2011-03-30 Nick Clifton <nickc@redhat.com>
1634 * config/rx/rx.md: Add peepholes and patterns to combine
1635 extending loads and simple arithmetic instructions.
1636 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
1637 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1638 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
1639 modes to use pre-decrement and post-increment addressing.
1640 (rx_is_restricted_memory_address): Add range checking of REG+INT
1642 (rx_print_operand): Add support for %Q. Fix handling of %Q.
1643 (rx_memory_move_cost): Adjust cost of stores.
1644 (rx_adjust_insn_length): New function.
1646 2011-03-30 Jakub Jelinek <jakub@redhat.com>
1649 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1650 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1651 matching arg00/arg01 types.
1653 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
1655 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1656 last_location to UNKNOWN_LOCATION.
1658 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
1661 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1664 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1665 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1668 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1670 (sparc_cpu): Likewise.
1671 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1674 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1678 PR rtl-optimization/48345
1679 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1680 hard regs for given mode from profitable regs when doing secondary
1683 2011-03-29 Jeff Law <law@redhat.com>
1686 * tree-ssa-threadupdate.c (struct redirection_data): Remove
1687 do_not_duplicate field.
1688 (lookup_redirection_data): Corresponding changes.
1689 (create_duplicates): Always create a template block.
1690 (redirect_edges): Remove code which reused the original block
1691 when it was going to become unreachable code.
1692 (thread_block): Don't set do_not_duplicate field.
1694 2011-03-29 Joseph Myers <joseph@codesourcery.com>
1696 * lto-opts.c (register_user_option_p, lto_register_user_option):
1697 Make type argument unsigned.
1698 * lto-streamer.h (lto_register_user_option): Make type argument
1700 * opth-gen.awk: Make CL_* macros unsigned.
1701 * opts-common.c (find_opt): Make lang_mask argument unsigned.
1702 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1703 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1704 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1705 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1706 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1707 (find_opt): Make lang_mask argument unsigned.
1709 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1711 PR rtl-optimization/48331
1712 PR rtl-optimization/48334
1713 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1714 for any used algorithm.
1716 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1718 * ira-conflicts.c (build_object_conflicts): Add unused attribute
1721 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
1723 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1724 (alpha_option_override): Don't set alpha_sr_alias_set.
1725 (emit_frame_store_1): Use gen_frame_mem rather than calling
1727 (alpha_expand_epilogue): Ditto.
1729 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
1731 PR tree-optimization/48290
1732 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1733 vectorization, check that relevant phis in the basic block after
1734 the inner loop are really inner loop's exit phis.
1736 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
1739 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1740 (cached_dw_loc_list_def): New structure.
1741 (cached_dw_loc_list): New typedef.
1742 (cached_dw_loc_list_table): New variable.
1743 (cached_dw_loc_list_table_hash): New function.
1744 (cached_dw_loc_list_table_eq): Likewise.
1745 (add_location_or_const_value_attribute): Take a bool cache_p.
1746 Cache the list when the parameter is true.
1747 (gen_formal_parameter_die): Update caller.
1748 (gen_variable_die): Likewise.
1749 (dwarf2out_finish): Likewise.
1750 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1751 while generating debug info for the decl.
1752 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1753 (dwarf2out_init): Initialize cached_dw_loc_list_table.
1754 (resolve_addr): Cache the result of resolving a chain of
1757 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
1759 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1760 conflict object hard regset nodes have intersecting hard reg sets.
1762 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1763 after regstat_init_n_sets_and_refs.
1765 * ira.c: Add more comments at the top.
1766 (setup_stack_reg_pressure_class, setup_pressure_classes):
1767 Add comments how we compute the register pressure classes.
1768 (setup_allocno_and_important_classes): Add more comments.
1769 (setup_class_translate_array, reorder_important_classes)
1770 (setup_reg_class_relations): Add comments.
1772 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1775 * ira-color.c: Add 2011 to the Copyright line.
1776 (assign_hard_reg): Add more comments.
1777 (improve_allocation): Ditto.
1779 * ira-costs.c: Add 2011 to the Copyright line.
1780 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1782 (setup_regno_cost_classes_by_mode): Ditto.
1784 Initial patches from ira-improv branch:
1786 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1788 * ira-build.c: (ira_create_object): Remove initialization of
1789 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1790 (ira_create_allocno): Remove initialization of
1791 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1792 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1793 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1794 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1795 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1796 Initialize ALLOCNO_ADD_DATA.
1797 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1798 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1800 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1801 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1803 * ira.c (ira_reallocate): Remove.
1804 (setup_pressure_classes): Call
1805 ira_init_register_move_cost_if_necessary. Use
1806 ira_register_move_cost instead of ira_get_register_move_cost.
1807 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1808 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1810 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1811 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1812 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1813 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1814 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1815 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1817 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1818 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1819 (struct allocno_color_data): New.
1820 (allocno_color_data_t): New typedef.
1821 (allocno_color_data): New definition.
1822 (ALLOCNO_COLOR_DATA): New macro.
1823 (struct object_color_data): New.
1824 (object_color_data_t): New typedef.
1825 (object_color_data): New definition.
1826 (OBJECT_COLOR_DATA): New macro.
1827 (update_copy_costs, calculate_allocno_spill_cost): Call
1828 ira_init_register_move_cost_if_necessary. Use
1829 ira_register_move_cost instead of ira_get_register_move_cost.
1830 (move_spill_restore, update_curr_costs): Ditto.
1831 (allocno_spill_priority): Make it inline.
1832 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1833 (struct coalesce_data, coalesce_data_t): New.
1834 (allocno_coalesce_data): New definition.
1835 (ALLOCNO_COALESCE_DATA): New macro.
1836 (merge_allocnos, coalesced_allocno_conflict_p): Use
1837 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1838 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1839 (coalesce_allocnos): Ditto.
1840 (setup_coalesced_allocno_costs_and_nums): Ditto.
1841 (collect_spilled_coalesced_allocnos): Ditto.
1842 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1843 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1844 (coalesce_spill_slots): Ditto.
1845 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1846 free allocno_coalesce_data.
1848 * ira-conflicts.c: Fix formatting.
1849 (process_regs_for_copy): Call
1850 ira_init_register_move_cost_if_necessary. Use
1851 ira_register_move_cost instead of ira_get_register_move_cost.
1852 (build_object_conflicts): Optimize.
1854 * ira-costs.c (record_reg_classes): Optimize. Call
1855 ira_init_register_move_cost_if_necessary. Use
1856 ira_register_move_cost, ira_may_move_in_cost, and
1857 ira_may_move_out_cost instead of ira_get_register_move_cost and
1858 ira_get_may_move_cost.
1859 (record_address_regs): Ditto.
1860 (scan_one_insn): Optimize.
1861 (find_costs_and_classes): Optimize.
1862 (process_bb_node_for_hard_reg_moves): Call
1863 ira_init_register_move_cost_if_necessary. Use
1864 ira_register_move_cost instead of ira_get_register_move_cost.
1866 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1867 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1868 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1869 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1871 (ira_initiate_emit_data, ira_finish_emit_data)
1872 (create_new_allocno): New functions.
1873 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1874 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1875 Use ira_register_move_cost instead of ira_get_register_move_cost.
1877 * ira-int.h: Fix some comments.
1878 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1879 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1880 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1881 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1883 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1884 bitfield after mode. Make hard_regno a short int. Make
1885 hard_regno short. Remove first_coalesced_allocno and
1886 next_coalesced_allocno. Move mem_optimized_dest_p,
1887 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1888 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1889 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1890 temp, colorable_p. Add new member add_data.
1891 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1892 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1893 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1894 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1895 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1896 (ALLOCNO_ADD_DATA): New macro.
1897 (ira_emit_data_t): New typedef.
1898 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1899 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1900 from struct ira_allocno.
1901 (ALLOCNO_EMIT_DATA): New macro.
1902 (ira_allocno_emit_data, allocno_emit_reg): New.
1903 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1904 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1905 (OBJECT_ADD_DATA): New macro.
1906 (ira_reallocate): Remove.
1907 (ira_initiate_emit_data, ira_finish_emit_data): New.
1908 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1909 (ira_init_register_move_cost_if_necessary): New.
1910 (ira_object_conflict_iter_next): Merge into
1911 ira_object_conflict_iter_cond.
1912 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1914 * ira-live.c: (process_single_reg_class_operands): Call
1915 ira_init_register_move_cost_if_necessary. Use
1916 ira_register_move_cost instead of ira_get_register_move_cost.
1918 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1920 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1922 * ira-costs.c: Fix formatting.
1923 (cost_classes, cost_classes_num): Remove.
1924 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1925 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1926 (cost_classes_del, cost_classes_htab): New.
1927 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1928 (initiate_regno_cost_classes, setup_cost_classes): New.
1929 (setup_regno_cost_classes_by_aclass): New.
1930 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1931 (record_reg_classes): Use regno_cost_classes instead of
1932 cost_classes. Move checking opposite operand up.
1933 (record_address_regs): Use regno_cost_classes
1934 instead of cost_classes.
1935 (scan_one_insn): Ditto. Use always general register.
1936 (print_allocno_costs): Use regno_cost_classes instead of
1938 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1939 (find_costs_and_classes): Set up cost classes for each registers.
1940 Use also their mode for this. Use regno_cost_classes instead of
1942 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1944 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1945 (ira_costs, ira_set_pseudo_classes): Call
1946 initiate_regno_cost_classes and finish_regno_cost_classes.
1948 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1950 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1952 * target.def (ira_cover_classes): Remove.
1954 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1956 * doc/tm.texi.in: Ditto.
1958 * ira-conflicts.c: Remove mentioning cover classes from the file.
1959 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1960 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1962 * targhooks.c (default_ira_cover_classes): Remove.
1964 * targhooks.h (default_ira_cover_classes): Ditto.
1966 * haifa-sched.c: Remove mentioning cover classes from the file.
1967 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1968 ira_pressure_classes and ira_pressure_classes_num instead of
1969 ira_reg_class_cover_size and ira_reg_class_cover. Use
1970 sched_regno_pressure_class instead of sched_regno_cover_class.
1971 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1972 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1974 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1975 classes from the file.
1976 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1977 (struct object_hard_regs, struct object_hard_regs_node): New.
1978 (struct ira_object): New members profitable_hard_regs,
1979 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1980 (struct ira_allocno): Rename cover_class to aclass. Rename
1981 cover_class_cost and updated_cover_class_cost to class_cost and
1982 updated_class_cost. Remove splay_removed_p and
1983 left_conflict_size. Add new members colorable_p.
1984 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1985 (ALLOCNO_COLORABLE_P): New macro.
1986 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1987 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1988 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1989 (OBJECT_...): Rename parameter C to O.
1990 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1991 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1992 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1993 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1994 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1995 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1996 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1997 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1998 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1999 x_ira_reg_class_subunion.
2000 (ira_max_memory_move_cost, ira_max_register_move_cost)
2001 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2002 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2003 (ira_important_class_nums, ira_reg_class_superunion): New macros.
2004 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2005 (ira_reg_class_union): Rename to ira_reg_class_subunion.
2006 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2007 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2008 (ira_tune_allocno_costs_and_cover_classes): Rename to
2009 ira_tune_allocno_costs.
2010 (ira_debug_hard_regs_forest): New.
2011 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2012 (ira_object_conflict_iter_next): Fix comments.
2013 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2014 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2015 cover_class to aclass.
2016 (ira_allocate_and_accumulate_costs): Ditto.
2017 (ira_allocate_and_set_or_copy_costs): Ditto.
2019 * opts.c (decode_options): Remove ira_cover_class check.
2021 * ira-color.c: Remove mentioning cover classes from the file. Use
2022 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2023 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2024 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2025 (splay-tree.h): Remove include.
2026 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2027 before copy_freq_compare_func.
2028 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2029 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2031 (hard_regs_roots, hard_regs_node_vec): Ditto.
2032 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2033 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2034 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2035 (create_new_object_hard_regs_node): Ditto.
2036 (add_new_object_hard_regs_node_to_forest): Ditto.
2037 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2038 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2040 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2041 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2042 (remove_unused_object_hard_regs_nodes): Ditto.
2043 (enumerate_object_hard_regs_nodes): Ditto.
2044 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2045 (object_hard_regs_subnode_t): Ditto.
2046 (struct object_hard_regs_subnode): Ditto.
2047 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2048 (setup_object_hard_regs_subnode_index): Ditto.
2049 (get_object_hard_regs_subnodes_num): Ditto.
2050 (form_object_hard_regs_nodes_forest): Ditto.
2051 (finish_object_hard_regs_nodes_tree): Ditto.
2052 (finish_object_hard_regs_nodes_forest): Ditto.
2053 (allocnos_have_intersected_live_ranges_p): Rename to
2054 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2055 (pseudos_have_intersected_live_ranges_p): Rename to
2056 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2057 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2058 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2059 (update_copy_costs): Remove assert. Skip cost update if the hard
2060 reg does not belong the class.
2061 (assign_hard_reg): Process only profitable hard regs.
2062 (uncolorable_allocnos_num): Make it scalar.
2063 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2064 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2065 and ira_reg_class_max_nregs.
2066 (bucket_allocno_compare_func): Check frequency first.
2067 (sort_bucket): Add compare function as a parameter.
2068 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2069 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2070 (push_allocno_to_stack): Rewrite for checking new allocno
2072 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
2073 (push_only_colorable): Pass new parameter to sort_bucket.
2074 (push_allocno_to_spill): Remove.
2075 (allocno_spill_priority_compare): Make it inline and rewrite.
2076 (splay_tree_allocate, splay_tree_free): Remove.
2077 (allocno_spill_sort_compare): New function.
2078 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
2079 build and use splay tree. Choose first allocno in uncolorable
2080 allocno bucket to spill. Remove setting spill cost.
2081 (all_conflicting_hard_regs): Remove.
2082 (setup_allocno_available_regs_num): Check only profitable hard
2083 regs. Print info about hard regs nodes.
2084 (setup_allocno_left_conflicts_size): Remove.
2085 (put_allocno_into_bucket): Don't call
2086 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
2087 (improve_allocation): New.
2088 (color_allocnos): Call setup_profitable_hard_regs,
2089 form_object_hard_regs_nodes_forest, improve_allocation,
2090 finish_object_hard_regs_nodes_forest. Setup spill cost.
2091 (print_loop_title): Use pressure classes.
2092 (color_allocnso): Ditto.
2093 (do_coloring): Remove allocation and freeing splay_tree_node_pool
2094 and allocnos_for_spilling.
2095 (ira_sort_regnos_for_alter_reg): Don't setup members
2096 {first,next}_coalesced_allocno.
2097 (color): Remove allocating and freeing removed_splay_allocno_vec.
2098 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2099 prohibited_class_mode_regs.
2101 * ira-lives.c: Remove mentioning cover classes from the file. Fix
2103 (update_allocno_pressure_excess_length): Use pressure classes.
2104 (inc_register_pressure, dec_register_pressure): Check for pressure
2106 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2107 pressure class. Use ira_reg_class_nregs instead of
2108 ira_reg_class_max_nregs.
2109 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2110 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2111 (single_reg_class): Use ira_reg_class_nregs instead of
2112 ira_reg_class_max_nregs.
2113 (process_bb_node_lives): Use pressure classes.
2115 * ira-emit.c: Remove mentioning cover classes from the file. Use
2116 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
2117 (change_loop): Use pressure classes.
2118 (modify_move_list): Call ira_set_allocno_class instead of
2119 ira_set_allocno_cover_class.
2121 * ira-build.c: Remove mentioning cover classes from the file. Use
2122 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2123 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
2124 ALLOCNO_UPDATED_CLASS_COST instead of
2125 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2126 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2127 (ira_create_allocno): Remove initialization of
2128 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
2129 ALLOCNO_COLORABLE_P.
2130 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2131 Update conflict regs for the objects.
2132 (create_cap_allocno): Remove assert. Don't propagate
2133 ALLOCNO_AVAILABLE_REGS_NUM.
2134 (ira_free_allocno_costs): New function.
2135 (finish_allocno): Change a part of code into call of
2136 ira_free_allocno_costs.
2137 (low_pressure_loop_node_p): Use pressure classes.
2138 (object_range_compare_func): Don't compare classes.
2139 (setup_min_max_conflict_allocno_ids): Ditto.
2141 * loop-invariant.c: Remove mentioning cover classes from the file.
2142 Use ira_pressure_classes and ira_pressure_classes_num instead of
2143 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
2144 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
2145 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2146 Use reg_allocno_class instead of reg_cover_class.
2147 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
2148 STACK_REG_COVER_CLASS.
2149 (get_regno_cover_class): Rename to get_regno_pressure_class.
2150 (move_loop_invariants): Initialize and finalize regstat.
2152 * ira.c: Remove mentioning cover classes from the file. Add
2153 comments about coloring without cover classes. Use ALLOCNO_CLASS
2154 instead of ALLOCNO_COVER_CLASS. Fix formatting.
2155 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2156 setup_class_subset_and_memory_move_costs.
2157 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2158 (setup_cover_and_important_classes): Rename to
2159 setup_allocno_and_important_classes.
2160 (setup_class_translate_array): New.
2161 (setup_class_translate): Call it for allocno and pressure classes.
2162 (cover_class_order): Rename to allocno_class_order.
2163 (comp_reg_classes_func): Use ira_allocno_class_translate instead
2164 of ira_class_translate.
2165 (reorder_important_classes): Set up ira_important_class_nums.
2166 (setup_reg_class_relations): Set up ira_reg_class_superunion.
2167 (print_class_cover): Rename to print_classes. Add parameter.
2168 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2169 Print pressure classes too.
2170 (find_reg_class_closure): Rename to find_reg_classes. Don't call
2171 setup_reg_subclasses.
2172 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2173 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2174 (setup_prohibited_class_mode_regs): Use
2175 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
2176 (clarify_prohibited_class_mode_regs): New function.
2177 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2178 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2179 (ira_init_once): Initialize them.
2180 (free_register_move_costs): Process them.
2181 (ira_init): Move calls of find_reg_classes and
2182 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2183 Call clarify_prohibited_class_mode_regs.
2184 (ira_no_alloc_reg): Remove.
2185 (too_high_register_pressure_p): Use pressure classes.
2187 * sched-deps.c: Remove mentioning cover classes from the file.
2188 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2189 ira_pressure_classes and ira_pressure_classes_num instead of
2190 ira_reg_class_cover_size and ira_reg_class_cover.
2191 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2192 sched_regno_pressure_class instead of sched_regno_cover_class.
2193 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
2194 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2196 * ira.h: Add 2010 to Copyright.
2197 (ira_no_alloc_reg): Remove external.
2198 (struct target_ira): Rename x_ira_hard_regno_cover_class,
2199 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2200 x_ira_class_translate to x_ira_hard_regno_allocno_class,
2201 x_ira_allocno_classes_num, x_ira_allocno_classes, and
2202 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
2203 x_ira_pressure_classes, x_ira_pressure_class_translate, and
2204 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
2205 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
2206 x_ira_no_alloc_regs.
2207 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2208 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2209 ira_allocno_classes_num and ira_allocno_classes.
2210 (ira_class_translate): Rename to ira_allocno_class_translate.
2211 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2212 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2213 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2214 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2215 (ira_no_alloc_regs): New.
2217 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
2218 classes from the file. Use ALLOCNO_CLASS instead of
2219 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
2220 ALLOCNO_COVER_CLASS_COST.
2221 (regno_cover_class): Rename to regno_aclass.
2222 (record_reg_classes): Use ira_reg_class_subunion instead of
2223 ira_reg_class_union.
2224 (record_address_regs): Check overflow.
2225 (scan_one_insn): Ditto.
2226 (print_allocno_costs): Print total mem cost fore regional allocation.
2227 (print_pseudo_costs): Use REG_N_REFS.
2228 (find_costs_and_classes): Use classes intersected with them on the
2229 1st pass. Check overflow. Use ira_reg_class_subunion instead of
2230 ira_reg_class_union. Use ira_allocno_class_translate and
2231 regno_aclass instead of ira_class_translate and regno_cover_class.
2232 Modify code for finding regno_aclass. Setup preferred classes for
2234 (setup_allocno_cover_class_and_costs): Rename to
2235 setup_allocno_class_and_costs. Use regno_aclass instead of
2236 regno_cover_class. Use ira_set_allocno_class instead of
2237 ira_set_allocno_cover_class.
2238 (init_costs, finish_costs): Use regno_aclass instead of
2240 (ira_costs): Use setup_allocno_class_and_costs instead of
2241 setup_allocno_cover_class_and_costs.
2242 (ira_tune_allocno_costs_and_cover_classes): Rename to
2243 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
2244 by processing objects. Use ira_reg_class_max_nregs instead of
2245 ira_reg_class_nregs.
2247 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2249 * sched-int.h: Remove mentioning cover classes from the file.
2250 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
2252 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
2253 classes from the file.
2254 (struct reg_pref): Rename coverclass into allocnoclass.
2255 (reg_cover_class): Rename to reg_allocno_class.
2257 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
2259 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
2261 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2263 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
2265 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
2267 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
2269 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
2271 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
2273 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
2275 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
2277 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
2278 (i386_ira_cover_classes): Ditto.
2280 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2282 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
2284 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
2286 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
2288 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
2290 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
2292 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
2293 (mips_ira_cover_classes): Ditto.
2295 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
2297 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
2299 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
2301 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
2303 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
2305 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
2306 (IRA_COVER_CLASSES_VSX): Ditto.
2308 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
2309 (rs6000_ira_cover_classes): Ditto.
2311 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
2313 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
2315 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
2317 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
2319 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
2321 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
2323 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
2325 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
2327 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
2329 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
2331 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2334 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2335 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2336 dw_fde_unlikely_section_end_label, cold_in_std_section,
2337 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2338 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2340 (output_fde): Use dw_fde_second_{begin,end} if second is
2341 true, otherwise dw_fde_{begin,end}.
2342 (output_call_frame_info): Test dw_fde_second_begin != NULL
2343 instead of dw_fde_switched_sections.
2344 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2345 fields, initialize new fields. Initialize in_std_section
2346 unconditionally from the first partition.
2347 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2348 dw_fde_second_begin is non-NULL.
2349 (dwarf2out_switch_text_section): Stop initializing removed
2350 dw_fde_struct fields, initialize new fields, initialize
2351 also dw_fde_end here. Set dw_fde_switch_cfi even when
2352 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2353 (struct var_loc_list_def): Add last_before_switch field.
2354 (arange_table, arange_table_allocated, arange_table_in_use,
2355 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2356 (size_of_aranges): Count !in_std_section and !second_in_std_section
2357 hunks in fdes, instead of looking at arange_table_in_use.
2358 (output_aranges): Add aranges_length argument, don't call
2359 size_of_aranges here. Instead of using aranges_table*
2360 emit ranges for fdes when !in_std_section resp.
2361 !second_in_std_section.
2362 (dw_loc_list): Break ranges crossing section switch.
2363 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2364 use dw_fde_second_end instead of dw_fde_end as end of last range.
2365 (gen_subprogram_die): Don't call add_arange. Use
2366 dw_fde_{begin,end} for first partition and if switched
2367 section dw_fde_second_{begin,end} for the second.
2368 (var_location_switch_text_section_1,
2369 var_location_switch_text_section): New functions.
2370 (dwarf2out_begin_function): Initialize cold_text_section even
2371 when function_section () isn't text_section.
2372 (prune_unused_types): Don't walk arange_table.
2373 (dwarf2out_finish): Don't needlessly test
2374 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2375 If info_section_emitted, call size_of_aranges and if it indicates
2376 non-empty .debug_aranges, call output_aranges with the computed
2377 size. Stop using removed dw_fde_struct fields, use
2378 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2382 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
2383 create ENTRY_VALUE if incoming or address of incoming's MEM
2385 * dwarf2out.c (mem_loc_descriptor): Don't emit
2386 DW_OP_GNU_entry_value of DW_OP_fbreg.
2387 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
2388 on ENTRY_VALUE is able to find the canonical parameter VALUE.
2389 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
2390 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
2392 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
2393 is a REG_P or MEM_P with REG_P address, compute hash directly
2394 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
2395 (preserve_only_constants): Don't clear VALUES forwaring
2396 ENTRY_VALUE to some other VALUE.
2398 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
2400 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
2403 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2405 * cfgexpand.c (expand_gimple_cond): Always set the source location and
2406 block before expanding the statement.
2407 (expand_gimple_stmt_1): Likewise. Set them here...
2408 (expand_gimple_stmt): ...and not here. Tidy.
2409 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
2412 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2414 * Makefile.in: New rule for cprop.o.
2415 * gcse.c: Move constant/copy propagation to cprop.c.
2416 (compute_local_properties): Only handle expression tables.
2417 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
2418 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
2419 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
2420 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
2421 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
2422 compute_cprop_data, find_used_regs, try_replace_reg,
2423 find_avail_set, cprop_jump, constprop_register, cprop_insn,
2424 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
2425 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
2426 find_bypass_set, reg_killed_on_edge, bypass_block,
2427 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
2428 execute_rtl_cprop, pass_rtl_cprop): Move to...
2429 * cprop.c: ...here. New file, constant/copy propagation for RTL
2430 moved from gcse.c to here with minor cleanups in duplicated code.
2432 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
2434 * config/i386/i386.c (flag_opts): Fix a typo in
2435 -mavx256-split-unaligned-store.
2437 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2439 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2440 LIBCALL_VALUE): Remove macros.
2441 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2442 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2443 (h8300_function_value, h8300_libcall_value,
2444 h8300_function_value_regno_p): New functions.
2446 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2448 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
2450 2011-03-28 Jeff Law <law@redhat.com>
2452 * tree-ssa-threadupdate.c (redirect_edges): Call
2453 create_edge_and_update_destination_phis as needed.
2454 (create_edge_and_update_destination_phis): Accept new BB argument.
2455 All callers updated.
2456 (thread_block): Do not update the profile when threading around
2457 intermediate blocks.
2458 (thread_single_edge): Likewise.
2459 (determine_bb_domination_status): If BB is not a successor of the
2460 loop header, return NONDOMINATING.
2461 (register_jump_thread): Note when we register a jump thread around
2462 an intermediate block.
2463 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
2464 (thread_across_edge): Use it.
2466 2011-03-28 Tristan Gingold <gingold@adacore.com>
2468 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
2469 when for_return is 2.
2471 2011-03-28 Jeff Law <law@redhat.com>
2473 * var-tracking.c (canonicalize_values_mark): Delete unused
2475 (canonicalize_values_star, set_variable_part): Likewise.
2476 (clobber_variable_part, delete_variable_part): Likewise.
2478 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2480 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
2482 2011-03-28 Martin Jambor <mjambor@suse.cz>
2484 * tree-inline.c (expand_call_inline): Do not check that destination
2486 (optimize_inline_calls): Assert that destination node is analyzed.
2487 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
2488 not call tree_lowering_passes.
2489 * cgraph.h (cgraph_analyze_function): Declare.
2490 * cgraphunit.c (cgraph_analyze_function): Make public.
2492 2011-03-28 Joseph Myers <joseph@codesourcery.com>
2494 * config/sparc/sparc-opts.h: New.
2495 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
2496 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
2497 (sparc_option_override): Store processor_type enumeration rather
2498 than string in cpu_default. Remove name and enumeration from
2499 cpu_table. Directly default -mcpu then default -mtune from -mcpu
2500 without using sparc_select. Use target_flags_explicit instead of
2502 * config/sparc/sparc.h (enum processor_type): Move to
2504 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
2505 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
2506 HeaderInclude entry.
2507 (mcpu=, mtune=): Use Var and Enum.
2508 (sparc_processor_type): New Enum and EnumValue entries.
2510 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2511 Iain Sandoe <iains@gcc.gnu.org>
2514 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
2516 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2518 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
2519 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
2520 Insert new statements at it in lieu of STMT.
2521 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
2522 * tree-vect-stmts.c (vectorizable_store): Likewise.
2523 (vectorizable_load): Likewise.
2525 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
2527 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
2532 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2534 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
2535 unaligned 256bit load/store.
2536 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
2537 (*avx_movdqu<avxmodesuffix>): Likewise.
2539 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2542 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
2543 * config/pa/pa.md (iordi3): Use new predicate in expander.
2546 2011-03-27 Anatoly Sokolov <aesok@post.ru>
2548 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
2549 FUNCTION_VALUE_REGNO_P): Remove macros.
2550 * config/mips/mips-protos.h (mips_function_value): Remove.
2551 * config/mips/mips.c (mips_function_value): Rename to...
2552 (mips_function_value_1): ... this. Make static. Handle receiving
2553 the function type in 'fn_decl_or_type' argument.
2554 (mips_function_value, mips_libcall_value,
2555 mips_function_value_regno_p): New function.
2556 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2557 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2559 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2561 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
2562 and -mavx256-split-unaligned-store.
2563 (ix86_option_override_internal): Split 32-byte AVX unaligned
2564 load/store by default.
2565 (ix86_avx256_split_vector_move_misalign): New.
2566 (ix86_expand_vector_move_misalign): Use it.
2568 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
2569 -mavx256-split-unaligned-store.
2571 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
2572 256bit load/store. Generate unaligned store on misaligned memory
2574 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
2576 (*avx_movdqu<avxmodesuffix>): Likewise.
2578 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
2579 -mavx256-split-unaligned-store.
2581 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2584 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
2587 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2589 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
2590 opno arguments with an expand_operand. Use create_input_operand.
2591 (mips_prepare_builtin_target): Delete.
2592 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
2594 (mips_expand_builtin_direct): Use create_output_operand and
2595 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
2596 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
2597 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
2599 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
2601 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
2603 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2605 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2607 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
2608 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
2609 basic blocks and call commit_edge_insertions directly.
2610 (fixup_abnormal_edges): Move from here to...
2611 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
2612 on the edges and return whether some have actually been inserted.
2613 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
2616 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2618 PR rtl-optimization/48144
2619 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2620 (merge_expr_data): ... here.
2621 (av_set_intersect): Rename to av_set_code_motion_filter.
2622 Update all callers. Call merge_history_vect when an expression
2623 is found in both sets.
2624 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2626 2011-03-26 Alan Modra <amodra@gmail.com>
2628 * config/rs6000/predicates.md (word_offset_memref_op): Handle
2629 cmodel medium addresses.
2630 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2631 64-bit gpr loads and stores.
2632 (rs6000_secondary_reload_ppc64): New function.
2633 * config/rs6000/rs6000-protos.h: Declare it.
2634 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2636 2011-03-26 Alan Modra <amodra@gmail.com>
2639 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2640 GNU Go in traceback table.
2642 2011-03-25 Richard Henderson <rth@redhat.com>
2644 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2645 if there are exactly 6 operands.
2646 (set_storage_via_setmem): Similarly.
2648 2011-03-25 Kai Tietz <ktietz@redhat.com>
2650 * collect2.c (write_c_file_stat): Handle backslash
2651 as right-hand directory separator.
2652 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2653 checking just for slash.
2654 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2655 instead of checking for trailing slash.
2656 * gcc.c (record_temp_file): Use filename_cmp instead
2658 (do_spec_1): Likewise.
2659 (replace_outfile_spec_function): Likewise.
2660 (is_directory): Use filename_ncmp instead of strncmp.
2661 (print_multilib_info): Likewise.
2662 * gcov.c (find_source): Use filename_cmp instead
2664 (make_gcov_file_name): Fix order of slash/backslash
2666 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2667 (add_standard_paths): Likewise.
2668 * mips-tfile.c (saber_stop): Handle backslash.
2669 * prefix.c (update_path): Use filename_ncmp instead of
2671 * profile.c (output_location): Use filename_cmp instead
2673 * read-md.c (handle_toplevel_file): Handle backslash.
2674 * tlink.c (frob_extension): Likewise.
2675 * tree-cfg.c (same_line_p): Use filename_cmp instead of
2677 * tree-dump.c (dequeue_and_dump): Handle backslash.
2678 * tree.c (get_file_function_name): Likewise.
2679 * gengtype.c (read_input_list): Likewise.
2680 (get_file_realbasename): Likewise.
2681 (get_output_file_with_visibility): Use filename_cmp
2684 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
2686 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2689 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2691 * fold-const.c (expr_location_or): New function.
2692 (fold_truth_not_expr): Call it.
2694 2011-03-25 Jeff Law <law@redhat.com>
2696 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2698 * c-family/c-common.c (def_fn_type): Likewise.
2699 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2700 * emit-rtl.c (gen_rtvec): Likewise.
2701 * lto/lto-lang.c (def_fn_type): Likewise.
2703 2011-03-25 Richard Guenther <rguenther@suse.de>
2705 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2706 also generate copies.
2707 (fini_copy_prop): Handle constant values properly.
2709 2011-03-25 Jakub Jelinek <jakub@redhat.com>
2711 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2712 mode size instead of bitsize with DWARF2_ADDR_SIZE.
2713 (hash_loc_operands, compare_loc_operands): Handle
2714 DW_OP_GNU_entry_value.
2716 2011-03-25 Kai Tietz <ktietz@redhat.com>
2718 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2719 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2720 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2721 comment and use macro TARGET_64BIT_MS_ABI instead.
2722 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2723 and change default behavior for 32-bit MS_ABI.
2724 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2725 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2727 (ix86_cfun_abi): Likewise.
2728 (ix86_maybe_switch_abi): Adjust comment.
2729 (init_cumulative_args): Check for bit-ness in MS_ABI case.
2730 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2731 instead of checking for SYSV_ABI.
2732 (ix86_nsaved_sseregs): Likewise.
2733 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2735 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2736 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2737 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2738 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2739 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2741 2011-03-25 Richard Guenther <rguenther@suse.de>
2743 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2744 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2745 (verify_gimple): Remove.
2746 * tree-cfg.c (verify_gimple_call): Merge verification
2748 (verify_gimple_phi): Merge verification from verify_stmts.
2749 (verify_gimple_label): New function.
2750 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2751 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2752 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2753 (verify_stmts): Rename to verify_gimple_in_cfg.
2754 (verify_gimple_in_cfg): New function.
2755 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2756 * tree-ssa.c (verify_ssa): Likewise.
2757 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2759 2011-03-25 Richard Guenther <rguenther@suse.de>
2761 * passes.c (init_optimization_passes): Add FRE pass after
2764 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
2765 Andrew Stubbs <ams@codesourcery.com>
2767 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2769 (arm_movdi_vfp_cortexa8): New pattern.
2770 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2771 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2772 instructions when tuning for Cortex-A8. Set attribute "arch".
2773 * config/arm/arm.md: Move include arm-tune.md up a bit.
2774 (define_attr "arch"): Add "onlya8" and "nota8" values.
2775 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2777 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2781 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2783 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2784 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2785 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2786 * passes.c (init_optimization_passes): Move
2787 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2789 2011-03-25 Kai Tietz <ktietz@redhat.com>
2791 * c-typeck.c (comptypes_internal): Replace target
2792 hook call of comp_type_attributes by version in tree.c file.
2793 * gimple.c (gimple_types_compatible_p_1): Likewise.
2794 * tree-ssa.c (useless_type_conversion_p): Likewise.
2795 * tree.c (build_type_attribute_qual_variant): Likewise.
2796 (attribute_value_equal): New static helper function.
2797 (comp_type_attributes): New function.
2798 (merge_attributes): Use attribute_value_equal for comparison.
2799 (attribute_list_contained): Likewise.
2800 * tree.h (comp_type_attributes): New prototype.
2802 2011-03-25 Richard Guenther <rguenther@suse.de>
2804 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2805 of complex types at -O0.
2806 (verify_gimple_assign_binary): Likewise.
2807 (verify_gimple_assign_ternary): Likewise.
2809 2011-03-24 Mark Wielaard <mjw@redhat.com>
2811 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2812 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2814 2011-03-24 Mark Wielaard <mjw@redhat.com>
2817 * dwarf2out.c (output_abbrev_section): Only write table when
2818 abbrev_die_table_in_use > 1.
2820 2011-02-24 Richard Henderson <rth@redhat.com>
2822 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2823 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2824 (alpha_expand_unaligned_load_words): Use extql.
2825 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2826 (emit_insxl): Handle all modes for consistency.
2828 2011-02-24 Richard Henderson <rth@redhat.com>
2830 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2831 (alpha_expand_unaligned_load): Likewise.
2832 (alpha_expand_unaligned_store): Likewise.
2833 (alpha_expand_unaligned_load_words): Likewise.
2834 (alpha_expand_unaligned_store_words): Likewise.
2835 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2836 (alpha_split_lock_test_and_set_12): Likewise.
2837 (print_operand, alpha_fold_builtin_extxx): Likewise.
2838 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2839 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2840 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2841 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2842 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2843 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2844 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2845 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2846 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2847 (extwl, extll, extql): Similarly.
2848 (inswh, inslh, insqh): Similarly.
2849 (mskbl, mskwl, mskll, mskql): Similarly.
2850 (mskwh, msklh, mskqh): Similarly.
2852 2011-02-24 Richard Henderson <rth@redhat.com>
2854 * config/alpha/alpha.md (attribute isa): Add er, ner.
2855 (attribute enabled): Handle them.
2856 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2858 2011-02-24 Richard Henderson <rth@redhat.com>
2860 * config/alpha/alpha.md (attribute isa): Add vms.
2861 (attribute enabled): Handle it.
2862 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2863 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2864 (*movtf): Rename from *movtf_internal for consistency.
2865 (*movsi): Merge with *movsi_nt_vms.
2866 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2867 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2868 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2869 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2871 2011-02-24 Richard Henderson <rth@redhat.com>
2873 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2874 (extendqisi2, extendhisi2): Likewise.
2875 (extendqidi2): Simplify BWX/non-BWX expansions.
2876 (extendhidi2): Similarly.
2878 2011-02-24 Richard Henderson <rth@redhat.com>
2880 * config/alpha/alpha.md (attribute isa): New.
2881 (attribute enabled): New.
2882 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2883 (zero_extendqisi2, zero_extendqidi2): Similarly.
2884 (zero_extendhisi2, zero_extendhidi2): Similarly.
2885 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2887 2011-02-24 Richard Henderson <rth@redhat.com>
2889 * config/alpha/predicates.md (input_operand): Revert last change;
2890 update comment to mention 32-bit VMS rather than Windows.
2892 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2894 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2895 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2896 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2897 * passes.c (init_optimization_passes): Move
2898 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2900 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2902 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2904 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2906 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2909 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2912 * simplify-rtx.c (simplify_const_unary_operation): Call
2913 real_convert when changing mode class with FLOAT_EXTEND.
2915 2011-03-24 Nick Clifton <nickc@redhat.com>
2917 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2918 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2919 * config/rx/rx.c (rx_option_override): Set align_jumps,
2920 align_loops and align_labels if not set by the user.
2921 (rx_align_for_label): New function.
2922 (rx_max_skip_for_label): New function.
2923 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2924 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2925 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2926 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2927 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2929 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2931 PR rtl-optimization/48263
2932 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2933 and original commutative_p handling. Use maybe_gen_insn.
2935 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2937 * reload.c (find_reloads_subreg_address): Add address_reloaded
2938 parameter and return true there if the full address has been
2940 (find_reloads_toplev): Pass address_reloaded flag.
2941 (find_reloads_address_1): Don't use address_reloaded parameter.
2943 2011-03-24 Jeff Law <law@redhat.com>
2945 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2946 unused variable "ann".
2947 (remove_unused_locals): Likewise.
2949 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2952 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2955 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2957 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2958 for invalid symbolic addresses.
2959 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2962 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2964 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2965 the argument in calls to fold_truth_not_expr.
2967 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2969 * tree.c (record_node_allocation_statistics): New function.
2970 (make_node_stat, copy_node_stat, build_string): Call it.
2971 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2972 (build1_stat, build_omp_clause): Likewise.
2974 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2976 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2979 2011-03-24 Richard Guenther <rguenther@suse.de>
2981 PR tree-optimization/48271
2982 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2983 blocks that still exist.
2985 2011-03-24 Richard Guenther <rguenther@suse.de>
2987 PR tree-optimization/48270
2988 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2989 not free datarefs before ddrs.
2991 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2993 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2994 from the address built for a reference with variable offset.
2996 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2999 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3000 alternatives that can be handled with movq or movabsq insn.
3001 (*movdf_internal): Disable for !TARGET_64BIT.
3002 (*movdf_internal_nointeger): Ditto.
3003 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3005 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3007 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3008 (FUNCTION_ARG_ADVANCE): Likewise.
3009 * tm.texi.in: Change references to them to hook references.
3010 * tm.texi: Regenerate.
3011 * targhooks.c (default_function_arg): Eliminate check for target macro.
3012 (default_function_incoming_arg): Likewise.
3013 (default_function_arg_advance): Likewise.
3014 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3015 (function_arg_advance): Likewise.
3016 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3018 2011-03-24 Richard Guenther <rguenther@suse.de>
3021 * tree-object-size.c (addr_object_size): Do not double-account
3022 for MEM_REF offsets.
3024 2011-03-24 Diego Novillo <dnovillo@google.com>
3026 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3027 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3028 (lto_input_data_block): Move from lto-opts.c. Make extern.
3030 (lto_input_string): Rename from input_string. Make extern.
3032 * lto-streamer-out.c (lto_output_string_with_length): Rename from
3033 output_string_with_length.
3034 Output 0 to indicate a non-NULL string. Update all callers to
3036 (lto_output_string): Rename from output_string. Make extern.
3038 (lto_output_decl_state_streams): Make extern.
3039 (lto_output_decl_state_refs): Make extern.
3040 * lto-streamer.h (lto_input_string): Declare.
3041 (lto_input_data_block): Declare.
3042 (lto_output_string): Declare.
3043 (lto_output_string_with_length): Declare.
3044 (lto_output_decl_state_streams): Declare.
3045 (lto_output_decl_state_refs): Declare.
3047 2011-03-24 Richard Guenther <rguenther@suse.de>
3049 PR tree-optimization/46562
3050 * tree.c (build_invariant_address): New function.
3051 * tree.h (build_invariant_address): Declare.
3052 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3053 a renamed function moved ...
3054 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3055 Take valueization callback parameter.
3056 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3057 * gimple-fold.h: New file.
3058 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3059 (ccp_fold, fold_const_aggregate_ref,
3060 fold_ctor_reference, fold_nonarray_ctor_reference,
3061 fold_array_ctor_reference, fold_string_cst_ctor_reference,
3062 get_base_constructor): Move ...
3063 * gimple-fold.c: ... here.
3064 (gimple_fold_stmt_to_constant_1): New function
3065 split out from ccp_fold. Take a valueization callback parameter.
3066 Valueize all operands.
3067 (gimple_fold_stmt_to_constant): New wrapper function.
3068 (fold_const_aggregate_ref_1): New function split out from
3069 fold_const_aggregate_ref. Take a valueization callback parameter.
3070 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3071 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3072 invariant POINTER_PLUS_EXPRs to invariant form.
3073 (vn_valueize): New function.
3074 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3075 * tree-vrp.c (vrp_valueize): New function.
3076 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3077 to fold statements to constants.
3078 * tree-ssa-pre.c (eliminate): Properly guard propagation of
3079 function declarations.
3080 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3081 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3083 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3085 * config/h8300/predicates.md (jump_address_operand): Fix register
3088 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
3090 * doc/invoke.texi (max-stores-to-sink): Document.
3091 * params.h (MAX_STORES_TO_SINK): Define.
3092 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3093 if either vectorization or if-conversion is disabled.
3094 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3095 tree-vect-data-refs.c vect_equal_offsets.
3096 (dr_equal_offsets_p): New function.
3097 (find_data_references_in_bb): Remove static.
3098 * tree-data-ref.h (find_data_references_in_bb): Declare.
3099 (dr_equal_offsets_p): Likewise.
3100 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3101 (vect_drs_dependent_in_basic_block): Update calls to
3103 (vect_check_interleaving): Likewise.
3104 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3105 (cond_if_else_store_replacement): Rename to...
3106 (cond_if_else_store_replacement_1): ... this. Change arguments and
3108 (cond_if_else_store_replacement): New function.
3109 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3110 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3112 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
3115 * config/arm/arm.md (casesi): Use the gen_int_mode() function
3116 to subtract lower bound instead of GEN_INT().
3118 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
3123 * doc/extend.texi (Alignment): Move section to match order in TOC.
3124 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3125 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3127 2011-03-23 Jeff Law <law@redhat.com>
3129 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3130 before removing the edge.
3132 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3133 it may have been freed by redirect_branch_edge or
3134 redirect_edge_succ_nodup.
3136 2011-03-23 Richard Guenther <rguenther@suse.de>
3138 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
3139 (check_va_list_escapes): Likewise.
3140 (check_all_va_list_escapes): Likewise.
3142 2011-03-23 Richard Guenther <rguenther@suse.de>
3144 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
3145 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
3146 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
3147 (alias.o): Likewise.
3148 (ipa-type-escape.o): Remove.
3149 (ipa-struct-reorg.o): Likewise.
3150 (GTFILES): Remove ipa-struct-reorg.c.
3151 * alias.c: Do not include ipa-type-escape.h.
3152 * tree-ssa-alias.c: Likewise.
3153 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
3154 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3155 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3156 and ipa-type-escape passes.
3157 * tree-pass.h (pass_ipa_type_escape): Remove.
3158 (pass_ipa_struct_reorg): Likewise.
3159 * ipa-struct-reorg.h: Remove.
3160 * ipa-struct-reorg.c: Likewise.
3161 * ipa-type-escape.h: Likewise.
3162 * ipa-type-escape.c: Likewise.
3163 * doc/invoke.texi (-fipa-struct-reorg): Remove.
3164 (--param struct-reorg-cold-struct-ratio): Likewise.
3165 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3166 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3167 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3169 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3171 * config/s390/2084.md: Enable all insn reservations also for z9_ec
3172 cpu attribute value.
3173 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3174 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3175 * config/s390/s390.c (processor_flags_table): New constant array.
3176 (s390_handle_arch_option): Remove.
3177 (s390_handle_option): Remove s390_handle_arch_option invocations
3178 and OPT_mwarn_framesize_ handling.
3179 (s390_option_override): Remove s390_handle_arch_option invocation.
3180 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3182 * config/s390/s390.md (cpu attribute): Add z9_ec value.
3183 * config/s390/s390.opt (s390_tune, s390_arch)
3184 (march=): Replace s390_arch_option enum and values with
3185 processor_type. Set variable name to s390_arch. Set
3186 initialization value.
3187 (mtune=): Replace s390_arch_option with processor_type. Set
3188 variable name to s390_tune. Set initialization value.
3190 2011-03-23 Julian Brown <julian@codesourcery.com>
3192 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3193 accesses which are not naturally aligned.
3195 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3198 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3200 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3202 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3203 parameter from "int" to "enum insn_code".
3204 (expand_operand_type): New enum.
3205 (expand_operand): New structure.
3206 (create_expand_operand): New function.
3207 (create_fixed_operand, create_output_operand): Likewise
3208 (create_input_operand, create_convert_operand_to): Likewise.
3209 (create_convert_operand_from, create_address_operand): Likewise.
3210 (create_integer_operand): Likewise.
3211 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3212 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3213 (expand_insn, expand_jump_insn): Likewise.
3214 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3215 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3216 (expand_movstr, expand_builtin___clear_cache): Likewise.
3217 (expand_builtin_lock_release): Likewise.
3218 * explow.c (allocate_dynamic_stack_space): Likewise.
3219 (probe_stack_range): Likewise. Allow check_stack to FAIL,
3220 and use the default handling in that case.
3221 * expmed.c (check_predicate_volatile_ok): Delete.
3222 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3223 (emit_cstore): Likewise.
3224 * expr.c (emit_block_move_via_movmem): Likewise.
3225 (set_storage_via_setmem, expand_assignment): Likewise.
3226 (emit_storent_insn, try_casesi): Likewise.
3227 (emit_single_push_insn): Likewise. Allow the expansion to fail.
3228 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3229 (expand_vec_shift_expr, expand_binop_directly): Likewise.
3230 (expand_twoval_unop, expand_twoval_binop): Likewise.
3231 (expand_unop_direct, emit_indirect_jump): Likewise.
3232 (emit_conditional_move, vector_compare_rtx): Likewise.
3233 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3234 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3235 (expand_sync_lock_test_and_set): Likewise.
3236 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
3237 (emit_unop_insn): Likewise.
3238 (expand_copysign_absneg): Change icode to an insn_code.
3239 (create_convert_operand_from_type): New function.
3240 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3241 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3242 (expand_insn, expand_jump_insn): Likewise.
3243 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3244 than const_int_operand for operand 2.
3246 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3248 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3251 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3253 * emit-rtl.c (emit_pattern_before_noloc): New function.
3254 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
3255 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
3256 (emit_pattern_after_noloc): New function.
3257 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
3258 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
3260 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3262 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
3263 (__ffsDI2): Likewise.
3265 2011-03-22 Richard Henderson <rth@redhat.com>
3267 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
3268 of !TARGET_ABI_OPEN_VMS.
3269 (alpha_trampoline_init, alpha_start_function): Likewise.
3270 (alpha_expand_epilogue, alpha_file_start): Likewise.
3271 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
3272 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
3273 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
3274 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
3275 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
3277 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3279 * config/s390/s390-opts.h: New.
3280 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
3281 s390_arch_flags, s390_warn_framesize, s390_stack_size,
3282 s390_stack_guard): Remove.
3283 (s390_handle_arch_option): Return void. Take enum
3284 s390_arch_option value instead of string and searching array.
3285 (s390_handle_option): Don't assert that global structures are in
3286 use. Access variables via opts pointer. Use error_at. Don't use
3287 sscanf for -mstack-guard= or -mstack-size=. Update call to
3288 s390_handle_arch_option.
3289 (s390_option_override): Update call to s390_handle_arch_option.
3290 (s390_emit_prologue): Use %d format for s390_stack_size in
3291 diagnostic. Use %wd for HOST_WIDE_INT.
3292 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
3293 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
3294 * config/s390/s390.opt (config/s390/s390-opts.h): New
3295 HeaderInclude entry.
3296 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
3297 s390_arch_flags, s390_warn_framesize): New Variable entries.
3298 (s390_arch_option): New Enum and EnumValue entries.
3299 (march=): Use Enum instead of Var.
3300 (mstack-guard=, mstack-size=): Use UInteger and Var.
3303 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3305 * config/score/score.c (score_handle_option): Don't assert that
3306 global structures are in use. Access target_flags via opts
3307 pointer. Use value of -march= option to determine target_flags
3309 * config/score/score.opt (march=): Use Enum.
3310 (score_arch): New Enum and EnumValue entries.
3312 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3314 * config/mep/mep.c (option_mtiny_specified): Remove.
3315 (mep_option_override): Move register handling for -mivc2 from
3316 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
3317 instead of option_mtiny_specified.
3318 (mep_handle_option): Access target_flags via opts pointer. Don't
3319 assert that global structures are in use. Defer part of -mivc2
3320 handling and move it to mep_option_override.
3321 * config/mep/mep.opt (IVC2): New Mask entry.
3322 (mivc2): Use Var and Defer instead of Mask.
3324 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3326 * config/v850/v850-opts.h: New.
3327 * config/v850/v850.c (small_memory): Replace with
3328 small_memory_physical_max array. Make that array static const.
3329 (v850_handle_memory_option): Take integer value of argument. Take
3330 gcc_options pointer, option text and location. Return void.
3331 Update for changes to small memory structures.
3332 (v850_handle_option): Access target_flags via opts pointer. Don't
3333 assert that global structures are in use. Update calls to
3334 v850_handle_memory_option.
3335 (v850_encode_data_area): Update references to small memory settings.
3336 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
3337 (enum small_memory_type): Move to v850-opts.h.
3338 * config/v850/v850.opt (config/v850/v850-opts.h): New
3339 HeaderInclude entry.
3340 (small_memory_max): New Variable entry.
3341 (msda): Replace by pair of options msda= and msda-. Use UInteger.
3342 (mtda, mzda): Likewise.
3344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3346 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
3347 pointer. Don't assert that global structures are in use.
3349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3351 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
3352 via opts pointer. Don't assert that global structures are in use.
3354 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3356 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
3357 (munix=93): Use Var.
3358 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
3359 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
3360 * config/pa/pa-opts.h: New.
3361 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3362 (pa_handle_option): Don't assert that global structures are in
3363 use. Access target_flags via opts pointer. Don't handle
3364 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3366 (pa_option_override): Handle deferred OPT_mfixed_range_.
3368 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3370 * config/mn10300/mn10300-opts.h: New.
3371 * config/mn10300/mn10300.c (mn10300_processor,
3372 mn10300_tune_string): Remove.
3373 (mn10300_handle_option): Don't assert that global structures are
3374 in use. Access mn10300_processor via opts pointer. Don't handle
3376 * config/mn10300/mn10300.h (enum processor_type): Move to
3378 (mn10300_processor): Remove.
3379 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
3380 HeaderInclude entry.
3381 (mn10300_processor): New Variable entry.
3384 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3386 * config/microblaze/microblaze.c: Don't include opts.h.
3387 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
3388 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
3389 (mno-clearbss): Use Var and Warn.
3391 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3393 * config/m32r/m32r-opts.h: New.
3394 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
3395 (m32r_handle_option): Don't assert that global structures are in
3396 use. Access target_flags and m32r_cache_flush_func via opts
3397 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
3398 OPT_mno_flush_trap here.
3399 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
3400 include of m32r-opts.h.
3401 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
3402 HeaderInclude entry.
3403 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
3404 (mmodel=): Use Enum and Var.
3405 (m32r_model): New Enum and EnumValue entries.
3406 (mno-flush-trap): Use Var.
3407 (msdata=): Use Enum and Var.
3408 (m32r_sdata): New Enum and EnumValue entries.
3410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3412 * config/m32c/m32c.c: Don't include opts.h.
3413 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
3414 m32c_handle_option): Remove.
3415 (m32c_option_override): Check global_options_set.x_target_memregs
3416 instead of target_memregs_set.
3417 * config/m32c/m32c.h (target_memregs): Remove.
3418 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
3421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3423 * config/iq2000/iq2000-opts.h: New.
3424 * config/iq2000/iq2000.c: Don't include opts.h.
3425 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
3426 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
3427 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
3428 HeaderInclude entry.
3429 (iq2000_tune): New Variable entry.
3430 (march=): Add comment. Use Enum.
3431 (iq2000_arch): New Enum and EnumValue entries.
3432 (mcpu=): Use Enum and Var.
3433 (iq2000_tune): New Enum and EnumValue entries.
3435 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3437 * config/ia64/ia64-opts.h: New.
3438 * config/ia64/ia64.c (ia64_tune): Remove.
3439 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
3441 (ia64_option_override): Handle deferred OPT_mfixed_range_.
3442 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
3443 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
3444 HeaderInclude entry.
3445 (ia64_tune): New Variable entry.
3446 (mfixed-range=): Use Defer and Var.
3447 (mtune=): Use Enum and Var.
3448 (ia64_tune): New Enum and EnumValue entries.
3450 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3452 * config/frv/frv-opts.h: New.
3453 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
3455 (frv_cpu_type): Remove.
3456 * config/frv/frv.c: Don't include opts.h.
3457 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
3458 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
3459 (frv_cpu_type): New Variable entry.
3460 (frv_cpu): New Enum and EnumValue entries.
3462 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3464 * config/cris/cris.c (cris_handle_option): Access target_flags via
3465 opts pointer. Don't assert that global structures are in use.
3466 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
3467 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
3469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3471 * config/bfin/bfin-opts.h: New.
3472 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
3473 bfin_si_revision, bfin_workarounds): Remove.
3474 (bfin_cpus): Make static const.
3475 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
3476 not bfin_lib_id_given.
3477 (bfin_handle_option): Don't set bfin_lib_id_given. Access
3478 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
3479 pointer. Use error_at. Don't assert that global structures are in use.
3480 * config/bfin/bfin.h: Include bfin-opts.h.
3481 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
3482 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
3483 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
3484 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
3487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3489 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
3490 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
3491 or -msoft-float here.
3492 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
3493 -msoft-float and -mhard-float.
3494 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
3495 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3497 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
3499 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
3500 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
3502 (LIBGCC_SPEC): Don't handle -msoft-float.
3503 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
3505 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3507 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
3508 -mfloat-abi=*, not -msoft-float and -mhard-float.
3509 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
3511 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
3512 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
3513 mhard-float and msoft-float.
3514 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
3515 mfloat-abi=soft in comments, not mhard-float and msoft-float.
3516 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3517 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
3519 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
3520 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
3522 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
3524 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
3527 2011-03-22 Richard Henderson <rth@redhat.com>
3529 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
3530 TARGET_ABI_WINDOWS_NT.
3531 (alpha_output_function_end_prologue): Likewise.
3532 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
3533 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3534 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
3535 (trap, *movsi_nt_vms): Likewise.
3536 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
3537 (*tablejump_osf_nt_internal): Remove.
3538 * config/alpha/predicates.md (input_operand): Only test Pmode.
3540 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3542 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
3543 via opts pointer. Use error_at. Don't assert that global
3544 structures are in use.
3546 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3548 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
3549 (ix86_handle_option): Access ix86_isa_flags and
3550 ix86_isa_flags_explicit via opts pointer. Don't assert that
3551 global structures are in use.
3552 (ix86_function_specific_save, ix86_function_specific_restore):
3553 Update ix86_isa_flags_explicit field name.
3554 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
3555 (ix86_isa_flags_explicit): Rename TargetSave entry to
3556 x_ix86_isa_flags_explicit.
3558 2011-03-22 Richard Henderson <rth@redhat.com>
3560 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
3561 (alpha_option_override, direct_return): Likewise.
3562 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
3563 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
3564 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
3565 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3566 (alpha_expand_epilogue, alpha_end_function): Likewise.
3567 (alpha_init_libfuncs): Likewise.
3568 (struct machine_function): Remove unicosmk members.
3569 (print_operand) ['t']: Remove.
3570 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
3571 unicosmk_output_module_name, unicosmk_output_common,
3572 current_section_align, unicosmk_output_text_section_asm_op,
3573 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
3574 unicosmk_section_type_flags, unicosmk_unique_section,
3575 unicosmk_asm_named_section, unicosmk_insert_attributes,
3576 unicosmk_output_align, unicosmk_defer_case_vector,
3577 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
3578 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
3579 unicosmk_output_ssib, unicosmk_add_call_info_word,
3580 unicosmk_extern_head, unicosmk_output_default_externs,
3581 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
3582 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
3583 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
3584 * config/alpha/alpha-protos.h: Update.
3585 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
3586 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
3587 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
3588 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
3589 (*mulsi_se, mulvsi3): Likewise.
3590 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
3591 (*divmodsi_internal, call, call_value, realign): Likewise.
3592 (moddi3, umoddi3): Likewise; remove duplicate expander.
3593 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
3594 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
3595 (*movdi_nofix): Remove r/U alternative.
3596 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
3597 * config/alpha/constraints.md ("U"): Remove.
3598 * config/alpha/predicates.md (call_operand"): Don't test
3599 TARGET_ABI_UNICOSMK.
3601 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3603 * target.def (handle_option): Take gcc_options and
3604 cl_decoded_option pointers and location_t.
3605 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
3606 * doc/tm.texi: Regenerate.
3607 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
3608 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
3609 * lto-opts.c (lto_reissue_options): Generate option structure for
3610 targetm.handle_option call.
3611 * opts.c (target_handle_option): Update call to
3612 targetm.handle_option. Remove assertions about values now passed
3614 * targhooks.c (default_target_handle_option): New.
3615 * targhooks.h (default_target_handle_option): Declare.
3616 * config/alpha/alpha.c: Include opts.h.
3617 (alpha_handle_option): Update to new hook interface.
3618 * config/arm/arm.c: Include opts.h.
3619 (arm_handle_option): Update to new hook interface.
3620 * config/arm/t-arm (arm.o): Update dependencies.
3621 * config/bfin/bfin.c: Include opts.h.
3622 (bfin_handle_option): Update to new hook interface.
3623 * config/cris/cris.c: Include opts.h.
3624 (cris_handle_option): Update to new hook interface.
3625 * config/frv/frv.c: Include opts.h.
3626 (frv_handle_option): Update to new hook interface.
3627 * config/i386/i386.c: Include opts.h.
3628 (ix86_handle_option): Update to new hook interface.
3629 (ix86_valid_target_attribute_inner_p): Generate option structure
3630 for call to ix86_handle_option.
3631 * config/i386/t-i386 (i386.o): Update dependencies.
3632 * config/ia64/ia64.c: Include opts.h.
3633 (ia64_handle_option): Update to new hook interface.
3634 * config/ia64/t-ia64 (ia64.o): Update dependencies.
3635 * config/iq2000/iq2000.c: Include opts.h.
3636 (iq2000_handle_option): Update to new hook interface.
3637 * config/m32c/m32c.c: Include opts.h.
3638 (m32c_handle_option): Update to new hook interface.
3639 * config/m32r/m32r.c: Include opts.h.
3640 (m32r_handle_option): Update to new hook interface.
3641 * config/m68k/m68k.c: Include opts.h.
3642 (m68k_handle_option): Update to new hook interface.
3643 * config/mep/mep.c: Include opts.h.
3644 (mep_handle_option): Update to new hook interface.
3645 * config/microblaze/microblaze.c: Include opts.h.
3646 (microblaze_handle_option): Update to new hook interface.
3647 * config/mips/mips.c: Include opts.h.
3648 (mips_handle_option): Update to new hook interface.
3649 * config/mn10300/mn10300.c: Include opts.h.
3650 (mn10300_handle_option): Update to new hook interface.
3651 * config/pa/pa.c: Include opts.h.
3652 (pa_handle_option): Update to new hook interface.
3653 * config/pdp11/pdp11.c: Include opts.h.
3654 (pdp11_handle_option): Update to new hook interface.
3655 * config/rs6000/rs6000.c: Include opts.h.
3656 (rs6000_handle_option): Update to new hook interface.
3657 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3658 * config/rx/rx.c: Include opts.h.
3659 (rx_handle_option): Update to new hook interface.
3660 * config/s390/s390.c: Include opts.h.
3661 (s390_handle_option): Update to new hook interface.
3662 * config/score/score.c: Include opts.h.
3663 (score_handle_option): Update to new hook interface.
3664 * config/sh/sh.c: Include opts.h.
3665 (sh_handle_option): Update to new hook interface.
3666 * config/sparc/sparc.c: Include opts.h.
3667 (sparc_handle_option): Update to new hook interface.
3668 * config/v850/v850.c: Include opts.h.
3669 (v850_handle_option): Update to new hook interface.
3671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3673 * gcc.c (driver_unknown_option_callback): Only permit and save
3674 unknown -Wno- options.
3675 (driver_wrong_lang_callback): Save options directly instead of via
3676 driver_unknown_option_callback.
3678 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3680 * combine.c (simplify_set): Try harder to find the best CC mode when
3681 simplifying a nested COMPARE on the RHS.
3683 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3685 * config/alpha/gnu.h: Remove.
3686 * config/arc: Remove directory.
3687 * config/arm/netbsd.h: Remove.
3688 * config/arm/t-pe: Remove.
3689 * config/crx: Remove directory.
3690 * config/i386/netbsd.h: Remove.
3691 * config/m68hc11: Remove directory.
3692 * config/m68k/uclinux-oldabi.h: Remove.
3693 * config/mcore/mcore-pe.h: Remove.
3694 * config/mcore/t-mcore-pe: Remove.
3695 * config/netbsd-aout.h: Remove.
3696 * config/rs6000/gnu.h: Remove.
3697 * config/sh/sh-symbian.h: Remove.
3698 * config/sh/symbian-base.c: Remove.
3699 * config/sh/symbian-c.c: Remove.
3700 * config/sh/symbian-cxx.c: Remove.
3701 * config/sh/symbian-post.h: Remove.
3702 * config/sh/symbian-pre.h: Remove.
3703 * config/sh/t-symbian: Remove.
3704 * config/svr3.h: Remove.
3705 * config/vax/netbsd.h: Remove.
3706 * config.build: Don't handle i[34567]86-*-pe.
3707 * config.gcc: Remove handling of deprecations for most deprecated
3709 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3710 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3711 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3712 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3713 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3714 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3716 * config.host: Don't handle i[34567]86-*-pe.
3717 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3718 (ASM_SPEC32): Don't handle -mcall-gnu.
3719 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3721 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3722 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3723 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3724 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3725 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3726 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3727 conditional on SYMBIAN.
3728 * configure.ac: Don't handle powerpc*-*-gnu*.
3729 * configure: Regenerate.
3730 * doc/extend.texi (interrupt attribute): Don't mention CRX.
3731 * doc/install-old.texi (m6811, m6812): Don't mention.
3732 * doc/install.texi (arc-*-elf*): Don't document multilib option.
3733 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3734 (m68k-uclinuxoldabi): Don't mention.
3735 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3737 (-mcall-gnu): Remove.
3738 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3739 families): Remove constraint documentation.
3741 2011-03-22 Marius Strobl <marius@FreeBSD.org>
3743 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3744 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3745 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3747 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
3749 * config/avr/avr-protos.h (expand_epilogue): Change prototype
3750 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3751 * config/avr/avr.c (init_cumulative_args)
3752 (avr_function_arg_advance): Use it.
3753 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3755 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3756 (avr_function_ok_for_sibcall): ...this new function.
3757 (avr_lookup_function_attribute1): New static Function.
3758 (avr_naked_function_p, interrupt_function_p)
3759 (signal_function_p, avr_OS_task_function_p)
3760 (avr_OS_main_function_p): Use it.
3761 * config/avr/avr.md ("sibcall", "sibcall_value")
3762 ("sibcall_epilogue"): New expander.
3763 ("*call_insn", "*call_value_insn"): New insn.
3764 ("call_insn", "call_value_insn"): Remove
3765 ("call", "call_value", "epilogue"): Change expander to handle
3768 2011-03-21 Nick Clifton <nickc@redhat.com>
3770 * doc/invoke.texi (Overall Options): Move closing brace to end of
3772 (Optimization Options): Add missing @gol.
3773 (Directory Options): Likewise.
3774 (i386 and x86-64 Options): Likewise.
3775 (RS6000 and PowerPC Options): Likewise.
3776 (i386 and x86-64 Windows Options): Likewise.
3777 (V850 Options): Add text missing from descriptions.
3779 2011-03-22 Richard Henderson <rth@redhat.com>
3781 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3782 (avr_incoming_return_addr_rtx): New.
3783 (emit_push_byte): New.
3784 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3785 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3786 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3787 (emit_pop_byte): New.
3788 (expand_epilogue): Use it. Pop frame pointer by bytes.
3789 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3790 (INCOMING_RETURN_ADDR_RTX): New.
3791 (INCOMING_FRAME_SP_OFFSET): New.
3792 (ARG_POINTER_CFA_OFFSET): New.
3793 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3794 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3797 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3799 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3801 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3802 (FUNCTION_ARG_ADVANCE): Likewise.
3803 * tm.texi.in: Change references to them to hook references.
3804 * tm.texi: Regenerate.
3805 * targhooks.c (default_function_arg): Eliminate check for target
3807 (default_function_incoming_arg): Likewise.
3808 (default_function_arg_advance): Likewise.
3809 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3810 (function_arg_advance): Likewise.
3811 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3813 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3815 * tree.c (build_call_1): New function.
3816 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3818 2011-03-22 Richard Guenther <rguenther@suse.de>
3820 PR tree-optimization/48228
3821 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3822 for single-arg PHIs.
3824 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
3826 PR rtl-optimization/48143
3827 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3828 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3829 sse2_cvtps2pd): Likewise.
3831 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3833 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3835 2011-03-22 Richard Guenther <rguenther@suse.de>
3837 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3838 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3839 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3840 and REALIGN_LOAD_EXPR.
3841 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3842 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3843 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3844 DOT_PROD_EXPR case ...
3845 (expand_expr_real_2): ... here.
3846 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3847 and REALIGN_LOAD_EXPR.
3848 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3849 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3850 (vect_create_epilog_for_reduction): Likewise.
3851 (vectorizable_reduction): Likewise.
3852 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3853 * tree-vect-stmts.c (vectorizable_load): Likewise.
3855 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3857 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3859 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3861 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3862 handling for PLTOFF/GOTOFF.
3864 2011-03-22 Nick Clifton <nickc@redhat.com>
3866 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3867 trailing backslash from the end of the macro definition.
3869 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3871 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3874 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3876 * expr.h (prepare_operand): Move to...
3877 * optabs.h (prepare_operand): ...here and change the insn code
3878 parameter from "int" to "enum insn_code".
3879 (insn_operand_matches): Declare.
3880 * expr.c (init_expr_target): Use insn_operand_matches.
3881 (compress_float_constant): Likewise.
3882 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3883 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3884 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3885 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3887 (gen_cond_trap): Likewise.
3888 (prepare_operand): Likewise. Change icode to an insn_code.
3889 (insn_operand_matches): New function.
3890 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3891 * reload1.c (gen_reload): Likewise.
3892 * targhooks.c (default_secondary_reload): Likewise.
3894 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3896 * config/alpha/alpha.md (unspec): New define_c_enum.
3899 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3902 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3903 between a call and its CALL_ARG_LOCATION note.
3905 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3907 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3909 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3913 * c-common.c (shorten_compare): If primopN is first sign-extended
3914 to opN and then zero-extended to result type, set primopN to opN.
3916 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3918 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3919 for barrier handlers.
3921 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3923 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3924 UNSPEC constants to be in the unspec enumeration, and redefine
3925 all UNSPECV constants to be in the unspecv enumeration, so that
3926 dumps print which unspec/unspec_volatile this is.
3927 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3928 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3929 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3930 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3931 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3933 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3934 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3935 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3936 * config/rs6000/sync.md (isync, lwsync): Ditto.
3938 2011-03-21 Richard Guenther <rguenther@suse.de>
3940 * params.def (lto-min-partition): Fix typo.
3942 2011-03-21 Richard Guenther <rguenther@suse.de>
3945 * c-decl.c (grokdeclarator): Drop to the main variant only
3946 for array types. Drop flag_gen_aux_info check.
3948 2011-03-21 Richard Guenther <rguenther@suse.de>
3950 PR translation/47911
3951 * params.def (lto-partitions): Fix typo.
3952 (lto-min-partition): Fix wording.
3954 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3956 * config/rs6000/t-freebsd: Remove duplication from file.
3958 2011-03-21 Richard Guenther <rguenther@suse.de>
3961 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3963 2011-03-21 Richard Guenther <rguenther@suse.de>
3966 * params.def (lto-partitions): Require at least 1 partition.
3968 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3970 * gthr-solaris.h: Remove.
3971 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3972 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3973 (LIB_SPEC): Likewise.
3974 * config/sol2.opt (threads): Remove.
3975 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3976 (sparc*-*-solaris2*): Likewise.
3977 * configure.ac (enable_threads): Enable solaris support.
3978 * configure: Regenerate.
3979 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3980 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3983 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3985 * config.gcc: Obsolete *-*-solaris2.8*.
3986 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3988 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3991 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3992 reference. Solaris 8 perl works.
3994 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3997 * doc/install.texi (Prerequisites): Move jar etc. up.
3998 Explain support library version requirements.
4000 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4003 * doc/install.texi (Prerequisites): Move Perl to build
4004 requirements. Always necessary on Solaris 2 with Sun ld.
4006 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4008 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4010 (Specific, i?86-*-solaris2.[89]): Likewise.
4011 (Specific, i?86-*-solaris2.10): Likewise.
4012 (Specific, mips-sgi-irix6): Likewise.
4013 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4014 Update for binutils 2.21.
4016 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4018 * configure.ac (gcc_cv_lto_plugin): Fix typo.
4019 Allow -fuse-linker-plugin for non-default plugin linker.
4020 * configure: Regenerate.
4022 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
4025 * gengtype.c (files_rules): Added rule for cp/parser.h.
4027 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4030 * config/s390/s390.c (s390_delegitimize_address): Don't call
4031 lowpart_subreg if orig_x has BLKmode.
4033 2011-03-21 Kai Tietz <ktietz@redhat.com>
4036 * doc/plugins.texi: Adjust documentation for plugin register_callback.
4037 * tree.h (attribute_spec): Add new member affects_type_identity.
4038 * attribs.c (empty_attribute_table): Adjust attribute_spec
4040 * config/alpha/alpha.c: Likewise.
4041 * config/arc/arc.c: Likewise.
4042 * config/arm/arm.c: Likewise.
4043 * config/avr/avr.c: Likewise.
4044 * config/bfin/bfin.c: Likewise.
4045 * config/crx/crx.c: Likewise.
4046 * config/darwin.h: Likewise.
4047 * config/h8300/h8300.c: Likewise.
4048 * config/i386/cygming.h: Likewise.
4049 * config/i386/i386.c: Likewise.
4050 * config/ia64/ia64.c: Likewise.
4051 * config/m32c/m32c.c: Likewise.
4052 * config/m32r/m32r.c: Likewise.
4053 * config/m68hc11/m68hc11.c: Likewise.
4054 * config/m68k/m68k.c: Likewise.
4055 * config/mcore/mcore.c: Likewise.
4056 * config/mep/mep.c: Likewise.
4057 * config/microblaze/microblaze.c: Likewise.
4058 * config/mips/mips.c: Likewise.
4059 * config/rs6000/rs6000.c: Likewise.
4060 * config/rx/rx.c: Likewise.
4061 * config/sh/sh.c: Likewise.
4062 * config/sol2.h: Likewise.
4063 * config/sparc/sparc.c: Likewise.
4064 * config/spu/spu.c: Likewise.
4065 * config/stormy16/stormy16.c: Likewise.
4066 * config/v850/v850.c: Likewise.
4068 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
4070 * simplify-rtx.c (simplify_binary_operation_1): Handle
4071 (xor (and A B) C) case when B and C are both constants.
4073 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
4075 * tree-dfa.c (add_referenced_var): Fix typo in comment.
4077 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
4080 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4082 2011-03-20 Jakub Jelinek <jakub@redhat.com>
4084 PR rtl-optimization/48156
4085 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4086 assume df and df_lr are not NULL.
4088 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4091 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4092 between a call and its CALL_ARG_LOCATION note.
4094 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
4097 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4098 between a call and its corresponding CALL_ARG_LOCATION note.
4100 2011-03-19 Anatoly Sokolov <aesok@post.ru>
4102 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4103 instead of loop. Use HARD_REGISTER_NUM_P predicate.
4104 * haifa-sched.c (setup_ref_regs): Ditto.
4105 * caller-save.c (add_used_regs_1): Ditto.
4106 * dse.c (look_for_hardregs): Ditto.
4107 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4108 * sched-rgn.c (check_live_1): Ditto.
4110 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4112 * c-decl.c (diagnose_mismatched_decls): Give an error for
4113 redefining a typedef with variably modified type.
4115 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4117 * c-decl.c (grokfield): Don't allow typedefs for structures or
4118 unions with no tag by default.
4119 * doc/extend.texi (Unnamed Fields): Update.
4121 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
4123 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4124 Rewrite using indirect functions.
4125 (lwp_slwpcb): Ditto.
4126 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4127 (avx_vinsertf128<mode>): Ditto.
4129 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4131 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4134 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4136 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
4137 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4139 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4141 PR rtl-optimization/48170
4142 * gcse.c (hoist_code): Remove bogus asserts.
4144 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
4146 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
4147 computation for prologue/epilogue.
4149 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4151 * Makefile.in (check-consistency): Remove.
4153 2011-03-18 Jakub Jelinek <jakub@redhat.com>
4156 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4157 arange_table_in_use is 0, but either text_section_used or
4158 cold_text_section_used is true. Don't call it if
4159 !info_section_emitted.
4161 2011-03-18 Anatoly Sokolov <aesok@post.ru>
4163 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4164 FUNCTION_VALUE_REGNO_P): Remove.
4165 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4167 * config/avr/avr.c (avr_ret_register): Make static inline.
4168 (avr_function_value_regno_p): New function.
4169 (avr_libcall_value): Make static. Add 'func' argument.
4170 (avr_function_value): Make static. Rename 'func' argument to
4171 'fn_decl_or_type', forward it to avr_libcall_value. Call
4172 avr_ret_register function instead of RET_REGISTER macro.
4173 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4175 2011-03-18 Jason Merrill <jason@redhat.com>
4178 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4180 2011-03-18 Richard Guenther <rguenther@suse.de>
4182 * doc/install.texi (--enable-gold): Remove.
4183 (--with-plugin-ld): Document.
4184 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4186 2011-03-18 Andrew Pinski <pinskia@gmail.com>
4189 * expr.c (optimize_bitfield_assignment_op): Revamp to work
4190 again after expansion changes.
4192 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
4194 * combine.c (try_combine): Do simplification only call of
4195 subst() on i2 even when i1 is present. Update comments.
4197 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
4199 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4200 and UNSPEC_PCREL_SYMOFF.
4202 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4204 * config/s390/s390.md: Use define_c_enum for the unspec constant
4207 2011-03-18 Richard Henderson <rth@redhat.com>
4208 Jakub Jelinek <jakub@redhat.com>
4211 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4212 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4214 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4217 * combine.c (cant_combine_insn_p): Don't check zero/sign
4218 extended hard registers.
4220 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4223 * combine.c (cant_combine_insn_p): Check zero/sign extended
4226 2011-03-17 Anatoly Sokolov <aesok@post.ru>
4228 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4229 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4230 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4231 Change return type to bool.
4232 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4234 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4237 * var-tracking.c (prepare_call_arguments): If CALL target
4238 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4239 pc instead of looking it up using cselib_lookup and use
4240 Pmode for it if x has VOIDmode.
4241 * dwarf2out.c (gen_subprogram_die): If also both first and
4242 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4245 * function.c (assign_parms): For data.passed_pointer parms
4246 use MEM of data.entry_parm instead of data.entry_parm itself
4247 as DECL_INCOMING_RTL.
4248 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4249 also when passed and declared mode is the same, DECL_RTL
4250 is a MEM with pseudo as address and DECL_INCOMING_RTL is
4253 2011-03-16 Jeff Law <law@redhat.com>
4255 PR rtl-optimization/37273
4256 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4257 handle them like argument loads from stack slots. Do not double
4258 count memory for memory constants and argument loads from stack slots.
4260 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4263 * var-tracking.c (prepare_call_arguments): Check SUBREG.
4265 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4268 * config/i386/i386.opt: Add Save to -mavx and -mfma.
4270 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4273 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
4275 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
4276 Clear call_arg_locations and call_arg_loc_last always.
4279 * var-tracking.c (prepare_call_arguments): If argument needs to be
4280 passed by reference, adjust argtype and mode.
4282 2011-03-17 Richard Guenther <rguenther@suse.de>
4285 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
4286 a value make sure to fold the statement.
4288 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
4291 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
4292 return condition with !cfun->calls_alloca.
4294 2011-03-17 Richard Guenther <rguenther@suse.de>
4297 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4298 origin for decls in other ltrans units.
4299 (input_varpool_node): Likewise.
4301 2011-03-17 Richard Guenther <rguenther@suse.de>
4304 * tree-object-size.c (compute_object_offset): Properly return
4305 the offset operand of MEM_REFs as sizetype.
4307 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4309 PR rtl-optimization/48141
4310 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
4311 * dse.c: Include params.h.
4312 (active_local_stores_len): New variable.
4313 (add_wild_read, dse_step1): Clear it when setting active_local_stores
4315 (record_store, check_mem_read_rtx): Decrease it when removing
4317 (scan_insn): Likewise. Increase it when adding to chain, if it
4318 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
4319 set active_local_stores to NULL before the addition.
4320 * Makefile.in (dse.o): Depend on $(PARAMS_H).
4322 PR rtl-optimization/48141
4323 * dse.c (record_store): If no positions are needed in an insn
4324 that cannot be deleted, at least unchain it from active_local_stores.
4326 2011-03-16 Dodji Seketeli <dodji@redhat.com>
4329 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
4330 (lookup_type_die_strip_naming_typedef): ... here.
4331 (get_context_die): Use it.
4332 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
4333 the anonymous struct named by the naming typedef.
4335 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
4338 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
4339 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4341 2011-03-16 Jeff Law <law@redhat.com>
4343 * tree-vrp.c (identify_jump_threads): Slightly simplify type
4344 check for operands of conditional. Allow type to be a pointer.
4346 2011-03-16 Richard Guenther <rguenther@suse.de>
4348 PR tree-optimization/48149
4349 * fold-const.c (fold_binary_loc): Fold
4350 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
4352 2011-03-16 Richard Guenther <rguenther@suse.de>
4354 PR tree-optimization/26134
4355 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
4356 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
4357 (non_rewritable_mem_ref_base): Handle complex type component
4358 accesses, constrain offsets for vector and complex extracts
4361 2011-03-16 Richard Guenther <rguenther@suse.de>
4363 PR tree-optimization/48146
4364 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4365 operands avoiding the need for renaming.
4367 2011-03-16 Richard Guenther <rguenther@suse.de>
4369 * gimple-fold.c (maybe_fold_reference): Open-code relevant
4370 constant folding. Move MEM_REF canonicalization first.
4371 Rely on fold_const_aggregate_ref for initializer folding.
4372 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
4374 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4377 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4378 arg0/arg1 or their arguments are always fold converted to matching
4381 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
4384 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4387 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
4388 Handle in-tree gold.
4389 (ld_vers): Extract binutils version for gold.
4390 (gcc_cv_ld_hidden): Handle gold here.
4391 (gcc_cv_lto_plugin): Determine level of linker plugin support.
4392 * configure: Regenerate.
4393 * config.in: Regenerate.
4394 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
4395 -fuse-linker-plugin otherwise.
4396 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
4397 (LINK_COMMAND_SPEC): Use it.
4398 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
4400 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4402 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
4403 * calls.c: Remove debug.h include.
4404 (emit_call_1): Don't call virtual_call_token debug hook.
4405 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
4406 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
4407 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
4408 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
4409 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
4410 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
4411 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
4412 dwarf2out_virtual_call): Remove.
4413 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
4414 copy_call_info and virtual_call hooks.
4415 (dwarf2out_init): Don't initialize vcall_insn_table,
4416 debug_dcall_section and debug_vcall_section.
4417 (prune_unused_types): Don't mark nodes from dcall_table.
4418 (dwarf2out_finish): Don't output dcall or vcall tables.
4419 * final.c (final_scan_insn): Don't call direct_call or
4420 virtual_call debug hooks.
4421 * debug.h (struct gcc_debug_hooks): Remove direct_call,
4422 virtual_call_token, copy_call_info and virtual_call hooks.
4423 (debug_nothing_uid): Remove prototype.
4424 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
4425 copy_call_info and virtual_call hooks.
4426 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4427 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4428 * debug.c (do_nothing_debug_hooks): Likewise.
4429 (debug_nothing_uid): Remove.
4430 * doc/invoke.texi (-fenable-icf-debug): Remove.
4431 * common.opt (-fenable-icf-debug): Likewise.
4433 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
4434 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
4435 call's MEM. Handle functions returning aggregate through a hidden
4436 first pointer. For virtual calls add clobbered pc to call arguments
4438 * dwarf2out.c (gen_subprogram_die): Emit
4439 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
4443 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
4444 * rtl.h (ENTRY_VALUE_EXP): Define.
4445 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
4446 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4447 * print-rtl.c (print_rtx): Likewise.
4448 * gengtype.c (adjust_field_rtx_def): Likewise.
4449 * var-tracking.c (vt_add_function_parameter): Adjust
4450 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
4451 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
4452 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
4453 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
4454 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
4456 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
4457 Call var_location debug hook even on CALL_INSNs.
4458 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
4459 * rtl.def (ENTRY_VALUE): New.
4460 * dwarf2out.c: Include cfglayout.h.
4461 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4462 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
4463 (struct call_arg_loc_node): New type.
4464 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
4465 tail_call_site_count): New variables.
4466 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
4467 DW_TAG_GNU_call_site_parameter.
4468 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
4469 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
4470 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
4471 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
4472 and DW_AT_GNU_all_source_call_sites.
4473 (mem_loc_descriptor): Handle ENTRY_VALUE.
4474 (add_src_coords_attributes): Don't add enything if
4475 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
4476 (dwarf2out_abstract_function): Save and clear call_arg_location,
4477 call_site_count and tail_call_site_count around dwarf2out_decl call.
4478 (gen_call_site_die): New function.
4479 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
4480 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
4481 (dwarf2out_function_decl): Clear call_arg_locations,
4482 call_arg_loc_last, set call_site_count and tail_call_site_count
4483 to -1 and free block_map.
4484 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
4485 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
4486 followed by any real instructions.
4487 (dwarf2out_begin_function): Set call_site_count and
4488 tail_call_site_count to 0.
4489 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
4490 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
4491 attempt to force a DIE for it and worst case remove the attribute.
4492 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
4493 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
4495 * var-tracking.c: Include tm_p.h.
4496 (vt_stack_adjustments): For calls call note_register_arguments.
4497 (argument_reg_set): New variable.
4498 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
4499 ensure the VALUE is resolved.
4500 (call_arguments): New variable.
4501 (prepare_call_arguments): New function.
4502 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
4503 (struct expand_loc_callback_data): Add ignore_cur_loc field.
4504 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
4505 always use the best expression.
4506 (vt_expand_loc): Add ignore_cur_loc argument.
4507 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
4508 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
4509 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
4511 (vt_add_function_parameter): Use cselib_lookup_from_insn.
4512 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
4513 argument. Don't call cselib_preserve_only_values and
4515 (note_register_arguments): New function.
4516 (vt_initialize): Compute argument_reg_set. Call
4517 vt_add_function_parameters before processing basic blocks instead of
4518 afterwards. For calls call prepare_call_arguments before calling
4519 cselib_process_insn.
4520 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
4521 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
4522 (var-tracking.o): Depend on $(TM_P_H).
4523 * cfglayout.h (insn_scope): New prototype.
4524 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
4525 * cfglayout.c (insn_scope): No longer static.
4526 * insn-notes.def (CALL_ARG_LOCATION): New.
4527 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
4528 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
4529 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
4530 nothing for DECL_EXTERNAL BLOCK_VARS.
4532 2011-03-16 Alan Modra <amodra@gmail.com>
4535 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4536 create invalid offset address for vsx splat insn.
4537 * config/rs6000/predicates.md (splat_input_operand): New.
4538 * config/rs6000/vsx.md (vsx_splat_*): Use it.
4540 2011-03-15 Xinliang David Li <davidxl@google.com>
4543 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
4544 (normalize_preds): New function.
4545 (is_use_properly_guarded): Normalize def predicates.
4547 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4550 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
4551 in the output template.
4553 2011-03-15 Richard Guenther <rguenther@suse.de>
4556 * tree-pretty-print.c (dump_function_declaration): Properly
4557 dump unprototyped and varargs function types.
4559 2011-03-15 Richard Guenther <rguenther@suse.de>
4561 PR tree-optimization/13954
4562 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
4565 2011-03-15 Richard Guenther <rguenther@suse.de>
4567 PR tree-optimization/48037
4568 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
4569 selects into BIT_FIELD_REFs.
4570 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
4573 2011-03-15 Jakub Jelinek <jakub@redhat.com>
4575 PR tree-optimization/48129
4576 * builtins.c (fold_builtin_snprintf): Convert to type of
4577 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
4578 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
4580 2011-03-15 Richard Guenther <rguenther@suse.de>
4582 PR tree-optimization/41490
4583 * tree-ssa-dce.c (propagate_necessity): Handle returns without
4584 value but with VUSE.
4585 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
4587 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
4588 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
4589 * tree-tailcall.c (find_tail_calls): Ignore returns.
4591 2011-03-15 Richard Guenther <rguenther@suse.de>
4594 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
4595 or variable-indexed array accesses when in gimple form.
4597 2011-03-15 Richard Guenther <rguenther@suse.de>
4599 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
4601 2011-03-15 Alan Modra <amodra@gmail.com>
4604 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
4605 presume symbol_refs without a symbol_ref_decl are suitably
4606 aligned, nor other trees we may see here. Handle anchor symbols.
4607 (legitimate_constant_pool_address_p): Comment. Add mode param.
4608 Check cmodel=medium addresses. Adjust all calls.
4609 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
4610 creating cmodel=medium optimized access to locals.
4611 * config/rs6000/constraints.md (R): Pass QImode to
4612 legitimate_constant_pool_address_p.
4613 * config/rs6000/predicates.md (input_operand): Pass mode to
4614 legitimate_constant_pool_address_p.
4615 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4618 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4621 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4622 64-bit constants being loaded into registers other than GPRs such
4623 as loading 0 into a VSX register.
4625 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4627 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
4629 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4632 * builtins.c (fold_builtin_snprintf): New function.
4633 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4634 (fold_builtin_4): Likewise.
4637 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4638 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
4639 and C - X == X also strip nops from +/-/p+ operand.
4640 When optimizing -X == C, fold C to arg0's type.
4643 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4644 emit it as add_AT_int instead of add_AT_unsigned.
4646 2011-03-14 Tom Tromey <tromey@redhat.com>
4648 * unwind-dw2.c: Include sys/sdt.h if it exists.
4649 (_Unwind_DebugHook): Use STAP_PROBE2.
4650 * config.in, configure: Rebuild.
4651 * configure.ac: Check for sys/sdt.h.
4653 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
4655 * config/i386/i386.md (ROUND_FLOOR): New constant.
4656 (ROUND_CEIL): Ditto.
4657 (ROUND_TRUNC): Ditto.
4658 (ROUND_MXCSR): Ditto.
4659 (ROUND_NO_EXC): Ditto.
4660 (rint<mode>2): Use new defines instead of numerical constants.
4661 (floor<mode>2): Ditto.
4662 (ceil<mode>2): Ditto.
4663 (btrunc<mode>2): Ditto.
4664 * config/i386/i386-builtin-types.def: Define ROUND function type
4666 * config/i386/i386.c (enum ix86_builtins): Add
4667 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4668 (struct builtin_description): Add
4669 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4670 (ix86_expand_sse_round): New static function.
4671 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4673 (ix86_builtin_vectorized_function): Handle
4674 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4676 2011-03-14 Tom Tromey <tromey@redhat.com>
4678 * c-parser.c (c_parser_asm_string_literal): Clear
4679 warn_overlength_strings.
4681 2011-03-14 Tom Tromey <tromey@redhat.com>
4683 * c-parser.c (disable_extension_diagnostics): Save
4684 warn_overlength_strings.
4685 (restore_extension_diagnostics): Restore warn_overlength_strings.
4687 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4689 * BASE-VER: Change to 4.7.0.
4691 2011-03-14 Richard Guenther <rguenther@suse.de>
4694 * tree.c (build_vector_from_val): Adjust assert to requirements
4697 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4700 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
4702 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
4704 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4705 terms of target_flags_explicit. Adjust copyright year.
4707 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4708 * config/rs6000/t-freebsd: New file. Add override for
4711 2011-03-13 Chris Demetriou <cgd@google.com>
4713 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4714 (-fno-diagnostics-show-option): this, to reflect current default.
4715 (-Werror=): Update text about -fno-diagnostics-show-option.
4717 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
4720 * config/rs6000/predicates.md (easy_vector_constant_add_self,
4721 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4722 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4723 mode is not V2DImode or V2DFmode.
4724 (vspltis_constant): Do not handle V2DImode and V2DFmode.
4725 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4726 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4728 (movdi_internal64): Likewise.
4730 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
4732 PR tree-optimization/47127
4733 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4735 (set_cloog_options): Same.
4736 (scop_to_clast): Same.
4737 (print_clast_stmt): Do not call cloog_state_malloc and
4739 (print_generated_program): Same.
4741 * graphite-clast-to-gimple.h (cloog_state): Declared.
4742 (scop_to_clast): Adjust declaration.
4743 * graphite.c (cloog_state): Defined here.
4744 (graphite_initialize): Call cloog_state_malloc.
4745 (graphite_finalize): Call cloog_state_free.
4747 2011-03-11 Jason Merrill <jason@redhat.com>
4749 * attribs.c (lookup_attribute_spec): Take const_tree.
4752 2011-03-11 Joseph Myers <joseph@codesourcery.com>
4754 * config/sparc/sparc.c (sparc_option_override): Use
4755 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4757 2011-03-11 Richard Guenther <rguenther@suse.de>
4759 PR tree-optimization/48067
4760 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4761 multiplication result will be only used once on the target
4764 2011-03-11 Richard Guenther <rguenther@suse.de>
4766 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4768 2011-03-11 Richard Guenther <rguenther@suse.de>
4771 * tree.c (find_decls_types_r): Do not walk types only reachable
4772 from IDENTIFIER_NODEs.
4774 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4777 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4778 all vnode->force_output nodes as needed.
4780 2011-03-11 Jason Merrill <jason@redhat.com>
4783 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4784 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4786 2011-03-11 Martin Jambor <mjambor@suse.cz>
4788 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4791 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4793 PR tree-optimization/48063
4794 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4795 inline functions called once if !tree_can_inline_p (node->callers).
4797 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
4799 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4801 * config/score/score3.c: Delete.
4802 * config/score/score3.h: Delete.
4803 * config/score/mul-div.S: Delete.
4804 * config/score/sfp-machine.h: Add new file.
4805 * config/score/constraints.md: Add new file.
4806 * config/score/t-score-softfp: Add new file.
4807 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4808 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4809 (score7_extra_constraint): Delete.
4810 (score7_option_override): Remove unused code.
4811 * config/score/score.c: Remove score3 and score5 define and code.
4812 * config/score/score.h: Remove score3 and score5 define and code.
4813 * config/score/score.md: Remove score3 template and unusual insn.
4814 * config/score/score.opt: Remove score3 and score5 options.
4816 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4818 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4819 when _HPUX_SOURCE is defined.
4820 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4822 2011-03-10 Jason Merrill <jason@redhat.com>
4825 * stor-layout.c (layout_type): Don't set structural equality
4826 on arrays of incomplete type.
4827 * tree.c (type_hash_eq): Handle comparing them properly.
4829 2011-03-10 Jakub Jelinek <jakub@redhat.com>
4832 * config/s390/s390.c (s390_delegitimize_address): Make sure the
4833 result mode matches original rtl mode.
4835 2011-03-10 Nick Clifton <nickc@redhat.com>
4837 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4838 (andsi3, andsi3_flags): Fix timings for three operand alternative.
4840 2011-03-09 Jakub Jelinek <jakub@redhat.com>
4842 PR rtl-optimization/47866
4843 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4844 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4845 if target wasn't scalar.
4846 * function.c (assign_stack_temp_for_type): Assert that neither
4847 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4848 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4850 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4852 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4854 * config/s390/s390-protos.h (s390_label_align): New prototype.
4855 * config/s390/s390.c (s390_label_align): New function.
4856 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4858 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4861 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4862 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4863 (output_vec_const_move): Ditto.
4865 2011-03-08 Anatoly Sokolov <aesok@post.ru>
4867 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4868 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4869 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4870 Change 'rclass' argument and result type to reg_class_t.
4871 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4873 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4875 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4876 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4877 (TARGET_MEMORY_MOVE_COST): Define.
4878 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4880 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4883 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4886 PR tree-optimization/48022
4887 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4890 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4893 * var-tracking.c (find_use_val): Return NULL for
4894 cui->sets && cui->store_p BLKmode MEMs.
4896 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4898 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4900 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4901 xstormy16_print_operand_address): Remove.
4902 * config/stormy16/stormy16.c (xstormy16_print_operand,
4903 xstormy16_print_operand_address): Make static.
4904 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4906 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4909 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4910 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4913 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4916 * cfgloopmanip.c (fix_bb_placements): Return immediately
4917 if FROM is BASE_LOOP's header.
4919 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4921 * gimplify.c (gimplify_function_tree): Fix building calls
4922 to __builtin_return_address.
4924 2011-03-07 Alan Modra <amodra@gmail.com>
4926 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4927 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4928 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4929 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4931 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4932 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4933 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4934 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4935 * config/rs6000/rs6000.c
4936 (rs6000_elf_end_indicate_exec_stack): Rename to..
4937 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4938 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4939 (rs6000_file_start): ..here.
4940 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4941 file scope variables.
4942 (call_ABI_of_interest): New function.
4943 (init_cumulative_args): Set above vars when function return value
4944 is a float, vector, or small struct.
4945 (rs6000_function_arg_advance_1): Likewise for function args.
4946 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4947 references float args.
4949 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4951 * doc/cfg.texi: Remove "See" before @ref.
4952 * doc/invoke.texi: Likewise.
4954 2011-03-05 Jason Merrill <jason@redhat.com>
4956 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4958 2011-03-05 Anthony Green <green@moxielogic.com>
4960 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4962 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4964 PR rtl-optimization/47899
4965 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4966 to flow_loop_nested_p when moving the loop upward.
4968 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4971 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4973 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4975 PR tree-optimization/47967
4976 * ipa-cp.c (build_const_val): Return NULL instead of creating
4977 VIEW_CONVERT_EXPR for mismatching sizes.
4978 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4979 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4980 give up on versioning.
4982 2011-03-05 Alan Modra <amodra@gmail.com>
4985 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4986 full cmodel medium/large lo_sum + high addresses.
4988 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4990 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4991 pool references in UNSPEC_LTREL_OFFSET.
4993 2011-03-04 Jan Hubicka <jh@suse.cz>
4996 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4997 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4998 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5000 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5001 cgraph_add_thunk): Add node pointers.
5002 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5003 associated to right node.
5004 (input_node): Update use of cgraph_same_body_alias
5005 and cgraph_add_thunk.
5007 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
5009 * config/i386/i386.opt (mprefer-avx128): New flag.
5010 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5011 modes when the flag -mprefer-avx128 is on.
5013 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
5015 * dwarf2out.c (compare_loc_operands): Fix address handling.
5017 2011-03-04 Alan Modra <amodra@gmail.com>
5019 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5021 2011-03-04 Richard Guenther <rguenther@suse.de>
5024 * expmed.c (extract_bit_field_1): Prefer vector modes that
5025 vec_extract patterns can handle.
5027 2011-03-04 Richard Guenther <rguenther@suse.de>
5030 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5032 2011-03-04 Richard Henderson <rth@redhat.com>
5034 * explow.c (emit_stack_save): Remove 'after' parameter.
5035 (emit_stack_restore): Likewise.
5036 * expr.h: Update to match.
5037 * builtins.c, calls.c, stmt.c: Likewise.
5038 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5039 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5040 * function.c (expand_function_end): Insert the emit_stack_save
5041 sequence before parm_birth_insn instead of after.
5043 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
5045 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5046 (ssse3_pmaddubsw128): Ditto.
5047 (ssse3_pmaddubsw): Ditto.
5049 2011-03-03 Steve Ellcey <sje@cup.hp.com>
5051 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5053 2011-03-03 Jakub Jelinek <jakub@redhat.com>
5056 * gimplify.c (omp_add_variable): Only call omp_notice_variable
5057 on TYPE_SIZE_UNIT if it is a DECL.
5060 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5061 first operand is not is_gimple_mem_ref_addr, try to fold it.
5062 If the operand still isn't is_gimple_mem_ref_addr, clear
5065 2011-03-03 Richard Guenther <rguenther@suse.de>
5068 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5070 (refs_may_alias_p_1): For release branches return true if
5071 we are confused by our input.
5073 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5075 * config/s390/s390.c (s390_function_value): Rename to ...
5076 (s390_function_and_libcall_value): ... this.
5077 (s390_function_value): New function.
5078 (s390_libcall_value): New function.
5079 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5080 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5081 target macro definitions.
5082 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5084 2011-03-02 Joseph Myers <joseph@codesourcery.com>
5086 * config/i386/freebsd64.h (CC1_SPEC): Define.
5087 * config/i386/linux64.h (CC1_SPEC): Define.
5088 * config/i386/x86-64.h (CC1_SPEC): Don't define.
5090 2011-03-02 Anatoly Sokolov <aesok@post.ru>
5092 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5094 * config/stormy16/stormy16.c: Include reload.h.
5095 (xstormy16_memory_move_cost): New function.
5096 (TARGET_MEMORY_MOVE_COST): Define.
5098 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
5100 PR rtl-optimization/47925
5101 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5102 with side effects. Remove the more-specific check for volatile asms.
5104 2011-03-02 Alan Modra <amodra@gmail.com>
5107 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5108 toc relative addresses for valid offsets.
5110 2011-03-01 Richard Guenther <rguenther@suse.de>
5112 PR tree-optimization/47890
5113 * tree-vect-loop.c (get_initial_def_for_induction): Set
5114 related stmt properly.
5116 2011-03-01 Richard Guenther <rguenther@suse.de>
5119 * lto-streamer.c (lto_record_common_node): Also register
5122 2011-03-01 Richard Guenther <rguenther@suse.de>
5125 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5126 Do not stream DECL_ABSTRACT_ORIGIN.
5127 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5128 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5129 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5130 Do not stream DECL_ABSTRACT_ORIGIN.
5131 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5132 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5134 2011-02-28 Anatoly Sokolov <aesok@post.ru>
5136 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5137 FUNCTION_VALUE_REGNO_P): Remove.
5138 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
5139 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5140 Add 'outgoing' argument.
5141 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5143 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5144 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5146 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
5149 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
5150 (lookup_filename): Likewise.
5151 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
5153 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
5154 Jakub Jelinek <jakub@redhat.com>
5157 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5158 (assign_stack_local_1): Change last argument type to int.
5159 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5160 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
5161 don't record padding space into frame_space_list nor use those areas.
5162 (assign_stack_local): Adjust caller.
5163 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5164 of assign_stack_local, pass 0 as last argument.
5165 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5168 2011-02-28 Jakub Jelinek <jakub@redhat.com>
5171 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5172 Use target address_mode and pointer_mode hooks instead of hardcoded
5173 Pmode and ptr_mode. Handle some simple cases of extending if
5174 POINTERS_EXTEND_UNSIGNED < 0.
5175 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5176 Call convert_debug_memory_address.
5177 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5178 convert_debug_memory_address.
5181 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5182 * configure: Regenerated.
5183 * config.in: Regenerated.
5184 * varasm.c (default_function_section): Return NULL
5185 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
5187 2011-02-28 Martin Jambor <mjambor@suse.cz>
5189 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5190 the description to match the printed values.
5192 2011-02-28 Richard Guenther <rguenther@suse.de>
5194 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5195 of the copied scope tree.
5197 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5199 * doc/extend.texi (Function Attributes): Avoid deeply (and
5200 wrongly) nested tables.
5202 2011-02-27 Jakub Jelinek <jakub@redhat.com>
5205 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5206 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5207 r isn't op0 nor op1.
5209 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5211 * config/avr/avr.md: Remove magic comment for emacs.
5213 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5216 * config/avr/avr.c (avr_option_override): Use error on bad options.
5217 (avr_help): New function.
5218 (TARGET_HELP): Define.
5220 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
5223 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5224 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5226 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
5228 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5229 (ARM Options): Ditto.
5230 (i386 and x86-64 Options): Ditto.
5231 (RX Options): Ditto.
5232 (SPARC Options): Ditto.
5234 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
5236 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5237 FreeBSD 6 and later. Generally use cpu generic.
5239 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
5241 * doc/cpp.texi: Update copyright years.
5243 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
5246 * config/lm32/lm32.md (ashrsi3): Added needed variable.
5248 2011-02-25 Jon Beniston <jon@beniston.com>
5251 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
5252 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5253 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
5254 (lm32_block_move_inline): Add type cast to remove warning.
5255 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
5256 (gen_int_relational): Move declarations to start of function.
5258 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
5260 PR tree-optimization/45470
5261 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5262 can throw internally only.
5263 * tree-vect-stmts.c (vectorizable_call): Likewise.
5265 2011-02-24 Anatoly Sokolov <aesok@post.ru>
5267 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
5268 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5269 * config/stormy16/stormy16-protos.h
5270 (xstormy16_preferred_reload_class): Remove.
5271 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
5272 static. Change 'rclass' argument and return type to reg_class_t.
5273 (TARGET_PREFERRED_RELOAD_CLASS,
5274 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5276 2011-02-24 Richard Guenther <rguenther@suse.de>
5278 * lto-streamer-in.c (input_bb): Do not find referenced vars
5279 in debug statements.
5281 2011-02-23 Jason Merrill <jason@redhat.com>
5283 * common.opt (fabi-version): Document v5 and v6.
5285 2011-02-23 Richard Guenther <rguenther@suse.de>
5287 PR tree-optimization/47849
5288 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
5290 2011-02-23 Jie Zhang <jie@codesourcery.com>
5292 * opts-common.c (decode_cmdline_option): Print empty string
5293 argument as "" in decoded->orig_option_with_args_text.
5294 * gcc.c (execute): Print empty string argument as ""
5295 in the verbose output.
5296 (do_spec_1): Keep empty string argument.
5298 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
5300 * config.gcc: Declare score-* and crx-* obsolete.
5302 2011-02-23 Jie Zhang <jie@codesourcery.com>
5304 PR rtl-optimization/47763
5305 * web.c (web_main): Ignore naked clobber when replacing register.
5307 2011-02-22 Anatoly Sokolov <aesok@post.ru>
5309 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5312 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
5315 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
5317 2011-02-22 Mike Stump <mikestump@comcast.net>
5319 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
5321 * configure: Regenerate.
5323 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
5325 PR rtl-optimization/46002
5326 * ira-color.c (update_copy_costs): Change class intersection
5327 test to reg_class_contents[] test of 'hard_regno'.
5329 2011-02-21 Joseph Myers <joseph@codesourcery.com>
5331 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
5333 * config/hpux11.opt (mt): Likewise.
5334 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
5335 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
5336 * config/vax/elf.opt (mno-asm-pic): Likewise.
5337 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
5339 2011-02-21 Mike Stump <mikestump@comcast.net>
5342 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
5343 tree so we can get save the type.
5344 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
5345 for CFString instead of trying to use past the end of the builtins.
5346 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
5347 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
5348 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
5349 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
5350 Rename to darwin_builtin_cfstring.
5351 (darwin_init_cfstring_builtins): Return the built type.
5353 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
5356 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
5357 (_mm256_insert_epi64): Use _mm_insert_epi64.
5359 2011-02-21 Anatoly Sokolov <aesok@post.ru>
5361 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5362 * config/stormy16/stormy16-protos.h
5363 (xstormy16_mode_dependent_address_p): Remove.
5364 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5365 Make static. Change return type to bool. Change argument type to
5366 const_rtx. Remove dead code.
5367 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5369 2011-02-21 Richard Guenther <rguenther@suse.de>
5372 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5373 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5374 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
5376 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5377 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5379 2011-02-20 Richard Guenther <rguenther@suse.de>
5382 * tree.c (free_lang_data_in_decl): Clean builtins from
5383 the TU decl BLOCK_VARS.
5385 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
5389 * haifa-sched.c (fix_tick_ready): Skip tick computation
5392 2011-02-19 Richard Guenther <rguenther@suse.de>
5395 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5396 Remove lazy BLOCK_VARS streaming.
5397 (lto_input_ts_block_tree_pointers): Likewise.
5398 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5400 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5402 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
5404 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5406 * config/i386/biarch32.h, config/i386/mach.h,
5407 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
5409 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5412 * config/i386/i386.md (peephole2 for shift and plus): Use
5413 operands[1] original mode in the first insn.
5415 2011-02-18 Mike Stump <mikestump@comcast.net>
5417 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
5419 2011-02-18 Jan Hubicka <jh@suse.cz>
5422 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
5423 to zero when the function is not inlinable at all.
5425 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5427 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
5428 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5429 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
5430 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
5431 * config/pa/t-pa64: Likewise.
5432 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5434 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5437 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
5439 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5442 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
5444 2011-02-18 Anatoly Sokolov <aesok@post.ru>
5446 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5447 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
5448 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
5449 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5450 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
5451 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
5452 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
5453 m32r_load_postinc_p, m32r_store_preinc_predec_p,
5454 m32r_legitimate_address_p): New functions.
5455 * config/m32r/constraints.md (constraint "S"): Don't use
5456 STORE_PREINC_PREDEC_P.
5457 (constraint "U"): Don't use LOAD_POSTINC_P.
5459 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
5461 PR rtl-optimization/46178
5462 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
5463 compute ira_hard_regno_cover_class[].
5465 2011-02-18 Richard Guenther <rguenther@suse.de>
5468 * lto-streamer.h (lto_global_var_decls): Declare.
5469 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
5470 statics for global var processing.
5472 2011-02-18 Richard Guenther <rguenther@suse.de>
5474 PR tree-optimization/47737
5475 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
5476 edge dominance check.
5478 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5481 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
5482 avoid invalid rtx sharing.
5484 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
5486 * doc/cpp.texi (Obsolete Features): Add background on the
5487 origin of assertions.
5489 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5491 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
5493 * config/darwin.c (output_objc_section_asm_op): Added support for
5495 (is_objc_metadata): New.
5496 (darwin_objc2_section): New.
5497 (darwin_objc1_section): New.
5498 (machopic_select_section): Added support for ABI v1 and v2.
5499 (darwin_emit_objc_zeroed): New.
5500 (darwin_output_aligned_bss): Detect objc metadata and treat it
5502 (darwin_asm_output_aligned_decl_common): Same.
5503 (darwin_asm_output_aligned_decl_local): Same.
5504 * config/darwin-sections.def: Updated for ABI v1 and v2.
5505 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
5506 compiling Objective-C code for the NeXT runtime, default to using
5507 ABI version 0 for 32-bit, and version 2 for 64-bit.
5509 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5511 * common.opt (optimize_fast): New Variable.
5512 * opts.c (default_options_optimization): Use opts->x_optimize_fast
5513 instead of local variable ofast.
5515 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
5517 * doc/invoke.texi (fobjc-abi-version): Documented.
5518 (fobjc-nilcheck): Documented.
5519 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
5522 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5525 * common.opt (export-dynamic): New Driver option.
5526 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
5528 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5530 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
5532 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
5533 Jan Hubicka <jh@suse.cz>
5537 * cfgexpand.c (account_used_vars_for_block): Remove.
5538 (estimated_stack_frame_size): Use referenced vars.
5539 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
5540 that were referenced in the original function. Test src_fn
5541 rather than cfun. Drop redundant get_var_ann.
5542 (setup_one_parameter): Drop redundant get_var_ann.
5543 (declare_return_variable): Likewise.
5544 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
5545 (copy_arguments_for_versioning): Drop redundant get_var_ann.
5546 * ipa-inline.c (compute_inline_parameters): Do not compute
5547 disregard_inline_limits here.
5548 (compute_inlinable_for_current, pass_inlinable): New.
5549 (pass_inline_parameters): Require PROP_referenced_vars.
5550 * cgraphunit.c (cgraph_process_new_functions): Don't run
5551 compute_inline_parameters explicitly unless function is in SSA form.
5552 (cgraph_analyze_function): Set .disregard_inline_limits.
5553 * tree-sra.c (convert_callers): Compute inliner parameters
5554 only for functions already in SSA form.
5556 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5558 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
5559 -mlittle-endian-data.
5561 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5563 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
5564 -mno-fpu, not -fpu and -no-fpu.
5565 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
5566 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
5568 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
5571 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
5572 input reload with PLUS RTX.
5574 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5576 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
5577 of InverseVar(MDMX).
5579 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5581 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
5584 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5586 * config/mn10300/mn10300.opt (mno-crt0): New.
5588 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5590 * config/m68k/uclinux.opt (static-libc): New Driver option.
5592 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5594 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
5596 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5598 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
5599 %{muser-extend-enabled}.
5601 2011-02-16 Richard Guenther <rguenther@suse.de>
5603 PR tree-optimization/47738
5604 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
5605 the TODO from tree_predictive_commoning.
5607 2011-02-15 Jeff Law <law@redhat.com>
5610 2011-01-25 Jeff Law <law@redhat.com>
5612 PR rtl-optimization/37273
5613 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5614 handle them like argument loads from stack slots. Do not double
5615 count memory for memory constants and argument loads from stack slots.
5617 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5620 * combine.c (cant_combine_insn_p): Revert the last change.
5622 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5625 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5626 mode for vector constants. Remove code that checks for TImode.
5628 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5632 * cgraph.h (compute_inline_parameters): Return void.
5633 * ipa-inline.c (compute_inline_parameters): Adjust.
5635 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5639 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5641 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5642 * ipa-inline.c (compute_inline_parameters): Adjust.
5644 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5648 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5649 Adjust all users. Pass FN to...
5650 * tree-flow-inline.h (first_referenced_var): ... this. Add
5652 * ipa-struct-reorg.c: Adjust.
5653 * tree-dfa.c: Adjust.
5654 * tree-into-ssa.c: Adjust.
5655 * tree-sra.c: Adjust.
5656 * tree-ssa-alias.c: Adjust.
5657 * tree-ssa-live.c: Adjust.
5658 * tree-ssa.c: Adjust.
5659 * tree-ssanames.c: Adjust.
5660 * tree-tailcall.c: Adjust.
5662 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5666 * tree-flow.h (referenced_var_lookup): Add fn parameter.
5668 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5669 * tree-flow-inline.h: Adjust.
5670 * gimple-pretty-print.c: Adjust.
5671 * tree-into-ssa.c: Adjust.
5672 * tree-ssa.c: Adjust.
5673 * cfgexpand.c: Adjust.
5675 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5677 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5678 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5679 (EXTRA_CONSTRAINT): Delete.
5680 * config/iq2000/constraints.md: New file.
5681 * config/iq2000/iq2000.md: Include it.
5682 (define_insn ""): Delete.
5683 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5684 unsupported constraint letters from patterns.
5685 (call_value, call_value_internal1): Likewise.
5686 (call_value_multiple_internal1): Likewise.
5688 2011-02-15 Nick Clifton <nickc@redhat.com>
5690 * config/mn10300/mn10300.c: Include tm-constrs.h.
5691 (struct liw_data): New data structure describing an LIW candidate
5693 (extract_bundle): Use struct liw_data. Allow small integer
5694 operands for some instructions.
5695 (check_liw_constraints): Use struct liw_data. Remove swapped
5696 parameter. Add comments describing the checks. Fix bug when
5697 assigning the source of liw1 to the source of liw2.
5698 (liw_candidate): Delete. Code moved into extract_bundle.
5699 (mn10300_bundle_liw): Use struct liw_data. Check constraints
5701 * config/mn10300/predicates.md (liw_operand): New predicate.
5702 Allows registers and small integer constants.
5703 * config/mn10300/constraints.md (O): New constraint. Accetps
5704 integers in the range -8 to +7 inclusive.
5705 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5706 for moving a small integer into a register. Give this alternative
5708 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5709 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5710 using the J,K,L and M constraints,
5711 (liw): Remove SI mode on second operands to allow for HI and QI
5713 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
5716 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5719 * combine.c (cant_combine_insn_p): Check zero/sign extended
5722 2011-02-15 Richard Guenther <rguenther@suse.de>
5724 PR tree-optimization/47743
5725 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5726 for a non-type-compatible VN lookup bail out.
5728 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5730 * config/fr30/constraints.md: New file.
5731 * config/fr30/fr30.md: Include it.
5732 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5733 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5734 (EXTRA_CONSTRAINT): Delete.
5736 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5738 * config/frv/constraints.md: New file.
5739 * config/frv/predicates.md: Include it.
5740 * config/frv/frv.c (reg_class_from_letter): Delete.
5741 (frv_option_override): Don't initialize it.
5742 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5743 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5744 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5745 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5746 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5747 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5748 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5749 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5750 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5751 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5752 (REG_CLASS_FROM_CONSTRAINT): Delete.
5754 2011-02-15 Jakub Jelinek <jakub@redhat.com>
5757 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5758 if frame size is 0 in a leaf function.
5760 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5763 * config/alpha/host-osf.c: New file.
5764 * config/alpha/x-osf: New file.
5765 * config.host (alpha*-dec-osf*): Use it.
5767 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5769 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5770 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5771 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5772 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5774 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5776 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5778 * config/stormy16/constraints.md: New file.
5779 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5780 Use satisfies_constraint_Q and satisfies_constraint_R.
5781 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5783 (xstormy16_legitiamte_address_p): Declare.
5784 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5785 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5786 (EXTRA_CONSTRAINT): Delete.
5787 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5789 (xstormy16_extra_constraint_p): Delete.
5791 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5793 PR tree-optimization/46494
5794 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5795 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5796 (pass_rtl_loop_done): Add TODO_verify_flow.
5797 * fwprop.c (pass_rtl_fwprop): Likewise.
5798 * modulo-sched.c (pass_sms): Likewise.
5799 * tree-ssa-dom.c (pass_dominator): Likewise.
5800 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5801 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5802 (pass_tree_loop_done): Likewise.
5803 * tree-ssa-pre.c (execute_pre): Likewise.
5804 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5805 * tree-ssa-sink.c (pass_sink_code): Likewise.
5806 * tree-vrp.c (pass_vrp): Likewise.
5808 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5810 * config/v850/constraints.md: New file.
5811 * config/v850/v850.md: Include it.
5812 * config/v850/predicates.md (reg_or_0_operand): Use
5813 satisfies_constraint_G.
5814 (special_symbolref_operand): Use satisfies_constraint_K.
5815 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5816 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5817 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5818 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5819 (EXTRA_CONSTRAINT): Delete.
5820 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5821 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5822 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5824 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5827 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5830 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5832 * config/mcore/constraints.md: New file.
5833 * config/mcore/mcore.md: Include it.
5834 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5835 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5836 (REG_CLASS_FROM_LETTER): Delete.
5837 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5838 insn_const_int_ok_for_constraint.
5839 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5840 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5841 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5842 (EXTRA_CONSTRAINT): Delete.
5844 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5847 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5848 (IS_SIGHANDLER): Define.
5849 (sparc64_is_sighandler): New function, split off from
5850 sparc64_fallback_frame_state.
5851 (sparc_is_sighandler): New function, split off from
5852 sparc_fallback_frame_state.
5853 (sparc64_fallback_frame_state): Merge with ...
5854 (sparc_fallback_frame_state): ... this into ...
5855 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5856 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5857 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5858 stack instead of hardcoded offsets.
5860 2011-02-14 Andriy Gapon <avg@freebsd.org>
5863 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5865 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5867 * configure: Regenerate.
5869 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5872 * gcc.c (asm_options): Correct spec matching --target-help.
5874 2011-02-12 Martin Jambor <mjambor@suse.cz>
5876 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5877 to gimple call error.
5879 2011-02-12 Mike Stump <mikestump@comcast.net>
5881 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5882 comments in backslash regions.
5884 2011-02-12 Mike Stump <mikestump@comcast.net>
5885 Jakub Jelinek <jakub@redhat.com>
5886 Iain Sandoe <iains@gcc.gnu.org>
5889 * dwarf2out.c (output_cfa_loc): When required, apply the
5890 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5891 (output_loc_sequence): Likewise.
5892 (output_loc_operands_raw): Likewise.
5893 (output_loc_sequence_raw): Likewise.
5894 (output_cfa_loc): Likewise.
5895 (output_loc_list): Suppress register number adjustment when
5896 calling output_loc_sequence()
5897 (output_die): Likewise.
5899 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5901 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5903 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5904 xtensa_memory_move_cost): New functions.
5905 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5907 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5910 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5911 in the current directory.
5912 * configure: Rebuilt.
5914 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5916 * config/darwin.c (darwin_override_options): Add a hunk missed
5917 from the commit of r168571. Trim comment line lengths and
5918 correct indents of the preceding block.
5920 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5922 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5925 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5927 * common.opt (nostartfiles): New Driver option.
5929 2011-02-11 Xinliang David Li <davidxl@google.com>
5931 PR tree-optimization/47707
5932 * tree-chrec.c (convert_affine_scev): Keep type precision.
5934 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5936 PR tree-optimization/47420
5937 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5939 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5941 PR rtl-optimization/47614
5942 * rtl.h (check_for_inc_dec): Declare.
5943 * dse.c (check_for_inc_dec): Externalize...
5944 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5945 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5947 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5950 * gcc.c (main): Do not compile inputs if there were errors in
5952 * opts-common.c (read_cmdline_option): Check for wrong language
5953 after other error checks.
5955 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5957 * cgraph.c: Fix comment typos.
5958 * cgraph.h: Likewise.
5959 * cgraphunit.c: Likewise.
5960 * ipa-cp.c: Likewise.
5961 * ipa-inline.c: Likewise.
5962 * ipa-prop.c: Likewise.
5963 * ipa-pure-const.c: Likewise.
5964 * ipa-ref.c: Likewise.
5965 * ipa-reference.c: Likewise.
5967 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5970 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5972 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5975 * doc/sourcebuild.texi (Require Support): Document
5976 dg-require-ascii-locale.
5978 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5980 * doc/lto.texi (Write summary): Fix missing parentheses.
5982 2011-02-10 DJ Delorie <dj@redhat.com>
5984 * config/m32c/m32c.c (m32c_option_override): Disable
5985 -fcombine-stack-adjustments until flag value tracking and compare
5986 optimization can be rewritten.
5988 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5990 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5992 (PROCESSOR_DEFAULT64): Likewise.
5994 2011-02-10 Richard Henderson <rth@redhat.com>
5996 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5997 change from 2011-02-03.
5998 * config/rx/rx.c (flags_from_code): Likewise.
5999 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6000 is valid, n/pz otherwise.
6001 (rx_select_cc_mode): Return CCmode if Y is not zero.
6003 2011-02-10 Richard Guenther <rguenther@suse.de>
6005 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6007 2011-02-10 Richard Guenther <rguenther@suse.de>
6009 PR tree-optimization/47677
6010 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6012 2011-02-10 Jakub Jelinek <jakub@redhat.com>
6015 * combine.c (make_compound_operation): Only change shifts into
6016 multiplication for SCALAR_INT_MODE_P.
6018 2011-02-10 Jie Zhang <jie@codesourcery.com>
6022 2011-02-05 Jie Zhang <jie@codesourcery.com>
6024 * web.c (entry_register): Don't clobber the number of the
6025 first uninitialized reference in used[].
6027 2011-02-09 Richard Guenther <rguenther@suse.de>
6029 PR tree-optimization/47664
6030 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6033 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
6037 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6039 (PROCESSOR_DEFAULT64): Same.
6040 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6042 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6044 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6046 2011-02-09 Martin Jambor <mjambor@suse.cz>
6049 * tree-sra.c (struct access): New flags grp_scalar_read and
6050 grp_scalar_write. Changed description of assignment read and write
6052 (dump_access): Dump new flags, reorder all of them.
6053 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6054 to detect multiple scalar reads.
6055 (analyze_access_subtree): Use the new scalar read write flags instead
6056 of the old flags. Adjusted comments.
6058 2011-02-08 DJ Delorie <dj@redhat.com>
6061 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6064 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6066 * config/m68k/uclinux.opt: New.
6067 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6069 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6071 * config/cris/elf.opt (sim): New Driver option.
6073 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6075 * config/xtensa/elf.opt: New.
6076 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6078 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6080 * config/vax/elf.opt: New.
6081 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6083 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6085 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6087 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6089 * config/gnu-user.opt: New.
6090 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6091 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6092 *-*-uclinux*): Use gnu-user.opt.
6094 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
6096 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6097 * config/i386/gnu.h (CPP_SPEC): Likewise.
6099 2011-02-08 Ian Lance Taylor <iant@google.com>
6101 * common.opt (fcx-limited-range): Add SetByCombined flag.
6102 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6103 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6104 (fassociative-math, freciprocal-math): Likewise.
6105 (funsafe-math-optimizations): Likewise.
6106 * opth-gen.awk: Handle SetByCombined.
6107 * optc-gen.awk: Likewise.
6108 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6109 (set_unsafe_math_optimizations_flags): Likewise.
6110 * doc/options.texi (Option properties): Document SetByCombined.
6112 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6114 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6115 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6116 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6117 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6118 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6120 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
6122 PR tree-optimization/46834
6123 PR tree-optimization/46994
6124 PR tree-optimization/46995
6125 * graphite-sese-to-poly.c (used_outside_reduction): New.
6126 (detect_commutative_reduction): Call used_outside_reduction.
6127 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6128 translate_scalar_reduction_to_array only when at least one
6129 loop-phi/close-phi tuple has been detected.
6131 2011-02-08 Richard Guenther <rguenther@suse.de>
6134 * tree-vect-generic.c (expand_vector_operations_1): Update
6136 (expand_vector_operations): ... not here. Cleanup EH info
6137 and the CFG if required.
6139 2011-02-08 Richard Guenther <rguenther@suse.de>
6141 PR tree-optimization/47641
6142 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6143 require type compatibility.
6145 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6147 * gimple-low.c (lower_function_body): Don't remove the location of
6148 the return statement here.
6149 (lower_gimple_return): Do it here instead but only if the return
6150 statement is actually used twice.
6152 2011-02-08 Richard Guenther <rguenther@suse.de>
6154 PR tree-optimization/47632
6155 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6156 unused up_to_stmt parameter, return whether cfg-cleanup is
6157 necessary, remove EH info properly.
6158 (forward_propagate_into_gimple_cond): Adjust caller.
6159 (forward_propagate_into_cond): Likewise.
6160 (forward_propagate_comparison): Likewise.
6161 (tree_ssa_forward_propagate_single_use_vars): Make
6162 forward_propagate_comparison case similar to the two others.
6164 2011-02-08 Nick Clifton <nickc@redhat.com>
6166 * config/mn10300/mn10300.opt (mliw): New command line option.
6167 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6168 (liw_bundling): New automaton.
6169 (liw): New attribute.
6170 (liw_op): New attribute.
6171 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6172 (movsi_internal): Add LIW attributes.
6176 (addsi3): Separate register and immediate alternatives.
6181 (lshrsi3): Likewise.
6182 (ashrsi3): Likewise.
6184 * config/mn10300/mn10300.c (liw_op_names): New
6185 (mn10300_print_operand): Handle 'W' operand descriptor.
6186 (extract_bundle): New function.
6187 (check_liw_constraints): New function.
6188 (liw_candidate): New function.
6189 (mn10300_bundle_liw): New function.
6190 (mn10300_reorg): New function.
6191 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6192 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6193 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6194 __LIW__ or __NO_LIW__.
6195 * doc/invoke.texi: Describe the -mliw command line option.
6197 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6199 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6200 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6201 pthread_mutex_unlock): Remove.
6202 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6203 * config/pa/t-pa64: Likewise.
6204 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6205 shared libc if not linking against libpthread.
6206 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6208 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
6211 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6212 on 10.6 and later to ensure that we always use the unwinder from
6213 the system. Only add -no_compact_unwind when tarteting darwin
6216 2011-02-07 Steve Ellcey <sje@cup.hp.com>
6219 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6220 (vec_interleave_lowv2sf): Ditto.
6221 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6222 (vec_extract_oddv2sf): Ditto.
6224 2011-02-07 Mike Stump <mikestump@comcast.net>
6227 Add __ieee_divdc3 entry point.
6228 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6230 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6231 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6232 * config/darwin.c (darwin_rename_builtins): Add.
6233 * config/darwin-protos.h (darwin_rename_builtins): Add.
6235 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6238 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6241 2011-02-07 Mike Stump <mikestump@comcast.net>
6243 * config/darwin.opt (mmacosx-version-min): Update default OS version.
6245 2011-02-07 Denis Chertykov <chertykov@gmail.com>
6248 * config/avr/libgcc.S (exit): Move .endfunc
6250 2011-02-07 Richard Guenther <rguenther@suse.de>
6252 PR tree-optimization/47615
6253 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
6254 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
6255 (run_scc_vn): Initialize it.
6256 (visit_reference_op_load): Use it.
6257 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
6259 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6261 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
6262 DImode trapping arithmetic libfuncs.
6264 2011-02-07 Richard Guenther <rguenther@suse.de>
6266 PR tree-optimization/47621
6267 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
6269 (execute_update_addresses_taken): ... here. Make it more
6270 conservative in what we accept.
6272 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6274 * config/sparc/freebsd.h (ASM_SPEC): Define.
6275 * config/sparc/vxworks.h (ASM_SPEC): Define.
6277 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6279 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6281 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
6283 * doc/invoke.texi: Remove reference to compiler internals from
6286 * reg-notes.def: Remove REG_VALUE_PROFILE.
6287 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
6289 2011-02-05 Jakub Jelinek <jakub@redhat.com>
6292 * varasm.c (default_section_type_flags): If decl is NULL,
6293 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
6295 2011-02-05 Jie Zhang <jie@codesourcery.com>
6298 * web.c (entry_register): Don't clobber the number of the
6299 first uninitialized reference in used[].
6301 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
6303 PR tree-optimization/46194
6304 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
6305 (build_classic_dist_vector_1): Do not represent classic distance
6306 vectors when the access functions are variating in different loops.
6308 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6310 * config/mips/iris6.opt: New.
6311 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
6313 2011-02-04 Richard Henderson <rth@redhat.com>
6314 Steve Ellcey <sje@cup.hp.com>
6317 * config/ia64/predicates.md (mux1_brcst_element): New.
6318 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
6319 * config/ia64/ia64.c (ia64_unpack_assemble): New.
6320 (ia64_unpack_sign): New.
6321 (ia64_expand_unpack): Rewrite using new routines.
6322 (ia64_expand_widen_sum): Ditto.
6323 (ia64_expand_dot_prod_v8qi): Ditto.
6324 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
6325 routines, add endian check.
6326 (pmpy2_even): Rename from pmpy2_r, add endian check.
6327 (pmpy2_odd): Rename from pmpy2_l, add endian check.
6328 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
6329 (vec_widen_smult_hi_v4hi): Ditto.
6330 (vec_widen_umult_lo_v4hi): Ditto.
6331 (vec_widen_umult_hi_v4hi): Ditto.
6332 (mulv2si3): Change endian checks.
6333 (sdot_prodv4hi): Rewrite with new calls.
6334 (udot_prodv4hi): New.
6335 (vec_pack_ssat_v4hi): Add endian check.
6336 (vec_pack_usat_v4hi): Ditto.
6337 (vec_pack_ssat_v2si): Ditto.
6338 (max1_even): Rename from max1_r, add endian check.
6339 (max1_odd): Rename from max1_l, add endian check.
6340 (*mux1_rev): Format change.
6342 (*mux1_shuf): Ditto.
6344 (*mux1_brcst_v8qi): Use new predicate.
6345 (vec_extract_evenv8qi): Remove endian check.
6346 (vec_extract_oddv8qi): Ditto.
6347 (vec_interleave_lowv4hi): Format change.
6348 (vec_interleave_highv4hi): Ditto.
6349 (mix2_even): Rename from mix2_r, add endian check.
6350 (mix2_odd): Rename from mux2_l, add endian check.
6351 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
6352 (vec_extract_evenodd_helper): Format change.
6353 (vec_extract_evenv4hi): Remove endian check.
6354 (vec_extract_oddv4hi): Remove endian check.
6355 (vec_interleave_lowv2si): Format change.
6356 (vec_interleave_highv2si): Format change.
6357 (vec_initv2si): Remove endian check.
6358 (vecinit_v2si): Add endian check.
6359 (reduc_splus_v2sf): Add endian check.
6360 (reduc_smax_v2sf): Ditto.
6361 (reduc_smin_v2sf): Ditto.
6362 (vec_initv2sf): Remove endian check.
6363 (fpack): Add endian check.
6364 (fswap): Add endian check.
6365 (vec_interleave_highv2sf): Add endian check.
6366 (vec_interleave_lowv2sf): Add endian check.
6367 (fmix_lr): Add endian check.
6368 (vec_setv2sf): Format change.
6369 (*vec_extractv2sf_0_be): Use shift to extract operand.
6370 (*vec_extractv2sf_1_be): New.
6371 (vec_pack_trunc_v4hi): Add endian check.
6372 (vec_pack_trunc_v2si): Format change.
6374 2011-02-04 Jakub Jelinek <jakub@redhat.com>
6377 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
6378 do bb, locus and block comparison and disallow loads if it is not set.
6379 (stmt_is_replaceable_p): New function.
6380 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
6382 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
6383 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
6385 * tree-flow.h (stmt_is_replaceable_p): New prototype.
6387 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6389 * config/rs6000/xilinx.opt: New.
6390 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
6392 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6394 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
6396 2011-02-03 Anatoly Sokolov <aesok@post.ru>
6398 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
6399 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6400 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
6401 secondary_reload_info, xtensa_secondary_reload): Remove.
6402 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
6403 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6404 (xtensa_preferred_reload_class): Make static. Change return and
6405 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
6406 Use CONST_DOUBLE_P predicate.
6407 (xtensa_preferred_output_reload_class): New function.
6408 (xtensa_secondary_reload): Make static.
6410 2011-02-03 Joseph Myers <joseph@codesourcery.com>
6412 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
6413 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
6414 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
6416 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6419 * output.h (SECTION_RELRO): Define.
6420 (SECTION_MACH_DEP): Adjust.
6421 (get_variable_section): New prototype.
6422 * varpool.c (varpool_finalize_named_section_flags): New function.
6423 (varpool_assemble_pending_decls): Call it.
6424 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
6425 * cgraphunit.c (cgraph_output_in_order): Call
6426 varpool_finalize_named_section_flags.
6427 * varasm.c (get_section): Allow section flags conflicts between
6428 relro and read-only sections if the section hasn't been declared yet.
6429 Set SECTION_OVERRIDE after diagnosing section type conflict.
6430 (get_variable_section): No longer static.
6431 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
6432 readonly sections that need relocations.
6433 (decl_readonly_section_1): New function.
6434 (decl_readonly_section): Use it.
6437 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
6438 Steve Ellcey <sje@cup.hp.com>
6441 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
6442 if section attribute used.
6444 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6446 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
6447 * config/darwin.c (SECTION_NO_ANCHOR): Define.
6448 (darwin_init_sections): Remove assertion.
6450 2011-02-03 Nick Clifton <nickc@redhat.com>
6452 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
6454 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6455 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
6456 instead of "n" and "pz".
6457 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
6460 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6463 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
6464 fma, expand FMA_EXPR as fma{,f,l} call.
6467 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
6468 copy them into a unsigned char variable and pass address of it to
6469 lto_output_data_stream.
6472 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
6473 around backend_init_target and lang_dependent_init_target calls.
6474 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
6475 (verify_cgraph_node): Don't call set_cfun here. Use
6476 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
6477 Set error_found for incorrectly represented calls to thunks.
6479 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6482 PR rtl-optimization/43494
6483 * rtl.h (for_each_inc_dec_fn): New type.
6484 (for_each_inc_dec): Declare.
6485 * rtlanal.c (struct for_each_inc_dec_ops): New type.
6486 (for_each_inc_dec_find_inc_dec): New fn.
6487 (for_each_inc_dec_find_mem): New fn.
6488 (for_each_inc_dec): New fn.
6489 * dse.c (struct insn_size): Remove.
6490 (replace_inc_dec, replace_inc_dec_mem): Remove.
6491 (emit_inc_dec_insn_before): New fn.
6492 (check_for_inc_dec): Use it, along with for_each_inc_dec.
6493 (canon_address): Pass mem modes to cselib_lookup.
6494 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
6495 (cselib_lookup_from_insn): Likewise.
6496 (cselib_subst_to_values): Likewise.
6497 * cselib.c (find_slot_memmode): New var.
6498 (cselib_find_slot): New fn. Use it instead of
6499 htab_find_slot_with_hash everywhere.
6500 (entry_and_rtx_equal_p): Use find_slot_memmode.
6501 (autoinc_split): New fn.
6502 (rtx_equal_for_cselib_p): Rename and implement in terms of...
6503 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
6504 Deal with autoinc. Special-case recursion into MEMs.
6505 (cselib_hash_rtx): Likewise.
6506 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
6507 address and MEM modes.
6508 (cselib_subst_to_values): Add memmode, pass it on.
6510 (cselib_lookup): Add memmode argument, pass it on.
6511 (cselib_lookup_from_insn): Add memmode.
6512 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
6513 (struct cselib_record_autoinc_data): New.
6514 (cselib_record_autoinc_cb): New fn.
6515 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
6516 mode to cselib_lookup. Reset autoinced REGs here instead of...
6517 (cselib_process_insn): ... here.
6518 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
6520 (add_uses): Likewise, also to cselib_subst_to_values.
6521 (add_stores): Likewise.
6522 * sched-deps.c (add_insn_mem_dependence): Pass mode to
6523 cselib_subst_to_values.
6524 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
6525 * gcse.c (do_local_cprop): Adjusted.
6526 * postreload.c (reload_cse_simplify_set): Adjusted.
6527 (reload_cse_simplify_operands): Adjusted.
6528 * sel-sched-dump (debug_mem_addr_value): Pass mode.
6530 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6532 PR tree-optimization/45122
6533 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
6534 unsafe assumptions when there's more than one loop exit.
6536 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6539 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
6540 Document using vector double with the load/store builtins, and
6541 that the load/store builtins always use Altivec instructions.
6543 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
6544 to use altivec memory instructions, even on VSX.
6545 (vector_altivec_store_<mode>): Ditto.
6547 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
6550 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6551 V2DF, V2DI support to load/store overloaded builtins.
6553 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
6554 altivec load/store builtins for V2DF/V2DI types.
6556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6557 set avoid indexed addresses on power6 if -maltivec.
6558 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
6559 vector_altivec_load/vector_altivec_store builtins.
6560 (altivec_expand_st_builtin): Ditto.
6561 (altivec_expand_builtin): Add VSX memory builtins.
6562 (rs6000_init_builtins): Add V2DI types to internal types.
6563 (altivec_init_builtins): Add support for V2DF/V2DI altivec
6564 load/store builtins.
6565 (rs6000_address_for_altivec): Insure memory address is appropriate
6568 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
6569 vec_vsx_ld and vec_vsx_st.
6570 (vsx_store_<mode>): Ditto.
6572 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
6573 variables to hold long long types for VSX vector memory builtins.
6574 (RS6000_BTI_unsigned_long_long): Ditto.
6575 (long_long_integer_type_internal_node): Ditti.
6576 (long_long_unsigned_type_internal_node): Ditti.
6578 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
6579 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
6580 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
6582 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
6584 (vec_vsx_st): Ditto.
6586 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6588 * config/pa/pa-hpux10.opt: New.
6589 * config/hpux11.opt (pthread): New Driver option.
6590 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
6591 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
6593 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6595 * config/ia64/vms.opt: New.
6596 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
6598 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6601 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
6602 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
6603 generator functions.
6604 (vsx_floatuns<VSi><mode>2): Ditto.
6605 (vsx_fix_trunc<mode><VSi>2): Ditto.
6606 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
6608 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6610 * config/i386/djgpp.opt (posix): New Driver option.
6612 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6614 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
6615 Move to the unsupported targets list.
6617 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
6619 PR rtl-optimization/47525
6620 * df-scan.c: Update copyright years.
6621 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6622 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6624 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6626 * config/i386/sysv4.h (TARGET_VERSION): Remove.
6627 (SUBTARGET_RETURN_IN_MEMORY): Remove.
6628 (ASM_OUTPUT_ASCII): Remove.
6629 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6631 2011-02-02 Jeff Law <law@redhat.com>
6634 * reload.c (find_reloads_address): Handle reg+d address where both
6635 components are invalid by reloading the entire address.
6637 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6638 Richard Guenther <rguenther@suse.de>
6640 PR tree-optimization/40979
6642 * passes.c (init_optimization_passes): After LIM call copy_prop
6643 and DCE to clean up.
6644 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6646 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6648 PR tree-optimization/47576
6649 PR tree-optimization/47555
6650 * doc/invoke.texi (scev-max-expr-complexity): Documented.
6651 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6652 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6653 * tree-scalar-evolution.c (follow_ssa_edge): Use
6654 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6656 2011-02-02 Richard Guenther <rguenther@suse.de>
6658 PR tree-optimization/47566
6659 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6661 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6665 * tree-inline.c (declare_return_variable): Remove unused caller
6670 * tree-flow-inline.h (clear_is_used, is_used_p): New.
6671 * cfgexpand.c (account_used_vars_for_block): Use them.
6672 * tree-nrv.c (tree_nrv): Likewise.
6673 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6674 (dump_scope_block): Likewise.
6675 (remove_unused_locals): Likewise.
6679 * tree-inline.c (declare_return_variable): Add result decl to
6680 local decls only once.
6681 * gimple-low.c (record_vars_into): Mark newly-created variables
6684 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6690 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6692 (no_real_insns_p, schedule_block, set_priorities): Drop special
6693 treatment of boundary debug insns.
6694 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6695 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6696 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6697 (BOUNDARY_DEBUG_INSN_P): Likewise.
6698 (SCHEDULE_DEBUG_INSN_P): Likewise.
6699 * sched-rgn.c (init_ready_list): Drop special treatment of
6700 boundary debug insns.
6701 * final.c (rest_of_clean_state): Clear notes' BB.
6703 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6705 * config/openbsd.opt (assert=): New Driver option.
6707 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6709 * config/i386/nto.opt: New.
6710 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6712 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6714 * config/i386/netware.opt: New.
6715 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6717 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6719 * config/interix.opt (posix): New Driver option.
6721 2011-02-01 DJ Delorie <dj@redhat.com>
6723 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6725 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6728 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
6730 PR tree-optimization/47561
6731 * toplev.c (process_options): Print the Graphite flags. Add
6732 flag_loop_flatten to the list of options requiring Graphite.
6734 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6736 * config/i386/cygming.opt (posix): New Driver option.
6738 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6740 * config/arm/vxworks.opt: New.
6741 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6743 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6745 * config/alpha/elf.opt: New.
6746 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6747 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6749 2011-02-01 Richard Guenther <rguenther@suse.de>
6751 PR tree-optimization/47559
6752 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6753 store-motion on references that can throw.
6755 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
6757 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6758 * tree-pass.h (TDF_CSELIB): New macro.
6759 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6760 cselib_lookup): Check for it rather than for TDF_DETAILS.
6762 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
6765 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6768 * opts.c (finish_options): Don't add x_aux_base_name if it is
6771 2011-02-01 Richard Guenther <rguenther@suse.de>
6773 PR tree-optimization/47555
6775 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6777 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6779 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6782 * config/lm32/t-lm32: Add multilib for all CPU options.
6784 2011-02-01 Richard Guenther <rguenther@suse.de>
6786 PR tree-optimization/47541
6787 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6788 sure to have a field at offset zero.
6790 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6792 * config/arc/arc.opt (EB, EL): New Driver options.
6794 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6796 * config/alpha/osf5.opt: New.
6797 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6799 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6801 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6803 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6805 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6807 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6808 is an alias of -floop-interchange and that it requires the
6809 Graphite infrastructure.
6810 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6811 flag_loop_interchange based on the value of flag_tree_loop_linear.
6813 2011-01-31 Jakub Jelinek <jakub@redhat.com>
6814 Richard Guenther <rguenther@suse.de>
6816 PR tree-optimization/47538
6817 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6818 type instead of r1type, except for comparisons. For right
6819 shifts and comparisons punt if there are mismatches in
6820 sizetype vs. non-sizetype types.
6822 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6824 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6827 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6829 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6831 * configure: Regenerate.
6833 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6835 * configure.ac (gcc_cv_ld_static_option): Define.
6836 (gcc_cv_ld_dynamic_option): Define.
6837 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6839 (HAVE_LD_STATIC_DYNAMIC): Update message.
6840 (LD_STATIC_OPTION): Define.
6841 (LD_DYNAMIC_OPTION): Define.
6842 * configure: Regenerate.
6843 * config.in: Regenerate.
6844 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6845 HAVE_LD_STATIC_DYNAMIC]: Use them.
6847 2011-01-31 Nick Clifton <nickc@redhat.com>
6849 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6850 registers inside interrupt handlers if the handler is not a leaf
6853 2011-01-31 Nick Clifton <nickc@redhat.com>
6855 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6856 reg_renumber returning an INVALID_REGNUM.
6858 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6861 * doc/install.texi: Document host options discarded when cross
6862 configuring target libraries.
6864 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6867 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6870 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6872 (no_real_insns_p, schedule_block, set_priorities): Drop special
6873 treatment of boundary debug insns.
6874 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6875 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6876 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6877 (BOUNDARY_DEBUG_INSN_P): Likewise.
6878 (SCHEDULE_DEBUG_INSN_P): Likewise.
6879 * sched-rgn.c (init_ready_list): Drop special treatment of
6880 boundary debug insns.
6881 * final.c (rest_of_clean-state): Clear notes' BB.
6883 2011-01-31 Alan Modra <amodra@gmail.com>
6885 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6886 toc relative expressions as we do in print_operand_address.
6888 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6890 * doc/extend.texi: Follow spelling conventions.
6891 * doc/invoke.texi: Fix a typo.
6893 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6895 * config/hpux11.opt: New.
6896 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6897 ia64*-*-hpux*): Use hpux11.opt.
6899 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6901 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6904 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6906 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6909 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6911 * doc/install.texi (Binaries): Remove outdated reference for
6912 Motorola 68HC11/68HC12 downloads.
6914 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6916 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6919 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6922 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6925 2011-01-28 Ahmad Sharif <asharif@google.com>
6927 * value-prof.c (check_counter): Corrected error message.
6929 2011-01-29 Jie Zhang <jie@codesourcery.com>
6931 * config/arm/arm.c (arm_legitimize_reload_address): New.
6932 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6933 arm_legitimize_reload_address.
6934 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6936 2011-01-28 Ian Lance Taylor <iant@google.com>
6938 * godump.c (go_define): Ignore macros whose definitions include
6939 two adjacent operands.
6941 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6944 * varasm.c (force_const_mem): Store copy of x in desc->constant
6945 instead of x itself.
6946 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6947 itself into REG_EQUAL note.
6949 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6951 * config/freebsd.opt (posix, rdynamic): New Driver options.
6953 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6955 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6957 * configure: Regenerate.
6959 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6961 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6962 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6964 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6966 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6967 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6968 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6969 (s390_preferred_reload_class): Make static. Change return and
6970 'rclass' argument type to reg_class_t.
6972 2011-01-27 Jan Hubicka <jh@suse.cz>
6975 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6976 (process_function_and_variable_attributes): Check defined weakrefs.
6978 2011-01-27 Martin Jambor <mjambor@suse.cz>
6980 PR tree-optimization/47228
6981 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6982 build_ref_for_offset.
6984 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6986 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6988 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6990 PR rtl-optimization/46856
6991 * postreload.c (reload_combine_recognize_const_pattern): Do not
6992 separate cc0 setter and user on cc0 targets.
6994 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6997 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6998 passed a VOID_TYPE expression, immediately emit an error and
6999 return error_mark_node.
7001 2011-01-26 Jeff Law <law@redhat.com>
7003 PR rtl-optimization/47464
7004 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7005 rather than may_trap_p as needed.
7007 2011-01-26 DJ Delorie <dj@redhat.com>
7009 PR rtl-optimization/46878
7010 * combine.c (insn_a_feeds_b): Check for the implicit cc0
7011 setter/user dependency as well.
7013 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
7015 PR rtl-optimization/44469
7016 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7017 after removing trivially dead basic blocks.
7019 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7021 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7022 * config/frv/frv.h (LINK_SPEC): Likewise.
7023 * config/i386/netware.h (LINK_SPEC): Likewise.
7024 * config/m68k/linux.h (ASM_SPEC): Likewise.
7025 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7026 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7027 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7028 * config/sparc/linux.h (ASM_SPEC): Likewise.
7029 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7030 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7032 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7034 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7035 * config/frv/frv.h (ASM_SPEC): Likewise.
7036 * config/m68k/linux.h (ASM_SPEC): Likewise.
7037 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7038 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7039 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7040 * config/sparc/linux.h (ASM_SPEC): Likewise.
7041 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7042 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7044 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7046 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7047 * config/frv/frv.h (LINK_SPEC): Likewise.
7048 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7050 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7052 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7053 * config/frv/frv.h (ASM_SPEC): Likewise.
7054 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7055 * config/m68k/linux.h (ASM_SPEC): Likewise.
7056 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7057 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7058 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7059 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7060 * config/sparc/linux.h (ASM_SPEC): Likewise.
7061 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7062 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7063 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7065 2011-01-26 Steve Ellcey <sje@cup.hp.com>
7068 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7070 (vec_extract_evenodd_help): Ditto.
7071 (vec_extract_evenv4hi): Ditto.
7072 (vec_extract_oddv4hi): Ditto.
7073 (vec_interleave_lowv2si): Ditto.
7074 (vec_interleave_highv2si): Ditto.
7075 (vec_extract_evenv2si): Ditto.
7076 (vec_extract_oddv2si: Ditto.
7077 (vec_pack_trunc_v2si): Ditto.
7079 2011-01-22 Jan Hubicka <jh@suse.cz>
7082 * cgraph.h (cgraph_local_info): New field can_change_signature.
7083 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7084 signature can change.
7085 (ipcp_estimate_growth): Call sequence simplify only if calle signature
7087 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7088 (cgraph_function_versioning): We can not change signature of functions
7089 that don't allow that.
7090 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7091 (lto_input_node): Likewise.
7092 * ipa-inline.c (compute_inline_parameters): Compute
7093 local.can_change_signature.
7094 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7095 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7096 functions that can not change signature.
7097 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7098 init_cumulative_args): Do not use local calling conventions
7099 for functions that can not change signature.
7101 2011-01-22 Jan Hubicka <jh@suse.cz>
7103 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7105 2011-01-26 Richard Guenther <rguenther@suse.de>
7107 PR tree-optimization/47190
7108 * cgraphunit.c (process_common_attributes): New function.
7109 (process_function_and_variable_attributes): Use it.
7111 2011-01-26 Richard Guenther <rguenther@suse.de>
7114 * cgraphbuild.c (record_eh_tables): Record reference to personality
7117 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
7120 * sel-sched.c (moveup_expr): Don't let debug insns prevent
7121 non-debug insns from moving up.
7123 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7126 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7127 t-dlldir{,-x} fragment for build and add it to tmake_file.
7128 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7129 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7130 * config/i386/t-dlldir: New file.
7131 (SHLIB_DLLDIR): Define.
7132 * config/i386/t-dlldir-x: New file.
7133 (SHLIB_DLLDIR): Define.
7134 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7135 (SHLIB_INSTALL): Use it.
7137 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
7140 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7141 lower bound of the allowed Thumb-2 coprocessor load/store
7142 index range to -256. Add explaining comment.
7144 2011-01-25 Ian Lance Taylor <iant@google.com>
7146 * godump.c (go_define): Improve lexing of macro expansion to only
7147 accept expressions which match Go spec.
7149 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7152 * tree.c (handle_dll_attribute): Handle it.
7153 * doc/extend.texi (@item dllexport): Mention it.
7154 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7156 2011-01-25 Ian Lance Taylor <iant@google.com>
7158 PR tree-optimization/26854
7159 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7160 (decl_jump_unsafe): Move higher in file, with no other change.
7161 (bind): Set has_jump_unsafe_decl if appropriate.
7162 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7163 (check_earlier_gotos): Likewise.
7164 (c_check_switch_jump_warnings): Likewise.
7166 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
7168 * doc/invoke.texi (Warning Options): Add missing hyphen.
7169 (-fprofile-dir): Minor grammatical fixes.
7170 (-fbranch-probabilities): Likewise.
7172 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7176 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7178 (no_real_insns_p, schedule_block, set_priorities): Drop special
7179 treatment of boundary debug insns.
7180 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7181 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7182 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7183 (BOUNDARY_DEBUG_INSN_P): Likewise.
7184 (SCHEDULE_DEBUG_INSN_P): Likewise.
7185 * sched-rgn.c (init_ready_list): Drop special treatment of
7186 boundary debug insns.
7187 * final.c (rest_of_clean-state): Clear notes' BB.
7189 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7191 * Makefile.in (LAMBDA_H): Removed.
7192 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7193 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7194 lambda-trans.o, and tree-loop-linear.o.
7195 (lto-symtab.o): Remove dependence on LAMBDA_H.
7196 (tree-loop-linear.o): Remove rule.
7197 (lambda-mat.o): Same.
7198 (lambda-trans.o): Same.
7199 (lambda-code.o): Same.
7200 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7201 (tree-vect-slp.o): Same.
7202 * hwint.h (gcd): Moved here.
7203 (least_common_multiple): Same.
7204 * lambda-code.c: Removed.
7205 * lambda-mat.c: Removed.
7206 * lambda-trans.c: Removed.
7207 * lambda.h: Removed.
7208 * tree-loop-linear.c: Removed.
7209 * lto-symtab.c: Do not include lambda.h.
7210 * omega.c (gcd): Removed.
7211 * passes.c (init_optimization_passes): Remove pass_linear_transform.
7212 * tree-data-ref.c (print_lambda_vector): Moved here.
7213 (lambda_vector_copy): Same.
7214 (lambda_matrix_copy): Same.
7215 (lambda_matrix_id): Same.
7216 (lambda_vector_first_nz): Same.
7217 (lambda_matrix_row_add): Same.
7218 (lambda_matrix_row_exchange): Same.
7219 (lambda_vector_mult_const): Same.
7220 (lambda_vector_negate): Same.
7221 (lambda_matrix_row_negate): Same.
7222 (lambda_vector_equal): Same.
7223 (lambda_matrix_right_hermite): Same.
7224 * tree-data-ref.h: Do not include lambda.h.
7225 (lambda_vector): Moved here.
7226 (lambda_matrix): Same.
7227 (dependence_level): Same.
7228 (lambda_transform_legal_p): Removed declaration.
7229 (lambda_collect_parameters): Same.
7230 (lambda_compute_access_matrices): Same.
7231 (lambda_vector_gcd): Same.
7232 (lambda_vector_new): Same.
7233 (lambda_vector_clear): Same.
7234 (lambda_vector_lexico_pos): Same.
7235 (lambda_vector_zerop): Same.
7236 (lambda_matrix_new): Same.
7237 * tree-flow.h (least_common_multiple): Removed declaration.
7238 * tree-parloops.c (lambda_trans_matrix): Moved here.
7240 (LTM_ROWSIZE): Same.
7241 (LTM_COLSIZE): Same.
7242 (LTM_DENOMINATOR): Same.
7243 (lambda_trans_matrix_new): Same.
7244 (lambda_matrix_vector_mult): Same.
7245 (lambda_transform_legal_p): Same.
7246 * tree-pass.h (pass_linear_transform): Removed declaration.
7247 * tree-ssa-loop.c (tree_linear_transform): Removed.
7248 (gate_tree_linear_transform): Removed.
7249 (pass_linear_transform): Removed.
7250 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
7251 flag_loop_interchange.
7253 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7255 PR tree-optimization/47265
7256 PR tree-optimization/47443
7257 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
7258 if name still has some uses.
7260 2011-01-25 Martin Jambor <mjambor@suse.cz>
7262 PR tree-optimization/47382
7263 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
7264 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
7266 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
7268 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
7269 sjlj_except_unwind_info.
7271 2011-01-25 Richard Guenther <rguenther@suse.de>
7273 PR tree-optimization/47426
7274 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
7275 visible functions results escape.
7277 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7280 * config/arm/arm.c (any_sibcall_uses_r3): New function.
7281 (arm_get_frame_offsets): Use it.
7283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7284 Jakub Jelinek <jakub@redhat.com>
7286 PR tree-optimization/47271
7287 * tree-if-conv.c (bb_postdominates_preds): New.
7288 (if_convertible_bb_p): Call bb_postdominates_preds.
7289 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
7290 (predicate_scalar_phi): Call bb_postdominates_preds.
7292 2011-01-25 Nick Clifton <nickc@redhat.com>
7294 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
7295 * config/rx/rx.c (rx_function_value): Likewise.
7296 (rx_promote_function_mode): Likewise.
7297 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7298 in order to make it legitimate.
7299 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
7300 make sure that the first operand is the same as the result register.
7301 (addsi3_unspec): Delete.
7302 (subdi3): Do not accept immediate operands.
7303 (subdi3_internal): Likewise.
7305 2011-01-25 Jeff Law <law@redhat.com>
7307 PR rtl-optimization/37273
7308 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7309 handle them like argument loads from stack slots. Do not double
7310 count memory for memory constants and argument loads from stack slots.
7312 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7314 PR tree-optimization/47427
7315 PR tree-optimization/47428
7316 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7317 coalesce if the new root var would be TREE_READONLY.
7319 2011-01-25 Richard Guenther <rguenther@suse.de>
7322 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
7323 correct type for TBAA.
7325 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7327 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
7328 (close_phi_written_to_memory): Call for_each_index with
7329 dr_indices_valid_in_loop.
7331 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7333 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
7334 when it is initialized.
7336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7338 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
7339 call to graphite_find_data_references_in_stmt.
7340 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
7341 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
7342 call to graphite_find_data_references_in_stmt.
7343 (analyze_drs_in_stmts): Same.
7344 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
7345 in which the scalar analysis of indices is performed.
7346 (create_data_ref): Same. Update call to dr_analyze_indices.
7347 (find_data_references_in_stmt): Update call to create_data_ref.
7348 (graphite_find_data_references_in_stmt): Same.
7349 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
7351 (create_data_ref): Same.
7352 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
7353 call to create_data_ref.
7355 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7357 * graphite-sese-to-poly.c (build_poly_scop): Move
7358 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
7360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7362 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7363 VAR_DECL, PARM_DECL, and RESULT_DECL.
7365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7367 * graphite-dependences.c (reduction_dr_1): Allow several reductions
7369 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7370 that have already been marked as PBB_IS_REDUCTION.
7372 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7374 * graphite-scop-detection.c (same_close_phi_node): New.
7375 (remove_duplicate_close_phi): New.
7376 (make_close_phi_nodes_unique): New.
7377 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
7379 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7381 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
7382 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
7383 of both data references to be the same.
7385 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7387 * graphite-dependences.c (build_lexicographical_constraint): Remove
7389 (build_lexicographical_constraint): Adjust call to
7390 ppl_powerset_is_empty.
7391 (dependence_polyhedron): Same.
7392 (graphite_legal_transform_dr): Same.
7393 (graphite_carried_dependence_level_k): Same.
7394 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
7396 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
7398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7400 * graphite-sese-to-poly.c
7401 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
7402 (close_phi_written_to_memory): New.
7403 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
7406 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7408 * doc/install.texi: Update the expected version number of PPL to 0.11.
7409 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
7410 #if PPL_VERSION_MINOR < 11.
7412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7414 * graphite-dependences.c: Include graphite-cloog-util.h.
7415 (new_poly_ddr): Inlined into dependence_polyhedron.
7416 (free_poly_ddr): Moved close by new_poly_ddr.
7417 (dependence_polyhedron_1): Renamed dependence_polyhedron.
7418 Early return NULL when ppl_powerset_is_empty returns true.
7419 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
7420 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
7421 (graphite_legal_transform_dr): Call new_poly_ddr.
7422 (graphite_carried_dependence_level_k): Same.
7423 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
7424 (dot_transformed_deps_stmt_1): Removed.
7425 (dot_deps_stmt_1): Call dot_deps_stmt_2.
7426 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
7427 (dot_deps_1): Call dot_deps_2.
7428 * Makefile.in (graphite-dependences.o): Add missing dependence on
7429 graphite-cloog-util.h.
7431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7433 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
7434 (build_lexicographical_constraint): Same.
7435 (dependence_polyhedron_1): Same.
7436 (graphite_legal_transform_dr): Same.
7437 (graphite_carried_dependence_level_k): Same.
7438 * graphite-ppl.c (ppl_powerset_is_empty): New.
7439 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
7440 * tree-data-ref.c (dump_data_reference): Print the basic block index.
7442 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7444 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
7445 the "a followed by b" relation and document it.
7447 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7449 * graphite-dependences.c (build_lexicographical_constraint): Stop the
7450 iteration when the bag of constraints is empty.
7452 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7454 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
7456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7458 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
7459 nest and two loop depths as parameters.
7460 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
7461 lst_perfect_nestify.
7463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7465 * graphite-dependences.c (print_pddr): Call
7466 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
7468 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7470 * graphite-ppl.c (debug_gmp_value): New.
7471 * graphite-ppl.h (debug_gmp_value): Declared.
7473 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
7475 * doc/install.texi: Document availability of cloog-0.16.
7477 2011-01-25 Vladimir Kargov <kargov@gmail.com>
7479 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
7480 invalid postdominance info.
7482 2011-01-24 Jan Hubicka <jh@suse.cz>
7485 * doc/extend.texi (weak pragma): Drop claim that it must
7486 appear before definition.
7487 * varasm.c (merge_weak, declare_weak): Only sanity check
7488 that DECL is not output at a time it is declared weak.
7490 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
7492 * machmode.def: Fixed comments.
7494 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
7496 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
7498 2011-01-24 Paul Koning <ni1d@arrl.net>
7500 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
7503 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
7506 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
7507 (block_info): Add scanned and prev.
7508 (move_or_delete_vzeroupper_2): Return if the basic block
7509 has been scanned and the upper 128bit state is unchanged
7511 (move_or_delete_vzeroupper_1): Return true if the exit
7513 (move_or_delete_vzeroupper): Visit basic blocks using the
7514 work-list based algorithm based on vt_find_locations in
7517 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
7519 2011-01-24 Nick Clifton <nickc@redhat.com>
7521 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
7522 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
7523 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
7524 then define __v850e1__.
7525 * doc/invoke.texi: Document -mv850es.
7527 2011-01-24 Richard Henderson <rth@redhat.com>
7529 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
7530 compound unordered comparisons.
7531 * config/rx/rx.c (rx_split_fp_compare): Remove.
7532 * config/rx/rx-protos.h: Update.
7533 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
7534 (cbranchsf4): Don't call rx_split_fp_compare.
7535 (*cbranchsf4): Use rx_split_cbranch.
7536 (*cmpsf): Don't accept "i" constraint.
7537 (*conditional_branch): Only valid after reload.
7538 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
7540 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7543 * config/rs6000/altivec.md (vector constant splitters): Add
7544 support for creating vector single precision constants if -mvsx is
7545 used and we would create the constant using Altivec primitives.
7547 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
7548 Richard Sandiford <rdsandiford@googlemail.com>
7550 PR rtl-optimization/47166
7551 * reload1.c (emit_reload_insns): Disable the spill_reg_store
7552 mechanism for PRE_MODIFY and POST_MODIFY.
7553 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
7556 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
7558 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7560 2011-01-22 Jan Hubicka <jh@suse.cz>
7563 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
7565 2011-01-22 Jan Hubicka <jh@suse.cz>
7567 PR tree-optimization/43884
7569 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
7570 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
7572 2011-01-22 Anatoly Sokolov <aesok@post.ru>
7574 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7575 * config/s390/s390.c (s390_register_move_cost,
7576 s390_memory_move_cost): New.
7577 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7579 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7582 * except.c (sjlj_assign_call_site_values): Move setting the
7583 crtl->uses_eh_lsda flag to ...
7584 (sjlj_mark_call_sites): ... here.
7585 (sjlj_emit_function_enter): Support NULL dispatch label.
7586 (sjlj_build_landing_pads): In a function with no landing pads
7587 that still has must-not-throw regions, generate code to register
7588 a personality function with empty LSDA.
7590 2011-01-21 Richard Henderson <rth@redhat.com>
7592 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
7594 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
7596 * compare-elim.c: New file.
7597 * Makefile.in (OBJS-common): Add it.
7598 (compare-elim.o): New.
7599 * common.opt (fcompare-elim): New.
7600 * opts.c (default_options_table): Add OPT_fcompare_elim.
7601 * tree-pass.h (pass_compare_elim_after_reload): New.
7602 * passes.c (init_optimization_passes): Add it.
7603 * recog.h: Protect against re-inclusion.
7604 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
7605 * doc/invoke.texi (-fcompare-elim): Document it.
7606 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
7607 * doc/tm.texi: Rebuild.
7609 2011-01-22 Nick Clifton <nickc@redhat.com>
7611 * config/rx/rx.md (cstoresf4): Pass comparison operator to
7612 rx_split_fp_compare.
7614 2011-01-22 Nick Clifton <nickc@redhat.com>
7616 * config/rx/rx.md (UNSPEC_CONST): New.
7617 (deallocate_and_return): Wrap the amount popped off the stack in
7618 an UNSPEC_CONST in order to stop it being rejected by
7619 -mmax-constant-size.
7620 (pop_and_return): Add a "(return)" rtx.
7621 (call): Drop the immediate operand.
7622 (call_internal): Likewise.
7623 (call_value): Likewise.
7624 (call_value_internal): Likewise.
7625 (sibcall_internal): Likewise.
7626 (sibcall_value_internal): Likewise.
7627 (sibcall): Likewise. Generate an explicit call using
7629 (sibcall_value): Likewise.
7630 (mov<>): FAIL if a constant operand is not legitimate.
7631 (addsi3_unpsec): New pattern.
7633 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
7634 (ok_for_max_constant): New function.
7635 (gen_safe_add): New function.
7636 (rx_expand_prologue): Use gen_safe_add.
7637 (rx_expand_epilogue): Likewise.
7638 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
7641 2011-01-21 Jeff Law <law@redhat.com>
7643 PR tree-optimization/47053
7644 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7645 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7646 statements are deleted.
7647 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
7648 is nonempty, then purge dead edges and cleanup the CFG.
7650 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7654 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7656 * tree-dfa.c (create_var_ann): Mark variable as used.
7658 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7661 * except.c (convert_to_eh_region_ranges): Emit queued no-region
7662 notes from other section in hot/cold partitioning even if
7663 last_action is -3. Increment call_site_base.
7665 PR rtl-optimization/47366
7666 * fwprop.c (forward_propagate_into): Return bool. If
7667 any changes are made, -fnon-call-exceptions is used and
7668 REG_EH_REGION note is present, call purge_dead_edges
7669 and return true if it purged anything.
7670 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7671 any EH edges were purged.
7673 2011-01-21 Jeff Law <law@redhat.com>
7675 PR rtl-optimization/41619
7676 * caller-save.c (setup_save_areas): Break out code to determine
7677 which hard regs are live across calls by examining the reload chains
7678 so that it is always used.
7679 Eliminate code which checked REG_N_CALLS_CROSSED.
7681 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7683 PR tree-optimization/47355
7684 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7685 NOP has non-debug uses beyond PHIs in new_bb.
7687 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7690 * cfgexpand.c (account_used_vars_for_block): Only account vars
7691 that are annotated as used.
7692 (estimated_stack_frame_size): Don't set TREE_USED.
7693 * tree-dfa.c (create_var_ann): Mark variable as used.
7695 2011-01-21 Richard Guenther <rguenther@suse.de>
7698 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7700 2011-01-21 Richard Guenther <rguenther@suse.de>
7702 PR tree-optimization/47365
7703 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7704 (vn_reference_lookup_pieces): Adjust.
7705 (vn_reference_lookup): Likewise.
7706 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7707 (vn_reference_lookup_3): Only look through kills if in
7708 VN_WALKREWRITE mode.
7709 (vn_reference_lookup_pieces): Adjust.
7710 (vn_reference_lookup): Likewise.
7711 (visit_reference_op_load): Likewise.
7712 (visit_reference_op_store): Likewise.
7713 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7714 (compute_avail): Likewise.
7715 (eliminate): Likewise.
7717 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7719 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7720 DECL_IGNORED_P non-reg vars if they are used.
7722 PR tree-optimization/47391
7723 * varpool.c (const_value_known_p): Return false if
7726 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
7729 * config/i386/i386.c (ix86_local_alignment): Handle
7730 case for va_list_type_node is nil.
7731 (ix86_canonical_va_list_type): Likewise.
7733 2011-01-21 Alan Modra <amodra@gmail.com>
7735 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7736 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7738 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7740 * config/arm/arm.md (define_attr type): Rename f_load
7741 and f_store to f_fpa_load and f_fpa_store. Update.
7742 (write_conflict): Deal with rename fallout.
7743 (*push_fp_multi): Likewise.
7744 * config/arm/fpa.md (f_load): Use f_fpa_load.
7745 (f_store): Use f_fpa_store.
7746 (*movsf_fpa): Likewise.
7747 (*movdf_fpa): Likewise.
7748 (*movxf_fpa): Likewise.
7749 (*thumb2_movsf_fpa): Likewise.
7750 (*thumb2_movdf_fpa): Likewise.
7751 (*thumb2_movxf_fpa): Likewise.
7752 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7753 f_loadd and f_stored.
7754 (*thumb2_movdi_vfp): Likewise.
7755 (*thumb2_movsf_vfp): Fix attribute to f_loads.
7756 (*thumb2_movsi_vfp): Likewise.
7757 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7758 Use f_loads instead of f_load.
7759 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7761 2011-01-20 Anatoly Sokolov <aesok@post.ru>
7763 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7764 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7765 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7766 (xtensa_mode_dependent_address_p): New function.
7767 (constantpool_address_p): Make static. Change return type to bool.
7768 Change argument type to const_rtx. Use CONST_INT_P predicate.
7770 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
7773 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7775 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7778 * cfgexpand.c (expand_debug_expr): Instead of generating
7779 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7782 2011-01-20 Richard Guenther <rguenther@suse.de>
7785 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7786 the pointer operand of MEM_REFs.
7788 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7790 PR tree-optimization/46130
7791 * ipa-split.c (consider_split): If return_bb contains non-virtual
7792 PHIs other than for retval or if split_function would not adjust it,
7795 2011-01-20 Richard Guenther <rguenther@suse.de>
7797 PR tree-optimization/47167
7798 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7799 Revert previous change, only avoid enumeral type changes.
7801 2011-01-19 Mike Stump <mikestump@comcast.net>
7803 * doc/tm.texi.in (BRANCH_COST): Englishify.
7804 * doc/tm.texi (BRANCH_COST): Likewise.
7806 2011-01-19 Dodji Seketeli <dodji@redhat.com>
7809 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7810 (gen_scheduled_generic_parms_dies): New functions.
7811 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7812 generation for the end of CU compilation.
7813 (dwarf2out_finish): Generate template parameters DIEs here.
7815 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7818 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7819 debug bind stmt on merge edges.
7821 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7825 * function.c (instantiate_expr): Instantiate incoming rtl of
7826 implicit arguments, and recurse on VALUE_EXPRs.
7827 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7828 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7830 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7832 * c-parser.c (c_parser_for_statement): Initialize
7833 collection_expression.
7835 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7837 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7839 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7841 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7842 (LINK_SHLIB_SPEC): Don't use %(link_path).
7843 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7845 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7847 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7848 (NO_SHARED_LIB_SUPPORT): Remove.
7849 (LINK_SHLIB_SPEC): Remove one conditional definition.
7851 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7853 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7855 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7856 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7857 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7858 %{call_shared} and conditionals on these options not being passed.
7859 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7862 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7864 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7867 * ipa-split.c: Spelling fixes.
7869 2011-01-19 Richard Henderson <rth@redhat.com>
7871 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7872 (*mulsi3): Likewise.
7874 * longlong.h [__mn10300__] (count_leading_zeros): New.
7875 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7876 [__mn10300__] (add_ssaaaa, subddmmss): New.
7877 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7878 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7880 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7882 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7884 2011-01-19 Richard Henderson <rth@redhat.com>
7886 * config/mn10300/mn10300.md (addsi3_flags): New.
7887 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7888 (subsi3_flags, subc_internal, subdi3): New.
7889 (subdi3_internal, *subdi3_degenerate): New.
7890 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7892 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7893 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7894 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7895 * config/mn10300/mn10300-protos.h: Update.
7896 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7897 (return_ret): Likewise. Rename from return_internal_regs.
7898 (return_internal): Remove.
7900 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7901 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7902 (mn10300_legitimate_constant_p): Likewise.
7903 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7904 (mn10300_frame_size): New.
7905 (mn10300_expand_prologue): Use it.
7906 (mn10300_expand_epilogue): Likewise.
7907 (mn10300_initial_offset): Likewise.
7908 * config/mn10300/mn10300-protos.h: Update.
7909 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7910 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7911 (prologue, epilogue, return_internal): Tidy output code.
7912 (mn10300_store_multiple_operation, return): Likewise.
7913 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7914 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7915 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7916 (load_pic, am33_load_pic): New.
7917 (mn10300_load_pic0, mn10300_load_pic1): New.
7919 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7920 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7921 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7922 (cc_flags_for_mode, cc_flags_for_code): New.
7923 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7924 overflow flag is not valid. Validate that the flags we need
7925 for the comparison are valid.
7926 (mn10300_output_cmp): Remove.
7927 (mn10300_output_add): New.
7928 (mn10300_select_cc_mode): Use cc_flags_for_code.
7929 (mn10300_split_cbranch): New.
7930 (mn10300_match_ccmode): New.
7931 (mn10300_split_and_operand_count): New.
7932 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7934 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7935 (addsi3): ... here. Use mn10300_output_add.
7936 (*addsi3_flags): New.
7937 (*am33_subsi3, *mn10300_subsi3): Merge...
7938 (subsi3): ... here. Use attribute isa.
7939 (*subsi3_flags): New.
7940 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7942 (*am33_andsi3, *mn10300_andsi3): Merge...
7944 (*andsi3_flags): New.
7945 (andsi3 splitters): New.
7946 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7948 (*iorsi3_flags): New.
7949 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7951 (*xorsi3_flags): New.
7952 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7953 (one_cmplsi2): ... here.
7954 (*one_cmplsi2_flags): New.
7955 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7956 instead of "dax" in constraints. Use mn10300_split_cbranch.
7957 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7958 use matching constraints to eliminate a self-comparison.
7959 (*integer_conditional_branch): Rename from integer_conditional_branch.
7960 Use int_mode_flags to match CC_REG.
7961 (*cbranchsi4_btst, *btstsi): New.
7962 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7963 mn10300_split_cbranch.
7964 (*am33_cmpsf): Rename from am33_cmpsf.
7965 (*float_conditional_branch): Rename from float_conditional_branch.
7966 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7967 (zero_extendqisi2): ... here.
7968 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7969 (zero_extendhisi2): ... here.
7970 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7971 (extendqisi2): ... here.
7972 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7973 (extendhisi2): ... here.
7974 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7975 (ashlsi3): ... here.
7976 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7977 (lshrsi3): ... here.
7978 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7979 (ashrsi3): ... here.
7980 (consecutive add peephole): Remove.
7981 * config/mn10300/predicates.md (label_ref_operand): New.
7982 (int_mode_flags): New.
7983 (CCZN_comparison_operator): New.
7985 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7986 (throughput_42_latency_43): New reservation.
7987 (mulsidi3, umulsidi3): New expanders.
7988 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7989 the MDR register to allocation; separately allocate the low and
7990 high parts of the DImode result.
7991 (umulsidi3_internal): Similarly.
7992 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7993 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7994 (udivsi3, umodsi3): Remove.
7995 (udivmodsi4, divmodsi4): New expanders.
7996 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7997 (*divmodsi4): Simiarly.
7998 (ext_internal): New.
8000 * config/mn10300/constraints.md ("z"): New constraint.
8001 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8002 (FIXED_REGISTERS): Don't fix MDR.
8003 (CALL_USED_REGSITERS): Reformat nicely.
8004 (REG_ALLOC_ORDER): Add MDR.
8005 (enum regclass): Add MDR_REGS.
8006 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8007 (IRA_COVER_CLASSES): Add MDR_REGS.
8008 (REGNO_REG_CLASS): Handle MDR_REG.
8009 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8010 (mn10300_register_move_cost): Likewise.
8011 * config/mn10300/mn10300.md (MDR_REG): New.
8012 (*movsi_internal): Handle moves to/from MDR_REGS.
8014 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8016 (mn10300_secondary_reload): Tidy combination reload classes.
8017 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8018 addresses for AM33. Allow symbolic offsets for reg+imm.
8019 (mn10300_regno_in_class_p): New.
8020 (mn10300_legitimize_reload_address): New.
8021 * config/mn10300/mn10300.h (enum reg_class): Remove
8022 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8023 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
8025 (REG_CLASS_NAMES): Update to match.
8026 (REG_CLASS_CONTENTS): Likewise.
8027 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8028 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8029 (REGNO_IN_RANGE_P): Remove.
8030 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8031 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8032 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8033 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8034 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8035 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8036 (REGNO_GENERAL_P): New.
8037 (HAVE_POST_MODIFY_DISP): New.
8038 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8039 (LEGITIMIZE_RELOAD_ADDRESS): New.
8040 * config/mn10300/mn10300-protos.h: Update.
8042 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8043 DATA_REGS for AM33 stack-pointer destination.
8044 (mn10300_preferred_output_reload_class): Likewise.
8045 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8046 into a form appropriate for ...
8047 (TARGET_SECONDARY_RELOAD): New.
8048 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8049 * config/mn10300/mn10300-protos.h: Update.
8050 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8051 reload_insi; use the "A" constraint for the scratch; handle AM33
8052 moves of sp to non-address registers.
8054 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8055 (*movqi_internal): ... here.
8056 (*am33_movhi, *mn10300_movhi): Merge into...
8057 (*movhi_internal): ... here.
8058 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
8059 as the source/destination of moves from/to SP.
8060 (movsf): Only allow for AM33-2.
8061 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8062 any integer constant constraint. Only allow for AM33-2. Tidy
8063 all of the alternative outputs.
8064 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8065 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
8067 (udivsi3, umodsi3): New patterns for MN103 only.
8069 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
8071 * doc/tm.texi.in: Spell out that a lack of register class unions
8073 * doc/tm.texi: Regenerate.
8075 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8077 PR rtl-optimization/47337
8078 * dce.c (check_argument_store): New function.
8079 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
8081 PR tree-optimization/47290
8082 * tree-eh.c (infinite_empty_loop_p): New function.
8083 (cleanup_empty_eh): Use it.
8085 2011-01-18 Steve Ellcey <sje@cup.hp.com>
8088 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8089 (a64_expand_widen_sum): Ditto.
8090 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8091 (vec_extract_evenodd_help): Ditto.
8092 (vec_extract_evenv4hi): Ditto.
8093 (vec_extract_oddv4hi): Ditto.
8094 (vec_extract_evenv2si): Ditto.
8095 (vec_extract_oddv2si): Ditto.
8096 (vec_extract_evenv2sf): Ditto.
8097 (vec_extract_oddv2sf): Ditto.
8098 (vec_pack_trunc_v4hi: Ditto.
8099 (vec_pack_trunc_v2si): Ditto.
8100 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8101 (vec_interleave_highv8qi): Ditto.
8103 (vec_extract_oddv8qi): Ditto.
8104 (vec_interleave_lowv4hi): Ditto.
8105 (vec_interleave_highv4hi): Ditto.
8106 (vec_interleave_lowv2si): Ditto.
8107 (vec_interleave_highv2si): Ditto.
8109 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8111 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8112 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8113 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
8114 (pa_c_mode_for_suffix): New.
8115 (TARGET_EXPAND_BUILTIN): Define.
8116 (TARGET_C_MODE_FOR_SUFFIX): Define.
8117 (pa_builtins): Define.
8118 (pa_init_builtins): Register __float128 type and init new support
8120 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8121 * config/pa/quadlib.c (_U_Qfcopysign): New.
8123 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
8126 * explow.c (allocate_dynamic_stack_space): Do not assume more than
8127 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
8130 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8132 PR tree-optimization/47179
8133 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8134 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8136 2011-01-18 Richard Guenther <rguenther@suse.de>
8138 PR rtl-optimization/47216
8139 * emit-rtl.c: Include tree-flow.h.
8140 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8141 of replicating it with different semantics.
8142 * Makefile.in (emit-rtl.o): Adjust.
8144 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8146 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
8147 (cortex_a9_dp): Handle neon types correctly.
8149 2011-01-18 Jakub Jelinek <jakub@redhat.com>
8151 PR rtl-optimization/47299
8152 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
8153 subtarget. Use normal multiplication if both operands are constants.
8154 * expmed.c (expand_widening_mult): Don't try to optimize constant
8155 multiplication if op0 has VOIDmode. Convert op1 constant to mode
8158 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8160 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
8161 spacing after 'e.g.', typos, comma, hyphenation.
8163 2011-01-17 Richard Henderson <rth@redhat.com>
8165 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8166 (rx_restricted_mem_operand): New.
8167 (rx_shift_operand): Use register_operand.
8168 (rx_source_operand, rx_compare_operand): Likewise.
8169 * config/rx/rx.md (addsi3_flags): New expander.
8170 (adddi3): Rewrite as expander.
8171 (adc_internal, *adc_flags, adddi3_internal): New patterns.
8172 (subsi3_flags): New expander.
8173 (subdi3): Rewrite as expander.
8174 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8176 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8177 (rx_init_builtins): Remove sat builtin.
8178 (rx_expand_builtin): Likewise.
8179 * config/rx/rx.md (ssaddsi3): New.
8180 (*sat): Rename from sat. Represent the CC_REG input.
8182 * config/rx/predicates.md (rshift_operator): New.
8183 * config/rx/rx.c (rx_expand_insv): Remove.
8184 * config/rx/rx-protos.h: Update.
8185 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
8186 operand to the canonical position.
8187 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8188 (*bitclr, *bitclr_in_memory): Similarly.
8189 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8190 (insv): Retain the zero_extract in the expansion.
8192 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8193 (bswaphi2, bitinvert, revw): Likewise.
8195 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8196 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8197 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8198 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8199 (bitset, bitset_in_memory): Likewise.
8200 (bitinvert, bitinvert_in_memory): Likewise.
8201 (bitclr, bitclr_in_memory): Likewise.
8202 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8203 (rx_strend, rx_cmpstrn): Likewise.
8204 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
8205 (bitop peep2 patterns): Remove.
8207 * config/rx/rx.c (rx_match_ccmode): New.
8208 * config/rx/rx-protos.h: Update.
8209 * config/rx/rx.md (abssi2): Clobber, don't set flags.
8210 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8211 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8212 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8213 (fix_truncsfsi2, floatsisf2): Likewise.
8214 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8215 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8216 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8217 (*subsi3_flags, *xorsi3_flags): New.
8219 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8221 * config/rx/rx.c (rx_print_operand): Remove workaround for
8222 unsplit comparison operations.
8224 * config/rx/rx.md (movsicc): Split after reload.
8225 (*movsicc): Merge *movsieq and *movsine via match_operator.
8226 (*stcc): New pattern.
8228 * config/rx/rx.c (rx_float_compare_mode): Remove.
8229 * config/rx/rx.h (rx_float_compare_mode): Remove.
8230 * config/rx/rx.md (cstoresi4): Split after reload.
8231 (*sccc): New pattern.
8233 * config/rx/predicates.md (label_ref_operand): New.
8234 (rx_z_comparison_operator): New.
8235 (rx_zs_comparison_operator): New.
8236 (rx_fp_comparison_operator): New.
8237 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8238 Validate that the flags are set properly for the comparison.
8239 (rx_gen_cond_branch_template): Remove.
8240 (rx_cc_modes_compatible): Remove.
8241 (mode_from_flags): New.
8242 (flags_from_code): Rename from flags_needed_for_conditional.
8243 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8244 (rx_select_cc_mode): Likewise.
8245 (rx_split_fp_compare): New.
8246 (rx_split_cbranch): New.
8247 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8248 (*cbranchsi4): Use match_operator and rx_split_cbranch.
8249 (*cbranchsf4): Similarly.
8250 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
8251 match_operator and rx_split_cbranch.
8252 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
8253 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
8254 (*cmpsi): Rename from cmpsi.
8255 (*tstsi): Rename from tstsi.
8256 (*cmpsf): Rename from cmpsf; use CC_Fmode.
8257 (*conditional_branch): Rename from conditional_branch.
8258 (*reveresed_conditional_branch): Remove.
8259 (b<code>): Remove expander.
8260 * config/rx/rx-protos.h: Update.
8262 * config/rx/rx.c (rx_compare_redundant): Remove.
8263 * config/rx/rx.md (cmpsi): Don't use it.
8264 * config/rx/rx-protos.h: Update.
8266 * config/rx/rx-modes.def (CC_F): New mode.
8267 * config/rx/rx.c (rx_select_cc_mode): New.
8268 * config/rx/rx.h (SELECT_CC_MODE): Use it.
8269 * config/rx/rx-protos.h: Update.
8271 2011-01-17 Richard Henderson <rth@redhat.com>
8273 * except.c (dump_eh_tree): Fix stray ; after for statement.
8275 2011-01-17 Richard Guenther <rguenther@suse.de>
8277 PR tree-optimization/47313
8278 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
8279 handling before copying the body. Properly deal with
8280 by-reference result in SSA form.
8282 2011-01-17 Ian Lance Taylor <iant@google.com>
8285 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
8286 (struct_value_alias_set): Don't define.
8287 (sparc_option_override): Don't set sparc_sr_alias_set and
8288 struct_value_alias_set.
8289 (save_or_restore_regs): Use gen_frame_mem rather than calling
8291 (sparc_struct_value_rtx): Likewise.
8293 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
8296 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
8297 (_mm_maskstore_pd): Likewise.
8298 (_mm_maskload_ps): Likewise.
8299 (_mm_maskstore_ps): Likewise.
8300 (_mm256_maskload_pd): Change mask to __m256i.
8301 (_mm256_maskstore_pd): Likewise.
8302 (_mm256_maskload_ps): Likewise.
8303 (_mm256_maskstore_ps): Likewise.
8305 * config/i386/i386-builtin-types.def: Updated.
8306 (ix86_expand_special_args_builtin): Likewise.
8308 * config/i386/i386.c (bdesc_special_args): Update
8309 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
8310 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
8311 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
8312 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
8314 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
8315 Use <avxpermvecmode> on mask register.
8316 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
8318 2011-01-17 Olivier Hainque <hainque@adacore.com>
8319 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8320 Eric Botcazou <ebotcazou@adacore.com>
8323 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
8324 if <= USHRT_MAX in 32-bit mode.
8326 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8328 * doc/install.texi (Configuration, Specific): Wrap long
8329 lines in examples. Allow line wrapping in long options
8330 and URLs where beneficial for PDF output.
8332 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
8334 * config/mips/mips.c (mips_classify_symbol): Don't return
8335 SYMBOL_PC_RELATIVE for nonlocal labels.
8337 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
8339 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
8341 2011-01-15 Jan Hubicka <jh@suse.cz>
8343 PR tree-optimization/47276
8344 * ipa.c (function_and_variable_visibility): Do not try to mark alias
8345 declarations as needed.
8347 2011-01-15 Martin Jambor <mjambor@suse.cz>
8349 * common.opt (fdevirtualize): New flag.
8350 * doc/invoke.texi (Option Summary): Document it.
8351 * opts.c (default_options_table): Add devirtualize flag.
8352 * ipa-prop.c (detect_type_change): Return immediately if
8353 devirtualize flag is not set.
8354 (detect_type_change_ssa): Likewise.
8355 (compute_known_type_jump_func): Likewise.
8356 (ipa_analyze_virtual_call_uses): Likewise.
8358 2011-01-14 Martin Jambor <mjambor@suse.cz>
8360 PR tree-optimization/45934
8361 PR tree-optimization/46302
8362 * ipa-prop.c (type_change_info): New type.
8363 (stmt_may_be_vtbl_ptr_store): New function.
8364 (check_stmt_for_type_change): Likewise.
8365 (detect_type_change): Likewise.
8366 (detect_type_change_ssa): Likewise.
8367 (compute_complex_assign_jump_func): Check for dynamic type change.
8368 (compute_complex_ancestor_jump_func): Likewise.
8369 (compute_known_type_jump_func): Likewise.
8370 (compute_scalar_jump_functions): Likewise.
8371 (ipa_analyze_virtual_call_uses): Likewise.
8372 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
8374 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8376 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
8377 * config/i386/i386.opt (msse5): New Alias.
8379 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8381 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8382 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8383 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8384 * config/sparc/sparc.h (CC1_SPEC): Likewise.
8386 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8388 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
8390 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8391 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8392 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
8393 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
8395 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
8397 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8399 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
8401 2011-01-14 Mike Stump <mikestump@comcast.net>
8403 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
8404 * config/fr30/fr30.md: Likweise
8405 (movsi_push): Likewise.
8406 (movsi_pop): Likewise.
8407 (enter_func): Likewise.
8408 * config/moxie/moxie.md (movsi_push): Likewise.
8409 (movsi_pop): Likewise.
8411 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8413 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
8414 %{no_archive} %{exact_version}.
8415 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
8416 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
8417 %{no_archive} %{exact_version}.
8418 * config/mips/openbsd.h (LINK_SPEC): Likewise.
8419 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
8420 * config/mips/vxworks.h: Likewise.
8422 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8424 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
8426 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8428 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
8429 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
8431 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8433 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
8436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8438 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
8440 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
8441 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8443 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
8444 Don't handle -shlib.
8446 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8448 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
8449 (CC1_SPEC): Don't handle -profile.
8451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8453 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
8454 * config/mips/mips.h (CC1_SPEC): Likewise.
8456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8458 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
8459 * config/mips/mips.h (CC1_SPEC): Likewise.
8461 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8463 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
8464 * config/m32r/linux.h (LINK_SPEC): Likewise.
8465 * config/mips/linux.h (LINK_SPEC): Likewise.
8466 * config/mips/linux64.h (LINK_SPEC): Likewise.
8467 * config/sparc/linux.h (LINK_SPEC): Likewise.
8468 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8469 LINK_SPEC): Likewise.
8470 * config/xtensa/linux.h (LINK_SPEC): Likewise.
8472 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8474 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
8476 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
8478 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8480 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
8481 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8483 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8485 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
8487 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8489 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
8490 supports -Bstatic/-Bdynamic.
8491 * configure: Regenerate.
8493 2011-01-14 Jan Hubicka <jh@suse.cz>
8494 Jack Howarth <howarth@bromo.med.uc.edu>
8497 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
8498 when checking debug_info_level. Test write_symbols instead of
8499 debug_hooks->var_location when setting flag_var_tracking_uninit.
8501 2011-01-14 Richard Guenther <rguenther@suse.de>
8503 PR tree-optimization/47179
8504 * target.def (ref_may_alias_errno): New target hook.
8505 * targhooks.h (default_ref_may_alias_errno): Declare.
8506 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
8507 (default_ref_may_alias_errno): New function.
8508 * target.h (struct ao_ref_s): Declare.
8509 * tree-ssa-alias.c: Include target.h.
8510 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
8511 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
8512 (targhooks.o): Likewise.
8513 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
8514 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
8516 2011-01-14 Richard Guenther <rguenther@suse.de>
8518 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
8520 2011-01-14 Richard Guenther <rguenther@suse.de>
8522 PR tree-optimization/47280
8523 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
8525 (tree_ssa_forward_propagate_single_use_vars): Deal with
8526 CFG changes from associate_plusminus.
8528 2011-01-14 Richard Guenther <rguenther@suse.de>
8532 2011-01-11 Richard Guenther <rguenther@suse.de>
8534 PR tree-optimization/46076
8535 * tree-ssa.c (useless_type_conversion_p): Conversions from
8536 unprototyped to empty argument list function types are useless.
8538 2011-01-14 Richard Guenther <rguenther@suse.de>
8540 PR tree-optimization/47286
8541 * tree-ssa-structalias.c (new_var_info): Register variables are global.
8543 2011-01-14 Martin Jambor <mjambor@suse.cz>
8546 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
8548 2011-01-13 Anatoly Sokolov <aesok@post.ru>
8550 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
8551 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8552 * config/xtensa/xtensa.c (xtensa_libcall_value,
8553 xtensa_function_value_regno_p): New functions.
8554 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8556 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
8559 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
8561 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
8562 New function prototype.
8563 * config/i386/winnt.c (i386_pe_assemble_visibility):
8564 Warn only if attribute was specified by user.
8566 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8569 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
8571 (floatunsdidf2_fcfidu): Ditto.
8573 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8575 * config/s390/s390.c (print_operand_address): Replace 'error' with
8576 'output_operand_lossage'.
8577 (print_operand): Likewise.
8579 2011-01-13 Jeff Law <law@redhat.com>
8581 PR rtl-optimization/39077
8582 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
8583 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
8584 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
8585 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
8586 * gcse.c (prune_insertions_deletions): New function.
8587 (compute_pre_data): Use it.
8589 2011-01-13 Dodji Seketeli <dodji@redhat.com>
8592 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
8594 (prune_unused_types_mark): Use it.
8596 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
8598 PR rtl-optimization/45352
8599 * sel-sched.c: Update copyright years.
8600 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
8601 in the advancing loop when we have issued issue_rate insns.
8603 2011-01-12 Richard Henderson <rth@redhat.com>
8605 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
8606 (TARGET_MD_ASM_CLOBBERS): New.
8608 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
8609 (TARGET_DELEGITIMIZE_ADDRESS): New.
8611 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
8612 (clzsi2, *bsch): New patterns.
8614 * config/mn10300/mn10300.md (INT): New mode iterator.
8615 (*mov<INT>_clr): New pattern, and peep2 to generate it.
8617 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8618 flag_split_wide_types.
8620 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8621 (mn10300_trampoline_init): Rewrite without a template, an immediate
8622 load and a direct branch.
8623 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8625 2011-01-12 Anatoly Sokolov <aesok@post.ru>
8627 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8628 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8629 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8630 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8632 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
8635 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8638 2011-01-12 Jan Hubicka <jh@suse.cz>
8641 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8642 (PLUGIN_COND_CLOSE): New macro.
8643 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8645 2011-01-12 Richard Guenther <rguenther@suse.de>
8648 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8649 register variables in a MEM_REF.
8651 2011-01-12 Joseph Myers <joseph@codesourcery.com>
8653 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8654 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8655 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8656 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8657 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8658 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8659 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8660 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8661 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8662 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8663 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8664 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8665 * config/gnu-user.h: New. Copied from linux.h.
8666 (LINUX_TARGET_STARTFILE_SPEC): Rename to
8667 GNU_USER_TARGET_STARTFILE_SPEC.
8668 (LINUX_TARGET_ENDFILE_SPEC): Rename to
8669 GNU_USER_TARGET_ENDFILE_SPEC.
8670 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8671 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8672 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8673 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8674 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8675 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8676 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8677 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8678 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8679 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8680 * config/arm/linux-eabi.h (CC1_SPEC): Use
8681 GNU_USER_TARGET_CC1_SPEC.
8682 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8683 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8684 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8685 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8686 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8687 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8688 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8689 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8691 2011-01-12 Richard Guenther <rguenther@suse.de>
8694 * doc/invoke.texi (ffast-math): Document it is turned on
8697 2011-01-12 Jan Hubicka <jh@suse.cz>
8699 PR tree-optimization/47233
8700 * opts.c (common_handle_option): Disable ipa-reference with profile
8703 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8705 * c-parser.c (c_parser_objc_at_property_declaration): Improved
8708 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8710 * c-parser.c (c_lex_one_token): Updated and reindented some
8711 comments. No changes in code.
8713 2011-01-11 Ian Lance Taylor <iant@google.com>
8715 * godump.c (go_output_var): Don't output the variable if there is
8716 already a type with the same name.
8718 2011-01-11 Ian Lance Taylor <iant@google.com>
8720 * godump.c (go_format_type): Don't generate float80.
8722 2011-01-11 Richard Henderson <rth@redhat.com>
8724 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8725 declaration. Rewrite for both speed and size.
8726 (mn10300_address_cost_1): Remove.
8727 (mn10300_register_move_cost): New.
8728 (mn10300_memory_move_cost): New.
8729 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
8730 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
8731 extensions, shifts, BSWAP, CLZ.
8732 (mn10300_wide_const_load_uses_clr): Remove.
8733 (TARGET_REGISTER_MOVE_COST): New.
8734 (TARGET_MEMORY_MOVE_COST): New.
8735 * config/mn10300/mn10300-protos.h: Update.
8736 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8738 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8739 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8740 * config/mn10300/mn10300-protos.h: Update.
8741 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8742 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8743 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8744 (*test_int_bitfield, *test_byte_bitfield): Remove.
8745 (*bit_test, *subreg_bit_test): Remove.
8746 * config/mn10300/predicates.md (const_8bit_operand): Remove.
8748 * config/mn10300/constraints.md ("c"): Rename from "A".
8749 ("A", "D"): New constraint letters.
8750 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8751 (fmssf4, fnmasf4, fnmssf4): Likewise.
8753 * config/mn10300/mn10300.md (isa): New attribute.
8754 (enabled): New attribute.
8756 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8757 (abssf2, negsf2): Define only for hardware fp.
8758 (sqrtsf2): Reformat.
8759 (addsf3, subsf3, mulsf3): Merge expander and insn.
8761 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8762 (DEBUGGER_AUTO_OFFSET): Remove.
8763 (DEBUGGER_ARG_OFFSET): Remove.
8765 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8766 Emit register stores with the same offsets as the hardware.
8767 (mn10300_store_multiple_operation): Don't check that the register
8768 save offsets are monotonic.
8769 * config/mn10300/mn10300-protos.h: Update.
8771 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8773 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8774 in terms of the value on the stack, not the MDR register.
8776 2011-01-11 Jan Hubicka <jh@suse.cz>
8780 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8781 (symbol_alias_set_destroy, symbol_alias_set_contains,
8782 propagate_aliases_backward): Declare.
8783 * lto-streamer-out.c (struct sets): New sturcture.
8784 (trivally_defined_alias): New function.
8785 (output_alias_pair_p): Rewrite.
8786 (output_unreferenced_globals): Fix output of alias pairs.
8787 (produce_symtab): Likewise.
8788 * ipa.c (function_and_variable_visibility): Set weak alias destination
8790 * varasm.c (symbol_alias_set_t): Remove.
8791 (symbol_alias_set_destroy): Export.
8792 (propagate_aliases_forward, propagate_aliases_backward): New functions
8794 (compute_visible_aliases): ... this one; remove.
8795 (trivially_visible_alias): New
8796 (trivially_defined_alias): New.
8797 (remove_unreachable_alias_pairs): Rewrite.
8798 (finish_aliases_1): Reorganize code checking if alias is defined.
8799 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8802 2011-01-11 Richard Guenther <rguenther@suse.de>
8804 PR tree-optimization/46076
8805 * tree-ssa.c (useless_type_conversion_p): Conversions from
8806 unprototyped to empty argument list function types are useless.
8808 2011-01-11 Richard Guenther <rguenther@suse.de>
8811 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8812 volatile MEMs as MEM_READONLY_P.
8814 2011-01-11 Richard Guenther <rguenther@suse.de>
8816 PR tree-optimization/47239
8817 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8819 2011-01-11 Jeff Law <law@redhat.com>
8821 PR tree-optimization/47086
8822 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8823 IVs from statements that might throw.
8825 2011-01-10 Jan Hubicka <jh@suse.cz>
8828 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8830 2011-01-10 Jan Hubicka <jh@suse.cz>
8833 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8834 when correcting profile.
8836 2011-01-10 Jan Hubicka <jh@suse.cz>
8839 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8841 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8842 Restore DECL_FINI_PRIORITY.
8844 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8846 * doc/gimple.texi: Fix quoting of multi-word return values in
8847 @deftypefn statements. Ensure presence of return value. Wrap
8848 overlong @deftypefn lines.
8849 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8850 descriptions of removed functions.
8851 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8852 of multi-word return value in @deftypefn statement.
8854 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8856 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8857 (Conditional Expressions, Logical Operators)
8858 (Statement and operand traversals): Do not indent smallexample
8859 code. Fix duplicate function argument in example.
8861 2011-01-10 Jeff Law <law@redhat.com>
8863 PR tree-optimization/47141
8864 * ipa-split.c (split_function): Handle case where we are
8865 returning a value and the return block has a virtual operand phi.
8867 2011-01-10 Jan Hubicka <jh@suse.cz>
8869 PR tree-optimization/47234
8870 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8871 (pass_feedback_split_functions): Declare.
8872 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8874 * ipa-split.c (gate_split_functions): Update comments; disable
8875 split-functions for profile_arc_flag and branch_probabilities.
8876 (gate_feedback_split_functions): New function.
8877 (execute_feedback_split_functions): New function.
8878 (pass_feedback_split_functions): New global var.
8880 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8883 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8884 calling gimple_call_set_cannot_inline.
8886 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8888 * config/darwin-sections.def: Remove unused section.
8890 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8893 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8895 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8898 * c-parser.c (c_parser_declaration_or_fndef): Improved
8901 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8903 * config/i386/winnt.c (i386_pe_start_function): Make sure
8904 to switch back to function's section.
8906 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8910 * plugin.c: Move include of dlfcn.h from here...
8911 * system.h: ... to here.
8913 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8915 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8917 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8918 two extra empty pages in PDF output.
8920 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8923 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8924 for error recovery purposes behave as if it was not specified so
8925 that the default type is usd.
8927 2011-01-07 Jan Hubicka <jh@suse.cz>
8929 PR tree-optmization/46469
8930 * ipa.c (function_and_variable_visibility): Clear needed flags on
8931 nodes with external decls; handle weakrefs merging correctly.
8933 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8935 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8938 2011-01-07 Jan Hubicka <jh@suse.cz>
8940 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8941 and no longer claim that gold is required for linker plugin.
8942 * configure: Regenerate.
8943 * gcc.c (PLUGIN_COND): New macro.
8944 (LINK_COMMAND_SPEC): Use it.
8945 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8946 * config.in (HAVE_LTO_PLUGIN): New.
8947 * configure.ac (--with-lto-plugin): New parameter; autodetect
8950 2011-01-07 Jan Hubicka <jh@suse.cz>
8952 PR tree-optimization/46367
8953 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8954 when we can update original.
8955 (cgraph_mark_inline_edge): Sanity check.
8956 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8958 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8960 * config/spu/spu.h (ASM_COMMENT_START): Define.
8962 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8966 (SWITCH_KEEP_FOR_GCC): Likewise.
8967 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8968 (do_spec_1): Handle "%>".
8970 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8972 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8975 * config/i386/i386.c (ix86_delegitimize_address): If
8976 simplify_gen_subreg fails, return orig_x.
8979 * value-prof.c (gimple_stringop_fixed_value): Handle
8980 lhs of the call properly.
8982 2011-01-07 Jan Hubicka <jh@suse.cz>
8985 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8987 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8989 * target.def (function_switched_text_sections): New hook.
8990 * doc/tm.texi: Regenerated.
8991 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8992 * final.c (default_function_switched_text_sections): New.
8993 (final_scan_insn): Call function_switched_text_sections when a
8994 mid-function section change occurs.
8995 * output.h (default_function_switched_text_sections): Declare.
8996 * config/darwin-protos.h (darwin_function_switched_text_sections):
8998 * config/darwin.c (darwin_function_switched_text_sections): New.
8999 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9001 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9003 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
9004 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
9005 the secondary code fragment when outputting for DWARF == 2.
9007 2011-01-07 Anatoly Sokolov <aesok@post.ru>
9009 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9010 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9012 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9013 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9015 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
9018 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9019 when it is not empty.
9021 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
9024 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9025 (case ${target}): Add btver1.
9026 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9027 -march=native recognize btver1 processors.
9028 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9029 btver1 def_and_undef
9030 * config/i386/i386.c (struct processor_costs btver1_cost): New
9032 (m_BTVER1): New definition.
9033 (m_AMD_MULTIPLE): Includes m_BTVER1.
9034 (initial_ix86_tune_features): Add btver1 tune.
9035 (processor_target_table): Add btver1 entry.
9036 (static const char *const cpu_names): Add btver1 entry.
9037 (software_prefetching_beneficial_p): Add btver1.
9038 (ix86_option_override_internal): Add btver1 instruction sets.
9039 (ix86_issue_rate): Add btver1.
9040 (ix86_adjust_cost): Add btver1.
9041 * config/i386/i386.h (TARGET_BTVER1): New definition.
9042 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9043 (enum processor_type): Add PROCESSOR_BTVER1.
9044 * config/i386/i386.md (define_attr "cpu"): Add btver1.
9046 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9049 * config/i386/i386.c (legitimize_tls_address)
9050 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9051 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9052 (tls_initial_exec_64_sun): New pattern.
9054 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
9056 * doc/invoke.texi (Overall Options): Improve wording and markup
9057 of the description of -wrapper.
9059 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9061 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9062 rdynamic, threads): New Driver options.
9064 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9067 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9068 if coming from .tdata.
9069 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9071 2011-01-06 Jan Hubicka <jh@suse.cz>
9074 * collect2.c (main): Do not enable LTOmode when plugin is active.
9076 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9080 --version output if supported.
9081 * configure: Regenerate.
9083 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9085 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9088 2011-01-06 Jakub Jelinek <jakub@redhat.com>
9091 * c-convert.c (convert): When converting a complex expression
9092 other than COMPLEX_EXPR to a different complex type, ensure
9093 c_save_expr is called instead of save_expr, unless in_late_binary_op.
9094 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9095 when converting COMPLEX_TYPE.
9097 2011-01-06 Ira Rosen <irar@il.ibm.com>
9099 PR tree-optimization/47139
9100 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9101 only the last reduction value is used outside the loop. Update
9104 2011-01-05 Joseph Myers <joseph@codesourcery.com>
9106 * config/rtems.opt: New.
9107 * config.gcc (*-*-rtems*): Use rtems.opt.
9109 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
9111 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9112 processors do not support 3DNow instructions.
9114 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9116 * config/spu/spu.c (spu_option_override): Set parameter
9117 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9119 2011-01-05 Jan Hubicka <jh@suse.cz>
9121 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9122 at the command line.
9124 2011-01-05 Martin Jambor <mjambor@suse.cz>
9127 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9128 deltas on streamed outgoing edges.
9129 (output_node_opt_summary): Output info for outgoing edges only when
9130 the node is in new parameter set.
9131 (output_cgraph_opt_summary): New parameter set, passed to the two
9132 aforementioned functions. Update its forward declaration and its
9135 2011-01-05 Tom Tromey <tromey@redhat.com>
9137 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9138 operator to c_finish_omp_atomic.
9139 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9140 (build_unary_op): Update.
9141 (build_modify_expr): Update.
9142 (build_asm_expr): Update.
9144 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9146 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
9147 newly inserted insns.
9149 (spu_emit_branch_hint): Likewise.
9150 (insert_hbrp_for_ilb_runout): Likewise.
9151 (spu_machine_dependent_reorg): Call df_finish_pass after
9152 schedule_insns returns.
9154 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9156 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9158 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
9160 PR tree-optimization/47005
9161 * tree-sra.c (struct access): Add 'non_addressable' bit.
9162 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9163 (decide_one_param_reduction): Return 0 if the parameter is passed by
9164 reference and one of the accesses in the group is non_addressable.
9166 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9168 PR tree-optimization/47056
9169 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9170 (mark_load): Likewise. Handle FUNCTION_DECL specially.
9171 (mark_store): Likewise. Pass STMT to ipa_record_reference.
9173 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9175 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9176 initializer. Skip view conversions from aggregate types.
9178 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
9181 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9183 2011-01-04 Philipp Thomas <pth@suse.de>
9185 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9188 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9190 * function.c (thread_prologue_and_epilogue_insns): Do not crash
9191 on empty epilogue sequences.
9193 2011-01-04 Joseph Myers <joseph@codesourcery.com>
9195 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9196 non-static): New Driver options.
9198 2011-01-04 Jie Zhang <jie@codesourcery.com>
9201 * gcc.c (default_compilers[]): Set combinable field to 0
9202 for all assembly languages.
9204 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
9206 * config/mips/loongson3a.md: New file.
9207 * config/mips/mips.md: Include loongson3a.md.
9208 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9211 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
9214 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9215 instead of convert_memory_address_addr_space on the base expression.
9217 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9219 * config/spu/spu.c (spu_option_override): Update error text
9220 for bad -march= / -mtune= values.
9222 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9224 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9225 if branch-hint optimization will be performed.
9227 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9229 PR tree-optimization/47148
9230 * ipa-split.c (split_function): Convert arguments to
9231 DECL_ARG_TYPE if possible.
9233 PR tree-optimization/47155
9234 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9237 PR rtl-optimization/47157
9238 * combine.c (try_combine): If undobuf.other_insn becomes
9239 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9240 and set *new_direct_jump_p too.
9242 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
9244 PR tree-optimization/47021
9245 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9247 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9249 * gcc.c (process_command): Update copyright notice dates.
9250 * gcov.c (print_version): Likewise.
9251 * gcov-dump.c (print_version): Likewise.
9252 * mips-tfile.c (main): Likewise.
9253 * mips-tdump.c (main): Likewise.
9255 2011-01-03 Martin Jambor <mjambor@suse.cz>
9257 PR tree-optimization/46801
9258 * tree-sra.c (type_internals_preclude_sra_p): Check whether
9259 aggregate fields start at byte boundary instead of the bit-field flag.
9261 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
9264 * gcc.c (main): Revert revision 168407.
9266 2011-01-03 Martin Jambor <mjambor@suse.cz>
9268 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
9270 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9272 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
9273 vector optab to expand vector/scalar shift, update gimple to vector.
9275 2011-01-03 Martin Jambor <mjambor@suse.cz>
9277 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
9280 2011-01-03 Martin Jambor <mjambor@suse.cz>
9282 PR tree-optimization/46984
9283 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
9285 (cgraph_create_indirect_edge): Fixed line length.
9286 (cgraph_indirect_call_info): Declare.
9287 (cgraph_make_edge_direct) Update declaration.
9288 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
9289 (cgraph_create_indirect_edge): Use it.
9290 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
9292 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
9293 the new thunk_delta representation.
9294 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
9296 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
9297 (ipa_read_indirect_edge_info): Likewise.
9298 * lto-cgraph.c (output_edge_opt_summary): New function.
9299 (output_node_opt_summary): Call it on all outgoing edges.
9300 (input_edge_opt_summary): New function.
9301 (input_node_opt_summary): Call it on all outgoing edges.
9303 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
9306 * gcc.c (main): Don't check have_o when settting combine_inputs.
9308 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
9310 * regrename.c: Add general comment describing the pass.
9311 (struct du_head): Remove 'length' field.
9312 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
9313 (regrename_optimize): Do not sort chains. Rework comments, add others.
9314 Force renaming to the preferred class (if any) in the first pass and do
9315 not consider registers that belong to it in the second pass.
9316 (create_new_chain): Do not set 'length' field.
9317 (scan_rtx_reg): Likewise.
9319 2011-01-02 Jakub Jelinek <jakub@redhat.com>
9321 PR tree-optimization/47140
9322 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
9323 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
9326 PR rtl-optimization/47028
9327 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
9328 parm_birth_insn instead of at the beginning of first bb.
9330 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
9332 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
9333 Remove the word "see" before "@pxref".
9334 * doc/rtl.texi: Remove the word "see" before "@pxref".
9336 2011-01-01 Jan Hubicka <jh@suse.cz>
9338 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
9341 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
9344 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
9347 Copyright (C) 2011 Free Software Foundation, Inc.
9349 Copying and distribution of this file, with or without modification,
9350 are permitted in any medium without royalty provided the copyright
9351 notice and this notice are preserved.