1 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/48377
4 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5 is_packed to true even for types with smaller TYPE_ALIGN than
8 2011-04-08 Richard Guenther <rguenther@suse.de>
11 * doc/tm.texi: Re-generate.
13 2011-04-08 Wei Guozhi <carrot@google.com>
16 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17 * config/arm/arm.c (arm_attr_length_push_multi): New function.
18 * config/arm/arm.md (*push_multi): Change the length computation to
21 2011-04-08 Anatoly Sokolov <aesok@post.ru>
23 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
24 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
25 * doc/tm.texi: Regenerate.
26 * system.h (ASM_OUTPUT_BSS): Poison.
27 * varasm.c (asm_output_bss): Remove function.
28 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
30 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
31 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
32 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
33 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
35 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
37 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
39 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
41 2011-04-07 Joseph Myers <joseph@codesourcery.com>
43 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
46 2011-04-07 Joseph Myers <joseph@codesourcery.com>
48 * config/m68k/m68k.c (m68k_handle_option): Don't handle
49 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
50 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
52 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
53 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
54 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
55 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
56 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
57 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
58 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
59 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
60 options. Don't map other m68k options manually. Don't handle
61 old-style options as canonical.
62 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
63 * doc/install.texi (m68k-*-*): Document binutils version
66 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
68 * basic-block.h (force_nonfallthru): Move to...
69 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
70 (force_nonfallthru): ...here.
71 * cfghooks.c (force_nonfallthru): New function.
72 * cfgrtl.c (force_nonfallthru): Rename into...
73 (rtl_force_nonfallthru): ...this.
74 (commit_one_edge_insertion): Do not set AUX field.
75 (commit_edge_insertions): Do not discover new basic blocks.
76 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
77 (cfg_layout_rtl_cfg_hooks): Likewise.
78 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
79 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
80 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
82 2011-04-07 Anatoly Sokolov <aesok@post.ru>
84 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
87 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
89 * config/i386/sse.md: Update copyright year.
90 (avxcvtvecmode): Remove.
91 (sse_movhlps): Merge with *avx_movhlps.
92 (sse_movlhps): Merge with *avx_movlhps.
93 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
94 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
95 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
96 (sse_loadhps): Merge with *avx_loadhps.
97 (sse_storelps): Merge with *avx_storelps.
98 (sse_loadlps): Merge with *avx_loadlps.
99 (sse_movss): Merge with *avx_movss.
100 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
101 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
102 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
103 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
104 (vec_set<mode>_0): Ditto.
105 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
106 (sse4_1_insertps): Merge with *avx_insertps.
107 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
108 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
109 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
110 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
111 (sse2_storehpd): Merge with *avx_storehpd.
112 (sse2_loadhpd): Merge with *avx_loadhpd.
113 (sse2_loadlpd): Merge with *avx_loadlpd.
114 (sse2_movsd): Merge with *avx_movsd.
115 (*vec_concatv2df): Merge with *vec_concatv2df.
117 2011-04-07 Jakub Jelinek <jakub@redhat.com>
120 * combine.c (combine_instructions): Add last_combined_insn,
121 update it if insn is after it, pass it to all try_combine calls.
122 (try_combine): Add last_combined_insn parameter, pass it instead of
123 i3 to propagate_for_debug.
125 2011-04-07 Nick Clifton <nickc@redhat.com>
127 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
128 to handle MDR <-> data register transfers.
129 (movhi_internal): Likewise.
131 2011-04-07 Alan Modra <amodra@gmail.com>
133 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
136 2011-04-07 Tom de Vries <tom@codesourcery.com>
139 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
140 flow_find_cross_jump. Swap variables to implement backward replacement.
141 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
143 2011-04-07 Tom de Vries <tom@codesourcery.com>
146 * cfgcleanup.c (walk_to_nondebug_insn): New function.
147 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
149 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
150 src1 or src2. Redirect edges to the last basic block. Update
151 frequency and count on multiple basic blocks in case of fallthru.
153 2011-04-07 Tom de Vries <tom@codesourcery.com>
156 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
158 (old_insns_match_p): Change return type. Replace return false/true
159 with return dir_none/dir_both. Use can_replace_by.
160 (flow_find_cross_jump): Add dir_p parameter. Init replacement
161 direction from dir_p. Register replacement direction in dir, last_dir
162 and afterlast_dir. Handle new return type of old_insns_match_p using
163 merge_dir. Return replacement direction in dir_p.
164 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
165 return type of old_insns_match_p.
166 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
167 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
168 flow_find_cross_jump.
169 * basic-block.h (enum replace_direction): New type.
170 (flow_find_cross_jump): Add parameter to declaration.
172 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
174 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
175 (AVXMODEDCVTPS2DQ): Ditto.
176 (VEC_FLOAT_MODE): Ditto.
177 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
178 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
179 (<any_logic:code><mode>3): Use VF mode iterator.
180 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
181 Use VF mode iterator.
182 (copysign<mode>3): Use VF mode iterator.
183 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
184 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
185 (*<any_logic:code><MODEF:mode>3): Merge with
186 *avx_<any_logic:code><MODEF:mode>3.
187 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
188 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
189 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
190 (avx_cvtdq2ps<avxmodesuffix>): Remove.
191 (sse2_cvtdq2ps): Use %v modifier.
192 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
193 (avx_cvtps2dq<avxmodesuffix>): Remove.
194 (sse2_cvtps2dq): Use %v modifier.
195 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
196 (avx_cvttps2dq<avxmodesuffix>): Remove.
197 (sse2_cvttps2dq): Use %v modifier.
198 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
199 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
200 (sse2_cvtsd2siq): Fix insn template.
201 (sse2_cvtsd2siq_2): Ditto.
202 (sse2_cvttsd2siq): Ditto.
203 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
204 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
206 2011-04-06 Joseph Myers <joseph@codesourcery.com>
208 * gcov-io.c: Use GCC Runtime Library Exception.
210 2011-04-06 Jakub Jelinek <jakub@redhat.com>
213 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
214 as base_reg whatever register reg has been eliminated to, instead
215 of hardcoding STACK_POINTER_REGNUM.
217 2011-04-06 Joseph Myers <joseph@codesourcery.com>
219 * doc/tm.texi.in: Document C target hooks as separate from general
221 * doc/tm.texi: Regenerate.
222 * genhooks.c (struct hook_desc): Add docname field.
223 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
225 (hook_array): Include c-target.def.
226 (emit_documentation): Use docname field in output.
227 (emit_init_macros): Take docname argument. Only emit definitions
228 for hooks matching docname.
229 (main): Expect additional arguments in all cases. Pass argument
231 * target.def: Move initial macro definitions and comments to
232 target-hooks-macros.h.
233 (gcc_targetcm): Move to c-family/c-target.def.
234 * target.h (targetcm): Move declaration to c-family/c-target.h.
235 * targhooks.c (default_handle_c_option): Move to
237 * targhooks.h (default_handle_c_option): Move declaration to
239 * target-hooks-macros.h: New file.
240 * config.gcc (target_has_targetcm): Define and use to add to
241 c_target_objs and cxx_target_objs.
242 * config/default-c.c: New file.
243 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
244 of target.h and target-def.h.
245 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
246 (darwin_objc_construct_string, darwin_cfstring_ref_p,
247 darwin_check_cfstring_format_arg): Make static.
248 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
249 TARGET_STRING_OBJECT_REF_TYPE_P,
250 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
251 * config/darwin-protos.h (darwin_objc_construct_string,
252 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
254 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
255 TARGET_STRING_OBJECT_REF_TYPE_P,
256 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
257 * config/t-darwin (darwin-c.o): Update dependencies.
258 * system.h (TARGET_HAS_TARGETCM): Poison.
259 * Makefile.in (TARGET_H): Update.
260 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
261 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
262 (default-c.o): New target.
263 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
264 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
265 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
267 (build/genhooks.o): Update dependencies.
269 2011-04-06 Richard Guenther <rguenther@suse.de>
271 * ipa-inline.c (enum inlining_mode): Remove.
272 (cgraph_flatten): Use some other token.
273 (cgraph_edge_early_inlinable_p): New function, split out from ...
274 (cgraph_perform_always_inlining): New function, split out from ...
275 (cgraph_decide_inlining_incrementally): ... here.
276 (cgraph_mark_inline_edge): Adjust.
277 (cgraph_early_inlining): Re-structure.
278 (pass_early_inline): Require SSA form.
280 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
281 Julian Brown <julian@codesourcery.com>
282 Mark Shinwell <shinwell@codesourcery.com>
284 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
285 LO_REGS only for Thumb-1.
286 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
287 be used in short instructions when optimising for size on Thumb-2.
289 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
291 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
292 associated with user returns to be preserved.
294 2011-04-06 Tristan Gingold <gingold@adacore.com>
296 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
297 symbol_queue_size, DBXOUT_DECR_NESTING,
298 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
299 if XCOFF_DEBUGGING_INFO.
301 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
303 * config/i386/i386.md (attribute isa): New.
304 (attribute enabled): New.
305 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
306 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
307 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
308 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
309 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
310 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
311 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
312 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
314 * config/i386/sse.md (VF): New mode iterator.
319 (attribute sse): Handle V8SF and V4DF modes.
320 (<absneg:code><mode>2): Use VF mode iterator.
321 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
323 (<plusminus_insn><mode>3): Use VF mode iterator.
324 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
325 Use VF mode iterator.
326 (<sse>_vm<plusminus_insn><mode>3): Merge with
327 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
328 (mul<mode>3): Use VF mode iterator.
329 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
330 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
332 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
333 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
334 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
335 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
337 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
338 Use VF1 mode iterator.
339 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
340 (sqrt<VF2:mode>2): New expander.
341 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
342 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
343 and sqrtv2df2. Use VF mode iterator.
344 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
346 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
347 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
348 Use VF1 mode iterator.
349 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
350 (<smaxmin:code><mode>3): Use VF mode iterator.
351 (*<smaxmin:code><mode>3_finite): Merge with
352 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
353 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
354 (<sse>_vm<smaxmin:code><mode>2): Merge with
355 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
356 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
358 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
360 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
361 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
362 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
363 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
364 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
366 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
367 Use VF_128 mode iterator.
368 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
370 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
371 VF_128 mode iterator.
372 (vcond<mode>): Use VF mode iterator.
373 * config/i386/predicates.md (sse_comparison_operator): Merge with
374 avx_comparison_float_operator. Do not declare as special_predicate.
375 * config/i386/i386.c (struct builtin_description): Update for renamed
377 (ix86_expand_args_builtin): Ditto.
378 (ix86_expand_sse_compare_mask): Ditto.
380 2011-04-06 Richard Guenther <rguenther@suse.de>
382 * tree-inline.c (estimate_num_insns): For calls simply account
383 for all passed arguments and a used return value.
385 2011-04-06 Richard Guenther <rguenther@suse.de>
387 PR tree-optimization/47663
388 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
389 call_stmt_time fields.
390 (cgraph_edge_inlinable_p): Declare.
391 (cgraph_edge_recursive_p): New inline function.
392 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
393 (cgraph_clone_edge): Copy it.
394 * ipa-inline.c (cgraph_estimate_edge_time): New function.
395 Account for call stmt time.
396 (cgraph_estimate_time_after_inlining): Take edge argument.
397 (cgraph_estimate_edge_growth): Account call stmt size.
398 (cgraph_estimate_size_after_inlining): Take edge argument.
399 (cgraph_mark_inline_edge): Adjust.
400 (cgraph_check_inline_limits): Likewise.
401 (cgraph_recursive_inlining_p): Remove.
402 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
403 (cgraph_decide_recursive_inlining): Take edge argument and
405 (cgraph_decide_inlining_of_small_functions): Do not avoid
406 diags for recursive inlining here.
407 (cgraph_flatten): Adjust.
408 (cgraph_decide_inlining_incrementally): Likewise.
409 (estimate_function_body_sizes): Remove call cost handling.
410 (compute_inline_parameters): Initialize caller edge call costs.
411 (cgraph_estimate_edge_growth): New function.
412 (cgraph_estimate_growth): Use it.
413 (cgraph_edge_badness): Likewise.
414 (cgraph_check_inline_limits): Take an edge argument.
415 (cgraph_decide_inlining_of_small_functions): Adjust.
416 (cgraph_decide_inlining): Likewise.
417 * tree-inline.c (estimate_num_insns): Only account for call
418 return value if it is used.
419 (expand_call_inline): Avoid diagnostics on recursive inline
421 * lto-cgraph.c (lto_output_edge): Output edge call costs.
422 (input_edge): Input edge call costs.
424 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
426 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
428 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
430 * doc/invoke.texi (Spec Files): Fix typo.
432 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
434 * profile.c (branch_prob): Move declaration of local variable. Remove
435 obsolete ??? comment. Expand the location explicitly instead of using
436 the LOCATION_FILE and LOCATION_LINE macros.
438 2011-04-06 Wei Guozhi <carrot@google.com>
441 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
442 (arm_cond_branch): Likewise.
443 (arm_cond_branch_reversed): Likewise.
444 (arm_jump): Likewise.
445 (push_multi): Likewise.
446 * config/arm/constraints.md (Py): New constraint.
448 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
451 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
453 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
454 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
455 #ifdef DBX_DEBUGGING_INFO.
457 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
460 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
461 if old and new states differ.
463 2011-04-05 Joseph Myers <joseph@codesourcery.com>
465 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
466 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
467 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
468 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
469 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
471 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
472 ColdFire options to -mcpu= options.
474 2011-04-05 Jeff Law <law@redhat.com>
476 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
477 check if BB is a successor of LOOP->header and return
478 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
480 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
482 * cprop.c (struct reg_use): Remove.
483 (reg_use_table): Make an array of RTX.
484 (find_used_regs, constprop_register, local_cprop_pass,
485 bypass_block): Simplify users of reg_use_table.
486 (cprop_insn): Likewise. Iterate if copy propagation succeeded
487 on one of the uses found by find_used_regs.
489 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
492 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
495 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
497 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
499 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
501 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
504 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
506 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
508 * combine.c: Include obstack.h.
509 (struct insn_link): Define.
510 (uid_log_links): Adjust type.
511 (FOR_EACH_LOG_LINK): New macro.
512 (insn_link_obstack): Declare.
513 (alloc_insn_link): Define.
514 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
515 type of link variables.
516 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
517 (try_combine, record_promoted_values, distribute_notes): Likewise.
518 (distribute_links): Likewise. Tweak prototype.
519 (clear_log_links): Delete.
520 (adjust_for_new_dest): Call alloc_insn_link.
521 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
523 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
525 * gcse.c (modify_mem_list): Convert to an array of VECs.
526 (canon_modify_mem_list, compute_transp): Tweak formatting.
527 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
528 (load_killed_in_block_p): Likewise.
529 (record_last_mem_set_info): Likewise.
530 (clear_modify_mem_tables): Likewise.
532 2011-04-05 Tom de Vries <tom@codesourcery.com>
535 * function.c (emit_use_return_register_into_block): Only define if
538 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
540 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
542 2011-04-05 Joseph Myers <joseph@codesourcery.com>
544 * config/rx/rx-opts.h: New.
545 * config/rx/rx.c (rx_cpu_type): Remove.
546 (rx_handle_option): Don't assert that global structures are in
547 use. Access variables via opts pointer. Defer most handling of
548 OPT_mint_register_. Use error_at.
549 (rx_option_override): Handle deferred OPT_mint_register_ here.
550 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
551 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
552 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
553 (rx_cpu_types): New Enum and EnumValue entries.
554 (mint-register=): Use Defer and use Var accordingly.
556 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
558 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
559 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
560 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
562 (debug_free_queue, debug_nesting, symbol_queue_index):
564 * dbxout.c: ...to here. Make static.
566 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
568 * gcse.c (modify_pair): Define. Define a VEC of it.
569 (canon_modify_mem_list): Convert to an array of VECs.
570 (free_insn_expr_list_list): Delete.
571 (clear_modify_mem_tables): Call VEC_free instead.
572 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
573 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
574 (canon_list_insert, compute_transp): Likewise.
576 2011-04-05 Tom de Vries <tom@codesourcery.com>
579 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
582 2011-04-05 Tom de Vries <tom@codesourcery.com>
585 * function.c (emit_use_return_register_into_block): New function.
586 (thread_prologue_and_epilogue_insns): Use
587 emit_use_return_register_into_block.
589 2011-04-05 Tom de Vries <tom@codesourcery.com>
592 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
595 2011-04-05 Tom de Vries <tom@codesourcery.com>
597 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
599 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
601 * config/arm/arm.md (define_constants for unspec): Replace with
603 (define_constants for unspecv): Replace with define_c_enum.
604 * config/arm/neon.md (define_constants for unspec): Replace with
607 2011-04-04 Richard Henderson <rth@redhat.com>
610 * dwarf2out.c (output_line_info): Always emit line info from
611 at least one section.
612 (dwarf2out_init): Create text_section_line_info here ...
613 (set_cur_line_info_table): ... not here.
615 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
618 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
621 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
623 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
625 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
626 (expr_equiv_p): Remove.
627 (insert_set_in_table): Look at <dest, src> pair instead of expr.
628 (hash_scan_set): Update call to insert_set_in_table.
629 (dump_hash_table): Dump <dest, src> pair.
630 (lookup_set): Simplify. Lookup <dest, src> pair.
631 (compute_transp): Remove, fold heavily simplified code into...
632 (compute_local_properties): ...here. Expect COMP and TRANSP
634 (find_avail_set): Take set directly from struct expr.
635 (find_bypass-set): Likewise.
636 (bypass_block): Likewise.
637 (cprop_insn): Likewise. Remove redundant INSN_P test.
639 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
640 checks on form of COND from find_implicit_sets to here.
641 (find_implicit_sets): Cleanup control flow. Split critical edges
642 if it exposes implicit sets. Allocate/resize implicit_sets as
644 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
645 changed something. Run df_analyze after find_implicit_sets if any
646 edges were split. Do not allocate implicit_sets here.
648 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
649 (gcse_obstack): Renamed to cprop_obstack.
650 (GNEW, GNEWVEC, GNEWVAR): Remove.
652 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
653 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
654 (gcse_alloc): Likewise, and rename to cprop_alloc.
655 (alloc_gcse_men, free_gcse_mem): Remove.
656 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
657 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
658 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
660 * cprop.c (oprs_not_set_p): Remove.
661 (mark_set, mark_clobber): Remove.
662 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
663 (reg_not_set_p): New function.
664 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
665 (cprop_insn): Likewise.
666 (cprop_jump): Use FOR_EACH_EDGE.
668 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
671 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
672 (rank_for_schedule): Use scheduled_insns vector instead of
674 (ok_for_early_queue_removal): Likewise.
675 (queue_to_ready): Search forward in nonscheduled_insns_begin if
677 (choose_ready): Likewise.
678 (commit_schedule): Use VEC_iterate.
679 (schedule_block): Initialize nonscheduled_insns_begin. If we have
680 a dbg_cnt, use it and ensure the first insn is in the ready list.
681 (haifa_sched_init): Allocate scheduled_insns.
682 (sched_extend_ready_list): Don't allocate it; reserve space.
683 (haifa_sched_finish): Free it.
685 2011-04-04 Joseph Myers <joseph@codesourcery.com>
687 * optc-gen.awk: Always remove type from Variable entry before
688 recording in var_seen.
690 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
692 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
693 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
694 call to tidy_fallthru_edges.
696 2011-04-04 Joseph Myers <joseph@codesourcery.com>
698 * doc/options.texi (ToLower): Document.
699 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
700 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
701 * opts.h (cl_option): Add cl_tolower field.
702 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
703 arguments with lowercase strings.
704 * config/rx/rx.opt (mcpu=): Add ToLower.
705 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
708 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
710 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
712 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
714 * config/vax/vax.c: Include reload.h.
716 2011-04-04 Anatoly Sokolov <aesok@post.ru>
718 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
719 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
720 (sparc_preferred_reload_class): New function.
722 2011-04-04 Jakub Jelinek <jakub@redhat.com>
725 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
726 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
728 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
730 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
731 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
733 2011-04-03 Anatoly Sokolov <aesok@post.ru>
735 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
736 (ASM_OUTPUT_ALIGNED_BSS): Define.
738 2011-04-03 Michael Matz <matz@suse.de>
740 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
741 and next_slot members.
742 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
743 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
744 (lto_streamer_cache_append): Declare.
745 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
746 unsigned index, remove offset parameter, ensure that we append
747 or update existing entries.
748 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
749 parameter, update next_slot for append.
750 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
752 (lto_streamer_cache_insert_at): Likewise.
753 (lto_streamer_cache_append): New function.
754 (lto_streamer_cache_lookup): Use unsigned index.
755 (lto_streamer_cache_get): Likewise.
756 (lto_record_common_node): Don't test tree_node_can_be_shared.
757 (preload_common_node): Adjust call to lto_streamer_cache_insert.
758 (lto_streamer_cache_delete): Don't free offsets member.
759 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
760 (lto_output_string_with_length): Use lto_output_data_stream.
761 (lto_output_tree_header): Remove ix parameter, don't write it.
762 (lto_output_builtin_tree): Likewise.
763 (lto_write_tree): Adjust callers to above, don't track and write
764 offset, write unsigned index.
765 (output_unreferenced_globals): Don't emit all global vars.
766 (write_global_references): Use unsigned indices.
767 (lto_output_decl_state_refs): Likewise.
768 (write_symbol): Likewise.
769 * lto-streamer-in.c (lto_input_chain): Move earlier.
770 (input_function): Use unsigned index.
771 (input_alias_pairs): Don't read and then ignore all global vars.
772 (lto_materialize_tree): Remove ix_p parameter, don't read index,
773 don't pass it back, use lto_streamer_cache_append.
774 (lto_register_var_decl_in_symtab): Use unsigned index.
775 (lto_register_function_decl_in_symtab): Likewise.
776 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
778 (lto_get_builtin_tree): Don't read index, use
779 lto_streamer_cache_append.
780 (lto_read_tree): Adjust call to lto_materialize_tree.
782 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
783 don't use function calls in arguments to MIN.
785 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
788 * gimple.c (gimple_type_leader_entry): Mark deletable.
790 2011-04-03 Alan Modra <amodra@gmail.com>
792 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
794 2011-04-03 Michael Matz <matz@suse.de>
796 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
798 * tree.h (tree_decl_non_common.vindex): Adjust comment.
800 2011-04-03 Michael Matz <matz@suse.de>
802 * cgraphbuild.c (record_reference): Canonicalize constructor values.
803 * gimple-fold.c (canonicalize_constructor_val): Accept being called
804 without function context.
805 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
806 current_function_decl and cfun.
808 2011-04-03 Michael Matz <matz@suse.de>
810 * tree.c (decl_init_priority_insert): Don't create entry for
812 (decl_fini_priority_insert): Ditto.
813 (fields_compatible_p, find_compatible_field): Remove.
814 * tree.h (fields_compatible_p, find_compatible_field): Remove.
815 * gimple.c (gimple_compare_field_offset): Adjust block comment.
817 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
819 * combine.c (try_combine): Remove useless local variable.
821 2011-04-03 Richard Guenther <rguenther@suse.de>
822 Ira Rosen <ira.rosen@linaro.org>
824 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
825 non-variable offsets and compare the remaining bases of the two
826 accesses instead of looking for exact same data-ref.
828 2011-04-02 Kai Tietz <ktietz@redhat.com>
831 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
833 * i386.c (ix86_is_msabi_thiscall): New helper function.
834 (ix86_is_type_thiscall): New helper function.
835 (ix86_comp_type_attributes): Handle thiscall for method-functions
837 (init_cumulative_args): Likewise.
838 (find_drap_reg): Likewise.
839 (ix86_static_chain): Likewise.
840 (x86_this_parameter): Likewise.
841 (x86_output_mi_thunk): Likewise.
843 2011-04-01 Olivier Hainque <hainque@adacore.com>
844 Nicolas Setton <setton@adacore.com>
845 Eric Botcazou <ebotcazou@adacore.com>
847 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
848 (add_gnat_descriptive_type_attribute): New function.
849 (gen_array_type_die): Call it.
850 (gen_enumeration_type_die): Likewise.
851 (gen_struct_or_union_type_die): Likewise.
852 (modified_type_die): Likewise.
853 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
854 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
855 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
857 2011-04-01 Jakub Jelinek <jakub@redhat.com>
860 * dwarf2out.c (resolve_addr): Don't call force_decl_die
861 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
864 2011-03-17 Richard Guenther <rguenther@suse.de>
867 * lto-cgraph.c (input_overwrite_node): Clear the abstract
868 origin for decls in other ltrans units.
869 (input_varpool_node): Likewise.
871 2011-04-01 Jakub Jelinek <jakub@redhat.com>
874 * expr.c (expand_assignment): Handle all possibilities
876 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
877 (store_split_bit_field): If SUBREG_REG (op0) or
878 op0 itself has smaller mode than word, return it
879 for offset 0 and const0_rtx for out-of-bounds stores.
880 If word is const0_rtx, skip it.
882 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
884 * config/h8300/h8300.c (print_operand_address): Rename to...
885 (h8300_print_operand_address): ...this. Make static. Adjust comments.
886 Call h8300_print_operand and h8300_print_operand_address instead of
887 print_operand and print_operand_address. Declare.
888 (print_operand): Renake to...
889 (h8300_print_operand): ...this. Make static. Adjust comments.
890 Call h8300_print_operand instead of print_operand. Declare.
891 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
892 (h8300_register_move_cost): Likewise.
893 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
894 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
895 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
896 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
897 * config/h8300/h8300-protos.h (print_operand): Delete.
898 (print_operand_address): Delete.
900 2011-04-01 Richard Henderson <rth@redhat.com>
903 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
904 in strict mode before dwarf4. Re-order tests to early out
905 before switching sections.
907 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
909 * config/h8300/constraints.md: New file.
910 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
911 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
912 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
913 * config/h8300/predicates.md (bit_operand): Likewise.
914 (incdec_operand): Use satisfies_constraint_M and
915 satisfies_constraint_O. Don't use C code block.
916 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
917 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
918 (compute_mov_length): Use satisfies_constraint_G.
919 (fix_bit_operand): Use satisfies_constraint_U.
920 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
921 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
922 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
923 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
924 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
925 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
926 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
927 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
928 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
929 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
930 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
931 (EXTRA_MEMORY_CONSTRAINT): Delete.
933 2011-04-01 Andrew Pinski <pinskia@gmail.com>
934 Michael Meissner <meissner@linux.vnet.ibm.com>
937 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
938 operands, as per the specifications.
940 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
941 (vec_extract_evenv4sf): Ditto.
942 (vec_extract_evenv8hi): Ditto.
943 (vec_extract_evenv16qi): Ditto.
944 (vec_extract_oddv4si): Ditto.
946 2011-03-31 Mark Wielaard <mjw@redhat.com>
948 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
949 high_pc attribute if the CU has no associated code. Only output
950 DW_AT_entry_pc for CU if not generating strict dwarf and
953 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
955 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
956 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
958 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
959 * final.c (final_start_function): Call the new function rather
960 than using a NULL argument for dwarf2out_frame_debug.
962 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
963 that contains the prologue.
965 * haifa-sched.c (queue_insn): New arg REASON. All callers
966 changed. Print it in debugging output.
968 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
970 * sched-ebb.c (begin_schedule_ready): Remove second argument.
971 Split most of the code into...
972 (begin_move_insn): ... here. New function.
973 (ebb_sched_info): Add a pointer to it.
974 * haifa-sched.c (scheduled_insns): New static variable.
975 (sched_extend_ready_list): Allocate it.
976 (schedule_block): Use it to record the order of scheduled insns.
977 Perform RTL changes to move insns only after all scheduling
978 decisions have been made.
979 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
980 begin_move_insn field.
981 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
982 * sched-int.h (struct haifa_sched_info): Remove second argument
983 from begin_schedule_ready hook. Add new member begin_move_insn.
984 * sched-rgn.c (begin_schedule_ready): Remove second argument.
985 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
987 * haifa-sched.c (prune_ready_list): New function, broken out of
989 (schedule_block): Use it.
991 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
993 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
995 2011-04-01 Kai Tietz <ktietz@redhat.com>
997 * config.gcc (*-*-mingw*): Allow as option the
998 posix threading model.
999 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
1000 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1002 (CPP_SPEC): Add pthread/no-pthread handling.
1003 (LIB_SPEC): Likewise.
1004 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1005 (LIB_SPEC): Likewise.
1006 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1007 flag to pass -pthread option for shared libgcc build.
1008 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1009 for shared libgcc build.
1010 * config/i386/t-mingw-pthread: New file.
1011 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1012 New define to enable use of library pthread by default.
1013 * config/i386/mingw.opt (pthread): New driver option.
1014 (no-pthread): New driver option.
1015 * config/i386/cygming.opt: Make sure trailing empty line is retained.
1016 * config/i386/mingw-w64.opt: Likewise.
1018 2011-04-01 Gary Funck <gary@intrepid.com>
1020 * c-decl.c (grokdeclarator): Fix formatting.
1022 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1024 * expr.c (emit_block_move_via_movmem): Use n_generator_args
1025 instead of n_operands.
1026 (set_storage_via_setmem): Likewise.
1027 * optabs.c (maybe_gen_insn): Likewise.
1028 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1029 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1030 (mips_expand_builtin_direct): Likewise.
1031 * config/spu/spu.c (expand_builtin_args): Likewise.
1033 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1035 * recog.h (insn_data_d): Add n_generator_args.
1036 * genoutput.c (data): Likewise.
1037 (output_insn_data): Print it.
1038 (max_opno, num_dups): Delete.
1039 (scan_operands): Just fill in "d->operand[...]".
1040 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1042 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1044 * gensupport.h (pattern_stats): New structure.
1045 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1046 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1047 (max_operand_1, max_operand_vec): Delete.
1048 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1050 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
1052 * emit-rtl.c (emit_pattern_after_setloc): New function.
1053 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1054 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1055 (emit_pattern_after): New function.
1056 (emit_insn_after, emit_jump_insn_after): Call it.
1057 (emit_call_insn_after, emit_debug_insn_after): Likewise.
1058 (emit_pattern_before_setloc): New function.
1059 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1060 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1062 (emit_pattern_before): New function.
1063 (emit_insn_before, emit_jump_insn_before): Call it.
1064 (emit_call_insn_before, emit_debug_insn_before): Likewise.
1066 2011-03-31 Richard Henderson <rth@redhat.com>
1068 * dwarf2out.c (dw_separate_line_info_ref): Remove.
1069 (dw_separate_line_info_entry): Remove.
1070 (enum dw_line_info_opcode): New.
1071 (dw_line_info_entry): Use it.
1072 (dw_line_info_table, dw_line_info_table_p): New.
1073 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1074 (line_info_table, line_info_label_num): Remove.
1075 (line_info_table_in_use): Remove.
1076 (separate_line_info_table): Remove.
1077 (separate_line_info_table_allocated): Remove.
1078 (separate_line_info_table_in_use): Remove.
1079 (LINE_INFO_TABLE_INCREMENT): Remove.
1080 (line_info_label_num): New.
1081 (cur_line_info_table): New.
1082 (text_section_line_info, cold_text_section_line_info): New.
1083 (separate_line_info): New.
1084 (SEPARATE_LINE_CODE_LABEL): Remove.
1085 (print_dwarf_line_table): Remove.
1086 (debug_dwarf): Don't dump it.
1087 (output_one_line_info_table): New.
1088 (output_line_info): Use it.
1089 (new_line_info_table): New.
1090 (set_cur_line_info_table): New.
1091 (dwarf2out_switch_text_section): Use it.
1092 (dwarf2out_begin_function): Likewise.
1093 (push_dw_line_info_entry): New.
1094 (dwarf2out_source_line): Rewrite for new line info tables.
1095 (dwarf2out_init): Remove dead initailizations.
1097 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1099 * opts.h (cl_option): Add comments to fields. Add bit-fields for
1101 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
1102 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
1103 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
1104 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
1105 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
1106 * opt-functions.awk (flag_init, switch_bit_fields): New.
1107 (switch_flags): Don't handle flags moved to bit-fields. Don't
1108 generate CL_MISSING_OK or CL_SAVE.
1109 * optc-gen.awk: Update to generate bit-field output as well as
1111 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
1112 bit-field instead of CL_REJECT_DRIVER flag.
1113 * opts-common.c (generate_canonical_option,
1114 decode_cmdline_option): Use bit-fields instead of CL_* flags.
1115 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
1116 instead of CL_REJECT_NEGATIVE flag.
1117 * toplev.c (print_switch_values): Use cl_report bit-field instead
1120 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1122 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1123 a zero minimum index only if it is redundant.
1125 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
1127 PR rtl-optimization/48381
1128 * ira-color.c (assign_hard_reg): Use hard reg set intersection
1129 instead of ira_class_hard_reg_index for calculating conflicting
1132 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
1134 * cprop.c: Clean up hash table building.
1135 (reg_avail_info): Remove.
1136 (oprs_available_p): Remove.
1137 (record_last_reg_set_info): Remove.
1138 (record_last_set_info): Remove.
1139 (reg_available_p): New function.
1140 (gcse_constant_p): Do not treat unfolded conditions as constants.
1141 (make_set_regs_unavailable): New function.
1142 (hash_scan_set): Simplify with new reg_available_p.
1143 (compute_hash_table_work): Traverse insns stream only once.
1144 Do not compute reg_avail_info. Traverse insns in reverse order.
1145 Record implicit sets after recording explicit sets from the block.
1147 2011-03-31 Michael Matz <matz@suse.de>
1149 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
1151 2011-03-31 Anatoly Sokolov <aesok@post.ru>
1153 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
1154 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
1155 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1156 (h8300_mode_dependent_address_p): New function.
1157 (h8300_get_index): Make static.
1159 2011-03-31 Jeff Law <law@redhat.com>
1161 * reload1.c (elimination_effects): Fix typo in recent change.
1163 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
1164 typo potentially leading to null pointer dereference.
1166 * caller-save.c (new_saved_hard_reg): Eliminate return value.
1167 (setup_save_areas): Corresponding changes to avoid useless
1170 * jump.c (reversed_comparison_code_parts): Avoid successive return
1171 statements when REVERSE_CONDITION is defined.
1173 * expr.c (expand_assignment): Avoid useless assignments.
1174 (expand_expr_real_1): Likewise.
1175 (expand_expr_real_2): Avoid useless statements.
1177 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
1179 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1181 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
1184 * stmt.c (expand_expr_stmt): Avoid useless assignment.
1186 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1189 * doc/tm.texi.in (TARGET_VERSION): Remove.
1190 * doc/tm.texi: Regenerate.
1191 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
1192 * collect2.c (main): Don't use TARGET_VERSION.
1193 * mips-tdump.c (main): Don't use TARGET_VERSION.
1194 * mips-tfile.c (main): Don't use TARGET_VERSION.
1195 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
1196 * config/rs6000/vxworksae.h: Remove.
1197 * config/alpha/alpha.h (TARGET_VERSION): Remove.
1198 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
1199 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
1200 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
1201 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1202 * config/arm/arm.h (TARGET_VERSION): Remove.
1203 * config/arm/coff.h (TARGET_VERSION): Remove.
1204 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
1205 * config/arm/elf.h (TARGET_VERSION): Remove.
1206 * config/arm/freebsd.h (TARGET_VERSION): Remove.
1207 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1208 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1209 * config/arm/pe.h (TARGET_VERSION): Remove.
1210 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1211 * config/arm/semi.h (TARGET_VERSION): Remove.
1212 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1213 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1214 * config/arm/vxworks.h (TARGET_VERSION): Remove.
1215 * config/avr/avr.h (TARGET_VERSION): Remove.
1216 * config/bfin/bfin.h (TARGET_VERSION): Remove.
1217 * config/fr30/fr30.h (TARGET_VERSION): Remove.
1218 * config/frv/frv.h (TARGET_VERSION): Remove.
1219 * config/h8300/h8300.h (TARGET_VERSION): Remove.
1220 * config/i386/cygwin.h (TARGET_VERSION): Remove.
1221 * config/i386/darwin.h (TARGET_VERSION): Remove.
1222 * config/i386/darwin64.h (TARGET_VERSION): Remove.
1223 * config/i386/djgpp.h (TARGET_VERSION): Remove.
1224 * config/i386/freebsd.h (TARGET_VERSION): Remove.
1225 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
1226 * config/i386/gnu.h (TARGET_VERSION): Remove.
1227 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
1228 * config/i386/i386elf.h (TARGET_VERSION): Remove.
1229 * config/i386/linux.h (TARGET_VERSION): Remove.
1230 * config/i386/linux64.h (TARGET_VERSION): Remove.
1231 * config/i386/lynx.h (TARGET_VERSION): Remove.
1232 * config/i386/mingw32.h (TARGET_VERSION): Remove.
1233 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
1234 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
1235 * config/i386/netware.h (TARGET_VERSION): Remove.
1236 * config/i386/nto.h (TARGET_VERSION): Remove.
1237 * config/i386/openbsd.h (TARGET_VERSION): Remove.
1238 * config/i386/vxworks.h (TARGET_VERSION): Remove.
1239 * config/ia64/elf.h (TARGET_VERSION): Remove.
1240 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
1241 * config/ia64/hpux.h (TARGET_VERSION): Remove.
1242 * config/ia64/linux.h (TARGET_VERSION): Remove.
1243 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1244 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
1245 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1246 * config/lm32/lm32.h (TARGET_VERSION): Remove.
1247 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
1248 * config/m32c/m32c.h (TARGET_VERSION): Remove.
1249 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
1250 * config/m32r/m32r.h (TARGET_VERSION): Remove.
1251 * config/m68k/linux.h (TARGET_VERSION): Remove.
1252 * config/m68k/m68k.h (TARGET_VERSION): Remove.
1253 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
1254 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
1255 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
1256 * config/mep/mep.h (TARGET_VERSION): Remove.
1257 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
1258 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1259 * config/mips/iris6.h (MACHINE_TYPE): Remove.
1260 * config/mips/linux.h (TARGET_VERSION): Remove.
1261 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
1262 * config/mips/vxworks.h (TARGET_VERSION): Remove.
1263 * config/mmix/mmix.h (TARGET_VERSION): Remove.
1264 * config/mn10300/linux.h (TARGET_VERSION): Remove.
1265 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
1266 * config/pa/pa.h (TARGET_VERSION): Remove.
1267 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
1268 * config/picochip/picochip.h (TARGET_VERSION): Remove.
1269 * config/rs6000/aix.h (TARGET_VERSION): Remove.
1270 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
1271 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
1272 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
1273 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
1274 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
1275 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
1276 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
1277 * config/rs6000/linux.h (TARGET_VERSION): Remove.
1278 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
1279 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
1280 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
1281 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
1282 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
1283 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
1284 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
1285 * config/s390/linux.h (TARGET_VERSION): Remove.
1286 * config/s390/s390.h (TARGET_VERSION): Remove.
1287 * config/s390/tpf.h (TARGET_VERSION): Remove.
1288 * config/score/score.h (TARGET_VERSION): Remove.
1289 * config/sh/linux.h (TARGET_VERSION): Remove.
1290 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
1291 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
1292 * config/sh/sh.h (TARGET_VERSION): Remove.
1293 * config/sh/sh64.h (TARGET_VERSION): Remove.
1294 * config/sh/superh.h (TARGET_VERSION): Remove.
1295 * config/sh/vxworks.h (TARGET_VERSION): Remove.
1296 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
1297 * config/sparc/linux.h (TARGET_VERSION): Remove.
1298 * config/sparc/linux64.h (TARGET_VERSION): Remove.
1299 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
1300 TARGET_NAME32, TARGET_NAME): Remove.
1301 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
1302 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
1303 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
1304 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
1305 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
1306 * config/spu/spu.h (TARGET_VERSION): Remove.
1307 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
1308 * config/v850/v850.h (TARGET_VERSION): Remove.
1309 * config/vax/linux.h (TARGET_VERSION): Remove.
1310 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
1311 * config/xtensa/elf.h (TARGET_VERSION): Remove.
1312 * config/xtensa/linux.h (TARGET_VERSION): Remove.
1314 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1317 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
1318 frame-related from frame-unrelated adjustments to the stack pointer.
1320 2011-03-31 Jakub Jelinek <jakub@redhat.com>
1322 * common.opt (fdebug-types-section): Move earlier.
1323 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
1325 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
1327 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
1330 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
1332 * tree.h (CASE_CHAIN): Define.
1333 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
1334 (gimple_redirect_edge_and_branch): Likewise.
1336 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1339 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
1342 2011-03-30 Jeff Law <law@redhat.com>
1344 * PR bootstrap/48371
1345 * reload1.c (reload): Fix botch in last change.
1347 * reload.h (struct reload): Fix typo introduced in last change.
1349 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1351 * config/arm/arm.opt (mhard-float, msoft-float): Mark
1352 Undocumented. Remove help text.
1353 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
1356 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1358 * doc/options.texi (NegativeAlias): Document.
1359 (Alias): Mention NegativeAlias.
1360 * opt-functions.awk: Handle NegativeAlias.
1361 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
1362 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
1363 * opts.h (CL_NEGATIVE_ALIAS): Define.
1364 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
1365 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
1367 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
1369 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1370 mno-spe and mno-isel instead of mspe=no and -misel=no.
1372 2011-03-29 Mark Wielaard <mjw@redhat.com>
1374 * common.opt (fdebug-types-section): New flag.
1375 * doc/invoke.texi: Document new -fno-debug-types-section flag.
1376 * dwarf2out.c (use_debug_types): New define.
1377 (struct die_struct): Mark die_id with GTY desc use_debug_types.
1378 (print_die): Guard output of type unit signatures using
1380 (build_abbrev_table): Replace assert of dwarf_version >= 4
1381 with assert on use_debug_types.
1382 (size_of_die): Likewise.
1383 (unmark_dies): Likewise.
1384 (value_format): Decide AT_ref_external form on use_debug_types.
1385 (output_die): Replace dwarf_version version check guard with
1386 use_debug_types where appropriate.
1387 (modified_type_die): Likewise.
1388 (gen_reference_type_die): Likewise.
1389 (dwarf2out_start_source_file): Likewise.
1390 (dwarf2out_end_source_file): Likewise.
1391 (prune_unused_types_walk_attribs): Likewise.
1392 (dwarf2out_finish): Likewise.
1394 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1396 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
1398 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1400 PR rtl-optimization/48332
1401 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
1402 mode of input operand N and modeN to its actual mode.
1404 2011-03-30 Jeff Law <law@redhat.com>
1406 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
1407 define accessor macro.
1408 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
1409 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
1410 (reg_equiv_init): Likewise.
1411 (reg_equivs_size): New variable.
1412 (reg_equiv_init_size): Remove.
1413 (allocate_initial_values): Move prototype to here from....
1414 * integrate.h (allocate_initial_values): Remove prototype.
1415 * integrate.c: Include reload.h.
1416 (allocate_initial_values): Corresponding changes.
1417 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
1418 (fix_reg_equiv_init, no_equiv): Corresponding changes.
1419 (update_equiv_regs): Corresponding changes.
1420 (ira): Corresponding changes.
1421 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
1422 (push_secondary_reload): Corresponding changes.
1423 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
1424 (make_memloc, find_reloads_address): Corresponding changes.
1425 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
1426 (find_reloads_address_1): Corresponding changes.
1427 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
1428 (refers_to_regno_for_reload_p): Corresponding changes.
1429 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
1430 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
1431 * reload1.c: Include ggc.h.
1432 (grow_reg_equivs): New function.
1433 (replace_pseudos_in, reload): Corresponding changes.
1434 (calculate_needs_all_insns, alter_regs): Corresponding changes.
1435 (eliminate_regs_1, elimination_effects): Corresponding changes.
1436 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
1437 (delete_output_reload): Likewise.
1438 * caller-save.c (mark_referenced_regs): Corresponding changes.
1439 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
1440 * frv/predicates.md (frv_load_operand): Corresponding changes.
1441 * microblaze/microblaze.c (double_memory_operand): Corresponding
1443 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
1444 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
1445 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
1446 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
1447 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
1449 * pa/pa.c (emit_move_sequence): Corresponding changes.
1450 * vax/vax.c (nonindexed_address_p): Corresponding changes.
1452 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1455 * config/arm/arm.c (coproc_secondary_reload_class): Handle
1456 structure modes. Don't check neon_vector_mem_operand for
1457 vector or structure modes.
1459 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1460 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1463 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1464 operand 1 and reshuffle the operands to match.
1465 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1467 2011-03-30 Christian Schüler <cschueler@gmx.de>
1470 * config/c.opt (F): Added 'Driver' to -F option.
1473 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1475 * config/darwin.opt: Added '-arch' option.
1477 2011-03-30 Nick Clifton <nickc@redhat.com>
1479 * config/rx/rx.md: Add peepholes and patterns to combine
1480 extending loads and simple arithmetic instructions.
1481 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
1482 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1483 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
1484 modes to use pre-decrement and post-increment addressing.
1485 (rx_is_restricted_memory_address): Add range checking of REG+INT
1487 (rx_print_operand): Add support for %Q. Fix handling of %Q.
1488 (rx_memory_move_cost): Adjust cost of stores.
1489 (rx_adjust_insn_length): New function.
1491 2011-03-30 Jakub Jelinek <jakub@redhat.com>
1494 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1495 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1496 matching arg00/arg01 types.
1498 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
1500 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1501 last_location to UNKNOWN_LOCATION.
1503 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
1506 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1509 2011-03-30 Joseph Myers <joseph@codesourcery.com>
1510 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1513 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1515 (sparc_cpu): Likewise.
1516 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1519 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1523 PR rtl-optimization/48345
1524 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1525 hard regs for given mode from profitable regs when doing secondary
1528 2011-03-29 Jeff Law <law@redhat.com>
1531 * tree-ssa-threadupdate.c (struct redirection_data): Remove
1532 do_not_duplicate field.
1533 (lookup_redirection_data): Corresponding changes.
1534 (create_duplicates): Always create a template block.
1535 (redirect_edges): Remove code which reused the original block
1536 when it was going to become unreachable code.
1537 (thread_block): Don't set do_not_duplicate field.
1539 2011-03-29 Joseph Myers <joseph@codesourcery.com>
1541 * lto-opts.c (register_user_option_p, lto_register_user_option):
1542 Make type argument unsigned.
1543 * lto-streamer.h (lto_register_user_option): Make type argument
1545 * opth-gen.awk: Make CL_* macros unsigned.
1546 * opts-common.c (find_opt): Make lang_mask argument unsigned.
1547 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1548 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1549 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1550 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1551 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1552 (find_opt): Make lang_mask argument unsigned.
1554 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1556 PR rtl-optimization/48331
1557 PR rtl-optimization/48334
1558 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1559 for any used algorithm.
1561 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1563 * ira-conflicts.c (build_object_conflicts): Add unused attribute
1566 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
1568 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1569 (alpha_option_override): Don't set alpha_sr_alias_set.
1570 (emit_frame_store_1): Use gen_frame_mem rather than calling
1572 (alpha_expand_epilogue): Ditto.
1574 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
1576 PR tree-optimization/48290
1577 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1578 vectorization, check that relevant phis in the basic block after
1579 the inner loop are really inner loop's exit phis.
1581 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
1584 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1585 (cached_dw_loc_list_def): New structure.
1586 (cached_dw_loc_list): New typedef.
1587 (cached_dw_loc_list_table): New variable.
1588 (cached_dw_loc_list_table_hash): New function.
1589 (cached_dw_loc_list_table_eq): Likewise.
1590 (add_location_or_const_value_attribute): Take a bool cache_p.
1591 Cache the list when the parameter is true.
1592 (gen_formal_parameter_die): Update caller.
1593 (gen_variable_die): Likewise.
1594 (dwarf2out_finish): Likewise.
1595 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1596 while generating debug info for the decl.
1597 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1598 (dwarf2out_init): Initialize cached_dw_loc_list_table.
1599 (resolve_addr): Cache the result of resolving a chain of
1602 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
1604 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1605 conflict object hard regset nodes have intersecting hard reg sets.
1607 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1608 after regstat_init_n_sets_and_refs.
1610 * ira.c: Add more comments at the top.
1611 (setup_stack_reg_pressure_class, setup_pressure_classes):
1612 Add comments how we compute the register pressure classes.
1613 (setup_allocno_and_important_classes): Add more comments.
1614 (setup_class_translate_array, reorder_important_classes)
1615 (setup_reg_class_relations): Add comments.
1617 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1620 * ira-color.c: Add 2011 to the Copyright line.
1621 (assign_hard_reg): Add more comments.
1622 (improve_allocation): Ditto.
1624 * ira-costs.c: Add 2011 to the Copyright line.
1625 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1627 (setup_regno_cost_classes_by_mode): Ditto.
1629 Initial patches from ira-improv branch:
1631 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1633 * ira-build.c: (ira_create_object): Remove initialization of
1634 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1635 (ira_create_allocno): Remove initialization of
1636 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1637 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1638 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1639 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1640 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1641 Initialize ALLOCNO_ADD_DATA.
1642 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1643 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1645 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1646 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1648 * ira.c (ira_reallocate): Remove.
1649 (setup_pressure_classes): Call
1650 ira_init_register_move_cost_if_necessary. Use
1651 ira_register_move_cost instead of ira_get_register_move_cost.
1652 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1653 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1655 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1656 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1657 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1658 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1659 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1660 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1662 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1663 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1664 (struct allocno_color_data): New.
1665 (allocno_color_data_t): New typedef.
1666 (allocno_color_data): New definition.
1667 (ALLOCNO_COLOR_DATA): New macro.
1668 (struct object_color_data): New.
1669 (object_color_data_t): New typedef.
1670 (object_color_data): New definition.
1671 (OBJECT_COLOR_DATA): New macro.
1672 (update_copy_costs, calculate_allocno_spill_cost): Call
1673 ira_init_register_move_cost_if_necessary. Use
1674 ira_register_move_cost instead of ira_get_register_move_cost.
1675 (move_spill_restore, update_curr_costs): Ditto.
1676 (allocno_spill_priority): Make it inline.
1677 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1678 (struct coalesce_data, coalesce_data_t): New.
1679 (allocno_coalesce_data): New definition.
1680 (ALLOCNO_COALESCE_DATA): New macro.
1681 (merge_allocnos, coalesced_allocno_conflict_p): Use
1682 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1683 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1684 (coalesce_allocnos): Ditto.
1685 (setup_coalesced_allocno_costs_and_nums): Ditto.
1686 (collect_spilled_coalesced_allocnos): Ditto.
1687 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1688 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1689 (coalesce_spill_slots): Ditto.
1690 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1691 free allocno_coalesce_data.
1693 * ira-conflicts.c: Fix formatting.
1694 (process_regs_for_copy): Call
1695 ira_init_register_move_cost_if_necessary. Use
1696 ira_register_move_cost instead of ira_get_register_move_cost.
1697 (build_object_conflicts): Optimize.
1699 * ira-costs.c (record_reg_classes): Optimize. Call
1700 ira_init_register_move_cost_if_necessary. Use
1701 ira_register_move_cost, ira_may_move_in_cost, and
1702 ira_may_move_out_cost instead of ira_get_register_move_cost and
1703 ira_get_may_move_cost.
1704 (record_address_regs): Ditto.
1705 (scan_one_insn): Optimize.
1706 (find_costs_and_classes): Optimize.
1707 (process_bb_node_for_hard_reg_moves): Call
1708 ira_init_register_move_cost_if_necessary. Use
1709 ira_register_move_cost instead of ira_get_register_move_cost.
1711 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1712 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1713 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1714 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1716 (ira_initiate_emit_data, ira_finish_emit_data)
1717 (create_new_allocno): New functions.
1718 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1719 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1720 Use ira_register_move_cost instead of ira_get_register_move_cost.
1722 * ira-int.h: Fix some comments.
1723 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1724 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1725 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1726 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1728 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1729 bitfield after mode. Make hard_regno a short int. Make
1730 hard_regno short. Remove first_coalesced_allocno and
1731 next_coalesced_allocno. Move mem_optimized_dest_p,
1732 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1733 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1734 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1735 temp, colorable_p. Add new member add_data.
1736 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1737 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1738 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1739 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1740 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1741 (ALLOCNO_ADD_DATA): New macro.
1742 (ira_emit_data_t): New typedef.
1743 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1744 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1745 from struct ira_allocno.
1746 (ALLOCNO_EMIT_DATA): New macro.
1747 (ira_allocno_emit_data, allocno_emit_reg): New.
1748 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1749 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1750 (OBJECT_ADD_DATA): New macro.
1751 (ira_reallocate): Remove.
1752 (ira_initiate_emit_data, ira_finish_emit_data): New.
1753 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1754 (ira_init_register_move_cost_if_necessary): New.
1755 (ira_object_conflict_iter_next): Merge into
1756 ira_object_conflict_iter_cond.
1757 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1759 * ira-live.c: (process_single_reg_class_operands): Call
1760 ira_init_register_move_cost_if_necessary. Use
1761 ira_register_move_cost instead of ira_get_register_move_cost.
1763 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1765 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1767 * ira-costs.c: Fix formatting.
1768 (cost_classes, cost_classes_num): Remove.
1769 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1770 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1771 (cost_classes_del, cost_classes_htab): New.
1772 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1773 (initiate_regno_cost_classes, setup_cost_classes): New.
1774 (setup_regno_cost_classes_by_aclass): New.
1775 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1776 (record_reg_classes): Use regno_cost_classes instead of
1777 cost_classes. Move checking opposite operand up.
1778 (record_address_regs): Use regno_cost_classes
1779 instead of cost_classes.
1780 (scan_one_insn): Ditto. Use always general register.
1781 (print_allocno_costs): Use regno_cost_classes instead of
1783 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1784 (find_costs_and_classes): Set up cost classes for each registers.
1785 Use also their mode for this. Use regno_cost_classes instead of
1787 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1789 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1790 (ira_costs, ira_set_pseudo_classes): Call
1791 initiate_regno_cost_classes and finish_regno_cost_classes.
1793 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1795 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1797 * target.def (ira_cover_classes): Remove.
1799 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1801 * doc/tm.texi.in: Ditto.
1803 * ira-conflicts.c: Remove mentioning cover classes from the file.
1804 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1805 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1807 * targhooks.c (default_ira_cover_classes): Remove.
1809 * targhooks.h (default_ira_cover_classes): Ditto.
1811 * haifa-sched.c: Remove mentioning cover classes from the file.
1812 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1813 ira_pressure_classes and ira_pressure_classes_num instead of
1814 ira_reg_class_cover_size and ira_reg_class_cover. Use
1815 sched_regno_pressure_class instead of sched_regno_cover_class.
1816 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1817 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1819 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1820 classes from the file.
1821 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1822 (struct object_hard_regs, struct object_hard_regs_node): New.
1823 (struct ira_object): New members profitable_hard_regs,
1824 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1825 (struct ira_allocno): Rename cover_class to aclass. Rename
1826 cover_class_cost and updated_cover_class_cost to class_cost and
1827 updated_class_cost. Remove splay_removed_p and
1828 left_conflict_size. Add new members colorable_p.
1829 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1830 (ALLOCNO_COLORABLE_P): New macro.
1831 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1832 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1833 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1834 (OBJECT_...): Rename parameter C to O.
1835 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1836 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1837 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1838 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1839 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1840 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1841 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1842 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1843 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1844 x_ira_reg_class_subunion.
1845 (ira_max_memory_move_cost, ira_max_register_move_cost)
1846 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1847 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1848 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1849 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1850 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1851 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1852 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1853 (ira_tune_allocno_costs_and_cover_classes): Rename to
1854 ira_tune_allocno_costs.
1855 (ira_debug_hard_regs_forest): New.
1856 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1857 (ira_object_conflict_iter_next): Fix comments.
1858 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1859 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1860 cover_class to aclass.
1861 (ira_allocate_and_accumulate_costs): Ditto.
1862 (ira_allocate_and_set_or_copy_costs): Ditto.
1864 * opts.c (decode_options): Remove ira_cover_class check.
1866 * ira-color.c: Remove mentioning cover classes from the file. Use
1867 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1868 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1869 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1870 (splay-tree.h): Remove include.
1871 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1872 before copy_freq_compare_func.
1873 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1874 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1876 (hard_regs_roots, hard_regs_node_vec): Ditto.
1877 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1878 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1879 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1880 (create_new_object_hard_regs_node): Ditto.
1881 (add_new_object_hard_regs_node_to_forest): Ditto.
1882 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1883 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1885 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1886 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1887 (remove_unused_object_hard_regs_nodes): Ditto.
1888 (enumerate_object_hard_regs_nodes): Ditto.
1889 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1890 (object_hard_regs_subnode_t): Ditto.
1891 (struct object_hard_regs_subnode): Ditto.
1892 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1893 (setup_object_hard_regs_subnode_index): Ditto.
1894 (get_object_hard_regs_subnodes_num): Ditto.
1895 (form_object_hard_regs_nodes_forest): Ditto.
1896 (finish_object_hard_regs_nodes_tree): Ditto.
1897 (finish_object_hard_regs_nodes_forest): Ditto.
1898 (allocnos_have_intersected_live_ranges_p): Rename to
1899 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1900 (pseudos_have_intersected_live_ranges_p): Rename to
1901 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1902 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1903 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1904 (update_copy_costs): Remove assert. Skip cost update if the hard
1905 reg does not belong the class.
1906 (assign_hard_reg): Process only profitable hard regs.
1907 (uncolorable_allocnos_num): Make it scalar.
1908 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1909 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1910 and ira_reg_class_max_nregs.
1911 (bucket_allocno_compare_func): Check frequency first.
1912 (sort_bucket): Add compare function as a parameter.
1913 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1914 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1915 (push_allocno_to_stack): Rewrite for checking new allocno
1917 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1918 (push_only_colorable): Pass new parameter to sort_bucket.
1919 (push_allocno_to_spill): Remove.
1920 (allocno_spill_priority_compare): Make it inline and rewrite.
1921 (splay_tree_allocate, splay_tree_free): Remove.
1922 (allocno_spill_sort_compare): New function.
1923 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1924 build and use splay tree. Choose first allocno in uncolorable
1925 allocno bucket to spill. Remove setting spill cost.
1926 (all_conflicting_hard_regs): Remove.
1927 (setup_allocno_available_regs_num): Check only profitable hard
1928 regs. Print info about hard regs nodes.
1929 (setup_allocno_left_conflicts_size): Remove.
1930 (put_allocno_into_bucket): Don't call
1931 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1932 (improve_allocation): New.
1933 (color_allocnos): Call setup_profitable_hard_regs,
1934 form_object_hard_regs_nodes_forest, improve_allocation,
1935 finish_object_hard_regs_nodes_forest. Setup spill cost.
1936 (print_loop_title): Use pressure classes.
1937 (color_allocnso): Ditto.
1938 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1939 and allocnos_for_spilling.
1940 (ira_sort_regnos_for_alter_reg): Don't setup members
1941 {first,next}_coalesced_allocno.
1942 (color): Remove allocating and freeing removed_splay_allocno_vec.
1943 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1944 prohibited_class_mode_regs.
1946 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1948 (update_allocno_pressure_excess_length): Use pressure classes.
1949 (inc_register_pressure, dec_register_pressure): Check for pressure
1951 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1952 pressure class. Use ira_reg_class_nregs instead of
1953 ira_reg_class_max_nregs.
1954 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1955 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1956 (single_reg_class): Use ira_reg_class_nregs instead of
1957 ira_reg_class_max_nregs.
1958 (process_bb_node_lives): Use pressure classes.
1960 * ira-emit.c: Remove mentioning cover classes from the file. Use
1961 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1962 (change_loop): Use pressure classes.
1963 (modify_move_list): Call ira_set_allocno_class instead of
1964 ira_set_allocno_cover_class.
1966 * ira-build.c: Remove mentioning cover classes from the file. Use
1967 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1968 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1969 ALLOCNO_UPDATED_CLASS_COST instead of
1970 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1971 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1972 (ira_create_allocno): Remove initialization of
1973 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1974 ALLOCNO_COLORABLE_P.
1975 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1976 Update conflict regs for the objects.
1977 (create_cap_allocno): Remove assert. Don't propagate
1978 ALLOCNO_AVAILABLE_REGS_NUM.
1979 (ira_free_allocno_costs): New function.
1980 (finish_allocno): Change a part of code into call of
1981 ira_free_allocno_costs.
1982 (low_pressure_loop_node_p): Use pressure classes.
1983 (object_range_compare_func): Don't compare classes.
1984 (setup_min_max_conflict_allocno_ids): Ditto.
1986 * loop-invariant.c: Remove mentioning cover classes from the file.
1987 Use ira_pressure_classes and ira_pressure_classes_num instead of
1988 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1989 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1990 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1991 Use reg_allocno_class instead of reg_cover_class.
1992 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1993 STACK_REG_COVER_CLASS.
1994 (get_regno_cover_class): Rename to get_regno_pressure_class.
1995 (move_loop_invariants): Initialize and finalize regstat.
1997 * ira.c: Remove mentioning cover classes from the file. Add
1998 comments about coloring without cover classes. Use ALLOCNO_CLASS
1999 instead of ALLOCNO_COVER_CLASS. Fix formatting.
2000 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2001 setup_class_subset_and_memory_move_costs.
2002 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2003 (setup_cover_and_important_classes): Rename to
2004 setup_allocno_and_important_classes.
2005 (setup_class_translate_array): New.
2006 (setup_class_translate): Call it for allocno and pressure classes.
2007 (cover_class_order): Rename to allocno_class_order.
2008 (comp_reg_classes_func): Use ira_allocno_class_translate instead
2009 of ira_class_translate.
2010 (reorder_important_classes): Set up ira_important_class_nums.
2011 (setup_reg_class_relations): Set up ira_reg_class_superunion.
2012 (print_class_cover): Rename to print_classes. Add parameter.
2013 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2014 Print pressure classes too.
2015 (find_reg_class_closure): Rename to find_reg_classes. Don't call
2016 setup_reg_subclasses.
2017 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2018 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2019 (setup_prohibited_class_mode_regs): Use
2020 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
2021 (clarify_prohibited_class_mode_regs): New function.
2022 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2023 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2024 (ira_init_once): Initialize them.
2025 (free_register_move_costs): Process them.
2026 (ira_init): Move calls of find_reg_classes and
2027 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2028 Call clarify_prohibited_class_mode_regs.
2029 (ira_no_alloc_reg): Remove.
2030 (too_high_register_pressure_p): Use pressure classes.
2032 * sched-deps.c: Remove mentioning cover classes from the file.
2033 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2034 ira_pressure_classes and ira_pressure_classes_num instead of
2035 ira_reg_class_cover_size and ira_reg_class_cover.
2036 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2037 sched_regno_pressure_class instead of sched_regno_cover_class.
2038 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
2039 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2041 * ira.h: Add 2010 to Copyright.
2042 (ira_no_alloc_reg): Remove external.
2043 (struct target_ira): Rename x_ira_hard_regno_cover_class,
2044 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2045 x_ira_class_translate to x_ira_hard_regno_allocno_class,
2046 x_ira_allocno_classes_num, x_ira_allocno_classes, and
2047 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
2048 x_ira_pressure_classes, x_ira_pressure_class_translate, and
2049 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
2050 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
2051 x_ira_no_alloc_regs.
2052 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2053 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2054 ira_allocno_classes_num and ira_allocno_classes.
2055 (ira_class_translate): Rename to ira_allocno_class_translate.
2056 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2057 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2058 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2059 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2060 (ira_no_alloc_regs): New.
2062 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
2063 classes from the file. Use ALLOCNO_CLASS instead of
2064 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
2065 ALLOCNO_COVER_CLASS_COST.
2066 (regno_cover_class): Rename to regno_aclass.
2067 (record_reg_classes): Use ira_reg_class_subunion instead of
2068 ira_reg_class_union.
2069 (record_address_regs): Check overflow.
2070 (scan_one_insn): Ditto.
2071 (print_allocno_costs): Print total mem cost fore regional allocation.
2072 (print_pseudo_costs): Use REG_N_REFS.
2073 (find_costs_and_classes): Use classes intersected with them on the
2074 1st pass. Check overflow. Use ira_reg_class_subunion instead of
2075 ira_reg_class_union. Use ira_allocno_class_translate and
2076 regno_aclass instead of ira_class_translate and regno_cover_class.
2077 Modify code for finding regno_aclass. Setup preferred classes for
2079 (setup_allocno_cover_class_and_costs): Rename to
2080 setup_allocno_class_and_costs. Use regno_aclass instead of
2081 regno_cover_class. Use ira_set_allocno_class instead of
2082 ira_set_allocno_cover_class.
2083 (init_costs, finish_costs): Use regno_aclass instead of
2085 (ira_costs): Use setup_allocno_class_and_costs instead of
2086 setup_allocno_cover_class_and_costs.
2087 (ira_tune_allocno_costs_and_cover_classes): Rename to
2088 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
2089 by processing objects. Use ira_reg_class_max_nregs instead of
2090 ira_reg_class_nregs.
2092 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2094 * sched-int.h: Remove mentioning cover classes from the file.
2095 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
2097 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
2098 classes from the file.
2099 (struct reg_pref): Rename coverclass into allocnoclass.
2100 (reg_cover_class): Rename to reg_allocno_class.
2102 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
2104 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
2106 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2108 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
2110 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
2112 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
2114 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
2116 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
2118 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
2120 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
2122 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
2123 (i386_ira_cover_classes): Ditto.
2125 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2127 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
2129 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
2131 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
2133 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
2135 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
2137 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
2138 (mips_ira_cover_classes): Ditto.
2140 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
2142 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
2144 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
2146 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
2148 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
2150 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
2151 (IRA_COVER_CLASSES_VSX): Ditto.
2153 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
2154 (rs6000_ira_cover_classes): Ditto.
2156 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
2158 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
2160 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
2162 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
2164 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
2166 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
2168 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
2170 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
2172 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
2174 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
2176 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2179 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2180 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2181 dw_fde_unlikely_section_end_label, cold_in_std_section,
2182 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2183 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2185 (output_fde): Use dw_fde_second_{begin,end} if second is
2186 true, otherwise dw_fde_{begin,end}.
2187 (output_call_frame_info): Test dw_fde_second_begin != NULL
2188 instead of dw_fde_switched_sections.
2189 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2190 fields, initialize new fields. Initialize in_std_section
2191 unconditionally from the first partition.
2192 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2193 dw_fde_second_begin is non-NULL.
2194 (dwarf2out_switch_text_section): Stop initializing removed
2195 dw_fde_struct fields, initialize new fields, initialize
2196 also dw_fde_end here. Set dw_fde_switch_cfi even when
2197 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2198 (struct var_loc_list_def): Add last_before_switch field.
2199 (arange_table, arange_table_allocated, arange_table_in_use,
2200 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2201 (size_of_aranges): Count !in_std_section and !second_in_std_section
2202 hunks in fdes, instead of looking at arange_table_in_use.
2203 (output_aranges): Add aranges_length argument, don't call
2204 size_of_aranges here. Instead of using aranges_table*
2205 emit ranges for fdes when !in_std_section resp.
2206 !second_in_std_section.
2207 (dw_loc_list): Break ranges crossing section switch.
2208 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2209 use dw_fde_second_end instead of dw_fde_end as end of last range.
2210 (gen_subprogram_die): Don't call add_arange. Use
2211 dw_fde_{begin,end} for first partition and if switched
2212 section dw_fde_second_{begin,end} for the second.
2213 (var_location_switch_text_section_1,
2214 var_location_switch_text_section): New functions.
2215 (dwarf2out_begin_function): Initialize cold_text_section even
2216 when function_section () isn't text_section.
2217 (prune_unused_types): Don't walk arange_table.
2218 (dwarf2out_finish): Don't needlessly test
2219 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2220 If info_section_emitted, call size_of_aranges and if it indicates
2221 non-empty .debug_aranges, call output_aranges with the computed
2222 size. Stop using removed dw_fde_struct fields, use
2223 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2227 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
2228 create ENTRY_VALUE if incoming or address of incoming's MEM
2230 * dwarf2out.c (mem_loc_descriptor): Don't emit
2231 DW_OP_GNU_entry_value of DW_OP_fbreg.
2232 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
2233 on ENTRY_VALUE is able to find the canonical parameter VALUE.
2234 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
2235 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
2237 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
2238 is a REG_P or MEM_P with REG_P address, compute hash directly
2239 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
2240 (preserve_only_constants): Don't clear VALUES forwaring
2241 ENTRY_VALUE to some other VALUE.
2243 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
2245 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
2248 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2250 * cfgexpand.c (expand_gimple_cond): Always set the source location and
2251 block before expanding the statement.
2252 (expand_gimple_stmt_1): Likewise. Set them here...
2253 (expand_gimple_stmt): ...and not here. Tidy.
2254 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
2257 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2259 * Makefile.in: New rule for cprop.o.
2260 * gcse.c: Move constant/copy propagation to cprop.c.
2261 (compute_local_properties): Only handle expression tables.
2262 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
2263 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
2264 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
2265 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
2266 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
2267 compute_cprop_data, find_used_regs, try_replace_reg,
2268 find_avail_set, cprop_jump, constprop_register, cprop_insn,
2269 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
2270 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
2271 find_bypass_set, reg_killed_on_edge, bypass_block,
2272 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
2273 execute_rtl_cprop, pass_rtl_cprop): Move to...
2274 * cprop.c: ...here. New file, constant/copy propagation for RTL
2275 moved from gcse.c to here with minor cleanups in duplicated code.
2277 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
2279 * config/i386/i386.c (flag_opts): Fix a typo in
2280 -mavx256-split-unaligned-store.
2282 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2284 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2285 LIBCALL_VALUE): Remove macros.
2286 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2287 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2288 (h8300_function_value, h8300_libcall_value,
2289 h8300_function_value_regno_p): New functions.
2291 2011-03-28 Anatoly Sokolov <aesok@post.ru>
2293 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
2295 2011-03-28 Jeff Law <law@redhat.com>
2297 * tree-ssa-threadupdate.c (redirect_edges): Call
2298 create_edge_and_update_destination_phis as needed.
2299 (create_edge_and_update_destination_phis): Accept new BB argument.
2300 All callers updated.
2301 (thread_block): Do not update the profile when threading around
2302 intermediate blocks.
2303 (thread_single_edge): Likewise.
2304 (determine_bb_domination_status): If BB is not a successor of the
2305 loop header, return NONDOMINATING.
2306 (register_jump_thread): Note when we register a jump thread around
2307 an intermediate block.
2308 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
2309 (thread_across_edge): Use it.
2311 2011-03-28 Tristan Gingold <gingold@adacore.com>
2313 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
2314 when for_return is 2.
2316 2011-03-28 Jeff Law <law@redhat.com>
2318 * var-tracking.c (canonicalize_values_mark): Delete unused
2320 (canonicalize_values_star, set_variable_part): Likewise.
2321 (clobber_variable_part, delete_variable_part): Likewise.
2323 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2325 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
2327 2011-03-28 Martin Jambor <mjambor@suse.cz>
2329 * tree-inline.c (expand_call_inline): Do not check that destination
2331 (optimize_inline_calls): Assert that destination node is analyzed.
2332 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
2333 not call tree_lowering_passes.
2334 * cgraph.h (cgraph_analyze_function): Declare.
2335 * cgraphunit.c (cgraph_analyze_function): Make public.
2337 2011-03-28 Joseph Myers <joseph@codesourcery.com>
2339 * config/sparc/sparc-opts.h: New.
2340 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
2341 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
2342 (sparc_option_override): Store processor_type enumeration rather
2343 than string in cpu_default. Remove name and enumeration from
2344 cpu_table. Directly default -mcpu then default -mtune from -mcpu
2345 without using sparc_select. Use target_flags_explicit instead of
2347 * config/sparc/sparc.h (enum processor_type): Move to
2349 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
2350 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
2351 HeaderInclude entry.
2352 (mcpu=, mtune=): Use Var and Enum.
2353 (sparc_processor_type): New Enum and EnumValue entries.
2355 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2356 Iain Sandoe <iains@gcc.gnu.org>
2359 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
2361 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2363 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
2364 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
2365 Insert new statements at it in lieu of STMT.
2366 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
2367 * tree-vect-stmts.c (vectorizable_store): Likewise.
2368 (vectorizable_load): Likewise.
2370 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
2372 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
2377 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2379 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
2380 unaligned 256bit load/store.
2381 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
2382 (*avx_movdqu<avxmodesuffix>): Likewise.
2384 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2387 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
2388 * config/pa/pa.md (iordi3): Use new predicate in expander.
2391 2011-03-27 Anatoly Sokolov <aesok@post.ru>
2393 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
2394 FUNCTION_VALUE_REGNO_P): Remove macros.
2395 * config/mips/mips-protos.h (mips_function_value): Remove.
2396 * config/mips/mips.c (mips_function_value): Rename to...
2397 (mips_function_value_1): ... this. Make static. Handle receiving
2398 the function type in 'fn_decl_or_type' argument.
2399 (mips_function_value, mips_libcall_value,
2400 mips_function_value_regno_p): New function.
2401 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2402 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2404 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2406 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
2407 and -mavx256-split-unaligned-store.
2408 (ix86_option_override_internal): Split 32-byte AVX unaligned
2409 load/store by default.
2410 (ix86_avx256_split_vector_move_misalign): New.
2411 (ix86_expand_vector_move_misalign): Use it.
2413 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
2414 -mavx256-split-unaligned-store.
2416 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
2417 256bit load/store. Generate unaligned store on misaligned memory
2419 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
2421 (*avx_movdqu<avxmodesuffix>): Likewise.
2423 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
2424 -mavx256-split-unaligned-store.
2426 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2429 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
2432 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2434 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
2435 opno arguments with an expand_operand. Use create_input_operand.
2436 (mips_prepare_builtin_target): Delete.
2437 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
2439 (mips_expand_builtin_direct): Use create_output_operand and
2440 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
2441 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
2442 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
2444 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
2446 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
2448 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2450 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2452 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
2453 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
2454 basic blocks and call commit_edge_insertions directly.
2455 (fixup_abnormal_edges): Move from here to...
2456 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
2457 on the edges and return whether some have actually been inserted.
2458 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
2461 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
2463 PR rtl-optimization/48144
2464 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2465 (merge_expr_data): ... here.
2466 (av_set_intersect): Rename to av_set_code_motion_filter.
2467 Update all callers. Call merge_history_vect when an expression
2468 is found in both sets.
2469 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2471 2011-03-26 Alan Modra <amodra@gmail.com>
2473 * config/rs6000/predicates.md (word_offset_memref_op): Handle
2474 cmodel medium addresses.
2475 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2476 64-bit gpr loads and stores.
2477 (rs6000_secondary_reload_ppc64): New function.
2478 * config/rs6000/rs6000-protos.h: Declare it.
2479 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2481 2011-03-26 Alan Modra <amodra@gmail.com>
2484 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2485 GNU Go in traceback table.
2487 2011-03-25 Richard Henderson <rth@redhat.com>
2489 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2490 if there are exactly 6 operands.
2491 (set_storage_via_setmem): Similarly.
2493 2011-03-25 Kai Tietz <ktietz@redhat.com>
2495 * collect2.c (write_c_file_stat): Handle backslash
2496 as right-hand directory separator.
2497 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2498 checking just for slash.
2499 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2500 instead of checking for trailing slash.
2501 * gcc.c (record_temp_file): Use filename_cmp instead
2503 (do_spec_1): Likewise.
2504 (replace_outfile_spec_function): Likewise.
2505 (is_directory): Use filename_ncmp instead of strncmp.
2506 (print_multilib_info): Likewise.
2507 * gcov.c (find_source): Use filename_cmp instead
2509 (make_gcov_file_name): Fix order of slash/backslash
2511 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2512 (add_standard_paths): Likewise.
2513 * mips-tfile.c (saber_stop): Handle backslash.
2514 * prefix.c (update_path): Use filename_ncmp instead of
2516 * profile.c (output_location): Use filename_cmp instead
2518 * read-md.c (handle_toplevel_file): Handle backslash.
2519 * tlink.c (frob_extension): Likewise.
2520 * tree-cfg.c (same_line_p): Use filename_cmp instead of
2522 * tree-dump.c (dequeue_and_dump): Handle backslash.
2523 * tree.c (get_file_function_name): Likewise.
2524 * gengtype.c (read_input_list): Likewise.
2525 (get_file_realbasename): Likewise.
2526 (get_output_file_with_visibility): Use filename_cmp
2529 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
2531 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2534 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2536 * fold-const.c (expr_location_or): New function.
2537 (fold_truth_not_expr): Call it.
2539 2011-03-25 Jeff Law <law@redhat.com>
2541 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2543 * c-family/c-common.c (def_fn_type): Likewise.
2544 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2545 * emit-rtl.c (gen_rtvec): Likewise.
2546 * lto/lto-lang.c (def_fn_type): Likewise.
2548 2011-03-25 Richard Guenther <rguenther@suse.de>
2550 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2551 also generate copies.
2552 (fini_copy_prop): Handle constant values properly.
2554 2011-03-25 Jakub Jelinek <jakub@redhat.com>
2556 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2557 mode size instead of bitsize with DWARF2_ADDR_SIZE.
2558 (hash_loc_operands, compare_loc_operands): Handle
2559 DW_OP_GNU_entry_value.
2561 2011-03-25 Kai Tietz <ktietz@redhat.com>
2563 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2564 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2565 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2566 comment and use macro TARGET_64BIT_MS_ABI instead.
2567 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2568 and change default behavior for 32-bit MS_ABI.
2569 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2570 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2572 (ix86_cfun_abi): Likewise.
2573 (ix86_maybe_switch_abi): Adjust comment.
2574 (init_cumulative_args): Check for bit-ness in MS_ABI case.
2575 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2576 instead of checking for SYSV_ABI.
2577 (ix86_nsaved_sseregs): Likewise.
2578 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2580 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2581 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2582 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2583 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2584 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2586 2011-03-25 Richard Guenther <rguenther@suse.de>
2588 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2589 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2590 (verify_gimple): Remove.
2591 * tree-cfg.c (verify_gimple_call): Merge verification
2593 (verify_gimple_phi): Merge verification from verify_stmts.
2594 (verify_gimple_label): New function.
2595 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2596 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2597 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2598 (verify_stmts): Rename to verify_gimple_in_cfg.
2599 (verify_gimple_in_cfg): New function.
2600 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2601 * tree-ssa.c (verify_ssa): Likewise.
2602 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2604 2011-03-25 Richard Guenther <rguenther@suse.de>
2606 * passes.c (init_optimization_passes): Add FRE pass after
2609 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
2610 Andrew Stubbs <ams@codesourcery.com>
2612 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2614 (arm_movdi_vfp_cortexa8): New pattern.
2615 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2616 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2617 instructions when tuning for Cortex-A8. Set attribute "arch".
2618 * config/arm/arm.md: Move include arm-tune.md up a bit.
2619 (define_attr "arch"): Add "onlya8" and "nota8" values.
2620 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2622 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2626 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2628 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2629 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2630 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2631 * passes.c (init_optimization_passes): Move
2632 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2634 2011-03-25 Kai Tietz <ktietz@redhat.com>
2636 * c-typeck.c (comptypes_internal): Replace target
2637 hook call of comp_type_attributes by version in tree.c file.
2638 * gimple.c (gimple_types_compatible_p_1): Likewise.
2639 * tree-ssa.c (useless_type_conversion_p): Likewise.
2640 * tree.c (build_type_attribute_qual_variant): Likewise.
2641 (attribute_value_equal): New static helper function.
2642 (comp_type_attributes): New function.
2643 (merge_attributes): Use attribute_value_equal for comparison.
2644 (attribute_list_contained): Likewise.
2645 * tree.h (comp_type_attributes): New prototype.
2647 2011-03-25 Richard Guenther <rguenther@suse.de>
2649 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2650 of complex types at -O0.
2651 (verify_gimple_assign_binary): Likewise.
2652 (verify_gimple_assign_ternary): Likewise.
2654 2011-03-24 Mark Wielaard <mjw@redhat.com>
2656 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2657 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2659 2011-03-24 Mark Wielaard <mjw@redhat.com>
2662 * dwarf2out.c (output_abbrev_section): Only write table when
2663 abbrev_die_table_in_use > 1.
2665 2011-02-24 Richard Henderson <rth@redhat.com>
2667 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2668 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2669 (alpha_expand_unaligned_load_words): Use extql.
2670 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2671 (emit_insxl): Handle all modes for consistency.
2673 2011-02-24 Richard Henderson <rth@redhat.com>
2675 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2676 (alpha_expand_unaligned_load): Likewise.
2677 (alpha_expand_unaligned_store): Likewise.
2678 (alpha_expand_unaligned_load_words): Likewise.
2679 (alpha_expand_unaligned_store_words): Likewise.
2680 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2681 (alpha_split_lock_test_and_set_12): Likewise.
2682 (print_operand, alpha_fold_builtin_extxx): Likewise.
2683 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2684 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2685 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2686 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2687 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2688 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2689 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2690 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2691 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2692 (extwl, extll, extql): Similarly.
2693 (inswh, inslh, insqh): Similarly.
2694 (mskbl, mskwl, mskll, mskql): Similarly.
2695 (mskwh, msklh, mskqh): Similarly.
2697 2011-02-24 Richard Henderson <rth@redhat.com>
2699 * config/alpha/alpha.md (attribute isa): Add er, ner.
2700 (attribute enabled): Handle them.
2701 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2703 2011-02-24 Richard Henderson <rth@redhat.com>
2705 * config/alpha/alpha.md (attribute isa): Add vms.
2706 (attribute enabled): Handle it.
2707 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2708 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2709 (*movtf): Rename from *movtf_internal for consistency.
2710 (*movsi): Merge with *movsi_nt_vms.
2711 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2712 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2713 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2714 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2716 2011-02-24 Richard Henderson <rth@redhat.com>
2718 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2719 (extendqisi2, extendhisi2): Likewise.
2720 (extendqidi2): Simplify BWX/non-BWX expansions.
2721 (extendhidi2): Similarly.
2723 2011-02-24 Richard Henderson <rth@redhat.com>
2725 * config/alpha/alpha.md (attribute isa): New.
2726 (attribute enabled): New.
2727 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2728 (zero_extendqisi2, zero_extendqidi2): Similarly.
2729 (zero_extendhisi2, zero_extendhidi2): Similarly.
2730 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2732 2011-02-24 Richard Henderson <rth@redhat.com>
2734 * config/alpha/predicates.md (input_operand): Revert last change;
2735 update comment to mention 32-bit VMS rather than Windows.
2737 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2739 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2740 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2741 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2742 * passes.c (init_optimization_passes): Move
2743 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2745 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2747 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2749 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2751 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2754 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2757 * simplify-rtx.c (simplify_const_unary_operation): Call
2758 real_convert when changing mode class with FLOAT_EXTEND.
2760 2011-03-24 Nick Clifton <nickc@redhat.com>
2762 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2763 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2764 * config/rx/rx.c (rx_option_override): Set align_jumps,
2765 align_loops and align_labels if not set by the user.
2766 (rx_align_for_label): New function.
2767 (rx_max_skip_for_label): New function.
2768 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2769 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2770 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2771 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2772 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2774 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2776 PR rtl-optimization/48263
2777 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2778 and original commutative_p handling. Use maybe_gen_insn.
2780 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2782 * reload.c (find_reloads_subreg_address): Add address_reloaded
2783 parameter and return true there if the full address has been
2785 (find_reloads_toplev): Pass address_reloaded flag.
2786 (find_reloads_address_1): Don't use address_reloaded parameter.
2788 2011-03-24 Jeff Law <law@redhat.com>
2790 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2791 unused variable "ann".
2792 (remove_unused_locals): Likewise.
2794 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2797 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2800 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2802 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2803 for invalid symbolic addresses.
2804 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2807 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2809 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2810 the argument in calls to fold_truth_not_expr.
2812 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2814 * tree.c (record_node_allocation_statistics): New function.
2815 (make_node_stat, copy_node_stat, build_string): Call it.
2816 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2817 (build1_stat, build_omp_clause): Likewise.
2819 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2821 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2824 2011-03-24 Richard Guenther <rguenther@suse.de>
2826 PR tree-optimization/48271
2827 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2828 blocks that still exist.
2830 2011-03-24 Richard Guenther <rguenther@suse.de>
2832 PR tree-optimization/48270
2833 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2834 not free datarefs before ddrs.
2836 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2838 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2839 from the address built for a reference with variable offset.
2841 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2844 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2845 alternatives that can be handled with movq or movabsq insn.
2846 (*movdf_internal): Disable for !TARGET_64BIT.
2847 (*movdf_internal_nointeger): Ditto.
2848 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2850 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2852 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2853 (FUNCTION_ARG_ADVANCE): Likewise.
2854 * tm.texi.in: Change references to them to hook references.
2855 * tm.texi: Regenerate.
2856 * targhooks.c (default_function_arg): Eliminate check for target macro.
2857 (default_function_incoming_arg): Likewise.
2858 (default_function_arg_advance): Likewise.
2859 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2860 (function_arg_advance): Likewise.
2861 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2863 2011-03-24 Richard Guenther <rguenther@suse.de>
2866 * tree-object-size.c (addr_object_size): Do not double-account
2867 for MEM_REF offsets.
2869 2011-03-24 Diego Novillo <dnovillo@google.com>
2871 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2872 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2873 (lto_input_data_block): Move from lto-opts.c. Make extern.
2875 (lto_input_string): Rename from input_string. Make extern.
2877 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2878 output_string_with_length.
2879 Output 0 to indicate a non-NULL string. Update all callers to
2881 (lto_output_string): Rename from output_string. Make extern.
2883 (lto_output_decl_state_streams): Make extern.
2884 (lto_output_decl_state_refs): Make extern.
2885 * lto-streamer.h (lto_input_string): Declare.
2886 (lto_input_data_block): Declare.
2887 (lto_output_string): Declare.
2888 (lto_output_string_with_length): Declare.
2889 (lto_output_decl_state_streams): Declare.
2890 (lto_output_decl_state_refs): Declare.
2892 2011-03-24 Richard Guenther <rguenther@suse.de>
2894 PR tree-optimization/46562
2895 * tree.c (build_invariant_address): New function.
2896 * tree.h (build_invariant_address): Declare.
2897 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2898 a renamed function moved ...
2899 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2900 Take valueization callback parameter.
2901 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2902 * gimple-fold.h: New file.
2903 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2904 (ccp_fold, fold_const_aggregate_ref,
2905 fold_ctor_reference, fold_nonarray_ctor_reference,
2906 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2907 get_base_constructor): Move ...
2908 * gimple-fold.c: ... here.
2909 (gimple_fold_stmt_to_constant_1): New function
2910 split out from ccp_fold. Take a valueization callback parameter.
2911 Valueize all operands.
2912 (gimple_fold_stmt_to_constant): New wrapper function.
2913 (fold_const_aggregate_ref_1): New function split out from
2914 fold_const_aggregate_ref. Take a valueization callback parameter.
2915 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2916 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2917 invariant POINTER_PLUS_EXPRs to invariant form.
2918 (vn_valueize): New function.
2919 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2920 * tree-vrp.c (vrp_valueize): New function.
2921 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2922 to fold statements to constants.
2923 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2924 function declarations.
2925 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2926 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2928 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2930 * config/h8300/predicates.md (jump_address_operand): Fix register
2933 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2935 * doc/invoke.texi (max-stores-to-sink): Document.
2936 * params.h (MAX_STORES_TO_SINK): Define.
2937 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2938 if either vectorization or if-conversion is disabled.
2939 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2940 tree-vect-data-refs.c vect_equal_offsets.
2941 (dr_equal_offsets_p): New function.
2942 (find_data_references_in_bb): Remove static.
2943 * tree-data-ref.h (find_data_references_in_bb): Declare.
2944 (dr_equal_offsets_p): Likewise.
2945 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2946 (vect_drs_dependent_in_basic_block): Update calls to
2948 (vect_check_interleaving): Likewise.
2949 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2950 (cond_if_else_store_replacement): Rename to...
2951 (cond_if_else_store_replacement_1): ... this. Change arguments and
2953 (cond_if_else_store_replacement): New function.
2954 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2955 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2957 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2960 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2961 to subtract lower bound instead of GEN_INT().
2963 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2968 * doc/extend.texi (Alignment): Move section to match order in TOC.
2969 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2970 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2972 2011-03-23 Jeff Law <law@redhat.com>
2974 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2975 before removing the edge.
2977 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2978 it may have been freed by redirect_branch_edge or
2979 redirect_edge_succ_nodup.
2981 2011-03-23 Richard Guenther <rguenther@suse.de>
2983 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2984 (check_va_list_escapes): Likewise.
2985 (check_all_va_list_escapes): Likewise.
2987 2011-03-23 Richard Guenther <rguenther@suse.de>
2989 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2990 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2991 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2992 (alias.o): Likewise.
2993 (ipa-type-escape.o): Remove.
2994 (ipa-struct-reorg.o): Likewise.
2995 (GTFILES): Remove ipa-struct-reorg.c.
2996 * alias.c: Do not include ipa-type-escape.h.
2997 * tree-ssa-alias.c: Likewise.
2998 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2999 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3000 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3001 and ipa-type-escape passes.
3002 * tree-pass.h (pass_ipa_type_escape): Remove.
3003 (pass_ipa_struct_reorg): Likewise.
3004 * ipa-struct-reorg.h: Remove.
3005 * ipa-struct-reorg.c: Likewise.
3006 * ipa-type-escape.h: Likewise.
3007 * ipa-type-escape.c: Likewise.
3008 * doc/invoke.texi (-fipa-struct-reorg): Remove.
3009 (--param struct-reorg-cold-struct-ratio): Likewise.
3010 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3011 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3012 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3014 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3016 * config/s390/2084.md: Enable all insn reservations also for z9_ec
3017 cpu attribute value.
3018 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3019 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3020 * config/s390/s390.c (processor_flags_table): New constant array.
3021 (s390_handle_arch_option): Remove.
3022 (s390_handle_option): Remove s390_handle_arch_option invocations
3023 and OPT_mwarn_framesize_ handling.
3024 (s390_option_override): Remove s390_handle_arch_option invocation.
3025 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3027 * config/s390/s390.md (cpu attribute): Add z9_ec value.
3028 * config/s390/s390.opt (s390_tune, s390_arch)
3029 (march=): Replace s390_arch_option enum and values with
3030 processor_type. Set variable name to s390_arch. Set
3031 initialization value.
3032 (mtune=): Replace s390_arch_option with processor_type. Set
3033 variable name to s390_tune. Set initialization value.
3035 2011-03-23 Julian Brown <julian@codesourcery.com>
3037 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3038 accesses which are not naturally aligned.
3040 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3043 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3045 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3047 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3048 parameter from "int" to "enum insn_code".
3049 (expand_operand_type): New enum.
3050 (expand_operand): New structure.
3051 (create_expand_operand): New function.
3052 (create_fixed_operand, create_output_operand): Likewise
3053 (create_input_operand, create_convert_operand_to): Likewise.
3054 (create_convert_operand_from, create_address_operand): Likewise.
3055 (create_integer_operand): Likewise.
3056 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3057 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3058 (expand_insn, expand_jump_insn): Likewise.
3059 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3060 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3061 (expand_movstr, expand_builtin___clear_cache): Likewise.
3062 (expand_builtin_lock_release): Likewise.
3063 * explow.c (allocate_dynamic_stack_space): Likewise.
3064 (probe_stack_range): Likewise. Allow check_stack to FAIL,
3065 and use the default handling in that case.
3066 * expmed.c (check_predicate_volatile_ok): Delete.
3067 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3068 (emit_cstore): Likewise.
3069 * expr.c (emit_block_move_via_movmem): Likewise.
3070 (set_storage_via_setmem, expand_assignment): Likewise.
3071 (emit_storent_insn, try_casesi): Likewise.
3072 (emit_single_push_insn): Likewise. Allow the expansion to fail.
3073 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3074 (expand_vec_shift_expr, expand_binop_directly): Likewise.
3075 (expand_twoval_unop, expand_twoval_binop): Likewise.
3076 (expand_unop_direct, emit_indirect_jump): Likewise.
3077 (emit_conditional_move, vector_compare_rtx): Likewise.
3078 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3079 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3080 (expand_sync_lock_test_and_set): Likewise.
3081 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
3082 (emit_unop_insn): Likewise.
3083 (expand_copysign_absneg): Change icode to an insn_code.
3084 (create_convert_operand_from_type): New function.
3085 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3086 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3087 (expand_insn, expand_jump_insn): Likewise.
3088 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3089 than const_int_operand for operand 2.
3091 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3093 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3096 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3098 * emit-rtl.c (emit_pattern_before_noloc): New function.
3099 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
3100 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
3101 (emit_pattern_after_noloc): New function.
3102 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
3103 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
3105 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3107 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
3108 (__ffsDI2): Likewise.
3110 2011-03-22 Richard Henderson <rth@redhat.com>
3112 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
3113 of !TARGET_ABI_OPEN_VMS.
3114 (alpha_trampoline_init, alpha_start_function): Likewise.
3115 (alpha_expand_epilogue, alpha_file_start): Likewise.
3116 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
3117 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
3118 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
3119 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
3120 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
3122 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3124 * config/s390/s390-opts.h: New.
3125 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
3126 s390_arch_flags, s390_warn_framesize, s390_stack_size,
3127 s390_stack_guard): Remove.
3128 (s390_handle_arch_option): Return void. Take enum
3129 s390_arch_option value instead of string and searching array.
3130 (s390_handle_option): Don't assert that global structures are in
3131 use. Access variables via opts pointer. Use error_at. Don't use
3132 sscanf for -mstack-guard= or -mstack-size=. Update call to
3133 s390_handle_arch_option.
3134 (s390_option_override): Update call to s390_handle_arch_option.
3135 (s390_emit_prologue): Use %d format for s390_stack_size in
3136 diagnostic. Use %wd for HOST_WIDE_INT.
3137 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
3138 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
3139 * config/s390/s390.opt (config/s390/s390-opts.h): New
3140 HeaderInclude entry.
3141 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
3142 s390_arch_flags, s390_warn_framesize): New Variable entries.
3143 (s390_arch_option): New Enum and EnumValue entries.
3144 (march=): Use Enum instead of Var.
3145 (mstack-guard=, mstack-size=): Use UInteger and Var.
3148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3150 * config/score/score.c (score_handle_option): Don't assert that
3151 global structures are in use. Access target_flags via opts
3152 pointer. Use value of -march= option to determine target_flags
3154 * config/score/score.opt (march=): Use Enum.
3155 (score_arch): New Enum and EnumValue entries.
3157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3159 * config/mep/mep.c (option_mtiny_specified): Remove.
3160 (mep_option_override): Move register handling for -mivc2 from
3161 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
3162 instead of option_mtiny_specified.
3163 (mep_handle_option): Access target_flags via opts pointer. Don't
3164 assert that global structures are in use. Defer part of -mivc2
3165 handling and move it to mep_option_override.
3166 * config/mep/mep.opt (IVC2): New Mask entry.
3167 (mivc2): Use Var and Defer instead of Mask.
3169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3171 * config/v850/v850-opts.h: New.
3172 * config/v850/v850.c (small_memory): Replace with
3173 small_memory_physical_max array. Make that array static const.
3174 (v850_handle_memory_option): Take integer value of argument. Take
3175 gcc_options pointer, option text and location. Return void.
3176 Update for changes to small memory structures.
3177 (v850_handle_option): Access target_flags via opts pointer. Don't
3178 assert that global structures are in use. Update calls to
3179 v850_handle_memory_option.
3180 (v850_encode_data_area): Update references to small memory settings.
3181 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
3182 (enum small_memory_type): Move to v850-opts.h.
3183 * config/v850/v850.opt (config/v850/v850-opts.h): New
3184 HeaderInclude entry.
3185 (small_memory_max): New Variable entry.
3186 (msda): Replace by pair of options msda= and msda-. Use UInteger.
3187 (mtda, mzda): Likewise.
3189 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3191 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
3192 pointer. Don't assert that global structures are in use.
3194 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3196 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
3197 via opts pointer. Don't assert that global structures are in use.
3199 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3201 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
3202 (munix=93): Use Var.
3203 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
3204 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
3205 * config/pa/pa-opts.h: New.
3206 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3207 (pa_handle_option): Don't assert that global structures are in
3208 use. Access target_flags via opts pointer. Don't handle
3209 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3211 (pa_option_override): Handle deferred OPT_mfixed_range_.
3213 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3215 * config/mn10300/mn10300-opts.h: New.
3216 * config/mn10300/mn10300.c (mn10300_processor,
3217 mn10300_tune_string): Remove.
3218 (mn10300_handle_option): Don't assert that global structures are
3219 in use. Access mn10300_processor via opts pointer. Don't handle
3221 * config/mn10300/mn10300.h (enum processor_type): Move to
3223 (mn10300_processor): Remove.
3224 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
3225 HeaderInclude entry.
3226 (mn10300_processor): New Variable entry.
3229 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3231 * config/microblaze/microblaze.c: Don't include opts.h.
3232 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
3233 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
3234 (mno-clearbss): Use Var and Warn.
3236 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3238 * config/m32r/m32r-opts.h: New.
3239 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
3240 (m32r_handle_option): Don't assert that global structures are in
3241 use. Access target_flags and m32r_cache_flush_func via opts
3242 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
3243 OPT_mno_flush_trap here.
3244 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
3245 include of m32r-opts.h.
3246 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
3247 HeaderInclude entry.
3248 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
3249 (mmodel=): Use Enum and Var.
3250 (m32r_model): New Enum and EnumValue entries.
3251 (mno-flush-trap): Use Var.
3252 (msdata=): Use Enum and Var.
3253 (m32r_sdata): New Enum and EnumValue entries.
3255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3257 * config/m32c/m32c.c: Don't include opts.h.
3258 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
3259 m32c_handle_option): Remove.
3260 (m32c_option_override): Check global_options_set.x_target_memregs
3261 instead of target_memregs_set.
3262 * config/m32c/m32c.h (target_memregs): Remove.
3263 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
3266 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3268 * config/iq2000/iq2000-opts.h: New.
3269 * config/iq2000/iq2000.c: Don't include opts.h.
3270 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
3271 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
3272 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
3273 HeaderInclude entry.
3274 (iq2000_tune): New Variable entry.
3275 (march=): Add comment. Use Enum.
3276 (iq2000_arch): New Enum and EnumValue entries.
3277 (mcpu=): Use Enum and Var.
3278 (iq2000_tune): New Enum and EnumValue entries.
3280 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3282 * config/ia64/ia64-opts.h: New.
3283 * config/ia64/ia64.c (ia64_tune): Remove.
3284 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
3286 (ia64_option_override): Handle deferred OPT_mfixed_range_.
3287 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
3288 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
3289 HeaderInclude entry.
3290 (ia64_tune): New Variable entry.
3291 (mfixed-range=): Use Defer and Var.
3292 (mtune=): Use Enum and Var.
3293 (ia64_tune): New Enum and EnumValue entries.
3295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3297 * config/frv/frv-opts.h: New.
3298 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
3300 (frv_cpu_type): Remove.
3301 * config/frv/frv.c: Don't include opts.h.
3302 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
3303 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
3304 (frv_cpu_type): New Variable entry.
3305 (frv_cpu): New Enum and EnumValue entries.
3307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3309 * config/cris/cris.c (cris_handle_option): Access target_flags via
3310 opts pointer. Don't assert that global structures are in use.
3311 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
3312 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
3314 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3316 * config/bfin/bfin-opts.h: New.
3317 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
3318 bfin_si_revision, bfin_workarounds): Remove.
3319 (bfin_cpus): Make static const.
3320 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
3321 not bfin_lib_id_given.
3322 (bfin_handle_option): Don't set bfin_lib_id_given. Access
3323 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
3324 pointer. Use error_at. Don't assert that global structures are in use.
3325 * config/bfin/bfin.h: Include bfin-opts.h.
3326 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
3327 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
3328 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
3329 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
3332 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3334 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
3335 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
3336 or -msoft-float here.
3337 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
3338 -msoft-float and -mhard-float.
3339 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
3340 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3342 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
3344 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
3345 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
3347 (LIBGCC_SPEC): Don't handle -msoft-float.
3348 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
3350 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3352 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
3353 -mfloat-abi=*, not -msoft-float and -mhard-float.
3354 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
3356 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
3357 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
3358 mhard-float and msoft-float.
3359 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
3360 mfloat-abi=soft in comments, not mhard-float and msoft-float.
3361 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3362 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
3364 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
3365 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
3367 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
3369 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
3372 2011-03-22 Richard Henderson <rth@redhat.com>
3374 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
3375 TARGET_ABI_WINDOWS_NT.
3376 (alpha_output_function_end_prologue): Likewise.
3377 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
3378 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3379 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
3380 (trap, *movsi_nt_vms): Likewise.
3381 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
3382 (*tablejump_osf_nt_internal): Remove.
3383 * config/alpha/predicates.md (input_operand): Only test Pmode.
3385 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3387 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
3388 via opts pointer. Use error_at. Don't assert that global
3389 structures are in use.
3391 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3393 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
3394 (ix86_handle_option): Access ix86_isa_flags and
3395 ix86_isa_flags_explicit via opts pointer. Don't assert that
3396 global structures are in use.
3397 (ix86_function_specific_save, ix86_function_specific_restore):
3398 Update ix86_isa_flags_explicit field name.
3399 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
3400 (ix86_isa_flags_explicit): Rename TargetSave entry to
3401 x_ix86_isa_flags_explicit.
3403 2011-03-22 Richard Henderson <rth@redhat.com>
3405 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
3406 (alpha_option_override, direct_return): Likewise.
3407 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
3408 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
3409 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
3410 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3411 (alpha_expand_epilogue, alpha_end_function): Likewise.
3412 (alpha_init_libfuncs): Likewise.
3413 (struct machine_function): Remove unicosmk members.
3414 (print_operand) ['t']: Remove.
3415 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
3416 unicosmk_output_module_name, unicosmk_output_common,
3417 current_section_align, unicosmk_output_text_section_asm_op,
3418 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
3419 unicosmk_section_type_flags, unicosmk_unique_section,
3420 unicosmk_asm_named_section, unicosmk_insert_attributes,
3421 unicosmk_output_align, unicosmk_defer_case_vector,
3422 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
3423 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
3424 unicosmk_output_ssib, unicosmk_add_call_info_word,
3425 unicosmk_extern_head, unicosmk_output_default_externs,
3426 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
3427 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
3428 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
3429 * config/alpha/alpha-protos.h: Update.
3430 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
3431 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
3432 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
3433 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
3434 (*mulsi_se, mulvsi3): Likewise.
3435 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
3436 (*divmodsi_internal, call, call_value, realign): Likewise.
3437 (moddi3, umoddi3): Likewise; remove duplicate expander.
3438 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
3439 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
3440 (*movdi_nofix): Remove r/U alternative.
3441 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
3442 * config/alpha/constraints.md ("U"): Remove.
3443 * config/alpha/predicates.md (call_operand"): Don't test
3444 TARGET_ABI_UNICOSMK.
3446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3448 * target.def (handle_option): Take gcc_options and
3449 cl_decoded_option pointers and location_t.
3450 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
3451 * doc/tm.texi: Regenerate.
3452 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
3453 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
3454 * lto-opts.c (lto_reissue_options): Generate option structure for
3455 targetm.handle_option call.
3456 * opts.c (target_handle_option): Update call to
3457 targetm.handle_option. Remove assertions about values now passed
3459 * targhooks.c (default_target_handle_option): New.
3460 * targhooks.h (default_target_handle_option): Declare.
3461 * config/alpha/alpha.c: Include opts.h.
3462 (alpha_handle_option): Update to new hook interface.
3463 * config/arm/arm.c: Include opts.h.
3464 (arm_handle_option): Update to new hook interface.
3465 * config/arm/t-arm (arm.o): Update dependencies.
3466 * config/bfin/bfin.c: Include opts.h.
3467 (bfin_handle_option): Update to new hook interface.
3468 * config/cris/cris.c: Include opts.h.
3469 (cris_handle_option): Update to new hook interface.
3470 * config/frv/frv.c: Include opts.h.
3471 (frv_handle_option): Update to new hook interface.
3472 * config/i386/i386.c: Include opts.h.
3473 (ix86_handle_option): Update to new hook interface.
3474 (ix86_valid_target_attribute_inner_p): Generate option structure
3475 for call to ix86_handle_option.
3476 * config/i386/t-i386 (i386.o): Update dependencies.
3477 * config/ia64/ia64.c: Include opts.h.
3478 (ia64_handle_option): Update to new hook interface.
3479 * config/ia64/t-ia64 (ia64.o): Update dependencies.
3480 * config/iq2000/iq2000.c: Include opts.h.
3481 (iq2000_handle_option): Update to new hook interface.
3482 * config/m32c/m32c.c: Include opts.h.
3483 (m32c_handle_option): Update to new hook interface.
3484 * config/m32r/m32r.c: Include opts.h.
3485 (m32r_handle_option): Update to new hook interface.
3486 * config/m68k/m68k.c: Include opts.h.
3487 (m68k_handle_option): Update to new hook interface.
3488 * config/mep/mep.c: Include opts.h.
3489 (mep_handle_option): Update to new hook interface.
3490 * config/microblaze/microblaze.c: Include opts.h.
3491 (microblaze_handle_option): Update to new hook interface.
3492 * config/mips/mips.c: Include opts.h.
3493 (mips_handle_option): Update to new hook interface.
3494 * config/mn10300/mn10300.c: Include opts.h.
3495 (mn10300_handle_option): Update to new hook interface.
3496 * config/pa/pa.c: Include opts.h.
3497 (pa_handle_option): Update to new hook interface.
3498 * config/pdp11/pdp11.c: Include opts.h.
3499 (pdp11_handle_option): Update to new hook interface.
3500 * config/rs6000/rs6000.c: Include opts.h.
3501 (rs6000_handle_option): Update to new hook interface.
3502 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3503 * config/rx/rx.c: Include opts.h.
3504 (rx_handle_option): Update to new hook interface.
3505 * config/s390/s390.c: Include opts.h.
3506 (s390_handle_option): Update to new hook interface.
3507 * config/score/score.c: Include opts.h.
3508 (score_handle_option): Update to new hook interface.
3509 * config/sh/sh.c: Include opts.h.
3510 (sh_handle_option): Update to new hook interface.
3511 * config/sparc/sparc.c: Include opts.h.
3512 (sparc_handle_option): Update to new hook interface.
3513 * config/v850/v850.c: Include opts.h.
3514 (v850_handle_option): Update to new hook interface.
3516 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3518 * gcc.c (driver_unknown_option_callback): Only permit and save
3519 unknown -Wno- options.
3520 (driver_wrong_lang_callback): Save options directly instead of via
3521 driver_unknown_option_callback.
3523 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3525 * combine.c (simplify_set): Try harder to find the best CC mode when
3526 simplifying a nested COMPARE on the RHS.
3528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3530 * config/alpha/gnu.h: Remove.
3531 * config/arc: Remove directory.
3532 * config/arm/netbsd.h: Remove.
3533 * config/arm/t-pe: Remove.
3534 * config/crx: Remove directory.
3535 * config/i386/netbsd.h: Remove.
3536 * config/m68hc11: Remove directory.
3537 * config/m68k/uclinux-oldabi.h: Remove.
3538 * config/mcore/mcore-pe.h: Remove.
3539 * config/mcore/t-mcore-pe: Remove.
3540 * config/netbsd-aout.h: Remove.
3541 * config/rs6000/gnu.h: Remove.
3542 * config/sh/sh-symbian.h: Remove.
3543 * config/sh/symbian-base.c: Remove.
3544 * config/sh/symbian-c.c: Remove.
3545 * config/sh/symbian-cxx.c: Remove.
3546 * config/sh/symbian-post.h: Remove.
3547 * config/sh/symbian-pre.h: Remove.
3548 * config/sh/t-symbian: Remove.
3549 * config/svr3.h: Remove.
3550 * config/vax/netbsd.h: Remove.
3551 * config.build: Don't handle i[34567]86-*-pe.
3552 * config.gcc: Remove handling of deprecations for most deprecated
3554 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3555 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3556 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3557 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3558 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3559 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3561 * config.host: Don't handle i[34567]86-*-pe.
3562 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3563 (ASM_SPEC32): Don't handle -mcall-gnu.
3564 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3566 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3567 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3568 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3569 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3570 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3571 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3572 conditional on SYMBIAN.
3573 * configure.ac: Don't handle powerpc*-*-gnu*.
3574 * configure: Regenerate.
3575 * doc/extend.texi (interrupt attribute): Don't mention CRX.
3576 * doc/install-old.texi (m6811, m6812): Don't mention.
3577 * doc/install.texi (arc-*-elf*): Don't document multilib option.
3578 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3579 (m68k-uclinuxoldabi): Don't mention.
3580 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3582 (-mcall-gnu): Remove.
3583 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3584 families): Remove constraint documentation.
3586 2011-03-22 Marius Strobl <marius@FreeBSD.org>
3588 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3589 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3590 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3592 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
3594 * config/avr/avr-protos.h (expand_epilogue): Change prototype
3595 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3596 * config/avr/avr.c (init_cumulative_args)
3597 (avr_function_arg_advance): Use it.
3598 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3600 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3601 (avr_function_ok_for_sibcall): ...this new function.
3602 (avr_lookup_function_attribute1): New static Function.
3603 (avr_naked_function_p, interrupt_function_p)
3604 (signal_function_p, avr_OS_task_function_p)
3605 (avr_OS_main_function_p): Use it.
3606 * config/avr/avr.md ("sibcall", "sibcall_value")
3607 ("sibcall_epilogue"): New expander.
3608 ("*call_insn", "*call_value_insn"): New insn.
3609 ("call_insn", "call_value_insn"): Remove
3610 ("call", "call_value", "epilogue"): Change expander to handle
3613 2011-03-21 Nick Clifton <nickc@redhat.com>
3615 * doc/invoke.texi (Overall Options): Move closing brace to end of
3617 (Optimization Options): Add missing @gol.
3618 (Directory Options): Likewise.
3619 (i386 and x86-64 Options): Likewise.
3620 (RS6000 and PowerPC Options): Likewise.
3621 (i386 and x86-64 Windows Options): Likewise.
3622 (V850 Options): Add text missing from descriptions.
3624 2011-03-22 Richard Henderson <rth@redhat.com>
3626 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3627 (avr_incoming_return_addr_rtx): New.
3628 (emit_push_byte): New.
3629 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3630 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3631 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3632 (emit_pop_byte): New.
3633 (expand_epilogue): Use it. Pop frame pointer by bytes.
3634 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3635 (INCOMING_RETURN_ADDR_RTX): New.
3636 (INCOMING_FRAME_SP_OFFSET): New.
3637 (ARG_POINTER_CFA_OFFSET): New.
3638 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3639 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3642 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3644 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3646 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3647 (FUNCTION_ARG_ADVANCE): Likewise.
3648 * tm.texi.in: Change references to them to hook references.
3649 * tm.texi: Regenerate.
3650 * targhooks.c (default_function_arg): Eliminate check for target
3652 (default_function_incoming_arg): Likewise.
3653 (default_function_arg_advance): Likewise.
3654 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3655 (function_arg_advance): Likewise.
3656 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3658 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3660 * tree.c (build_call_1): New function.
3661 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3663 2011-03-22 Richard Guenther <rguenther@suse.de>
3665 PR tree-optimization/48228
3666 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3667 for single-arg PHIs.
3669 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
3671 PR rtl-optimization/48143
3672 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3673 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3674 sse2_cvtps2pd): Likewise.
3676 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3678 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3680 2011-03-22 Richard Guenther <rguenther@suse.de>
3682 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3683 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3684 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3685 and REALIGN_LOAD_EXPR.
3686 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3687 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3688 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3689 DOT_PROD_EXPR case ...
3690 (expand_expr_real_2): ... here.
3691 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3692 and REALIGN_LOAD_EXPR.
3693 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3694 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3695 (vect_create_epilog_for_reduction): Likewise.
3696 (vectorizable_reduction): Likewise.
3697 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3698 * tree-vect-stmts.c (vectorizable_load): Likewise.
3700 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3702 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3704 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3706 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3707 handling for PLTOFF/GOTOFF.
3709 2011-03-22 Nick Clifton <nickc@redhat.com>
3711 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3712 trailing backslash from the end of the macro definition.
3714 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3716 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3719 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3721 * expr.h (prepare_operand): Move to...
3722 * optabs.h (prepare_operand): ...here and change the insn code
3723 parameter from "int" to "enum insn_code".
3724 (insn_operand_matches): Declare.
3725 * expr.c (init_expr_target): Use insn_operand_matches.
3726 (compress_float_constant): Likewise.
3727 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3728 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3729 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3730 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3732 (gen_cond_trap): Likewise.
3733 (prepare_operand): Likewise. Change icode to an insn_code.
3734 (insn_operand_matches): New function.
3735 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3736 * reload1.c (gen_reload): Likewise.
3737 * targhooks.c (default_secondary_reload): Likewise.
3739 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3741 * config/alpha/alpha.md (unspec): New define_c_enum.
3744 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3747 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3748 between a call and its CALL_ARG_LOCATION note.
3750 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3752 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3754 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3758 * c-common.c (shorten_compare): If primopN is first sign-extended
3759 to opN and then zero-extended to result type, set primopN to opN.
3761 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3763 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3764 for barrier handlers.
3766 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3768 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3769 UNSPEC constants to be in the unspec enumeration, and redefine
3770 all UNSPECV constants to be in the unspecv enumeration, so that
3771 dumps print which unspec/unspec_volatile this is.
3772 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3773 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3774 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3775 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3776 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3778 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3779 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3780 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3781 * config/rs6000/sync.md (isync, lwsync): Ditto.
3783 2011-03-21 Richard Guenther <rguenther@suse.de>
3785 * params.def (lto-min-partition): Fix typo.
3787 2011-03-21 Richard Guenther <rguenther@suse.de>
3790 * c-decl.c (grokdeclarator): Drop to the main variant only
3791 for array types. Drop flag_gen_aux_info check.
3793 2011-03-21 Richard Guenther <rguenther@suse.de>
3795 PR translation/47911
3796 * params.def (lto-partitions): Fix typo.
3797 (lto-min-partition): Fix wording.
3799 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3801 * config/rs6000/t-freebsd: Remove duplication from file.
3803 2011-03-21 Richard Guenther <rguenther@suse.de>
3806 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3808 2011-03-21 Richard Guenther <rguenther@suse.de>
3811 * params.def (lto-partitions): Require at least 1 partition.
3813 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3815 * gthr-solaris.h: Remove.
3816 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3817 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3818 (LIB_SPEC): Likewise.
3819 * config/sol2.opt (threads): Remove.
3820 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3821 (sparc*-*-solaris2*): Likewise.
3822 * configure.ac (enable_threads): Enable solaris support.
3823 * configure: Regenerate.
3824 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3825 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3828 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3830 * config.gcc: Obsolete *-*-solaris2.8*.
3831 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3833 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3836 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3837 reference. Solaris 8 perl works.
3839 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3842 * doc/install.texi (Prerequisites): Move jar etc. up.
3843 Explain support library version requirements.
3845 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848 * doc/install.texi (Prerequisites): Move Perl to build
3849 requirements. Always necessary on Solaris 2 with Sun ld.
3851 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3853 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3855 (Specific, i?86-*-solaris2.[89]): Likewise.
3856 (Specific, i?86-*-solaris2.10): Likewise.
3857 (Specific, mips-sgi-irix6): Likewise.
3858 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3859 Update for binutils 2.21.
3861 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3863 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3864 Allow -fuse-linker-plugin for non-default plugin linker.
3865 * configure: Regenerate.
3867 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3870 * gengtype.c (files_rules): Added rule for cp/parser.h.
3872 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3875 * config/s390/s390.c (s390_delegitimize_address): Don't call
3876 lowpart_subreg if orig_x has BLKmode.
3878 2011-03-21 Kai Tietz <ktietz@redhat.com>
3881 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3882 * tree.h (attribute_spec): Add new member affects_type_identity.
3883 * attribs.c (empty_attribute_table): Adjust attribute_spec
3885 * config/alpha/alpha.c: Likewise.
3886 * config/arc/arc.c: Likewise.
3887 * config/arm/arm.c: Likewise.
3888 * config/avr/avr.c: Likewise.
3889 * config/bfin/bfin.c: Likewise.
3890 * config/crx/crx.c: Likewise.
3891 * config/darwin.h: Likewise.
3892 * config/h8300/h8300.c: Likewise.
3893 * config/i386/cygming.h: Likewise.
3894 * config/i386/i386.c: Likewise.
3895 * config/ia64/ia64.c: Likewise.
3896 * config/m32c/m32c.c: Likewise.
3897 * config/m32r/m32r.c: Likewise.
3898 * config/m68hc11/m68hc11.c: Likewise.
3899 * config/m68k/m68k.c: Likewise.
3900 * config/mcore/mcore.c: Likewise.
3901 * config/mep/mep.c: Likewise.
3902 * config/microblaze/microblaze.c: Likewise.
3903 * config/mips/mips.c: Likewise.
3904 * config/rs6000/rs6000.c: Likewise.
3905 * config/rx/rx.c: Likewise.
3906 * config/sh/sh.c: Likewise.
3907 * config/sol2.h: Likewise.
3908 * config/sparc/sparc.c: Likewise.
3909 * config/spu/spu.c: Likewise.
3910 * config/stormy16/stormy16.c: Likewise.
3911 * config/v850/v850.c: Likewise.
3913 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3915 * simplify-rtx.c (simplify_binary_operation_1): Handle
3916 (xor (and A B) C) case when B and C are both constants.
3918 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3920 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3922 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3925 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3927 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3929 PR rtl-optimization/48156
3930 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3931 assume df and df_lr are not NULL.
3933 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3936 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3937 between a call and its CALL_ARG_LOCATION note.
3939 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3942 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3943 between a call and its corresponding CALL_ARG_LOCATION note.
3945 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3947 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3948 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3949 * haifa-sched.c (setup_ref_regs): Ditto.
3950 * caller-save.c (add_used_regs_1): Ditto.
3951 * dse.c (look_for_hardregs): Ditto.
3952 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3953 * sched-rgn.c (check_live_1): Ditto.
3955 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3957 * c-decl.c (diagnose_mismatched_decls): Give an error for
3958 redefining a typedef with variably modified type.
3960 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3962 * c-decl.c (grokfield): Don't allow typedefs for structures or
3963 unions with no tag by default.
3964 * doc/extend.texi (Unnamed Fields): Update.
3966 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3968 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3969 Rewrite using indirect functions.
3970 (lwp_slwpcb): Ditto.
3971 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3972 (avx_vinsertf128<mode>): Ditto.
3974 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3976 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3979 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3981 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3982 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3984 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3986 PR rtl-optimization/48170
3987 * gcse.c (hoist_code): Remove bogus asserts.
3989 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3991 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3992 computation for prologue/epilogue.
3994 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3996 * Makefile.in (check-consistency): Remove.
3998 2011-03-18 Jakub Jelinek <jakub@redhat.com>
4001 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4002 arange_table_in_use is 0, but either text_section_used or
4003 cold_text_section_used is true. Don't call it if
4004 !info_section_emitted.
4006 2011-03-18 Anatoly Sokolov <aesok@post.ru>
4008 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4009 FUNCTION_VALUE_REGNO_P): Remove.
4010 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4012 * config/avr/avr.c (avr_ret_register): Make static inline.
4013 (avr_function_value_regno_p): New function.
4014 (avr_libcall_value): Make static. Add 'func' argument.
4015 (avr_function_value): Make static. Rename 'func' argument to
4016 'fn_decl_or_type', forward it to avr_libcall_value. Call
4017 avr_ret_register function instead of RET_REGISTER macro.
4018 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4020 2011-03-18 Jason Merrill <jason@redhat.com>
4023 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4025 2011-03-18 Richard Guenther <rguenther@suse.de>
4027 * doc/install.texi (--enable-gold): Remove.
4028 (--with-plugin-ld): Document.
4029 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4031 2011-03-18 Andrew Pinski <pinskia@gmail.com>
4034 * expr.c (optimize_bitfield_assignment_op): Revamp to work
4035 again after expansion changes.
4037 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
4039 * combine.c (try_combine): Do simplification only call of
4040 subst() on i2 even when i1 is present. Update comments.
4042 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
4044 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4045 and UNSPEC_PCREL_SYMOFF.
4047 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4049 * config/s390/s390.md: Use define_c_enum for the unspec constant
4052 2011-03-18 Richard Henderson <rth@redhat.com>
4053 Jakub Jelinek <jakub@redhat.com>
4056 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4057 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4059 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4062 * combine.c (cant_combine_insn_p): Don't check zero/sign
4063 extended hard registers.
4065 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4068 * combine.c (cant_combine_insn_p): Check zero/sign extended
4071 2011-03-17 Anatoly Sokolov <aesok@post.ru>
4073 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4074 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4075 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4076 Change return type to bool.
4077 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4079 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4082 * var-tracking.c (prepare_call_arguments): If CALL target
4083 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4084 pc instead of looking it up using cselib_lookup and use
4085 Pmode for it if x has VOIDmode.
4086 * dwarf2out.c (gen_subprogram_die): If also both first and
4087 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4090 * function.c (assign_parms): For data.passed_pointer parms
4091 use MEM of data.entry_parm instead of data.entry_parm itself
4092 as DECL_INCOMING_RTL.
4093 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4094 also when passed and declared mode is the same, DECL_RTL
4095 is a MEM with pseudo as address and DECL_INCOMING_RTL is
4098 2011-03-16 Jeff Law <law@redhat.com>
4100 PR rtl-optimization/37273
4101 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4102 handle them like argument loads from stack slots. Do not double
4103 count memory for memory constants and argument loads from stack slots.
4105 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4108 * var-tracking.c (prepare_call_arguments): Check SUBREG.
4110 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4113 * config/i386/i386.opt: Add Save to -mavx and -mfma.
4115 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4118 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
4120 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
4121 Clear call_arg_locations and call_arg_loc_last always.
4124 * var-tracking.c (prepare_call_arguments): If argument needs to be
4125 passed by reference, adjust argtype and mode.
4127 2011-03-17 Richard Guenther <rguenther@suse.de>
4130 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
4131 a value make sure to fold the statement.
4133 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
4136 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
4137 return condition with !cfun->calls_alloca.
4139 2011-03-17 Richard Guenther <rguenther@suse.de>
4142 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4143 origin for decls in other ltrans units.
4144 (input_varpool_node): Likewise.
4146 2011-03-17 Richard Guenther <rguenther@suse.de>
4149 * tree-object-size.c (compute_object_offset): Properly return
4150 the offset operand of MEM_REFs as sizetype.
4152 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4154 PR rtl-optimization/48141
4155 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
4156 * dse.c: Include params.h.
4157 (active_local_stores_len): New variable.
4158 (add_wild_read, dse_step1): Clear it when setting active_local_stores
4160 (record_store, check_mem_read_rtx): Decrease it when removing
4162 (scan_insn): Likewise. Increase it when adding to chain, if it
4163 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
4164 set active_local_stores to NULL before the addition.
4165 * Makefile.in (dse.o): Depend on $(PARAMS_H).
4167 PR rtl-optimization/48141
4168 * dse.c (record_store): If no positions are needed in an insn
4169 that cannot be deleted, at least unchain it from active_local_stores.
4171 2011-03-16 Dodji Seketeli <dodji@redhat.com>
4174 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
4175 (lookup_type_die_strip_naming_typedef): ... here.
4176 (get_context_die): Use it.
4177 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
4178 the anonymous struct named by the naming typedef.
4180 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
4183 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
4184 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4186 2011-03-16 Jeff Law <law@redhat.com>
4188 * tree-vrp.c (identify_jump_threads): Slightly simplify type
4189 check for operands of conditional. Allow type to be a pointer.
4191 2011-03-16 Richard Guenther <rguenther@suse.de>
4193 PR tree-optimization/48149
4194 * fold-const.c (fold_binary_loc): Fold
4195 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
4197 2011-03-16 Richard Guenther <rguenther@suse.de>
4199 PR tree-optimization/26134
4200 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
4201 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
4202 (non_rewritable_mem_ref_base): Handle complex type component
4203 accesses, constrain offsets for vector and complex extracts
4206 2011-03-16 Richard Guenther <rguenther@suse.de>
4208 PR tree-optimization/48146
4209 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4210 operands avoiding the need for renaming.
4212 2011-03-16 Richard Guenther <rguenther@suse.de>
4214 * gimple-fold.c (maybe_fold_reference): Open-code relevant
4215 constant folding. Move MEM_REF canonicalization first.
4216 Rely on fold_const_aggregate_ref for initializer folding.
4217 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
4219 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4222 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4223 arg0/arg1 or their arguments are always fold converted to matching
4226 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
4229 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4232 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
4233 Handle in-tree gold.
4234 (ld_vers): Extract binutils version for gold.
4235 (gcc_cv_ld_hidden): Handle gold here.
4236 (gcc_cv_lto_plugin): Determine level of linker plugin support.
4237 * configure: Regenerate.
4238 * config.in: Regenerate.
4239 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
4240 -fuse-linker-plugin otherwise.
4241 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
4242 (LINK_COMMAND_SPEC): Use it.
4243 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
4245 2011-03-16 Jakub Jelinek <jakub@redhat.com>
4247 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
4248 * calls.c: Remove debug.h include.
4249 (emit_call_1): Don't call virtual_call_token debug hook.
4250 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
4251 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
4252 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
4253 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
4254 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
4255 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
4256 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
4257 dwarf2out_virtual_call): Remove.
4258 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
4259 copy_call_info and virtual_call hooks.
4260 (dwarf2out_init): Don't initialize vcall_insn_table,
4261 debug_dcall_section and debug_vcall_section.
4262 (prune_unused_types): Don't mark nodes from dcall_table.
4263 (dwarf2out_finish): Don't output dcall or vcall tables.
4264 * final.c (final_scan_insn): Don't call direct_call or
4265 virtual_call debug hooks.
4266 * debug.h (struct gcc_debug_hooks): Remove direct_call,
4267 virtual_call_token, copy_call_info and virtual_call hooks.
4268 (debug_nothing_uid): Remove prototype.
4269 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
4270 copy_call_info and virtual_call hooks.
4271 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4272 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4273 * debug.c (do_nothing_debug_hooks): Likewise.
4274 (debug_nothing_uid): Remove.
4275 * doc/invoke.texi (-fenable-icf-debug): Remove.
4276 * common.opt (-fenable-icf-debug): Likewise.
4278 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
4279 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
4280 call's MEM. Handle functions returning aggregate through a hidden
4281 first pointer. For virtual calls add clobbered pc to call arguments
4283 * dwarf2out.c (gen_subprogram_die): Emit
4284 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
4288 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
4289 * rtl.h (ENTRY_VALUE_EXP): Define.
4290 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
4291 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4292 * print-rtl.c (print_rtx): Likewise.
4293 * gengtype.c (adjust_field_rtx_def): Likewise.
4294 * var-tracking.c (vt_add_function_parameter): Adjust
4295 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
4296 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
4297 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
4298 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
4299 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
4301 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
4302 Call var_location debug hook even on CALL_INSNs.
4303 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
4304 * rtl.def (ENTRY_VALUE): New.
4305 * dwarf2out.c: Include cfglayout.h.
4306 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4307 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
4308 (struct call_arg_loc_node): New type.
4309 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
4310 tail_call_site_count): New variables.
4311 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
4312 DW_TAG_GNU_call_site_parameter.
4313 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
4314 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
4315 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
4316 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
4317 and DW_AT_GNU_all_source_call_sites.
4318 (mem_loc_descriptor): Handle ENTRY_VALUE.
4319 (add_src_coords_attributes): Don't add enything if
4320 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
4321 (dwarf2out_abstract_function): Save and clear call_arg_location,
4322 call_site_count and tail_call_site_count around dwarf2out_decl call.
4323 (gen_call_site_die): New function.
4324 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
4325 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
4326 (dwarf2out_function_decl): Clear call_arg_locations,
4327 call_arg_loc_last, set call_site_count and tail_call_site_count
4328 to -1 and free block_map.
4329 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
4330 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
4331 followed by any real instructions.
4332 (dwarf2out_begin_function): Set call_site_count and
4333 tail_call_site_count to 0.
4334 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
4335 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
4336 attempt to force a DIE for it and worst case remove the attribute.
4337 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
4338 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
4340 * var-tracking.c: Include tm_p.h.
4341 (vt_stack_adjustments): For calls call note_register_arguments.
4342 (argument_reg_set): New variable.
4343 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
4344 ensure the VALUE is resolved.
4345 (call_arguments): New variable.
4346 (prepare_call_arguments): New function.
4347 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
4348 (struct expand_loc_callback_data): Add ignore_cur_loc field.
4349 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
4350 always use the best expression.
4351 (vt_expand_loc): Add ignore_cur_loc argument.
4352 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
4353 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
4354 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
4356 (vt_add_function_parameter): Use cselib_lookup_from_insn.
4357 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
4358 argument. Don't call cselib_preserve_only_values and
4360 (note_register_arguments): New function.
4361 (vt_initialize): Compute argument_reg_set. Call
4362 vt_add_function_parameters before processing basic blocks instead of
4363 afterwards. For calls call prepare_call_arguments before calling
4364 cselib_process_insn.
4365 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
4366 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
4367 (var-tracking.o): Depend on $(TM_P_H).
4368 * cfglayout.h (insn_scope): New prototype.
4369 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
4370 * cfglayout.c (insn_scope): No longer static.
4371 * insn-notes.def (CALL_ARG_LOCATION): New.
4372 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
4373 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
4374 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
4375 nothing for DECL_EXTERNAL BLOCK_VARS.
4377 2011-03-16 Alan Modra <amodra@gmail.com>
4380 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4381 create invalid offset address for vsx splat insn.
4382 * config/rs6000/predicates.md (splat_input_operand): New.
4383 * config/rs6000/vsx.md (vsx_splat_*): Use it.
4385 2011-03-15 Xinliang David Li <davidxl@google.com>
4388 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
4389 (normalize_preds): New function.
4390 (is_use_properly_guarded): Normalize def predicates.
4392 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4395 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
4396 in the output template.
4398 2011-03-15 Richard Guenther <rguenther@suse.de>
4401 * tree-pretty-print.c (dump_function_declaration): Properly
4402 dump unprototyped and varargs function types.
4404 2011-03-15 Richard Guenther <rguenther@suse.de>
4406 PR tree-optimization/13954
4407 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
4410 2011-03-15 Richard Guenther <rguenther@suse.de>
4412 PR tree-optimization/48037
4413 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
4414 selects into BIT_FIELD_REFs.
4415 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
4418 2011-03-15 Jakub Jelinek <jakub@redhat.com>
4420 PR tree-optimization/48129
4421 * builtins.c (fold_builtin_snprintf): Convert to type of
4422 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
4423 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
4425 2011-03-15 Richard Guenther <rguenther@suse.de>
4427 PR tree-optimization/41490
4428 * tree-ssa-dce.c (propagate_necessity): Handle returns without
4429 value but with VUSE.
4430 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
4432 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
4433 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
4434 * tree-tailcall.c (find_tail_calls): Ignore returns.
4436 2011-03-15 Richard Guenther <rguenther@suse.de>
4439 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
4440 or variable-indexed array accesses when in gimple form.
4442 2011-03-15 Richard Guenther <rguenther@suse.de>
4444 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
4446 2011-03-15 Alan Modra <amodra@gmail.com>
4449 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
4450 presume symbol_refs without a symbol_ref_decl are suitably
4451 aligned, nor other trees we may see here. Handle anchor symbols.
4452 (legitimate_constant_pool_address_p): Comment. Add mode param.
4453 Check cmodel=medium addresses. Adjust all calls.
4454 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
4455 creating cmodel=medium optimized access to locals.
4456 * config/rs6000/constraints.md (R): Pass QImode to
4457 legitimate_constant_pool_address_p.
4458 * config/rs6000/predicates.md (input_operand): Pass mode to
4459 legitimate_constant_pool_address_p.
4460 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4463 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4466 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4467 64-bit constants being loaded into registers other than GPRs such
4468 as loading 0 into a VSX register.
4470 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4472 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
4474 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4477 * builtins.c (fold_builtin_snprintf): New function.
4478 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4479 (fold_builtin_4): Likewise.
4482 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4483 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
4484 and C - X == X also strip nops from +/-/p+ operand.
4485 When optimizing -X == C, fold C to arg0's type.
4488 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4489 emit it as add_AT_int instead of add_AT_unsigned.
4491 2011-03-14 Tom Tromey <tromey@redhat.com>
4493 * unwind-dw2.c: Include sys/sdt.h if it exists.
4494 (_Unwind_DebugHook): Use STAP_PROBE2.
4495 * config.in, configure: Rebuild.
4496 * configure.ac: Check for sys/sdt.h.
4498 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
4500 * config/i386/i386.md (ROUND_FLOOR): New constant.
4501 (ROUND_CEIL): Ditto.
4502 (ROUND_TRUNC): Ditto.
4503 (ROUND_MXCSR): Ditto.
4504 (ROUND_NO_EXC): Ditto.
4505 (rint<mode>2): Use new defines instead of numerical constants.
4506 (floor<mode>2): Ditto.
4507 (ceil<mode>2): Ditto.
4508 (btrunc<mode>2): Ditto.
4509 * config/i386/i386-builtin-types.def: Define ROUND function type
4511 * config/i386/i386.c (enum ix86_builtins): Add
4512 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4513 (struct builtin_description): Add
4514 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4515 (ix86_expand_sse_round): New static function.
4516 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4518 (ix86_builtin_vectorized_function): Handle
4519 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4521 2011-03-14 Tom Tromey <tromey@redhat.com>
4523 * c-parser.c (c_parser_asm_string_literal): Clear
4524 warn_overlength_strings.
4526 2011-03-14 Tom Tromey <tromey@redhat.com>
4528 * c-parser.c (disable_extension_diagnostics): Save
4529 warn_overlength_strings.
4530 (restore_extension_diagnostics): Restore warn_overlength_strings.
4532 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4534 * BASE-VER: Change to 4.7.0.
4536 2011-03-14 Richard Guenther <rguenther@suse.de>
4539 * tree.c (build_vector_from_val): Adjust assert to requirements
4542 2011-03-14 Jakub Jelinek <jakub@redhat.com>
4545 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
4547 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
4549 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4550 terms of target_flags_explicit. Adjust copyright year.
4552 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4553 * config/rs6000/t-freebsd: New file. Add override for
4556 2011-03-13 Chris Demetriou <cgd@google.com>
4558 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4559 (-fno-diagnostics-show-option): this, to reflect current default.
4560 (-Werror=): Update text about -fno-diagnostics-show-option.
4562 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
4565 * config/rs6000/predicates.md (easy_vector_constant_add_self,
4566 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4567 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4568 mode is not V2DImode or V2DFmode.
4569 (vspltis_constant): Do not handle V2DImode and V2DFmode.
4570 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4571 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4573 (movdi_internal64): Likewise.
4575 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
4577 PR tree-optimization/47127
4578 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4580 (set_cloog_options): Same.
4581 (scop_to_clast): Same.
4582 (print_clast_stmt): Do not call cloog_state_malloc and
4584 (print_generated_program): Same.
4586 * graphite-clast-to-gimple.h (cloog_state): Declared.
4587 (scop_to_clast): Adjust declaration.
4588 * graphite.c (cloog_state): Defined here.
4589 (graphite_initialize): Call cloog_state_malloc.
4590 (graphite_finalize): Call cloog_state_free.
4592 2011-03-11 Jason Merrill <jason@redhat.com>
4594 * attribs.c (lookup_attribute_spec): Take const_tree.
4597 2011-03-11 Joseph Myers <joseph@codesourcery.com>
4599 * config/sparc/sparc.c (sparc_option_override): Use
4600 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4602 2011-03-11 Richard Guenther <rguenther@suse.de>
4604 PR tree-optimization/48067
4605 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4606 multiplication result will be only used once on the target
4609 2011-03-11 Richard Guenther <rguenther@suse.de>
4611 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4613 2011-03-11 Richard Guenther <rguenther@suse.de>
4616 * tree.c (find_decls_types_r): Do not walk types only reachable
4617 from IDENTIFIER_NODEs.
4619 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4622 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4623 all vnode->force_output nodes as needed.
4625 2011-03-11 Jason Merrill <jason@redhat.com>
4628 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4629 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4631 2011-03-11 Martin Jambor <mjambor@suse.cz>
4633 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4636 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4638 PR tree-optimization/48063
4639 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4640 inline functions called once if !tree_can_inline_p (node->callers).
4642 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
4644 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4646 * config/score/score3.c: Delete.
4647 * config/score/score3.h: Delete.
4648 * config/score/mul-div.S: Delete.
4649 * config/score/sfp-machine.h: Add new file.
4650 * config/score/constraints.md: Add new file.
4651 * config/score/t-score-softfp: Add new file.
4652 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4653 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4654 (score7_extra_constraint): Delete.
4655 (score7_option_override): Remove unused code.
4656 * config/score/score.c: Remove score3 and score5 define and code.
4657 * config/score/score.h: Remove score3 and score5 define and code.
4658 * config/score/score.md: Remove score3 template and unusual insn.
4659 * config/score/score.opt: Remove score3 and score5 options.
4661 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4663 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4664 when _HPUX_SOURCE is defined.
4665 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4667 2011-03-10 Jason Merrill <jason@redhat.com>
4670 * stor-layout.c (layout_type): Don't set structural equality
4671 on arrays of incomplete type.
4672 * tree.c (type_hash_eq): Handle comparing them properly.
4674 2011-03-10 Jakub Jelinek <jakub@redhat.com>
4677 * config/s390/s390.c (s390_delegitimize_address): Make sure the
4678 result mode matches original rtl mode.
4680 2011-03-10 Nick Clifton <nickc@redhat.com>
4682 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4683 (andsi3, andsi3_flags): Fix timings for three operand alternative.
4685 2011-03-09 Jakub Jelinek <jakub@redhat.com>
4687 PR rtl-optimization/47866
4688 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4689 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4690 if target wasn't scalar.
4691 * function.c (assign_stack_temp_for_type): Assert that neither
4692 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4693 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4695 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4697 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4699 * config/s390/s390-protos.h (s390_label_align): New prototype.
4700 * config/s390/s390.c (s390_label_align): New function.
4701 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4703 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4706 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4707 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4708 (output_vec_const_move): Ditto.
4710 2011-03-08 Anatoly Sokolov <aesok@post.ru>
4712 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4713 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4714 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4715 Change 'rclass' argument and result type to reg_class_t.
4716 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4718 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4720 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4721 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4722 (TARGET_MEMORY_MOVE_COST): Define.
4723 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4725 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4728 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4731 PR tree-optimization/48022
4732 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4735 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4738 * var-tracking.c (find_use_val): Return NULL for
4739 cui->sets && cui->store_p BLKmode MEMs.
4741 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4743 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4745 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4746 xstormy16_print_operand_address): Remove.
4747 * config/stormy16/stormy16.c (xstormy16_print_operand,
4748 xstormy16_print_operand_address): Make static.
4749 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4751 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4754 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4755 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4758 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4761 * cfgloopmanip.c (fix_bb_placements): Return immediately
4762 if FROM is BASE_LOOP's header.
4764 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4766 * gimplify.c (gimplify_function_tree): Fix building calls
4767 to __builtin_return_address.
4769 2011-03-07 Alan Modra <amodra@gmail.com>
4771 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4772 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4773 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4774 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4776 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4777 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4778 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4779 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4780 * config/rs6000/rs6000.c
4781 (rs6000_elf_end_indicate_exec_stack): Rename to..
4782 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4783 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4784 (rs6000_file_start): ..here.
4785 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4786 file scope variables.
4787 (call_ABI_of_interest): New function.
4788 (init_cumulative_args): Set above vars when function return value
4789 is a float, vector, or small struct.
4790 (rs6000_function_arg_advance_1): Likewise for function args.
4791 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4792 references float args.
4794 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4796 * doc/cfg.texi: Remove "See" before @ref.
4797 * doc/invoke.texi: Likewise.
4799 2011-03-05 Jason Merrill <jason@redhat.com>
4801 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4803 2011-03-05 Anthony Green <green@moxielogic.com>
4805 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4807 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4809 PR rtl-optimization/47899
4810 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4811 to flow_loop_nested_p when moving the loop upward.
4813 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4816 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4818 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4820 PR tree-optimization/47967
4821 * ipa-cp.c (build_const_val): Return NULL instead of creating
4822 VIEW_CONVERT_EXPR for mismatching sizes.
4823 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4824 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4825 give up on versioning.
4827 2011-03-05 Alan Modra <amodra@gmail.com>
4830 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4831 full cmodel medium/large lo_sum + high addresses.
4833 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4835 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4836 pool references in UNSPEC_LTREL_OFFSET.
4838 2011-03-04 Jan Hubicka <jh@suse.cz>
4841 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4842 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4843 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4845 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4846 cgraph_add_thunk): Add node pointers.
4847 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4848 associated to right node.
4849 (input_node): Update use of cgraph_same_body_alias
4850 and cgraph_add_thunk.
4852 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4854 * config/i386/i386.opt (mprefer-avx128): New flag.
4855 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4856 modes when the flag -mprefer-avx128 is on.
4858 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4860 * dwarf2out.c (compare_loc_operands): Fix address handling.
4862 2011-03-04 Alan Modra <amodra@gmail.com>
4864 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4866 2011-03-04 Richard Guenther <rguenther@suse.de>
4869 * expmed.c (extract_bit_field_1): Prefer vector modes that
4870 vec_extract patterns can handle.
4872 2011-03-04 Richard Guenther <rguenther@suse.de>
4875 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4877 2011-03-04 Richard Henderson <rth@redhat.com>
4879 * explow.c (emit_stack_save): Remove 'after' parameter.
4880 (emit_stack_restore): Likewise.
4881 * expr.h: Update to match.
4882 * builtins.c, calls.c, stmt.c: Likewise.
4883 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4884 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4885 * function.c (expand_function_end): Insert the emit_stack_save
4886 sequence before parm_birth_insn instead of after.
4888 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4890 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4891 (ssse3_pmaddubsw128): Ditto.
4892 (ssse3_pmaddubsw): Ditto.
4894 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4896 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4898 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4901 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4902 on TYPE_SIZE_UNIT if it is a DECL.
4905 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4906 first operand is not is_gimple_mem_ref_addr, try to fold it.
4907 If the operand still isn't is_gimple_mem_ref_addr, clear
4910 2011-03-03 Richard Guenther <rguenther@suse.de>
4913 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4915 (refs_may_alias_p_1): For release branches return true if
4916 we are confused by our input.
4918 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4920 * config/s390/s390.c (s390_function_value): Rename to ...
4921 (s390_function_and_libcall_value): ... this.
4922 (s390_function_value): New function.
4923 (s390_libcall_value): New function.
4924 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4925 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4926 target macro definitions.
4927 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4929 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4931 * config/i386/freebsd64.h (CC1_SPEC): Define.
4932 * config/i386/linux64.h (CC1_SPEC): Define.
4933 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4935 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4937 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4939 * config/stormy16/stormy16.c: Include reload.h.
4940 (xstormy16_memory_move_cost): New function.
4941 (TARGET_MEMORY_MOVE_COST): Define.
4943 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4945 PR rtl-optimization/47925
4946 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4947 with side effects. Remove the more-specific check for volatile asms.
4949 2011-03-02 Alan Modra <amodra@gmail.com>
4952 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4953 toc relative addresses for valid offsets.
4955 2011-03-01 Richard Guenther <rguenther@suse.de>
4957 PR tree-optimization/47890
4958 * tree-vect-loop.c (get_initial_def_for_induction): Set
4959 related stmt properly.
4961 2011-03-01 Richard Guenther <rguenther@suse.de>
4964 * lto-streamer.c (lto_record_common_node): Also register
4967 2011-03-01 Richard Guenther <rguenther@suse.de>
4970 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4971 Do not stream DECL_ABSTRACT_ORIGIN.
4972 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4973 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4974 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4975 Do not stream DECL_ABSTRACT_ORIGIN.
4976 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4977 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4979 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4981 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4982 FUNCTION_VALUE_REGNO_P): Remove.
4983 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4984 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4985 Add 'outgoing' argument.
4986 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4988 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4989 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4991 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4994 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4995 (lookup_filename): Likewise.
4996 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4998 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4999 Jakub Jelinek <jakub@redhat.com>
5002 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5003 (assign_stack_local_1): Change last argument type to int.
5004 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5005 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
5006 don't record padding space into frame_space_list nor use those areas.
5007 (assign_stack_local): Adjust caller.
5008 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5009 of assign_stack_local, pass 0 as last argument.
5010 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5013 2011-02-28 Jakub Jelinek <jakub@redhat.com>
5016 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5017 Use target address_mode and pointer_mode hooks instead of hardcoded
5018 Pmode and ptr_mode. Handle some simple cases of extending if
5019 POINTERS_EXTEND_UNSIGNED < 0.
5020 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5021 Call convert_debug_memory_address.
5022 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5023 convert_debug_memory_address.
5026 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5027 * configure: Regenerated.
5028 * config.in: Regenerated.
5029 * varasm.c (default_function_section): Return NULL
5030 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
5032 2011-02-28 Martin Jambor <mjambor@suse.cz>
5034 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5035 the description to match the printed values.
5037 2011-02-28 Richard Guenther <rguenther@suse.de>
5039 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5040 of the copied scope tree.
5042 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5044 * doc/extend.texi (Function Attributes): Avoid deeply (and
5045 wrongly) nested tables.
5047 2011-02-27 Jakub Jelinek <jakub@redhat.com>
5050 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5051 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5052 r isn't op0 nor op1.
5054 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5056 * config/avr/avr.md: Remove magic comment for emacs.
5058 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5061 * config/avr/avr.c (avr_option_override): Use error on bad options.
5062 (avr_help): New function.
5063 (TARGET_HELP): Define.
5065 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
5068 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5069 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5071 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
5073 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5074 (ARM Options): Ditto.
5075 (i386 and x86-64 Options): Ditto.
5076 (RX Options): Ditto.
5077 (SPARC Options): Ditto.
5079 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
5081 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5082 FreeBSD 6 and later. Generally use cpu generic.
5084 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
5086 * doc/cpp.texi: Update copyright years.
5088 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
5091 * config/lm32/lm32.md (ashrsi3): Added needed variable.
5093 2011-02-25 Jon Beniston <jon@beniston.com>
5096 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
5097 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5098 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
5099 (lm32_block_move_inline): Add type cast to remove warning.
5100 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
5101 (gen_int_relational): Move declarations to start of function.
5103 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
5105 PR tree-optimization/45470
5106 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5107 can throw internally only.
5108 * tree-vect-stmts.c (vectorizable_call): Likewise.
5110 2011-02-24 Anatoly Sokolov <aesok@post.ru>
5112 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
5113 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5114 * config/stormy16/stormy16-protos.h
5115 (xstormy16_preferred_reload_class): Remove.
5116 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
5117 static. Change 'rclass' argument and return type to reg_class_t.
5118 (TARGET_PREFERRED_RELOAD_CLASS,
5119 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5121 2011-02-24 Richard Guenther <rguenther@suse.de>
5123 * lto-streamer-in.c (input_bb): Do not find referenced vars
5124 in debug statements.
5126 2011-02-23 Jason Merrill <jason@redhat.com>
5128 * common.opt (fabi-version): Document v5 and v6.
5130 2011-02-23 Richard Guenther <rguenther@suse.de>
5132 PR tree-optimization/47849
5133 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
5135 2011-02-23 Jie Zhang <jie@codesourcery.com>
5137 * opts-common.c (decode_cmdline_option): Print empty string
5138 argument as "" in decoded->orig_option_with_args_text.
5139 * gcc.c (execute): Print empty string argument as ""
5140 in the verbose output.
5141 (do_spec_1): Keep empty string argument.
5143 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
5145 * config.gcc: Declare score-* and crx-* obsolete.
5147 2011-02-23 Jie Zhang <jie@codesourcery.com>
5149 PR rtl-optimization/47763
5150 * web.c (web_main): Ignore naked clobber when replacing register.
5152 2011-02-22 Anatoly Sokolov <aesok@post.ru>
5154 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5157 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
5160 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
5162 2011-02-22 Mike Stump <mikestump@comcast.net>
5164 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
5166 * configure: Regenerate.
5168 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
5170 PR rtl-optimization/46002
5171 * ira-color.c (update_copy_costs): Change class intersection
5172 test to reg_class_contents[] test of 'hard_regno'.
5174 2011-02-21 Joseph Myers <joseph@codesourcery.com>
5176 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
5178 * config/hpux11.opt (mt): Likewise.
5179 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
5180 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
5181 * config/vax/elf.opt (mno-asm-pic): Likewise.
5182 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
5184 2011-02-21 Mike Stump <mikestump@comcast.net>
5187 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
5188 tree so we can get save the type.
5189 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
5190 for CFString instead of trying to use past the end of the builtins.
5191 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
5192 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
5193 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
5194 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
5195 Rename to darwin_builtin_cfstring.
5196 (darwin_init_cfstring_builtins): Return the built type.
5198 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
5201 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
5202 (_mm256_insert_epi64): Use _mm_insert_epi64.
5204 2011-02-21 Anatoly Sokolov <aesok@post.ru>
5206 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5207 * config/stormy16/stormy16-protos.h
5208 (xstormy16_mode_dependent_address_p): Remove.
5209 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5210 Make static. Change return type to bool. Change argument type to
5211 const_rtx. Remove dead code.
5212 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5214 2011-02-21 Richard Guenther <rguenther@suse.de>
5217 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5218 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5219 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
5221 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5222 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5224 2011-02-20 Richard Guenther <rguenther@suse.de>
5227 * tree.c (free_lang_data_in_decl): Clean builtins from
5228 the TU decl BLOCK_VARS.
5230 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
5234 * haifa-sched.c (fix_tick_ready): Skip tick computation
5237 2011-02-19 Richard Guenther <rguenther@suse.de>
5240 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5241 Remove lazy BLOCK_VARS streaming.
5242 (lto_input_ts_block_tree_pointers): Likewise.
5243 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5245 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5247 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
5249 2011-02-19 Joseph Myers <joseph@codesourcery.com>
5251 * config/i386/biarch32.h, config/i386/mach.h,
5252 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
5254 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5257 * config/i386/i386.md (peephole2 for shift and plus): Use
5258 operands[1] original mode in the first insn.
5260 2011-02-18 Mike Stump <mikestump@comcast.net>
5262 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
5264 2011-02-18 Jan Hubicka <jh@suse.cz>
5267 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
5268 to zero when the function is not inlinable at all.
5270 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5272 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
5273 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5274 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
5275 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
5276 * config/pa/t-pa64: Likewise.
5277 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5279 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5282 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
5284 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5287 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
5289 2011-02-18 Anatoly Sokolov <aesok@post.ru>
5291 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5292 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
5293 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
5294 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5295 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
5296 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
5297 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
5298 m32r_load_postinc_p, m32r_store_preinc_predec_p,
5299 m32r_legitimate_address_p): New functions.
5300 * config/m32r/constraints.md (constraint "S"): Don't use
5301 STORE_PREINC_PREDEC_P.
5302 (constraint "U"): Don't use LOAD_POSTINC_P.
5304 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
5306 PR rtl-optimization/46178
5307 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
5308 compute ira_hard_regno_cover_class[].
5310 2011-02-18 Richard Guenther <rguenther@suse.de>
5313 * lto-streamer.h (lto_global_var_decls): Declare.
5314 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
5315 statics for global var processing.
5317 2011-02-18 Richard Guenther <rguenther@suse.de>
5319 PR tree-optimization/47737
5320 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
5321 edge dominance check.
5323 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5326 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
5327 avoid invalid rtx sharing.
5329 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
5331 * doc/cpp.texi (Obsolete Features): Add background on the
5332 origin of assertions.
5334 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5336 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
5338 * config/darwin.c (output_objc_section_asm_op): Added support for
5340 (is_objc_metadata): New.
5341 (darwin_objc2_section): New.
5342 (darwin_objc1_section): New.
5343 (machopic_select_section): Added support for ABI v1 and v2.
5344 (darwin_emit_objc_zeroed): New.
5345 (darwin_output_aligned_bss): Detect objc metadata and treat it
5347 (darwin_asm_output_aligned_decl_common): Same.
5348 (darwin_asm_output_aligned_decl_local): Same.
5349 * config/darwin-sections.def: Updated for ABI v1 and v2.
5350 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
5351 compiling Objective-C code for the NeXT runtime, default to using
5352 ABI version 0 for 32-bit, and version 2 for 64-bit.
5354 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5356 * common.opt (optimize_fast): New Variable.
5357 * opts.c (default_options_optimization): Use opts->x_optimize_fast
5358 instead of local variable ofast.
5360 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
5362 * doc/invoke.texi (fobjc-abi-version): Documented.
5363 (fobjc-nilcheck): Documented.
5364 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
5367 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5370 * common.opt (export-dynamic): New Driver option.
5371 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
5373 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5375 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
5377 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
5378 Jan Hubicka <jh@suse.cz>
5382 * cfgexpand.c (account_used_vars_for_block): Remove.
5383 (estimated_stack_frame_size): Use referenced vars.
5384 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
5385 that were referenced in the original function. Test src_fn
5386 rather than cfun. Drop redundant get_var_ann.
5387 (setup_one_parameter): Drop redundant get_var_ann.
5388 (declare_return_variable): Likewise.
5389 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
5390 (copy_arguments_for_versioning): Drop redundant get_var_ann.
5391 * ipa-inline.c (compute_inline_parameters): Do not compute
5392 disregard_inline_limits here.
5393 (compute_inlinable_for_current, pass_inlinable): New.
5394 (pass_inline_parameters): Require PROP_referenced_vars.
5395 * cgraphunit.c (cgraph_process_new_functions): Don't run
5396 compute_inline_parameters explicitly unless function is in SSA form.
5397 (cgraph_analyze_function): Set .disregard_inline_limits.
5398 * tree-sra.c (convert_callers): Compute inliner parameters
5399 only for functions already in SSA form.
5401 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5403 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
5404 -mlittle-endian-data.
5406 2011-02-17 Joseph Myers <joseph@codesourcery.com>
5408 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
5409 -mno-fpu, not -fpu and -no-fpu.
5410 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
5411 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
5413 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
5416 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
5417 input reload with PLUS RTX.
5419 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5421 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
5422 of InverseVar(MDMX).
5424 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5426 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
5429 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5431 * config/mn10300/mn10300.opt (mno-crt0): New.
5433 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5435 * config/m68k/uclinux.opt (static-libc): New Driver option.
5437 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5439 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
5441 2011-02-16 Joseph Myers <joseph@codesourcery.com>
5443 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
5444 %{muser-extend-enabled}.
5446 2011-02-16 Richard Guenther <rguenther@suse.de>
5448 PR tree-optimization/47738
5449 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
5450 the TODO from tree_predictive_commoning.
5452 2011-02-15 Jeff Law <law@redhat.com>
5455 2011-01-25 Jeff Law <law@redhat.com>
5457 PR rtl-optimization/37273
5458 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5459 handle them like argument loads from stack slots. Do not double
5460 count memory for memory constants and argument loads from stack slots.
5462 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5465 * combine.c (cant_combine_insn_p): Revert the last change.
5467 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5470 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5471 mode for vector constants. Remove code that checks for TImode.
5473 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5477 * cgraph.h (compute_inline_parameters): Return void.
5478 * ipa-inline.c (compute_inline_parameters): Adjust.
5480 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5484 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5486 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5487 * ipa-inline.c (compute_inline_parameters): Adjust.
5489 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5493 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5494 Adjust all users. Pass FN to...
5495 * tree-flow-inline.h (first_referenced_var): ... this. Add
5497 * ipa-struct-reorg.c: Adjust.
5498 * tree-dfa.c: Adjust.
5499 * tree-into-ssa.c: Adjust.
5500 * tree-sra.c: Adjust.
5501 * tree-ssa-alias.c: Adjust.
5502 * tree-ssa-live.c: Adjust.
5503 * tree-ssa.c: Adjust.
5504 * tree-ssanames.c: Adjust.
5505 * tree-tailcall.c: Adjust.
5507 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5511 * tree-flow.h (referenced_var_lookup): Add fn parameter.
5513 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5514 * tree-flow-inline.h: Adjust.
5515 * gimple-pretty-print.c: Adjust.
5516 * tree-into-ssa.c: Adjust.
5517 * tree-ssa.c: Adjust.
5518 * cfgexpand.c: Adjust.
5520 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5522 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5523 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5524 (EXTRA_CONSTRAINT): Delete.
5525 * config/iq2000/constraints.md: New file.
5526 * config/iq2000/iq2000.md: Include it.
5527 (define_insn ""): Delete.
5528 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5529 unsupported constraint letters from patterns.
5530 (call_value, call_value_internal1): Likewise.
5531 (call_value_multiple_internal1): Likewise.
5533 2011-02-15 Nick Clifton <nickc@redhat.com>
5535 * config/mn10300/mn10300.c: Include tm-constrs.h.
5536 (struct liw_data): New data structure describing an LIW candidate
5538 (extract_bundle): Use struct liw_data. Allow small integer
5539 operands for some instructions.
5540 (check_liw_constraints): Use struct liw_data. Remove swapped
5541 parameter. Add comments describing the checks. Fix bug when
5542 assigning the source of liw1 to the source of liw2.
5543 (liw_candidate): Delete. Code moved into extract_bundle.
5544 (mn10300_bundle_liw): Use struct liw_data. Check constraints
5546 * config/mn10300/predicates.md (liw_operand): New predicate.
5547 Allows registers and small integer constants.
5548 * config/mn10300/constraints.md (O): New constraint. Accetps
5549 integers in the range -8 to +7 inclusive.
5550 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5551 for moving a small integer into a register. Give this alternative
5553 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5554 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5555 using the J,K,L and M constraints,
5556 (liw): Remove SI mode on second operands to allow for HI and QI
5558 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
5561 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5564 * combine.c (cant_combine_insn_p): Check zero/sign extended
5567 2011-02-15 Richard Guenther <rguenther@suse.de>
5569 PR tree-optimization/47743
5570 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5571 for a non-type-compatible VN lookup bail out.
5573 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5575 * config/fr30/constraints.md: New file.
5576 * config/fr30/fr30.md: Include it.
5577 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5578 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5579 (EXTRA_CONSTRAINT): Delete.
5581 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5583 * config/frv/constraints.md: New file.
5584 * config/frv/predicates.md: Include it.
5585 * config/frv/frv.c (reg_class_from_letter): Delete.
5586 (frv_option_override): Don't initialize it.
5587 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5588 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5589 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5590 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5591 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5592 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5593 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5594 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5595 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5596 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5597 (REG_CLASS_FROM_CONSTRAINT): Delete.
5599 2011-02-15 Jakub Jelinek <jakub@redhat.com>
5602 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5603 if frame size is 0 in a leaf function.
5605 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5608 * config/alpha/host-osf.c: New file.
5609 * config/alpha/x-osf: New file.
5610 * config.host (alpha*-dec-osf*): Use it.
5612 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5614 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5615 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5616 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5617 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5619 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5621 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5623 * config/stormy16/constraints.md: New file.
5624 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5625 Use satisfies_constraint_Q and satisfies_constraint_R.
5626 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5628 (xstormy16_legitiamte_address_p): Declare.
5629 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5630 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5631 (EXTRA_CONSTRAINT): Delete.
5632 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5634 (xstormy16_extra_constraint_p): Delete.
5636 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5638 PR tree-optimization/46494
5639 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5640 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5641 (pass_rtl_loop_done): Add TODO_verify_flow.
5642 * fwprop.c (pass_rtl_fwprop): Likewise.
5643 * modulo-sched.c (pass_sms): Likewise.
5644 * tree-ssa-dom.c (pass_dominator): Likewise.
5645 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5646 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5647 (pass_tree_loop_done): Likewise.
5648 * tree-ssa-pre.c (execute_pre): Likewise.
5649 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5650 * tree-ssa-sink.c (pass_sink_code): Likewise.
5651 * tree-vrp.c (pass_vrp): Likewise.
5653 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5655 * config/v850/constraints.md: New file.
5656 * config/v850/v850.md: Include it.
5657 * config/v850/predicates.md (reg_or_0_operand): Use
5658 satisfies_constraint_G.
5659 (special_symbolref_operand): Use satisfies_constraint_K.
5660 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5661 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5662 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5663 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5664 (EXTRA_CONSTRAINT): Delete.
5665 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5666 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5667 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5669 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5672 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5675 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5677 * config/mcore/constraints.md: New file.
5678 * config/mcore/mcore.md: Include it.
5679 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5680 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5681 (REG_CLASS_FROM_LETTER): Delete.
5682 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5683 insn_const_int_ok_for_constraint.
5684 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5685 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5686 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5687 (EXTRA_CONSTRAINT): Delete.
5689 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5692 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5693 (IS_SIGHANDLER): Define.
5694 (sparc64_is_sighandler): New function, split off from
5695 sparc64_fallback_frame_state.
5696 (sparc_is_sighandler): New function, split off from
5697 sparc_fallback_frame_state.
5698 (sparc64_fallback_frame_state): Merge with ...
5699 (sparc_fallback_frame_state): ... this into ...
5700 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5701 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5702 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5703 stack instead of hardcoded offsets.
5705 2011-02-14 Andriy Gapon <avg@freebsd.org>
5708 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5710 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5712 * configure: Regenerate.
5714 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5717 * gcc.c (asm_options): Correct spec matching --target-help.
5719 2011-02-12 Martin Jambor <mjambor@suse.cz>
5721 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5722 to gimple call error.
5724 2011-02-12 Mike Stump <mikestump@comcast.net>
5726 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5727 comments in backslash regions.
5729 2011-02-12 Mike Stump <mikestump@comcast.net>
5730 Jakub Jelinek <jakub@redhat.com>
5731 Iain Sandoe <iains@gcc.gnu.org>
5734 * dwarf2out.c (output_cfa_loc): When required, apply the
5735 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5736 (output_loc_sequence): Likewise.
5737 (output_loc_operands_raw): Likewise.
5738 (output_loc_sequence_raw): Likewise.
5739 (output_cfa_loc): Likewise.
5740 (output_loc_list): Suppress register number adjustment when
5741 calling output_loc_sequence()
5742 (output_die): Likewise.
5744 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5746 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5748 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5749 xtensa_memory_move_cost): New functions.
5750 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5752 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5755 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5756 in the current directory.
5757 * configure: Rebuilt.
5759 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5761 * config/darwin.c (darwin_override_options): Add a hunk missed
5762 from the commit of r168571. Trim comment line lengths and
5763 correct indents of the preceding block.
5765 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5767 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5770 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5772 * common.opt (nostartfiles): New Driver option.
5774 2011-02-11 Xinliang David Li <davidxl@google.com>
5776 PR tree-optimization/47707
5777 * tree-chrec.c (convert_affine_scev): Keep type precision.
5779 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5781 PR tree-optimization/47420
5782 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5784 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5786 PR rtl-optimization/47614
5787 * rtl.h (check_for_inc_dec): Declare.
5788 * dse.c (check_for_inc_dec): Externalize...
5789 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5790 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5792 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5795 * gcc.c (main): Do not compile inputs if there were errors in
5797 * opts-common.c (read_cmdline_option): Check for wrong language
5798 after other error checks.
5800 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5802 * cgraph.c: Fix comment typos.
5803 * cgraph.h: Likewise.
5804 * cgraphunit.c: Likewise.
5805 * ipa-cp.c: Likewise.
5806 * ipa-inline.c: Likewise.
5807 * ipa-prop.c: Likewise.
5808 * ipa-pure-const.c: Likewise.
5809 * ipa-ref.c: Likewise.
5810 * ipa-reference.c: Likewise.
5812 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5815 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5817 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5820 * doc/sourcebuild.texi (Require Support): Document
5821 dg-require-ascii-locale.
5823 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5825 * doc/lto.texi (Write summary): Fix missing parentheses.
5827 2011-02-10 DJ Delorie <dj@redhat.com>
5829 * config/m32c/m32c.c (m32c_option_override): Disable
5830 -fcombine-stack-adjustments until flag value tracking and compare
5831 optimization can be rewritten.
5833 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5835 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5837 (PROCESSOR_DEFAULT64): Likewise.
5839 2011-02-10 Richard Henderson <rth@redhat.com>
5841 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5842 change from 2011-02-03.
5843 * config/rx/rx.c (flags_from_code): Likewise.
5844 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5845 is valid, n/pz otherwise.
5846 (rx_select_cc_mode): Return CCmode if Y is not zero.
5848 2011-02-10 Richard Guenther <rguenther@suse.de>
5850 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5852 2011-02-10 Richard Guenther <rguenther@suse.de>
5854 PR tree-optimization/47677
5855 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5857 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5860 * combine.c (make_compound_operation): Only change shifts into
5861 multiplication for SCALAR_INT_MODE_P.
5863 2011-02-10 Jie Zhang <jie@codesourcery.com>
5867 2011-02-05 Jie Zhang <jie@codesourcery.com>
5869 * web.c (entry_register): Don't clobber the number of the
5870 first uninitialized reference in used[].
5872 2011-02-09 Richard Guenther <rguenther@suse.de>
5874 PR tree-optimization/47664
5875 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5878 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5882 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5884 (PROCESSOR_DEFAULT64): Same.
5885 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5887 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5889 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5891 2011-02-09 Martin Jambor <mjambor@suse.cz>
5894 * tree-sra.c (struct access): New flags grp_scalar_read and
5895 grp_scalar_write. Changed description of assignment read and write
5897 (dump_access): Dump new flags, reorder all of them.
5898 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5899 to detect multiple scalar reads.
5900 (analyze_access_subtree): Use the new scalar read write flags instead
5901 of the old flags. Adjusted comments.
5903 2011-02-08 DJ Delorie <dj@redhat.com>
5906 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5909 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5911 * config/m68k/uclinux.opt: New.
5912 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5914 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5916 * config/cris/elf.opt (sim): New Driver option.
5918 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5920 * config/xtensa/elf.opt: New.
5921 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5923 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5925 * config/vax/elf.opt: New.
5926 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5928 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5930 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5932 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5934 * config/gnu-user.opt: New.
5935 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5936 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5937 *-*-uclinux*): Use gnu-user.opt.
5939 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5941 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5942 * config/i386/gnu.h (CPP_SPEC): Likewise.
5944 2011-02-08 Ian Lance Taylor <iant@google.com>
5946 * common.opt (fcx-limited-range): Add SetByCombined flag.
5947 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5948 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5949 (fassociative-math, freciprocal-math): Likewise.
5950 (funsafe-math-optimizations): Likewise.
5951 * opth-gen.awk: Handle SetByCombined.
5952 * optc-gen.awk: Likewise.
5953 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5954 (set_unsafe_math_optimizations_flags): Likewise.
5955 * doc/options.texi (Option properties): Document SetByCombined.
5957 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5959 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5960 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5961 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5962 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5963 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5965 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5967 PR tree-optimization/46834
5968 PR tree-optimization/46994
5969 PR tree-optimization/46995
5970 * graphite-sese-to-poly.c (used_outside_reduction): New.
5971 (detect_commutative_reduction): Call used_outside_reduction.
5972 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5973 translate_scalar_reduction_to_array only when at least one
5974 loop-phi/close-phi tuple has been detected.
5976 2011-02-08 Richard Guenther <rguenther@suse.de>
5979 * tree-vect-generic.c (expand_vector_operations_1): Update
5981 (expand_vector_operations): ... not here. Cleanup EH info
5982 and the CFG if required.
5984 2011-02-08 Richard Guenther <rguenther@suse.de>
5986 PR tree-optimization/47641
5987 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5988 require type compatibility.
5990 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5992 * gimple-low.c (lower_function_body): Don't remove the location of
5993 the return statement here.
5994 (lower_gimple_return): Do it here instead but only if the return
5995 statement is actually used twice.
5997 2011-02-08 Richard Guenther <rguenther@suse.de>
5999 PR tree-optimization/47632
6000 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6001 unused up_to_stmt parameter, return whether cfg-cleanup is
6002 necessary, remove EH info properly.
6003 (forward_propagate_into_gimple_cond): Adjust caller.
6004 (forward_propagate_into_cond): Likewise.
6005 (forward_propagate_comparison): Likewise.
6006 (tree_ssa_forward_propagate_single_use_vars): Make
6007 forward_propagate_comparison case similar to the two others.
6009 2011-02-08 Nick Clifton <nickc@redhat.com>
6011 * config/mn10300/mn10300.opt (mliw): New command line option.
6012 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6013 (liw_bundling): New automaton.
6014 (liw): New attribute.
6015 (liw_op): New attribute.
6016 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6017 (movsi_internal): Add LIW attributes.
6021 (addsi3): Separate register and immediate alternatives.
6026 (lshrsi3): Likewise.
6027 (ashrsi3): Likewise.
6029 * config/mn10300/mn10300.c (liw_op_names): New
6030 (mn10300_print_operand): Handle 'W' operand descriptor.
6031 (extract_bundle): New function.
6032 (check_liw_constraints): New function.
6033 (liw_candidate): New function.
6034 (mn10300_bundle_liw): New function.
6035 (mn10300_reorg): New function.
6036 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6037 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6038 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6039 __LIW__ or __NO_LIW__.
6040 * doc/invoke.texi: Describe the -mliw command line option.
6042 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6044 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6045 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6046 pthread_mutex_unlock): Remove.
6047 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6048 * config/pa/t-pa64: Likewise.
6049 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6050 shared libc if not linking against libpthread.
6051 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6053 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
6056 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6057 on 10.6 and later to ensure that we always use the unwinder from
6058 the system. Only add -no_compact_unwind when tarteting darwin
6061 2011-02-07 Steve Ellcey <sje@cup.hp.com>
6064 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6065 (vec_interleave_lowv2sf): Ditto.
6066 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6067 (vec_extract_oddv2sf): Ditto.
6069 2011-02-07 Mike Stump <mikestump@comcast.net>
6072 Add __ieee_divdc3 entry point.
6073 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6075 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6076 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6077 * config/darwin.c (darwin_rename_builtins): Add.
6078 * config/darwin-protos.h (darwin_rename_builtins): Add.
6080 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6083 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6086 2011-02-07 Mike Stump <mikestump@comcast.net>
6088 * config/darwin.opt (mmacosx-version-min): Update default OS version.
6090 2011-02-07 Denis Chertykov <chertykov@gmail.com>
6093 * config/avr/libgcc.S (exit): Move .endfunc
6095 2011-02-07 Richard Guenther <rguenther@suse.de>
6097 PR tree-optimization/47615
6098 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
6099 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
6100 (run_scc_vn): Initialize it.
6101 (visit_reference_op_load): Use it.
6102 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
6104 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6106 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
6107 DImode trapping arithmetic libfuncs.
6109 2011-02-07 Richard Guenther <rguenther@suse.de>
6111 PR tree-optimization/47621
6112 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
6114 (execute_update_addresses_taken): ... here. Make it more
6115 conservative in what we accept.
6117 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6119 * config/sparc/freebsd.h (ASM_SPEC): Define.
6120 * config/sparc/vxworks.h (ASM_SPEC): Define.
6122 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6124 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6126 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
6128 * doc/invoke.texi: Remove reference to compiler internals from
6131 * reg-notes.def: Remove REG_VALUE_PROFILE.
6132 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
6134 2011-02-05 Jakub Jelinek <jakub@redhat.com>
6137 * varasm.c (default_section_type_flags): If decl is NULL,
6138 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
6140 2011-02-05 Jie Zhang <jie@codesourcery.com>
6143 * web.c (entry_register): Don't clobber the number of the
6144 first uninitialized reference in used[].
6146 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
6148 PR tree-optimization/46194
6149 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
6150 (build_classic_dist_vector_1): Do not represent classic distance
6151 vectors when the access functions are variating in different loops.
6153 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6155 * config/mips/iris6.opt: New.
6156 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
6158 2011-02-04 Richard Henderson <rth@redhat.com>
6159 Steve Ellcey <sje@cup.hp.com>
6162 * config/ia64/predicates.md (mux1_brcst_element): New.
6163 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
6164 * config/ia64/ia64.c (ia64_unpack_assemble): New.
6165 (ia64_unpack_sign): New.
6166 (ia64_expand_unpack): Rewrite using new routines.
6167 (ia64_expand_widen_sum): Ditto.
6168 (ia64_expand_dot_prod_v8qi): Ditto.
6169 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
6170 routines, add endian check.
6171 (pmpy2_even): Rename from pmpy2_r, add endian check.
6172 (pmpy2_odd): Rename from pmpy2_l, add endian check.
6173 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
6174 (vec_widen_smult_hi_v4hi): Ditto.
6175 (vec_widen_umult_lo_v4hi): Ditto.
6176 (vec_widen_umult_hi_v4hi): Ditto.
6177 (mulv2si3): Change endian checks.
6178 (sdot_prodv4hi): Rewrite with new calls.
6179 (udot_prodv4hi): New.
6180 (vec_pack_ssat_v4hi): Add endian check.
6181 (vec_pack_usat_v4hi): Ditto.
6182 (vec_pack_ssat_v2si): Ditto.
6183 (max1_even): Rename from max1_r, add endian check.
6184 (max1_odd): Rename from max1_l, add endian check.
6185 (*mux1_rev): Format change.
6187 (*mux1_shuf): Ditto.
6189 (*mux1_brcst_v8qi): Use new predicate.
6190 (vec_extract_evenv8qi): Remove endian check.
6191 (vec_extract_oddv8qi): Ditto.
6192 (vec_interleave_lowv4hi): Format change.
6193 (vec_interleave_highv4hi): Ditto.
6194 (mix2_even): Rename from mix2_r, add endian check.
6195 (mix2_odd): Rename from mux2_l, add endian check.
6196 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
6197 (vec_extract_evenodd_helper): Format change.
6198 (vec_extract_evenv4hi): Remove endian check.
6199 (vec_extract_oddv4hi): Remove endian check.
6200 (vec_interleave_lowv2si): Format change.
6201 (vec_interleave_highv2si): Format change.
6202 (vec_initv2si): Remove endian check.
6203 (vecinit_v2si): Add endian check.
6204 (reduc_splus_v2sf): Add endian check.
6205 (reduc_smax_v2sf): Ditto.
6206 (reduc_smin_v2sf): Ditto.
6207 (vec_initv2sf): Remove endian check.
6208 (fpack): Add endian check.
6209 (fswap): Add endian check.
6210 (vec_interleave_highv2sf): Add endian check.
6211 (vec_interleave_lowv2sf): Add endian check.
6212 (fmix_lr): Add endian check.
6213 (vec_setv2sf): Format change.
6214 (*vec_extractv2sf_0_be): Use shift to extract operand.
6215 (*vec_extractv2sf_1_be): New.
6216 (vec_pack_trunc_v4hi): Add endian check.
6217 (vec_pack_trunc_v2si): Format change.
6219 2011-02-04 Jakub Jelinek <jakub@redhat.com>
6222 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
6223 do bb, locus and block comparison and disallow loads if it is not set.
6224 (stmt_is_replaceable_p): New function.
6225 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
6227 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
6228 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
6230 * tree-flow.h (stmt_is_replaceable_p): New prototype.
6232 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6234 * config/rs6000/xilinx.opt: New.
6235 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
6237 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6239 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
6241 2011-02-03 Anatoly Sokolov <aesok@post.ru>
6243 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
6244 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6245 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
6246 secondary_reload_info, xtensa_secondary_reload): Remove.
6247 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
6248 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6249 (xtensa_preferred_reload_class): Make static. Change return and
6250 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
6251 Use CONST_DOUBLE_P predicate.
6252 (xtensa_preferred_output_reload_class): New function.
6253 (xtensa_secondary_reload): Make static.
6255 2011-02-03 Joseph Myers <joseph@codesourcery.com>
6257 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
6258 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
6259 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
6261 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6264 * output.h (SECTION_RELRO): Define.
6265 (SECTION_MACH_DEP): Adjust.
6266 (get_variable_section): New prototype.
6267 * varpool.c (varpool_finalize_named_section_flags): New function.
6268 (varpool_assemble_pending_decls): Call it.
6269 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
6270 * cgraphunit.c (cgraph_output_in_order): Call
6271 varpool_finalize_named_section_flags.
6272 * varasm.c (get_section): Allow section flags conflicts between
6273 relro and read-only sections if the section hasn't been declared yet.
6274 Set SECTION_OVERRIDE after diagnosing section type conflict.
6275 (get_variable_section): No longer static.
6276 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
6277 readonly sections that need relocations.
6278 (decl_readonly_section_1): New function.
6279 (decl_readonly_section): Use it.
6282 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
6283 Steve Ellcey <sje@cup.hp.com>
6286 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
6287 if section attribute used.
6289 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6291 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
6292 * config/darwin.c (SECTION_NO_ANCHOR): Define.
6293 (darwin_init_sections): Remove assertion.
6295 2011-02-03 Nick Clifton <nickc@redhat.com>
6297 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
6299 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6300 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
6301 instead of "n" and "pz".
6302 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
6305 2011-02-03 Jakub Jelinek <jakub@redhat.com>
6308 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
6309 fma, expand FMA_EXPR as fma{,f,l} call.
6312 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
6313 copy them into a unsigned char variable and pass address of it to
6314 lto_output_data_stream.
6317 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
6318 around backend_init_target and lang_dependent_init_target calls.
6319 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
6320 (verify_cgraph_node): Don't call set_cfun here. Use
6321 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
6322 Set error_found for incorrectly represented calls to thunks.
6324 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6327 PR rtl-optimization/43494
6328 * rtl.h (for_each_inc_dec_fn): New type.
6329 (for_each_inc_dec): Declare.
6330 * rtlanal.c (struct for_each_inc_dec_ops): New type.
6331 (for_each_inc_dec_find_inc_dec): New fn.
6332 (for_each_inc_dec_find_mem): New fn.
6333 (for_each_inc_dec): New fn.
6334 * dse.c (struct insn_size): Remove.
6335 (replace_inc_dec, replace_inc_dec_mem): Remove.
6336 (emit_inc_dec_insn_before): New fn.
6337 (check_for_inc_dec): Use it, along with for_each_inc_dec.
6338 (canon_address): Pass mem modes to cselib_lookup.
6339 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
6340 (cselib_lookup_from_insn): Likewise.
6341 (cselib_subst_to_values): Likewise.
6342 * cselib.c (find_slot_memmode): New var.
6343 (cselib_find_slot): New fn. Use it instead of
6344 htab_find_slot_with_hash everywhere.
6345 (entry_and_rtx_equal_p): Use find_slot_memmode.
6346 (autoinc_split): New fn.
6347 (rtx_equal_for_cselib_p): Rename and implement in terms of...
6348 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
6349 Deal with autoinc. Special-case recursion into MEMs.
6350 (cselib_hash_rtx): Likewise.
6351 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
6352 address and MEM modes.
6353 (cselib_subst_to_values): Add memmode, pass it on.
6355 (cselib_lookup): Add memmode argument, pass it on.
6356 (cselib_lookup_from_insn): Add memmode.
6357 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
6358 (struct cselib_record_autoinc_data): New.
6359 (cselib_record_autoinc_cb): New fn.
6360 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
6361 mode to cselib_lookup. Reset autoinced REGs here instead of...
6362 (cselib_process_insn): ... here.
6363 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
6365 (add_uses): Likewise, also to cselib_subst_to_values.
6366 (add_stores): Likewise.
6367 * sched-deps.c (add_insn_mem_dependence): Pass mode to
6368 cselib_subst_to_values.
6369 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
6370 * gcse.c (do_local_cprop): Adjusted.
6371 * postreload.c (reload_cse_simplify_set): Adjusted.
6372 (reload_cse_simplify_operands): Adjusted.
6373 * sel-sched-dump (debug_mem_addr_value): Pass mode.
6375 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
6377 PR tree-optimization/45122
6378 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
6379 unsafe assumptions when there's more than one loop exit.
6381 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6384 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
6385 Document using vector double with the load/store builtins, and
6386 that the load/store builtins always use Altivec instructions.
6388 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
6389 to use altivec memory instructions, even on VSX.
6390 (vector_altivec_store_<mode>): Ditto.
6392 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
6395 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6396 V2DF, V2DI support to load/store overloaded builtins.
6398 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
6399 altivec load/store builtins for V2DF/V2DI types.
6401 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6402 set avoid indexed addresses on power6 if -maltivec.
6403 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
6404 vector_altivec_load/vector_altivec_store builtins.
6405 (altivec_expand_st_builtin): Ditto.
6406 (altivec_expand_builtin): Add VSX memory builtins.
6407 (rs6000_init_builtins): Add V2DI types to internal types.
6408 (altivec_init_builtins): Add support for V2DF/V2DI altivec
6409 load/store builtins.
6410 (rs6000_address_for_altivec): Insure memory address is appropriate
6413 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
6414 vec_vsx_ld and vec_vsx_st.
6415 (vsx_store_<mode>): Ditto.
6417 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
6418 variables to hold long long types for VSX vector memory builtins.
6419 (RS6000_BTI_unsigned_long_long): Ditto.
6420 (long_long_integer_type_internal_node): Ditti.
6421 (long_long_unsigned_type_internal_node): Ditti.
6423 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
6424 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
6425 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
6427 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
6429 (vec_vsx_st): Ditto.
6431 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6433 * config/pa/pa-hpux10.opt: New.
6434 * config/hpux11.opt (pthread): New Driver option.
6435 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
6436 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
6438 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6440 * config/ia64/vms.opt: New.
6441 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
6443 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6446 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
6447 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
6448 generator functions.
6449 (vsx_floatuns<VSi><mode>2): Ditto.
6450 (vsx_fix_trunc<mode><VSi>2): Ditto.
6451 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
6453 2011-02-02 Joseph Myers <joseph@codesourcery.com>
6455 * config/i386/djgpp.opt (posix): New Driver option.
6457 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6459 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
6460 Move to the unsupported targets list.
6462 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
6464 PR rtl-optimization/47525
6465 * df-scan.c: Update copyright years.
6466 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6467 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6469 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6471 * config/i386/sysv4.h (TARGET_VERSION): Remove.
6472 (SUBTARGET_RETURN_IN_MEMORY): Remove.
6473 (ASM_OUTPUT_ASCII): Remove.
6474 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6476 2011-02-02 Jeff Law <law@redhat.com>
6479 * reload.c (find_reloads_address): Handle reg+d address where both
6480 components are invalid by reloading the entire address.
6482 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6483 Richard Guenther <rguenther@suse.de>
6485 PR tree-optimization/40979
6487 * passes.c (init_optimization_passes): After LIM call copy_prop
6488 and DCE to clean up.
6489 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6491 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6493 PR tree-optimization/47576
6494 PR tree-optimization/47555
6495 * doc/invoke.texi (scev-max-expr-complexity): Documented.
6496 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6497 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6498 * tree-scalar-evolution.c (follow_ssa_edge): Use
6499 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6501 2011-02-02 Richard Guenther <rguenther@suse.de>
6503 PR tree-optimization/47566
6504 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6506 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6510 * tree-inline.c (declare_return_variable): Remove unused caller
6515 * tree-flow-inline.h (clear_is_used, is_used_p): New.
6516 * cfgexpand.c (account_used_vars_for_block): Use them.
6517 * tree-nrv.c (tree_nrv): Likewise.
6518 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6519 (dump_scope_block): Likewise.
6520 (remove_unused_locals): Likewise.
6524 * tree-inline.c (declare_return_variable): Add result decl to
6525 local decls only once.
6526 * gimple-low.c (record_vars_into): Mark newly-created variables
6529 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
6535 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6537 (no_real_insns_p, schedule_block, set_priorities): Drop special
6538 treatment of boundary debug insns.
6539 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6540 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6541 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6542 (BOUNDARY_DEBUG_INSN_P): Likewise.
6543 (SCHEDULE_DEBUG_INSN_P): Likewise.
6544 * sched-rgn.c (init_ready_list): Drop special treatment of
6545 boundary debug insns.
6546 * final.c (rest_of_clean_state): Clear notes' BB.
6548 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6550 * config/openbsd.opt (assert=): New Driver option.
6552 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6554 * config/i386/nto.opt: New.
6555 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6557 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6559 * config/i386/netware.opt: New.
6560 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6562 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6564 * config/interix.opt (posix): New Driver option.
6566 2011-02-01 DJ Delorie <dj@redhat.com>
6568 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6570 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6573 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
6575 PR tree-optimization/47561
6576 * toplev.c (process_options): Print the Graphite flags. Add
6577 flag_loop_flatten to the list of options requiring Graphite.
6579 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6581 * config/i386/cygming.opt (posix): New Driver option.
6583 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6585 * config/arm/vxworks.opt: New.
6586 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6588 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6590 * config/alpha/elf.opt: New.
6591 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6592 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6594 2011-02-01 Richard Guenther <rguenther@suse.de>
6596 PR tree-optimization/47559
6597 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6598 store-motion on references that can throw.
6600 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
6602 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6603 * tree-pass.h (TDF_CSELIB): New macro.
6604 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6605 cselib_lookup): Check for it rather than for TDF_DETAILS.
6607 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
6610 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6613 * opts.c (finish_options): Don't add x_aux_base_name if it is
6616 2011-02-01 Richard Guenther <rguenther@suse.de>
6618 PR tree-optimization/47555
6620 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6622 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6624 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6627 * config/lm32/t-lm32: Add multilib for all CPU options.
6629 2011-02-01 Richard Guenther <rguenther@suse.de>
6631 PR tree-optimization/47541
6632 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6633 sure to have a field at offset zero.
6635 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6637 * config/arc/arc.opt (EB, EL): New Driver options.
6639 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6641 * config/alpha/osf5.opt: New.
6642 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6644 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6646 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6648 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6650 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6652 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6653 is an alias of -floop-interchange and that it requires the
6654 Graphite infrastructure.
6655 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6656 flag_loop_interchange based on the value of flag_tree_loop_linear.
6658 2011-01-31 Jakub Jelinek <jakub@redhat.com>
6659 Richard Guenther <rguenther@suse.de>
6661 PR tree-optimization/47538
6662 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6663 type instead of r1type, except for comparisons. For right
6664 shifts and comparisons punt if there are mismatches in
6665 sizetype vs. non-sizetype types.
6667 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6669 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6672 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6674 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6676 * configure: Regenerate.
6678 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680 * configure.ac (gcc_cv_ld_static_option): Define.
6681 (gcc_cv_ld_dynamic_option): Define.
6682 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6684 (HAVE_LD_STATIC_DYNAMIC): Update message.
6685 (LD_STATIC_OPTION): Define.
6686 (LD_DYNAMIC_OPTION): Define.
6687 * configure: Regenerate.
6688 * config.in: Regenerate.
6689 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6690 HAVE_LD_STATIC_DYNAMIC]: Use them.
6692 2011-01-31 Nick Clifton <nickc@redhat.com>
6694 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6695 registers inside interrupt handlers if the handler is not a leaf
6698 2011-01-31 Nick Clifton <nickc@redhat.com>
6700 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6701 reg_renumber returning an INVALID_REGNUM.
6703 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6706 * doc/install.texi: Document host options discarded when cross
6707 configuring target libraries.
6709 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6712 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6715 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6717 (no_real_insns_p, schedule_block, set_priorities): Drop special
6718 treatment of boundary debug insns.
6719 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6720 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6721 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6722 (BOUNDARY_DEBUG_INSN_P): Likewise.
6723 (SCHEDULE_DEBUG_INSN_P): Likewise.
6724 * sched-rgn.c (init_ready_list): Drop special treatment of
6725 boundary debug insns.
6726 * final.c (rest_of_clean-state): Clear notes' BB.
6728 2011-01-31 Alan Modra <amodra@gmail.com>
6730 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6731 toc relative expressions as we do in print_operand_address.
6733 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6735 * doc/extend.texi: Follow spelling conventions.
6736 * doc/invoke.texi: Fix a typo.
6738 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6740 * config/hpux11.opt: New.
6741 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6742 ia64*-*-hpux*): Use hpux11.opt.
6744 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6746 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6749 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6751 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6754 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6756 * doc/install.texi (Binaries): Remove outdated reference for
6757 Motorola 68HC11/68HC12 downloads.
6759 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6761 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6764 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6767 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6770 2011-01-28 Ahmad Sharif <asharif@google.com>
6772 * value-prof.c (check_counter): Corrected error message.
6774 2011-01-29 Jie Zhang <jie@codesourcery.com>
6776 * config/arm/arm.c (arm_legitimize_reload_address): New.
6777 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6778 arm_legitimize_reload_address.
6779 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6781 2011-01-28 Ian Lance Taylor <iant@google.com>
6783 * godump.c (go_define): Ignore macros whose definitions include
6784 two adjacent operands.
6786 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6789 * varasm.c (force_const_mem): Store copy of x in desc->constant
6790 instead of x itself.
6791 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6792 itself into REG_EQUAL note.
6794 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6796 * config/freebsd.opt (posix, rdynamic): New Driver options.
6798 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6800 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6802 * configure: Regenerate.
6804 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6806 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6807 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6809 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6811 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6812 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6813 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6814 (s390_preferred_reload_class): Make static. Change return and
6815 'rclass' argument type to reg_class_t.
6817 2011-01-27 Jan Hubicka <jh@suse.cz>
6820 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6821 (process_function_and_variable_attributes): Check defined weakrefs.
6823 2011-01-27 Martin Jambor <mjambor@suse.cz>
6825 PR tree-optimization/47228
6826 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6827 build_ref_for_offset.
6829 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6831 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6833 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6835 PR rtl-optimization/46856
6836 * postreload.c (reload_combine_recognize_const_pattern): Do not
6837 separate cc0 setter and user on cc0 targets.
6839 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6842 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6843 passed a VOID_TYPE expression, immediately emit an error and
6844 return error_mark_node.
6846 2011-01-26 Jeff Law <law@redhat.com>
6848 PR rtl-optimization/47464
6849 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6850 rather than may_trap_p as needed.
6852 2011-01-26 DJ Delorie <dj@redhat.com>
6854 PR rtl-optimization/46878
6855 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6856 setter/user dependency as well.
6858 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6860 PR rtl-optimization/44469
6861 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6862 after removing trivially dead basic blocks.
6864 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6866 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6867 * config/frv/frv.h (LINK_SPEC): Likewise.
6868 * config/i386/netware.h (LINK_SPEC): Likewise.
6869 * config/m68k/linux.h (ASM_SPEC): Likewise.
6870 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6871 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6872 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6873 * config/sparc/linux.h (ASM_SPEC): Likewise.
6874 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6875 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6877 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6879 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6880 * config/frv/frv.h (ASM_SPEC): Likewise.
6881 * config/m68k/linux.h (ASM_SPEC): Likewise.
6882 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6883 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6884 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6885 * config/sparc/linux.h (ASM_SPEC): Likewise.
6886 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6887 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6889 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6891 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6892 * config/frv/frv.h (LINK_SPEC): Likewise.
6893 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6895 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6897 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6898 * config/frv/frv.h (ASM_SPEC): Likewise.
6899 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6900 * config/m68k/linux.h (ASM_SPEC): Likewise.
6901 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6902 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6903 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6904 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6905 * config/sparc/linux.h (ASM_SPEC): Likewise.
6906 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6907 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6908 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6910 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6913 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6915 (vec_extract_evenodd_help): Ditto.
6916 (vec_extract_evenv4hi): Ditto.
6917 (vec_extract_oddv4hi): Ditto.
6918 (vec_interleave_lowv2si): Ditto.
6919 (vec_interleave_highv2si): Ditto.
6920 (vec_extract_evenv2si): Ditto.
6921 (vec_extract_oddv2si: Ditto.
6922 (vec_pack_trunc_v2si): Ditto.
6924 2011-01-22 Jan Hubicka <jh@suse.cz>
6927 * cgraph.h (cgraph_local_info): New field can_change_signature.
6928 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6929 signature can change.
6930 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6932 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6933 (cgraph_function_versioning): We can not change signature of functions
6934 that don't allow that.
6935 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6936 (lto_input_node): Likewise.
6937 * ipa-inline.c (compute_inline_parameters): Compute
6938 local.can_change_signature.
6939 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6940 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6941 functions that can not change signature.
6942 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6943 init_cumulative_args): Do not use local calling conventions
6944 for functions that can not change signature.
6946 2011-01-22 Jan Hubicka <jh@suse.cz>
6948 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6950 2011-01-26 Richard Guenther <rguenther@suse.de>
6952 PR tree-optimization/47190
6953 * cgraphunit.c (process_common_attributes): New function.
6954 (process_function_and_variable_attributes): Use it.
6956 2011-01-26 Richard Guenther <rguenther@suse.de>
6959 * cgraphbuild.c (record_eh_tables): Record reference to personality
6962 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6965 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6966 non-debug insns from moving up.
6968 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6971 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6972 t-dlldir{,-x} fragment for build and add it to tmake_file.
6973 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6974 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6975 * config/i386/t-dlldir: New file.
6976 (SHLIB_DLLDIR): Define.
6977 * config/i386/t-dlldir-x: New file.
6978 (SHLIB_DLLDIR): Define.
6979 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6980 (SHLIB_INSTALL): Use it.
6982 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6985 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6986 lower bound of the allowed Thumb-2 coprocessor load/store
6987 index range to -256. Add explaining comment.
6989 2011-01-25 Ian Lance Taylor <iant@google.com>
6991 * godump.c (go_define): Improve lexing of macro expansion to only
6992 accept expressions which match Go spec.
6994 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6997 * tree.c (handle_dll_attribute): Handle it.
6998 * doc/extend.texi (@item dllexport): Mention it.
6999 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7001 2011-01-25 Ian Lance Taylor <iant@google.com>
7003 PR tree-optimization/26854
7004 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7005 (decl_jump_unsafe): Move higher in file, with no other change.
7006 (bind): Set has_jump_unsafe_decl if appropriate.
7007 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7008 (check_earlier_gotos): Likewise.
7009 (c_check_switch_jump_warnings): Likewise.
7011 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
7013 * doc/invoke.texi (Warning Options): Add missing hyphen.
7014 (-fprofile-dir): Minor grammatical fixes.
7015 (-fbranch-probabilities): Likewise.
7017 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7021 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7023 (no_real_insns_p, schedule_block, set_priorities): Drop special
7024 treatment of boundary debug insns.
7025 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7026 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7027 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7028 (BOUNDARY_DEBUG_INSN_P): Likewise.
7029 (SCHEDULE_DEBUG_INSN_P): Likewise.
7030 * sched-rgn.c (init_ready_list): Drop special treatment of
7031 boundary debug insns.
7032 * final.c (rest_of_clean-state): Clear notes' BB.
7034 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7036 * Makefile.in (LAMBDA_H): Removed.
7037 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7038 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7039 lambda-trans.o, and tree-loop-linear.o.
7040 (lto-symtab.o): Remove dependence on LAMBDA_H.
7041 (tree-loop-linear.o): Remove rule.
7042 (lambda-mat.o): Same.
7043 (lambda-trans.o): Same.
7044 (lambda-code.o): Same.
7045 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7046 (tree-vect-slp.o): Same.
7047 * hwint.h (gcd): Moved here.
7048 (least_common_multiple): Same.
7049 * lambda-code.c: Removed.
7050 * lambda-mat.c: Removed.
7051 * lambda-trans.c: Removed.
7052 * lambda.h: Removed.
7053 * tree-loop-linear.c: Removed.
7054 * lto-symtab.c: Do not include lambda.h.
7055 * omega.c (gcd): Removed.
7056 * passes.c (init_optimization_passes): Remove pass_linear_transform.
7057 * tree-data-ref.c (print_lambda_vector): Moved here.
7058 (lambda_vector_copy): Same.
7059 (lambda_matrix_copy): Same.
7060 (lambda_matrix_id): Same.
7061 (lambda_vector_first_nz): Same.
7062 (lambda_matrix_row_add): Same.
7063 (lambda_matrix_row_exchange): Same.
7064 (lambda_vector_mult_const): Same.
7065 (lambda_vector_negate): Same.
7066 (lambda_matrix_row_negate): Same.
7067 (lambda_vector_equal): Same.
7068 (lambda_matrix_right_hermite): Same.
7069 * tree-data-ref.h: Do not include lambda.h.
7070 (lambda_vector): Moved here.
7071 (lambda_matrix): Same.
7072 (dependence_level): Same.
7073 (lambda_transform_legal_p): Removed declaration.
7074 (lambda_collect_parameters): Same.
7075 (lambda_compute_access_matrices): Same.
7076 (lambda_vector_gcd): Same.
7077 (lambda_vector_new): Same.
7078 (lambda_vector_clear): Same.
7079 (lambda_vector_lexico_pos): Same.
7080 (lambda_vector_zerop): Same.
7081 (lambda_matrix_new): Same.
7082 * tree-flow.h (least_common_multiple): Removed declaration.
7083 * tree-parloops.c (lambda_trans_matrix): Moved here.
7085 (LTM_ROWSIZE): Same.
7086 (LTM_COLSIZE): Same.
7087 (LTM_DENOMINATOR): Same.
7088 (lambda_trans_matrix_new): Same.
7089 (lambda_matrix_vector_mult): Same.
7090 (lambda_transform_legal_p): Same.
7091 * tree-pass.h (pass_linear_transform): Removed declaration.
7092 * tree-ssa-loop.c (tree_linear_transform): Removed.
7093 (gate_tree_linear_transform): Removed.
7094 (pass_linear_transform): Removed.
7095 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
7096 flag_loop_interchange.
7098 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7100 PR tree-optimization/47265
7101 PR tree-optimization/47443
7102 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
7103 if name still has some uses.
7105 2011-01-25 Martin Jambor <mjambor@suse.cz>
7107 PR tree-optimization/47382
7108 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
7109 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
7111 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
7113 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
7114 sjlj_except_unwind_info.
7116 2011-01-25 Richard Guenther <rguenther@suse.de>
7118 PR tree-optimization/47426
7119 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
7120 visible functions results escape.
7122 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7125 * config/arm/arm.c (any_sibcall_uses_r3): New function.
7126 (arm_get_frame_offsets): Use it.
7128 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7129 Jakub Jelinek <jakub@redhat.com>
7131 PR tree-optimization/47271
7132 * tree-if-conv.c (bb_postdominates_preds): New.
7133 (if_convertible_bb_p): Call bb_postdominates_preds.
7134 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
7135 (predicate_scalar_phi): Call bb_postdominates_preds.
7137 2011-01-25 Nick Clifton <nickc@redhat.com>
7139 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
7140 * config/rx/rx.c (rx_function_value): Likewise.
7141 (rx_promote_function_mode): Likewise.
7142 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7143 in order to make it legitimate.
7144 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
7145 make sure that the first operand is the same as the result register.
7146 (addsi3_unspec): Delete.
7147 (subdi3): Do not accept immediate operands.
7148 (subdi3_internal): Likewise.
7150 2011-01-25 Jeff Law <law@redhat.com>
7152 PR rtl-optimization/37273
7153 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7154 handle them like argument loads from stack slots. Do not double
7155 count memory for memory constants and argument loads from stack slots.
7157 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7159 PR tree-optimization/47427
7160 PR tree-optimization/47428
7161 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7162 coalesce if the new root var would be TREE_READONLY.
7164 2011-01-25 Richard Guenther <rguenther@suse.de>
7167 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
7168 correct type for TBAA.
7170 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7172 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
7173 (close_phi_written_to_memory): Call for_each_index with
7174 dr_indices_valid_in_loop.
7176 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7178 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
7179 when it is initialized.
7181 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7183 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
7184 call to graphite_find_data_references_in_stmt.
7185 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
7186 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
7187 call to graphite_find_data_references_in_stmt.
7188 (analyze_drs_in_stmts): Same.
7189 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
7190 in which the scalar analysis of indices is performed.
7191 (create_data_ref): Same. Update call to dr_analyze_indices.
7192 (find_data_references_in_stmt): Update call to create_data_ref.
7193 (graphite_find_data_references_in_stmt): Same.
7194 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
7196 (create_data_ref): Same.
7197 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
7198 call to create_data_ref.
7200 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7202 * graphite-sese-to-poly.c (build_poly_scop): Move
7203 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
7205 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7207 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7208 VAR_DECL, PARM_DECL, and RESULT_DECL.
7210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7212 * graphite-dependences.c (reduction_dr_1): Allow several reductions
7214 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7215 that have already been marked as PBB_IS_REDUCTION.
7217 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7219 * graphite-scop-detection.c (same_close_phi_node): New.
7220 (remove_duplicate_close_phi): New.
7221 (make_close_phi_nodes_unique): New.
7222 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
7224 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7226 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
7227 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
7228 of both data references to be the same.
7230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7232 * graphite-dependences.c (build_lexicographical_constraint): Remove
7234 (build_lexicographical_constraint): Adjust call to
7235 ppl_powerset_is_empty.
7236 (dependence_polyhedron): Same.
7237 (graphite_legal_transform_dr): Same.
7238 (graphite_carried_dependence_level_k): Same.
7239 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
7241 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
7243 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7245 * graphite-sese-to-poly.c
7246 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
7247 (close_phi_written_to_memory): New.
7248 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
7251 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7253 * doc/install.texi: Update the expected version number of PPL to 0.11.
7254 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
7255 #if PPL_VERSION_MINOR < 11.
7257 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7259 * graphite-dependences.c: Include graphite-cloog-util.h.
7260 (new_poly_ddr): Inlined into dependence_polyhedron.
7261 (free_poly_ddr): Moved close by new_poly_ddr.
7262 (dependence_polyhedron_1): Renamed dependence_polyhedron.
7263 Early return NULL when ppl_powerset_is_empty returns true.
7264 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
7265 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
7266 (graphite_legal_transform_dr): Call new_poly_ddr.
7267 (graphite_carried_dependence_level_k): Same.
7268 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
7269 (dot_transformed_deps_stmt_1): Removed.
7270 (dot_deps_stmt_1): Call dot_deps_stmt_2.
7271 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
7272 (dot_deps_1): Call dot_deps_2.
7273 * Makefile.in (graphite-dependences.o): Add missing dependence on
7274 graphite-cloog-util.h.
7276 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7278 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
7279 (build_lexicographical_constraint): Same.
7280 (dependence_polyhedron_1): Same.
7281 (graphite_legal_transform_dr): Same.
7282 (graphite_carried_dependence_level_k): Same.
7283 * graphite-ppl.c (ppl_powerset_is_empty): New.
7284 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
7285 * tree-data-ref.c (dump_data_reference): Print the basic block index.
7287 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7289 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
7290 the "a followed by b" relation and document it.
7292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7294 * graphite-dependences.c (build_lexicographical_constraint): Stop the
7295 iteration when the bag of constraints is empty.
7297 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7299 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
7301 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7303 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
7304 nest and two loop depths as parameters.
7305 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
7306 lst_perfect_nestify.
7308 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7310 * graphite-dependences.c (print_pddr): Call
7311 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
7313 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7315 * graphite-ppl.c (debug_gmp_value): New.
7316 * graphite-ppl.h (debug_gmp_value): Declared.
7318 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
7320 * doc/install.texi: Document availability of cloog-0.16.
7322 2011-01-25 Vladimir Kargov <kargov@gmail.com>
7324 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
7325 invalid postdominance info.
7327 2011-01-24 Jan Hubicka <jh@suse.cz>
7330 * doc/extend.texi (weak pragma): Drop claim that it must
7331 appear before definition.
7332 * varasm.c (merge_weak, declare_weak): Only sanity check
7333 that DECL is not output at a time it is declared weak.
7335 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
7337 * machmode.def: Fixed comments.
7339 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
7341 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
7343 2011-01-24 Paul Koning <ni1d@arrl.net>
7345 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
7348 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
7351 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
7352 (block_info): Add scanned and prev.
7353 (move_or_delete_vzeroupper_2): Return if the basic block
7354 has been scanned and the upper 128bit state is unchanged
7356 (move_or_delete_vzeroupper_1): Return true if the exit
7358 (move_or_delete_vzeroupper): Visit basic blocks using the
7359 work-list based algorithm based on vt_find_locations in
7362 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
7364 2011-01-24 Nick Clifton <nickc@redhat.com>
7366 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
7367 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
7368 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
7369 then define __v850e1__.
7370 * doc/invoke.texi: Document -mv850es.
7372 2011-01-24 Richard Henderson <rth@redhat.com>
7374 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
7375 compound unordered comparisons.
7376 * config/rx/rx.c (rx_split_fp_compare): Remove.
7377 * config/rx/rx-protos.h: Update.
7378 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
7379 (cbranchsf4): Don't call rx_split_fp_compare.
7380 (*cbranchsf4): Use rx_split_cbranch.
7381 (*cmpsf): Don't accept "i" constraint.
7382 (*conditional_branch): Only valid after reload.
7383 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
7385 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7388 * config/rs6000/altivec.md (vector constant splitters): Add
7389 support for creating vector single precision constants if -mvsx is
7390 used and we would create the constant using Altivec primitives.
7392 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
7393 Richard Sandiford <rdsandiford@googlemail.com>
7395 PR rtl-optimization/47166
7396 * reload1.c (emit_reload_insns): Disable the spill_reg_store
7397 mechanism for PRE_MODIFY and POST_MODIFY.
7398 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
7401 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
7403 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7405 2011-01-22 Jan Hubicka <jh@suse.cz>
7408 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
7410 2011-01-22 Jan Hubicka <jh@suse.cz>
7412 PR tree-optimization/43884
7414 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
7415 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
7417 2011-01-22 Anatoly Sokolov <aesok@post.ru>
7419 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7420 * config/s390/s390.c (s390_register_move_cost,
7421 s390_memory_move_cost): New.
7422 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7424 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7427 * except.c (sjlj_assign_call_site_values): Move setting the
7428 crtl->uses_eh_lsda flag to ...
7429 (sjlj_mark_call_sites): ... here.
7430 (sjlj_emit_function_enter): Support NULL dispatch label.
7431 (sjlj_build_landing_pads): In a function with no landing pads
7432 that still has must-not-throw regions, generate code to register
7433 a personality function with empty LSDA.
7435 2011-01-21 Richard Henderson <rth@redhat.com>
7437 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
7439 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
7441 * compare-elim.c: New file.
7442 * Makefile.in (OBJS-common): Add it.
7443 (compare-elim.o): New.
7444 * common.opt (fcompare-elim): New.
7445 * opts.c (default_options_table): Add OPT_fcompare_elim.
7446 * tree-pass.h (pass_compare_elim_after_reload): New.
7447 * passes.c (init_optimization_passes): Add it.
7448 * recog.h: Protect against re-inclusion.
7449 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
7450 * doc/invoke.texi (-fcompare-elim): Document it.
7451 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
7452 * doc/tm.texi: Rebuild.
7454 2011-01-22 Nick Clifton <nickc@redhat.com>
7456 * config/rx/rx.md (cstoresf4): Pass comparison operator to
7457 rx_split_fp_compare.
7459 2011-01-22 Nick Clifton <nickc@redhat.com>
7461 * config/rx/rx.md (UNSPEC_CONST): New.
7462 (deallocate_and_return): Wrap the amount popped off the stack in
7463 an UNSPEC_CONST in order to stop it being rejected by
7464 -mmax-constant-size.
7465 (pop_and_return): Add a "(return)" rtx.
7466 (call): Drop the immediate operand.
7467 (call_internal): Likewise.
7468 (call_value): Likewise.
7469 (call_value_internal): Likewise.
7470 (sibcall_internal): Likewise.
7471 (sibcall_value_internal): Likewise.
7472 (sibcall): Likewise. Generate an explicit call using
7474 (sibcall_value): Likewise.
7475 (mov<>): FAIL if a constant operand is not legitimate.
7476 (addsi3_unpsec): New pattern.
7478 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
7479 (ok_for_max_constant): New function.
7480 (gen_safe_add): New function.
7481 (rx_expand_prologue): Use gen_safe_add.
7482 (rx_expand_epilogue): Likewise.
7483 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
7486 2011-01-21 Jeff Law <law@redhat.com>
7488 PR tree-optimization/47053
7489 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7490 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7491 statements are deleted.
7492 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
7493 is nonempty, then purge dead edges and cleanup the CFG.
7495 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7499 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7501 * tree-dfa.c (create_var_ann): Mark variable as used.
7503 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7506 * except.c (convert_to_eh_region_ranges): Emit queued no-region
7507 notes from other section in hot/cold partitioning even if
7508 last_action is -3. Increment call_site_base.
7510 PR rtl-optimization/47366
7511 * fwprop.c (forward_propagate_into): Return bool. If
7512 any changes are made, -fnon-call-exceptions is used and
7513 REG_EH_REGION note is present, call purge_dead_edges
7514 and return true if it purged anything.
7515 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7516 any EH edges were purged.
7518 2011-01-21 Jeff Law <law@redhat.com>
7520 PR rtl-optimization/41619
7521 * caller-save.c (setup_save_areas): Break out code to determine
7522 which hard regs are live across calls by examining the reload chains
7523 so that it is always used.
7524 Eliminate code which checked REG_N_CALLS_CROSSED.
7526 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7528 PR tree-optimization/47355
7529 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7530 NOP has non-debug uses beyond PHIs in new_bb.
7532 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7535 * cfgexpand.c (account_used_vars_for_block): Only account vars
7536 that are annotated as used.
7537 (estimated_stack_frame_size): Don't set TREE_USED.
7538 * tree-dfa.c (create_var_ann): Mark variable as used.
7540 2011-01-21 Richard Guenther <rguenther@suse.de>
7543 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7545 2011-01-21 Richard Guenther <rguenther@suse.de>
7547 PR tree-optimization/47365
7548 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7549 (vn_reference_lookup_pieces): Adjust.
7550 (vn_reference_lookup): Likewise.
7551 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7552 (vn_reference_lookup_3): Only look through kills if in
7553 VN_WALKREWRITE mode.
7554 (vn_reference_lookup_pieces): Adjust.
7555 (vn_reference_lookup): Likewise.
7556 (visit_reference_op_load): Likewise.
7557 (visit_reference_op_store): Likewise.
7558 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7559 (compute_avail): Likewise.
7560 (eliminate): Likewise.
7562 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7564 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7565 DECL_IGNORED_P non-reg vars if they are used.
7567 PR tree-optimization/47391
7568 * varpool.c (const_value_known_p): Return false if
7571 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
7574 * config/i386/i386.c (ix86_local_alignment): Handle
7575 case for va_list_type_node is nil.
7576 (ix86_canonical_va_list_type): Likewise.
7578 2011-01-21 Alan Modra <amodra@gmail.com>
7580 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7581 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7583 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7585 * config/arm/arm.md (define_attr type): Rename f_load
7586 and f_store to f_fpa_load and f_fpa_store. Update.
7587 (write_conflict): Deal with rename fallout.
7588 (*push_fp_multi): Likewise.
7589 * config/arm/fpa.md (f_load): Use f_fpa_load.
7590 (f_store): Use f_fpa_store.
7591 (*movsf_fpa): Likewise.
7592 (*movdf_fpa): Likewise.
7593 (*movxf_fpa): Likewise.
7594 (*thumb2_movsf_fpa): Likewise.
7595 (*thumb2_movdf_fpa): Likewise.
7596 (*thumb2_movxf_fpa): Likewise.
7597 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7598 f_loadd and f_stored.
7599 (*thumb2_movdi_vfp): Likewise.
7600 (*thumb2_movsf_vfp): Fix attribute to f_loads.
7601 (*thumb2_movsi_vfp): Likewise.
7602 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7603 Use f_loads instead of f_load.
7604 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7606 2011-01-20 Anatoly Sokolov <aesok@post.ru>
7608 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7609 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7610 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7611 (xtensa_mode_dependent_address_p): New function.
7612 (constantpool_address_p): Make static. Change return type to bool.
7613 Change argument type to const_rtx. Use CONST_INT_P predicate.
7615 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
7618 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7620 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7623 * cfgexpand.c (expand_debug_expr): Instead of generating
7624 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7627 2011-01-20 Richard Guenther <rguenther@suse.de>
7630 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7631 the pointer operand of MEM_REFs.
7633 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7635 PR tree-optimization/46130
7636 * ipa-split.c (consider_split): If return_bb contains non-virtual
7637 PHIs other than for retval or if split_function would not adjust it,
7640 2011-01-20 Richard Guenther <rguenther@suse.de>
7642 PR tree-optimization/47167
7643 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7644 Revert previous change, only avoid enumeral type changes.
7646 2011-01-19 Mike Stump <mikestump@comcast.net>
7648 * doc/tm.texi.in (BRANCH_COST): Englishify.
7649 * doc/tm.texi (BRANCH_COST): Likewise.
7651 2011-01-19 Dodji Seketeli <dodji@redhat.com>
7654 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7655 (gen_scheduled_generic_parms_dies): New functions.
7656 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7657 generation for the end of CU compilation.
7658 (dwarf2out_finish): Generate template parameters DIEs here.
7660 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7663 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7664 debug bind stmt on merge edges.
7666 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7670 * function.c (instantiate_expr): Instantiate incoming rtl of
7671 implicit arguments, and recurse on VALUE_EXPRs.
7672 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7673 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7675 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7677 * c-parser.c (c_parser_for_statement): Initialize
7678 collection_expression.
7680 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7682 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7684 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7686 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7687 (LINK_SHLIB_SPEC): Don't use %(link_path).
7688 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7690 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7692 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7693 (NO_SHARED_LIB_SUPPORT): Remove.
7694 (LINK_SHLIB_SPEC): Remove one conditional definition.
7696 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7698 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7700 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7701 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7702 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7703 %{call_shared} and conditionals on these options not being passed.
7704 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7707 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7709 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7712 * ipa-split.c: Spelling fixes.
7714 2011-01-19 Richard Henderson <rth@redhat.com>
7716 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7717 (*mulsi3): Likewise.
7719 * longlong.h [__mn10300__] (count_leading_zeros): New.
7720 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7721 [__mn10300__] (add_ssaaaa, subddmmss): New.
7722 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7723 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7725 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7727 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7729 2011-01-19 Richard Henderson <rth@redhat.com>
7731 * config/mn10300/mn10300.md (addsi3_flags): New.
7732 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7733 (subsi3_flags, subc_internal, subdi3): New.
7734 (subdi3_internal, *subdi3_degenerate): New.
7735 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7737 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7738 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7739 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7740 * config/mn10300/mn10300-protos.h: Update.
7741 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7742 (return_ret): Likewise. Rename from return_internal_regs.
7743 (return_internal): Remove.
7745 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7746 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7747 (mn10300_legitimate_constant_p): Likewise.
7748 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7749 (mn10300_frame_size): New.
7750 (mn10300_expand_prologue): Use it.
7751 (mn10300_expand_epilogue): Likewise.
7752 (mn10300_initial_offset): Likewise.
7753 * config/mn10300/mn10300-protos.h: Update.
7754 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7755 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7756 (prologue, epilogue, return_internal): Tidy output code.
7757 (mn10300_store_multiple_operation, return): Likewise.
7758 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7759 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7760 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7761 (load_pic, am33_load_pic): New.
7762 (mn10300_load_pic0, mn10300_load_pic1): New.
7764 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7765 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7766 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7767 (cc_flags_for_mode, cc_flags_for_code): New.
7768 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7769 overflow flag is not valid. Validate that the flags we need
7770 for the comparison are valid.
7771 (mn10300_output_cmp): Remove.
7772 (mn10300_output_add): New.
7773 (mn10300_select_cc_mode): Use cc_flags_for_code.
7774 (mn10300_split_cbranch): New.
7775 (mn10300_match_ccmode): New.
7776 (mn10300_split_and_operand_count): New.
7777 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7779 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7780 (addsi3): ... here. Use mn10300_output_add.
7781 (*addsi3_flags): New.
7782 (*am33_subsi3, *mn10300_subsi3): Merge...
7783 (subsi3): ... here. Use attribute isa.
7784 (*subsi3_flags): New.
7785 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7787 (*am33_andsi3, *mn10300_andsi3): Merge...
7789 (*andsi3_flags): New.
7790 (andsi3 splitters): New.
7791 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7793 (*iorsi3_flags): New.
7794 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7796 (*xorsi3_flags): New.
7797 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7798 (one_cmplsi2): ... here.
7799 (*one_cmplsi2_flags): New.
7800 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7801 instead of "dax" in constraints. Use mn10300_split_cbranch.
7802 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7803 use matching constraints to eliminate a self-comparison.
7804 (*integer_conditional_branch): Rename from integer_conditional_branch.
7805 Use int_mode_flags to match CC_REG.
7806 (*cbranchsi4_btst, *btstsi): New.
7807 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7808 mn10300_split_cbranch.
7809 (*am33_cmpsf): Rename from am33_cmpsf.
7810 (*float_conditional_branch): Rename from float_conditional_branch.
7811 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7812 (zero_extendqisi2): ... here.
7813 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7814 (zero_extendhisi2): ... here.
7815 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7816 (extendqisi2): ... here.
7817 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7818 (extendhisi2): ... here.
7819 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7820 (ashlsi3): ... here.
7821 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7822 (lshrsi3): ... here.
7823 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7824 (ashrsi3): ... here.
7825 (consecutive add peephole): Remove.
7826 * config/mn10300/predicates.md (label_ref_operand): New.
7827 (int_mode_flags): New.
7828 (CCZN_comparison_operator): New.
7830 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7831 (throughput_42_latency_43): New reservation.
7832 (mulsidi3, umulsidi3): New expanders.
7833 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7834 the MDR register to allocation; separately allocate the low and
7835 high parts of the DImode result.
7836 (umulsidi3_internal): Similarly.
7837 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7838 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7839 (udivsi3, umodsi3): Remove.
7840 (udivmodsi4, divmodsi4): New expanders.
7841 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7842 (*divmodsi4): Simiarly.
7843 (ext_internal): New.
7845 * config/mn10300/constraints.md ("z"): New constraint.
7846 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7847 (FIXED_REGISTERS): Don't fix MDR.
7848 (CALL_USED_REGSITERS): Reformat nicely.
7849 (REG_ALLOC_ORDER): Add MDR.
7850 (enum regclass): Add MDR_REGS.
7851 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7852 (IRA_COVER_CLASSES): Add MDR_REGS.
7853 (REGNO_REG_CLASS): Handle MDR_REG.
7854 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7855 (mn10300_register_move_cost): Likewise.
7856 * config/mn10300/mn10300.md (MDR_REG): New.
7857 (*movsi_internal): Handle moves to/from MDR_REGS.
7859 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7861 (mn10300_secondary_reload): Tidy combination reload classes.
7862 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7863 addresses for AM33. Allow symbolic offsets for reg+imm.
7864 (mn10300_regno_in_class_p): New.
7865 (mn10300_legitimize_reload_address): New.
7866 * config/mn10300/mn10300.h (enum reg_class): Remove
7867 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7868 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7870 (REG_CLASS_NAMES): Update to match.
7871 (REG_CLASS_CONTENTS): Likewise.
7872 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7873 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7874 (REGNO_IN_RANGE_P): Remove.
7875 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7876 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7877 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7878 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7879 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7880 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7881 (REGNO_GENERAL_P): New.
7882 (HAVE_POST_MODIFY_DISP): New.
7883 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7884 (LEGITIMIZE_RELOAD_ADDRESS): New.
7885 * config/mn10300/mn10300-protos.h: Update.
7887 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7888 DATA_REGS for AM33 stack-pointer destination.
7889 (mn10300_preferred_output_reload_class): Likewise.
7890 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7891 into a form appropriate for ...
7892 (TARGET_SECONDARY_RELOAD): New.
7893 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7894 * config/mn10300/mn10300-protos.h: Update.
7895 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7896 reload_insi; use the "A" constraint for the scratch; handle AM33
7897 moves of sp to non-address registers.
7899 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7900 (*movqi_internal): ... here.
7901 (*am33_movhi, *mn10300_movhi): Merge into...
7902 (*movhi_internal): ... here.
7903 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7904 as the source/destination of moves from/to SP.
7905 (movsf): Only allow for AM33-2.
7906 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7907 any integer constant constraint. Only allow for AM33-2. Tidy
7908 all of the alternative outputs.
7909 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7910 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7912 (udivsi3, umodsi3): New patterns for MN103 only.
7914 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7916 * doc/tm.texi.in: Spell out that a lack of register class unions
7918 * doc/tm.texi: Regenerate.
7920 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7922 PR rtl-optimization/47337
7923 * dce.c (check_argument_store): New function.
7924 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7926 PR tree-optimization/47290
7927 * tree-eh.c (infinite_empty_loop_p): New function.
7928 (cleanup_empty_eh): Use it.
7930 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7933 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7934 (a64_expand_widen_sum): Ditto.
7935 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7936 (vec_extract_evenodd_help): Ditto.
7937 (vec_extract_evenv4hi): Ditto.
7938 (vec_extract_oddv4hi): Ditto.
7939 (vec_extract_evenv2si): Ditto.
7940 (vec_extract_oddv2si): Ditto.
7941 (vec_extract_evenv2sf): Ditto.
7942 (vec_extract_oddv2sf): Ditto.
7943 (vec_pack_trunc_v4hi: Ditto.
7944 (vec_pack_trunc_v2si): Ditto.
7945 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7946 (vec_interleave_highv8qi): Ditto.
7948 (vec_extract_oddv8qi): Ditto.
7949 (vec_interleave_lowv4hi): Ditto.
7950 (vec_interleave_highv4hi): Ditto.
7951 (vec_interleave_lowv2si): Ditto.
7952 (vec_interleave_highv2si): Ditto.
7954 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7956 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7957 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7958 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7959 (pa_c_mode_for_suffix): New.
7960 (TARGET_EXPAND_BUILTIN): Define.
7961 (TARGET_C_MODE_FOR_SUFFIX): Define.
7962 (pa_builtins): Define.
7963 (pa_init_builtins): Register __float128 type and init new support
7965 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7966 * config/pa/quadlib.c (_U_Qfcopysign): New.
7968 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7971 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7972 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7975 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7977 PR tree-optimization/47179
7978 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7979 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7981 2011-01-18 Richard Guenther <rguenther@suse.de>
7983 PR rtl-optimization/47216
7984 * emit-rtl.c: Include tree-flow.h.
7985 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7986 of replicating it with different semantics.
7987 * Makefile.in (emit-rtl.o): Adjust.
7989 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7991 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7992 (cortex_a9_dp): Handle neon types correctly.
7994 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7996 PR rtl-optimization/47299
7997 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7998 subtarget. Use normal multiplication if both operands are constants.
7999 * expmed.c (expand_widening_mult): Don't try to optimize constant
8000 multiplication if op0 has VOIDmode. Convert op1 constant to mode
8003 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8005 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
8006 spacing after 'e.g.', typos, comma, hyphenation.
8008 2011-01-17 Richard Henderson <rth@redhat.com>
8010 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8011 (rx_restricted_mem_operand): New.
8012 (rx_shift_operand): Use register_operand.
8013 (rx_source_operand, rx_compare_operand): Likewise.
8014 * config/rx/rx.md (addsi3_flags): New expander.
8015 (adddi3): Rewrite as expander.
8016 (adc_internal, *adc_flags, adddi3_internal): New patterns.
8017 (subsi3_flags): New expander.
8018 (subdi3): Rewrite as expander.
8019 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8021 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8022 (rx_init_builtins): Remove sat builtin.
8023 (rx_expand_builtin): Likewise.
8024 * config/rx/rx.md (ssaddsi3): New.
8025 (*sat): Rename from sat. Represent the CC_REG input.
8027 * config/rx/predicates.md (rshift_operator): New.
8028 * config/rx/rx.c (rx_expand_insv): Remove.
8029 * config/rx/rx-protos.h: Update.
8030 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
8031 operand to the canonical position.
8032 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8033 (*bitclr, *bitclr_in_memory): Similarly.
8034 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8035 (insv): Retain the zero_extract in the expansion.
8037 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8038 (bswaphi2, bitinvert, revw): Likewise.
8040 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8041 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8042 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8043 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8044 (bitset, bitset_in_memory): Likewise.
8045 (bitinvert, bitinvert_in_memory): Likewise.
8046 (bitclr, bitclr_in_memory): Likewise.
8047 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8048 (rx_strend, rx_cmpstrn): Likewise.
8049 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
8050 (bitop peep2 patterns): Remove.
8052 * config/rx/rx.c (rx_match_ccmode): New.
8053 * config/rx/rx-protos.h: Update.
8054 * config/rx/rx.md (abssi2): Clobber, don't set flags.
8055 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8056 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8057 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8058 (fix_truncsfsi2, floatsisf2): Likewise.
8059 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8060 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8061 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8062 (*subsi3_flags, *xorsi3_flags): New.
8064 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8066 * config/rx/rx.c (rx_print_operand): Remove workaround for
8067 unsplit comparison operations.
8069 * config/rx/rx.md (movsicc): Split after reload.
8070 (*movsicc): Merge *movsieq and *movsine via match_operator.
8071 (*stcc): New pattern.
8073 * config/rx/rx.c (rx_float_compare_mode): Remove.
8074 * config/rx/rx.h (rx_float_compare_mode): Remove.
8075 * config/rx/rx.md (cstoresi4): Split after reload.
8076 (*sccc): New pattern.
8078 * config/rx/predicates.md (label_ref_operand): New.
8079 (rx_z_comparison_operator): New.
8080 (rx_zs_comparison_operator): New.
8081 (rx_fp_comparison_operator): New.
8082 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8083 Validate that the flags are set properly for the comparison.
8084 (rx_gen_cond_branch_template): Remove.
8085 (rx_cc_modes_compatible): Remove.
8086 (mode_from_flags): New.
8087 (flags_from_code): Rename from flags_needed_for_conditional.
8088 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8089 (rx_select_cc_mode): Likewise.
8090 (rx_split_fp_compare): New.
8091 (rx_split_cbranch): New.
8092 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8093 (*cbranchsi4): Use match_operator and rx_split_cbranch.
8094 (*cbranchsf4): Similarly.
8095 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
8096 match_operator and rx_split_cbranch.
8097 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
8098 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
8099 (*cmpsi): Rename from cmpsi.
8100 (*tstsi): Rename from tstsi.
8101 (*cmpsf): Rename from cmpsf; use CC_Fmode.
8102 (*conditional_branch): Rename from conditional_branch.
8103 (*reveresed_conditional_branch): Remove.
8104 (b<code>): Remove expander.
8105 * config/rx/rx-protos.h: Update.
8107 * config/rx/rx.c (rx_compare_redundant): Remove.
8108 * config/rx/rx.md (cmpsi): Don't use it.
8109 * config/rx/rx-protos.h: Update.
8111 * config/rx/rx-modes.def (CC_F): New mode.
8112 * config/rx/rx.c (rx_select_cc_mode): New.
8113 * config/rx/rx.h (SELECT_CC_MODE): Use it.
8114 * config/rx/rx-protos.h: Update.
8116 2011-01-17 Richard Henderson <rth@redhat.com>
8118 * except.c (dump_eh_tree): Fix stray ; after for statement.
8120 2011-01-17 Richard Guenther <rguenther@suse.de>
8122 PR tree-optimization/47313
8123 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
8124 handling before copying the body. Properly deal with
8125 by-reference result in SSA form.
8127 2011-01-17 Ian Lance Taylor <iant@google.com>
8130 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
8131 (struct_value_alias_set): Don't define.
8132 (sparc_option_override): Don't set sparc_sr_alias_set and
8133 struct_value_alias_set.
8134 (save_or_restore_regs): Use gen_frame_mem rather than calling
8136 (sparc_struct_value_rtx): Likewise.
8138 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
8141 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
8142 (_mm_maskstore_pd): Likewise.
8143 (_mm_maskload_ps): Likewise.
8144 (_mm_maskstore_ps): Likewise.
8145 (_mm256_maskload_pd): Change mask to __m256i.
8146 (_mm256_maskstore_pd): Likewise.
8147 (_mm256_maskload_ps): Likewise.
8148 (_mm256_maskstore_ps): Likewise.
8150 * config/i386/i386-builtin-types.def: Updated.
8151 (ix86_expand_special_args_builtin): Likewise.
8153 * config/i386/i386.c (bdesc_special_args): Update
8154 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
8155 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
8156 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
8157 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
8159 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
8160 Use <avxpermvecmode> on mask register.
8161 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
8163 2011-01-17 Olivier Hainque <hainque@adacore.com>
8164 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8165 Eric Botcazou <ebotcazou@adacore.com>
8168 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
8169 if <= USHRT_MAX in 32-bit mode.
8171 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8173 * doc/install.texi (Configuration, Specific): Wrap long
8174 lines in examples. Allow line wrapping in long options
8175 and URLs where beneficial for PDF output.
8177 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
8179 * config/mips/mips.c (mips_classify_symbol): Don't return
8180 SYMBOL_PC_RELATIVE for nonlocal labels.
8182 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
8184 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
8186 2011-01-15 Jan Hubicka <jh@suse.cz>
8188 PR tree-optimization/47276
8189 * ipa.c (function_and_variable_visibility): Do not try to mark alias
8190 declarations as needed.
8192 2011-01-15 Martin Jambor <mjambor@suse.cz>
8194 * common.opt (fdevirtualize): New flag.
8195 * doc/invoke.texi (Option Summary): Document it.
8196 * opts.c (default_options_table): Add devirtualize flag.
8197 * ipa-prop.c (detect_type_change): Return immediately if
8198 devirtualize flag is not set.
8199 (detect_type_change_ssa): Likewise.
8200 (compute_known_type_jump_func): Likewise.
8201 (ipa_analyze_virtual_call_uses): Likewise.
8203 2011-01-14 Martin Jambor <mjambor@suse.cz>
8205 PR tree-optimization/45934
8206 PR tree-optimization/46302
8207 * ipa-prop.c (type_change_info): New type.
8208 (stmt_may_be_vtbl_ptr_store): New function.
8209 (check_stmt_for_type_change): Likewise.
8210 (detect_type_change): Likewise.
8211 (detect_type_change_ssa): Likewise.
8212 (compute_complex_assign_jump_func): Check for dynamic type change.
8213 (compute_complex_ancestor_jump_func): Likewise.
8214 (compute_known_type_jump_func): Likewise.
8215 (compute_scalar_jump_functions): Likewise.
8216 (ipa_analyze_virtual_call_uses): Likewise.
8217 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
8219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8221 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
8222 * config/i386/i386.opt (msse5): New Alias.
8224 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8226 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8227 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8228 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8229 * config/sparc/sparc.h (CC1_SPEC): Likewise.
8231 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8233 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
8235 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8236 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8237 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
8238 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
8240 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
8242 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8244 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
8246 2011-01-14 Mike Stump <mikestump@comcast.net>
8248 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
8249 * config/fr30/fr30.md: Likweise
8250 (movsi_push): Likewise.
8251 (movsi_pop): Likewise.
8252 (enter_func): Likewise.
8253 * config/moxie/moxie.md (movsi_push): Likewise.
8254 (movsi_pop): Likewise.
8256 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8258 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
8259 %{no_archive} %{exact_version}.
8260 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
8261 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
8262 %{no_archive} %{exact_version}.
8263 * config/mips/openbsd.h (LINK_SPEC): Likewise.
8264 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
8265 * config/mips/vxworks.h: Likewise.
8267 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8269 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
8271 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8273 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
8274 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
8276 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8278 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
8281 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8283 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
8285 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
8286 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8288 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
8289 Don't handle -shlib.
8291 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8293 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
8294 (CC1_SPEC): Don't handle -profile.
8296 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8298 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
8299 * config/mips/mips.h (CC1_SPEC): Likewise.
8301 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8303 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
8304 * config/mips/mips.h (CC1_SPEC): Likewise.
8306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8308 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
8309 * config/m32r/linux.h (LINK_SPEC): Likewise.
8310 * config/mips/linux.h (LINK_SPEC): Likewise.
8311 * config/mips/linux64.h (LINK_SPEC): Likewise.
8312 * config/sparc/linux.h (LINK_SPEC): Likewise.
8313 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8314 LINK_SPEC): Likewise.
8315 * config/xtensa/linux.h (LINK_SPEC): Likewise.
8317 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8319 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
8321 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
8323 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8325 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
8326 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8328 2011-01-14 Joseph Myers <joseph@codesourcery.com>
8330 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
8332 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8334 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
8335 supports -Bstatic/-Bdynamic.
8336 * configure: Regenerate.
8338 2011-01-14 Jan Hubicka <jh@suse.cz>
8339 Jack Howarth <howarth@bromo.med.uc.edu>
8342 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
8343 when checking debug_info_level. Test write_symbols instead of
8344 debug_hooks->var_location when setting flag_var_tracking_uninit.
8346 2011-01-14 Richard Guenther <rguenther@suse.de>
8348 PR tree-optimization/47179
8349 * target.def (ref_may_alias_errno): New target hook.
8350 * targhooks.h (default_ref_may_alias_errno): Declare.
8351 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
8352 (default_ref_may_alias_errno): New function.
8353 * target.h (struct ao_ref_s): Declare.
8354 * tree-ssa-alias.c: Include target.h.
8355 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
8356 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
8357 (targhooks.o): Likewise.
8358 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
8359 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
8361 2011-01-14 Richard Guenther <rguenther@suse.de>
8363 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
8365 2011-01-14 Richard Guenther <rguenther@suse.de>
8367 PR tree-optimization/47280
8368 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
8370 (tree_ssa_forward_propagate_single_use_vars): Deal with
8371 CFG changes from associate_plusminus.
8373 2011-01-14 Richard Guenther <rguenther@suse.de>
8377 2011-01-11 Richard Guenther <rguenther@suse.de>
8379 PR tree-optimization/46076
8380 * tree-ssa.c (useless_type_conversion_p): Conversions from
8381 unprototyped to empty argument list function types are useless.
8383 2011-01-14 Richard Guenther <rguenther@suse.de>
8385 PR tree-optimization/47286
8386 * tree-ssa-structalias.c (new_var_info): Register variables are global.
8388 2011-01-14 Martin Jambor <mjambor@suse.cz>
8391 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
8393 2011-01-13 Anatoly Sokolov <aesok@post.ru>
8395 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
8396 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8397 * config/xtensa/xtensa.c (xtensa_libcall_value,
8398 xtensa_function_value_regno_p): New functions.
8399 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8401 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
8404 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
8406 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
8407 New function prototype.
8408 * config/i386/winnt.c (i386_pe_assemble_visibility):
8409 Warn only if attribute was specified by user.
8411 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8414 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
8416 (floatunsdidf2_fcfidu): Ditto.
8418 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8420 * config/s390/s390.c (print_operand_address): Replace 'error' with
8421 'output_operand_lossage'.
8422 (print_operand): Likewise.
8424 2011-01-13 Jeff Law <law@redhat.com>
8426 PR rtl-optimization/39077
8427 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
8428 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
8429 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
8430 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
8431 * gcse.c (prune_insertions_deletions): New function.
8432 (compute_pre_data): Use it.
8434 2011-01-13 Dodji Seketeli <dodji@redhat.com>
8437 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
8439 (prune_unused_types_mark): Use it.
8441 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
8443 PR rtl-optimization/45352
8444 * sel-sched.c: Update copyright years.
8445 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
8446 in the advancing loop when we have issued issue_rate insns.
8448 2011-01-12 Richard Henderson <rth@redhat.com>
8450 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
8451 (TARGET_MD_ASM_CLOBBERS): New.
8453 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
8454 (TARGET_DELEGITIMIZE_ADDRESS): New.
8456 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
8457 (clzsi2, *bsch): New patterns.
8459 * config/mn10300/mn10300.md (INT): New mode iterator.
8460 (*mov<INT>_clr): New pattern, and peep2 to generate it.
8462 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8463 flag_split_wide_types.
8465 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8466 (mn10300_trampoline_init): Rewrite without a template, an immediate
8467 load and a direct branch.
8468 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8470 2011-01-12 Anatoly Sokolov <aesok@post.ru>
8472 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8473 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8474 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8475 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8477 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
8480 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8483 2011-01-12 Jan Hubicka <jh@suse.cz>
8486 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8487 (PLUGIN_COND_CLOSE): New macro.
8488 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8490 2011-01-12 Richard Guenther <rguenther@suse.de>
8493 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8494 register variables in a MEM_REF.
8496 2011-01-12 Joseph Myers <joseph@codesourcery.com>
8498 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8499 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8500 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8501 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8502 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8503 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8504 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8505 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8506 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8507 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8508 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8509 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8510 * config/gnu-user.h: New. Copied from linux.h.
8511 (LINUX_TARGET_STARTFILE_SPEC): Rename to
8512 GNU_USER_TARGET_STARTFILE_SPEC.
8513 (LINUX_TARGET_ENDFILE_SPEC): Rename to
8514 GNU_USER_TARGET_ENDFILE_SPEC.
8515 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8516 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8517 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8518 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8519 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8520 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8521 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8522 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8523 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8524 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8525 * config/arm/linux-eabi.h (CC1_SPEC): Use
8526 GNU_USER_TARGET_CC1_SPEC.
8527 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8528 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8529 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8530 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8531 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8532 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8533 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8534 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8536 2011-01-12 Richard Guenther <rguenther@suse.de>
8539 * doc/invoke.texi (ffast-math): Document it is turned on
8542 2011-01-12 Jan Hubicka <jh@suse.cz>
8544 PR tree-optimization/47233
8545 * opts.c (common_handle_option): Disable ipa-reference with profile
8548 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8550 * c-parser.c (c_parser_objc_at_property_declaration): Improved
8553 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8555 * c-parser.c (c_lex_one_token): Updated and reindented some
8556 comments. No changes in code.
8558 2011-01-11 Ian Lance Taylor <iant@google.com>
8560 * godump.c (go_output_var): Don't output the variable if there is
8561 already a type with the same name.
8563 2011-01-11 Ian Lance Taylor <iant@google.com>
8565 * godump.c (go_format_type): Don't generate float80.
8567 2011-01-11 Richard Henderson <rth@redhat.com>
8569 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8570 declaration. Rewrite for both speed and size.
8571 (mn10300_address_cost_1): Remove.
8572 (mn10300_register_move_cost): New.
8573 (mn10300_memory_move_cost): New.
8574 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
8575 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
8576 extensions, shifts, BSWAP, CLZ.
8577 (mn10300_wide_const_load_uses_clr): Remove.
8578 (TARGET_REGISTER_MOVE_COST): New.
8579 (TARGET_MEMORY_MOVE_COST): New.
8580 * config/mn10300/mn10300-protos.h: Update.
8581 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8583 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8584 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8585 * config/mn10300/mn10300-protos.h: Update.
8586 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8587 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8588 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8589 (*test_int_bitfield, *test_byte_bitfield): Remove.
8590 (*bit_test, *subreg_bit_test): Remove.
8591 * config/mn10300/predicates.md (const_8bit_operand): Remove.
8593 * config/mn10300/constraints.md ("c"): Rename from "A".
8594 ("A", "D"): New constraint letters.
8595 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8596 (fmssf4, fnmasf4, fnmssf4): Likewise.
8598 * config/mn10300/mn10300.md (isa): New attribute.
8599 (enabled): New attribute.
8601 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8602 (abssf2, negsf2): Define only for hardware fp.
8603 (sqrtsf2): Reformat.
8604 (addsf3, subsf3, mulsf3): Merge expander and insn.
8606 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8607 (DEBUGGER_AUTO_OFFSET): Remove.
8608 (DEBUGGER_ARG_OFFSET): Remove.
8610 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8611 Emit register stores with the same offsets as the hardware.
8612 (mn10300_store_multiple_operation): Don't check that the register
8613 save offsets are monotonic.
8614 * config/mn10300/mn10300-protos.h: Update.
8616 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8618 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8619 in terms of the value on the stack, not the MDR register.
8621 2011-01-11 Jan Hubicka <jh@suse.cz>
8625 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8626 (symbol_alias_set_destroy, symbol_alias_set_contains,
8627 propagate_aliases_backward): Declare.
8628 * lto-streamer-out.c (struct sets): New sturcture.
8629 (trivally_defined_alias): New function.
8630 (output_alias_pair_p): Rewrite.
8631 (output_unreferenced_globals): Fix output of alias pairs.
8632 (produce_symtab): Likewise.
8633 * ipa.c (function_and_variable_visibility): Set weak alias destination
8635 * varasm.c (symbol_alias_set_t): Remove.
8636 (symbol_alias_set_destroy): Export.
8637 (propagate_aliases_forward, propagate_aliases_backward): New functions
8639 (compute_visible_aliases): ... this one; remove.
8640 (trivially_visible_alias): New
8641 (trivially_defined_alias): New.
8642 (remove_unreachable_alias_pairs): Rewrite.
8643 (finish_aliases_1): Reorganize code checking if alias is defined.
8644 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8647 2011-01-11 Richard Guenther <rguenther@suse.de>
8649 PR tree-optimization/46076
8650 * tree-ssa.c (useless_type_conversion_p): Conversions from
8651 unprototyped to empty argument list function types are useless.
8653 2011-01-11 Richard Guenther <rguenther@suse.de>
8656 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8657 volatile MEMs as MEM_READONLY_P.
8659 2011-01-11 Richard Guenther <rguenther@suse.de>
8661 PR tree-optimization/47239
8662 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8664 2011-01-11 Jeff Law <law@redhat.com>
8666 PR tree-optimization/47086
8667 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8668 IVs from statements that might throw.
8670 2011-01-10 Jan Hubicka <jh@suse.cz>
8673 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8675 2011-01-10 Jan Hubicka <jh@suse.cz>
8678 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8679 when correcting profile.
8681 2011-01-10 Jan Hubicka <jh@suse.cz>
8684 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8686 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8687 Restore DECL_FINI_PRIORITY.
8689 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8691 * doc/gimple.texi: Fix quoting of multi-word return values in
8692 @deftypefn statements. Ensure presence of return value. Wrap
8693 overlong @deftypefn lines.
8694 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8695 descriptions of removed functions.
8696 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8697 of multi-word return value in @deftypefn statement.
8699 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8701 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8702 (Conditional Expressions, Logical Operators)
8703 (Statement and operand traversals): Do not indent smallexample
8704 code. Fix duplicate function argument in example.
8706 2011-01-10 Jeff Law <law@redhat.com>
8708 PR tree-optimization/47141
8709 * ipa-split.c (split_function): Handle case where we are
8710 returning a value and the return block has a virtual operand phi.
8712 2011-01-10 Jan Hubicka <jh@suse.cz>
8714 PR tree-optimization/47234
8715 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8716 (pass_feedback_split_functions): Declare.
8717 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8719 * ipa-split.c (gate_split_functions): Update comments; disable
8720 split-functions for profile_arc_flag and branch_probabilities.
8721 (gate_feedback_split_functions): New function.
8722 (execute_feedback_split_functions): New function.
8723 (pass_feedback_split_functions): New global var.
8725 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8728 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8729 calling gimple_call_set_cannot_inline.
8731 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8733 * config/darwin-sections.def: Remove unused section.
8735 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8738 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8740 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8743 * c-parser.c (c_parser_declaration_or_fndef): Improved
8746 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8748 * config/i386/winnt.c (i386_pe_start_function): Make sure
8749 to switch back to function's section.
8751 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8755 * plugin.c: Move include of dlfcn.h from here...
8756 * system.h: ... to here.
8758 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8760 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8762 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8763 two extra empty pages in PDF output.
8765 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8768 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8769 for error recovery purposes behave as if it was not specified so
8770 that the default type is usd.
8772 2011-01-07 Jan Hubicka <jh@suse.cz>
8774 PR tree-optmization/46469
8775 * ipa.c (function_and_variable_visibility): Clear needed flags on
8776 nodes with external decls; handle weakrefs merging correctly.
8778 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8780 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8783 2011-01-07 Jan Hubicka <jh@suse.cz>
8785 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8786 and no longer claim that gold is required for linker plugin.
8787 * configure: Regenerate.
8788 * gcc.c (PLUGIN_COND): New macro.
8789 (LINK_COMMAND_SPEC): Use it.
8790 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8791 * config.in (HAVE_LTO_PLUGIN): New.
8792 * configure.ac (--with-lto-plugin): New parameter; autodetect
8795 2011-01-07 Jan Hubicka <jh@suse.cz>
8797 PR tree-optimization/46367
8798 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8799 when we can update original.
8800 (cgraph_mark_inline_edge): Sanity check.
8801 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8803 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8805 * config/spu/spu.h (ASM_COMMENT_START): Define.
8807 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8811 (SWITCH_KEEP_FOR_GCC): Likewise.
8812 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8813 (do_spec_1): Handle "%>".
8815 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8817 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8820 * config/i386/i386.c (ix86_delegitimize_address): If
8821 simplify_gen_subreg fails, return orig_x.
8824 * value-prof.c (gimple_stringop_fixed_value): Handle
8825 lhs of the call properly.
8827 2011-01-07 Jan Hubicka <jh@suse.cz>
8830 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8832 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8834 * target.def (function_switched_text_sections): New hook.
8835 * doc/tm.texi: Regenerated.
8836 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8837 * final.c (default_function_switched_text_sections): New.
8838 (final_scan_insn): Call function_switched_text_sections when a
8839 mid-function section change occurs.
8840 * output.h (default_function_switched_text_sections): Declare.
8841 * config/darwin-protos.h (darwin_function_switched_text_sections):
8843 * config/darwin.c (darwin_function_switched_text_sections): New.
8844 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8846 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8848 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8849 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8850 the secondary code fragment when outputting for DWARF == 2.
8852 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8854 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8855 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8857 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8858 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8860 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8863 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8864 when it is not empty.
8866 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8869 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8870 (case ${target}): Add btver1.
8871 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8872 -march=native recognize btver1 processors.
8873 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8874 btver1 def_and_undef
8875 * config/i386/i386.c (struct processor_costs btver1_cost): New
8877 (m_BTVER1): New definition.
8878 (m_AMD_MULTIPLE): Includes m_BTVER1.
8879 (initial_ix86_tune_features): Add btver1 tune.
8880 (processor_target_table): Add btver1 entry.
8881 (static const char *const cpu_names): Add btver1 entry.
8882 (software_prefetching_beneficial_p): Add btver1.
8883 (ix86_option_override_internal): Add btver1 instruction sets.
8884 (ix86_issue_rate): Add btver1.
8885 (ix86_adjust_cost): Add btver1.
8886 * config/i386/i386.h (TARGET_BTVER1): New definition.
8887 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8888 (enum processor_type): Add PROCESSOR_BTVER1.
8889 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8891 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8894 * config/i386/i386.c (legitimize_tls_address)
8895 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8896 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8897 (tls_initial_exec_64_sun): New pattern.
8899 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8901 * doc/invoke.texi (Overall Options): Improve wording and markup
8902 of the description of -wrapper.
8904 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8906 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8907 rdynamic, threads): New Driver options.
8909 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8912 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8913 if coming from .tdata.
8914 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8916 2011-01-06 Jan Hubicka <jh@suse.cz>
8919 * collect2.c (main): Do not enable LTOmode when plugin is active.
8921 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8924 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8925 --version output if supported.
8926 * configure: Regenerate.
8928 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8930 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8933 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8936 * c-convert.c (convert): When converting a complex expression
8937 other than COMPLEX_EXPR to a different complex type, ensure
8938 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8939 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8940 when converting COMPLEX_TYPE.
8942 2011-01-06 Ira Rosen <irar@il.ibm.com>
8944 PR tree-optimization/47139
8945 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8946 only the last reduction value is used outside the loop. Update
8949 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8951 * config/rtems.opt: New.
8952 * config.gcc (*-*-rtems*): Use rtems.opt.
8954 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8956 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8957 processors do not support 3DNow instructions.
8959 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8961 * config/spu/spu.c (spu_option_override): Set parameter
8962 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8964 2011-01-05 Jan Hubicka <jh@suse.cz>
8966 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8967 at the command line.
8969 2011-01-05 Martin Jambor <mjambor@suse.cz>
8972 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8973 deltas on streamed outgoing edges.
8974 (output_node_opt_summary): Output info for outgoing edges only when
8975 the node is in new parameter set.
8976 (output_cgraph_opt_summary): New parameter set, passed to the two
8977 aforementioned functions. Update its forward declaration and its
8980 2011-01-05 Tom Tromey <tromey@redhat.com>
8982 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8983 operator to c_finish_omp_atomic.
8984 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8985 (build_unary_op): Update.
8986 (build_modify_expr): Update.
8987 (build_asm_expr): Update.
8989 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8991 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8992 newly inserted insns.
8994 (spu_emit_branch_hint): Likewise.
8995 (insert_hbrp_for_ilb_runout): Likewise.
8996 (spu_machine_dependent_reorg): Call df_finish_pass after
8997 schedule_insns returns.
8999 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9001 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9003 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
9005 PR tree-optimization/47005
9006 * tree-sra.c (struct access): Add 'non_addressable' bit.
9007 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9008 (decide_one_param_reduction): Return 0 if the parameter is passed by
9009 reference and one of the accesses in the group is non_addressable.
9011 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9013 PR tree-optimization/47056
9014 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9015 (mark_load): Likewise. Handle FUNCTION_DECL specially.
9016 (mark_store): Likewise. Pass STMT to ipa_record_reference.
9018 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9020 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9021 initializer. Skip view conversions from aggregate types.
9023 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
9026 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9028 2011-01-04 Philipp Thomas <pth@suse.de>
9030 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9033 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9035 * function.c (thread_prologue_and_epilogue_insns): Do not crash
9036 on empty epilogue sequences.
9038 2011-01-04 Joseph Myers <joseph@codesourcery.com>
9040 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9041 non-static): New Driver options.
9043 2011-01-04 Jie Zhang <jie@codesourcery.com>
9046 * gcc.c (default_compilers[]): Set combinable field to 0
9047 for all assembly languages.
9049 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
9051 * config/mips/loongson3a.md: New file.
9052 * config/mips/mips.md: Include loongson3a.md.
9053 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9056 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
9059 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9060 instead of convert_memory_address_addr_space on the base expression.
9062 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9064 * config/spu/spu.c (spu_option_override): Update error text
9065 for bad -march= / -mtune= values.
9067 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9069 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9070 if branch-hint optimization will be performed.
9072 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9074 PR tree-optimization/47148
9075 * ipa-split.c (split_function): Convert arguments to
9076 DECL_ARG_TYPE if possible.
9078 PR tree-optimization/47155
9079 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9082 PR rtl-optimization/47157
9083 * combine.c (try_combine): If undobuf.other_insn becomes
9084 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9085 and set *new_direct_jump_p too.
9087 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
9089 PR tree-optimization/47021
9090 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9092 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9094 * gcc.c (process_command): Update copyright notice dates.
9095 * gcov.c (print_version): Likewise.
9096 * gcov-dump.c (print_version): Likewise.
9097 * mips-tfile.c (main): Likewise.
9098 * mips-tdump.c (main): Likewise.
9100 2011-01-03 Martin Jambor <mjambor@suse.cz>
9102 PR tree-optimization/46801
9103 * tree-sra.c (type_internals_preclude_sra_p): Check whether
9104 aggregate fields start at byte boundary instead of the bit-field flag.
9106 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
9109 * gcc.c (main): Revert revision 168407.
9111 2011-01-03 Martin Jambor <mjambor@suse.cz>
9113 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
9115 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9117 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
9118 vector optab to expand vector/scalar shift, update gimple to vector.
9120 2011-01-03 Martin Jambor <mjambor@suse.cz>
9122 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
9125 2011-01-03 Martin Jambor <mjambor@suse.cz>
9127 PR tree-optimization/46984
9128 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
9130 (cgraph_create_indirect_edge): Fixed line length.
9131 (cgraph_indirect_call_info): Declare.
9132 (cgraph_make_edge_direct) Update declaration.
9133 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
9134 (cgraph_create_indirect_edge): Use it.
9135 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
9137 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
9138 the new thunk_delta representation.
9139 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
9141 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
9142 (ipa_read_indirect_edge_info): Likewise.
9143 * lto-cgraph.c (output_edge_opt_summary): New function.
9144 (output_node_opt_summary): Call it on all outgoing edges.
9145 (input_edge_opt_summary): New function.
9146 (input_node_opt_summary): Call it on all outgoing edges.
9148 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
9151 * gcc.c (main): Don't check have_o when settting combine_inputs.
9153 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
9155 * regrename.c: Add general comment describing the pass.
9156 (struct du_head): Remove 'length' field.
9157 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
9158 (regrename_optimize): Do not sort chains. Rework comments, add others.
9159 Force renaming to the preferred class (if any) in the first pass and do
9160 not consider registers that belong to it in the second pass.
9161 (create_new_chain): Do not set 'length' field.
9162 (scan_rtx_reg): Likewise.
9164 2011-01-02 Jakub Jelinek <jakub@redhat.com>
9166 PR tree-optimization/47140
9167 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
9168 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
9171 PR rtl-optimization/47028
9172 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
9173 parm_birth_insn instead of at the beginning of first bb.
9175 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
9177 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
9178 Remove the word "see" before "@pxref".
9179 * doc/rtl.texi: Remove the word "see" before "@pxref".
9181 2011-01-01 Jan Hubicka <jh@suse.cz>
9183 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
9186 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
9189 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
9192 Copyright (C) 2011 Free Software Foundation, Inc.
9194 Copying and distribution of this file, with or without modification,
9195 are permitted in any medium without royalty provided the copyright
9196 notice and this notice are preserved.